/*! * wpbakery page builder v6.0.0 (https://wpbakery.com) * copyright 2011-2019 michael m, wpbakery * license: commercial. more details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start /*! waypoints - 4.0.1 copyright © 2011-2016 caleb troughton licensed under the mit license. https://github.com/imakewebthings/waypoints/blob/master/licenses.txt */ !function(){"use strict";var e=0,r={};function i(t){if(!t)throw new error("no options passed to waypoint constructor");if(!t.element)throw new error("no element option passed to waypoint constructor");if(!t.handler)throw new error("no handler option passed to waypoint constructor");this.key="waypoint-"+e,this.options=i.adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.adapter(this.element),this.callback=t.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),i.offsetaliases[this.options.offset]&&(this.options.offset=i.offsetaliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queuetrigger=function(t){this.group.queuetrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeall=function(t){var e=[];for(var i in r)e.push(r[i]);for(var o=0,n=e.length;oo.oldscroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerpoint){var a=o.oldscroll=s.triggerpoint;(a&&l||!a&&!l)&&(s.queuetrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushtriggers();this.oldscroll={x:e.horizontal.newscroll,y:e.vertical.newscroll}},n.prototype.innerheight=function(){return this.element==this.element.window?y.viewportheight():this.adapter.innerheight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkempty()},n.prototype.innerwidth=function(){return this.element==this.element.window?y.viewportwidth():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,n=t.length;o=r.oldscroll,p=!l&&!h,!w&&(l&&h)?(c.queuetrigger(r.backward),o[c.group.id]=c.group):!w&&p?(c.queuetrigger(r.forward),o[c.group.id]=c.group):w&&r.oldscroll>=c.triggerpoint&&(c.queuetrigger(r.forward),o[c.group.id]=c.group)}}return y.requestanimationframe(function(){for(var t in o)o[t].flushtriggers()}),this},n.findorcreatebyelement=function(t){return n.findbyelement(t)||new n(t)},n.refreshall=function(){for(var t in o)o[t].refresh()},n.findbyelement=function(t){return o[t.waypointcontextkey]},window.onload=function(){t&&t(),n.refreshall()},y.requestanimationframe=function(t){(window.requestanimationframe||window.mozrequestanimationframe||window.webkitrequestanimationframe||e).call(window,t)},y.context=n}(),function(){"use strict";function s(t,e){return t.triggerpoint-e.triggerpoint}function a(t,e){return e.triggerpoint-t.triggerpoint}var e={vertical:{},horizontal:{}},i=window.vcwaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.cleartriggerqueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.cleartriggerqueues=function(){this.triggerqueues={up:[],down:[],left:[],right:[]}},o.prototype.flushtriggers=function(){for(var t in this.triggerqueues){var e=this.triggerqueues[t],i="up"===t||"left"===t;e.sort(i?a:s);for(var o=0,n=e.length;o