You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdminLTE/plugins/overlayScrollbars/js/OverlayScrollbars.min.js

13 lines
52 KiB

/*!
* 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<e.length;f++)for(i=e[f].replace(/-/g,""),r=[n,e[f]+n,i+o,this.S(i)+o],a=0;a<r[_t];a++)if(u[r[a]]!==Se)return t[n]=r[a],r[a];return null},_:function(n,t,r){var i=this.g,e=this.u,o=0,u=e[n];if(!u){for(u=ht[n];o<i[_t];o++)u=u||ht[(t?i[o]:i[o].toLowerCase())+this.S(n)];e[n]=u}return u||r},S:function(n){return n.charAt(0).toUpperCase()+n.slice(1)}},He={wW:function(){return ht.innerWidth||dt.documentElement[Ce]||dt.body[Ce]},wH:function(){return ht.innerHeight||dt.documentElement[Te]||dt.body[Te]},mO:function(){return Tt._("MutationObserver",!0)},rO:function(){return Tt._("ResizeObserver",!0)},rAF:function(){return Tt._("requestAnimationFrame",!1,function(n){return ht.setTimeout(n,1e3/60)})},cAF:function(){return Tt._("cancelAnimationFrame",!1,function(n){return ht.clearTimeout(n)})},now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},prvD:function(n){n.preventDefault&&n.cancelable?n.preventDefault():n.returnValue=!1},page:function(n){var t="page",r="client",i="X",e=((n=n.originalEvent||n).target||n.srcElement||dt).ownerDocument||dt,o=e.documentElement,u=e.body;if(n.touches===Se)return!n[t+i]&&n[r+i]&&null!=n[r+i]?{x:n[r+i]+(o&&o.scrollLeft||u&&u.scrollLeft||0)-(o&&o.clientLeft||u&&u.clientLeft||0),y:n[r+"Y"]+(o&&o.scrollTop||u&&u.scrollTop||0)-(o&&o.clientTop||u&&u.clientTop||0)}:{x:n[t+i],y:n.pageY};var f=n.touches[0];return{x:f[t+i],y:f.pageY}},mBtn:function(n){var t=n.button;return n.which||t===Se?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r<t[_t];r++)try{if(t[r]===n)return r}catch(i){}return-1},isA:function(n){var t=Array.isArray;return t?t(n):this.type(n)==wt},type:function(n){return n===Se?n+"":null===n?n+"":Object[zt].toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:function(n,t){if(typeof n!=mt)throw"Can't bind function!";var r=zt,i=Array[r].slice.call(arguments,2),e=function(){},o=function(){return n.apply(this instanceof e?this:t,i.concat(Array[r].slice.call(arguments)))};return n[r]&&(e[r]=n[r]),o[r]=new e,o}},Ne=Math,Ee=ht.jQuery,M=(a={p:Ne.PI,c:Ne.cos,s:Ne.sin,w:Ne.pow,t:Ne.sqrt,n:Ne.asin,a:Ne.abs,o:1.70158},{swing:function(n,t,r,i,e){return.5-a.c(n*a.p)/2},linear:function(n,t,r,i,e){return n},easeInQuad:function(n,t,r,i,e){return i*(t/=e)*t+r},easeOutQuad:function(n,t,r,i,e){return-i*(t/=e)*(t-2)+r},easeInOutQuad:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r},easeInCubic:function(n,t,r,i,e){return i*(t/=e)*t*t+r},easeOutCubic:function(n,t,r,i,e){return i*((t=t/e-1)*t*t+1)+r},easeInOutCubic:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t+r:i/2*((t-=2)*t*t+2)+r},easeInQuart:function(n,t,r,i,e){return i*(t/=e)*t*t*t+r},easeOutQuart:function(n,t,r,i,e){return-i*((t=t/e-1)*t*t*t-1)+r},easeInOutQuart:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t*t+r:-i/2*((t-=2)*t*t*t-2)+r},easeInQuint:function(n,t,r,i,e){return i*(t/=e)*t*t*t*t+r},easeOutQuint:function(n,t,r,i,e){return i*((t=t/e-1)*t*t*t*t+1)+r},easeInOutQuint:function(n,t,r,i,e){return(t/=e/2)<1?i/2*t*t*t*t*t+r:i/2*((t-=2)*t*t*t*t+2)+r},easeInSine:function(n,t,r,i,e){return-i*a.c(t/e*(a.p/2))+i+r},easeOutSine:function(n,t,r,i,e){return i*a.s(t/e*(a.p/2))+r},easeInOutSine:function(n,t,r,i,e){return-i/2*(a.c(a.p*t/e)-1)+r},easeInExpo:function(n