/*! wow wow.js - v1.3.0 - 2016-10-04 * https://wowjs.uk * copyright (c) 2016 thomas grainger; licensed mit */ (function(){var t,e,n,i,o,r=function(t,e){return function(){return t.apply(e,arguments)}},s=[].indexof||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},t.prototype.ismobile=function(t){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(t)},t.prototype.createevent=function(t,e,n,i){var o;return null==e&&(e=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createevent?(o=document.createevent("customevent")).initcustomevent(t,e,n,i):null!=document.createeventobject?(o=document.createeventobject()).eventtype=t:o.eventname=t,o},t.prototype.emitevent=function(t,e){return null!=t.dispatchevent?t.dispatchevent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addevent=function(t,e,n){return null!=t.addeventlistener?t.addeventlistener(e,n,!1):null!=t.attachevent?t.attachevent("on"+e,n):t[e]=n},t.prototype.removeevent=function(t,e,n){return null!=t.removeeventlistener?t.removeeventlistener(e,n,!1):null!=t.detachevent?t.detachevent("on"+e,n):delete t[e]},t.prototype.innerheight=function(){return"innerheight"in window?window.innerheight:document.documentelement.clientheight},t}(),n=this.weakmap||this.mozweakmap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,n,i,o;for(e=n=0,i=(o=this.keys).length;i>n;e=++n)if(o[e]===t)return this.values[e]},t.prototype.set=function(t,e){var n,i,o,r;for(n=i=0,o=(r=this.keys).length;o>i;n=++i)if(r[n]===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.mutationobserver||this.webkitmutationobserver||this.mozmutationobserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("mutationobserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("wow.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notsupported=!0,t.prototype.observe=function(){},t}()),i=this.getcomputedstyle||function(t,e){return this.getpropertyvalue=function(e){var n;return"float"===e&&(e="stylefloat"),o.test(e)&&e.replace(o,function(t,e){return e.touppercase()}),(null!=(n=t.currentstyle)?n[e]:void 0)||null},this},o=/(\-([a-z]){1})/g,this.wow=function(){function o(t){null==t&&(t={}),this.scrollcallback=r(this.scrollcallback,this),this.scrollhandler=r(this.scrollhandler,this),this.resetanimation=r(this.resetanimation,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollcontainer&&(this.config.scrollcontainer=document.queryselector(t.scrollcontainer)),this.animationnamecache=new n,this.wowevent=this.util().createevent(this.config.boxclass)}return o.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollcontainer:null},o.prototype.init=function(){var t;return this.element=window.document.documentelement,"interactive"===(t=document.readystate)||"complete"===t?this.start():this.util().addevent(document,"domcontentloaded",this.start),this.finished=[]},o.prototype.start=function(){var e,n,i,o;if(this.stopped=!1,this.boxes=function(){var t,n,i,o;for(o=[],t=0,n=(i=this.element.queryselectorall("."+this.config.boxclass)).length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.all=function(){var t,n,i,o;for(o=[],t=0,n=(i=this.boxes).length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.boxes.length)if(this.disabled())this.resetstyle();else for(n=0,i=(o=this.boxes).length;i>n;n++)e=o[n],this.applystyle(e,!0);return this.disabled()||(this.util().addevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().addevent(window,"resize",this.scrollhandler),this.interval=setinterval(this.scrollcallback,50)),this.config.live?new t(function(t){return function(e){var n,i,o,r,s;for(s=[],n=0,i=e.length;i>n;n++)r=e[n],s.push(function(){var t,e,n,i;for(i=[],t=0,e=(n=r.addednodes||[]).length;e>t;t++)o=n[t],i.push(this.dosync(o));return i}.call(t));return s}}(this)).observe(document.body,{childlist:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().removeevent(window,"resize",this.scrollhandler),null!=this.interval?clearinterval(this.interval):void 0},o.prototype.sync=function(e){return t.notsupported?this.dosync(this.element):void 0},o.prototype.dosync=function(t){var e,n,i,o,r;if(null==t&&(t=this.element),1===t.nodetype){for(r=[],n=0,i=(o=(t=t.parentnode||t).queryselectorall("."+this.config.boxclass)).length;i>n;n++)e=o[n],s.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetstyle():this.applystyle(e,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},o.prototype.show=function(t){return this.applystyle(t),t.classname=t.classname+" "+this.config.animateclass,null!=this.config.callback&&this.config.callback(t),this.util().emitevent(t,this.wowevent),this.util().addevent(t,"animationend",this.resetanimation),this.util().addevent(t,"oanimationend",this.resetanimation),this.util().addevent(t,"webkitanimationend",this.resetanimation),this.util().addevent(t,"msanimationend",this.resetanimation),t},o.prototype.applystyle=function(t,e){var n,i,o,r;return i=t.getattribute("data-wow-duration"),n=t.getattribute("data-wow-delay"),o=t.getattribute("data-wow-iteration"),this.animate((r=this,function(){return r.customstyle(t,e,i,n,o)}))},o.prototype.animate="requestanimationframe"in window?function(t){return window.requestanimationframe(t)}:function(t){return t()},o.prototype.resetstyle=function(){var t,e,n,i,o;for(o=[],e=0,n=(i=this.boxes).length;n>e;e++)t=i[e],o.push(t.style.visibility="visible");return o},o.prototype.resetanimation=function(t){var e;return t.type.tolowercase().indexof("animationend")>=0?(e=t.target||t.srcelement).classname=e.classname.replace(this.config.animateclass,"").trim():void 0},o.prototype.customstyle=function(t,e,n,i,o){return e&&this.cacheanimationname(t),t.style.visibility=e?"hidden":"visible",n&&this.vendorset(t.style,{animationduration:n}),i&&this.vendorset(t.style,{animationdelay:i}),o&&this.vendorset(t.style,{animationiterationcount:o}),this.vendorset(t.style,{animationname:e?"none":this.cachedanimationname(t)}),t},o.prototype.vendors=["moz","webkit"],o.prototype.vendorset=function(t,e){var n,i,o,r;for(n in i=[],e)o=e[n],t[""+n]=o,i.push(function(){var e,i,s,l;for(l=[],e=0,i=(s=this.vendors).length;i>e;e++)r=s[e],l.push(t[""+r+n.charat(0).touppercase()+n.substr(1)]=o);return l}.call(this));return i},o.prototype.vendorcss=function(t,e){var n,o,r,s,l,a;for(s=(l=i(t)).getpropertycssvalue(e),n=0,o=(r=this.vendors).length;o>n;n++)a=r[n],s=s||l.getpropertycssvalue("-"+a+"-"+e);return s},o.prototype.animationname=function(t){var e;try{e=this.vendorcss(t,"animation-name").csstext}catch(n){e=i(t).getpropertyvalue("animation-name")}return"none"===e?"":e},o.prototype.cacheanimationname=function(t){return this.animationnamecache.set(t,this.animationname(t))},o.prototype.cachedanimationname=function(t){return this.animationnamecache.get(t)},o.prototype.scrollhandler=function(){return this.scrolled=!0},o.prototype.scrollcallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,n,i,o;for(o=[],e=0,n=(i=this.boxes).length;n>e;e++)(t=i[e])&&(this.isvisible(t)?this.show(t):o.push(t));return o}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},o.prototype.offsettop=function(t){for(var e;void 0===t.offsettop;)t=t.parentnode;for(e=t.offsettop;t=t.offsetparent;)e+=t.offsettop;return e},o.prototype.isvisible=function(t){var e,n,i,o,r;return n=t.getattribute("data-wow-offset")||this.config.offset,o=(r=this.config.scrollcontainer&&this.config.scrollcontainer.scrolltop||window.pageyoffset)+math.min(this.element.clientheight,this.util().innerheight())-n,e=(i=this.offsettop(t))+t.clientheight,o>=i&&e>=r},o.prototype.util=function(){return null!=this._util?this._util:this._util=new e},o.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},o.prototype.removebox=function(t){var e=this.boxes.indexof(t);e>-1&&this.boxes.splice(e,1)},o}()}).call(this);