File: /var/www/html/wpprm_err/wp-content/themes/ronneby/assets/js/animation.js
/*;
if (!Modernizr.touch) {
*//*!
jQuery Waypoints - v2.0.5
Copyright (c) 2011-2014 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*//*
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(window,function(n,r){var i,o,l,s,f,u,c,a,h,d,p,y,v,w,g,m;i=n(r);a=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;e=n.extend({},n.fn[g].defaults,e);if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t){this.each(function(){var e;e=l.getWaypointsByElement(this);return n.each(e,function(e,n){n[t]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(c,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=c[n(t)[0][u]])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=c[n(t)[0][u]];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.on("load.waypoints",function(){return n[m]("refresh")})})}).call(this);
jQuery(document).ready(function() {
// Animate General - Init
jQuery('.cr-animate-gen').each(function () {
var $curr = jQuery(this);
$curr.css('opacity', '0');
});
// Animate Custom
jQuery('.cr-animate').each(function () {
var $curr = jQuery(this);
$curr.waypoint(function () {
$curr.trigger('cr-animate');
}, {triggerOnce: true, offset: '90%'});
});
// Animate General - Bind
jQuery('.cr-animate-gen').each(function () {
var $curr = jQuery(this);
$curr.bind('cr-animate', function () {
$curr.css('opacity', '');
$curr.addClass('animated ' + $curr.data('gen'));
});
});
// Animate General
jQuery('.cr-animate-gen').each(function () {
var $curr = jQuery(this);
$curr.waypoint(function () {
$curr.trigger('cr-animate');
}, {triggerOnce: true, offset: '90%'});
});
jQuery('.call-on-waypoint').each(function () {
var $this = jQuery(this);
$this.waypoint(function () {
$this.trigger('on-waypoin');
}, {triggerOnce: true, offset: 'bottom-in-view'});
});
});
}*/
;
/*!
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";function t(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-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.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;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(y+l-f),h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
!function(t){function s(e){var t=e.length,r=c.type(e);return"function"!==r&&!c.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===r||0===t||"number"==typeof t&&0<t&&t-1 in e))}if(!t.jQuery){var c=function(e,t){return new c.fn.init(e,t)};c.isWindow=function(e){return null!=e&&e==e.window},c.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e},c.isArray=Array.isArray||function(e){return"array"===c.type(e)},c.isPlainObject=function(e){var t;if(!e||"object"!==c.type(e)||e.nodeType||c.isWindow(e))return!1;try{if(e.constructor&&!a.call(e,"constructor")&&!a.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||a.call(e,t)},c.each=function(e,t,r){var a=0,o=e.length,i=s(e);if(r){if(i)for(;a<o&&!1!==t.apply(e[a],r);a++);else for(a in e)if(!1===t.apply(e[a],r))break}else if(i)for(;a<o&&!1!==t.call(e[a],a,e[a]);a++);else for(a in e)if(!1===t.call(e[a],a,e[a]))break;return e},c.data=function(e,t,r){if(void 0===r){var a=(o=e[c.expando])&&i[o];if(void 0===t)return a;if(a&&t in a)return a[t]}else if(void 0!==t){var o=e[c.expando]||(e[c.expando]=++c.uuid);return i[o]=i[o]||{},i[o][t]=r}},c.removeData=function(e,t){var r=e[c.expando],a=r&&i[r];a&&c.each(t,function(e,t){delete a[t]})},c.extend=function(){var e,t,r,a,o,i,n=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof n&&(u=n,n=arguments[s]||{},s++),"object"!=typeof n&&"function"!==c.type(n)&&(n={}),s===l&&(n=this,s--);s<l;s++)if(null!=(o=arguments[s]))for(a in o)e=n[a],n!==(r=o[a])&&(u&&r&&(c.isPlainObject(r)||(t=c.isArray(r)))?(t?(t=!1,i=e&&c.isArray(e)?e:[]):i=e&&c.isPlainObject(e)?e:{},n[a]=c.extend(u,i,r)):void 0!==r&&(n[a]=r));return n},c.queue=function(e,t,r){if(e){t=(t||"fx")+"queue";var a=c.data(e,t);return r?(!a||c.isArray(r)?a=c.data(e,t,(n=i||[],null!=(o=r)&&(s(Object(o))?function(e,t){for(var r=+t.length,a=0,o=e.length;a<r;)e[o++]=t[a++];if(r!=r)for(;void 0!==t[a];)e[o++]=t[a++];e.length=o}(n,"string"==typeof o?[o]:o):[].push.call(n,o)),n)):a.push(r),a):a||[]}var o,i,n},c.dequeue=function(e,o){c.each(e.nodeType?[e]:e,function(e,t){o=o||"fx";var r=c.queue(t,o),a=r.shift();"inprogress"===a&&(a=r.shift()),a&&("fx"===o&&r.unshift("inprogress"),a.call(t,function(){c.dequeue(t,o)}))})},c.fn=c.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),a=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:c(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(a.top+=parseFloat(e.style.borderTopWidth)||0,a.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-a.top,left:r.left-a.left}}};var i={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var r={},a=r.hasOwnProperty,o=r.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),n=0;n<e.length;n++)r["[object "+e[n]+"]"]=e[n].toLowerCase();c.fn.init.prototype=c.fn,t.Velocity={Utilities:c}}}(window),function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,O,z,q){function g(e){return W.isWrapped(e)?e=[].slice.call(e):W.isNode(e)&&(e=[e]),e}function $(e){var t=B.data(e,"velocity");return null===t?q:t}function a(n,t,s,r){function a(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function i(e){return 3*e}function l(e,t,r){return((a(t,r)*e+o(t,r))*e+i(t))*e}function u(e,t,r){return 3*a(t,r)*e*e+2*o(t,r)*e+i(t)}function c(e){for(var t=0,r=1,a=y-1;r!=a&&v[r]<=e;++r)t+=m;var o=t+(e-v[--r])/(v[r+1]-v[r])*m,i=u(o,n,s);return.001<=i?function(e,t){for(var r=0;r<f;++r){var a=u(t,n,s);if(0===a)return t;t-=(l(t,n,s)-e)/a}return t}(e,o):0==i?o:function(e,t,r){for(var a,o,i=0;0<(a=l(o=t+(r-t)/2,n,s)-e)?r=o:t=o,Math.abs(a)>d&&++i<g;);return o}(e,t,t+m)}function p(){b=!0,(n!=t||s!=r)&&function(){for(var e=0;e<y;++e)v[e]=l(e*m,n,s)}()}var f=4,d=1e-7,g=10,y=11,m=1/(y-1),e="Float32Array"in O;if(4!==arguments.length)return!1;for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;n=Math.min(n,1),s=Math.min(s,1),n=Math.max(n,0),s=Math.max(s,0);var v=e?new Float32Array(y):new Array(y),b=!1,x=function(e){return b||p(),n===t&&s===r?e:0===e?0:1===e?1:l(c(e),t,r)};x.getControlPoints=function(){return[{x:n,y:t},{x:s,y:r}]};var S="generateBezier("+[n,t,s,r]+")";return x.toString=function(){return S},x}function M(e,t){var r=e;return W.isString(e)?G.Easings[e]||(r=!1):r=W.isArray(e)&&1===e.length?function(t){return function(e){return Math.round(e*t)*(1/t)}}.apply(null,e):W.isArray(e)&&2===e.length?n.apply(null,e.concat([t])):!(!W.isArray(e)||4!==e.length)&&a.apply(null,e),!1===r&&(r=G.Easings[G.defaults.easing]?G.defaults.easing:i),r}function I(e){if(e){var t=(new Date).getTime(),r=G.State.calls.length;1e4<r&&(G.State.calls=function(e){for(var t=-1,r=e?e.length:0,a=[];++t<r;){var o=e[t];o&&a.push(o)}return a}(G.State.calls));for(var a=0;a<r;a++)if(G.State.calls[a]){var o=G.State.calls[a],i=o[0],n=o[2],s=o[3],l=!!s,u=null;s||(s=G.State.calls[a][3]=t-16);for(var c=Math.min((t-s)/n.duration,1),p=0,f=i.length;p<f;p++){var d=i[p],g=d.element;if($(g)){var y=!1;if(n.display!==q&&null!==n.display&&"none"!==n.display){if("flex"===n.display){B.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){D.setPropertyValue(g,"display",t)})}D.setPropertyValue(g,"display",n.display)}for(var m in n.visibility!==q&&"hidden"!==n.visibility&&D.setPropertyValue(g,"visibility",n.visibility),d)if("element"!==m){var h,v=d[m],b=W.isString(v.easing)?G.Easings[v.easing]:v.easing;if(1===c)h=v.endValue;else{var x=v.endValue-v.startValue;if(h=v.startValue+x*b(c,n,x),!l&&h===v.currentValue)continue}if(v.currentValue=h,"tween"===m)u=h;else{if(D.Hooks.registered[m]){var S=D.Hooks.getRoot(m),P=$(g).rootPropertyValueCache[S];P&&(v.rootPropertyValue=P)}var w=D.setPropertyValue(g,m,v.currentValue+(0===parseFloat(h)?"":v.unitType),v.rootPropertyValue,v.scrollData);D.Hooks.registered[m]&&($(g).rootPropertyValueCache[S]=D.Normalizations.registered[S]?D.Normalizations.registered[S]("extract",null,w[1]):w[1]),"transform"===w[0]&&(y=!0)}}n.mobileHA&&$(g).transformCache.translate3d===q&&($(g).transformCache.translate3d="(0px, 0px, 0px)",y=!0),y&&D.flushTransformCache(g)}}n.display!==q&&"none"!==n.display&&(G.State.calls[a][2].display=!1),n.visibility!==q&&"hidden"!==n.visibility&&(G.State.calls[a][2].visibility=!1),n.progress&&n.progress.call(o[1],o[1],c,Math.max(0,s+n.duration-t),s,u),1===c&&V(a)}}G.State.isTicking&&C(I)}function V(e,t){if(!G.State.calls[e])return!1;for(var r=G.State.calls[e][0],a=G.State.calls[e][1],o=G.State.calls[e][2],i=G.State.calls[e][4],n=!1,s=0,l=r.length;s<l;s++){var u=r[s].element;if(t||o.loop||("none"===o.display&&D.setPropertyValue(u,"display",o.display),"hidden"===o.visibility&&D.setPropertyValue(u,"visibility",o.visibility)),!0!==o.loop&&(B.queue(u)[1]===q||!/\.velocityQueueEntryFlag/i.test(B.queue(u)[1]))&&$(u)){$(u).isAnimating=!1;var c=!($(u).rootPropertyValueCache={});B.each(D.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,a=$(u).transformCache[t];$(u).transformCache[t]!==q&&new RegExp("^\\("+r+"[^.]").test(a)&&(c=!0,delete $(u).transformCache[t])}),o.mobileHA&&(c=!0,delete $(u).transformCache.translate3d),c&&D.flushTransformCache(u),D.Values.removeClass(u,"velocity-animating")}if(!t&&o.complete&&!o.loop&&s===l-1)try{o.complete.call(a,a)}catch(e){setTimeout(function(){throw e},1)}i&&!0!==o.loop&&i(a),$(u)&&!0===o.loop&&!t&&(B.each($(u).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),G(u,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&B.dequeue(u,o.queue)}G.State.calls[e]=!1;for(var p=0,f=G.State.calls.length;p<f;p++)if(!1!==G.State.calls[p]){n=!0;break}!1===n&&(G.State.isTicking=!1,delete G.State.calls,G.State.calls=[])}var B,o,p=function(){if(z.documentMode)return z.documentMode;for(var e=7;4<e;e--){var t=z.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return q}(),t=(o=0,O.webkitRequestAnimationFrame||O.mozRequestAnimationFrame||function(e){var t,r=(new Date).getTime();return t=Math.max(0,16-(r-o)),o=r+t,setTimeout(function(){e(r+t)},t)}),W={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==q&&(0===e.length||"object"==typeof e[0]&&0<e[0].nodeType)},isWrapped:function(e){return e&&(e.jquery||O.Zepto&&O.Zepto.zepto.isZ(e))},isSVG:function(e){return O.SVGElement&&e instanceof O.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},r=!1;if(e.fn&&e.fn.jquery?(B=e,r=!0):B=O.Velocity.Utilities,p<=8&&!r)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(p<=7)){var i="swing",G={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:O.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:z.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:B,Redirects:{},Easings:{},Promise:O.Promise,defaults:{queue:"",duration:400,easing:i,begin:q,complete:q,progress:q,display:q,visibility:q,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){B.data(e,"velocity",{isSVG:W.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};O.pageYOffset!==q?(G.State.scrollAnchor=O,G.State.scrollPropertyLeft="pageXOffset",G.State.scrollPropertyTop="pageYOffset"):(G.State.scrollAnchor=z.documentElement||z.body.parentNode||z.body,G.State.scrollPropertyLeft="scrollLeft",G.State.scrollPropertyTop="scrollTop");var n=function(){function v(e){return-e.tension*e.x-e.friction*e.v}function b(e,t,r){var a={x:e.x+r.dx*t,v:e.v+r.dv*t,tension:e.tension,friction:e.friction};return{dx:a.v,dv:v(a)}}return function e(t,r,a){var o,i,n,s,l,u,c,p,f,d,g,y={x:-1,v:0,tension:null,friction:null},m=[0],h=0;for(t=parseFloat(t)||500,r=parseFloat(r)||20,a=a||null,y.tension=t,y.friction=r,(o=null!==a)?i=(h=e(t,r))/a*.016:i=.016;l=i,void 0,u={dx:(s=n||y).v,dv:v(s)},c=b(s,.5*l,u),p=b(s,.5*l,c),f=b(s,l,p),d=1/6*(u.dx+2*(c.dx+p.dx)+f.dx),g=1/6*(u.dv+2*(c.dv+p.dv)+f.dv),s.x=s.x+d*l,s.v=s.v+g*l,n=s,m.push(1+n.x),h+=16,1e-4<Math.abs(n.x)&&1e-4<Math.abs(n.v););return o?function(e){return m[e*(m.length-1)|0]}:h}}();G.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},B.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){G.Easings[t[0]]=a.apply(null,t[1])});var D=G.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<D.Lists.colors.length;e++){var t="color"===D.Lists.colors[e]?"0 0 0 1":"255 255 255 1";D.Hooks.templates[D.Lists.colors[e]]=["Red Green Blue Alpha",t]}var r,a,o;if(p)for(r in D.Hooks.templates){o=(a=D.Hooks.templates[r])[0].split(" ");var i=a[1].match(D.RegEx.valueSplit);"Color"===o[0]&&(o.push(o.shift()),i.push(i.shift()),D.Hooks.templates[r]=[o.join(" "),i.join(" ")])}for(r in D.Hooks.templates)for(var e in o=(a=D.Hooks.templates[r])[0].split(" ")){var n=r+o[e],s=e;D.Hooks.registered[n]=[r,s]}},getRoot:function(e){var t=D.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return D.RegEx.valueUnwrap.test(t)&&(t=t.match(D.RegEx.valueUnwrap)[1]),D.Values.isCSSNullValue(t)&&(t=D.Hooks.templates[e][1]),t},extractValue:function(e,t){var r=D.Hooks.registered[e];if(r){var a=r[0],o=r[1];return(t=D.Hooks.cleanRootPropertyValue(a,t)).toString().match(D.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,r){var a=D.Hooks.registered[e];if(a){var o,i=a[0],n=a[1];return(o=(r=D.Hooks.cleanRootPropertyValue(i,r)).toString().match(D.RegEx.valueSplit))[n]=t,o.join(" ")}return r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case"name":return"clip";case"extract":var a;return D.RegEx.wrappedValueAlreadyExtracted.test(r)?a=r:a=(a=r.toString().match(D.RegEx.valueUnwrap))?a[1].replace(/,(\s+)?/g," "):r,a;case"inject":return"rect("+r+")"}},blur:function(e,t,r){switch(e){case"name":return G.State.isFirefox?"filter":"-webkit-filter";case"extract":var a=parseFloat(r);if(!a&&0!==a){var o=r.toString().match(/blur\(([0-9]+[A-z]+)\)/i);a=o?o[1]:0}return a;case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(e,t,r){if(p<=8)switch(e){case"name":return"filter";case"extract":var a=r.toString().match(/alpha\(opacity=(.*)\)/i);return a?a[1]/100:1;case"inject":return(t.style.zoom=1)<=parseFloat(r)?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return r}}},register:function(){p<=9||G.State.isGingerbread||(D.Lists.transformsBase=D.Lists.transformsBase.concat(D.Lists.transforms3D));for(var e=0;e<D.Lists.transformsBase.length;e++)!function(){var o=D.Lists.transformsBase[e];D.Normalizations.registered[o]=function(e,t,r){switch(e){case"name":return"transform";case"extract":return $(t)===q||$(t).transformCache[o]===q?/^scale/i.test(o)?1:0:$(t).transformCache[o].replace(/[()]/g,"");case"inject":var a=!1;switch(o.substr(0,o.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":G.State.isAndroid&&$(t).transformCache[o]===q&&r<1&&(r=1),a=!/(\d)$/i.test(r);break;case"skew":a=!/(deg|\d)$/i.test(r);break;case"rotate":a=!/(deg|\d)$/i.test(r)}return a||($(t).transformCache[o]="("+r+")"),$(t).transformCache[o]}}}();for(e=0;e<D.Lists.colors.length;e++)!function(){var n=D.Lists.colors[e];D.Normalizations.registered[n]=function(e,t,r){switch(e){case"name":return n;case"extract":var a;if(D.RegEx.wrappedValueAlreadyExtracted.test(r))a=r;else{var o,i={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?o=i[r]!==q?i[r]:i.black:D.RegEx.isHex.test(r)?o="rgb("+D.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(o=i.black),a=(o||r).toString().match(D.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return p<=8||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return p<=8?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(p<=8?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||G.State.isAndroid&&!G.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(G.State.prefixMatches[e])return[G.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],r=0,a=t.length;r<a;r++){var o;if(o=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.toUpperCase()}),W.isString(G.State.prefixElement.style[o]))return[G.State.prefixMatches[e]=o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,a){return t+t+r+r+a+a}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,t,r,u){function c(e,t){function r(){i&&D.setPropertyValue(e,"display","none")}var a=0;if(p<=8)a=B.css(e,t);else{var o,i=!1;if(/^(width|height)$/.test(t)&&0===D.getPropertyValue(e,"display")&&(i=!0,D.setPropertyValue(e,"display",D.Values.getDisplayType(e))),!u){if("height"===t&&"border-box"!==D.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var n=e.offsetHeight-(parseFloat(D.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(D.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(D.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(D.getPropertyValue(e,"paddingBottom"))||0);return r(),n}if("width"===t&&"border-box"!==D.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var s=e.offsetWidth-(parseFloat(D.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(D.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(D.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(D.getPropertyValue(e,"paddingRight"))||0);return r(),s}}o=$(e)===q?O.getComputedStyle(e,null):$(e).computedStyle?$(e).computedStyle:$(e).computedStyle=O.getComputedStyle(e,null),"borderColor"===t&&(t="borderTopColor"),(""===(a=9===p&&"filter"===t?o.getPropertyValue(t):o[t])||null===a)&&(a=e.style[t]),r()}if("auto"===a&&/^(top|right|bottom|left)$/i.test(t)){var l=c(e,"position");("fixed"===l||"absolute"===l&&/top|left/i.test(t))&&(a=B(e).position()[t]+"px")}return a}var a;if(D.Hooks.registered[t]){var o=t,i=D.Hooks.getRoot(o);r===q&&(r=D.getPropertyValue(e,D.Names.prefixCheck(i)[0])),D.Normalizations.registered[i]&&(r=D.Normalizations.registered[i]("extract",e,r)),a=D.Hooks.extractValue(o,r)}else if(D.Normalizations.registered[t]){var n,s;"transform"!==(n=D.Normalizations.registered[t]("name",e))&&(s=c(e,D.Names.prefixCheck(n)[0]),D.Values.isCSSNullValue(s)&&D.Hooks.templates[t]&&(s=D.Hooks.templates[t][1])),a=D.Normalizations.registered[t]("extract",e,s)}if(!/^[\d-]/.test(a))if($(e)&&$(e).isSVG&&D.Names.SVGAttribute(t))if(/^(height|width)$/i.test(t))try{a=e.getBBox()[t]}catch(e){a=0}else a=e.getAttribute(t);else a=c(e,D.Names.prefixCheck(t)[0]);return D.Values.isCSSNullValue(a)&&(a=0),2<=G.debug&&console.log("Get "+t+": "+a),a},setPropertyValue:function(e,t,r,a,o){var i=t;if("scroll"===t)o.container?o.container["scroll"+o.direction]=r:"Left"===o.direction?O.scrollTo(r,o.alternateValue):O.scrollTo(o.alternateValue,r);else if(D.Normalizations.registered[t]&&"transform"===D.Normalizations.registered[t]("name",e))D.Normalizations.registered[t]("inject",e,r),i="transform",r=$(e).transformCache[t];else{if(D.Hooks.registered[t]){var n=t,s=D.Hooks.getRoot(t);a=a||D.getPropertyValue(e,s),r=D.Hooks.injectValue(n,r,a),t=s}if(D.Normalizations.registered[t]&&(r=D.Normalizations.registered[t]("inject",e,r),t=D.Normalizations.registered[t]("name",e)),i=D.Names.prefixCheck(t)[0],p<=8)try{e.style[i]=r}catch(e){G.debug&&console.log("Browser does not support ["+r+"] for ["+i+"]")}else $(e)&&$(e).isSVG&&D.Names.SVGAttribute(t)?e.setAttribute(t,r):e.style[i]=r;2<=G.debug&&console.log("Set "+t+" ("+i+"): "+r)}return[i,r]},flushTransformCache:function(t){function e(e){return parseFloat(D.getPropertyValue(t,e))}var r="";if((p||G.State.isAndroid&&!G.State.isChrome)&&$(t).isSVG){var a={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};B.each($(t).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(r+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var o,i;B.each($(t).transformCache,function(e){return o=$(t).transformCache[e],"transformPerspective"===e?(i=o,!0):(9===p&&"rotateZ"===e&&(e="rotate"),void(r+=e+o+" "))}),i&&(r="perspective"+i+" "+r)}D.setPropertyValue(t,"transform",r)}};D.Hooks.register(),D.Normalizations.register(),G.hook=function(e,a,o){var i=q;return e=g(e),B.each(e,function(e,t){if($(t)===q&&G.init(t),o===q)i===q&&(i=G.CSS.getPropertyValue(t,a));else{var r=G.CSS.setPropertyValue(t,a,o);"transform"===r[0]&&G.CSS.flushTransformCache(t),i=r}}),i};var y=function(){function e(){return t?N.promise||null:r}var t,r,a,k,A,F,o=arguments[0]&&(arguments[0].p||B.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||W.isString(arguments[0].properties));if(W.isWrapped(this)?(t=!1,a=0,r=k=this):(t=!0,a=1,k=o?arguments[0].elements||arguments[0].e:arguments[0]),k=g(k)){o?(A=arguments[0].properties||arguments[0].p,F=arguments[0].options||arguments[0].o):(A=arguments[a],F=arguments[a+1]);var E=k.length,j=0;if(!/^(stop|finish|finishAll)$/i.test(A)&&!B.isPlainObject(F)){F={};for(var i=a+1;i<arguments.length;i++)W.isArray(arguments[i])||!/^(fast|normal|slow)$/i.test(arguments[i])&&!/^\d/.test(arguments[i])?W.isString(arguments[i])||W.isArray(arguments[i])?F.easing=arguments[i]:W.isFunction(arguments[i])&&(F.complete=arguments[i]):F.duration=arguments[i]}var H,N={promise:null,resolver:null,rejecter:null};switch(t&&G.Promise&&(N.promise=new G.Promise(function(e,t){N.resolver=e,N.rejecter=t})),A){case"scroll":H="scroll";break;case"reverse":H="reverse";break;case"finish":case"finishAll":case"stop":B.each(k,function(e,t){$(t)&&$(t).delayTimer&&(clearTimeout($(t).delayTimer.setTimeout),$(t).delayTimer.next&&$(t).delayTimer.next(),delete $(t).delayTimer),"finishAll"!==A||!0!==F&&!W.isString(F)||(B.each(B.queue(t,W.isString(F)?F:""),function(e,t){W.isFunction(t)&&t()}),B.queue(t,W.isString(F)?F:"",[]))});var n=[];return B.each(G.State.calls,function(o,i){i&&B.each(i[1],function(e,r){var a=F===q?"":F;return!0!==a&&i[2].queue!==a&&(F!==q||!1!==i[2].queue)||void B.each(k,function(e,t){t===r&&((!0===F||W.isString(F))&&(B.each(B.queue(t,W.isString(F)?F:""),function(e,t){W.isFunction(t)&&t(null,!0)}),B.queue(t,W.isString(F)?F:"",[])),"stop"===A?($(t)&&$(t).tweensContainer&&!1!==a&&B.each($(t).tweensContainer,function(e,t){t.endValue=t.currentValue}),n.push(o)):("finish"===A||"finishAll"===A)&&(i[2].duration=1))})})}),"stop"===A&&(B.each(n,function(e,t){V(t,!0)}),N.promise&&N.resolver(k)),e();default:if(!B.isPlainObject(A)||W.isEmptyObject(A)){if(W.isString(A)&&G.Redirects[A]){var s=(p=B.extend({},F)).duration,l=p.delay||0;return!0===p.backwards&&(k=B.extend(!0,[],k).reverse()),B.each(k,function(e,t){parseFloat(p.stagger)?p.delay=l+parseFloat(p.stagger)*e:W.isFunction(p.stagger)&&(p.delay=l+p.stagger.call(t,e,E)),p.drag&&(p.duration=parseFloat(s)||(/^(callout|transition)/.test(A)?1e3:400),p.duration=Math.max(p.duration*(p.backwards?1-e/E:(e+1)/E),.75*p.duration,200)),G.Redirects[A].call(t,t,p||{},e,E,k,N.promise?N:q)}),e()}var u="Velocity: First argument ("+A+") was not a property map, a known action, or a registered redirect. Aborting.";return N.promise?N.rejecter(new Error(u)):console.log(u),e()}H="start"}var c,p,L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[];if(B.each(k,function(e,t){W.isNode(t)&&function(){function r(){function p(e,t){var r=q,a=q,o=q;return W.isArray(e)?(r=e[0],!W.isArray(e[1])&&/^[\d-]/.test(e[1])||W.isFunction(e[1])||D.RegEx.isHex.test(e[1])?o=e[1]:(W.isString(e[1])&&!D.RegEx.isHex.test(e[1])||W.isArray(e[1]))&&(a=t?e[1]:M(e[1],C.duration),e[2]!==q&&(o=e[2]))):r=e,t||(a=a||C.easing),W.isFunction(r)&&(r=r.call(V,j,E)),W.isFunction(o)&&(o=o.call(V,j,E)),[r||0,a,o]}function e(e,t){var r,a;return a=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,""}),r||(r=D.Values.getUnitType(e)),[a,r]}function t(){var e={myParent:V.parentNode||z.body,position:D.getPropertyValue(V,"position"),fontSize:D.getPropertyValue(V,"fontSize")},t=e.position===L.lastPosition&&e.myParent===L.lastParent,r=e.fontSize===L.lastFontSize;L.lastParent=e.myParent,L.lastPosition=e.position,L.lastFontSize=e.fontSize;var a={};if(r&&t)a.emToPx=L.lastEmToPx,a.percentToPxWidth=L.lastPercentToPxWidth,a.percentToPxHeight=L.lastPercentToPxHeight;else{var o=$(V).isSVG?z.createElementNS("http://www.w3.org/2000/svg","rect"):z.createElement("div");G.init(o),e.myParent.appendChild(o),B.each(["overflow","overflowX","overflowY"],function(e,t){G.CSS.setPropertyValue(o,t,"hidden")}),G.CSS.setPropertyValue(o,"position",e.position),G.CSS.setPropertyValue(o,"fontSize",e.fontSize),G.CSS.setPropertyValue(o,"boxSizing","content-box"),B.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){G.CSS.setPropertyValue(o,t,"100%")}),G.CSS.setPropertyValue(o,"paddingLeft","100em"),a.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(D.getPropertyValue(o,"width",null,!0))||1)/100,a.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(D.getPropertyValue(o,"height",null,!0))||1)/100,a.emToPx=L.lastEmToPx=(parseFloat(D.getPropertyValue(o,"paddingLeft"))||1)/100,e.myParent.removeChild(o)}return null===L.remToPx&&(L.remToPx=parseFloat(D.getPropertyValue(z.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(O.innerWidth)/100,L.vhToPx=parseFloat(O.innerHeight)/100),a.remToPx=L.remToPx,a.vwToPx=L.vwToPx,a.vhToPx=L.vhToPx,1<=G.debug&&console.log("Unit ratios: "+JSON.stringify(a),V),a}if(C.begin&&0===j)try{C.begin.call(k,k)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===H){var r,a,o,i=/^x$/i.test(C.axis)?"Left":"Top",n=parseFloat(C.offset)||0;C.container?W.isWrapped(C.container)||W.isNode(C.container)?(C.container=C.container[0]||C.container,o=(r=C.container["scroll"+i])+B(V).position()[i.toLowerCase()]+n):C.container=null:(r=G.State.scrollAnchor[G.State["scrollProperty"+i]],a=G.State.scrollAnchor[G.State["scrollProperty"+("Left"===i?"Top":"Left")]],o=B(V).offset()[i.toLowerCase()]+n),T={scroll:{rootPropertyValue:!1,startValue:r,currentValue:r,endValue:o,unitType:"",easing:C.easing,scrollData:{container:C.container,direction:i,alternateValue:a}},element:V},G.debug&&console.log("tweensContainer (scroll): ",T.scroll,V)}else if("reverse"===H){if(!$(V).tweensContainer)return void B.dequeue(V,C.queue);"none"===$(V).opts.display&&($(V).opts.display="auto"),"hidden"===$(V).opts.visibility&&($(V).opts.visibility="visible"),$(V).opts.loop=!1,$(V).opts.begin=null,$(V).opts.complete=null,F.easing||delete C.easing,F.duration||delete C.duration,C=B.extend({},$(V).opts,C);var s=B.extend(!0,{},$(V).tweensContainer);for(var l in s)if("element"!==l){var u=s[l].startValue;s[l].startValue=s[l].currentValue=s[l].endValue,s[l].endValue=u,W.isEmptyObject(F)||(s[l].easing=C.easing),G.debug&&console.log("reverse tweensContainer ("+l+"): "+JSON.stringify(s[l]),V)}T=s}else if("start"===H){for(var c in $(V).tweensContainer&&!0===$(V).isAnimating&&(s=$(V).tweensContainer),B.each(A,function(e,t){if(RegExp("^"+D.Lists.colors.join("$|^")+"$").test(e)){var r=p(t,!0),a=r[0],o=r[1],i=r[2];if(D.RegEx.isHex.test(a)){for(var n=["Red","Green","Blue"],s=D.Values.hexToRgb(a),l=i?D.Values.hexToRgb(i):q,u=0;u<n.length;u++){var c=[s[u]];o&&c.push(o),l!==q&&c.push(l[u]),A[e+n[u]]=c}delete A[e]}}}),A){var f=p(A[c]),d=f[0],g=f[1],y=f[2];c=D.Names.camelCase(c);var m=D.Hooks.getRoot(c),h=!1;if($(V).isSVG||"tween"===m||!1!==D.Names.prefixCheck(m)[1]||D.Normalizations.registered[m]!==q){(C.display!==q&&null!==C.display&&"none"!==C.display||C.visibility!==q&&"hidden"!==C.visibility)&&/opacity|filter/.test(c)&&!y&&0!==d&&(y=0),C._cacheValues&&s&&s[c]?(y===q&&(y=s[c].endValue+s[c].unitType),h=$(V).rootPropertyValueCache[m]):D.Hooks.registered[c]?y===q?(h=D.getPropertyValue(V,m),y=D.getPropertyValue(V,c,h)):h=D.Hooks.templates[m][1]:y===q&&(y=D.getPropertyValue(V,c));var v,b,x,S=!1;if(y=(v=e(c,y))[0],x=v[1],d=(v=e(c,d))[0].replace(/^([+-\/*])=/,function(e,t){return S=t,""}),b=v[1],y=parseFloat(y)||0,d=parseFloat(d)||0,"%"===b&&(/^(fontSize|lineHeight)$/.test(c)?(d/=100,b="em"):/^scale/.test(c)?(d/=100,b=""):/(Red|Green|Blue)$/i.test(c)&&(d=d/100*255,b="")),/[\/*]/.test(S))b=x;else if(x!==b&&0!==y)if(0===d)b=x;else{w=w||t();var P=/margin|padding|left|right|width|text|word|letter/i.test(c)||/X$/.test(c)||"x"===c?"x":"y";switch(x){case"%":y*="x"===P?w.percentToPxWidth:w.percentToPxHeight;break;case"px":break;default:y*=w[x+"ToPx"]}switch(b){case"%":y*=1/("x"===P?w.percentToPxWidth:w.percentToPxHeight);break;case"px":break;default:y*=1/w[b+"ToPx"]}}switch(S){case"+":d=y+d;break;case"-":d=y-d;break;case"*":d*=y;break;case"/":d=y/d}T[c]={rootPropertyValue:h,startValue:y,currentValue:y,endValue:d,unitType:b,easing:g},G.debug&&console.log("tweensContainer ("+c+"): "+JSON.stringify(T[c]),V)}else G.debug&&console.log("Skipping ["+m+"] due to a lack of browser support.")}T.element=V}T.element&&(D.Values.addClass(V,"velocity-animating"),R.push(T),""===C.queue&&($(V).tweensContainer=T,$(V).opts=C),$(V).isAnimating=!0,j===E-1?(G.State.calls.push([R,k,C,null,N.resolver]),!1===G.State.isTicking&&(G.State.isTicking=!0,I())):j++)}var w,V=this,C=B.extend({},G.defaults,F),T={};switch($(V)===q&&G.init(V),parseFloat(C.delay)&&!1!==C.queue&&B.queue(V,C.queue,function(e){G.velocityQueueEntryFlag=!0,$(V).delayTimer={setTimeout:setTimeout(e,parseFloat(C.delay)),next:e}}),C.duration.toString().toLowerCase()){case"fast":C.duration=200;break;case"normal":C.duration=400;break;case"slow":C.duration=600;break;default:C.duration=parseFloat(C.duration)||1}!1!==G.mock&&(!0===G.mock?C.duration=C.delay=1:(C.duration*=parseFloat(G.mock)||1,C.delay*=parseFloat(G.mock)||1)),C.easing=M(C.easing,C.duration),C.begin&&!W.isFunction(C.begin)&&(C.begin=null),C.progress&&!W.isFunction(C.progress)&&(C.progress=null),C.complete&&!W.isFunction(C.complete)&&(C.complete=null),C.display!==q&&null!==C.display&&(C.display=C.display.toString().toLowerCase(),"auto"===C.display&&(C.display=G.CSS.Values.getDisplayType(V))),C.visibility!==q&&null!==C.visibility&&(C.visibility=C.visibility.toString().toLowerCase()),C.mobileHA=C.mobileHA&&G.State.isMobile&&!G.State.isGingerbread,!1===C.queue?C.delay?setTimeout(r,C.delay):r():B.queue(V,C.queue,function(e,t){return!0===t?(N.promise&&N.resolver(k),!0):(G.velocityQueueEntryFlag=!0,void r())}),""!==C.queue&&"fx"!==C.queue||"inprogress"===B.queue(V)[0]||B.dequeue(V)}.call(t)}),(p=B.extend({},G.defaults,F)).loop=parseInt(p.loop),c=2*p.loop-1,p.loop)for(var f=0;f<c;f++){var d={delay:p.delay,progress:p.progress};f===c-1&&(d.display=p.display,d.visibility=p.visibility,d.complete=p.complete),y(k,"reverse",d)}return e()}};(G=B.extend(y,G)).animate=y;var C=O.requestAnimationFrame||t;return G.State.isMobile||z.hidden===q||z.addEventListener("visibilitychange",function(){z.hidden?(C=function(e){return setTimeout(function(){e(!0)},16)},I()):C=O.requestAnimationFrame||t}),e.Velocity=G,e!==O&&(e.fn.velocity=y,e.fn.velocity.defaults=G.defaults),B.each(["Down","Up"],function(e,p){G.Redirects["slide"+p]=function(r,e,t,a,o,i){var n=B.extend({},e),s=n.begin,l=n.complete,u={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},c={};n.display===q&&(n.display="Down"===p?"inline"===G.CSS.Values.getDisplayType(r)?"inline-block":"block":"none"),n.begin=function(){for(var e in s&&s.call(o,o),u){c[e]=r.style[e];var t=G.CSS.getPropertyValue(r,e);u[e]="Down"===p?[t,0]:[0,t]}c.overflow=r.style.overflow,r.style.overflow="hidden"},n.complete=function(){for(var e in c)r.style[e]=c[e];l&&l.call(o,o),i&&i.resolver(o)},G(r,u,n)}}),B.each(["In","Out"],function(e,u){G.Redirects["fade"+u]=function(e,t,r,a,o,i){var n=B.extend({},t),s={opacity:"In"===u?1:0},l=n.complete;n.complete=r!==a-1?n.begin=null:function(){l&&l.call(o,o),i&&i.resolver(o)},n.display===q&&(n.display="In"===u?"auto":"none"),G(this,s,n)}}),G}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)});
/* VelocityJS.org UI Pack (5.0.4). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */
!function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["velocity"],t):t()}(function(){return function(t,a,e,Y){if(t.Velocity&&t.Velocity.Utilities){var r,n,i,O=t.Velocity,v=O.Utilities,s=O.version;if(n=s,i=[],(r={major:1,minor:1,patch:0})&&n&&(v.each([r,n],function(t,a){var e=[];v.each(a,function(t,a){for(;a.toString().length<5;)a="0"+a;e.push(a)}),i.push(e.join(""))}),parseFloat(i[0])>parseFloat(i[1]))){var o="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(o),new Error(o)}for(var l in O.RegisterEffect=O.RegisterUI=function(m,X){return O.Redirects[m]=function(r,o,t,a,l,e){function n(){o.display!==Y&&"none"!==o.display||!/Out$/.test(m)||v.each(l.nodeType?[l]:l,function(t,a){O.CSS.setPropertyValue(a,"display","none")}),o.complete&&o.complete.call(l,l),e&&e.resolver(l||r)}var i=t===a-1;X.defaultDuration="function"==typeof X.defaultDuration?X.defaultDuration.call(l,l):parseFloat(X.defaultDuration);for(var s=0;s<X.calls.length;s++){var c=X.calls[s],u=c[0],f=o.duration||X.defaultDuration||1e3,p=c[1],d=c[2]||{},g={};if(g.duration=f*(p||1),g.queue=o.queue||"",g.easing=d.easing||"ease",g.delay=parseFloat(d.delay)||0,g._cacheValues=d._cacheValues||!0,0===s){if(g.delay+=parseFloat(o.delay)||0,0===t&&(g.begin=function(){o.begin&&o.begin.call(l,l);var t,a,r,n,i,s,e=m.match(/(In|Out)$/);e&&"In"===e[0]&&u.opacity!==Y&&v.each(l.nodeType?[l]:l,function(t,a){O.CSS.setPropertyValue(a,"opacity",0)}),o.animateParentHeight&&e&&(t=l,a=e[0],r=f+g.delay,n=o.stagger,s=0,v.each(t.nodeType?[t]:t,function(t,e){n&&(r+=t*n),i=e.parentNode,v.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,a){s+=parseFloat(O.CSS.getPropertyValue(e,a))})}),O.animate(i,{height:("In"===a?"+":"-")+"="+s},{queue:!1,easing:"ease-in-out",duration:r*("In"===a?.6:1)}))}),null!==o.display)if(o.display!==Y&&"none"!==o.display)g.display=o.display;else if(/In$/.test(m)){var y=O.CSS.Values.getDisplayType(r);g.display="inline"===y?"inline-block":y}o.visibility&&"hidden"!==o.visibility&&(g.visibility=o.visibility)}s===X.calls.length-1&&(g.complete=function(){if(X.reset){for(var t in X.reset){var a=X.reset[t];O.CSS.Hooks.registered[t]!==Y||"string"!=typeof a&&"number"!=typeof a||(X.reset[t]=[X.reset[t],X.reset[t]])}var e={duration:0,queue:!1};i&&(e.complete=n),O.animate(r,X.reset,e)}else i&&n()},"hidden"===o.visibility&&(g.visibility=o.visibility)),O.animate(r,u,g)}},O},O.RegisterEffect.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:0},.125]]},"callout.flash":{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]},.25],[{opacity:[1,"easeInOutQuad"]},.25],[{opacity:[0,"easeInOutQuad"]},.25],[{opacity:[1,"easeInOutQuad"]},.25]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5,{easing:"easeInExpo"}],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15},.2],[{rotateZ:-10},.2],[{rotateZ:5},.2],[{rotateZ:-5},.2],[{rotateZ:0},.2]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10},.5],[{opacity:0,rotateY:90},.5]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15},.5],[{opacity:0,rotateX:90},.5]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]},1,{easing:"easeInOutSine"}]]},"transition.whirlOut":{defaultDuration:750,calls:[[{opacity:[0,"easeInOutQuint",1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160},1,{easing:"swing"}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:750,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:600,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expand":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["0%","0%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.4],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},.5]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.35],[{scaleX:1.1,scaleY:1.1,translateZ:0},.35],[{opacity:[0,1],scaleX:.3,scaleY:.3},.3]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}},"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}},O.RegisterEffect.packagedEffects)O.RegisterEffect(l,O.RegisterEffect.packagedEffects[l]);O.RunSequence=function(t){var l=v.extend(!0,[],t);1<l.length&&(v.each(l.reverse(),function(t,e){var r=l[t+1];if(r){var a=e.o||e.options,n=r.o||r.options,i=a&&!1===a.sequenceQueue?"begin":"complete",s=n&&n[i],o={};o[i]=function(){var t=r.e||r.elements,a=t.nodeType?[t]:t;s&&s.call(a,a),O(e)},r.o?r.o=v.extend({},n,o):r.options=v.extend({},n,o)}}),l.reverse()),O(l[0])}}else a.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting.")}(window.jQuery||window.Zepto||window,window,document)});
(function($) {
"use strict";
var dfd_ronneby_anim = window.dfd_ronneby_anim || {};
window.dfd_ronneby_anim = dfd_ronneby_anim;
$('.cr-animate-gen, [data-animate="1"]').each(function () {
var $self = $(this),
$item;
if ($self.data('animate-item')) {
$item = $self.find($self.data('animate-item'));
$item.css('opacity','0');
} else {
$self.css('opacity','0');
}
});
dfd_ronneby_anim.initAnimation = function() {
var initAnimation = function () {
var offset = '85%';
$('.cr-animate-gen, [data-animate="1"]').each(function () {
var $curr = $(this);
var $item;
var $animation;
$animation = $curr.data('animate-type');
if ($curr.data('animate-item')) {
$item = $curr.find($curr.data('animate-item'));
$item.each(function() {
var $self = $(this);
$self.waypoint(function () {
if(!$self.hasClass('animation-done')) {
$self.addClass('animation-done');
$self.velocity($animation, {stagger: 150, drag: true, display:'auto'});
}
}, {offset: offset});
});
} else {
$curr.waypoint(function () {
if(!$curr.hasClass('animation-done')) {
$curr.addClass('animation-done');
$curr.velocity($animation,{display:'auto'});
}
}, {offset: offset});
}
});
$('.call-on-waypoint').each(function () {
var $this = $(this);
$this.waypoint(function () {
$this.trigger('on-waypoin');
}, {triggerOnce: true, offset: offset});
});
};
$(window).load(initAnimation);
$('body').on('post-added', initAnimation);
};
dfd_ronneby_anim.imagesLazyLoad = function() {
var imagesLazyLoad = function() {
$('.dfd-img-lazy-load').each(function () {
var $self = $(this),
offset = $('body').data('lazy-load-offset') ? $('body').data('lazy-load-offset') : '140%';
$self.waypoint(function () {
if(!$self.hasClass('image-loaded')) {
var $data_src = $self.find('img').attr('data-src');
$self.addClass('image-loaded');
$self
//.css('background','none')
.find('img').attr('src', $data_src).css('opacity','1');
}
}, {offset: offset});
});
};
$(window).load(imagesLazyLoad);
$('body').on('post-added', function() {
setTimeout(function() {
imagesLazyLoad();
},1000);
});
};
dfd_ronneby_anim.init = function() {
dfd_ronneby_anim.imagesLazyLoad();
dfd_ronneby_anim.initAnimation();
// if(!Modernizr.touch) {
// }
};
dfd_ronneby_anim.init();
})(jQuery);