1
!function(){"use strict";var e=function(e,t,i){return e(i={path:t,exports:{}
2
,require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
3
(null==t&&i.path)}
4
}
5
,i.exports),i.exports}
6
((function(e){function t(i){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e}
7
,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}
8
,e.exports.default=e.exports,e.exports.__esModule=!0),t(i)}
9
e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}
10
));!function(t){t.fn.customScrollbar=function(i,s){var o={skin:void 0,hScroll:!0,vScroll:!0,updateOnWindowResize:!1,animationSpeed:300,onCustomScroll:void 0,swipeSpeed:1,wheelSpeed:40,fixedThumbWidth:void 0,fixedThumbHeight:void 0,preventDefaultScroll:!1}
11
,n=function(e,i){this.$element=t(e),this.options=i,this.addScrollableClass(),this.addSkinClass(),this.addScrollBarComponents(),this.options.vScroll&&(this.vScrollbar=new l(this,new a)),this.options.hScroll&&(this.hScrollbar=new l(this,new r)),this.$element.data("scrollable",this),this.initKeyboardScrolling(),this.bindEvents()}
12
;n.prototype={addScrollableClass:function(){this.$element.hasClass("scrollable")||(this.scrollableAdded=!0,this.$element.addClass("scrollable"))}
13
,removeScrollableClass:function(){this.scrollableAdded&&this.$element.removeClass("scrollable")}
14
,addSkinClass:function(){"string"!=typeof this.options.skin||this.$element.hasClass(this.options.skin)||(this.skinClassAdded=!0,this.$element.addClass(this.options.skin))}
15
,removeSkinClass:function(){this.skinClassAdded&&this.$element.removeClass(this.options.skin)}
16
,addScrollBarComponents:function(){this.assignViewPort(),0==this.$viewPort.length&&(this.$element.wrapInner('<div class="viewport" />'),this.assignViewPort(),this.viewPortAdded=!0),this.assignOverview(),0==this.$overview.length&&(this.$viewPort.wrapInner('<div class="overview" />'),this.assignOverview(),this.overviewAdded=!0),this.addScrollBar("vertical","prepend"),this.addScrollBar("horizontal","append")}
17
,removeScrollbarComponents:function(){this.removeScrollbar("vertical"),this.removeScrollbar("horizontal"),this.overviewAdded&&this.$element.unwrap(),this.viewPortAdded&&this.$element.unwrap()}
18
,removeScrollbar:function(e){this[e+"ScrollbarAdded"]&&this.$element.find(".scroll-bar."+e).remove()}
19
,assignViewPort:function(){this.$viewPort=this.$element.find(".viewport")}
20
,assignOverview:function(){this.$overview=this.$viewPort.find(".overview")}
21
,addScrollBar:function(e,t){0==this.$element.find(".scroll-bar."+e).length&&(this.$element[t]("<div class='scroll-bar "+e+"'><div class='thumb'></div></div>"),this[e+"ScrollbarAdded"]=!0)}
22
,resize:function(e){this.vScrollbar&&this.vScrollbar.resize(e),this.hScrollbar&&this.hScrollbar.resize(e)}
23
,scrollTo:function(e){this.vScrollbar&&this.vScrollbar.scrollToElement(e),this.hScrollbar&&this.hScrollbar.scrollToElement(e)}
24
,scrollToXY:function(e,t){this.scrollToX(e),this.scrollToY(t)}
25
,scrollToX:function(e){this.hScrollbar&&this.hScrollbar.scrollOverviewTo(e,!0)}
26
,scrollToY:function(e){this.vScrollbar&&this.vScrollbar.scrollOverviewTo(e,!0)}
27
,scrollByX:function(e){this.hScrollbar&&this.scrollToX(this.hScrollbar.overviewPosition()+e)}
28
,scrollByY:function(e){this.vScrollbar&&this.scrollToY(this.vScrollbar.overviewPosition()+e)}
29
,remove:function(){this.removeScrollableClass(),this.removeSkinClass(),this.removeScrollbarComponents(),this.$element.data("scrollable",null),this.removeKeyboardScrolling(),this.vScrollbar&&this.vScrollbar.remove(),this.hScrollbar&&this.hScrollbar.remove()}
30
,setAnimationSpeed:function(e){this.options.animationSpeed=e}
31
,isInside:function(e,i){var s=t(e),o=t(i),n=s.offset(),l=o.offset();return n.top>=l.top&&n.left>=l.left&&n.top+s.height()<=l.top+o.height()&&n.left+s.width()<=l.left+o.width()}
32
,initKeyboardScrolling:function(){var e=this;this.elementKeydown=function(t){document.activeElement===e.$element[0]&&(e.vScrollbar&&e.vScrollbar.keyScroll(t),e.hScrollbar&&e.hScrollbar.keyScroll(t))}
33
,this.$element.attr("tabindex","-1").keydown(this.elementKeydown)}
34
,removeKeyboardScrolling:function(){this.$element.removeAttr("tabindex").unbind("keydown",this.elementKeydown)}
35
,bindEvents:function(){this.options.onCustomScroll&&this.$element.on("customScroll",this.options.onCustomScroll)}
36
}
37
;var l=function(e,t){this.scrollable=e,this.sizing=t,this.$scrollBar=this.sizing.scrollBar(this.scrollable.$element),this.$thumb=this.$scrollBar.find(".thumb"),this.setScrollPosition(0,0),this.resize(),this.initMouseMoveScrolling(),this.initMouseWheelScrolling(),this.initTouchScrolling(),this.initMouseClickScrolling(),this.initWindowResize()}
38
;l.prototype={resize:function(e){this.overviewSize=this.sizing.size(this.scrollable.$overview),this.calculateViewPortSize(),this.sizing.size(this.scrollable.$viewPort,this.viewPortSize),this.ratio=this.viewPortSize/this.overviewSize,this.sizing.size(this.$scrollBar,this.viewPortSize),this.thumbSize=this.calculateThumbSize(),this.sizing.size(this.$thumb,this.thumbSize),this.maxThumbPosition=this.calculateMaxThumbPosition(),this.maxOverviewPosition=this.calculateMaxOverviewPosition(),this.enabled=this.overviewSize>this.viewPortSize,void 0===this.scrollPercent&&(this.scrollPercent=0),this.enabled?this.rescroll(e):this.setScrollPosition(0,0),this.$scrollBar.toggle(this.enabled)}
39
,calculateViewPortSize:function(){var e=this.sizing.size(this.scrollable.$element);if(e>0&&!this.maxSizeUsed)this.viewPortSize=e,this.maxSizeUsed=!1;else{var t=this.sizing.maxSize(this.scrollable.$element);this.viewPortSize=Math.min(t,this.overviewSize),this.maxSizeUsed=!0}
40
}
...
</html>