MrShi
2025-06-16 a5f75b8c4acff2ffd49d490c314d95a8c5f5db7e
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.vuescroll"],{"77a0":function(e,t,o){(function(t,i){e.exports=i(o("2b0e"))})(0,(function(e){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e;var t="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),r=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},l=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)};function s(){if(c())return!1;var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}var a=function(){if(c())return!1;var e=navigator.userAgent;return!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return e.prototype.$isServer},h=function(){function e(){o(this,e)}return i(e,[{key:"getEventObject",value:function(e){return this.touchObject?this.isTouch?e.touches:[e]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var e=navigator.userAgent,t=navigator.platform,o={};switch(o.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),o.nonDeskTouch=o.touch&&!/win32/i.test(t)||o.touch&&/win32/i.test(t)&&/mobile/i.test(e),o.eventType="onmousedown"in window&&!o.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",o.eventType){case"mouse":o.touchstart="mousedown",o.touchend="mouseup",o.touchmove="mousemove",o.touchenter="mouseenter",o.touchmove="mousemove",o.touchleave="mouseleave";break;case"touch":o.touchstart="touchstart",o.touchend="touchend",o.touchmove="touchmove",o.touchcancel="touchcancel",o.touchenter="touchstart",o.touchmove="touchmove",o.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":o.touchstart="MSPointerDown",o.touchend="MSPointerUp",o.touchmove="MSPointerMove",o.touchcancel="MSPointerCancel",o.touchenter="MSPointerDown",o.touchmove="MSPointerMove",o.touchleave="MSPointerUp";break;case"touchpoints":o.touchstart="pointerdown",o.touchend="pointerup",o.touchmove="pointermove",o.touchcancel="pointercancel",o.touchenter="pointerdown",o.touchmove="pointermove",o.touchleave="pointerup";break}return this.touchObject=o}}]),e}();function u(e,o,i){if(i&&B(o))return e;if(L(e))o=[],e.forEach((function(e,t){o[t]=u(e,o[t])}));else if(e){if(!x(e))return e;for(var r in o={},e)o[r]="object"===t(e[r])?u(e[r],o[r]):e[r]}return o}function d(e,o,i,r){if(r&&B(o))return e;if(o=o||{},L(e))!L(o)&&i&&(o=[]),L(o)&&e.forEach((function(e,t){o[t]=d(e,o[t],i,r)}));else if(e)if(x(e))for(var n in e)"object"===t(e[n])?B(o[n])?o[n]=u(e[n],o[n],r):d(e[n],o[n],i,r):(B(o[n])||i)&&(o[n]=e[n]);else i&&(o=e);return o}function _(e,t,o,i){(o[t]||"function"===typeof o)&&(i=i||t,Object.defineProperty(e,t,{get:function(){return o[i]},configurable:!0}))}var f=void 0;function p(){if(c())return 0;if(void 0!==f)return f;var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var i=o.offsetWidth;return e.parentNode.removeChild(e),f=t-i,f}function v(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on";"on"==r?e.addEventListener(t,o,i):e.removeEventListener(t,o,i)}var m=function(e){console.error("[vuescroll] "+e)},g=function(e){console.warn("[vuescroll] "+e)};function b(e,t){var o=!1;if(!e||!t)return o;while(e.parentNode!==t&&9!==e.parentNode.nodeType&&!e.parentNode._isVuescroll)e=e.parentNode;return e.parentNode==t&&(o=!0),o}function S(e){var t,o=document.documentElement.style;e.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?t="presto":"MozAppearance"in o?t="gecko":"WebkitAppearance"in o?t="webkit":"string"===typeof navigator.cpuClass&&(t="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[t];return i}function y(e,t){if(c())return!1;var o="-"+S(window)+"-"+t,i=document.createElement("div");return i.style[e]=o,i.style[e]==o&&o}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(t&&t.length>1)return r?[].concat(l(o),l(t)):[].concat(l(t),l(o));t=t[0];var n=T(t),s=n.ch,a=n.tag,c=n.isComponent;return c&&(t.data=d({attrs:t.componentOptions.propsData},t.data,!1,!0)),s=r?[].concat(l(o),l(s)):[].concat(l(s),l(o)),delete t.data.slot,e(a,d(i,t.data,!1,!0),s)}function T(e){if(!e||e.length>1)return{};e=e[0]?e[0]:e;var t=!!e.componentOptions,o=void 0,i=void 0;return t?(o=e.componentOptions.children||[],i=e.componentOptions.tag):(o=e.children||[],i=e.tag),{isComponent:t,ch:o,tag:i}}function D(e){var t=e.$parent;return!t._isVuescrollRoot&&t&&(t=t.$parent),t}var L=function(e){return Array.isArray(e)},x=function(e){return"[object Object]"==Object.prototype.toString.call(e)},B=function(e){return"undefined"===typeof e};function k(e,t){var o=void 0;return(o=/(-?\d+(?:\.\d+?)?)%$/.exec(e))?(o=o[1]-0,o=t*o/100):o=e-0,o}function O(e,t){if(!c()&&!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)}}function z(){var e=".__hidebar::-webkit-scrollbar {\n      width: 0;\n      height: 0;\n    }";O("vuescroll-hide-ios-bar",e)}function E(){var e="\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  ";O("vuescroll-silde-mode-style",e)}var M={mounted:function(){P[this._uid]=this},beforeDestroy:function(){delete P[this._uid]},methods:{scrollTo:function(e,t,o){var i=e.x,r=e.y;!0!==t&&"undefined"!=typeof t||(t=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,t,o)},scrollBy:function(e,t,o){var i=e.dx,r=void 0===i?0:i,n=e.dy,l=void 0===n?0:n,s=this.getPosition(),a=s.scrollLeft,c=void 0===a?0:a,h=s.scrollTop,u=void 0===h?0:h;r&&(c+=k(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),l&&(u+=k(l,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,u,t,o)},scrollIntoView:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.$el;if("string"===typeof e&&(e=o.querySelector(e)),b(e,o)){var i=this.$el.getBoundingClientRect(),r=i.left,n=i.top,l=e.getBoundingClientRect(),s=l.left,a=l.top,c=r-s,h=n-a;this.scrollBy({dx:-c,dy:-h},t)}else g("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},P={};function C(){for(var e in P)P[e].refresh()}var A={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function R(e){var t=!1,o=e.scrollPanel,i=e.bar,r=i.vBar,n=i.hBar,l=e.rail,s=l.vRail,a=l.hRail,c=o["initialScrollY"],h=o["initialScrollX"];return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&g("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),h&&!String(h).match(/^\d+(\.\d+)?(%)?$/)&&g("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||n||s||a)&&g("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),H&&(H=[].concat(H),H.forEach((function(o){o(e)&&(t=!0)}))),t}var H=null,$=function(e,t){e=[].concat(e),e.forEach((function(e){d(e,A)})),H=t},V=["slide","native"],X=function(){},Y=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],W="refreshDom",N="loadDom",I={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function j(e){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,o=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())&&(o=!1),o)return function(e,o){t(e,o)};var i=60,r={},n=1,l=null,s=+new Date;return function(e){var t=n++;return r[t]=e,null===l&&(l=setInterval((function(){var e=+new Date,t=r;for(var o in r={},t)t.hasOwnProperty(o)&&(t[o](e),s=e);e-s>2500&&(clearInterval(l),l=null)}),1e3/i)),t}}var Z={},q=/rgb\(/,F=/rgb\((.*)\)/;function Q(e,t){var o=e+"&"+t;if(Z[o])return Z[o];var i=document.createElement("div");i.style.background=e,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),q.test(r)?Z[o]="rgba("+F.exec(r)[1]+", "+t+")":e}var U={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return I[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(e){var t,o,i,n=this,l=Q(n.ops.rail.background,n.ops.rail.opacity);this.touchManager||(this.touchManager=new h);var s,a=n.ops.rail.size,c=n.otherBarHide?0:a,u=n.touchManager.getTouchObject(),d={class:"__rail-is-"+n.type,style:(t={position:"absolute","z-index":"1",borderRadius:n.ops.rail.specifyBorderRadius||a,background:l,border:n.ops.rail.border},r(t,n.bar.opsSize,a),r(t,n.bar.posName,n.ops.rail["gutterOfEnds"]||0),r(t,n.bar.opposName,n.ops.rail["gutterOfEnds"]||c),r(t,n.bar.sidePosName,n.ops.rail["gutterOfSide"]),t)};u&&(d.on=(s={},r(s,u.touchenter,(function(){n.setRailHover()})),r(s,u.touchleave,(function(){n.setRailLeave()})),s));var _=n.ops.scrollButton.enable?a:0,f={class:"__bar-wrap-is-"+n.type,style:(o={position:"absolute",borderRadius:n.ops.rail.specifyBorderRadius||a},r(o,n.bar.posName,_),r(o,n.bar.opposName,_),o),on:{}},p=n.state.posValue*n.state.size,v=p*n.barRatio/n.barSize,m=n.state.opacity,g=D(this);g.setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!m);var b=(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r(i,n.bar.size,100*n.barSize+"%"),r(i,"background",n.ops.bar.background),r(i,n.bar.opsSize,n.ops.bar.size),r(i,"opacity",m),r(i,"transform","translate"+I[n.type].axis+"("+v+"%)"),i),S={style:b,class:"__bar-is-"+n.type,ref:"thumb",on:{}};"vertical"==n.type?(f.style.width="100%",S.style.left=0,S.style.right=0):(f.style.height="100%",S.style.top=0,S.style.bottom=0);var y=this.touchManager.getTouchObject();return S.on[y.touchstart]=this.createBarEvent(),f.on[y.touchstart]=this.createTrackEvent(),e("div",d,[this.createScrollbarButton(e,"start"),this.hideBar?null:e("div",f,[e("div",S)]),this.createScrollbarButton(e,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var e=D(this),t=e.vuescroll.state;t.isRailHover||(t.isRailHover=!0,e.showBar())},setRailLeave:function(){var e=D(this),t=e.vuescroll.state;t.isRailHover=!1,e.hideBar()},setBarDrag:function(e){this.$emit("setBarDrag",this.isBarDragging=e);var t=D(this);t.setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!e)},createBarEvent:function(){var e=this,t=D(e),o=e.touchManager.getTouchObject();function i(t){var i=e.touchManager.getEventObject(t);i&&(t.stopImmediatePropagation(),t.preventDefault(),i=i[0],document.onselectstart=function(){return!1},e.axisStartPos=i[e.bar.client]-e.$refs["thumb"].getBoundingClientRect()[e.bar.posName],e.setBarDrag(!0),v(document,o.touchmove,n),v(document,o.touchend,l))}function n(o){if(e.axisStartPos){var i=e.touchManager.getEventObject(o);if(i){i=i[0];var n=e.$refs.thumb.parentNode,l=i[e.bar.client]-n.getBoundingClientRect()[e.bar.posName];l/=e.barRatio;var s=(l-e.axisStartPos)/n[e.bar.offset];t.scrollTo(r({},e.bar.axis.toLowerCase(),t.scrollPanelElm[e.bar.scrollSize]*s),!1)}}}function l(){e.setBarDrag(!1),t.hideBar(),document.onselectstart=null,e.axisStartPos=0,v(document,o.touchmove,n,!1,"off"),v(document,o.touchend,l,!1,"off")}return i},createTrackEvent:function(){var e=this;return function(t){var o=D(e),i=e.bar,n=i.client,l=i.offset,s=i.posName,a=i.axis,c=e.$refs["thumb"];if(t.preventDefault(),t.stopImmediatePropagation(),c){var h=c[l],u=e.touchManager.getEventObject(t)[0],d=(u[n]-t.currentTarget.getBoundingClientRect()[s]-h/2)/(t.currentTarget[l]-h);o.scrollTo(r({},a.toLowerCase(),100*d+"%"))}}},createScrollbarButton:function(e,t){var o,i=this;if(!i.ops.scrollButton.enable)return null;var n=i.ops.rail.size,l=i.ops.scrollButton,s=l.opacity,a=l.background,c=Q(a,s),h={class:["__bar-button","__bar-button-is-"+i.type+"-"+t],style:(o={},r(o,i.bar.scrollButton[t],0),r(o,"width",n),r(o,"height",n),r(o,"position","absolute"),r(o,"cursor","pointer"),r(o,"display","table"),o),ref:t},u={class:"__bar-button-inner",style:{border:"calc("+n+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==t?(u.style["border-bottom-color"]=c,u.style["transform"]="translateY(-25%)"):(u.style["border-top-color"]=c,u.style["transform"]="translateY(25%)"):"start"==t?(u.style["border-right-color"]=c,u.style["transform"]="translateX(-25%)"):(u.style["border-left-color"]=c,u.style["transform"]="translateX(25%)");var d=this.touchManager.getTouchObject();return u.on[d.touchstart]=this.createScrollButtonEvent(t,d),e("div",h,[e("div",u)])},createScrollButtonEvent:function(e,t){var o=this,i=D(o),n=o.ops.scrollButton,l=n.step,s=n.mousedownStep,a="start"==e?-l:l,c="start"==e?-s:s,h=j(window),u=o.type,d=!1,_=!0,f=void 0;function p(n){if(3!=n.which){if(i.setClassHook("cliking"+u+e+"Button",!0),n.stopImmediatePropagation(),n.preventDefault(),_=!1,i.scrollBy(r({},"d"+o.bar.axis.toLowerCase(),a)),v(document,t.touchend,g,!1),"mousedown"==t.touchstart){var l=o.$refs[e];v(l,"mouseenter",b,!1),v(l,"mouseleave",S,!1)}clearTimeout(f),f=setTimeout((function(){d=!0,h(m,window)}),500)}}function m(){d&&!_&&(i.scrollBy(r({},"d"+o.bar.axis.toLowerCase(),c),!1),h(m,window))}function g(){if(clearTimeout(f),d=!1,v(document,t.touchend,g,!1,"off"),"mousedown"==t.touchstart){var r=o.$refs[e];v(r,"mouseenter",b,!1,"off"),v(r,"mouseleave",S,!1,"off")}i.setClassHook("cliking"+u+e+"Button",!1)}function b(){_=!1,m()}function S(){_=!0}return p}}};function K(e,t){var o=I[t].axis,i=t.charAt(0)+"Bar",r=!e.bar[i].state.size||!e.mergedOptions.scrollPanel["scrolling"+o]||e.refreshLoad&&"vertical"!==t||e.mergedOptions.bar.disable,n=e.mergedOptions.rail.keepShow;return r&&!n?null:{hideBar:r,props:{type:t,ops:{bar:e.mergedOptions.bar,rail:e.mergedOptions.rail,scrollButton:e.mergedOptions.scrollButton},state:e.bar[i].state,hideBar:r},on:{setBarDrag:e.setBarDrag},ref:t+"Bar",key:t}}function J(e,t){var o=K(t,"vertical"),i=K(t,"horizontal");return t.setClassHook("hasVBar",!(!o||o.hideBar)),t.setClassHook("hasHBar",!(!i||i.hideBar)),[o?e("bar",n({},o,{props:n({otherBarHide:!i},o.props)})):null,i?e("bar",n({},i,{props:n({otherBarHide:!o},i.props)})):null]}var G=function(e){var t=e.render,o=e.components,i=e.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:o,mixins:[M].concat(l([].concat(i))),created:function(){var e=this,t=d(this.$vuescrollConfig||{},{}),o=d(A,t);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(t){_(e.mergedOptions,t,e.$options.propsData.ops)})),d(o,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=R(this.mergedOptions)},render:function(e){var o=this;if(o.renderError)return e("div",[[o.$slots["default"]]]);o.touchManager||(o.touchManager=new h);var i,s={style:{height:o.vuescroll.state.height,width:o.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:n({__vuescroll:!0},o.classHooks)},a=o.touchManager.getTouchObject();a&&(s.on=(i={},r(i,a.touchenter,(function(){o.vuescroll.state.pointerLeave=!1,o.updateBarStateAndEmitEvent(),o.setClassHook("mouseEnter",!0)})),r(i,a.touchleave,(function(){o.vuescroll.state.pointerLeave=!0,o.hideBar(),o.setClassHook("mouseEnter",!1)})),r(i,a.touchmove,(function(){o.vuescroll.state.pointerLeave=!1,o.updateBarStateAndEmitEvent()})),i));var c=[t(e,o)].concat(l(J(e,o))),u=this.$slots["scroll-container"];return u?w(e,u,c,s):e("div",s,[c])},mounted:function(){var e=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){e.scrollToAnchor(),e.updateBarStateAndEmitEvent()})))},updated:function(){var e=this;this.updatedCbs.forEach((function(t){t.call(e)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs["scrollPanel"]._isVue?this.$refs["scrollPanel"].$el:this.$refs["scrollPanel"]}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(e){this.vuescroll.state.isDragging=e},setClassHook:function(e,t){this.classHooks[e]=t},showAndDefferedHideBar:function(e){var t=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){t.timeoutId=0,t.hideBar(e)}),this.mergedOptions.bar.showDelay)},showBar:function(){var e=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=e,this.bar.hBar.state.opacity=e},hideBar:function(e){var t=this.vuescroll.state,o=t.isDragging,i=t.isRailHover;o||i||(e&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var e=this.mergedOptions.scrollPanel,t=e.maxHeight,o=e.maxWidth,i=this.$el.parentNode,r=i.clientHeight,n=i.clientWidth,l=this.scrollPanelElm,s=l.scrollHeight,a=l.scrollWidth,c=void 0,h=void 0;t||o?(h=s<=t?void 0:t,c=a<=o?void 0:o):(h=r,c=n),this.vuescroll.state.height=h?h+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var e=this.mergedOptions.vuescroll.sizeStrategy,t=this.mergedOptions.scrollPanel,o=t.maxHeight,i=t.maxWidth,r=this.scrollPanelElm,n=r.clientHeight,l=r.clientWidth;"number"==e||o&&n>o||i&&l>i?this.useNumbericSize():"percent"==e&&n!=o&&l!=i&&this.usePercentSize()},initWatchOpsChange:function(){var e=this,t={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(e.isSmallChangeThisTick)return e.isSmallChangeThisTick=!1,void e.updateBarStateAndEmitEvent("options-change");e.refreshInternalStatus()}),0)}),t),Y.forEach((function(o){e.$watch(o,(function(){e.isSmallChangeThisTick=!0}),t)}))},scrollToAnchor:function(){var e=function(e){return/^#[a-zA-Z_]\d*$/.test(e)},t=window.location.hash;if(t&&(!(t=t.slice(t.lastIndexOf("#")))||e(t))){var o=document.querySelector(t);!b(o,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(o)}}}}},ee={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var e=0,t=0,o=D(this);this.ops.initialScrollX&&(e=this.ops.initialScrollX),this.ops.initialScrollY&&(t=this.ops.initialScrollY),(e||t)&&o.scrollTo({x:e,y:t})}},mounted:function(){var e=this;setTimeout((function(){e._isDestroyed||e.updateInitialScroll()}),0)},render:function(e){var t={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},o=D(this),i=o.$slots["scroll-panel"];return i?w(e,i,this.$slots.default,t):e("div",t,[[this.$slots.default]])}};function te(e,t){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=(o={},r(o,ee.name,ee),r(o,U.name,U),o),s={};s.components=l,s.render=t,s.mixins=e;var a=G(s);return $(i,n),a}function oe(e,t){for(var o=e.children,i=[],r=function(e){var o=e.getBoundingClientRect(),i=o.left,r=o.top,n=o.width,l=o.height,s=t.getBoundingClientRect(),a=s.left,c=s.top,h=s.height,u=s.width;return i-a+n>0&&i-a<u&&r-c+l>0&&r-c<h},n=0;n<o.length;n++){var l=o.item(n);r(l)&&!l.isResizeElm&&i.push(l)}return i}function ie(e,t){return function(o){return t(e,o)}}function re(e,t){var o=null;return"easeInQuad"===e&&(o=t*t),"easeOutQuad"===e&&(o=t*(2-t)),"easeInOutQuad"===e&&(o=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e&&(o=t*t*t),"easeOutCubic"===e&&(o=--t*t*t+1),"easeInOutCubic"===e&&(o=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e&&(o=t*t*t*t),"easeOutQuart"===e&&(o=1- --t*t*t*t),"easeInOutQuart"===e&&(o=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e&&(o=t*t*t*t*t),"easeOutQuint"===e&&(o=1+--t*t*t*t*t),"easeInOutQuint"===e&&(o=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),o||t}function ne(){return!0}var le=Date.now||function(){return(new Date).getTime()},se=function(){function e(){o(this,e),this.init(),this.isRunning=!1}return i(e,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=le()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ne,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ne,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ne,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ne,s=t-e,a=s>0?-1:1,c=le();this.isRunning||this.init(),a!=this.dir||c-this.ts>200?(this.ts=c,this.dir=a,this.st=e,this.ed=t,this.df=s):this.df+=s,this.spd=o,this.completeCb=r,this.vertifyCb=n,this.stepCb=i,this.easingMethod=l,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var e=this;if(this.df){var t=this.percent||0;this.percent=0,this.isRunning=!0;var o=function o(){if(e.isRunning&&e.vertifyCb(t)&&!e.isStopped){if(t=(le()-e.ts)/e.spd,e.isPaused)return e.percent=t,void(e.isRunning=!1);if(t<1){var i=e.st+e.df*e.easingMethod(t);e.stepCb(i),e.ref(o)}else e.stepCb(e.st+e.df),e.completeCb(),e.isRunning=!1}else e.isRunning=!1};this.ref(o)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=j(window),this.isPaused=!1,this.isStopped=!1}}]),e}();function ae(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],n=arguments[5],l=void 0,s=void 0,a=void 0,c=void 0,h=void 0,u=void 0,d=e,_=d.nodeType,f=new se,p=new se;if(_){9==_&&(e=e.scrollingElement);var v=e;l=v.scrollLeft,s=v.scrollTop,a=v.scrollHeight,c=v.scrollWidth,h=v.clientWidth,u=v.clientHeight,t="undefined"===typeof t?l:k(t,c-h),o="undefined"===typeof o?s:k(o,a-u);var m=ie(r,re);f.startScroll(l,t,i,(function(t){e.scrollLeft=t}),n,void 0,m),p.startScroll(s,o,i,(function(t){e.scrollTop=t}),n,void 0,m)}else g("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}var ce={mounted:function(){this.scrollX=new se,this.scrollY=new se},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(e,t,o,i){!1===o||"undefined"===typeof o&&(o=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,n=r.scrollTop,l=r.scrollLeft,s=r.scrollWidth,a=r.clientWidth,c=r.scrollHeight,h=r.clientHeight;if(e="undefined"===typeof e?l:k(e,s-a),t="undefined"===typeof t?n:k(t,c-h),o){i=i||this.mergedOptions.scrollPanel.easing;var u=ie(i,re);e!=l&&this.scrollX.startScroll(l,e,o,(function(e){r.scrollLeft=e}),this.scrollingComplete.bind(this),void 0,u),t!=n&&this.scrollY.startScroll(n,t,o,(function(e){r.scrollTop=e}),this.scrollingComplete.bind(this),void 0,u)}else r.scrollTop=t,r.scrollLeft=e},getCurrentviewDomNative:function(){var e=this.scrollContentElm,t=oe(e,this.$el);return t}}};function he(e){var t={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":e.handleScroll},props:{ops:e.mergedOptions.scrollPanel}};e.scrollYEnable=!0,e.scrollXEnable=!0,t.nativeOn.DOMMouseScroll=t.nativeOn.mousewheel=e.onMouseWheel;var o=e.mergedOptions.scrollPanel,i=o.scrollingY,r=o.scrollingX;e.bar.hBar.state.size&&r||(e.scrollXEnable=!1,t.style.overflowX="hidden"),e.bar.vBar.state.size&&i||(e.scrollYEnable=!1,t.style.overflowY="hidden");var n=p();return n?(e.bar.vBar.state.size&&e.mergedOptions.scrollPanel.scrollingY&&("right"==e.mergedOptions.scrollPanel.verticalNativeBarPos?t.style.marginRight="-"+n+"px":t.style.marginLeft="-"+n+"px"),e.bar.hBar.state.size&&e.mergedOptions.scrollPanel.scrollingX&&(t.style.height="calc(100% + "+n+"px)")):(z(),t.class.push("__hidebar"),a()&&(t.style["-webkit-overflow-scrolling"]="touch")),t.style.transformOrigin="",t.style.transform="",t}function ue(e,t){var o={};return o=he(t),e("scrollPanel",o,[de(e,t)])}function de(e,t){var o={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:o,ref:"scrollContent",class:"__view"},r=t.$slots["scroll-content"];return t.mergedOptions.scrollPanel.scrollingX?o.width=y("width","fit-content"):i.style["width"]="100%",t.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=t.mergedOptions.rail.size),r?w(e,r,t.$slots.default,i):e("div",i,[t.$slots.default])}function _e(e){var t={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:e.mergedOptions.scrollPanel}};t.class.push("__slide"),a()&&(t.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==e.mergedOptions.vuescroll.renderMethod&&(t.style["transform-origin"]="left top 0px");var o=e.mergedOptions.scrollPanel,i=o.scrollingX,n=o.scrollingY,l=o.padding;if(i&&!e.refreshLoad){var s=y("width","fit-content");s?t.style["width"]=s:t["display"]="inline-block"}return i||t.class.push("x-hidden"),n||t.class.push("y-hidden"),l&&(t.style.paddingRight=e.mergedOptions.rail.size),t}function fe(e,t){var o=T(t.$slots["scroll-panel"]).ch||t.$slots.default,i=[];return o||(t.$slots.default=o=[]),t.mergedOptions.vuescroll.pullRefresh.enable&&i.push(e("div",{class:"__refresh",style:{visibility:t.refrehDomVisiable?"":"hidden"},ref:W,key:W},[pe(e,t,"refresh",t.pullRefreshTip)])),i.push(o),t.mergedOptions.vuescroll.pushLoad.enable&&i.push(e("div",{ref:N,key:N,class:"__load",style:{visibility:t.loadDomVisiable?"":"hidden"}},[pe(e,t,"load",t.pushLoadTip)])),i}function pe(e,t,o,i){var r=t.vuescroll.state[o+"Stage"],n=null;if(n=t.$slots[o+"-"+r])return n;switch(r){case"deactive":case"active":var l="active";"deactive"==r&&(l+=" deactive"),n=e("svg",{class:l,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[e("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),e("g",[e("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[e("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":n=e("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[e("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),e("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":n=e("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[e("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})]);break}return[n,i]}function ve(e,t){var o=_e(t);return e("scrollPanel",o,[fe(e,t)])}function me(e,t){return"native"==t.mode?ue(e,t):"slide"==t.mode?ve(e,t):void 0}function ge(e,t){return be(e,t)}function be(e,t){if(!e.hasResized){var 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;",i=document.createElement("div");i.style.cssText=o;var r=document.createElement("object");return r.style.cssText=o,r.type="text/html",r.tabIndex=-1,r.onload=function(){v(r.contentDocument.defaultView,"resize",t)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),e.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&v(r.contentDocument.defaultView,"resize",t,"off"),e.removeChild(i),e.hasResized=!1}}}var Se={methods:{slideScrollTo:function(e,t,o,i){var r=this.getPosition(),n=r.scrollLeft,l=r.scrollTop;e=k(e||n,this.scroller.__maxScrollLeft),t=k(t||l,this.scroller.__maxScrollTop),this.scroller.scrollTo(e,t,o>0,void 0,!1,o,i)},zoomBy:function(e,t,o,i,r){this.scroller?this.scroller.zoomBy(e,t,o,i,r):g("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(e,t,o,i,r):g("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();g("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(e,t):g("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(e){if(this.scroller){var t=this.mergedOptions.vuescroll.pullRefresh.enable,o=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=e||t)if("load"!=e||o)if("refresh"===e||"load"===e){if("start"!=this.vuescroll.state[e+"Stage"])return this.scroller.triggerRefreshOrLoad(e),!0}else g("param must be one of load and refresh!");else g("load must be enabled and content's height > container's height!");else g("refresh must be enabled!")}else g("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){var e=this.scrollPanelElm,t=oe(e,this.$el);return t}}},ye={mixins:[Se,ce],methods:{internalScrollTo:function(e,t,o,i){"native"==this.mode?this.nativeScrollTo(e,t,o,i):"slide"==this.mode&&this.slideScrollTo(e,t,o,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},we=Date.now||function(){return+new Date},Te=60,De=1e3,Le={},xe=1,Be={effect:{}},ke=null;ke="undefined"!==typeof window?window:{},Be.effect.Animate={requestAnimationFrame:j(ke),stop:function(e){var t=null!=Le[e];return t&&(Le[e]=null),t},isRunning:function(e){return null!=Le[e]},start:function(e,t,o,i,r,n){var l=we(),s=l,a=0,c=0,h=xe++;if(n||(n=document.body),h%20===0){var u={};for(var d in Le)u[d]=!0;Le=u}var _=function u(d){var _=!0!==d,f=we();if(!Le[h]||t&&!t(h))return Le[h]=null,void(o&&o(Te-c/((f-l)/De),h,!1));if(_)for(var p=Math.round((f-s)/(De/Te))-1,v=0;v<Math.min(p,4);v++)u(!0),c++;if(Le[h]){i&&(a=(f-l)/i,a>1&&(a=1));var m=r?r(a):a;!1!==e(m,f,_)&&1!==a||!_?_&&(s=f,Be.effect.Animate.requestAnimationFrame(u,n)):(Le[h]=null,o&&o(Te-c/((f-l)/De),h,1===a||null==i))}};return Le[h]=!0,Be.effect.Animate.requestAnimationFrame(_,n),h}};var Oe=null,ze=null;function Ee(e,t){for(var o in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:X,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[o]=t[o];Oe=ie(this.options.animatingEasing,re),ze=ie(this.options.noAnimatingEasing,re)}var Me={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,o,i,r){var n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=this;e===+e&&(l.__clientWidth=e),t===+t&&(l.__clientHeight=t),o===+o&&(l.__contentWidth=o),i===+i&&(l.__contentHeight=i),l.__computeScrollMax(),n||l.scrollTo(l.__scrollLeft,l.__scrollTop,r)},setPosition:function(e,t){var o=this;o.__clientLeft=e||0,o.__clientTop=t||0},setSnapSize:function(e,t){var o=this;o.__snapWidth=e,o.__snapHeight=t},activatePullToRefresh:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,l=t.beforeDeactiveEnd,s=this;s.__refreshHeight=e,s.__refreshActivate=o,s.__refreshBeforeDeactivate=n,s.__refreshBeforeDeactiveEnd=l,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,l=t.beforeDeactiveEnd,s=this;s.__loadHeight=e,s.__loadActivate=o,s.__loadBeforeDeactivate=n,s.__loadBeforeDeactiveEnd=l,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",t=this.__isDecelerating;if(t&&(Be.effect.Animate.stop(t),this.__isDecelerating=!1),"refresh"==e){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==e){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var e=this;if(e.__refreshActive){e.__refreshActive=!1;var t=function(){e.__refreshBeforeDeactiveEnd&&e.__refreshBeforeDeactiveEnd(),e.__refreshBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__refreshBeforeDeactivate?e.__refreshBeforeDeactivate(t):t()}if(e.__loadActive){e.__loadActive=!1;var o=function(){e.__loadBeforeDeactiveEnd&&e.__loadBeforeDeactiveEnd(),e.__loadBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__loadBeforeDeactivate?e.__loadBeforeDeactivate(o):o()}},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,t,o,i,r){var n=this;if(!n.options.zooming)throw new Error("Zooming is not enabled!");r&&(n.__zoomComplete=r),n.__isDecelerating&&(Be.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1);var l=n.__zoomLevel;null==o&&(o=n.__clientWidth/2),null==i&&(i=n.__clientHeight/2),e=Math.max(Math.min(e,n.options.maxZoom),n.options.minZoom),n.__computeScrollMax(e);var s=(o+n.__scrollLeft)*e/l-o,a=(i+n.__scrollTop)*e/l-i;s>n.__maxScrollLeft?s=n.__maxScrollLeft:s<0&&(s=0),a>n.__maxScrollTop?a=n.__maxScrollTop:a<0&&(a=0),n.__publish(s,a,e,t)},zoomBy:function(e,t,o,i,r){var n=this;n.zoomTo(n.__zoomLevel*e,t,o,i,r)},scrollTo:function(e,t,o,i,r,n,l){var s=this;if(s.__isDecelerating&&(Be.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");e*=i,t*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?e=Math.round(e/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(e=Math.round(e/s.__snapWidth)*s.__snapWidth):e=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?t=Math.round(t/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(t=Math.round(t/s.__snapHeight)*s.__snapHeight):t=s.__scrollTop,r||(e=Math.max(Math.min(s.__maxScrollLeft,e),0),t=Math.max(Math.min(s.__maxScrollTop,t),0)),e===s.__scrollLeft&&t===s.__scrollTop&&(o=!1),s.__isTracking||s.__publish(e,t,i,o,n,l)},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=this,n=e>0?.97:1.03;return r.zoomTo(r.__zoomLevel*n,!1,o-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(e,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var o,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Be.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Be.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var n=1===e.length;n?(o=e[0].pageX,i=e[0].pageY):(o=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2),r.__initialTouchLeft=o,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=o,r.__lastTouchTop=i,r.__lastTouchMove=t,r.__lastScale=1,r.__enableScrollX=!n&&r.options.scrollingX,r.__enableScrollY=!n&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!n,r.__isSingleTouch=n,r.__positions=[]},doTouchMove:function(e,t,o){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var i=this;if(i.__isTracking){var r,n;2===e.length?(r=Math.abs(e[0].pageX+e[1].pageX)/2,n=Math.abs(e[0].pageY+e[1].pageY)/2):(r=e[0].pageX,n=e[0].pageY);var l=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,a=n-i.__lastTouchTop,c=i.__scrollLeft,h=i.__scrollTop,u=i.__zoomLevel;if(null!=o&&i.options.zooming){var d=u;if(u=u/i.__lastScale*o,u=Math.max(Math.min(u,i.options.maxZoom),i.options.minZoom),d!==u){var _=r-i.__clientLeft,f=n-i.__clientTop;c=(_+c)*u/d-_,h=(f+h)*u/d-f,i.__computeScrollMax(u)}}var p=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var v=i.__maxScrollLeft;(c>v||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-p.left,c),v+p.right))}if(i.__enableScrollY){h-=a*this.options.speedMultiplier;var m=i.__maxScrollTop;(h>m||h<0)&&(h+=a/2*this.options.speedMultiplier,h=Math.min(Math.max(-p.top,h),m+p.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&h<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&h>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&h>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&h<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}l.length>60&&l.splice(0,30),l.push(c,h,t),i.__publish(c,h,u)}else{var g=i.options.locking?3:0,b=5,S=Math.abs(r-i.__initialTouchLeft),y=Math.abs(n-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&S>=g,i.__enableScrollY=i.options.scrollingY&&y>=g,l.push(i.__scrollLeft,i.__scrollTop,t),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(S>=b||y>=b),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=n,i.__lastTouchMove=t,i.__lastScale=o}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var t=this;if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging)if(t.__isDragging=!1,t.__isSingleTouch&&t.options.animating&&e-t.__lastTouchMove<=100){for(var o=t.__positions,i=o.length-1,r=i,n=i;n>0&&o[n]>t.__lastTouchMove-100;n-=3)r=n;if(r!==i){var l=o[i]-o[r],s=t.__scrollLeft-o[r-2],a=t.__scrollTop-o[r-1];t.__decelerationVelocityX=s/l*(1e3/60),t.__decelerationVelocityY=a/l*(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 e-t.__lastTouchMove>100&&t.__scrollComplete();t.__isDecelerating||(t.__refreshActive&&t.__refreshStart?(t.__publish(t.__scrollLeft,-t.__refreshHeight,t.__zoomLevel,!0),t.__refreshStart&&t.__refreshStart()):t.__loadActive&&t.__loadStart?(t.__publish(t.__scrollLeft,t.__maxScrollTop+t.__loadHeight,t.__zoomLevel,!0),t.__loadStart&&t.__loadStart()):((t.__interruptedAnimation||t.__isDragging)&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,!0,t.__zoomLevel),t.__refreshActive?(t.__refreshActive=!1,t.__refreshDeactivate&&t.__refreshDeactivate()):t.__loadActive&&(t.__loadActive=!1,t.__loadDeactivate&&t.__loadDeactivate()))),t.__positions.length=0}},onScroll:X,stop:function(){var e=this;e.__disable=!0},start:function(){var e=this;e.__disable=!0},__publish:function(e,t,o,i,r,n){var l=this;if(!l.__disable){isNaN(e)&&(e=this.__scrollLeft),isNaN(t)&&(t=this.__scrollTop);var s=l.__isAnimating;if(s&&(Be.effect.Animate.stop(s),l.__isAnimating=!1),i&&(l.options.animating||r)){l.__scheduledLeft=e,l.__scheduledTop=t,l.__scheduledZoom=o;var a=l.__scrollLeft,c=l.__scrollTop,h=l.__zoomLevel,u=e-a,d=t-c,_=o-h,f=function(e,t,o){o&&(l.__scrollLeft=a+u*e,l.__scrollTop=c+d*e,l.__zoomLevel=h+_*e,l.__callback&&(l.__callback(l.__scrollLeft,l.__scrollTop,l.__zoomLevel),l.onScroll()))},p=function(e){return l.__isAnimating===e},v=function(e,t,o){t===l.__isAnimating&&(l.__isAnimating=!1),(l.__didDecelerationComplete||o)&&l.__scrollComplete(),l.options.zooming&&(l.__computeScrollMax(),l.__zoomComplete&&(l.__zoomComplete(),l.__zoomComplete=null)),l.__refreshBeforeDeactiveStarted&&(l.__refreshBeforeDeactiveStarted=!1,l.__refreshDeactivate&&l.__refreshDeactivate()),l.__loadBeforeDeactiveStarted&&(l.__loadBeforeDeactiveStarted=!1,l.__loadDeactivate&&l.__loadDeactivate())},m=Oe;n&&(m=ie(n,re)),l.__isAnimating=Be.effect.Animate.start(f,p,v,r||l.options.animationDuration,s?m:ze)}else l.__scheduledLeft=l.__scrollLeft=e,l.__scheduledTop=l.__scrollTop=t,l.__scheduledZoom=l.__zoomLevel=o,l.__callback&&(l.__callback(e,t,o),l.onScroll()),l.options.zooming&&(l.__computeScrollMax(),l.__zoomComplete&&(l.__zoomComplete(),l.__zoomComplete=null)),l.__refreshBeforeDeactiveStarted&&(l.__refreshBeforeDeactiveStarted=!1,l.__refreshDeactivate&&l.__refreshDeactivate()),l.__loadBeforeDeactiveStarted&&(l.__loadBeforeDeactiveStarted=!1,l.__loadDeactivate&&l.__loadDeactivate())}},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0)},__computePage:function(){var e=this,t=e.__clientWidth,o=e.__clientHeight,i=e.__scrollLeft,r=e.__scrollTop;e.__totalXPage=Math.ceil(e.__contentWidth/t),e.__currentPageX=Math.ceil(i/t+1),e.__totalYPage=Math.ceil(e.__contentHeight/o),e.__currentPageY=Math.ceil(r/o+1)},__scrollComplete:function(){var e=this;e.options.scrollingComplete()},__startDeceleration:function(){var e=this;if(e.options.paging){var t=Math.max(Math.min(e.__scrollLeft,e.__maxScrollLeft),0),o=Math.max(Math.min(e.__scrollTop,e.__maxScrollTop),0),i=e.__clientWidth,r=e.__clientHeight;e.__minDecelerationScrollLeft=Math.floor(t/i)*i,e.__minDecelerationScrollTop=Math.floor(o/r)*r,e.__maxDecelerationScrollLeft=Math.ceil(t/i)*i,e.__maxDecelerationScrollTop=Math.ceil(o/r)*r}else e.__minDecelerationScrollLeft=0,e.__minDecelerationScrollTop=0,e.__maxDecelerationScrollLeft=e.__maxScrollLeft,e.__maxDecelerationScrollTop=e.__maxScrollTop;var n=function(t,o,i){e.__stepThroughDeceleration(i)},l=e.options.snapping?4:.001,s=function(){var t=Math.abs(e.__decelerationVelocityX)>=l||Math.abs(e.__decelerationVelocityY)>=l;return t||(e.__didDecelerationComplete=!0),t},a=function(){e.__isDecelerating&&(e.__isDecelerating=!1,e.__didDecelerationComplete&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,e.options.snapping))};e.__isDecelerating=Be.effect.Animate.start(n,s,a)},__stepThroughDeceleration:function(e){var t=this,o=t.options.bouncing,i=t.__minDecelerationScrollLeft,r=t.__maxDecelerationScrollLeft,n=t.__minDecelerationScrollTop,l=t.__maxDecelerationScrollTop,s=t.__scrollLeft+t.__decelerationVelocityX,a=t.__scrollTop+t.__decelerationVelocityY,c=s<i||s>r,h=a<n||a>l,u=Math.min(Math.max(i-o.left,s),r+o.right),d=Math.min(Math.max(n-o.top,a),l+o.bottom);if(e?t.__publish(u,d,t.__zoomLevel):(t.__scrollLeft=s,t.__scrollTop=a),!t.options.paging){var _=.95;t.__decelerationVelocityX*=_,t.__decelerationVelocityY*=_}var f=0,p=0,v=t.options.penetrationDeceleration,m=t.options.penetrationAcceleration;c&&(s<t.__minDecelerationScrollLeft?f=t.__minDecelerationScrollLeft-s:s>t.__maxDecelerationScrollLeft&&(f=t.__maxDecelerationScrollLeft-s)),h&&(a<t.__minDecelerationScrollTop?p=t.__minDecelerationScrollTop-a:a>t.__maxDecelerationScrollTop&&(p=t.__maxDecelerationScrollTop-a)),0!==f&&(f*t.__decelerationVelocityX<=0?(t.__decelerationVelocityX+=f*v,f<0&&-f>=o.right&&t.__decelerationVelocityX>0&&(t.__decelerationVelocityX=-o.right/2),f>0&&f>=o.left&&t.__decelerationVelocityX<0&&(t.__decelerationVelocityX=o.left/2)):t.__decelerationVelocityX=f*m),0!==p&&(p*t.__decelerationVelocityY<=0?(t.__decelerationVelocityY+=p*v,p<0&&-p>=o.bottom&&t.__decelerationVelocityY>0&&(t.__decelerationVelocityY=-o.bottom/2),p>0&&p>=o.top&&t.__decelerationVelocityY<0&&(t.__decelerationVelocityY=o.top/2)):t.__decelerationVelocityY=p*m/2)}};for(var Pe in Me)Ee.prototype[Pe]=Me[Pe];function Ce(e,t,o,i){if("position"==i)return function(t,o){e.style.left=-t+"px",e.style.top=-o+"px"};var r,n=S(t),l=document.createElement("div"),s=n+"Perspective",a="transform";return l.style[s]!==r?function(t,i,r){e.style[a]="translate3d("+-t+o+","+-i+o+",0) scale("+r+")"}:l.style[a]!==r?function(t,i,r){e.style[a]="translate("+-t+o+","+-i+o+") scale("+r+")"}:void 0}var Ae=new h;function Re(e,t,o,i,r,n){var l=null,s=!1,a=Ae.getTouchObject();function c(e){var i=Ae.getEventObject(e);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||t.__disable||(o("mousedown"),s=!0,t.doTouchStart(i,e.timeStamp),r&&e.preventDefault(),e.stopPropagation(),document.addEventListener(a.touchmove,h,{passive:!1}))}function h(e){if(!t.__disable&&s){var i=Ae.getEventObject(e);o("mousemove"),t.doTouchMove(i,e.timeStamp,e.scale),n&&e.preventDefault()}}function u(e){o("mouseup"),s=!1,t.doTouchEnd(e.timeStamp),document.removeEventListener(a.touchmove,h)}function d(e){t.doTouchEnd(e.timeStamp)}function _(e){t.doMouseZoom(e.detail?-120*e.detail:e.wheelDelta,e.timeStamp,e.pageX,e.pageY)}return e.addEventListener(a.touchstart,c,!1),document.addEventListener(a.touchend,u,!1),document.addEventListener(a.touchcancel,d,!1),i&&!Ae.isTouch&&e.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",_,!1),l=function(){e.removeEventListener(a.touchstart,c,!1),document.removeEventListener(a.touchend,u,!1),document.removeEventListener(a.touchcancel,d,!1),e.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",_,!1)},t.onScroll=function(){o("onscroll")},l}function He(e,t,o,i){var r=o.$listeners,n=function(){o.vuescroll.state[t]="active",o.$emit(e+"-activate",o,i)},l=function(){o.vuescroll.state[t]="deactive",o.$emit(e+"-deactivate",o,i)},s=function(){o.vuescroll.state[t]="beforeDeactiveEnd",o.$emit(e+"-before-deactivate-end",o,i)},a=function(){o.vuescroll.state[t]="start",setTimeout((function(){o.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[e+"-before-deactivate"]&&(c=function(r){o.vuescroll.state[t]="beforeDeactive",o.$emit(e+"-before-deactivate",o,i,r.bind(o.scroller))}),r[e+"-start"]&&(a=function(){o.vuescroll.state[t]="start",o.$emit(e+"-start",o,i,o.scroller.finishRefreshOrLoad.bind(o.scroller))}),{activateCallback:n,deactivateCallback:l,startCallback:a,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}E();var $e={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var e=this.$el.clientWidth,t=this.$el.clientHeight,o=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,n=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var l=this.$refs[W].elm||this.$refs[W];r=l.offsetHeight,l.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[N].elm||this.$refs[N];n=s.offsetHeight,i-=n,s.style.bottom="-"+n+"px"}this.scroller&&this.scroller.setDimensions(e,t,o,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.left,i=void 0===o?0:o,r=t.top,l=void 0===r?0:r,s=t.zoom,a=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,h=c.preventDefault,u=c.preventDefaultOnMove,d=this.mergedOptions.vuescroll,_=d.paging,f=d.snapping.enable,p=d.renderMethod,v=d.zooming,m=d.locking;v=!this.refreshLoad&&!_&&!f&&v;var g=this.mergedOptions.scrollPanel,b=g.scrollingY,S=g.scrollingX,y=this.scrollingComplete.bind(this);this.scroller=new Ee(Ce(this.scrollPanelElm,window,"px",p),n({},this.mergedOptions.vuescroll.scroller,{zooming:v,scrollingY:b,scrollingX:S&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:_,snapping:f,scrollingComplete:y,locking:m})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=l,this.scroller.__zoomLevel=a,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var w=this.$el.getBoundingClientRect();this.scroller.setPosition(w.left+this.$el.clientLeft,w.top+this.$el.clientTop);var T=Re(this.$el,this.scroller,(function(t){switch(t){case"mousedown":e.vuescroll.state.isDragging=!0;break;case"onscroll":var o=e.vuescroll.state["loadStage"],i=e.mergedOptions.vuescroll.pushLoad,r=i.enable,n=i.auto,l=i.autoLoadDistance,s=e.scroller,a=s.__scrollTop,c=s.__maxScrollTop;"start"!=o&&r&&n&&!e.lockAutoLoad&&l>=c-a&&a>0&&(e.lockAutoLoad=!0,e.triggerRefreshOrLoad("load")),l<c-a&&(e.lockAutoLoad=!1),e.handleScroll(!1);break;case"mouseup":e.vuescroll.state.isDragging=!1;break}}),v,h,u);return this.updateScroller(),T},updateSlideModeBarState:function(){var e=void 0,t=void 0,o=this.$el,i=this.scroller,r=0,n=0,l=this.$el,s=l.clientWidth,a=l.clientHeight,c=s+this.scroller.__maxScrollLeft,h=a+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__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=s/(c+r);var u=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),d=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*(d+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="refresh"==e?W:N,o="refresh"==e?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==e?"refreshStage":"loadStage",r=this.$refs[t].elm||this.$refs[t],n=He(e,i,this,r),l=r.offsetHeight;o.bind(this.scroller)(l,n)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},Ve={methods:{updateNativeModeBarState:function(){var e=this.scrollPanelElm,t="percent"==this.vuescroll.state.currentSizeStrategy,o=this.vuescroll.state,i=o.width,r=o.height,n=t||!i?e.clientWidth:i.slice(0,-2),l=t||!r?e.clientHeight:r.slice(0,-2),s=l/e.scrollHeight,a=n/e.scrollWidth;this.bar.vBar.state.posValue=100*e.scrollTop/l,this.bar.hBar.state.posValue=100*e.scrollLeft/n,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=a<1?a:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(e,t){return window.getComputedStyle(e)[t]},checkScrollable:function(e,t,o){var i=!1,r=e.target?e.target:e;while(r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName)){var n=this.css(r,"overflow")||"";if(/scroll|auto/.test(n)){var l=this.getScrollProcess(r),s=l.v,a=l.h,c="hidden"!==this.css(r,"overflowX"),h="hidden"!==this.css(r,"overflowY");if(c&&(t<0&&a>0||t>0&&a<1)||h&&(o<0&&s>0||o>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(e){var t=this.mergedOptions.vuescroll,o=t.wheelDirectionReverse,i=t.wheelScrollDuration,r=t.checkShiftKey,n=t.locking,l=void 0,s=void 0;e.wheelDelta?e.deltaY||e.deltaX?(l=e.deltaX,s=e.deltaY,n&&(Math.abs(e.deltaX)>Math.abs(e.deltaY)?s=0:l=0)):(l=0,s=-1*e.wheelDelta/2):e.detail&&(s=l=16*e.detail,1==e.axis?s=0:2==e.axis&&(l=0)),r&&e.shiftKey&&(l^=s,s^=l,l^=s),o&&(l^=s,s^=l,l^=s),this.checkScrollable(e,l,s)&&(e.stopPropagation(),e.preventDefault(),this.scrollBy({dx:l,dy:s},i))}},computed:{scrollContentElm:function(){return this.$refs["scrollContent"]._isVue?this.$refs["scrollContent"].$el:this.$refs["scrollContent"]}}},Xe=[$e,Ve],Ye=[ye].concat(l(Xe)),We={mixins:Ye,mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(e){this.scroller&&(this.scroller.__disable=e)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(e){this.updateBarStateAndEmitEvent("handle-scroll",e)},updateBarStateAndEmitEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}e&&this.emitEvent(e,t),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=e&&"handle-resize"!=e&&"refresh-status"!=e&&"window-resize"!=e&&"options-change"!=e||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var e=this.scrollPanelElm,t=e.scrollHeight,o=e.scrollWidth,i=e.clientHeight,r=e.clientWidth,n=e.scrollTop,l=e.scrollLeft;"slide"==this.mode&&(t=this.scroller.__contentHeight,o=this.scroller.__contentWidth,n=this.scroller.__scrollTop,l=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth);var s=Math.min(n/(t-i||1),1),a=Math.min(l/(o-r||1),1);return{v:s,h:a}},emitEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=this.scrollPanelElm,i=o.scrollTop,r=o.scrollLeft,n={type:"vertical"},l={type:"horizontal"},s=this.getScrollProcess(),a=s.v,c=s.h;n["process"]=a,l["process"]=c,n["barSize"]=this.bar.vBar.state.size,l["barSize"]=this.bar.hBar.state.size,n["scrollTop"]=i,l["scrollLeft"]=r,this.$emit(e,n,l,t)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var e=void 0;this.scroller&&(e=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(e):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var e=this,t=this.mergedOptions.vuescroll.detectResize,o=!1;if(this.lastMode!=this.mode&&(o=!0,this.lastMode=this.mode),(!this.destroyResize||!t||o)&&(this.destroyResize&&this.destroyResize(),t)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,n=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},l=function(){var t={};"slide"==e.mode?(t["width"]=e.scroller.__contentWidth,t["height"]=e.scroller.__contentHeight,e.updateBarStateAndEmitEvent("handle-resize",t),e.updatedCbs.push(e.updateScroller),e.$forceUpdate()):"native"==e.mode&&(t["width"]=e.scrollPanelElm.scrollWidth,t["height"]=e.scrollPanelElm.scrollHeight,e.updateBarStateAndEmitEvent("handle-resize",t)),e.setVsSize()};window.addEventListener("resize",n,!1);var s=ge(i,l),a=function(){window.removeEventListener("resize",n,!1)};this.destroyResize=function(){a(),s(),e.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},Ne={vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}};function Ie(e){var t=!1,o=e.vuescroll;return o.paging==o.snapping.enable&&o.paging&&(o.pullRefresh||o.pushLoad)&&m("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),t}var je={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0}},Ze={vuescroll:{mode:"native"}};function qe(e){var t=!1,o=e.vuescroll;return~V.indexOf(o.mode)||(m("Unknown mode: "+o.mode+',the vuescroll\'s option "mode" should be one of the '+V),t=!0),t}var Fe=[Ze,Ne,je],Qe=[qe,Ie],Ue=te(We,me,Fe,Qe);function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.name||Ue.name,Ue),e.prototype.$vuescrollConfig=t.ops||{}}var Je=n({install:Ke,version:"4.17.3",refreshAll:C,scrollTo:ae},Ue);return"undefined"!==typeof window&&window.Vue&&window.Vue.use(Je),Je}))}}]);
//# sourceMappingURL=npm.vuescroll.f8097d76.js.map