mirror of https://github.com/ColorlibHQ/AdminLTE
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.
13 lines
52 KiB
13 lines
52 KiB
/*!
|
|
* OverlayScrollbars
|
|
* https://github.com/KingSora/OverlayScrollbars
|
|
*
|
|
* Version: 1.10.0
|
|
*
|
|
* Copyright KingSora | Rene Haas.
|
|
* https://github.com/KingSora
|
|
*
|
|
* Released under the MIT license.
|
|
* Date: 11.10.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(bt,gt,yi){"use strict";var o,a,c,u,mt="object",wt="function",yt="array",xt="string",_t="boolean",Ot="number",f="undefined",n="null",St="class",xi="style",zt="id",_i="length",kt="prototype",Oi="offsetHeight",Si="clientHeight",zi="scrollHeight",ki="offsetWidth",Ci="clientWidth",Ii="scrollWidth",Ct="hasOwnProperty",Ti="getBoundingClientRect",It=(o={},a={},{e:c=["-webkit-","-moz-","-o-","-ms-"],u:u=["WebKit","Moz","O","MS"],v:function(n){var t=a[n];if(a[Ct](n))return t;for(var r,e,i,o=s(n),u=gt.createElement("div")[xi],f=0;f<c.length;f++)for(i=c[f].replace(/-/g,""),r=[n,c[f]+n,i+o,s(i)+o],e=0;e<r[_i];e++)if(u[r[e]]!==yi){t=r[e];break}return a[n]=t},d:function(n,t,r){var e=0,i=o[n];if(!o[Ct](n)){for(i=bt[n];e<u[_i];e++)i=i||bt[(t?u[e]:u[e].toLowerCase())+s(n)];o[n]=i}return i||r}});function s(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Ai={wW:r(t,0,!0),wH:r(t,0),mO:r(It.d,0,"MutationObserver",!0),rO:r(It.d,0,"ResizeObserver",!0),rAF:r(It.d,0,"requestAnimationFrame",!1,function(n){return bt.setTimeout(n,1e3/60)}),cAF:r(It.d,0,"cancelAnimationFrame",!1,function(n){return bt.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",e="X",i=((n=n.originalEvent||n).target||n.srcElement||gt).ownerDocument||gt,o=i.documentElement,u=i.body;if(n.touches===yi)return!n[t+e]&&n[r+e]&&null!=n[r+e]?{x:n[r+e]+(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+e],y:n.pageY};var f=n.touches[0];return{x:f[t+e],y:f.pageY}},mBtn:function(n){var t=n.button;return n.which||t===yi?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r<t[_i];r++)try{if(t[r]===n)return r}catch(e){}return-1},isA:function(n){var t=Array.isArray;return t?t(n):this.type(n)==yt},type:function(n){return n===yi?n+"":null===n?n+"":Object[kt].toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:r};function t(n){return n?bt.innerWidth||gt.documentElement[Ci]||gt.body[Ci]:bt.innerHeight||gt.documentElement[Si]||gt.body[Si]}function r(n,t){if(typeof n!=wt)throw"Can't bind function!";function r(){}function e(){return n.apply(this instanceof r?this:t,o.concat(Array[i].slice.call(arguments)))}var i=kt,o=Array[i].slice.call(arguments,2);return n[i]&&(r[i]=n[i]),e[i]=new r,e}var l,v,h,C,I,T,d,p,Ei=Math,Hi=bt.jQuery,A=(l={p:Ei.PI,c:Ei.cos,s:Ei.sin,w:Ei.pow,t:Ei.sqrt,n:Ei.asin,a:Ei.abs,o:1.70158},{swing:function(n,t,r,e,i){return.5-l.c(n*l.p)/2},linear:function(n,t,r,e,i){return n},easeInQuad:function(n,t,r,e,i){return e*(t/=i)*t+r},easeOutQuad:function(n,t,r,e,i){return-e*(t/=i)*(t-2)+r},easeInOutQuad:function(n,t,r,e,i){return(t/=i/2)<1?e/2*t*t+r:-e/2*(--t*(t-2)-1)+r},easeInCubic:function(n,t,r,e,i){return e*(t/=i)*t*t+r},easeOutCubic:function(n,t,r,e,i){return e*((t=t/i-1)*t*t+1)+r},easeInOutCubic:function(n,t,r,e,i){return(t/=i/2)<1?e/2*t*t*t+r:e/2*((t-=2)*t*t+2)+r},easeInQuart:function(n,t,r,e,i){return e*(t/=i)*t*t*t+r},easeOutQuart:function(n,t,r,e,i){return-e*((t=t/i-1)*t*t*t-1)+r},easeInOutQuart:function(n,t,r,e,i){return(t/=i/2)<1?e/2*t*t*t*t+r:-e/2*((t-=2)*t*t*t-2)+r},easeInQuint:function(n,t,r,e,i){return e*(t/=i)*t*t*t*t+r},easeOutQuint:function(n,t,r,e,i){return e*((t=t/i-1)*t*t*t*t+1)+r},easeInOutQuint:function(n,t,r,e,i){return(t/=i/2)<1?e/2*t*t*t*t*t+r:e/2*((t-=2)*t*t*t*t+2)+r},easeInSine:function(n,t,r,e,i){return-e*l.c(t/i*(l.p/2))+e+r},easeOutSine:function(n,t,r,e,i){return e*l.s(t/i*(l.p/2))+r},easeInOutSine:function(n,t,r,e,i){return-e/2*(l.c(l.p*t/i)-1)+r},easeInExpo:function(n,t,r,e,i){return 0==t?r:e*l.w(2,10*(t/i-1))+r},easeOutExpo:function(n,t,r,e,i){return t==i?r+e:e*(1-l.w(2,-10*t/i))+r},easeInOutExpo:function(n,t,r,e,i){return 0==t?r:t==i?r+e:(t/=i/2)<1?e/2*l.w(2,10*(t-1))+r:e/2*(2-l.w(2,-10*--t))+r},easeInCirc:function(n,t,r,e,i){return-e*(l.t(1-(t/=i)*t)-1)+r},easeOutCirc:function(n,t,r,e,i){return e*l.t(1-(t=t/i-1)*t)+r},easeInOutCirc:function(n,t,r,e,i){return(t/=i/2)<1?-e/2*(l.t(1-t*t)-1)+r:e/2*(l.t(1-(t-=2)*t)+1)+r},easeInElastic:function(n,t,r,e,i){var o=l.o,u=0,f=e;return 0==t?r:1==(t/=i)?r+e:(u=u||.3*i,o=f<l.a(e)?(f=e,u/4):u/(2*l.p)*l.n(e/f),-f*l.w(2,10*(t-=1))*l.s((t*i-o)*(2*l.p)/u)+r)},easeOutElastic:function(n,t,r,e,i){var o=l.o,u=0,f=e;return 0==t?r:1==(t/=i)?r+e:(u=u||.3*i,o=f<l.a(e)?(f=e,u/4):u/(2*l.p)*l.n(e/f),f*l.w(2,-10*t)*l.s((t*i-o)*(2*l.p)/u)+e+r)},easeInOutElastic:function(n,t,r,e,i){var o=l.o,u=0,f=e;return 0==t?r:2==(t/=i/2)?r+e:(u=u||i*(.3*1.5),o=f<l.a(e)?(f=e,u/4):u/(2*l.p)*l.n(e/f),t<1?f*l.w(2,10*(t-=1))*l.s((t*i-o)*(2*l.p)/u)*-.5+r:f*l.w(2,-10*(t-=1))*l.s((t*i-o)*(2*l.p)/u)*.5+e+r)},easeInBack:function(n,t,r,e,i,o){return e*(t/=i)*t*(((o=o||l.o)+1)*t-o)+r},easeOutBack:function(n,t,r,e,i,o){return e*((t=t/i-1)*t*(((o=o||l.o)+1)*t+o)+1)+r},easeInOutBack:function(n,t,r,e,i,o){return o=o||l.o,(t/=i/2)<1?e/2*(t*t*((1+(o*=1.525))*t-o))+r:e/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+r},easeInBounce:function(n,t,r,e,i){return e-this.easeOutBounce(n,i-t,0,e,i)+r},easeOutBounce:function(n,t,r,e,i){var o=7.5625;return(t/=i)<1/2.75?e*(o*t*t)+r:t<2/2.75?e*(o*(t-=1.5/2.75)*t+.75)+r:t<2.5/2.75?e*(o*(t-=2.25/2.75)*t+.9375)+r:e*(o*(t-=2.625/2.75)*t+.984375)+r},easeInOutBounce:function(n,t,r,e,i){return t<i/2?.5*this.easeInBounce(n,2*t,0,e,i)+r:.5*this.easeOutBounce(n,2*t-i,0,e,i)+.5*e+r}}),Li=(v=/[^\x20\t\r\n\f]+/g,h=" ",C="scrollLeft",I="scrollTop",T=[],d=Ai.type,p={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},M[kt]={on:function(t,r){var e,i=(t=(t||"").match(v)||[""])[_i],o=0;return this.each(function(){e=this;try{if(e.addEventListener)for(;o<i;o++)e.addEventListener(t[o],r);else if(e.detachEvent)for(;o<i;o++)e.attachEvent("on"+t[o],r)}catch(n){}})},off:function(t,r){var e,i=(t=(t||"").match(v)||[""])[_i],o=0;return this.each(function(){e=this;try{if(e.removeEventListener)for(;o<i;o++)e.removeEventListener(t[o],r);else if(e.detachEvent)for(;o<i;o++)e.detachEvent("on"+t[o],r)}catch(n){}})},one:function(n,i){return n=(n||"").match(v)||[""],this.each(function(){var e=M(this);M.each(n,function(n,t){var r=function(n){i.call(this,n),e.off(t,r)};e.on(t,r)})})},trigger:function(n){var t,r;return this.each(function(){t=this,gt.createEvent?((r=gt.createEvent("HTMLEvents")).initEvent(n,!0,!1),t.dispatchEvent(r)):t.fireEvent("on"+n)})},append:function(n){return this.each(function(){i(this,"beforeend",n)})},prepend:function(n){return this.each(function(){i(this,"afterbegin",n)})},before:function(n){return this.each(function(){i(this,"beforebegin",n)})},after:function(n){return this.each(function(){i(this,"afterend",n)})},remove:function(){return this.each(function(){var n=this.parentNode;null!=n&&n.removeChild(this)})},unwrap:function(){var n,t,r,e=[];for(this.each(function(){-1===E(r=this.parentNode,e)&&e.push(r)}),n=0;n<e[_i];n++){for(t=e[n],r=t.parentNode;t.firstChild;)r.insertBefore(t.firstChild,t);r.removeChild(t)}return this},wrapAll:function(n){for(var t,r=this,e=M(n)[0],i=e,o=r[0].parentNode,u=r[0].previousSibling;0<i.childNodes[_i];)i=i.childNodes[0];for(t=0;r[_i]-t;i.firstChild===r[0]&&t++)i.appendChild(r[t]);var f=u?u.nextSibling:o.firstChild;return o.insertBefore(e,f),this},wrapInner:function(r){return this.each(function(){var n=M(this),t=n.contents();t[_i]?t.wrapAll(r):n.append(r)})},wrap:function(n){return this.each(function(){M(this).wrapAll(n)})},css:function(n,t){var r,e,i,o=bt.getComputedStyle;return d(n)==xt?t===yi?(r=this[0],i=o?o(r,null):r.currentStyle[n],o?null!=i?i.getPropertyValue(n):r[xi][n]:i):this.each(function(){y(this,n,t)}):this.each(function(){for(e in n)y(this,e,n[e])})},hasClass:function(n){for(var t,r,e=0,i=h+n+h;t=this[e++];){if((r=t.classList)&&r.contains(n))return!0;if(1===t.nodeType&&-1<(h+m(t.className+"")+h).indexOf(i))return!0}return!1},addClass:function(n){var t,r,e,i,o,u,f,a,c=0,s=0;if(n)for(t=n.match(v)||[];r=this[c++];)if(a=r.classList,f===yi&&(f=a!==yi),f)for(;o=t[s++];)a.add(o);else if(i=r.className+"",e=1===r.nodeType&&h+m(i)+h){for(;o=t[s++];)e.indexOf(h+o+h)<0&&(e+=o+h);i!==(u=m(e))&&(r.className=u)}return this},removeClass:function(n){var t,r,e,i,o,u,f,a,c=0,s=0;if(n)for(t=n.match(v)||[];r=this[c++];)if(a=r.classList,f===yi&&(f=a!==yi),f)for(;o=t[s++];)a.remove(o);else if(i=r.className+"",e=1===r.nodeType&&h+m(i)+h){for(;o=t[s++];)for(;-1<e.indexOf(h+o+h);)e=e.replace(h+o+h,h);i!==(u=m(e))&&(r.className=u)}return this},hide:function(){return this.each(function(){this[xi].display="none"})},show:function(){return this.each(function(){this[xi].display="block"})},attr:function(n,t){for(var r,e=0;r=this[e++];){if(t===yi)return r.getAttribute(n);r.setAttribute(n,t)}return this},removeAttr:function(n){return this.each(function(){this.removeAttribute(n)})},offset:function(){var n=this[0][Ti](),t=bt.pageXOffset||gt.documentElement[C],r=bt.pageYOffset||gt.documentElement[I];return{top:n.top+r,left:n.left+t}},position:function(){var n=this[0];return{top:n.offsetTop,left:n.offsetLeft}},scrollLeft:function(n){for(var t,r=0;t=this[r++];){if(n===yi)return t[C];t[C]=n}return this},scrollTop:function(n){for(var t,r=0;t=this[r++];){if(n===yi)return t[I];t[I]=n}return this},val:function(n){var t=this[0];return n?(t.value=n,this):t.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){return M(this[0<=n?n:this[_i]+n])},find:function(t){var r,e=[];return this.each(function(){var n=this.querySelectorAll(t);for(r=0;r<n[_i];r++)e.push(n[r])}),M(e)},children:function(n){var t,r,e,i=[];return this.each(function(){for(r=this.children,e=0;e<r[_i];e++)t=r[e],n?(t.matches&&t.matches(n)||w(t,n))&&i.push(t):i.push(t)}),M(i)},parent:function(n){var t,r=[];return this.each(function(){t=this.parentNode,n&&!M(t).is(n)||r.push(t)}),M(r)},is:function(n){var t,r;for(r=0;r<this[_i];r++){if(t=this[r],":visible"===n)return _(t);if(":hidden"===n)return!_(t);if(t.matches&&t.matches(n)||w(t,n))return!0}return!1},contents:function(){var n,t,r=[];return this.each(function(){for(n=this.childNodes,t=0;t<n[_i];t++)r.push(n[t])}),M(r)},each:function(n){return e(this,n)},animate:function(n,t,r,e){return this.each(function(){x(this,n,t,r,e)})},stop:function(n,t){return this.each(function(){!function f(n,t,r){for(var e,i,o,u=0;u<T[_i];u++)if((e=T[u]).el===n){if(0<e.q[_i]){if((i=e.q[0]).stop=!0,Ai.cAF()(i.frame),e.q.splice(0,1),r)for(o in i.props)D(n,o,i.props[o]);t?e.q=[]:R(e,!1)}break}}(this,n,t)})}},b(M,{extend:b,inArray:E,isEmptyObject:L,isPlainObject:N,each:e}),M);function b(){var n,t,r,e,i,o,u=arguments[0]||{},f=1,a=arguments[_i],c=!1;for(d(u)==_t&&(c=u,u=arguments[1]||{},f=2),d(u)!=mt&&!d(u)==wt&&(u={}),a===f&&(u=M,--f);f<a;f++)if(null!=(i=arguments[f]))for(e in i)n=u[e],u!==(r=i[e])&&(c&&r&&(N(r)||(t=Ai.isA(r)))?(o=t?(t=!1,n&&Ai.isA(n)?n:[]):n&&N(n)?n:{},u[e]=b(c,o,r)):r!==yi&&(u[e]=r));return u}function E(n,t,r){for(var e=r||0;e<t[_i];e++)if(t[e]===n)return e;return-1}function H(n){return d(n)==wt}function L(n){for(var t in n)return!1;return!0}function N(n){if(!n||d(n)!=mt)return!1;var t,r=kt,e=Object[r].hasOwnProperty,i=e.call(n,"constructor"),o=n.constructor&&n.constructor[r]&&e.call(n.constructor[r],"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(t in n);return d(t)==f||e.call(n,t)}function e(n,t){var r=0;if(g(n))for(;r<n[_i]&&!1!==t.call(n[r],r,n[r]);r++);else for(r in n)if(!1===t.call(n[r],r,n[r]))break;return n}function g(n){var t=!!n&&[_i]in n&&n[_i],r=d(n);return!H(r)&&(r==yt||0===t||d(t)==Ot&&0<t&&t-1 in n)}function m(n){return(n.match(v)||[]).join(h)}function w(n,t){for(var r=(n.parentNode||gt).querySelectorAll(t)||[],e=r[_i];e--;)if(r[e]==n)return!0;return!1}function i(n,t,r){if(d(r)==yt)for(var e=0;e<r[_i];e++)i(n,t,r[e]);else d(r)==xt?n.insertAdjacentHTML(t,r):n.insertAdjacentElement(t,r.nodeType?r:r[0])}function y(n,t,r){try{n[xi][t]!==yi&&(n[xi][t]=function e(n,t){p[n.toLowerCase()]||d(t)!=Ot||(t+="px");return t}(t,r))}catch(i){}}function R(n,t){var r,e;!1!==t&&n.q.splice(0,1),0<n.q[_i]?(e=n.q[0],x(n.el,e.props,e.duration,e.easing,e.complete,!0)):-1<(r=E(n,T))&&T.splice(r,1)}function D(n,t,r){t===C||t===I?n[t]=r:y(n,t,r)}function x(n,t,r,e,i,o){var u,f,a,c,s,l,v=N(r),h={},d={},p=0;for(l=v?(e=r.easing,r.start,a=r.progress,c=r.step,s=r.specialEasing,i=r.complete,r.duration):r,s=s||{},l=l||400,e=e||"swing",o=o||!1;p<T[_i];p++)if(T[p].el===n){f=T[p];break}for(u in f||(f={el:n,q:[]},T.push(f)),t)h[u]=u===C||u===I?n[u]:M(n).css(u);for(u in h)h[u]!==t[u]&&t[u]!==yi&&(d[u]=t[u]);if(L(d))o&&R(f);else{var b,g,m,w,y,x,_,O,S,z=o?0:E(k,f.q),k={props:d,duration:v?r:l,easing:e,complete:i};if(-1===z&&(z=f.q[_i],f.q.push(k)),0===z)if(0<l)_=Ai.now(),O=function(){for(u in b=Ai.now(),S=b-_,g=k.stop||l<=S,m=1-(Ei.max(0,_+l-b)/l||0),d)w=parseFloat(h[u]),y=parseFloat(d[u]),x=(y-w)*A[s[u]||e](m,m*l,0,1,l)+w,D(n,u,x),H(c)&&c(x,{elem:n,prop:u,start:w,now:x,end:y,pos:m,options:{easing:e,speacialEasing:s,duration:l,complete:i,step:c},startTime:_});H(a)&&a({},m,Ei.max(0,l-S)),g?(R(f),H(i)&&i()):k.frame=Ai.rAF()(O)},k.frame=Ai.rAF()(O);else{for(u in d)D(n,u,d[u]);R(f)}}}function _(n){return!!(n[ki]||n[Oi]||n.getClientRects()[_i])}function M(n){if(0===arguments[_i])return this;var t,r,e=new M,i=n,o=0;if(d(n)==xt)for(i=[],t="<"===n.charAt(0)?((r=gt.createElement("div")).innerHTML=n,r.children):gt.querySelectorAll(n);o<t[_i];o++)i.push(t[o]);if(i){for(d(i)==xt||g(i)&&i!==bt&&i!==i.self||(i=[i]),o=0;o<i[_i];o++)e[o]=i[o];e[_i]=i[_i]}return e}var O,S,Ni,z,k,W,F,j,B,P,Q,U,V,Ri,Di=(O=[],S="__overlayScrollbars__",function(n,t){var r=arguments[_i];if(r<1)return O;if(t)n[S]=t,O.push(n);else{var e=Ai.inA(n,O);if(-1<e){if(!(1<r))return O[e][S];delete n[S],O.splice(e,1)}}}),q=(V=[],W=Ai.type,U={className:["os-theme-dark",[n,xt]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:j=[!0,_t],clipAlways:j,normalizeRTL:j,paddingAbsolute:B=[!(F=[_t,Ot,xt,yt,mt,wt,n]),_t],autoUpdate:[null,[n,_t]],autoUpdateInterval:[33,Ot],nativeScrollbarsOverlaid:{showNativeScrollbars:B,initialize:j},overflowBehavior:{x:["scroll",Q="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",Q]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,Ot],dragScrolling:j,clickScrolling:B,touchSupport:j,snapHandle:B},textarea:{dynWidth:B,dynHeight:B,inheritedAttrs:[["style","class"],[xt,yt,n]]},callbacks:{onInitialized:P=[null,[n,wt]],onInitializationWithdrawn:P,onDestroyed:P,onScrollStart:P,onScroll:P,onScrollStop:P,onOverflowChanged:P,onOverflowAmountChanged:P,onDirectionChanged:P,onContentSizeChanged:P,onHostSizeChanged:P,onUpdated:P}},Ri={g:X(),m:X(!0),_:function(n,t,I,r){var e={},i={},o=Li.extend(!0,{},n),T=Li.inArray,A=Li.isEmptyObject,E=function(n,t,r,e,i,o){for(var u in t)if(t[Ct](u)&&n[Ct](u)){var f,a,c,s,l,v,h,d,p=!1,b=!1,g=t[u],m=W(g),w=m==mt,y=W(g)!=yt?[g]:g,x=r[u],_=n[u],O=W(_),S=o?o+".":"",z='The option "'+S+u+"\" wasn't set, because",k=[],C=[];if(x=x===yi?{}:x,w&&O==mt)e[u]={},i[u]={},E(_,g,x,e[u],i[u],S+u),Li.each([n,e,i],function(n,t){A(t[u])&&delete t[u]});else if(!w){for(v=0;v<y[_i];v++)if(l=y[v],c=(m=W(l))==xt&&-1===T(l,F))for(k.push(xt),f=l.split(" "),C=C.concat(f),h=0;h<f[_i];h++){for(s=(a=f[h].split(":"))[0],d=0;d<a[_i];d++)if(_===a[d]){p=!0;break}if(p)break}else if(k.push(l),O===l){p=!0;break}p?((b=_!==x)&&(e[u]=_),(c?T(x,a)<0:b)&&(i[u]=c?s:_)):I&&console.warn(z+" it doesn't accept the type [ "+O.toUpperCase()+' ] with the value of "'+_+'".\r\nAccepted types are: [ '+k.join(", ").toUpperCase()+" ]."+(0<C[length]?"\r\nValid strings are: [ "+C.join(", ").split(":").join(", ")+" ].":"")),delete n[u]}}};return E(o,t,r||{},e,i),!A(o)&&I&&console.warn("The following options are discarded due to invalidity:\r\n"+bt.JSON.stringify(o,null,2)),{O:e,S:i}}},(Ni=bt.OverlayScrollbars=function(n,r,e){if(0===arguments[_i])return this;var i,t,o=[],u=Li.isPlainObject(r);return n?(n=n[_i]!=yi?n:[n[0]||n],Y(),0<n[_i]&&(u?Li.each(n,function(n,t){(i=t)!==yi&&o.push(K(i,r,e,z,k))}):Li.each(n,function(n,t){i=Di(t),"!"===r&&Ni.valid(i)||Ai.type(r)==wt&&r(t,i)?o.push(i):r===yi&&o.push(i)}),t=1===o[_i]?o[0]:o),t):u||!r?t:o}).globals=function(){Y();var n=Li.extend(!0,{},z);return delete n.msie,n},Ni.defaultOptions=function(n){Y();var t=z.defaultOptions;if(n===yi)return Li.extend(!0,{},t);z.defaultOptions=Li.extend(!0,{},t,Ri._(n,Ri.m,!0,t).O)},Ni.valid=function(n){return n instanceof Ni&&!n.getState().destroyed},Ni.extension=function(n,t,r){var e=Ai.type(n)==xt,i=arguments[_i],o=0;if(i<1||!e)return Li.extend(!0,{length:V[_i]},V);if(e)if(Ai.type(t)==wt)V.push({name:n,extensionFactory:t,defaultOptions:r});else for(;o<V[_i];o++)if(V[o].name===n){if(!(1<i))return Li.extend(!0,{},V[o]);V.splice(o,1)}},Ni);function X(i){var o=function(n){var t,r,e;for(t in n)n[Ct](t)&&(r=n[t],(e=W(r))==yt?n[t]=r[i?1:0]:e==mt&&(n[t]=o(r)));return n};return o(Li.extend(!0,{},U))}function Y(){z=z||new $(Ri.g),k=k||new G(z)}function $(n){var _=this,i="overflow",O=Li("body"),S=Li('<div id="os-dummy-scrollbar-size"><div></div></div>'),o=S[0],e=Li(S.children("div").eq(0));O.append(S),S.hide().show();var t,r,u,f,a,c,s,l,v,h=z(o),d={x:0===h.x,y:0===h.y},p=(r=bt.navigator.userAgent,f="substring",a=r[u="indexOf"]("MSIE "),c=r[u]("Trident/"),s=r[u]("Edge/"),l=r[u]("rv:"),v=parseInt,0<a?t=v(r[f](a+5,r[u](".",a)),10):0<c?t=v(r[f](l+3,r[u](".",l)),10):0<s&&(t=v(r[f](s+5,r[u](".",s)),10)),t);function z(n){return{x:n[Oi]-n[Si],y:n[ki]-n[Ci]}}Li.extend(_,{defaultOptions:n,msie:p,autoUpdateLoop:!1,autoUpdateRecommended:!Ai.mO(),nativeScrollbarSize:h,nativeScrollbarIsOverlaid:d,nativeScrollbarStyling:function(){var n=!1;S.addClass("os-viewport-native-scrollbars-invisible");try{n="none"===S.css("scrollbar-width")&&(9<p||!p)||"none"===bt.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return n}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:function(){for(var n,t=gt.createElement("div")[xi],r=-1;r<It.e[_i];r++)if(n=r<0?"calc":It.e[r]+"calc",t.cssText="width:"+n+"(1px);",t[_i])return n;return null}(),restrictedMeasuring:function(){S.css(i,"hidden");var n=o[Ii],t=o[zi];S.css(i,"visible");var r=o[Ii],e=o[zi];return n-r!=0||t-e!=0}(),rtlScrollBehavior:function(){S.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0);var n=S.offset(),t=e.offset();S.scrollLeft(999);var r=e.offset();return{i:n.left===t.left,n:t.left-r.left==0}}(),supportTransform:It.v("transform")!==yi,supportTransition:It.v("transition")!==yi,supportPassiveEvents:function(){var n=!1;try{bt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}return n}(),supportResizeObserver:!!Ai.rO(),supportMutationObserver:!!Ai.mO()}),S.removeAttr(xi).remove(),function(){if(!d.x||!d.y){var g=Ei.abs,m=Ai.wW(),w=Ai.wH(),y=x();Li(bt).on("resize",function(){if(0<Di().length){var n=Ai.wW(),t=Ai.wH(),r=n-m,e=t-w;if(0==r&&0==e)return;var i,o=Ei.round(n/(m/100)),u=Ei.round(t/(w/100)),f=g(r),a=g(e),c=g(o),s=g(u),l=x(),v=2<f&&2<a,h=!function b(n,t){var r=g(n),e=g(t);return!(r===e||r+1===e||r-1===e)}(c,s),d=v&&h&&(l!==y&&0<y),p=_.nativeScrollbarSize;d&&(O.append(S),i=_.nativeScrollbarSize=z(S[0]),S.remove(),p.x===i.x&&p.y===i.y||Li.each(Di(),function(){Di(this)&&Di(this).update("zoom")})),m=n,w=t,y=l}})}function x(){var n=bt.screen.deviceXDPI||0,t=bt.screen.logicalXDPI||1;return bt.devicePixelRatio||n/t}}()}function G(r){var c,e=Li.inArray,s=Ai.now,l="autoUpdate",v=_i,h=[],d=[],p=!1,b=33,g=s(),m=function(){if(0<h[v]&&p){c=Ai.rAF()(function(){m()});var n,t,r,e,i,o,u=s(),f=u-g;if(b<f){g=u-f%b,n=33;for(var a=0;a<h[v];a++)(t=h[a])!==yi&&(e=(r=t.options())[l],i=Ei.max(1,r.autoUpdateInterval),o=s(),(!0===e||null===e)&&o-d[a]>i&&(t.update("auto"),d[a]=new Date(o+=i)),n=Ei.max(1,Ei.min(n,i)));b=n}}else b=33};this.add=function(n){-1===e(n,h)&&(h.push(n),d.push(s()),0<h[v]&&!p&&(p=!0,r.autoUpdateLoop=p,m()))},this.remove=function(n){var t=e(n,h);-1<t&&(d.splice(t,1),h.splice(t,1),0===h[v]&&p&&(p=!1,r.autoUpdateLoop=p,c!==yi&&(Ai.cAF()(c),c=-1)))}}function K(r,n,t,Tt,At){var sn=Ai.type,ln=Li.inArray,c=Li.each,Et=new Ni,e=Li[kt];if(ct(r)){if(Di(r)){var i=Di(r);return i.options(n),i}var Ht,Lt,Nt,Rt,R,Dt,Mt,Wt,D,vn,m,T,l,Ft,jt,Bt,Pt,Qt,w,v,Ut,Vt,qt,Xt,Yt,$t,Gt,Kt,Jt,Zt,o,u,nr,tr,rr,f,M,h,W,er,ir,or,ur,fr,ar,cr,sr,lr,vr,hr,a,s,d,p,b,g,y,A,dr,pr,br,E,gr,mr,wr,yr,xr,_r,Or,Sr,zr,kr,Cr,Ir,Tr,Ar,Er,Hr,H,Lr,Nr,Rr,Dr,Mr,Wr,Fr,jr,x,_,Br,Pr,Qr,Ur,Vr,qr,Xr,Yr,$r,Gr,Kr,Jr,Zr,ne,O,te,S,z,k,C,re,ee,I,L,ie,oe,ue,fe,ae,F,j,ce,se,le,ve,he={},hn={},dn={},de={},pe={},N="-hidden",be="margin-",ge="padding-",me="border-",we="top",ye="right",xe="bottom",_e="left",Oe="min-",Se="max-",ze="width",ke="height",Ce="float",Ie="",Te="auto",pn="sync",Ae="scroll",Ee="100%",bn="x",gn="y",B=".",He=" ",P="scrollbar",Q="-horizontal",U="-vertical",Le=Ae+"Left",Ne=Ae+"Top",V="mousedown touchstart",q="mouseup touchend touchcancel",X="mousemove touchmove",Y="mouseenter",$="mouseleave",G="keydown",K="keyup",J="selectstart",Z="transitionend webkitTransitionEnd oTransitionEnd",nn="__overlayScrollbarsRO__",tn="os-",rn="os-html",en="os-host",on=en+"-textarea",un=en+"-"+P+Q+N,fn=en+"-"+P+U+N,an=en+"-transition",Re=en+"-rtl",De=en+"-resize-disabled",Me=en+"-scrolling",We=en+"-overflow",Fe=We+"-x",je=We+"-y",cn="os-textarea",mn=cn+"-cover",wn="os-padding",yn="os-viewport",Be=yn+"-native-scrollbars-invisible",xn=yn+"-native-scrollbars-overlaid",_n="os-content",Pe="os-content-arrange",Qe="os-content-glue",Ue="os-size-auto-observer",On="os-resize-observer",Sn="os-resize-observer-item",zn=Sn+"-final",kn="os-text-inherit",Cn=tn+P,In=Cn+"-track",Tn=In+"-off",An=Cn+"-handle",En=An+"-off",Hn=Cn+"-unusable",Ln=Cn+"-"+Te+N,Nn=Cn+"-corner",Ve=Nn+"-resize",qe=Ve+"-both",Xe=Ve+Q,Ye=Ve+U,Rn=Cn+Q,Dn=Cn+U,Mn="os-dragging",$e="os-theme-none",Wn=[Be,xn,Tn,En,Hn,Ln,Ve,qe,Xe,Ye,Mn].join(He),Fn=[],jn={},Ge={},Ke=42,Bn=[],Pn={},Qn=["wrap","cols","rows"],Un=[zt,St,xi,"open"],Vn=[];return Et.sleep=function(){Zt=!0},Et.update=function(n){if(!Bt){var t,r,e,i,o,u=sn(n)==xt;return u?n===Te?(t=function f(){if(!Zt&&!re){var r,e,i,o,n=[{z:ir,k:Un.concat(":visible")},{z:Pt?er:yi,k:Qn}];return c(n,function(n,t){(e=t.z)&&c(t.k,function(n,t){i=":"===t.charAt(0)?e.is(t):e.attr(t),o=Pn[t],r=r||bi(i,o),Pn[t]=i})}),r}}(),r=function s(){if(Zt)return!1;var n,t,r,e,i,o=di(),u=Pt&&zr&&!$r?er.val().length:0,f=!re&&zr&&!Pt,a={},c={};return Ft&&(a={x:mr[Ii],y:mr[zi]}),f&&(n=cr.css(Ce),c[Ce]=Jt?ye:_e,c[ze]=Te,cr.css(c)),i={w:o[Ii]+u,h:o[zi]+u},f&&(c[Ce]=n,c[ze]=Ee,cr.css(c)),t=ri(),r=bi(i,x),e=bi(a,O),x=i,O=a,r||t||e}(),(e=t||r)&&ii({C:r,I:jt?yi:nr})):n===pn?re?(i=k(S.takeRecords()),o=C(z.takeRecords())):i=Et.update(Te):"zoom"===n&&ii({T:!0,C:!0}):(n=Zt||n,Zt=!1,Et.update(pn)&&!n||ii({A:n})),Pt||cr.find("img").each(function(n,t){-1===Ai.inA(t,Bn)&&Li(t).off("load",nt).on("load",nt)}),e||i||o}},Et.options=function(n,t){var r,e={};if(Li.isEmptyObject(n)||!Li.isPlainObject(n)){if(sn(n)!=xt)return u;if(!(1<arguments.length))return vt(u,n);!function a(n,t,r){for(var e=t.split(B),i=e.length,o=0,u={},f=u;o<i;o++)u=u[e[o]]=o+1<i?{}:r;Li.extend(n,f,!0)}(e,n,t),r=rt(e)}else r=rt(n);Li.isEmptyObject(r)||ii({I:r})},Et.destroy=function(){if(!Bt){for(var n in At.remove(Et),ni(),Je(ur),Je(or),jn)Et.removeExt(n);for(;0<Vn[_i];)Vn.pop()();ti(!0),lr&&ht(lr),sr&&ht(sr),Vt&&ht(or),ot(!0),ft(!0),et(!0);for(var t=0;t<Bn[_i];t++)Li(Bn[t]).off("load",nt);Bn=yi,Zt=Bt=!0,Di(r,0),li("onDestroyed")}},Et.scroll=function(n,t,r,e){if(0===arguments.length||n===yi){var i=hn,o=dn,u=qr&&Jt&&Nt.i,f=qr&&Jt&&Nt.n,a=i.H,c=i.L,s=i.N;return c=u?1-c:c,a=u?s-a:a,s*=f?-1:1,{position:{x:a*=f?-1:1,y:o.H},ratio:{x:c,y:o.L},max:{x:s,y:o.N},handleOffset:{x:i.R,y:o.R},handleLength:{x:i.D,y:o.D},handleLengthRatio:{x:i.M,y:o.M},trackLength:{x:i.W,y:o.W},snappedHandleOffset:{x:i.F,y:o.F},isRTL:Jt,isRTLNormalized:qr}}Et.update(pn);var l,v,h,d,p,m,w,b,g,y=qr,x=[bn,_e,"l"],_=[gn,we,"t"],O=["+=","-=","*=","/="],S=sn(t)==mt,z=S?t.complete:e,k={},C={},I="begin",T="nearest",A="never",E="ifneeded",H=_i,L=[bn,gn,"xy","yx"],N=[I,"end","center",T],R=["always",A,E],D=n[Ct]("el"),M=D?n.el:n,W=!!(M instanceof Li||Hi)&&M instanceof Hi,F=!W&&ct(M),j=sn(z)!=wt?yi:function(){v&&ai(!0),h&&ai(!1),z()};function B(n,t){for(l=0;l<t[H];l++)if(n===t[l])return!0;return!1}function P(n,t){var r=n?x:_;if(t=sn(t)==xt||sn(t)==Ot?[t,t]:t,sn(t)==yt)return n?t[0]:t[1];if(sn(t)==mt)for(l=0;l<r[H];l++)if(r[l]in t)return t[r[l]]}function Q(n,t){var r,e,i,o,u=sn(t)==xt,f=n?hn:dn,a=f.H,c=f.N,s=Jt&&n,l=s&&Nt.n&&!y,v="replace",h=eval;if((e=u?(2<t[H]&&(o=t.substr(0,2),-1<ln(o,O)&&(r=o)),t=(t=r?t.substr(2):t)[v](/min/g,0)[v](/</g,0)[v](/max/g,(l?"-":Ie)+Ee)[v](/>/g,(l?"-":Ie)+Ee)[v](/px/g,Ie)[v](/%/g," * "+c*(s&&Nt.n?-1:1)/100)[v](/vw/g," * "+de.w)[v](/vh/g," * "+de.h),hi(isNaN(t)?hi(h(t),!0).toFixed():t)):t)!==yi&&!isNaN(e)&&sn(e)==Ot){var d=y&&s,p=a*(d&&Nt.n?-1:1),b=d&&Nt.i,g=d&&Nt.n;switch(p=b?c-p:p,r){case"+=":i=p+e;break;case"-=":i=p-e;break;case"*=":i=p*e;break;case"/=":i=p/e;break;default:i=e}i=b?c-i:i,i*=g?-1:1,i=s&&Nt.n?Ei.min(0,Ei.max(c,i)):Ei.max(0,Ei.min(c,i))}return i===a?yi:i}function U(n,t,r,e){var i,o,u=[r,r],f=sn(n);if(f==t)n=[n,n];else if(f==yt){if(2<(i=n[H])||i<1)n=u;else for(1===i&&(n[1]=r),l=0;l<i;l++)if(o=n[l],sn(o)!=t||!B(o,e)){n=u;break}}else n=f==mt?[n[bn]||r,n[gn]||r]:u;return{x:n[0],y:n[1]}}function V(n){var t,r,e=[],i=[we,ye,xe,_e];for(l=0;l<n[H]&&l!==i[H];l++)t=n[l],(r=sn(t))==_t?e.push(t?hi(g.css(be+i[l])):0):e.push(r==Ot?t:0);return e}if(W||F){var q,X=D?n.margin:0,Y=D?n.axis:0,$=D?n.scroll:0,G=D?n.block:0,K=[0,0,0,0],J=sn(X);if(0<(g=W?M:Li(M))[H]){X=J==Ot||J==_t?V([X,X,X,X]):J==yt?2===(q=X[H])?V([X[0],X[1],X[0],X[1]]):4<=q?V(X):K:J==mt?V([X[we],X[ye],X[xe],X[_e]]):K,p=B(Y,L)?Y:"xy",m=U($,xt,"always",R),w=U(G,xt,I,N),b=X;var Z=hn.H,nn=dn.H,tn=fr.offset(),rn=g.offset(),en={x:m.x==A||p==gn,y:m.y==A||p==bn};rn[we]-=b[0],rn[_e]-=b[3];var on={x:Ei.round(rn[_e]-tn[_e]+Z),y:Ei.round(rn[we]-tn[we]+nn)};if(Jt&&(Nt.n||Nt.i||(on.x=Ei.round(tn[_e]-rn[_e]+Z)),Nt.n&&y&&(on.x*=-1),Nt.i&&y&&(on.x=Ei.round(tn[_e]-rn[_e]+(hn.N-Z)))),w.x!=I||w.y!=I||m.x==E||m.y==E||Jt){var un=g[0],fn=vn?un[Ti]():{width:un[ki],height:un[Oi]},an={w:fn[ze]+b[3]+b[1],h:fn[ke]+b[0]+b[2]},cn=function(n){var t=si(n),r=t.j,e=t.B,i=t.P,o=w[i]==(n&&Jt?I:"end"),u="center"==w[i],f=w[i]==T,a=m[i]==A,c=m[i]==E,s=de[r],l=tn[e],v=an[r],h=rn[e],d=u?2:1,p=h+v/2,b=l+s/2,g=v<=s&&l<=h&&h+v<=l+s;a?en[i]=!0:en[i]||((f||c)&&(en[i]=c&&g,o=v<s?b<p:p<b),on[i]-=o||u?(s/d-v/d)*(n&&Jt&&y?-1:1):0)};cn(!0),cn(!1)}en.y&&delete on.y,en.x&&delete on.x,n=on}}k[Le]=Q(!0,P(!0,n)),k[Ne]=Q(!1,P(!1,n)),v=k[Le]!==yi,h=k[Ne]!==yi,(v||h)&&(0<t||S)?S?(t.complete=j,ar.animate(k,t)):(d={duration:t,complete:j},sn(r)==yt||Li.isPlainObject(r)?(C[Le]=r[0]||r.x,C[Ne]=r[1]||r.y,d.specialEasing=C):d.easing=r,ar.animate(k,d)):(v&&ar[Le](k[Le]),h&&ar[Ne](k[Ne]))},Et.scrollStop=function(n,t,r){return ar.stop(n,t,r),Et},Et.getElements=function(n){var t={target:dr,host:pr,padding:gr,viewport:mr,content:wr,scrollbarHorizontal:{scrollbar:a[0],track:s[0],handle:d[0]},scrollbarVertical:{scrollbar:p[0],track:b[0],handle:g[0]},scrollbarCorner:hr[0]};return sn(n)==xt?vt(t,n):t},Et.getState=function(n){function t(n){if(!Li.isPlainObject(n))return n;function t(n,t){r[Ct](n)&&(r[t]=r[n],delete r[n])}var r=gi({},n);return t("w",ze),t("h",ke),delete r.c,r}var r={destroyed:!!t(Bt),sleeping:!!t(Zt),autoUpdate:t(!re),widthAuto:t(zr),heightAuto:t(kr),padding:t(Tr),overflowAmount:t(Mr),hideOverflow:t(Sr),hasOverflow:t(Or),contentScrollSize:t(xr),viewportSize:t(de),hostSize:t(yr),documentMixed:t(w)};return sn(n)==xt?vt(r,n):r},Et.ext=function(n){var t,r="added removed on contract".split(" "),e=0;if(sn(n)==xt){if(jn[Ct](n))for(t=gi({},jn[n]);e<r.length;e++)delete t[r[e]]}else for(e in t={},jn)t[e]=gi({},Et.ext(e));return t},Et.addExt=function(n,t){var r,e,i,o,u=Ni.extension(n),f=!0;if(u){if(jn[Ct](n))return Et.ext(n);if((r=u.extensionFactory.call(Et,gi({},u.defaultOptions),Li,Ai))&&(i=r.contract,sn(i)==wt&&(o=i(bt),f=sn(o)==_t?o:f),f))return e=(jn[n]=r).added,sn(e)==wt&&e(t),Et.ext(n)}else console.warn('A extension with the name "'+n+"\" isn't registered.")},Et.removeExt=function(n){var t,r=jn[n];return!!r&&(delete jn[n],t=r.removed,sn(t)==wt&&t(),!0)},Ni.valid(function pt(n,t,r){var e,i;return o=Tt.defaultOptions,Dt=Tt.nativeScrollbarStyling,Wt=gi({},Tt.nativeScrollbarSize),Ht=gi({},Tt.nativeScrollbarIsOverlaid),Lt=gi({},Tt.overlayScrollbarDummySize),Nt=gi({},Tt.rtlScrollBehavior),rt(gi({},o,t)),Mt=Tt.cssCalc,R=Tt.msie,Rt=Tt.autoUpdateRecommended,D=Tt.supportTransition,vn=Tt.supportTransform,m=Tt.supportPassiveEvents,T=Tt.supportResizeObserver,l=Tt.supportMutationObserver,Ft=Tt.restrictedMeasuring,M=Li(n.ownerDocument),A=M[0],f=Li(A.defaultView||A.parentWindow),y=f[0],h=dt(M,"html"),W=dt(h,"body"),er=Li(n),dr=er[0],Pt=er.is("textarea"),Qt=er.is("body"),w=A!==gt,v=Pt?er.hasClass(cn)&&er.parent().hasClass(_n):er.hasClass(en)&&er.children(B+wn)[_i],Ht.x&&Ht.y&&!nr.nativeScrollbarsOverlaid.initialize?(li("onInitializationWithdrawn"),v&&(et(!0),ot(!0),ft(!0)),Zt=Bt=!0):(Qt&&((e={}).l=Ei.max(er[Le](),h[Le](),f[Le]()),e.t=Ei.max(er[Ne](),h[Ne](),f[Ne]()),i=function(){ar.removeAttr("tabindex"),qn(ar,V,i,!0,!0)}),et(),ot(),ft(),it(),ut(!0),ut(!1),function s(){var r,t=y.top!==y,e={},i={},o={};function u(n){if(a(n)){var t=c(n),r={};(le||se)&&(r[ze]=i.w+(t.x-e.x)*o.x),(ve||se)&&(r[ke]=i.h+(t.y-e.y)*o.y),ir.css(r),Ai.stpP(n)}else f(n)}function f(n){var t=n!==yi;qn(M,[J,X,q],[Zn,u,f],!0),wi(W,Mn),hr.releaseCapture&&hr.releaseCapture(),t&&(r&&Ze(),Et.update(Te)),r=!1}function a(n){var t=(n.originalEvent||n).touches!==yi;return!Zt&&!Bt&&(1===Ai.mBtn(n)||t)}function c(n){return R&&t?{x:n.screenX,y:n.screenY}:Ai.page(n)}Xn(hr,V,function(n){a(n)&&!ce&&(re&&(r=!0,ni()),e=c(n),i.w=pr[ki]-(Ut?0:qt),i.h=pr[Oi]-(Ut?0:Xt),o=at(),qn(M,[J,X,q],[Zn,u,f]),mi(W,Mn),hr.setCapture&&hr.setCapture(),Ai.prvD(n),Ai.stpP(n))})}(),Yn(),Je(ur,$n),Qt&&(ar[Le](e.l)[Ne](e.t),gt.activeElement==n&&mr.focus&&(ar.attr("tabindex","-1"),mr.focus(),qn(ar,V,i,!1,!0))),Et.update(Te),jt=!0,li("onInitialized"),c(Fn,function(n,t){li(t.n,t.a)}),Fn=[],sn(r)==xt&&(r=[r]),Ai.isA(r)?c(r,function(n,t){Et.addExt(t)}):Li.isPlainObject(r)&&c(r,function(n,t){Et.addExt(n,t)}),setTimeout(function(){D&&!Bt&&mi(ir,an)},333)),Et}(r,n,t))&&Di(r,Et),Et}function qn(n,t,r,e,i){var o=sn(t)==yt&&sn(r)==yt,u=e?"removeEventListener":"addEventListener",f=e?"off":"on",a=!o&&t.split(He),c=0;if(o)for(;c<t[_i];c++)qn(n,t[c],r[c],e);else for(;c<a[_i];c++)m?n[0][u](a[c],r,{passive:i||!1}):n[f](a[c],r)}function Xn(n,t,r,e){qn(n,t,r,!1,e),Vn.push(Ai.bind(qn,0,n,t,r,!0,e))}function Je(n,t){if(n){var r=Ai.rO(),e="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",i="childNodes",o=3333333,u=function(){n[Ne](o)[Le](Jt?Nt.n?-o:Nt.i?0:o:o),t()};if(t){if(T)((C=n.append(pi(On+" observed")).contents()[0])[nn]=new r(u)).observe(C);else if(9<R||!Rt){n.prepend(pi(On,pi({c:Sn,dir:"ltr"},pi(Sn,pi(zn))+pi(Sn,pi({c:zn,style:"width: 200%; height: 200%"})))));var f,a,c,s,l=n[0][i][0][i][0],v=Li(l[i][1]),h=Li(l[i][0]),d=Li(h[0][i][0]),p=l[ki],b=l[Oi],g=Tt.nativeScrollbarSize,m=function(){h[Le](o)[Ne](o),v[Le](o)[Ne](o)},w=function(){a=0,f&&(p=c,b=s,u())},y=function(n){return c=l[ki],s=l[Oi],f=c!=p||s!=b,n&&f&&!a?(Ai.cAF()(a),a=Ai.rAF()(w)):n||w(),m(),n&&(Ai.prvD(n),Ai.stpP(n)),!1},x={},_={};vi(_,Ie,[-2*(g.y+1),-2*g.x,-2*g.y,-2*(g.x+1)]),Li(l).css(_),h.on(Ae,y),v.on(Ae,y),n.on(e,function(){y(!1)}),x[ze]=o,x[ke]=o,d.css(x),m()}else{var O=A.attachEvent,S=R!==yi;if(O)n.prepend(pi(On)),dt(n,B+On)[0].attachEvent("onresize",u);else{var z=A.createElement(mt);z.setAttribute("tabindex","-1"),z.setAttribute(St,On),z.onload=function(){var n=this.contentDocument.defaultView;n.addEventListener("resize",u),n.document.documentElement.style.display="none"},z.type="text/html",S&&n.prepend(z),z.data="about:blank",S||n.prepend(z),n.on(e,u)}}if(n[0]===E){var k=function(){var n=ir.css("direction"),t={},r=0,e=!1;return n!==H&&(r="ltr"===n?(t[_e]=0,t[ye]=Te,o):(t[_e]=Te,t[ye]=0,Nt.n?-o:Nt.i?0:o),ur.children().eq(0).css(t),ur[Le](r)[Ne](o),H=n,e=!0),e};k(),Xn(n,Ae,function(n){return k()&&ii(),Ai.prvD(n),Ai.stpP(n),!1})}}else if(T){var C,I=(C=n.contents()[0])[nn];I&&(I.disconnect(),delete C[nn])}else ht(n.children(B+On).eq(0))}}function Yn(){if(l){var e,i,r,o,u,f,n=Ai.mO(),a=Ai.now();C=function(n){var t=!1;return jt&&!Zt&&(c(n,function(){return!(t=function o(n){var t=n.attributeName,r=n.target,e=n.type,i="closest";if(r===wr)return null===t;if("attributes"===e&&(t===St||t===xi)&&!Pt){if(t===St&&Li(r).hasClass(en))return tt(n.oldValue,r.getAttribute(St));if(typeof r[i]!=wt)return!0;if(null!==r[i](B+On)||null!==r[i](B+Cn)||null!==r[i](B+Nn))return!1}return!0}(this))}),t&&(o=Ai.now(),u=kr||zr,f=function(){Bt||(a=o,Pt&&ei(),u?ii():Et.update(Te))},clearTimeout(r),11<o-a||!u?f():r=setTimeout(f,11))),t},S=new n(k=function(n){var t,r=!1;return jt&&!Zt&&(c(n,function(){if(e=(t=this).target,i=t.attributeName,r=i===St?tt(t.oldValue,e.className):i!==xi||t.oldValue!==e[xi].cssText)return!1}),r&&Et.update(Te)),r}),z=new n(C)}}function Ze(){l&&!re&&(S.observe(pr,{attributes:!0,attributeOldValue:!0,attributeFilter:Un}),z.observe(Pt?dr:wr,{attributes:!0,attributeOldValue:!0,subtree:!Pt,childList:!Pt,characterData:!Pt,attributeFilter:Pt?Qn:Un}),re=!0)}function ni(){l&&re&&(S.disconnect(),z.disconnect(),re=!1)}function $n(){if(!Zt){var n,t={w:E[Ii],h:E[zi]};n=bi(t,_),_=t,n&&ii({T:!0})}}function Gn(){ae&&ui(!0)}function Kn(){ae&&!W.hasClass(Mn)&&ui(!1)}function Jn(){fe&&(ui(!0),clearTimeout(L),L=setTimeout(function(){fe&&!Bt&&ui(!1)},100))}function Zn(n){return Ai.prvD(n),!1}function nt(){ii({C:!0})}function ti(n){qn(ir,X,Jn,!fe||n,!0),qn(ir,[Y,$],[Gn,Kn],!!fe||n,!0),jt||n||ir.one("mouseover",Gn)}function ri(){var n={};return Qt&&sr&&(n.w=hi(sr.css(Oe+ze)),n.h=hi(sr.css(Oe+ke)),n.c=bi(n,ne),n.f=!0),!!(ne=n).c}function tt(n,t){var r=t!==yi&&null!==t?t.split(He):Ie,e=n!==yi&&null!==n?n.split(He):Ie;if(r===Ie&&e===Ie)return!1;var i,o,u,f,a,c=function d(n,t){var r,e,i=[],o=[];for(r=0;r<n.length;r++)i[n[r]]=!0;for(r=0;r<t.length;r++)i[t[r]]?delete i[t[r]]:i[t[r]]=!0;for(e in i)o.push(e);return o}(e,r),s=!1,l=Yr!==yi&&null!==Yr?Yr.split(He):[Ie],v=Xr!==yi&&null!==Xr?Xr.split(He):[Ie],h=ln($e,c);for(-1<h&&c.splice(h,1),o=0;o<c.length;o++)if(0!==(i=c[o]).indexOf(en)){for(a=f=!0,u=0;u<l.length;u++)if(i===l[u]){f=!1;break}for(u=0;u<v.length;u++)if(i===v[u]){a=!1;break}if(f&&a){s=!0;break}}return s}function ei(){if(!Zt){var n,t,r,e,i=!$r,o=de.w,u=de.h,f={},a=zr||i;return f[Oe+ze]=Ie,f[Oe+ke]=Ie,f[ze]=Te,er.css(f),n=dr[ki],t=a?Ei.max(n,dr[Ii]-1):1,f[ze]=zr?Te:Ee,f[Oe+ze]=Ee,f[ke]=Te,er.css(f),r=dr[Oi],e=Ei.max(r,dr[zi]-1),f[ze]=t,f[ke]=e,vr.css(f),f[Oe+ze]=o,f[Oe+ke]=u,er.css(f),{Q:n,U:r,V:t,X:e}}}function ii(n){clearTimeout(rr),n=n||{},Ge.T|=n.T,Ge.C|=n.C,Ge.A|=n.A;var t,r=Ai.now(),e=!!Ge.T,i=!!Ge.C,o=!!Ge.A,u=n.I,f=0<Ke&&jt&&!Bt&&!o&&!u&&r-tr<Ke&&!kr&&!zr;if(f&&(rr=setTimeout(ii,Ke)),!(Bt||f||Zt&&!u||jt&&!o&&(t=ir.is(":hidden"))||"inline"===ir.css("display"))){tr=r,Ge={},!Dt||Ht.x&&Ht.y?Wt=gi({},Tt.nativeScrollbarSize):(Wt.x=0,Wt.y=0),pe={x:3*(Wt.x+(Ht.x?0:3)),y:3*(Wt.y+(Ht.y?0:3))};var a=function(){return bi.apply(this,[].slice.call(arguments).concat([o]))},c={x:ar[Le](),y:ar[Ne]()},s=nr.scrollbars,l=nr.textarea,v=s.visibility,h=a(v,Br),d=s.autoHide,p=a(d,Pr),b=s.clickScrolling,g=a(b,Qr),m=s.dragScrolling,w=a(m,Ur),y=nr.className,x=a(y,Xr),_=nr.resize,O=a(_,Vr)&&!Qt,S=nr.paddingAbsolute,z=a(S,Lr),k=nr.clipAlways,C=a(k,Nr),I=nr.sizeAutoCapable&&!Qt,T=a(I,jr),A=nr.nativeScrollbarsOverlaid.showNativeScrollbars,E=a(A,Wr),H=nr.autoUpdate,L=a(H,Fr),N=nr.overflowBehavior,R=a(N,Dr,o),D=l.dynWidth,M=a(Zr,D),W=l.dynHeight,F=a(Jr,W);if(oe="n"===d,ue="s"===d,fe="m"===d,ae="l"===d,ie=s.autoHideDelay,Yr=Xr,ce="n"===_,se="b"===_,le="h"===_,ve="v"===_,qr=nr.normalizeRTL,A=A&&Ht.x&&Ht.y,Br=v,Pr=d,Qr=b,Ur=m,Xr=y,Vr=_,Lr=S,Nr=k,jr=I,Wr=A,Fr=H,Dr=gi({},N),Zr=D,Jr=W,Or=Or||{x:!1,y:!1},x&&(wi(ir,Yr+He+$e),mi(ir,y!==yi&&null!==y&&0<y.length?y:$e)),L&&(!0===H?(ni(),At.add(Et)):null===H&&Rt?(ni(),At.add(Et)):(At.remove(Et),Ze())),T)if(I)if(lr?lr.show():(lr=Li(pi(Qe)),fr.before(lr)),Vt)or.show();else{or=Li(pi(Ue)),br=or[0],lr.before(or);var j={w:-1,h:-1};Je(or,function(){var n={w:br[ki],h:br[Oi]};bi(n,j)&&(jt&&kr&&0<n.h||zr&&0<n.w?ii():(jt&&!kr&&0===n.h||!zr&&0===n.w)&&ii()),j=n}),Vt=!0,null!==Mt&&or.css(ke,Mt+"(100% + 1px)")}else Vt&&or.hide(),lr&&lr.hide();o&&(ur.find("*").trigger(Ae),Vt&&or.find("*").trigger(Ae));var B,P=a(t=t===yi?ir.is(":hidden"):t,te),Q=!!Pt&&"off"!==er.attr("wrap"),U=a(Q,$r),V=ir.css("direction"),q=a(V,Hr),X=ir.css("box-sizing"),Y=a(X,Ir),$={c:o,t:hi(ir.css(ge+we)),r:hi(ir.css(ge+ye)),b:hi(ir.css(ge+xe)),l:hi(ir.css(ge+_e))};try{B=Vt?br[Ti]():null}catch(Ct){return}Ut="border-box"===X;var G=(Jt="rtl"===V)?_e:ye,K=Jt?ye:_e,J=!1,Z=!(!Vt||"none"===ir.css(Ce))&&(0===Ei.round(B.right-B.left)&&(!!S||0<pr[Ci]-qt));if(I&&!Z){var nn=pr[ki],tn=lr.css(ze);lr.css(ze,Te);var rn=pr[ki];lr.css(ze,tn),(J=nn!==rn)||(lr.css(ze,nn+1),rn=pr[ki],lr.css(ze,tn),J=nn!==rn)}var en=(Z||J)&&I&&!t,on=a(en,zr),un=!en&&zr,fn=!(!Vt||!I||t)&&0===Ei.round(B.bottom-B.top),an=a(fn,kr),cn=!fn&&kr,sn="-"+ze,ln=en&&Ut||!Ut,vn=fn&&Ut||!Ut,hn={c:o,t:vn?hi(ir.css(me+we+sn),!0):0,r:ln?hi(ir.css(me+ye+sn),!0):0,b:vn?hi(ir.css(me+xe+sn),!0):0,l:ln?hi(ir.css(me+_e+sn),!0):0},dn={c:o,t:hi(ir.css(be+we)),r:hi(ir.css(be+ye)),b:hi(ir.css(be+xe)),l:hi(ir.css(be+_e))},pn={h:String(ir.css(Se+ke)),w:String(ir.css(Se+ze))},bn={},gn={},mn=function(){return{w:pr[Ci],h:pr[Si]}},wn=function(){return{w:gr[ki]+Ei.max(0,wr[Ci]-wr[Ii]),h:gr[Oi]+Ei.max(0,wr[Si]-wr[zi])}},yn=qt=$.l+$.r,xn=Xt=$.t+$.b;if(yn*=S?1:0,xn*=S?1:0,$.c=a($,Tr),Yt=hn.l+hn.r,$t=hn.t+hn.b,hn.c=a(hn,Ar),Gt=dn.l+dn.r,Kt=dn.t+dn.b,dn.c=a(dn,Er),pn.ih=hi(pn.h),pn.iw=hi(pn.w),pn.ch=-1<pn.h.indexOf("px"),pn.cw=-1<pn.w.indexOf("px"),pn.c=a(pn,Cr),te=t,$r=Q,Hr=V,Ir=X,zr=en,kr=fn,Tr=$,Ar=hn,Er=dn,Cr=pn,q&&Vt&&or.css(Ce,K),$.c||q||z||on||an||Y||T){var _n={},On={};vi(gn,be,[-$.t,-$.r,-$.b,-$.l]),S?(vi(_n,Ie,[$.t,$.r,$.b,$.l]),vi(Pt?On:bn,ge)):(vi(_n,Ie),vi(Pt?On:bn,ge,[$.t,$.r,$.b,$.l])),fr.css(_n),er.css(On)}de=wn();var Sn=!!Pt&&ei(),zn=Pt&&a(Sn,Kr),kn=Pt&&Sn?{w:D?Sn.V:Sn.Q,h:W?Sn.X:Sn.U}:{};if(Kr=Sn,fn&&(an||z||Y||pn.c||$.c||hn.c)?bn[ke]=Te:(an||z)&&(bn[Se+ke]=Ie,bn[ke]=Ee),en&&(on||z||Y||pn.c||$.c||hn.c||q)?(bn[ze]=Te,gn[Se+ze]=Ee):(on||z)&&(bn[Se+ze]=Ie,bn[ze]=Ee,bn[Ce]=Ie,gn[Se+ze]=Ie),en?(pn.cw||(bn[Se+ze]=Ie),gn[ze]=Te,bn[ze]=Te,bn[Ce]=K):gn[ze]=Ie,fn?(pn.ch||(bn[Se+ke]=Ie),gn[ke]=kn.h||wr[Si]):gn[ke]=Ie,I&&lr.css(gn),cr.css(bn),bn={},gn={},e||i||zn||q||Y||z||on||en||an||fn||pn.c||E||R||C||O||h||p||w||g||M||F||U){var Cn="overflow",In=Cn+"-x",Tn=Cn+"-y",An=Ft?Ht.x||Ht.y||de.w<pe.y||de.h<pe.x||fn||P:fn,En={},Hn=Or.y&&Sr.ys&&!A&&!Dt?Ht.y?ar.css(G):-Wt.y:0,Ln=Or.x&&Sr.xs&&!A&&!Dt?Ht.x?ar.css(xe):-Wt.x:0;vi(En,Ie),ar.css(En),An&&cr.css(Cn,"hidden");var Nn=di(),Rn=Ft&&!An?mr:Nn,Dn={w:kn.w||Nn[Ci],h:kn.h||Nn[Si]},Mn=Ei.max(Nn[Ii],Rn[Ii]),Wn=Ei.max(Nn[zi],Rn[zi]);En[xe]=cn?Ie:Ln,En[G]=un?Ie:Hn,ar.css(En),de=wn();var Fn=mn(),jn={w:Ei.max((en?Dn.w:Mn)+yn,Fn.w),h:Ei.max((fn?Dn.h:Wn)+xn,Fn.h)};if(jn.c=a(jn,Rr),Rr=jn,I){(jn.c||fn||en)&&(gn[ze]=jn.w,gn[ke]=jn.h,Pt||(Dn={w:Nn[Ci],h:Nn[Si]}));var Bn={},Pn=function(n){var t=si(n),r=t.j,e=t.Y,i=n?en:fn,o=n?Yt:$t,u=n?qt:Xt,f=n?Gt:Kt,a=gn[e]+(Ut?o:-u);i&&(i||!hn.c)||(gn[e]=Fn[r]-(Ut?0:u+o)-1-f),i&&pn["c"+r]&&pn["i"+r]===a&&(gn[e]=a+(Ut?0:u)+1),!(i&&Dn[r]<de[r])||n&&Pt&&Q||(Pt&&(Bn[e]=hi(vr.css(e))-1),gn[e]-=1),0<Dn[r]&&(gn[e]=Ei.max(1,gn[e]))};Pn(!0),Pn(!1),Pt&&vr.css(Bn),lr.css(gn)}en&&(bn[ze]=Ee),!en||Ut||re||(bn[Ce]="none"),cr.css(bn),bn={};var Qn={w:Ei.max(Nn[Ii],Rn[Ii]),h:Ei.max(Nn[zi],Rn[zi])};Qn.c=i=a(Qn,xr),xr=Qn,An&&cr.css(Cn,Ie),de=wn(),e=a(Fn=mn(),yr),yr=Fn;var Un=Pt&&(0===de.w||0===de.h),Vn=Mr,qn={},Xn={},Yn={},$n={},Gn={},Kn={},Jn={},Zn=gr[Ti](),nt=function(n){var t=si(n),r=si(!n).P,e=t.P,i=t.j,o=t.Y,u=Ae+t.$+"Max",f=Zn[o]?Ei.abs(Zn[o]-de[i]):0;qn[e]="v-s"===N[e],Xn[e]="v-h"===N[e],Yn[e]="s"===N[e],$n[e]=Ei.max(0,Ei.round(100*(Qn[i]-de[i]))/100),$n[e]*=Un||0===mr[u]&&0<f&&f<1?0:1,Gn[e]=0<$n[e],Kn[e]=qn[e]||Xn[e]?Gn[r]&&!qn[r]&&!Xn[r]:Gn[e],Kn[e+"s"]=!!Kn[e]&&(Yn[e]||qn[e]),Jn[e]=Gn[e]&&Kn[e+"s"]};if(nt(!0),nt(!1),$n.c=a($n,Mr),Mr=$n,Gn.c=a(Gn,Or),Or=Gn,Kn.c=a(Kn,Sr),Sr=Kn,Ht.x||Ht.y){var tt,rt={},et={},it=o;(Gn.x||Gn.y)&&(et.w=Ht.y&&Gn.y?Qn.w+Lt.y:Ie,et.h=Ht.x&&Gn.x?Qn.h+Lt.x:Ie,it=a(et,_r),_r=et),(Gn.c||Kn.c||Qn.c||q||on||an||en||fn||E)&&(bn[be+K]=bn[me+K]=Ie,tt=function(n){var t=si(n),r=si(!n),e=t.P,i=n?xe:G,o=n?fn:en;Ht[e]&&Gn[e]&&Kn[e+"s"]?(bn[be+i]=o?A?Ie:Lt[e]:Ie,bn[me+i]=n&&o||A?Ie:Lt[e]+"px solid transparent"):(et[r.j]=bn[be+i]=bn[me+i]=Ie,it=!0)},Dt?A?wi(ar,Be):mi(ar,Be):(tt(!0),tt(!1))),A&&(et.w=et.h=Ie,it=!0),it&&!Dt&&(rt[ze]=Kn.y?et.w:Ie,rt[ke]=Kn.x?et.h:Ie,sr||(sr=Li(pi(Pe)),ar.prepend(sr)),sr.css(rt)),cr.css(bn)}var ot,ut={};_n={};if((e||Gn.c||Kn.c||Qn.c||R||Y||E||q||C||an)&&(ut[K]=Ie,(ot=function(n){function t(){ut[u]=Ie,he[e.j]=0}var r=si(n),e=si(!n),i=r.P,o=r.G,u=n?xe:G;Gn[i]&&Kn[i+"s"]?(ut[Cn+o]=Ae,A||Dt?t():(ut[u]=-(Ht[i]?Lt[i]:Wt[i]),he[e.j]=Ht[i]?Lt[e.P]:0)):(ut[Cn+o]=Ie,t())})(!0),ot(!1),!Dt&&(de.h<pe.x||de.w<pe.y)&&(Gn.x&&Kn.x&&!Ht.x||Gn.y&&Kn.y&&!Ht.y)?(ut[ge+we]=pe.x,ut[be+we]=-pe.x,ut[ge+K]=pe.y,ut[be+K]=-pe.y):ut[ge+we]=ut[be+we]=ut[ge+K]=ut[be+K]=Ie,ut[ge+G]=ut[be+G]=Ie,Gn.x&&Kn.x||Gn.y&&Kn.y||Un?Pt&&Un&&(_n[In]=_n[Tn]="hidden"):(!k||Xn.x||qn.x||Xn.y||qn.y)&&(Pt&&(_n[In]=_n[Tn]=Ie),ut[In]=ut[Tn]="visible"),fr.css(_n),ar.css(ut),ut={},(Gn.c||Y||on||an)&&(!Ht.x||!Ht.y))){var ft=wr[xi];ft.webkitTransform="scale(1)",ft.display="run-in",wr[Oi],ft.display=Ie,ft.webkitTransform=Ie}if(bn={},q||on||an)if(Jt&&en){var at=cr.css(Ce),ct=Ei.round(cr.css(Ce,Ie).css(_e,Ie).position().left);cr.css(Ce,at),ct!==Ei.round(cr.position().left)&&(bn[_e]=ct)}else bn[_e]=Ie;if(cr.css(bn),Pt&&i){var st=function It(){var n=dr.selectionStart;if(n===yi)return;var t,r,e=er.val(),i=e[_i],o=e.split("\n"),u=o[_i],f=e.substr(0,n).split("\n"),a=0,c=0,s=f[_i],l=f[f[_i]-1][_i];for(r=0;r<o[_i];r++)t=o[r][_i],c<t&&(a=r+1,c=t);return{K:s,J:l,Z:u,nn:c,tn:a,rn:n,en:i}}();if(st){var lt=Gr===yi||st.Z!==Gr.Z,vt=st.K,ht=st.J,dt=st.tn,pt=st.Z,bt=st.nn,gt=st.rn,mt=st.en<=gt&&ee,wt={x:Q||ht!==bt||vt!==dt?-1:Mr.x,y:(Q?mt||lt&&Vn!==yi&&c.y===Vn.y:(mt||lt)&&vt===pt)?Mr.y:-1};c.x=-1<wt.x?Jt&&qr&&Nt.i?0:wt.x:c.x,c.y=-1<wt.y?wt.y:c.y}Gr=st}Jt&&Nt.i&&Ht.y&&Gn.x&&qr&&(c.x+=he.w||0),en&&ir[Le](0),fn&&ir[Ne](0),ar[Le](c.x)[Ne](c.y);var yt="v"===v,xt="h"===v,_t="a"===v,Ot=Ai.bind(oi,0,!0,!0,Jn.x),St=Ai.bind(oi,0,!1,!0,Jn.y),zt=Ai.bind(oi,0,!0,!1,Jn.x),kt=Ai.bind(oi,0,!1,!1,Jn.y);Kn.x||Kn.y?mi(ir,We):wi(ir,We),Kn.x?mi(ir,Fe):wi(ir,Fe),Kn.y?mi(ir,je):wi(ir,je),q&&(Jt?mi(ir,Re):wi(ir,Re)),Qt&&mi(ir,De),O&&(wi(hr,[Ve,qe,Xe,Ye].join(He)),ce?mi(ir,De):(wi(ir,De),mi(hr,Ve),se?mi(hr,qe):le?mi(hr,Xe):ve&&mi(hr,Ye))),(h||R||Kn.c||Gn.c||E)&&(A?E&&(wi(ir,Me),A&&(zt(),kt())):_t?(Jn.x?Ot():zt(),Jn.y?St():kt()):yt?(Ot(),St()):xt&&(zt(),kt())),(p||E)&&(ae||fe?(ti(!0),ti()):ti(!0),oe?ui(!0):ui(!1,!0)),(e||$n.c||an||on||O||Y||z||E||q)&&(fi(!0),ai(!0),fi(!1),ai(!1)),g&&ci(!0,b),w&&ci(!1,m),q&&li("onDirectionChanged",{isRTL:Jt,dir:V}),e&&li("onHostSizeChanged",{width:yr.w,height:yr.h}),i&&li("onContentSizeChanged",{width:xr.w,height:xr.h}),(Gn.c||Kn.c)&&li("onOverflowChanged",{x:Gn.x,y:Gn.y,xScrollable:Kn.xs,yScrollable:Kn.ys,clipped:Kn.x||Kn.y}),$n.c&&li("onOverflowAmountChanged",{x:$n.x,y:$n.y})}Qt&&ne&&(Or.c||ne.c)&&(ne.f||ri(),Ht.y&&Or.x&&cr.css(Oe+ze,ne.w+Lt.y),Ht.x&&Or.y&&cr.css(Oe+ke,ne.h+Lt.x),ne.c=!1),li("onUpdated",{forced:o})}}function rt(n){var t=Ri._(n,Ri.m,!0,u);return u=gi({},u,t.O),nr=gi({},nr,t.S),t.S}function et(e){function n(){var r=e?er:ir;c(u,function(n,t){sn(t)==xt&&(n==St?r.addClass(t):r.attr(n,t))})}var t="parent",r=cn+He+kn,i=Pt?He+kn:Ie,o=nr.textarea.inheritedAttrs,u={},f=[en,on,De,Re,un,fn,an,Me,We,Fe,je,$e,cn,kn,Xr].join(He),a={};ir=ir||(Pt?v?er[t]()[t]()[t]()[t]():Li(pi(on)):er),cr=cr||lt(_n+i),ar=ar||lt(yn+i),fr=fr||lt(wn+i),ur=ur||lt("os-resize-observer-host"),vr=vr||(Pt?lt(mn):yi),e&&wi(ir,f),o=sn(o)==xt?o.split(He):o,sn(o)==yt&&Pt&&c(o,function(n,t){sn(t)==xt&&(u[t]=e?ir.attr(t):er.attr(t))}),e?(v&&jt?(ur.children().remove(),c([fr,ar,cr,vr],function(n,t){t&&wi(t.removeAttr(xi),Wn)}),mi(ir,Pt?on:en)):(ht(ur),cr.contents().unwrap().unwrap().unwrap(),Pt&&(er.unwrap(),ht(ir),ht(vr),n())),Pt&&er.removeAttr(xi),Qt&&wi(h,rn)):(Pt&&(nr.sizeAutoCapable||(a[ze]=er.css(ze),a[ke]=er.css(ke)),v||er.addClass(kn).wrap(ir),ir=er[t]().css(a)),v||(mi(er,Pt?r:en),ir.wrapInner(cr).wrapInner(ar).wrapInner(fr).prepend(ur),cr=dt(ir,B+_n),ar=dt(ir,B+yn),fr=dt(ir,B+wn),Pt&&(cr.prepend(vr),n())),Dt&&mi(ar,Be),Ht.x&&Ht.y&&mi(ar,xn),Qt&&mi(h,rn),E=ur[0],pr=ir[0],gr=fr[0],mr=ar[0],wr=cr[0])}function it(){var r,t,e=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],n="focus";function o(n){ei(),Et.update(Te),n&&Rt&&clearInterval(r)}Pt?(9<R||!Rt?Xn(er,"input",o):Xn(er,[G,K],[function u(n){var t=n.keyCode;ln(t,e)<0&&(i[_i]||(o(),r=setInterval(o,1e3/60)),ln(t,i)<0&&i.push(t))},function f(n){var t=n.keyCode,r=ln(t,i);ln(t,e)<0&&(-1<r&&i.splice(r,1),i[_i]||o(!0))}]),Xn(er,[Ae,"drop",n,n+"out"],[function a(n){return er[Le](Nt.i&&qr?9999999:0),er[Ne](0),Ai.prvD(n),Ai.stpP(n),!1},function c(n){setTimeout(function(){Bt||o()},50)},function s(){ee=!0,mi(ir,n)},function l(){ee=!1,i=[],wi(ir,n),o(!0)}])):Xn(cr,Z,function v(n){!0!==Fr&&function l(n){if(!jt)return!0;function t(n,t){for(var r=0;r<n[_i];r++)if(n[r]===t)return!0;return!1}var r="flex-grow",e="flex-shrink",i="flex-basis",o=[ze,Oe+ze,Se+ze,be+_e,be+ye,_e,ye,"font-weight","word-spacing",r,e,i],u=[ge+_e,ge+ye,me+_e+ze,me+ye+ze],f=[ke,Oe+ke,Se+ke,be+we,be+xe,we,xe,"line-height",r,e,i],a=[ge+we,ge+xe,me+we+ze,me+xe+ze],c="s"===Dr.x||"v-s"===Dr.x,s=!1;return("s"===Dr.y||"v-s"===Dr.y)&&((s=t(f,n))||Ut||(s=t(a,n))),c&&!s&&((s=t(o,n))||Ut||(s=t(u,n))),s}((n=n.originalEvent||n).propertyName)&&Et.update(Te)}),Xn(ar,Ae,function h(n){Zt||(t!==yi?clearTimeout(t):((ue||fe)&&ui(!0),st()||mi(ir,Me),li("onScrollStart",n)),j||(ai(!0),ai(!1)),li("onScroll",n),t=setTimeout(function(){Bt||(clearTimeout(t),t=yi,(ue||fe)&&ui(!1),st()||wi(ir,Me),li("onScrollStop",n))},175))},!0)}function ot(i){function o(n){var t=lt(Cn+He+(n?Rn:Dn),!0),r=lt(In,t),e=lt(An,t);return v||i||(t.append(r),r.append(e)),{"in":t,un:r,an:e}}var n,t;function r(n){var t=si(n),r=t["in"],e=t.un,i=t.an;v&&jt?c([r,e,i],function(n,t){wi(t.removeAttr(xi),Wn)}):ht(r||o(n)["in"])}i?(r(!0),r()):(n=o(!0),t=o(),a=n["in"],s=n.un,d=n.an,p=t["in"],b=t.un,g=t.an,v||(fr.after(p),fr.after(a)))}function ut(_){var O,i,S,z,r=si(_),k=r.cn,t=y.top!==y,C=r.P,e=r.G,I=Ae+r.$,o="active",u="snapHandle",T=1,f=[16,17];function a(n){return R&&t?n["screen"+e]:Ai.page(n)[C]}function c(n){return nr.scrollbars[n]}function s(){T=.5}function l(){T=1}function v(n){-1<ln(n.keyCode,f)&&s()}function A(n){-1<ln(n.keyCode,f)&&l()}function E(n){var t=(n.originalEvent||n).touches!==yi;return!(Zt||Bt||st()||!Ur||t&&!c("touchSupport"))&&(1===Ai.mBtn(n)||t)}function h(n){if(E(n)){var t=k.W,r=k.D,e=k.N*((a(n)-S)*z/(t-r));e=isFinite(e)?e:0,Jt&&_&&!Nt.i&&(e*=-1),ar[I](Ei.round(i+e)),j&&ai(_,i+e),m||Ai.prvD(n)}else H(n)}function H(n){if(n=n||n.originalEvent,qn(M,[X,q,G,K,J],[h,H,v,A,Zn],!0),j&&ai(_,!0),j=!1,wi(W,Mn),wi(r.an,o),wi(r.un,o),wi(r["in"],o),S=i=yi,z=1,l(),O!==yi&&(Et.scrollStop(),clearTimeout(O),O=yi),n){var t=pr[Ti]();n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Kn(),(ue||fe)&&ui(!1)}}function L(n){i=ar[I](),i=isNaN(i)?0:i,(Jt&&_&&!Nt.n||!Jt)&&(i=i<0?0:i),z=at()[C],S=a(n),j=!c(u),mi(W,Mn),mi(r.an,o),mi(r["in"],o),qn(M,[X,q,J],[h,H,Zn]),!R&&w||Ai.prvD(n),Ai.stpP(n)}Xn(r.an,V,function d(n){E(n)&&L(n)}),Xn(r.un,[V,Y,$],[function N(n){if(E(n)){var h,d=Ei.round(de[r.j]),p=r.un.offset()[r.B],t=n.ctrlKey,b=n.shiftKey,g=b&&t,m=!0,w=function(n){j&&ai(_,n)},y=function(){w(),L(n)},x=function(){if(!Bt){var n=(S-p)*z,t=k.R,r=k.W,e=k.D,i=k.N,o=k.H,u=270*T,f=m?Ei.max(400,u):u,a=i*((n-e/2)/(r-e)),c=Jt&&_&&(!Nt.i&&!Nt.n||qr),s=c?t<n:n<t,l={},v={easing:"linear",step:function(n){j&&(ar[I](n),ai(_,n))}};a=isFinite(a)?a:0,a=Jt&&_&&!Nt.i?i-a:a,b?(ar[I](a),g?(a=ar[I](),ar[I](o),a=c&&Nt.i?i-a:a,a=c&&Nt.n?-a:a,l[C]=a,Et.scroll(l,gi(v,{duration:130,complete:y}))):y()):(h=m?s:h,(c?h?n<=t+e:t<=n:h?t<=n:n<=t+e)?(clearTimeout(O),Et.scrollStop(),O=yi,w(!0)):(O=setTimeout(x,f),l[C]=(h?"-=":"+=")+d,Et.scroll(l,gi(v,{duration:u}))),m=!1)}};t&&s(),z=at()[C],S=Ai.page(n)[C],j=!c(u),mi(W,Mn),mi(r.un,o),mi(r["in"],o),qn(M,[q,G,K,J],[H,v,A,Zn]),x(),Ai.prvD(n),Ai.stpP(n)}},function p(n){F=!0,(ue||fe)&&ui(!0)},function b(n){F=!1,(ue||fe)&&ui(!1)}]),Xn(r["in"],V,function g(n){Ai.stpP(n)}),D&&Xn(r["in"],Z,function(n){n.target===r["in"][0]&&(fi(_),ai(_))})}function oi(n,t,r){var e=n?un:fn,i=n?a:p;t?wi(ir,e):mi(ir,e),r?wi(i,Hn):mi(i,Hn)}function ui(n,t){if(clearTimeout(I),n)wi(a,Ln),wi(p,Ln);else{var r,e=function(){F||Bt||(!(r=d.hasClass("active")||g.hasClass("active"))&&(ue||fe||ae)&&mi(a,Ln),!r&&(ue||fe||ae)&&mi(p,Ln))};0<ie&&!0!==t?I=setTimeout(e,ie):e()}}function fi(n){var t={},r=si(n),e=r.cn,i=Ei.min(1,(yr[r.j]-(Lr?n?qt:Xt:0))/xr[r.j]);t[r.Y]=Ei.floor(100*i*1e6)/1e6+"%",st()||r.an.css(t),e.D=r.an[0]["offset"+r.sn],e.M=i}function ai(n,t){function r(n){return isNaN(n/w)?0:Ei.max(0,Ei.min(1,n/w))}function e(n){var t=g*n;return t=isNaN(t)?0:t,t=f&&!Nt.i?b-p-t:t,t=Ei.max(0,t)}var i,o,u=sn(t)==_t,f=Jt&&n,a=si(n),c=a.cn,s="translate(",l=It.v("transform"),v=It.v("transition"),h=n?ar[Le]():ar[Ne](),d=t===yi||u?h:t,p=c.D,b=a.un[0]["offset"+a.sn],g=b-p,m={},w=(mr[Ae+a.sn]-mr["client"+a.sn])*(Nt.n&&f?-1:1),y=r(h),x=e(r(d)),_=e(y);c.N=w,c.H=h,c.L=y,vn?(i=f?-(b-p-x):x,o=n?s+i+"px, 0)":s+"0, "+i+"px)",m[l]=o,D&&(m[v]=u&&1<Ei.abs(x-c.R)?function O(n){var t=It.v("transition"),r=n.css(t);if(r)return r;for(var e,i,o,u="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",f=new RegExp(u),a=new RegExp("^("+u+")+$"),c="property duration timing-function delay".split(" "),s=[],l=0,v=function(n){if(e=[],!n.match(a))return n;for(;n.match(f);)e.push(RegExp.$1),n=n.replace(f,Ie);return e};l<c[_i];l++)for(i=v(n.css(t+"-"+c[l])),o=0;o<i[_i];o++)s[o]=(s[o]?s[o]+He:Ie)+i[o];return s.join(", ")}(a.an)+", "+(l+He+250)+"ms":Ie)):m[a.B]=x,st()||(a.an.css(m),vn&&D&&u&&a.an.one(Z,function(){Bt||a.an.css(v,Ie)})),c.R=x,c.F=_,c.W=b}function ci(n,t){var r=t?"removeClass":"addClass",e=n?b:g,i=n?Tn:En;(n?s:d)[r](i),e[r](i)}function si(n){return{Y:n?ze:ke,sn:n?"Width":"Height",B:n?_e:we,$:n?"Left":"Top",P:n?bn:gn,G:n?"X":"Y",j:n?"w":"h",ln:n?"l":"t",un:n?s:b,an:n?d:g,"in":n?a:p,cn:n?hn:dn}}function ft(n){hr=hr||lt(Nn,!0),n?v&&jt?wi(hr.removeAttr(xi),Wn):ht(hr):v||ir.append(hr)}function li(n,t){if(jt){var r,e=nr.callbacks[n],i=n;"on"===i.substr(0,2)&&(i=i.substr(2,1).toLowerCase()+i.substr(3)),sn(e)==wt&&e.call(Et,t),c(jn,function(){sn((r=this).on)==wt&&r.on(i,t)})}else Bt||Fn.push({n:n,a:t})}function vi(n,t,r){r===yi&&(r=[Ie,Ie,Ie,Ie]),n[t+we]=r[0],n[t+ye]=r[1],n[t+xe]=r[2],n[t+_e]=r[3]}function at(){var n=gr[Ti]();return{x:vn&&1/(Ei.round(n.width)/gr[ki])||1,y:vn&&1/(Ei.round(n.height)/gr[Oi])||1}}function ct(n){var t="ownerDocument",r="HTMLElement",e=n&&n[t]&&n[t].parentWindow||bt;return typeof e[r]==mt?n instanceof e[r]:n&&typeof n==mt&&null!==n&&1===n.nodeType&&typeof n.nodeName==xt}function hi(n,t){var r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?0:r}function st(){return Wr&&Ht.x&&Ht.y}function di(){return Pt?vr[0]:wr}function pi(r,n){return"<div "+(r?sn(r)==xt?'class="'+r+'"':function(){var n,t=Ie;if(Li.isPlainObject(r))for(n in r)t+=("c"===n?"class":n)+'="'+r[n]+'" ';return t}():Ie)+">"+(n||Ie)+"</div>"}function lt(n,t){var r=sn(t)==_t,e=r?ir:t||ir;return v&&!e[_i]?null:v?e[r?"children":"find"](B+n.replace(/\s/g,B)).eq(0):Li(pi(n))}function vt(n,t){for(var r,e=t.split(B),i=0;i<e.length;i++){if(!n[Ct](e[i]))return;r=n[e[i]],i<e.length&&sn(r)==mt&&(n=r)}return r}function bi(n,t,r){if(r)return r;if(sn(n)!=mt||sn(t)!=mt)return n!==t;for(var e in n)if("c"!==e){if(!n[Ct](e)||!t[Ct](e))return!0;if(bi(n[e],t[e]))return!0}return!1}function gi(){return Li.extend.apply(this,[!0].concat([].slice.call(arguments)))}function mi(n,t){return e.addClass.call(n,t)}function wi(n,t){return e.removeClass.call(n,t)}function ht(n){return e.remove.call(n)}function dt(n,t){return e.find.call(n,t).eq(0)}}return Hi&&Hi.fn&&(Hi.fn.overlayScrollbars=function(n,t){return Hi.isPlainObject(n)?(Hi.each(this,function(){q(this,n,t)}),this):q(this,n)}),q}); |