(function(){"use strict";var t=0;var e={};function i(o){if(!o){throw new Error("No options passed to Waypoint constructor")}if(!o.element){throw new Error("No element option passed to Waypoint constructor")}if(!o.handler){throw new Error("No handler option passed to Waypoint constructor")}this.key="waypoint-"+t;this.options=i.Adapter.extend({},i.defaults,o);this.element=this.options.element;this.adapter=new i.Adapter(this.element);this.callback=o.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=i.Context.findOrCreateByElement(this.options.context);if(i.offsetAliases[this.options.offset]){this.options.offset=i.offsetAliases[this.options.offset]}this.group.add(this);this.context.add(this);e[this.key]=this;t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)};i.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback){this.callback.apply(this,t)}};i.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete e[this.key]};i.prototype.disable=function(){this.enabled=false;return this};i.prototype.enable=function(){this.context.refresh();this.enabled=true;return this};i.prototype.next=function(){return this.group.next(this)};i.prototype.previous=function(){return this.group.previous(this)};i.invokeAll=function(t){var i=[];for(var o in e){i.push(e[o])}for(var r=0,n=i.length;ro.oldScroll;var n=r?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(a.triggerPoint===null){continue}var l=o.oldScroll=a.triggerPoint;var p=l&&h;var u=!l&&!h;if(p||u){a.queueTrigger(n);t[a.group.id]=a.group}}}for(var f in t){t[f].flushTriggers()}this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}};n.prototype.innerHeight=function(){if(this.element==this.element.window){return o.viewportHeight()}return this.adapter.innerHeight()};n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key];this.checkEmpty()};n.prototype.innerWidth=function(){if(this.element==this.element.window){return o.viewportWidth()}return this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[];for(var e in this.waypoints){for(var i in this.waypoints[e]){t.push(this.waypoints[e][i])}}for(var o=0,r=t.length;o-1){h=Math.ceil(s.contextDimension*h/100)}}c=s.contextScroll-s.contextOffset;l.triggerPoint=Math.floor(u+c-h);d=p=s.oldScroll;y=d&&w;g=!d&&!w;if(!f&&y){l.queueTrigger(s.backward);i[l.group.id]=l.group}else if(!f&&g){l.queueTrigger(s.forward);i[l.group.id]=l.group}else if(f&&s.oldScroll>=l.triggerPoint){l.queueTrigger(s.forward);i[l.group.id]=l.group}}}o.requestAnimationFrame(function(){for(var t in i){i[t].flushTriggers()}});return this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var t in i){i[t].refresh()}};n.findByElement=function(t){return i[t.waypointContextKey]};window.onload=function(){if(r){r()}n.refreshAll()};o.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)};o.Context=n})();(function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}};var o=window.Waypoint;function r(t){this.name=t.name;this.axis=t.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();i[this.axis][this.name]=this}r.prototype.add=function(t){this.waypoints.push(t)};r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};r.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i];var r=i==="up"||i==="left";o.sort(r?e:t);for(var n=0,s=o.length;n-1){this.waypoints.splice(e,1)}};r.prototype.first=function(){return this.waypoints[0]};r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};r.findOrCreate=function(t){return i[t.axis][t.name]||new r(t)};o.Group=r})();(function(){"use strict";var t=window.jQuery;var e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}});t.each(["extend","inArray","isEmptyObject"],function(e,o){i[o]=t[o]});e.adapters.push({name:"jquery",Adapter:i});e.Adapter=i})();(function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[];var o=arguments[0];if(e.isFunction(arguments[0])){o=e.extend({},arguments[1]);o.handler=arguments[0]}this.each(function(){var r=e.extend({},o,{element:this});if(typeof r.context==="string"){r.context=e(this).closest(r.context)[0]}i.push(new t(r))});return i}}if(window.jQuery){window.jQuery.fn.elementorWaypoint=e(window.jQuery)}if(window.Zepto){window.Zepto.fn.elementorWaypoint=e(window.Zepto)}})();