Files
OverlayScrollbars/js/OverlayScrollbars.min.js
T
2018-04-14 17:42:21 +02:00

13 lines
50 KiB
JavaScript

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