(function(){'use strict';
var e,r;
function t(n){if(typeof this==='undefined'||Object.getPrototypeOf(this)!==t.prototype){return new t(n)};
e=this;
e.version='3.3.6';
e.tools=new i();
if(e.isSupported()){e.tools.extend(e.defaults,n||{});
e.defaults.container=s(e.defaults);
e.store={elements:{},containers:[]};
e.sequences={};
e.history=[];
e.uid=0;
e.initialized=!1}
else if(typeof console!=='undefined'&&console!==null){console.log('ScrollReveal is not supported in this browser.')};
return e};
t.prototype.defaults={origin:'bottom',distance:'20px',duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:0.9,easing:'cubic-bezier(0.6, 0.2, 0.1, 1)',container:window.document.documentElement,mobile:!0,reset:!1,useDelay:'always',viewFactor:0.2,viewOffset:{top:0,right:0,bottom:0,left:0},beforeReveal:function(e){},beforeReset:function(e){},afterReveal:function(e){},afterReset:function(e){}};
t.prototype.isSupported=function(){var e=document.documentElement.style;
return'WebkitTransition' in e&&'WebkitTransform' in e||'transition' in e&&'transform' in e};
t.prototype.reveal=function(t,i,o,b){var d,r,n,u,l,y;
if(i!==undefined&&typeof i==='number'){o=i;
i={}}
else if(i===undefined||i===null){i={}};
d=s(i);
r=m(t,d);
if(!r.length){console.log('ScrollReveal: reveal on "'+t+'" failed, no elements found.');
return e};
if(o&&typeof o==='number'){y=a();
l=e.sequences[y]={id:y,interval:o,elemIds:[],active:!1}};
for(var f=0;f<r.length;f++){u=r[f].getAttribute('data-sr-id');
if(u){n=e.store.elements[u]}
else{n={id:a(),domEl:r[f],seen:!1,revealing:!1};
n.domEl.setAttribute('data-sr-id',n.id)};
if(l){n.sequence={id:l.id,index:l.elemIds.length};
l.elemIds.push(n.id)};
g(n,i,d);
p(n);
v(n);
if(e.tools.isMobile()&&!n.config.mobile||!e.isSupported()){n.domEl.setAttribute('style',n.styles.inline);
n.disabled=!0}
else if(!n.revealing){n.domEl.setAttribute('style',n.styles.inline+n.styles.transform.initial)}};
if(!b&&e.isSupported()){w(t,i,o);
if(e.initTimeout){window.clearTimeout(e.initTimeout)};
e.initTimeout=window.setTimeout(c,0)};
return e};
t.prototype.sync=function(){if(e.history.length&&e.isSupported()){for(var i=0;i<e.history.length;i++){var t=e.history[i];
e.reveal(t.target,t.config,t.interval,!0)};
c()}
else{console.log('ScrollReveal: sync failed, no reveals found.')};
return e};
function s(t){if(t&&t.container){if(typeof t.container==='string'){return window.document.documentElement.querySelector(t.container)}
else if(e.tools.isNode(t.container)){return t.container}
else{console.log('ScrollReveal: invalid container "'+t.container+'" provided.');
console.log('ScrollReveal: falling back to default container.')}};
return e.defaults.container};
function m(t,i){if(typeof t==='string'){return Array.prototype.slice.call(i.querySelectorAll(t))}
else if(e.tools.isNode(t)){return[t]}
else if(e.tools.isNodeList(t)){return Array.prototype.slice.call(t)};
return[]};
function a(){return++e.uid};
function g(t,i,n){if(i.container)i.container=n;
if(!t.config){t.config=e.tools.extendClone(e.defaults,i)}
else{t.config=e.tools.extendClone(t.config,i)};
if(t.config.origin==='top'||t.config.origin==='bottom'){t.config.axis='Y'}
else{t.config.axis='X'}};
function p(e){var t=window.getComputedStyle(e.domEl);
if(!e.styles){e.styles={transition:{},transform:{},computed:{}};
e.styles.inline=e.domEl.getAttribute('style')||'';
e.styles.inline+='; visibility: visible; ';
e.styles.computed.opacity=t.opacity;
if(!t.transition||t.transition==='all 0s ease 0s'){e.styles.computed.transition=''}
else{e.styles.computed.transition=t.transition+', '}};
e.styles.transition.instant=l(e,0);
e.styles.transition.delayed=l(e,e.config.delay);
e.styles.transform.initial=' -webkit-transform:';
e.styles.transform.target=' -webkit-transform:';
f(e);
e.styles.transform.initial+='transform:';
e.styles.transform.target+='transform:';
f(e)};
function l(e,t){var i=e.config;
return'-webkit-transition: '+e.styles.computed.transition+'-webkit-transform '+i.duration/1000+'s '+i.easing+' '+t/1000+'s, opacity '+i.duration/1000+'s '+i.easing+' '+t/1000+'s; transition: '+e.styles.computed.transition+'transform '+i.duration/1000+'s '+i.easing+' '+t/1000+'s, opacity '+i.duration/1000+'s '+i.easing+' '+t/1000+'s; '};
function f(e){var t=e.config,n,i=e.styles.transform;
if(t.origin==='top'||t.origin==='left'){n=/^-/.test(t.distance)?t.distance.substr(1):'-'+t.distance}
else{n=t.distance};
if(parseInt(t.distance)){i.initial+=' translate'+t.axis+'('+n+')';
i.target+=' translate'+t.axis+'(0)'};
if(t.scale){i.initial+=' scale('+t.scale+')';
i.target+=' scale(1)'};
if(t.rotate.x){i.initial+=' rotateX('+t.rotate.x+'deg)';
i.target+=' rotateX(0)'};
if(t.rotate.y){i.initial+=' rotateY('+t.rotate.y+'deg)';
i.target+=' rotateY(0)'};
if(t.rotate.z){i.initial+=' rotateZ('+t.rotate.z+'deg)';
i.target+=' rotateZ(0)'};
i.initial+='; opacity: '+t.opacity+';';
i.target+='; opacity: '+e.styles.computed.opacity+';'};
function v(t){var i=t.config.container;
if(i&&e.store.containers.indexOf(i)===-1){e.store.containers.push(t.config.container)};
e.store.elements[t.id]=t};
function w(t,i,n){var o={target:t,config:i,interval:n};
e.history.push(o)};
function c(){if(e.isSupported()){d();
for(var t=0;t<e.store.containers.length;t++){e.store.containers[t].addEventListener('scroll',n);
e.store.containers[t].addEventListener('resize',n)};
if(!e.initialized){window.addEventListener('scroll',n);
window.addEventListener('resize',n);
e.initialized=!0}};
return e};
function n(){r(d)};
function b(){var t,n,r,i;
e.tools.forOwn(e.sequences,function(s){i=e.sequences[s];
t=!1;
for(var a=0;a<i.elemIds.length;a++){r=i.elemIds[a];
n=e.store.elements[r];
if(o(n)&&!t){t=!0}};
i.active=t})};
function d(){var i,t;
b();
e.tools.forOwn(e.store.elements,function(n){t=e.store.elements[n];
i=O(t);
if(x(t)){t.config.beforeReveal(t.domEl);
if(i){t.domEl.setAttribute('style',t.styles.inline+t.styles.transform.target+t.styles.transition.delayed)}
else{t.domEl.setAttribute('style',t.styles.inline+t.styles.transform.target+t.styles.transition.instant)};
u('reveal',t,i);
t.revealing=!0;
t.seen=!0;
if(t.sequence){h(t,i)}}
else if(A(t)){t.config.beforeReset(t.domEl);
t.domEl.setAttribute('style',t.styles.inline+t.styles.transform.initial+t.styles.transition.instant);
u('reset',t);
t.revealing=!1}})};
function h(t,i){var r=0,s=0,o=e.sequences[t.sequence.id];
o.blocked=!0;
if(i&&t.config.useDelay==='onload'){s=t.config.delay};
if(t.sequence.timer){r=Math.abs(t.sequence.timer.started-new Date());
window.clearTimeout(t.sequence.timer)};
t.sequence.timer={started:new Date()};
t.sequence.timer.clock=window.setTimeout(function(){o.blocked=!1;
t.sequence.timer=null;
n()},Math.abs(o.interval)+s-r)};
function u(e,t,i){var r=0,n=0,o='after';
switch(e){case'reveal':n=t.config.duration;
if(i){n+=t.config.delay};
o+='Reveal';
break;
case'reset':n=t.config.duration;
o+='Reset';
break};
if(t.timer){r=Math.abs(t.timer.started-new Date());
window.clearTimeout(t.timer.clock)};
t.timer={started:new Date()};
t.timer.clock=window.setTimeout(function(){t.config[o](t.domEl);
t.timer=null},n-r)};
function x(t){if(t.sequence){var i=e.sequences[t.sequence.id];
return i.active&&!i.blocked&&!t.revealing&&!t.disabled};
return o(t)&&!t.revealing&&!t.disabled};
function O(t){var i=t.config.useDelay;
return i==='always'||(i==='onload'&&!e.initialized)||(i==='once'&&!t.seen)};
function A(t){if(t.sequence){var i=e.sequences[t.sequence.id];
return!i.active&&t.config.reset&&t.revealing&&!t.disabled};
return!o(t)&&t.config.reset&&t.revealing&&!t.disabled};
function E(e){return{width:e.clientWidth,height:e.clientHeight}};
function q(e){if(e&&e!==window.document.documentElement){var t=y(e);
return{x:e.scrollLeft+t.left,y:e.scrollTop+t.top}}
else{return{x:window.pageXOffset,y:window.pageYOffset}}};
function y(e){var t=0,i=0,n=e.offsetHeight,o=e.offsetWidth;
do{if(!isNaN(e.offsetTop)){t+=e.offsetTop};
if(!isNaN(e.offsetLeft)){i+=e.offsetLeft};
e=e.offsetParent}
while(e)return{top:t,left:i,height:n,width:o}};
function o(e){var t=y(e.domEl),s=E(e.config.container),i=q(e.config.container),n=e.config.viewFactor,o=t.height,r=t.width,a=t.top,l=t.left,f=a+o,c=l+r;
return d()||u();
function d(){var t=a+o*n,d=l+r*n,u=f-o*n,y=c-r*n,m=i.y+e.config.viewOffset.top,g=i.x+e.config.viewOffset.left,p=i.y-e.config.viewOffset.bottom+s.height,v=i.x-e.config.viewOffset.right+s.width;
return t<p&&u>m&&d<v&&y>g};
function u(){return(window.getComputedStyle(e.domEl).position==='fixed')}};
function i(){};
i.prototype.isObject=function(e){return e!==null&&typeof e==='object'&&e.constructor===Object};
i.prototype.isNode=function(e){return typeof window.Node==='object'?e instanceof window.Node:e&&typeof e==='object'&&typeof e.nodeType==='number'&&typeof e.nodeName==='string'};
i.prototype.isNodeList=function(e){var t=Object.prototype.toString.call(e),i=/^\[object (HTMLCollection|NodeList|Object)\]$/;
return typeof window.NodeList==='object'?e instanceof window.NodeList:e&&typeof e==='object'&&i.test(t)&&typeof e.length==='number'&&(e.length===0||this.isNode(e[0]))};
i.prototype.forOwn=function(e,t){if(!this.isObject(e)){throw new TypeError('Expected "object", but received "'+typeof e+'".')}
else{for(var i in e){if(e.hasOwnProperty(i)){t(i)}}}};
i.prototype.extend=function(e,t){this.forOwn(t,function(i){if(this.isObject(t[i])){if(!e[i]||!this.isObject(e[i])){e[i]={}};
this.extend(e[i],t[i])}
else{e[i]=t[i]}}.bind(this));
return e};
i.prototype.extendClone=function(e,t){return this.extend(this.extend({},e),t)};
i.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1000/60)};
if(typeof define==='function'&&typeof define.amd==='object'&&define.amd){define(function(){return t})}
else if(typeof module!=='undefined'&&module.exports){module.exports=t}
else{window.ScrollReveal=t}})();
$(function(){var e='data-oldtransition',t='data-oldwebkittransition',i=JSON.parse(document.body.getAttribute('data-scrollreveal'));
i.viewOffset={top:get_header_height(),right:0,bottom:0,left:0};
i.afterReveal=function(i){i.style.transform=i.style.webkitTransform='none';
i.style.transition=i.getAttribute(e);
i.removeAttribute(e);
i.style.webkitTransition=i.getAttribute(t);
i.removeAttribute(t)};
var n=['distance','duration','origin','opacity','scale','delay'],o=['duration','delay'],r=ScrollReveal();
$('.kw-reveal').each(function(){var c=$.extend({},i);
var d=s(this.getAttribute('style'));
for(var f=0;f<n.length;++f){var l=n[f],a=d['-kw-scrollreveal-'+l];
if(a){if(o.indexOf(l)!==-1)a=(+a)||0;
c[l]=a}};
this.setAttribute(e,this.style.transition||'');
this.setAttribute(t,this.style.webkitTransition||'');
this.removeAttribute('data-sr-id');
r.reveal(this,c)});
function s(e){var n=(e||'').split(';'),o={};
for(var i=0;i<n.length;++i){var t=n[i].split(':');
if(t.length!==2)continue;
o[t[0].trim()]=t[1].trim()};
return o}});