/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.7.2 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. * Date: 10.06.2019 */ !function(n,t){"function"==typeof define&&define.amd?define(function(){return t(n,n.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(n,n.document,undefined):t(n,n.document,undefined)}("undefined"!=typeof window?window:this,function(ht,dt,Se){"use strict";var a,e,o,pt="OverlayScrollbars",bt="object",mt="function",wt="array",gt="string",yt="boolean",xt="number",p="undefined",h="null",Ot="class",_e="style",St="id",_t="length",zt="prototype",ze="offsetHeight",Te="clientHeight",ke="scrollHeight",Ie="offsetWidth",Ce="clientWidth",Ae="scrollWidth",Tt={u:{},v:{},m:["-webkit-","-moz-","-o-","-ms-"],g:["WebKit","Moz","O","MS"],O:function(n){var t=this.v;if(t[n])return t[n];for(var r,i,e=this.m,o=this.S(n),u=dt.createElement("div")[_e],f=0,a=0;f
'),o=_[0],i=Le(_.children("div").eq(0));S.append(_),_.hide().show();var t,r,u,f,a,c,s,l,v,h=z(o),d={x:0===h.x,y:0===h.y};function z(n){return{x:n[ze]-n[Te],y:n[Ie]-n[Ce]}}Le.extend(O,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!He.mO(),nativeScrollbarSize:h,nativeScrollbarIsOverlaid:d,nativeScrollbarStyling:(_.addClass("os-viewport-native-scrollbars-invisible"),"none"===_.css("scrollbar-width")||"none"===ht.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")),overlayScrollbarDummySize:{x:30,y:30},msie:(r=ht.navigator.userAgent,u="indexOf",f="substring",a=r[u]("MSIE "),c=r[u]("Trident/"),s=r[u]("Edge/"),l=r[u]("rv:"),v=parseInt,0e&&(t.update("auto"),h[a]=new Date(o+=e)),n=Ne.max(1,Ne.min(n,e)));p=n}}else p=33};this.add=function(n){-1===Le.inArray(n,v)&&(v.push(n),h.push(He.now()),0/g,(l?"-":Ti)+Ci)[v](/px/g,Ti)[v](/%/g," * "+c*(s&&Ht.n?-1:1)/100)[v](/vw/g," * "+vi.w)[v](/vh/g," * "+vi.h),de(isNaN(t)?de(h(t),!0).toFixed():t)):t)!==Se&&!isNaN(i)&&at(i)==xt){var d=y&&s,p=a*(d&&Ht.n?-1:1),b=d&&Ht.i,m=d&&Ht.n;switch(p=b?c-p:p,r){case"+=":o=p+i;break;case"-=":o=p-i;break;case"*=":o=p*i;break;case"/=":o=p/i;break;default:o=i}o=b?c-o:o,o*=m?-1:1,o=s&&Ht.n?Ne.min(0,Ne.max(c,o)):Ne.max(0,Ne.min(c,o))}return o===a?Se:o},U=function(n,t,r,i){var e,o,u=[r,r],f=at(n);if(f==t)n=[n,n];else if(f==wt){if(2<(e=n[N])||e<1)n=u;else for(1===e&&(n[1]=r),l=0;l=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Xn(),(ri||ii)&&fe(!1)}}function E(n){e=or[I](),e=isNaN(e)?0:e,($t&&O&&!Ht.n||!$t)&&(e=e<0?0:e),z=et()[k],_=a(n),Q=!c(u),xe(M,Mn),xe(r.en,o),xe(r.an,o),D.on(J,h).on(K,N).on(en,$n),!L&&p||He.prvD(n),He.stpP(n)}r.en.on(Ri,function(n){H(n)&&E(n)}),r.un.on(Ri,function(n){if(H(n)){var h,d=Ne.round(vi[r.W]),p=r.un.offset()[r.j],t=n.ctrlKey,b=n.shiftKey,m=b&&t,w=!0,g=function(n){Q&&ce(O,n)},y=function(){g(),E(n)},x=function(){if(!Wt){var n=(_-p)*z,t=T.N,r=T.D,i=T.L,e=T.H,o=T.C,u=270*C,f=w?Ne.max(400,u):u,a=e*((n-i/2)/(r-i)),c=$t&&O&&(!Ht.i&&!Ht.n||Vr),s=c?t"+(n||Ti)+""}function ft(n,t){for(var r,i=t.split(X),e=0;e