mainsail/assets/overlayscrollbars-44d87bcf.js

13 lines
57 KiB
JavaScript
Raw Normal View History

2024-08-14 21:10:58 +03:00
var Ev=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kv(ze){return ze&&ze.__esModule&&Object.prototype.hasOwnProperty.call(ze,"default")?ze.default:ze}function Sv(ze){if(ze.__esModule)return ze;var pr=ze.default;if(typeof pr=="function"){var wr=function N(){return this instanceof N?Reflect.construct(pr,arguments,this.constructor):pr.apply(this,arguments)};wr.prototype=pr.prototype}else wr={};return Object.defineProperty(wr,"__esModule",{value:!0}),Object.keys(ze).forEach(function(N){var an=Object.getOwnPropertyDescriptor(ze,N);Object.defineProperty(wr,N,an.get?an:{enumerable:!0,get:function(){return ze[N]}})}),wr}var Qs={exports:{}};/*!
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.3
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 20.07.2022
*/(function(ze){(function(pr,wr){ze.exports=wr(pr,pr.document,void 0)})(typeof window<"u"?window:Ev,function(pr,wr,N){var an="OverlayScrollbars",y={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},s={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},Re=function(){var g={},x={},e=["-webkit-","-moz-","-o-","-ms-"],h=["WebKit","Moz","O","MS"];function u(d){return d.charAt(0).toUpperCase()+d.slice(1)}return{_cssPrefixes:e,_jsPrefixes:h,_cssProperty:function(d){var T=x[d];if(x[s.hOP](d))return T;for(var vr=u(d),nr=wr.createElement("div")[s.s],O,V=0,br,U;V<e.length;V++)for(U=e[V].replace(/-/g,""),O=[d,e[V]+d,U+vr,u(U)+vr],br=0;br<O[s.l];br++)if(nr[O[br]]!==N){T=O[br];break}return x[d]=T,T},_cssPropertyValue:function(d,T,vr){var nr=d+" "+T,O=x[nr];if(x[s.hOP](nr))return O;for(var V=wr.createElement("div")[s.s],br=T.split(" "),U=vr||"",Dr=0,k=-1,Y;Dr<br[s.l];Dr++)for(;k<Re._cssPrefixes[s.l];k++)if(Y=k<0?br[Dr]:Re._cssPrefixes[k]+br[Dr],V.cssText=d+":"+Y+U,V[s.l]){O=Y;break}return x[nr]=O,O},_jsAPI:function(d,T,vr){var nr=0,O=g[d];if(!g[s.hOP](d)){for(O=pr[d];nr<h[s.l];nr++)O=O||pr[(T?h[nr]:h[nr].toLowerCase())+u(d)];g[d]=O}return O||vr}}}(),w=function(){function g(e){return e?pr.innerWidth||wr.documentElement[s.cW]||wr.body[s.cW]:pr.innerHeight||wr.documentElement[s.cH]||wr.body[s.cH]}function x(e,h){if(typeof e!=y.f)throw"Can't bind function!";var u=s.p,d=Array[u].slice.call(arguments,2),T=function(){},vr=function(){return e.apply(this instanceof T?this:h,d.concat(Array[u].slice.call(arguments)))};return e[u]&&(T[u]=e[u]),vr[u]=new T,vr}return{wW:x(g,0,!0),wH:x(g,0),mO:x(Re._jsAPI,0,"MutationObserver",!0),rO:x(Re._jsAPI,0,"ResizeObserver",!0),rAF:x(Re._jsAPI,0,"requestAnimationFrame",!1,function(e){return pr.setTimeout(e,1e3/60)}),cAF:x(Re._jsAPI,0,"cancelAnimationFrame",!1,function(e){return pr.clearTimeout(e)}),now:function(){return Date.now&&Date.now()||new Date().getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){e=e.originalEvent||e;var h="page",u="client",d="X",T="Y",vr=e.target||e.srcElement||wr,nr=vr.ownerDocument||wr,O=nr.documentElement,V=nr.body;if(e.touches!==N){var br=e.touches[0];return{x:br[h+d],y:br[h+T]}}return!e[h+d]&&e[u+d]&&e[u+d]!=null?{x:e[u+d]+(O&&O.scrollLeft||V&&V.scrollLeft||0)-(O&&O.clientLeft||V&&V.clientLeft||0),y:e[u+T]+(O&&O.scrollTop||V&&V.scrollTop||0)-(O&&O.clientTop||V&&V.clientTop||0)}:{x:e[h+d],y:e[h+T]}},mBtn:function(e){var h=e.button;return!e.which&&h!==N?h&1?1:h&2?3:h&4?2:0:e.which},inA:function(e,h){for(var u=0;u<h[s.l];u++)try{if(h[u]===e)return u}catch{}return-1},isA:function(e){var h=Array.isArray;return h?h(e):this.type(e)==y.a},type:function(e){return e===N||e===null?e+"":Object[s.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:x}}(),W=Math,vt=pr.jQuery,Ks=function(){var g={p:W.PI,c:W.cos,s:W.sin,w:W.pow,t:W.sqrt,n:W.asin,a:W.abs,o:1.70158};return{swing:function(x,e,h,u,d){return .5-g.c(x*g.p)/2},linear:function(x,e,h,u,d){return x},easeInQuad:function(x,e,h,u,d){return u*(e/=d)*e+h},easeOutQuad:function(x,e,h,u,d){return-u*(e/=d)*(e-2)+h},easeInOutQuad:function(x,e,h,u,d){return(e/=d/2)<1?u/2*e*e+h:-u/2*(--e*(e-2)-1)+h},easeInCubic:function(x,e,h,u,d){return u*(e/=d)*e*e+h},easeOutCubic:function(x,e,h,u,d){return u*((e=e/d-1)*e*e+1)+h},easeInOutCubic:function(x,e,h,u,d){return(e/=d/2)<1?u/2*e*e*e+h:u/2*((e-=2)*e*e+2)+h},easeInQuart:function(x,e,h,u,d){return u*(e/=d)*e*e*e+h},easeOutQuart:function(x,e,h,u,d){return-u*((e=e/d-1)*e*e*e-1)+h},easeInOutQuart:function(x,e,h,u,d){return(e/=d/2)<1?u/2*e*e*e*e+h:-u/2*((e-=2)*e*e*e-2)+h},easeInQuint:function(x,e,h,u,d){return u*(e/=d)*e*e*e*e+h},easeOutQuint:function(x,e,h,u,d){return u*((e=e/d-1)*e*e*e*e+1)+h},easeInOutQuint:function(x,e,h,u,d){return(e/=d/2)<1?u/2*e*