(function(e){"use strict";(function(){function e(){var e=!1;e&&c("keydown",n),y.keyboardsupport&&!e&&u("keydown",n)}function t(){if(document.body){var t=document.body,a=document.documentelement,r=window.innerheight,n=t.scrollheight;if(x=document.compatmode.indexof("css")>=0?a:t,w=t,e(),s=!0,top!=self)b=!0;else if(n>r&&(t.offsetheight<=r||a.offsetheight<=r)&&(a.style.height="auto",x.offsetheight<=r)){var o=document.createelement("div");o.style.clear="both",t.appendchild(o)}y.fixedbackground||v||(t.style.backgroundattachment="scroll",a.style.backgroundattachment="scroll")}}function a(e,t,a,r){if(r||(r=1e3),d(t,a),1!=y.accelerationmax){var n=+new date,o=n-t;if(o1&&(i=math.min(i,y.accelerationmax),t*=i,a*=i)}t=+new date}if(m.push({x:t,y:a,lastx:t<0?.99:-.99,lasty:a<0?.99:-.99,start:+new date}),!c){var l=e===document.body,u=function(n){for(var o=+new date,i=0,c=0,s=0;s=y.animationtime,m=p?1:f/y.animationtime;y.pulsealgorithm&&(m=h(m));var w=d.x*m-d.lastx>>0,g=d.y*m-d.lasty>>0;i+=w,c+=g,d.lastx+=w,d.lasty+=g,p&&(m.splice(s,1),s--)}l?window.scrollby(i,c):(i&&(e.scrollleft+=i),c&&(e.scrolltop+=c)),t||a||(m=[]),m.length?e(u,e,r/y.framerate+1):c=!1};e(u,e,0),c=!0}}function r(e){s||t();var r=e.target,n=l(r);if(!n||e.defaultprevented||s(w,"embed")||s(r,"embed")&&/\.pdf/i.test(r.src))return!0;var o=e.wheeldeltax||0,i=e.wheeldeltay||0;return o||i||(i=e.wheeldelta||0),!(y.touchpadsupport||!f(i))||(math.abs(o)>1.2&&(o*=y.stepsize/120),math.abs(i)>1.2&&(i*=y.stepsize/120),a(n,-o,-i))}function n(e){var t=e.target,r=e.ctrlkey||e.altkey||e.metakey||e.shiftkey&&e.keycode!==h.spacebar;if(/input|textarea|select|embed/i.test(t.nodename)||t.iscontenteditable||e.defaultprevented||r)return!0;if(s(t,"button")&&e.keycode===h.spacebar)return!0;var n,o=0,i=0,u=l(w),c=u.clientheight;switch(u==document.body&&(c=window.innerheight),e.keycode){case h.up:i=-y.arrowscroll;break;case h.down:i=y.arrowscroll;break;case h.spacebar:n=e.shiftkey?1:-1,i=-n*c*.9;break;case h.pageup:i=.9*-c;break;case h.pagedown:i=.9*c;break;case h.home:i=-u.scrolltop;break;case h.end:var d=u.scrollheight-u.scrolltop-c;i=d>0?d+10:0;break;case h.left:o=-y.arrowscroll;break;case h.right:o=y.arrowscroll;break;default:return!0}a(u,o,i),e.preventdefault()}function o(e){w=e.target}function i(e,t){for(var a=e.length;a--;)z[n(e[a])]=t;return t}function l(e){var t=[],a=null,r=x.scrollheight;do{var n=z[n(e)];if(n)return i(t,n);if(t.push(e),r===e.scrollheight){if(!b||x.clientheight+100?1:-1,t=t>0?1:-1,k.x===e&&k.y===t||(k.x=e,k.y=t,m=[],t=0)}function f(e){if(e){e=math.abs(e),d.push(e),d.shift(),cleartimeout(a);var t=d[0]==d[1]&&d[1]==d[2],a=p(d[0],120)&&p(d[1],120)&&p(d[2],120);return!(t||a)}}function p(e,t){return math.floor(e/t)==e/t}function m(e){var t,a,r;return e*=y.pulsescale,e<1?t=e-(1-math.exp(-e)):(a=math.exp(-1),e-=1,r=1-math.exp(-e),t=a+r*(1-a)),t*y.pulsenormalize}function h(e){return e>=1?1:e<=0?0:(1==y.pulsenormalize&&(y.pulsenormalize/=m(1)),m(e))}var w,g={framerate:150,animationtime:1800,stepsize:85,pulsealgorithm:!0,pulsescale:8,pulsenormalize:1,accelerationdelta:20,accelerationmax:1,keyboardsupport:!0,arrowscroll:50,touchpadsupport:!0,fixedbackground:!0,excluded:""},y=g,v=!1,b=!1,k={x:0,y:0},s=!1,x=document.documentelement,d=[120,120,120],h={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},m=(y=g,[]),c=!1,t=+new date,z={};setinterval(function(){z={}},1e4);var a,n=function(){var e=0;return function(t){return t.uniqueid||(t.uniqueid=e++)}}(),e=window.requestanimationframe||window.webkitrequestanimationframe||function(e,t,a){window.settimeout(e,a||1e3/60)},k=/chrome/i.test(window.navigator.useragent),l="onmousewheel"in document;l&&k&&(u("mousedown",o),u("mousewheel",r),u("load",t))})()})(jquery);