(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59ef5786"],{"37b7":function(t,e,o){"use strict";var i=o("42de"),s=o.n(i);s.a},"42de":function(t,e,o){},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,o){var i=o("1d80"),s=o("5899"),r="["+s+"]",n=RegExp("^"+r+r+"*"),h=RegExp(r+r+"*$"),l=function(t){return function(e){var o=String(i(e));return 1&t&&(o=o.replace(n,"")),2&t&&(o=o.replace(h,"")),o}};t.exports={start:l(1),end:l(2),trim:l(3)}},7156:function(t,e,o){var i=o("861d"),s=o("d2bb");t.exports=function(t,e,o){var r,n;return s&&"function"==typeof(r=e.constructor)&&r!==o&&i(n=r.prototype)&&n!==o.prototype&&s(t,n),t}},a7ac:function(t,e,o){"use strict";var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"nav-bar"},[o("div",{staticClass:"left"},[t._t("left")],2),o("div",{staticClass:"center"},[t._t("center")],2),o("div",{staticClass:"right"},[t._t("right")],2)])},s=[],r={name:"NavBar"},n=r,h=(o("37b7"),o("2877")),l=Object(h["a"])(n,i,s,!1,null,"cfeec936",null);e["a"]=l.exports},a9e3:function(t,e,o){"use strict";var i=o("83ab"),s=o("da84"),r=o("94ca"),n=o("6eeb"),h=o("5135"),l=o("c6b6"),a=o("7156"),c=o("c04e"),p=o("d039"),u=o("7c73"),d=o("241c").f,f=o("06cf").f,g=o("9bf2").f,y=o("58a8").trim,v="Number",m=s[v],k=m.prototype,T=l(u(k))==v,b=function(t){var e,o,i,s,r,n,h,l,a=c(t,!1);if("string"==typeof a&&a.length>2)if(a=y(a),e=a.charCodeAt(0),43===e||45===e){if(o=a.charCodeAt(2),88===o||120===o)return NaN}else if(48===e){switch(a.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+a}for(r=a.slice(2),n=r.length,h=0;hs)return NaN;return parseInt(r,i)}return+a};if(r(v,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,P=function(t){var e=arguments.length<1?0:t,o=this;return o instanceof P&&(T?p((function(){k.valueOf.call(o)})):l(o)!=v)?a(new m(b(e)),o,P):b(e)},S=i?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;S.length>x;x++)h(m,w=S[x])&&!h(P,w)&&g(P,w,f(m,w));P.prototype=k,k.constructor=P,n(s,v,P)}},f40f:function(t,e,o){"use strict"; /*! * better-scroll / better-scroll * (c) 2016-2020 ustbhuangyi * Released under the MIT License. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)};function s(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o0&&s[s.length-1])&&(6===r[0]||2===r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]0,g=function(){if("string"===typeof u){var t=/os (\d\d?_\d(_\d)?)/,e=t.exec(u);if(!e)return!1;var o=e[1].split("_").map((function(t){return parseInt(t,10)}));return!!(o[0]>=13&&o[1]>=4)}return!1}();function y(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var v=function(t,e){for(var o in e)t[o]=e[o];return t};function m(t){return void 0===t||null===t}function k(t,e){return Math.sqrt(t*t+e*e)}function T(t,e,o){return to?o:t}var b=p&&document.createElement("div").style,w=function(){if(!p)return!1;for(var t=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,o=t;edocument.documentElement.clientWidth-l||h>document.documentElement.clientHeight-l||n0),this.transitionTimingFunction(i),this.transitionProperty(),this.transitionTime(o),this.translate(e),o&&3===this.options.probeType&&this.startProbe(),o||(this._reflow=this.content.offsetHeight,this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),t){this.setPending(!1),J(this.timer);var e=this.translater.getComputedPosition(),o=e.x,i=e.y;if(this.transitionTime(),this.translate({x:o,y:i}),this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,{x:o,y:i}))return!0;this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:o,y:i})}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(ut),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.move=function(t,e,o,i){if(!o)return this.translate(e),this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e);this.animate(t,e,o,i)},e.prototype.animate=function(t,e,o,i){var s=this,r=y(),n=r+o,h=function(){var l=y();if(l>=n)return s.translate(e),s.hooks.trigger(s.hooks.eventTypes.move,e),void s.hooks.trigger(s.hooks.eventTypes.end,e);l=(l-r)/o;var a=i(l),c={};Object.keys(e).forEach((function(o){var i=t[o],s=e[o];c[o]=(s-i)*a+i})),s.translate(c),3===s.options.probeType&&s.hooks.trigger(s.hooks.eventTypes.move,c),s.pending&&(s.timer=$(h)),s.pending||s.forceStopped||(console.log(s.forceStopped),s.hooks.trigger(s.hooks.eventTypes.end,e))};this.setPending(!0),J(this.timer),h()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),t){this.setPending(!1),J(this.timer);var e=this.translater.getComputedPosition();if(this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,e))return!0;this.hooks.trigger(this.hooks.eventTypes.forceStop,e)}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(ut);function gt(t,e,o){var i=o.useTransition,s={};return Object.defineProperty(s,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),i?new dt(t,e,s):new ft(t,e,s)}var yt,vt,mt,kt,Tt=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new st(["beforeComputeBoundary","computeBoundary","momentum","end"]),this.content=this.wrapper.children[0],this.currentPos=0,this.startPos=0,this.refresh()}return t.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},t.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},t.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},t.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},t.prototype.performDampingAlgorithm=function(t,e){var o=this.currentPos+t;return(o>this.minScrollPos||othis.minScrollPos&&this.options.bounces[0]||othis.minScrollPos?this.minScrollPos:this.maxScrollPos),o},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&tthis.options.momentumLimitDistance){var i=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,i,s,r,n){void 0===n&&(n=this.options);var h=t-e,l=Math.abs(h)/o,a=n.deceleration,c=n.swipeBounceTime,p=n.swipeTime,u={destination:t+l/a*(h<0?-1:1),duration:p,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,u,h),u.destinations&&(u.destination=r?Math.min(s+r/4,s+r/u.rate*l):s,u.duration=c),u.destination=Math.round(u.destination),u},t.prototype.updateDirection=function(){var t=Math.round(this.currentPos)-this.absStartPos;this.setDirection(t)},t.prototype.refresh=function(){var t=this.options.rect,e=t.size,o=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,s=I(this.wrapper);this.wrapperSize=s[e];var r=I(this.content);this.contentSize=r[e],this.relativeOffset=r[o],i&&(this.relativeOffset-=s[o]),this.computeBoundary(),this.setDirection(0)},t.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,t.minScrollPos=-this.relativeOffset),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPosthis.minScrollPos?e=this.minScrollPos:ee+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},t.prototype.handleEventPassthrough=function(t){var e=wt[this.directionLocked];if(e){if(this.eventPassthrough===e["yes"])return bt["yes"](t);if(this.eventPassthrough===e["no"])return bt["no"](t)}return!1},t}(),St=function(){function t(t,e,o,i,s){this.hooks=new st(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=i,this.options=s,this.directionLockAction=new Pt(s.directionLockThreshold,s.freeScroll,s.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(e){return!t.enabled||t.handleStart(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(e){var o=e.deltaX,i=e.deltaY,s=e.e;return!t.enabled||t.handleMove(o,i,s)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(e){return!t.enabled||t.handleEnd(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(e){t.enabled&&!e._constructed&&t.handleClick(e)}))},t.prototype.handleStart=function(t){var e=y();this.moved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var i=this.scrollBehaviorX.getAbsDist(t),s=this.scrollBehaviorY.getAbsDist(e),r=y();if(this.checkMomentum(i,s,r))return!0;if(this.directionLockAction.checkMovingDirection(i,s,o))return this.actionsHandler.setInitiated(),!0;var n=this.directionLockAction.adjustDelta(t,e),h=this.scrollBehaviorX.move(n.deltaX),l=this.scrollBehaviorY.move(n.deltaY);this.moved||(this.moved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.animater.translate({x:h,y:l}),this.dispatchScroll(r)}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e1&&ti||e>i))return!0},t.prototype.momentum=function(t,e){var o={time:0,easing:j.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),s=this.scrollBehaviorY.end(e);if(o.newX=m(i.destination)?o.newX:i.destination,o.newY=m(s.destination)?o.newY:s.destination,o.time=Math.max(i.duration,s.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newXthis.scrollBehaviorY.minScrollPos||o.newY0?-1:s<0?1:0,l=r>0?-1:r<0?1:0;return{x:s,y:r,directionX:h,directionY:l}},t.prototype.beforeHandler=function(t){var e=this.scroll.options,o=e.preventDefault,i=e.stopPropagation,s=e.preventDefaultException;o&&!L(t.target,s)&&t.preventDefault(),i&&t.stopPropagation()},t.prototype.getEaseTime=function(){var t=100,e=this.mouseWheelOpt.easeTime;return ee.minScrollPos||e.currentPoso.minScrollPos||o.currentPos0&&(e.maxScrollPos=-1),e.minScrollPos=t.currentMinScrollY})),this.scroll.eventTypes.alterOptions&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,(function(t){var e=300,o=350;t.discreteTime=e,t.easeTime=o})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(){e.hooks.trigger(e.hooks.eventTypes.end)})))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.watch=function(){var t=this.scroll.scroller;this.watching=!0,this.registerHooks(t.hooks,t.hooks.eventTypes.end,this.checkPullDown)},t.prototype.unwatch=function(){var t=this.scroll.scroller;this.watching=!1,t.hooks.off(t.hooks.eventTypes.end,this.checkPullDown)},t.prototype.checkPullDown=function(){var t=this.options,e=t.threshold,o=t.stop;return!(-1!==this.scroll.directionY||this.scroll.y0&&(t.maxScrollPos=-1)}))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},t.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},t.prototype.checkPullUp=function(t){var e=this,o=this.options.threshold;1===this.scroll.movingDirectionY&&t.y<=this.scroll.maxScrollY+o&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){e.pulling=!1})),this.unwatch(),this.scroll.trigger(Wt))},t.prototype.finishPullUp=function(){var t=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){t.watch()})):this.watch()},t.prototype.openPullUp=function(t){void 0===t&&(t={}),this.handleOptions(t),this.watch()},t.prototype.closePullUp=function(){this.unwatch()},t.prototype.autoPullUpLoad=function(){var t=this.options.threshold,e=this.scroll.scroller.scrollBehaviorY;if(!this.pulling&&this.watching){var o=-1,i=e.maxScrollPos+t+o;this.scroll.scroller.scrollBehaviorY.setMovingDirection(o),this.scroll.scrollTo(this.scroll.x,i,this.scroll.options.bounceTime)}},t.pluginName="pullUpLoad",t}(),Ut=function(){function t(t,e){this.indicator=t,this.options=e,this.bscroll=t.bscroll,this.startEventRegister=new rt(this.indicator.el,[{name:e.disableMouse?"touchstart":"mousedown",handler:this._start.bind(this)}]),this.endEventRegister=new rt(window,[{name:e.disableMouse?"touchend":"mouseup",handler:this._end.bind(this)}]),this.hooks=new st(["touchStart","touchMove","touchEnd"])}return t.prototype._start=function(t){if(this.bscroll.scroller.actions.enabled){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.initiated=!0,this.moved=!1,this.lastPoint=e[this.indicator.keysMap.pointPos];var o=this.bscroll.options.disableMouse;this.moveEventRegister=new rt(window,[{name:o?"touchmove":"mousemove",handler:this._move.bind(this)}]),this.hooks.trigger("touchStart")}},t.prototype._move=function(t){var e=t.touches?t.touches[0]:t,o=e[this.indicator.keysMap.pointPos];t.preventDefault(),t.stopPropagation();var i=o-this.lastPoint;if(this.lastPoint=o,!this.moved)return this.hooks.trigger("touchMove",this.moved,i),void(this.moved=!0);this.hooks.trigger("touchMove",this.moved,i)},t.prototype._end=function(t){this.initiated&&(this.initiated=!1,t.preventDefault(),t.stopPropagation(),this.moveEventRegister.destroy(),this.hooks.trigger("touchEnd",this.moved))},t.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister&&this.moveEventRegister.destroy(),this.endEventRegister.destroy()},t}(),Vt=8,jt=function(){function t(t,e){this.bscroll=t,this.options=e,this.keyVals={sizeRatio:1,maxPos:0,initialSize:0},this.curPos=0,this.hooksHandlers=[],this.wrapper=e.wrapper,this.wrapperStyle=this.wrapper.style,this.el=this.wrapper.children[0],this.elStyle=this.el.style,this.bscroll=t,this.direction=e.direction,this.keysMap=this._getKeysMap(),e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this._listenHooks(e.fade,e.interactive),this.refresh()}return t.prototype._listenHooks=function(t,e){var o=this,i=this.bscroll,s=i,r=i.scroller.translater.hooks,n=i.scroller.animater.hooks;if(this._listen(s,"refresh",this.refresh),this._listen(r,"translate",this.updatePosAndSize),this._listen(n,"time",(function(t){o.setTransitionTime(t)})),this._listen(n,"timeFunction",(function(t){o.setTransitionTimingFunction(t)})),t&&(this._listen(s,"scrollEnd",(function(){o.fade()})),this._listen(s,"scrollStart",(function(){o.fade(!0)})),i.eventTypes.mousewheelStart&&i.eventTypes.mousewheelEnd&&(this._listen(s,"mousewheelStart",(function(){o.fade(!0)})),this._listen(s,"mousewheelEnd",(function(){o.fade()})))),e){var h=this.bscroll.options.disableMouse;this.eventHandler=new Ut(this,{disableMouse:h});var l=this.eventHandler.hooks;this._listen(l,"touchStart",this.startHandler),this._listen(l,"touchMove",this.moveHandler),this._listen(l,"touchEnd",this.endHandler)}},t.prototype._getKeysMap=function(){return"vertical"===this.direction?{hasScroll:"hasVerticalScroll",size:"height",wrapperSize:"clientHeight",scrollerSize:"scrollerHeight",maxScroll:"maxScrollY",pos:"y",pointPos:"pageY",translate:"translateY"}:{hasScroll:"hasHorizontalScroll",size:"width",wrapperSize:"clientWidth",scrollerSize:"scrollerWidth",maxScroll:"maxScrollX",pos:"x",pointPos:"pageX",translate:"translateX"}},t.prototype.fade=function(t){var e=t?250:500;this.wrapperStyle[C.transitionDuration]=e+"ms",this.wrapperStyle.opacity=t?"1":"0",this.visible=t?1:0},t.prototype.refresh=function(){var t=this.keysMap.hasScroll;if(this._setShowBy(this.bscroll[t])){var e=this.keysMap,o=e.wrapperSize,i=e.scrollerSize,s=e.maxScroll;this.keyVals=this._refreshKeyValues(this.wrapper[o],this.bscroll[i],this.bscroll[s]),this.updatePosAndSize({x:this.bscroll.x,y:this.bscroll.y})}},t.prototype._setShowBy=function(t){return t?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},t.prototype._refreshKeyValues=function(t,e,o){var i=Math.max(Math.round(t*t/(e||t||1)),Vt),s=t-i,r=s/o;return{initialSize:i,maxPos:s,sizeRatio:r}},t.prototype.updatePosAndSize=function(t){var e=this._refreshPosAndSizeValue(t,this.keyVals),o=e.pos,i=e.size;this.curPos=o,this._refreshPosAndSizeStyle(i,o)},t.prototype._refreshPosAndSizeValue=function(t,e){var o,i=this.keysMap.pos,s=e.sizeRatio,r=e.initialSize,n=e.maxPos,h=Math.round(s*t[i]);return h<0?(o=Math.max(r+3*h,Vt),h=0):h>n?(o=Math.max(r-3*(h-n),Vt),h=n+r-o):o=r,{pos:h,size:o}},t.prototype._refreshPosAndSizeStyle=function(t,e){var o=this.keysMap,i=o.translate,s=o.size;this.elStyle[s]=t+"px",this.elStyle[C.transform]=i+"("+e+"px)"+this.bscroll.options.translateZ},t.prototype.setTransitionTime=function(t){void 0===t&&(t=0),this.elStyle[C.transitionDuration]=t+"ms"},t.prototype.setTransitionTimingFunction=function(t){this.elStyle[C.transitionTimingFunction]=t},t.prototype.startHandler=function(){this.setTransitionTime(),this.bscroll.trigger("beforeScrollStart")},t.prototype.moveHandler=function(t,e){t||this.bscroll.trigger("scrollStart");var o=this._calScrollDesPos(this.curPos,e,this.keyVals);"vertical"===this.direction?this.bscroll.scrollTo(this.bscroll.x,o):this.bscroll.scrollTo(o,this.bscroll.y),this.bscroll.trigger("scroll",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype._calScrollDesPos=function(t,e,o){var i=o.maxPos,s=o.sizeRatio,r=t+e;return r<0?r=0:r>i&&(r=i),Math.round(r/s)},t.prototype.endHandler=function(t){t&&this.bscroll.trigger("scrollEnd",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype.destroy=function(){this.options.interactive&&this.eventHandler.destroy(),this.wrapper.parentNode.removeChild(this.wrapper),this.hooksHandlers.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksHandlers.length=0},t.prototype._listen=function(t,e,o){t.on(e,o,this),this.hooksHandlers.push([t,e,o])},t}(),Zt=function(){function t(t){this.indicators=[],this.indicators=this.createIndicators(t),t.on(t.eventTypes.destroy,this.destroy,this)}return t.prototype.createIndicators=function(t){var e,o=this,i=t.options.scrollbar,s=i.fade,r=void 0===s||s,n=i.interactive,h=void 0!==n&&n,l={scrollX:"horizontal",scrollY:"vertical"},a=[];return Object.keys(l).forEach((function(i){var s=l[i];t.options[i]&&(e={wrapper:o.createIndicatorElement(s),direction:s,fade:r,interactive:h},t.wrapper.appendChild(e.wrapper),a.push(new jt(t,e)))})),a},t.prototype.createIndicatorElement=function(t){var e=document.createElement("div"),o=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",o.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",o.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(o),e},t.prototype.destroy=function(){for(var t=0,e=this.indicators;t=this.pages[o][0].cx)break;for(s=this.pages[o].length;i=this.pages[0][i].cy)break;return{pageX:o,pageY:i}},t.prototype.buildPagesMatrix=function(t,e){var o,i,s,r,n=[],h=0,l=0,a=this.scroll.scroller.scrollBehaviorX.maxScrollPos,c=this.scroll.scroller.scrollBehaviorY.maxScrollPos;i=Math.round(t/2),s=Math.round(e/2);while(h>-this.scrollerWidth){n[l]=[],r=0,o=0;while(o>-this.scrollerHeight)n[l][r]={x:Math.max(h,a),y:Math.max(o,c),width:t,height:e,cx:h-i,cy:o-s},o-=e,r++;h-=t,l++}return n},t}(),Gt={pageX:0,pageY:0,x:0,y:0},$t=function(){function t(t,e){this.scroll=t,this.slideOptions=e,this.slideX=!1,this.slideY=!1,this.currentPage=v({},Gt)}return t.prototype.refresh=function(){this.pagesMatrix=new qt(this.scroll);var t=this.currentPage,e=t.pageX,o=t.pageY,i=this.pagesMatrix.getPageStats(e,o),s=i.x,r=i.y;this.currentPage={pageX:e,pageY:o,x:s,y:r},this.checkSlideLoop()},t.prototype.setCurrentPage=function(t){this.currentPage=t},t.prototype.getInternalPage=function(t,e){t>=this.pagesMatrix.pageLengthOfX?t=this.pagesMatrix.pageLengthOfX-1:t<0&&(t=0),e>=this.pagesMatrix.pageLengthOfY?e=this.pagesMatrix.pageLengthOfY-1:e<0&&(e=0);var o=this.pagesMatrix.getPageStats(t,e),i=o.x,s=o.y;return{pageX:t,pageY:e,x:i,y:s}},t.prototype.getInitialPage=function(){var t=this.loopX?1:0,e=this.loopY?1:0,o=this.currentPage.pageX||t,i=this.currentPage.pageY||e,s=this.pagesMatrix.getPageStats(o,i),r=s.x,n=s.y;return{pageX:o,pageY:i,x:r,y:n}},t.prototype.getExposedPage=function(){var t=v({},this.currentPage);return this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2)),t},t.prototype.getWillChangedPage=function(t){return t=v({},t),this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2),t.x=this.pagesMatrix.getPageStats(t.pageX+1,0).x),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2),t.y=this.pagesMatrix.getPageStats(0,t.pageY+1).y),t},t.prototype.fixedPage=function(t,e){for(var o=[],i=0;i1&&(this.slideX=!0),this.pagesMatrix.pages[0]&&this.pagesMatrix.pageLengthOfY>1&&(this.slideY=!0),this.loopX=this.needLoop&&this.slideX,this.loopY=this.needLoop&&this.slideY,this.slideX&&this.slideY&&c("slide does not support two direction at the same time.")},t}(),Jt="plugins.slide",Qt=[{key:"next",name:"next"},{key:"prev",name:"prev"},{key:"goToPage",name:"goToPage"},{key:"getCurrentPage",name:"getCurrentPage"}],te=Qt.map((function(t){return{key:t.key,sourceKey:Jt+"."+t.name}})),ee=function(t,e){return t.pageX===e.pageX&&t.pageY===e.pageY},oe=function(){function t(t){this.scroll=t,this.resetLooping=!1,this.isTouching=!1,this.autoplayTimer=0,this.satisfyInitialization()&&this.init()}return t.prototype.satisfyInitialization=function(){return!(this.scroll.scroller.content.children.length<=0)||(c("slide need at least one slide page to be initialised.please check your DOM layout."),!1)},t.prototype.init=function(){this.willChangeToPage=v({},Gt),this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.createPages()},t.prototype.createPages=function(){this.pages=new $t(this.scroll,this.options)},t.prototype.handleBScroll=function(){this.scroll.registerType(["slideWillChange"]),this.scroll.proxy(te)},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.slide?{}:this.scroll.options.slide,e={loop:!0,threshold:.1,speed:400,easing:j.bounce,listenFlick:!0,autoplay:!0,interval:3e3};this.options=v(e,t)},t.prototype.handleLoop=function(){var t=this.options.loop;if(t){var e=this.scroll.scroller.content,o=e.children;o.length>1&&this.cloneFirstAndLastSlidePage(e)}},t.prototype.handleHooks=function(){var t=this,e=this.scroll.hooks,o=this.scroll.scroller.hooks,i=this.options.listenFlick;this.hooksFn=[],this.registerHooks(this.scroll,this.scroll.eventTypes.beforeScrollStart,this.pausePlay),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.modifyCurrentPage),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.startPlay),this.scroll.eventTypes.mousewheelMove&&(this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelMove,(function(){return!0})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(e){1!==e.directionX&&1!==e.directionY||t.next(),-1!==e.directionX&&-1!==e.directionY||t.prev()}))),this.registerHooks(e,e.eventTypes.refresh,this.refreshHandler),this.registerHooks(e,e.eventTypes.destroy,this.destroy),this.registerHooks(o,o.eventTypes.beforeRefresh,(function(){t.handleLoop(),t.setSlideInlineStyle()})),this.registerHooks(o,o.eventTypes.momentum,this.modifyScrollMetaHandler),this.registerHooks(o,o.eventTypes.beforeStart,this.setTouchFlag),this.registerHooks(o,o.eventTypes.scroll,this.scrollMoving),this.registerHooks(o,o.eventTypes.checkClick,this.startPlay),i&&this.registerHooks(o,o.eventTypes.flick,this.flickHandler)},t.prototype.startPlay=function(){var t=this,e=this.options,o=e.interval,i=e.autoplay;i&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=window.setTimeout((function(){t.next()}),o))},t.prototype.pausePlay=function(){this.options.autoplay&&clearTimeout(this.autoplayTimer)},t.prototype.setSlideInlineStyle=function(){var t=[{direction:"scrollX",sizeType:"offsetWidth",styleType:"width"},{direction:"scrollY",sizeType:"offsetHeight",styleType:"height"}],e=this.scroll.scroller,o=e.content,i=e.wrapper,s=this.scroll.options;t.forEach((function(t){var e=t.direction,r=t.sizeType,n=t.styleType;if(s[e]){for(var h=i[r],l=o.children,a=l.length,c=0;c2&&(U(t,e[e.length-1]),U(t,e[0]))},t.prototype.modifyCurrentPage=function(){if(this.isTouching=!1,this.options.loop)if(this.resetLooping)this.resetLooping=!1;else{var t=this.pages.resetLoopPage();if(t)return this.resetLooping=!0,this.goTo(t.pageX,t.pageY,0),!0;this.pageWillChangeTo(this.pages.currentPage)}},t.prototype.goTo=function(t,e,o,i){var s=this.pages.getInternalPage(t,e);if(s){var r=i||this.options.easing||j.bounce,n=s.x,h=s.y,l=n-this.scroll.scroller.scrollBehaviorX.currentPos,a=h-this.scroll.scroller.scrollBehaviorY.currentPos;(l||a)&&(o=void 0===o?this.getEaseTime(l,a):o,this.pages.setCurrentPage(s),this.pageWillChangeTo(this.pages.currentPage),this.scroll.scroller.scrollTo(n,h,o,r))}},t.prototype.flickHandler=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY,i=e.currentPos,s=e.startPos,r=e.direction,n=o.currentPos,h=o.startPos,l=o.direction,a=this.pages.currentPage,c=a.pageX,p=a.pageY,u=this.getEaseTime(i-s,n-h);this.goTo(c+r,p+l,u)},t.prototype.getEaseTime=function(t,e){return this.options.speed||Math.max(Math.max(Math.min(Math.abs(t),1e3),Math.min(Math.abs(e),1e3)),300)},t.prototype.modifyScrollMetaHandler=function(t){var e=this.nearestPage(t.newX,t.newY);t.time=this.getEaseTime(t.newX-e.x,t.newY-e.y),t.newX=e.x,t.newY=e.y,t.easing=this.options.easing||j.bounce,this.pages.setCurrentPage(e),this.pageWillChangeTo(this.pages.currentPage)},t.prototype.scrollMoving=function(t){if(this.isTouching){var e=this.nearestPage(t.x,t.y);this.pageWillChangeTo(e)}},t.prototype.pageWillChangeTo=function(t){var e=this.pages.getWillChangedPage(t);ee(this.willChangeToPage,e)||(this.willChangeToPage=e,this.scroll.trigger(this.scroll.eventTypes.slideWillChange,this.willChangeToPage))},t.prototype.setTouchFlag=function(){this.isTouching=!0},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.destroy=function(){var t=this.scroll.scroller.content,e=this.options,o=e.loop,i=e.autoplay;o&&this.removeClonedSlidePage(t),i&&clearTimeout(this.autoplayTimer),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.eventTypes[o]&&e.off(o,i)})),this.hooksFn.length=0},t.pluginName="slide",t}(),ie="plugins.wheel",se=[{key:"wheelTo",name:"wheelTo"},{key:"getSelectedIndex",name:"getSelectedIndex"}],re=se.map((function(t){return{key:t.key,sourceKey:ie+"."+t.name}})),ne={rate:4},he=function(){function t(t){this.scroll=t,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.refreshBoundary(),this.handleSelectedIndex()},t.prototype.handleBScroll=function(){this.scroll.proxy(re)},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.wheel?{}:this.scroll.options.wheel,e={wheelWrapperClass:"wheel-scroll",wheelItemClass:"wheel-item",rotate:25,adjustTime:400,selectedIndex:0,wheelDisabledItemClass:"wheel-disabled-item"};this.options=v(e,t)},t.prototype.handleHooks=function(){var t=this,e=this.scroll.scroller,o=e.actionsHandler,i=e.scrollBehaviorX,s=e.scrollBehaviorY,r=e.animater;this.scroll.hooks.on(this.scroll.hooks.eventTypes.beforeInitialScrollTo,(function(e){e.x=0,e.y=-t.selectedIndex*t.itemHeight})),e.hooks.on(e.hooks.eventTypes.checkClick,(function(){var e=Array.prototype.slice.call(t.items,0).indexOf(t.target);return-1===e||t.wheelToAfterClick(e,t.options.adjustTime,j.swipe),!0})),e.hooks.on(e.hooks.eventTypes.scrollTo,(function(e){e.y=t.findNearestValidWheel(e.y).y})),e.hooks.on(e.hooks.eventTypes.scrollToElement,(function(e,o){if(!V(e,t.options.wheelItemClass))return!0;o.top=t.findNearestValidWheel(o.top).y})),o.hooks.on(o.hooks.eventTypes.beforeStart,(function(e){t.target=e.target})),i.hooks.on(i.hooks.eventTypes.computeBoundary,(function(t){t.maxScrollPos=0,t.minScrollPos=0})),s.hooks.on(s.hooks.eventTypes.computeBoundary,(function(e){t.items=t.scroll.scroller.content.children,t.checkWheelAllDisabled(),t.itemHeight=t.items.length>0?s.contentSize/t.items.length:0,e.maxScrollPos=-t.itemHeight*(t.items.length-1),e.minScrollPos=0})),s.hooks.on(s.hooks.eventTypes.momentum,(function(e,o){e.rate=ne.rate,e.destination=t.findNearestValidWheel(e.destination).y;var i=1e3,s=800;o0){var o=-e*t.itemHeight;r.translate({x:0,y:o})}})),r.translater.hooks.on(r.translater.hooks.eventTypes.translate,(function(e){t.rotateX(e.y),t.selectedIndex=t.findNearestValidWheel(e.y).index}))},t.prototype.refreshBoundary=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY;e.refresh(),o.refresh()},t.prototype.handleSelectedIndex=function(){this.selectedIndex=this.options.selectedIndex},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.wheelTo=function(t,e,o){void 0===t&&(t=0),void 0===e&&(e=0);var i=-t*this.itemHeight,s=Math.round(this.scroll.y);return this.scroll.scrollTo(0,i,e,o),i===s},t.prototype.wheelToAfterClick=function(t,e,o){void 0===t&&(t=0),void 0===e&&(e=0);var i=this.wheelTo(t,e,o);if(i){var s=this.scroll.scroller.hooks;s.trigger(s.eventTypes.scrollEnd)}},t.prototype.transitionDuration=function(t){for(var e=0;e0?0:t=0){if(!V(i[e],s))break;e--}if(e<0){e=o;while(e<=i.length-1){if(!V(i[e],s))break;e++}}return e===i.length&&(e=o),{index:this.wheelItemsAllDisabled?-1:e,y:-e*this.itemHeight}},t.prototype.checkWheelAllDisabled=function(){var t=this.options.wheelDisabledItemClass,e=this.items;this.wheelItemsAllDisabled=!0;for(var o=0;o0){var t,e=y(),i=e+o,r=function(){var n=y();if(n>=i)return s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:a}),void J(t);var h=j.bounce.fn((n-e)/o),c=h*(a-l)+l;s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:c}),t=$(r)};r()}}else s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:a})})(),this.fingersOperation(2),this._zoomTo(a,l,e,o,i)},t.prototype._zoomTo=function(t,e,o,i,s){void 0===s&&(s=!1);var r=t/o.baseScale;this.setScale(t);var n=this.scroll.scroller,h=n.scrollBehaviorX,l=n.scrollBehaviorY;this.resetBoundaries([h,l]);var a=this.getNewPos(o.x,r,h,!0,s),c=this.getNewPos(o.y,r,l,!0,s);h.currentPos===Math.round(a)&&l.currentPos===Math.round(c)&&t===e||n.scrollTo(a,c,i,j.bounce,{start:{scale:e},end:{scale:t}})},t.prototype.resolveOrigin=function(t,e){var o=this.scroll.scroller,i=o.scrollBehaviorX,s=o.scrollBehaviorY,r={left:function(){return 0},top:function(){return 0},right:function(){return i.contentSize},bottom:function(){return s.contentSize},center:function(t){var e=0===t?i.contentSize:s.contentSize;return e/2}};return{originX:"number"===typeof t?t:r[t](0),originY:"number"===typeof e?e:r[e](1)}},t.prototype.zoomStart=function(t){var e=t.touches[0],o=t.touches[1];this.startDistance=this.getFingerDistance(t),this.startScale=this.scale;var i=E(this.wrapper),s=i.left,r=i.top;this.origin={x:Math.abs(e.pageX+o.pageX)/2+s-this.scroll.x,y:Math.abs(e.pageY+o.pageY)/2+r-this.scroll.y,baseScale:this.startScale},this.scroll.trigger(this.scroll.eventTypes.beforeZoomStart)},t.prototype.zoom=function(t){var e=this.getFingerDistance(t);if(this.zoomed||!(Math.abs(e-this.startDistance)i&&(t=2*i*Math.pow(.5,i/t)),t},t.prototype.setScale=function(t){this.scale=t},t.prototype.resetBoundaries=function(t){t.forEach((function(t){return t.computeBoundary()}))},t.prototype.getNewPos=function(t,e,o,i,s){void 0===s&&(s=!1);var r=t-t*e+(s?o.currentPos:o.startPos);return i&&(r=T(r,o.maxScrollPos,o.minScrollPos)),r>0?Math.floor(r):Math.ceil(r)},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t.pluginName="zoom",t}(),de={duplicateClick:function(t){var e=t[0],o=t[1];e.options.click&&o.options.click&&(o.options.click=!1)},nestedScroll:function(t){var e=t[0],o=t[1],i=e.options.scrollX,s=e.options.scrollY,r=o.options.scrollX,n=o.options.scrollY;i!==r&&s!==n||(t.forEach((function(e,o){var i=t[(o+1)%2];e.on(e.eventTypes.beforeScrollStart,(function(){i.pending&&(i.stop(),i.resetPosition()),ve(i),i.disable()})),e.on(e.eventTypes.touchEnd,(function(){i.enable()}))})),o.on(o.eventTypes.scrollStart,(function(){ye(o)&&(o.disable(),e.enable())})))}},fe=function(){function t(e){var o=t.nestedScroll;return o instanceof t||(o=t.nestedScroll=this,o.stores=[]),o.setup(e),o.addHooks(e),o}return t.prototype.setup=function(t){this.appendBScroll(t),this.handleContainRelationship(),this.handleCompatible()},t.prototype.addHooks=function(t){var e=this;t.on("destroy",(function(){e.teardown(t)}))},t.prototype.teardown=function(t){this.removeBScroll(t),this.handleContainRelationship(),this.handleCompatible()},t.prototype.appendBScroll=function(t){this.stores.push(t)},t.prototype.removeBScroll=function(t){var e=this.stores.indexOf(t);-1!==e&&(t.wrapper.isBScrollContainer=void 0,this.stores.splice(e,1))},t.prototype.handleContainRelationship=function(){var t=this.stores;if(t.length<=1)t[0]&&t[0].__parentInfo&&(t[0].__parentInfo=void 0);else for(var e,o,i,s,r=0;rh&&(e.__parentInfo={parent:i,depth:h})}else e.__parentInfo={parent:i,depth:ge(o,s)}}},t.prototype.handleCompatible=function(){var t=this.availableBScrolls(),e=["duplicateClick","nestedScroll"];t.forEach((function(t){e.forEach((function(e){de[e](t)}))}))},t.prototype.availableBScrolls=function(){var t=[];return t=this.stores.filter((function(t){return!!t.__parentInfo})).map((function(t){return[t.__parentInfo.parent,t]})),t},t.pluginName="nestedScroll",t}();function ge(t,e){var o=0,i=t.parentNode;while(i&&i!==e)o++,i=i.parentNode;return o}function ye(t){var e=me(t),o=e.hasHorizontalScroll,i=e.hasVerticalScroll,s=t.scroller,r=s.scrollBehaviorX,n=s.scrollBehaviorY,h=t.x>=t.minScrollX&&-1===r.movingDirection,l=t.x<=t.maxScrollX&&1===r.movingDirection,a=t.y>=t.minScrollY&&-1===n.movingDirection,c=t.y<=t.maxScrollY&&1===n.movingDirection;return i?a||c:!!o&&(h||l)}function ve(t){var e=me(t),o=e.hasHorizontalScroll,i=e.hasVerticalScroll,s=t.scroller,r=s.actions,n=s.scrollBehaviorX,h=s.scrollBehaviorY;r.startTime=+new Date,i?h.startPos=h.currentPos:o&&(n.startPos=n.currentPos)}function me(t){return{hasHorizontalScroll:t.hasHorizontalScroll,hasVerticalScroll:t.hasVerticalScroll}}var ke=10,Te=30,be=function(){function t(t,e){this.wrapperHeight=t,this.tombstoneHeight=e,this.lastDirection=1,this.lastPos=0}return t.prototype.calculate=function(t,e){var o=t-this.lastPos;this.lastPos=t;var i=this.getDirection(o),s=this.calculateIndex(0,t,e),r=this.calculateIndex(s,t+this.wrapperHeight,e);return 1===i?(s-=ke,r+=Te):(s-=Te,r+=ke),s<0&&(s=0),{start:s,end:r}},t.prototype.getDirection=function(t){var e;if(t>0)e=1;else{if(!(t<0))return this.lastDirection;e=0}return this.lastDirection=e,e},t.prototype.calculateIndex=function(t,e,o){if(e<=0)return t;var i=t,s=o[i]&&-1!==o[i].pos?o[i].pos:0,r=s,n=0;while(ithis.list.length&&(e=t-this.list.length,this.addEmptyData(e)),[2,this.checkToFetch(t)]}))}))},t.prototype.add=function(t){for(var e=0;e=t.length&&(e=t.length-1),o>t.length&&(o=t.length),this.collectUnusedDom(t,e,o),this.createDom(t,e,o),this.cacheHeight(t,e,o);var i=this.positionDom(t,e,o),s=i.startPos,r=i.startDelta,n=i.endPos;return{start:e,startPos:s,startDelta:r,end:o,endPos:n}},t.prototype.collectUnusedDom=function(t,e,o){for(var i=0;ie)i-=t[h-1].height,h--;var l=n-i;return{start:i,delta:l}},t.prototype.removeTombstone=function(){for(var t=this.content.querySelectorAll(".tombstone"),e=t.length-1;e>=0;e--)this.content.removeChild(t[e])},t.prototype.destroy=function(){this.removeTombstone(),this.timers.forEach((function(t){clearTimeout(t)}))},t}(),Ye=-2e3,Ee=function(){function t(t){this.scroll=t,this.start=0,this.end=0,this.init()}return t.prototype.init=function(){this.handleOptions();var t=this.options,e=t.fetch,o=t.render,i=t.createTombstone;this.tombstone=new Se(i),this.indexCalculator=new be(this.scroll.scroller.scrollBehaviorY.wrapperSize,this.tombstone.height),this.domManager=new Me(this.scroll.scroller.content,o,this.tombstone),this.dataManager=new Pe([],e,this.onFetchFinish.bind(this)),this.scroll.on(this.scroll.eventTypes.destroy,this.destroy,this),this.scroll.on(this.scroll.eventTypes.scroll,this.update,this);var s=this.scroll.scroller.scrollBehaviorY;s.hooks.on(s.hooks.eventTypes.computeBoundary,this.modifyBoundary,this),this.update({y:0})},t.prototype.modifyBoundary=function(t){t.maxScrollPos=Ye},t.prototype.handleOptions=function(){var t=this.scroll.options.infinity;t&&("function"!==typeof t.fetch&&c("Infinity plugin need fetch Function to new data."),"function"!==typeof t.render&&c("Infinity plugin need render Function to render each item."),"function"!==typeof t.render&&c("Infinity plugin need createTombstone Function to create tombstone."),this.options=t),this.scroll.options.probeType=3},t.prototype.update=function(t){var e=Math.round(-t.y),o=this.indexCalculator.calculate(e,this.dataManager.getList()),i=o.start,s=o.end;this.start=i,this.end=s,this.dataManager.update(s),this.updateDom(this.dataManager.getList())},t.prototype.onFetchFinish=function(t,e){var o=this.updateDom(t).end;return e||(this.domManager.removeTombstone(),this.scroll.scroller.animater.stop(),this.scroll.resetPosition()),o},t.prototype.updateDom=function(t){var e=this.domManager.update(t,this.start,this.end),o=e.end,i=e.startPos,s=e.endPos,r=e.startDelta;return r&&(this.scroll.minScrollY=r),s>this.scroll.maxScrollY&&(this.scroll.maxScrollY=-(s-this.scroll.scroller.scrollBehaviorY.wrapperSize)),{end:o,startPos:i,endPos:s}},t.prototype.destroy=function(){var t=this.scroll.scroller,e=t.content,o=t.scrollBehaviorY;while(e.firstChild)e.removeChild(e.firstChild);this.domManager.destroy(),this.scroll.off("scroll",this.update),this.scroll.off("destroy",this.destroy),o.hooks.off(o.hooks.eventTypes.computeBoundary)},t.pluginName="infinity",t}(),Be=function(){function t(t){this.scroll=t,this.handleHooks()}return t.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY,s=function(t,e){e.options.scrollable&&t.maxScrollPos>0&&(t.minScrollPos=e.wrapperSize-e.contentSize,t.maxScrollPos=0)};this.registerHooks(o.hooks,o.hooks.eventTypes.computeBoundary,(function(t){s(t,o)})),this.registerHooks(i.hooks,i.hooks.eventTypes.computeBoundary,(function(t){s(t,i)})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,(function(){t.destroy()}))},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.pluginName="movable",t}();Ot.use(Ht).use(zt).use(_t).use(Kt).use(Zt).use(oe).use(he).use(ue).use(fe).use(Ee).use(Be),e["a"]=Ot}}]); //# sourceMappingURL=chunk-59ef5786.3d959369.js.map