PageSourceSearch

https://www.lapiazzabedford.co.uk/wp-content/boost-cache/static/cebbe95217.min.js

js lapiazzabedford.co.uk collected 2026-10-05 22:40:07 UTC 164,854 bytes, 28 lines download raw bytes

1!function($){window.wp&&window.wp.customize||(window.initHoverFX=function(t,e,i){var k,A,C,I,z,S,P;function V(t){return{width:"100%",height:Math.abs(parseFloat($(t).outerHeight(!1)))}}A=$(".contentswap-effect"),P=!0,(C=t).resizeEvent=!!i,function(t){$();A.each(function(){var e,h,i,n,r,o,a,s,t,c,u,l,p,d,f,m,g;if((e=$(this)).unbind(".hoverfx"),e.css({width:"",height:""}),h=function(t){z=$(t).attr("class"),S=z.split(" ");for(var e=0;e<=A.length;e++)for(var i in C)S[e]===i&&(I=i);return C?C[I]:k[I]}(e),i=function(t,e){var i;switch(e){case"overlay":i=$(t).find(".swap-inner");break;case"imageSwap":i=$(t).find(".second-image");break;case"caption":i=$(t).find(".swap-inner")}return i}(e,h.contentType),r=e.find(".initial-image"),n=e.find(".overlay"),h.overlayColor=i.css("background-color"),h.innerColor=i.css("background-color"),i.removeAttr("style"),n.removeAttr("style"),r.removeAttr("style"),u=e,l=(c=r).css("margin-left"),p=c.css("margin-right"),d=c.css("margin-top"),f=c.css("margin-bottom"),m=c.css("float"),c.css({float:"none","margin-left":"0px","margin-right":"0px","margin-top":"0px","margin-bottom":"0px"}),u.css({float:m,"margin-left":l,"margin-right":p,"margin-top":d,"margin-bottom":f}),V(e),s=function(t){var e,i="",n=!1;switch(t.toLowerCase()){case"easeinoutback":e="cubic-bezier(0.680, -0.550, 0.265, 1.550)",n="cubic-bezier(0.680, 0, 0.265, 1)";break;case"quick-in":e="cubic-bezier(0.315, -0.185, 0.000, 1.270)",n="cubic-bezier(0.315, 0, 0.000, 1)";break;case"accelerate":e="cubic-bezier(0.885, 0.420, 0.000, 1.270)",n="cubic-bezier(0.885, 0.420, 0.000, 1)";break;case"super-fast":e="cubic-bezier(0.000, 0.870, 0.000, 0.890)";break;case"ease-in-out-back":e="cubic-bezier(0.680, -0.550, 0.265, 1.550)",n="cubic-bezier(0.680, 0, 0.265, 1)";break;case"ease-in-out-expo":e="cubic-bezier(1.000, 0.000, 0.000, 1.000)";break;case"ease-out-back":e="cubic-bezier(0.175, 0.885, 0.320, 1.275)",n="cubic-bezier(0.175, 0.885, 0.320, 1)";break;case"ease-out-circ":e="cubic-bezier(0.075, 0.820, 0.165, 1.000)";break;case"ease-in-back":e="cubic-bezier(0.600, -0.280, 0.735, 0.045)",n="cubic-bezier(0.600, 0, 0.735, 0.045)";break;case"ease-in-circ":n=e="cubic-bezier(0.600, 0.040, 0.980, 0.335)";break;case"ease":e="ease";break;case"ease-in":e="ease-in";break;case"ease-in-out":e="ease-in-out";break;case"ease-out":e="ease-out"}n&&(e=n);for(var r=["-webkit-","-moz-","-o-",""],o=0;o<r.length;o++)i+=r[o]+"transition-timing-function:"+e+";";return i}(h.effectEasing),o=h.contentType,t=i.find(".swap-icons img"),(g=$(t)).parent().css({width:g.width(),height:g.height()}),a="overlay"==o?"all":"margin",r.css("float","none"),"caption"==o){if(0==e.find(".caption-wrap").length){var v=$("<div />").addClass("caption-wrap overlay");i.wrap(v)}n=e.find(".caption-wrap")}else n=e.find(".overlay");function y(t,e,i,n,r){var o,a,s=e||"all",c=h.effectDelay+"ms",u=s+" "+c;t.css({"-webkit-transition":u,"-moz-transition":u,"-o-transition":u,transition:u}),r&&(a=i,(o=t).attr("style",o.attr("style")+a))}n.add(i).css("display","block"),e.addClass(h.effectType);var b=!1;if(0<r.height()){b=!0;var w=V(r);e.css({width:w.width}),"overlay"==o&&y(i,a,s,h.effectDelay,!0)}r.on("load",function(){var t=V($(this));e.css({width:t.width}),"overlay"==o&&i.css({"margin-top":0,"margin-left":Math.abs(t.width-i.outerWidth())/2}),"overlay"==o&&y(i,a,s,h.effectDelay)}),i.css({"background-color":function(t,e,i){if(-1==t.indexOf("#")||-1<t.indexOf("rgb(")||-1<t.indexOf("rgba"))return{rgba:t};var o;o=e?(e/100).toFixed(2):1,t=(t=function(t){var e=/rgb *\( *([0-9]{1,3}) *, *([0-9]{1,3}) *, *([0-9]{1,3}) *\)/.exec(t);if(e||(e=/rgba *\( *([0-9]{1,3}) *, *([0-9]{1,3}) *, *([0-9]{1,3}) *, *(0.+[0-9]) *\)/.exec(t)),!e)return t;if(5!=e.length)return t;var i=Math.round(parseFloat(e[1])),n=Math.round(parseFloat(e[2])),r=Math.round(parseFloat(e[3]));return e[4]&&(o=e[4]),"#"+(i+65536).toString(16).substring(3).toUpperCase()+(n+65536).toString(16).substring(3).toUpperCase()+(r+65536).toString(16).substring(3).toUpperCase()}(t)).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);function r(t){var e=255*t;return Math.floor(e).toString(16)}if(void 0!==i&&n)switch(P){case!0:i.css("background-color","rgba("+[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)].join(",")+","+o+")");break;case!1:i.css({background:"transparent",filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#"+r(o)+n[0].replace("#","")+",endColorstr=#"+r(o)+n[0].replace("#","")+");",zoom:1})}return n?{rgba:"rgba("+[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)].join(",")+","+o+")",fallback:r(o)+n[0].replace("#","")}:null}(h.overlayColor,h.overlayAlpha).rgba}),"overlay"==o&&y(n,"opacity",s,h.effectDelay,!0);var T,_,x={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return!!(x.Android()||x.BlackBerry()||x.iOS()||x.Opera()||x.Windows()||"ontouchstart"in document)}},E=x.any();if(h.link&&(1==E||e.bind("click.hoverfx",function(){"same"===h.openPage?window.location.assign(h.link):window.open(h.link,"_blank")})),"overlay"==o){e.unbind(".caption"),e.addClass("contentswap-overlay");var w=V(r);0<r.height()&&i.css({"margin-top":0,"margin-left":Math.abs(w.width-i.outerWidth())/2})}"caption"==o&&(e.addClass("caption"),"top"==h.direction?(b?n.css({"margin-top":-i.outerHeight()-1+"px",opacity:1}):setTimeout(function(){n.css({"margin-top":-i.outerHeight()-1+"px",opacity:1})},10),setTimeout(function(){n.insertBefore(r)},10)):setTimeout(function(){n.css({opacity:1})},10),"over"==h.captionType?("top"==h.direction?n.css({position:"absolute","z-index":9991}):n.css({"margin-top":"1px"}),y(n,"margin",s,h.effectDelay,!0),T=function(){n.css({"margin-top":-i.outerHeight()+"px"}),"top"==h.direction&&n.css("margin-top",0)},_=function(){n.css({"margin-top":"0px"}),"top"==h.direction&&n.css("margin-top",-i.outerHeight()+"px")}):(y(n,"margin",s,h.effectDelay,!0),y(r,"margin",s,h.effectDelay,!0),T=function(){var t,e;h.captionHeight<=i.outerHeight()&&(t=h.captionHeight,e=i,"auto"==t&&"undefined"==t||e.css("height",parseInt(t)+"px")),"top"==h.direction&&"over"!=h.captionType?n.css({"margin-top":"0px"}):(n.css({"margin-top":-i.outerHeight()}),r.css({"margin-top":-i.outerHeight(),"margin-bottom":i.outerHeight()}))},_=function(){"top"==h.direction?n.css({"margin-top":-i.outerHeight()-1+"px"}):(n.css({"margin-top":"1px"}),r.css({"margin-top":"0px","margin-bottom":"0px"}))}));1==E?(e.addClass("hover"),"caption"==o&&T()):"caption"==o&&e.bind("mouseenter.hoverfx",T).bind("mouseleave.hoverfx",_)})}()})}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.CountUp=e()}
1(this,function(t,e,i){return function(t,e,i,n,r,o){var a=this;if(a.version=function(){return"1.9.1"},a.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e},formattingFn:function(t){var e,i,n,r;if(t=t.toFixed(a.decimals),e=(t+="").split("."),i=e[0],n=1<e.length?a.options.decimal+e[1]:"",r=/(\d+)(\d{3})/,a.options.useGrouping)for(;r.test(i);)i=i.replace(r,"$1"+a.options.separator+"$2");return a.options.numerals.length&&(i=i.replace(/[0-9]/g,function(t){return a.options.numerals[+t]}),n=n.replace(/[0-9]/g,function(t){return a.options.numerals[+t]})),a.options.prefix+i+n+a.options.suffix},prefix:"",suffix:"",numerals:[],onUpdate:!1},o&&"object"==typeof o)for(var s in a.options)o.hasOwnProperty(s)&&null!==o[s]&&(a.options[s]=o[s]);""===a.options.separator&&(a.options.useGrouping=!1);for(var c=0,u=["webkit","moz","ms","o"],h=0;h<u.length&&!window.requestAnimationFrame;++h)window.requestAnimationFrame=window[u[h]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[h]+"CancelAnimationFrame"]||window[u[h]+"CancelRequestAnimationFrame"];function l(t){return"number"==typeof t&&!isNaN(t)}window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-c)),r=window.setTimeout(function(){t(i+n)},n);return c=i+n,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),a.initialize=function(){return!!a.initialized||(a.error="",a.d="string"==typeof t?document.getElementById(t):t,a.d?(a.startVal=Number(e),a.endVal=Number(i),l(a.startVal)&&l(a.endVal)?(a.decimals=Math.max(0,n||0),a.dec=Math.pow(10,a.decimals),a.duration=1e3*Number(r)||4e3,a.countDown=a.startVal>a.endVal,a.frameVal=a.startVal,a.initialized=!0):(a.error="[CountUp] startVal ("+e+") or endVal ("+i+") is not a number",!1)):!(a.error="[CountUp] target is null or undefined"))},a.printValue=function(t){var e=a.options.formattingFn(t);"INPUT"===a.d.tagName?this.d.value=e:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=e:this.d.innerHTML=e},a.count=function(t){a.startTime||(a.startTime=t);var e=(a.timestamp=t)-a.startTime;a.remaining=a.duration-e,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(e,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(e,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(e/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(e/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),a.options.onUpdate&&a.options.onUpdate(a.frameVal),e<a.duration?a.rAF=requestAnimationFrame(a.count):a.callback&&a.callback()},a.start=function(t){a.initialize()&&(a.callback=t,a.rAF=requestAnimationFrame(a.count))},a.pauseResume=function(){a.paused?(a.paused=!1,delete a.startTime,a.duration=a.remaining,a.startVal=a.frameVal,requestAnimationFrame(a.count)):(a.paused=!0,cancelAnimationFrame(a.rAF))},a.reset=function(){a.paused=!1,delete a.startTime,a.initialized=!1,a.initialize()&&(cancelAnimationFrame(a.rAF),a.printValue(a.startVal))},a.update=function(t){a.initialize()&&(l(t=Number(t))?(a.error="",t!==a.frameVal&&(cancelAnimationFrame(a.rAF),a.paused=!1,delete a.startTime,a.startVal=a.frameVal,a.endVal=t,a.countDown=a.startVal>a.endVal,a.rAF=requestAnimationFrame(a.count))):a.error="[CountUp] update() - new endVal is not a number: "+t)},a.initialize()&&a.printValue(a.startVal)}}),function(t){function i(t,e){var i=jQuery(t),n=jQuery(".header-homepage.cp-video-bg"),r=n.width(),o=n.height();(r=Math.max(r,o))<16*o/9?r=16/9*o:o=9*r/16;var a=-.5*(r-n.width());i.css({width:r,height:o,opacity:1,left:a})}window.addEventListener("resize",function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&i(t)}),jQuery(function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&i(t)}),__cpVideoElementFirstPlayed=!1,document.addEventListener("wp-custom-header-video-loaded",function(){var t=document.querySelector("video#wp-custom-header-video");t?i(t):document.querySelector("#wp-custom-header").addEventListener("play",function(){var t=document.querySelector("iframe#wp-custom-header-video"),e=document.querySelector("video#wp-custom-header-video")||t;e&&!__cpVideoElementFirstPlayed&&(__cpVideoElementFirstPlayed=!0,i(e))})})}(jQuery),function(o,s,t,T){"use strict";function c(t,e,i){return setTimeout(r(t,i),e)}function n(t,e,i){return!!Array.isArray(t)&&(a(t,i[e],i),!0)}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==T)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function e(n,t,e){var r="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,e),n.apply(this,arguments)}}function i(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&Z(n,i)}function r(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==tt?t.apply(e&&e[0]||T,e):t}function h(t,e){return t===T?e:t}function l(e,t,i){a(f(t),function(t){e.addEventListener(t,i,!1)})}function p(e,t,i){a(f(t),function(t){e.removeEventListener(t,i,!1)})}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function d(t,e){return-1<t.indexOf(e)}function f(t){return t.trim().split(/\s+/g)}
1function m(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function g(t){return Array.prototype.slice.call(t,0)}function v(t,i,e){for(var n=[],r=[],o=0;o<t.length;){var a=i?t[o][i]:t[o];m(r,a)<0&&n.push(t[o]),r[o]=a,o++}return e&&(n=i?n.sort(function(t,e){return t[i]>e[i]}):n.sort()),n}function y(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<J.length;){if((n=(i=J[o])?i+r:e)in t)return n;o++}return T}function b(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}function w(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){u(e.options.enable,[e])&&i.handler(t)},this.init()}function x(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&dt&&n-r==0,a=e&(ft|mt)&&n-r==0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=E(e)),1<r&&!i.firstMultiple?i.firstMultiple=E(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,s=a?a.center:o.center,c=e.center=k(n);e.timeStamp=nt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=z(s,c),e.distance=I(s,c),u=i,h=e,l=h.center,p=u.offsetDelta||{},d=u.prevDelta||{},f=u.prevInput||{},h.eventType!==dt&&f.eventType!==ft||(d=u.prevDelta={x:f.deltaX||0,y:f.deltaY||0},p=u.offsetDelta={x:l.x,y:l.y}),h.deltaX=d.x+(l.x-p.x),h.deltaY=d.y+(l.y-p.y),e.offsetDirection=C(e.deltaX,e.deltaY);var u,h,l,p,d,f;var m=A(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=m.x,e.overallVelocityY=m.y,e.overallVelocity=it(m.x)>it(m.y)?m.x:m.y,e.scale=a?(y=a.pointers,b=n,I(b[0],b[1],kt)/I(y[0],y[1],kt)):1,e.rotation=a?(g=a.pointers,v=n,z(v[1],v[0],kt)+z(g[1],g[0],kt)):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=mt&&(pt<s||a.velocity===T)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,h=A(s,c,u);n=h.x,r=h.y,i=it(h.x)>it(h.y)?h.x:h.y,o=C(c,u),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}(i,e);var g,v;var y,b;var w=t.element;_(e.srcEvent.target,w)&&(w=e.srcEvent.target),e.target=w}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function E(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:et(t.pointers[i].clientX),clientY:et(t.pointers[i].clientY)},i++;return{timeStamp:nt(),pointers:e,center:k(e),deltaX:t.deltaX,deltaY:t.deltaY}}function k(t){var e=t.length;if(1===e)return{x:et(t[0].clientX),y:et(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:et(i/e),y:et(n/e)}}function A(t,e,i){return{x:e/t||0,y:i/t||0}}function C(t,e){return t===e?gt:it(t)>=it(e)?t<0?vt:yt:e<0?bt:wt}function I(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function z(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function S(){this.evEl=Ct,this.evWin=It,this.pressed=!1,w.apply(this,arguments)}function P(){this.evEl=Pt,this.evWin=Vt,w.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,w.apply(this,arguments)}function $(){this.evTarget=Rt,this.targetIds={},w.apply(this,arguments)}function F(){w.apply(this,arguments);var t=r(this.handler,this);this.touch=new $(this.manager,t),this.mouse=new S(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function R(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);-1<t&&n.splice(t,1)},Dt)}}function D(t,e){this.manager=t,this.set(e)}function M(t){this.options=Z({},this.defaults,t||{}),this.id=at++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=jt,this.simultaneous={},this.requireFail=[]}function W(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}
vendor: 4,670 bytes, line 1
1function Y(t){return t==wt?"down":t==bt?"up":t==vt?"left":t==yt?"right":""}function O(t,e){var i=e.manager;return i?i.get(t):t}function N(){M.apply(this,arguments)}function X(){N.apply(this,arguments),this.pX=null,this.pY=null}function H(){N.apply(this,arguments)}function q(){M.apply(this,arguments),this._timer=null,this._input=null}function j(){N.apply(this,arguments)}function U(){N.apply(this,arguments)}function L(){M.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function B(t,e){return(e=e||{}).recognizers=h(e.recognizers,B.defaults.preset),new G(t,e)}function G(t,e){var i;this.options=Z({},B.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(ct?P:ut?$:st?F:S))(i,x),this.touchAction=new D(this,this.options.touchAction),Q(this,!0),a(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Q(i,n){var r,o=i.element;o.style&&(a(i.options.cssProps,function(t,e){r=y(o.style,e),n?(i.oldCssProps[r]=o.style[r],o.style[r]=t):o.style[r]=i.oldCssProps[r]||""}),n||(i.oldCssProps={}))}var Z,J=["","webkit","Moz","MS","ms","o"],K=s.createElement("div"),tt="function",et=Math.round,it=Math.abs,nt=Date.now;Z="function"!=typeof Object.assign?function(t){if(t===T||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==T&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var rt=e(function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===T)&&(t[n[r]]=e[n[r]]),r++;return t},"extend","Use `assign`."),ot=e(function(t,e){return rt(t,e,!0)},"merge","Use `assign`."),at=1,st="ontouchstart"in o,ct=y(o,"PointerEvent")!==T,ut=st&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ht="touch",lt="mouse",pt=25,dt=1,ft=4,mt=8,gt=1,vt=2,yt=4,bt=8,wt=16,Tt=vt|yt,_t=bt|wt,xt=Tt|_t,Et=["x","y"],kt=["clientX","clientY"];w.prototype={handler:function(){},init:function(){this.evEl&&l(this.element,this.evEl,this.domHandler),this.evTarget&&l(this.target,this.evTarget,this.domHandler),this.evWin&&l(b(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(b(this.element),this.evWin,this.domHandler)}};var At={mousedown:dt,mousemove:2,mouseup:ft},Ct="mousedown",It="mousemove mouseup";i(S,w,{handler:function(t){var e=At[t.type];e&dt&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=ft),this.pressed&&(e&ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var zt={pointerdown:dt,pointermove:2,pointerup:ft,pointercancel:mt,pointerout:mt},St={2:ht,3:"pen",4:lt,5:"kinect"},Pt="pointerdown",Vt="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Pt="MSPointerDown",Vt="MSPointerMove MSPointerUp MSPointerCancel"),i(P,w,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=zt[n],o=St[t.pointerType]||t.pointerType,a=o==ht,s=m(e,t.pointerId,"pointerId");r&dt&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(ft|mt)&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var $t={touchstart:dt,touchmove:2,touchend:ft,touchcancel:mt};i(V,w,{handler:function(t){var e=$t[t.type];if(e===dt&&(this.started=!0),this.started){var i=function(t,e){var i=g(t.touches),n=g(t.changedTouches);return e&(ft|mt)&&(i=v(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(ft|mt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ht,srcEvent:t})}}});var Ft={touchstart:dt,touchmove:2,touchend:ft,touchcancel:mt},Rt="touchstart touchmove touchend touchcancel";i($,w,{handler:function(t){var e=Ft[t.type],i=function(t,e){var i=g(t.touches),n=this.targetIds;if(e&(2|dt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,a=g(t.changedTouches),s=[],c=this.target;if(o=i.filter(function(t){return _(t.target,c)}),e===dt)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;for(r=0;r<a.length;)n[a[r].identifier]&&s.push(a[r]),e&(ft|mt)&&delete n[a[r].identifier],r++;return s.length?[v(o.concat(s),"identifier",!0),s]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ht,srcEvent:t})}});var Dt=2500;
1i(F,w,{handler:function(t,e,i){var n=i.pointerType==ht,r=i.pointerType==lt;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){t&dt?(this.primaryTouch=e.changedPointers[0].identifier,R.call(this,e)):t&(ft|mt)&&R.call(this,e)}).call(this,e,i);else if(r&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),a=Math.abs(i-r.y);if(o<=25&&a<=25)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Mt=y(K.style,"touchAction"),Wt=Mt!==T,Yt="compute",Ot="manipulation",Nt="none",Xt="pan-x",Ht="pan-y",qt=function(){if(!Wt)return!1;var e={},i=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!i||o.CSS.supports("touch-action",t)}),e}();D.prototype={set:function(t){t==Yt&&(t=this.compute()),Wt&&this.manager.element.style&&qt[t]&&(this.manager.element.style[Mt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return a(this.manager.recognizers,function(t){u(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(d(t,Nt))return Nt;var e=d(t,Xt),i=d(t,Ht);return e&&i?Nt:e||i?e?Xt:Ht:d(t,Ot)?Ot:"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,r=d(n,Nt)&&!qt[Nt],o=d(n,Ht)&&!qt[Ht],a=d(n,Xt)&&!qt[Xt];if(r){var s=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(s&&c&&u)return}return a&&o?void 0:r||o&&i&Tt||a&&i&_t?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var jt=1;M.prototype={defaults:{},set:function(t){return Z(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(n(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=O(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return n(t,"dropRecognizeWith",this)||(t=O(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(n(t,"requireFailure",this))return this;var e=this.requireFail;return-1===m(e,t=O(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(n(t,"dropRequireFailure",this))return this;t=O(t,this);var e=m(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){function t(t){i.manager.emit(t,e)}var i=this,n=this.state;n<8&&t(i.options.event+W(n)),t(i.options.event),e.additionalEvent&&t(e.additionalEvent),8<=n&&t(i.options.event+W(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|jt)))return!1;t++}return!0},recognize:function(t){var e=Z({},t);return u(this.options.enable,[this,e])?(56&this.state&&(this.state=jt),this.state=this.process(e),void(30&this.state&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},i(N,M,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(i&mt||!r)?16|e:n||r?i&ft?8|e:2&e?4|e:2:32}}),i(X,N,{defaults:{event:"pan",threshold:10,pointers:1,direction:xt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Tt&&e.push(Ht),t&_t&&e.push(Xt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&Tt?(r=0===o?gt:o<0?vt:yt,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===a?gt:a<0?bt:wt,i=a!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return N.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Y(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),i(H,N,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Nt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),i(q,M,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(ft|mt)&&!r)this.reset();else if(t.eventType&dt)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&ft)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=nt(),this.manager.emit(this.options.event,this._input)))}}),i(j,N,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Nt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),i(U,N,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Tt|_t,pointers:1},getTouchAction:function(){return X.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Tt|_t)?e=t.overallVelocity:i&Tt?e=t.overallVelocityX:i&_t&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&it(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=Y(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),i(L,M,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&dt&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=ft)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||I(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=c(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=c(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),B.VERSION="2.0.8",B.defaults={domEvents:!1,touchAction:Yt,enable:!0,inputTarget:null,inputClass:null,preset:[[j,{enable:!1}],[H,{enable:!1},["rotate"]],[U,{direction:Tt}],[X,{direction:Tt},["swipe"]],[L],[L,{event:"doubletap",taps:2},["tap"]],[q]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};G.prototype={set:function(t){return Z(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof M)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(n(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(n(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=m(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==T&&e!==T){var i=this.handlers;return a(f(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==T){var i=this.handlers;return a(f(t),function(t){e?i[t]&&i[t].splice(m(i[t],e),1):delete i[t]}),this}},emit:function(t,e){var i,n,r;this.options.domEvents&&(i=t,n=e,(r=s.createEvent("Event")).initEvent(i,!0,
1!0),(r.gesture=n).target.dispatchEvent(r));var o=this.handlers[t]&&this.handlers[t].slice();if(o&&o.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](e),a++}},destroy:function(){this.element&&Q(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Z(B,{INPUT_START:dt,INPUT_MOVE:2,INPUT_END:ft,INPUT_CANCEL:mt,STATE_POSSIBLE:jt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:gt,DIRECTION_LEFT:vt,DIRECTION_RIGHT:yt,DIRECTION_UP:bt,DIRECTION_DOWN:wt,DIRECTION_HORIZONTAL:Tt,DIRECTION_VERTICAL:_t,DIRECTION_ALL:xt,Manager:G,Input:w,TouchAction:D,TouchInput:$,MouseInput:S,PointerEventInput:P,TouchMouseInput:F,SingleTouchInput:V,Recognizer:M,AttrRecognizer:N,Tap:L,Pan:X,Swipe:U,Pinch:H,Rotate:j,Press:q,on:l,off:p,each:a,merge:ot,extend:rt,assign:Z,inherit:i,bindFn:r,prefixed:y}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=B,"function"==typeof define&&define.amd?define(function(){return B}):"undefined"!=typeof module&&module.exports?module.exports=B:o.Hammer=B}(window,document),function(v,m,y){"use strict";var u=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;v.fn.backstretch=function(o,a){var s,c=arguments;return 0===v(m).scrollTop()&&m.scrollTo(0,0),this.each(function(t){var e=v(this),i=e.data("backstretch");if(i){if("string"==typeof c[0]&&"function"==typeof i[c[0]]){var n=i[c[0]].apply(i,Array.prototype.slice.call(c,1));return n===i&&(n=y),void(n!==y&&((s=s||[])[t]=n))}a=v.extend(i.options,a),i.hasOwnProperty("destroy")&&i.destroy(!0)}if(!o||o&&0===o.length){var r=e.css("background-image");r&&"none"!==r?o=[{url:e.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:v.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}i=new _(this,o,a||{}),e.data("backstretch",i)}),s?1===s.length?s[0]:s:this},v.backstretch=function(t,e){return v("body").backstretch(t,e).data("backstretch")},v.expr[":"].backstretch=function(t){return v(t).data("backstretch")!==y},v.fn.backstretch.defaults={duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};var h,l,p,i,d,f,s={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},g=(h=function(t){for(var e=1;e<t.length;e++){for(var i=t[e],n=e;t[n-1]&&parseInt(t[n-1].width,10)>parseInt(i.width,10);)t[n]=t[n-1],--n;t[n]=i}return t},l=function(t,e,i){for(var n,r,o=m.devicePixelRatio||1,a=z(),s=(S(),t<e?"portrait":e<t?"landscape":"square"),c=0,u=0;u<i.length&&("string"==typeof(r=i[u])&&(r=i[u]={url:r}),r.pixelRatio&&"auto"!==r.pixelRatio&&parseFloat(r.pixelRatio)!==o||r.deviceOrientation&&r.deviceOrientation!==a||r.windowOrientation&&r.windowOrientation!==a||r.orientation&&r.orientation!==s||(c=u,n=t,"auto"===r.pixelRatio&&(t*=o),!(r.width>=n)));u++);return i[Math.min(u,c)]},p=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i<t.length;i++)t[i].src?t[i].src=p(t[i].src,e):t[i]=p(t[i],e);return t},function(t,e){for(var i=t.width(),n=t.height(),r=[],o=function(t,e){return"width"===e?i:"height"===e?n:t},a=0;a<e.length;a++)if(v.isArray(e[a])){e[a]=h(e[a]);var s=l(i,n,e[a]);r.push(s)}else{"string"==typeof e[a]&&(e[a]={url:e[a]});var c=v.extend({},e[a]);c.url=p(c.url,o),r.push(c)}return r}),b=function(t){return u.test(t.url)||t.isVideo},w=(i=[],d=function(t){for(var e=0;e<i.length;e++)if(i[e].src===t.src)return i[e];return i.push(t),t},f=function(t,e,i){"function"==typeof e&&e.call(t,i)},function t(e,i,n,r,o){if(void 0!==e){v.isArray(e)||(e=[e]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(o=arguments[arguments.length-1]),i="function"!=typeof i&&i?i:0,n="function"==typeof n||!n||n<0?e.length:Math.min(n,e.length),r="function"!=typeof r&&r?r:1,i>
1=e.length&&(n=i=0),r<0&&(r=n),r=Math.min(r,n);var a=e.slice(i+r,n-r);if(e=e.slice(i,r),n=e.length)for(var s,c=0,u=function(){++c===n&&(f(e,o,!a),t(a,0,0,r,o))},h=0;h<e.length;h++)b(e[h])||((s=new Image).src=e[h].url,(s=d(s)).complete?u():v(s).on("load error",u));else f(e,o,!0)}}),c=function(t){for(var e=[],i=0;i<t.length;i++)"string"==typeof t[i]?e.push({url:t[i]}):v.isArray(t[i])?e.push(c(t[i])):e.push(T(t[i]));return e},T=function(t,e){return(t.centeredX||t.centeredY)&&(m.console&&m.console.log&&m.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),t.centeredX&&(t.alignX=.5),t.centeredY&&(t.alignY=.5)),t.speed!==y&&(m.console&&m.console.log&&m.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),t.transitionDuration=t.speed,t.transition="fade"),t.resolutionChangeRatioTreshold!==y&&(m.console.log("jquery.backstretch: `treshold` is a typo!"),t.resolutionChangeRatioThreshold=t.resolutionChangeRatioTreshold),t.fadeFirst!==y&&(t.animateFirst=t.fadeFirst),t.fade!==y&&(t.transitionDuration=t.fade,t.transition="fade"),n(t)},n=function(t,e){return"left"===t.alignX?t.alignX=0:"center"===t.alignX?t.alignX=.5:"right"===t.alignX?t.alignX=1:(t.alignX!==y||e)&&(t.alignX=parseFloat(t.alignX),isNaN(t.alignX)&&(t.alignX=.5)),"top"===t.alignY?t.alignY=0:"center"===t.alignY?t.alignY=.5:"bottom"===t.alignY?t.alignY=1:(t.alignX!==y||e)&&(t.alignY=parseFloat(t.alignY),isNaN(t.alignY)&&(t.alignY=.5)),t},_=function(t,e,i){this.options=v.extend({},v.fn.backstretch.defaults,i||{}),this.firstShow=!0,T(this.options,!0),this.images=c(v.isArray(e)?e:[e]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=t===document.body;var n=v(m);this.$container=v(t),this.$root=this.isBody?P?n:v(document):this.$container,this.originalImages=this.images,this.images=g(this.options.alwaysTestWindowResolution?n:this.$root,this.originalImages),w(this.images,this.options.start||0,this.options.preload||1);var r=this.$container.children(".backstretch").first();if(this.$wrap=r.length?r:v('<div class="backstretch"></div>').css(this.options.bypassCss?{}:s.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var o=this.$container.css("position"),a=this.$container.css("zIndex");this.$container.css({position:"static"===o?"relative":o,zIndex:"auto"===a?0:a}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&P?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),n.on("resize.backstretch",v.proxy(this.resize,this)).on("orientationchange.backstretch",v.proxy(function(){this.isBody&&0===m.pageYOffset&&(m.scrollTo(0,1),this.resize())},this))};_.prototype={resize:function(){try{var t=this.options.alwaysTestWindowResolution?v(m):this.$root,e=t.width(),i=t.height(),n=e/(this._lastResizeContainerWidth||0),r=i/(this._lastResizeContainerHeight||0),o=this.options.resolutionChangeRatioThreshold||0;if((e!==this._lastResizeContainerWidth||i!==this._lastResizeContainerHeight)&&(Math.abs(n-1)>=o||isNaN(n)||Math.abs(r-1)>=o||isNaN(r))&&(this._lastResizeContainerWidth=e,this._lastResizeContainerHeight=i,this.images=g(t,this.originalImages),this.options.preload&&w(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var a=this;clearTimeout(a._selectAnotherResolutionTimeout),a._selectAnotherResolutionTimeout=setTimeout(function(){a.show(0)},this.options.resolutionRefreshRate)}var s={left:0,top:0,right:"auto",bottom:"auto"},c=this.isBody?this.$root.width():this.$root.innerWidth(),u=this.isBody?m.innerHeight?m.innerHe
1ight:this.$root.height():this.$root.innerHeight(),h=c,l=h/this.$itemWrapper.data("ratio"),p=v.Event("backstretch.resize",{relatedTarget:this.$container[0]}),d=this._currentImage.alignX===y?this.options.alignX:this._currentImage.alignX,f=this._currentImage.alignY===y?this.options.alignY:this._currentImage.alignY;u<=l?s.top=-(l-u)*f:(((h=(l=u)*this.$itemWrapper.data("ratio"))-c)/2,s.left=-(h-c)*d),this.options.bypassCss||this.$wrap.css({width:c,height:u}).find(">.backstretch-item").not(".deleteable").each(function(){v(this).find("img,video,iframe").css({width:h,height:l}).css(s)}),this.$container.trigger(p,this)}catch(t){}return this},show:function(h,l){if(!(Math.abs(h)>this.images.length-1)){var p=this,d=p.$wrap.find(">.backstretch-item").addClass("deleteable"),f=p.videoWrapper,m={relatedTarget:p.$container[0]};p.$container.trigger(v.Event("backstretch.before",m),[p,h]),this.index=h;var t=p.images[h];clearTimeout(p._cycleTimeout),delete p.videoWrapper;var g=b(t);return g?(p.videoWrapper=new x(t),p.$item=p.videoWrapper.$video.css("pointer-events","none")):p.$item=v("<img />"),p.$itemWrapper=v('<div class="backstretch-item">').append(p.$item),this.options.bypassCss?p.$itemWrapper.css({display:"none"}):(p.$itemWrapper.css(s.itemWrapper),p.$item.css(s.item)),p.$item.bind(g?"canplay":"load",function(t){var e=v(this).parent(),i=e.data("options");l&&(i=v.extend({},i,l));var n=this.naturalWidth||this.videoWidth||this.width,r=this.naturalHeight||this.videoHeight||this.height;e.data("ratio",n/r);var o=function(t){return i[t]!==y?i[t]:p.options[t]},a=o("transition"),s=o("transitionEasing"),c=o("transitionDuration"),u=function(){f&&(f.stop(),f.destroy()),d.remove(),!p.paused&&1<p.images.length&&p.cycle(),p.options.bypassCss||p.isBody||p.$container.css("background-image","none"),v(["after","show"]).each(function(){p.$container.trigger(v.Event("backstretch."+this,m),[p,h])}),g&&p.videoWrapper.play()};p.firstShow&&!p.options.animateFirst||!c||!a?(e.show(),u()):function(t){var e=t.transition||"fade";"string"==typeof e&&-1<e.indexOf("|")&&(e=e.split("|")),e instanceof Array&&(e=e[Math.round(Math.random()*(e.length-1))]);var i=t.new,n=t.old?t.old:v([]);switch(e.toString().toLowerCase()){default:case"fade":i.fadeIn({duration:t.duration,complete:t.complete,easing:t.easing||y});break;case"fadeinout":case"fade_in_out":var r=function(){i.fadeIn({duration:t.duration/2,complete:t.complete,easing:t.easing||y})};n.length?n.fadeOut({duration:t.duration/2,complete:r,easing:t.easing||y}):r();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var o=e.match(/^(cover|push)_?(.*)$/),a="left"===o[2]?"right":"right"===o[2]?"left":"down"===o[2]?"top":"up"===o[2]?"bottom":"right",s={display:""},c={};if(s[a]="-100%",c[a]=0,i.css(s).animate(c,{duration:t.duration,complete:function(){i.css(a,""),t.complete.apply(this,arguments)},easing:t.easing||y}),"push"===o[1]&&n.length){var u={};u[a]="100%",n.animate(u,{duration:t.duration,complete:function(){n.css("display","none")},easing:t.easing||y})}}}({new:e,old:d,transition:a,duration:c,easing:s,complete:u}),p.firstShow=!1,p.resize()}),p.$itemWrapper.appendTo(p.$wrap),p.$item.attr("alt",t.alt||""),p.$itemWrapper.data("options",t),g||p.$item.attr("src",t.url),p._currentImage=t,p}},current:function(){return this.index},next:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,t)},prev:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,t)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(1<this.images.length){clearTimeout(this._cycleTimeout);var t=this._currentImage&&this._currentImage.duration||this.options.duration,e=b(this._currentImage),i=function(){this.$item.off(".cycle"),this.paused||this.next()};if(e){if(!this._currentImage.loop){var n=0;this.$item.on("playing.cycle",function(){var t=v(this).data("player");clearTimeout(n),n=setTimeout(function(){t.pause(),t.$video.trigger("ended")},1e3*(t.getDuration()-t.getCurrentTime()))}).on("ended.cycle",function(){clearTimeout(n)})}this.$item.on("error.cycle initerror.cycle",v.proxy(i,this))}e&&!this._currentImage.duration?this.$item.on("ended.cycle",v.proxy(i,this)):this._cycleTimeout=setTimeout(v.proxy(i,this),t)}return this},destroy:function(t){v(m).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),t||this.$wrap.remove(),this.$container.removeData("backstretch")}};var x=function(){this.init.apply(this,arguments)};x.prototype.init=function(t){var e,i=this,n=function(){i.$video=e,i.video=e[0]},r="video";if(t.url instanceof Array||!u.test(t.url)||(r="youtube"),"youtube"===(i.type=r)){x.loadYoutubeAPI(),i.ytId=t.url.match(u)[2];var o="https://www.youtube.com/embed/"+i.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(m.location.origin);i.__ytStartMuted=!!t.mute||t.mute===y,e=v("<iframe />").attr({src_to_load:o}).css({border:0,margin:0,padding:0}).data("player",i),t.loop&&e.on("ended.loop",function(){i.__manuallyStopped||i.play()}),i.ytReady=!1,n(),m.YT?(i._initYoutube(),e.trigger("initsuccess")):v(m).one("youtube_api_load",function(){i._initYoutube(),e.trigger("initsuccess")})}
1else{e=v("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!t.loop).prop("muted",!!t.mute||t.mute===y).prop("preload","auto").prop("poster",t.poster||"");for(var a=t.url instanceof Array?t.url:[t.url],s=0;s<a.length;s++){var c=a[s];"string"==typeof c&&(c={src:c}),v("<source>").attr("src",c.src).attr("type",c.type||null).appendTo(e)}e[0].canPlayType&&a.length?e.trigger("initsuccess"):e.trigger("initerror"),n()}},x.prototype._initYoutube=function(){var e=this,i=m.YT;e.$video.attr("src",e.$video.attr("src_to_load")).removeAttr("src_to_load");var t=!!e.$video[0].parentNode;if(!t){var n=v("<div>").css("display","none !important").appendTo(document.body);e.$video.appendTo(n)}var r=new i.Player(e.video,{events:{onReady:function(){e.__ytStartMuted&&r.mute(),t||(e.$video[0].parentNode===n[0]&&e.$video.detach(),n.remove()),e.ytReady=!0,e._updateYoutubeSize(),e.$video.trigger("canplay")},onStateChange:function(t){switch(t.data){case i.PlayerState.PLAYING:e.$video.trigger("playing");break;case i.PlayerState.ENDED:e.$video.trigger("ended");break;case i.PlayerState.PAUSED:e.$video.trigger("pause");break;case i.PlayerState.BUFFERING:e.$video.trigger("waiting");break;case i.PlayerState.CUED:e.$video.trigger("canplay")}},onPlaybackQualityChange:function(){e._updateYoutubeSize(),e.$video.trigger("resize")},onError:function(t){e.hasError=!0,e.$video.trigger({type:"error",error:t})}}});return e.ytPlayer=r,e},x.prototype._updateYoutubeSize=function(){var t=this;switch(t.ytPlayer.getPlaybackQuality()||"medium"){case"small":t.video.videoWidth=426,t.video.videoHeight=240;break;case"medium":t.video.videoWidth=640,t.video.videoHeight=360;break;default:case"large":t.video.videoWidth=854,t.video.videoHeight=480;break;case"hd720":t.video.videoWidth=1280,t.video.videoHeight=720;break;case"hd1080":t.video.videoWidth=1920,t.video.videoHeight=1080;break;case"highres":t.video.videoWidth=2560,t.video.videoHeight=1440}return t},x.prototype.play=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&(t.$video.trigger("play"),t.ytPlayer.playVideo()):t.video.play(),t},x.prototype.pause=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&t.ytPlayer.pauseVideo():t.video.pause(),t},x.prototype.stop=function(){var t=this;return t.__manuallyStopped=!0,"youtube"===t.type?t.ytReady&&(t.ytPlayer.pauseVideo(),t.ytPlayer.seekTo(0)):(t.video.pause(),t.video.currentTime=0),t},x.prototype.destroy=function(){return this.ytPlayer&&this.ytPlayer.destroy(),this.$video.remove(),this},x.prototype.getCurrentTime=function(t){return"youtube"!==this.type?this.video.currentTime:this.ytReady?this.ytPlayer.getCurrentTime():0},x.prototype.setCurrentTime=function(t){var e=this;return"youtube"===e.type?e.ytReady&&e.ytPlayer.seekTo(t,!0):e.video.currentTime=t,e},x.prototype.getDuration=function(){return"youtube"!==this.type?this.video.duration:this.ytReady?this.ytPlayer.getDuration():0},x.loadYoutubeAPI=function(){if(!m.YT){v("script[src*=www\\.youtube\\.com\\/iframe_api]").length||v('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body");var t=setInterval(function(){m.YT&&m.YT.loaded&&(v(m).trigger("youtube_api_load"),clearTimeout(t))},50)}};var t,e,r,o,a,E,k,A,C,I,z=function(){if("matchMedia"in m){if(m.matchMedia("(orientation: portrait)").matches)return"portrait";if(m.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"},S=function(){return m.innerHeight>m.innerWidth?"portrait":m.innerWidth>m.innerHeight?"landscape":"square"},P=(t=navigator.userAgent,e=navigator.platform,r=t.match(/AppleWebKit\/([0-9]+)/),o=!!r&&r[1],a=t.match(/Fennec\/([0-9]+)/),E=!!a&&a[1],k=t.match(/Opera Mobi\/([0-9]+)/),A=!!k&&k[1],C=t.match(/MSIE ([0-9]+)/),I=!!C&&C[1],!((-1<e.indexOf("iPhone")||-1<e.indexOf("iPad")||-1<e.indexOf("iPod"))&&o&&o<534||m.operamini&&"[object OperaMini]"==={}.toString.call(m.operamini)||k&&A<7458||-1<t.indexOf("Android")&&o&&o<533||E&&E<6||"palmGetResource"in m&&o&&o<534||-1<t.indexOf("MeeGo")&&-1<t.indexOf("NokiaBrowser/8.5.0")||I&&I<=6))}
1(jQuery,window),function(t,e,i){var s=[],n={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){s.push({name:t,fn:e,options:i})},addAsyncTest:function(t){s.push({name:null,fn:t})}},c=function(){};c.prototype=n,c=new c;var u=[];var r=e.documentElement,o="svg"===r.nodeName.toLowerCase();!function(){var t,e,i,n,r,o;for(var a in s)if(s.hasOwnProperty(a)){if(t=[],(e=s[a]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(n="function"==typeof e.fn?e.fn():e.fn,r=0;r<t.length;r++)1===(o=t[r].split(".")).length?c[o[0]]=n:(!c[o[0]]||c[o[0]]instanceof Boolean||(c[o[0]]=new Boolean(c[o[0]])),c[o[0]][o[1]]=n),u.push((n?"":"no-")+o.join("-"))}}(),function(t){var e=r.className,i=c._config.classPrefix||"";if(o&&(e=e.baseVal),c._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(n,"$1"+i+"js$2")}c._config.enableClasses&&(e+=" "+i+t.join(" "+i),o?r.className.baseVal=e:r.className=e)}(u);for(var a=0;a<c._q.length;a++)c._q[a]();t.Modernizr=c}(window,document),function(t){var i={"contentswap-effect":{effectType:"",contentType:"overlay",overflowEnabled:"false",effectDelay:"800",effectEasing:"Ease",overlayColor:"490A3D",innerColor:"ffffff",openPage:"same",name:"",captionType:"490A3D",operationType:"edit",hasls:"true",additionalWrapperClasses:"",direction:"bottom",useSameTemplate:"true"}};jQuery(document).ready(function(){var e=setTimeout(function(){window.initHoverFX&&initHoverFX(i)},10);jQuery(window).resize(function(t){clearTimeout(e),e=setTimeout(function(){window.initHoverFX&&initHoverFX(i,null,t)},150)})})}(jQuery);
2 
3;
4/*! This file is auto-generated */
5/*!
6 * imagesLoaded PACKAGED v5.0.0
7 * JavaScript is all like "You images are done yet or what?"
8 * MIT License
9 */
10!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
11/*!
12 * imagesLoaded v5.0.0
13 * JavaScript is all like "You images are done yet or what?"
14 * MIT License
15 */
16function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;
vendor: 4,185 bytes, lines 16-17
16function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));;
17/*! This file is auto-generated */
vendor: 24,103 bytes, lines 18-26
18/*!
19 * Masonry PACKAGED v4.2.2
20 * Cascading grid layout library
21 * https://masonry.desandro.com
22 * MIT License
23 * by David DeSandro
24 */
25
26!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
26;
27var fixto=function(t,e,i){var s,o=(s={getAll:function(t){return i.defaultView.getComputedStyle(t)},get:function(t,e){return this.getAll(t)[e]},toFloat:function(t){return parseFloat(t,10)||0},getFloat:function(t,e){return this.toFloat(this.get(t,e))},_getAllCurrentStyle:function(t){return t.currentStyle}},i.documentElement.currentStyle&&(s.getAll=s._getAllCurrentStyle),s),n=function(){function e(t){this.element=t,this.replacer=i.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),t.parentNode.insertBefore(this.replacer,t)}return e.prototype={replace:function(){var t=this.replacer.style,e=o.getAll(this.element);t.width=this._width(),t.height=this._height(),t.marginTop=e.marginTop,t.marginBottom=e.marginBottom,t.marginLeft=e.marginLeft,t.marginRight=e.marginRight,t.cssFloat=e.cssFloat,t.styleFloat=e.styleFloat,t.position=e.position,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.display=e.display},hide:function(){this.replacer.style.display="none"},_width:function(){return this.element.getBoundingClientRect().width+"px"},_widthOffset:function(){return this.element.offsetWidth+"px"},_height:function(){return jQuery(this.element).outerHeight()+"px"},_heightOffset:function(){return this.element.offsetHeight+"px"},destroy:function(){t(this.replacer).remove();for(var e in this)this.hasOwnProperty(e)&&(this[e]=null)}},i.documentElement.getBoundingClientRect().width||(e.prototype._width=e.prototype._widthOffset,e.prototype._height=e.prototype._heightOffset),{MimicNode:e,computedStyle:o}}();function a(){this._vendor=null}a.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:function(t,e){return t.jsPrefix+e[0].toUpperCase()+e.substr(1)},_prefixValue:function(t,e){return t.cssPrefix+e},_valueSupported:function(t,e,i){try{return i.style[t]=e,i.style[t]===e}catch(t){return!1}},propertySupported:function(t){return void 0!==i.documentElement.style[t]},getJsProperty:function(t){if(this.propertySupported(t))return t;if(this._vendor)return this._prefixJsProperty(this._vendor,t);var e;for(var i in this._vendors)if(e=this._prefixJsProperty(this._vendors[i],t),this.propertySupported(e))return this._vendor=this._vendors[i],e;return null},getCssValue:function(t,e){var s,o=i.createElement("div"),n=this.getJsProperty(t);if(this._valueSupported(n,e,o))return e;if(this._vendor&&(s=this._prefixValue(this._vendor,e),this._valueSupported(n,s,o)))return s;for(var a in this._vendors)if(s=this._prefixValue(this._vendors[a],e),this._valueSupported(n,s,o))return this._vendor=this._vendors[a],s;return null}};var r,h=new a,l=h.getJsProperty("transform");var c,d=h.getCssValue("position","sticky"),u=h.getCssValue("position","fixed");function p(e,i,s){this.child=e,this._$child=t(e),this.parent=i,this.options={className:"fixto-fixed",top:0},this._setOptions(s)}function f(t,e,i){p.call(this,t,e,i),this._replacer=new n.MimicNode(t),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHe
27ight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function m(t,e,i){p.call(this,t,e,i),this.start()}"Microsoft Internet Explorer"===navigator.appName&&(c=parseFloat(navigator.appVersion.split("MSIE")[1])),p.prototype={_mindtop:function(){var t=0;if(this._$mind)for(var e,i,s=0,n=this._$mind.length;s<n;s++)if((i=(e=this._$mind[s]).getBoundingClientRect()).height)t+=i.height;else{var a=o.getAll(e);t+=e.offsetHeight+o.toFloat(a.marginTop)+o.toFloat(a.marginBottom)}return t},stop:function(){this._stop(),this._running=!1},start:function(){this._running||(this._start(),this._running=!0)},destroy:function(){this.stop(),this._destroy(),this._$child.removeData("fixto-instance");for(var t in this)this.hasOwnProperty(t)&&(this[t]=null)},_setOptions:function(e){t.extend(this.options,e),this.options.mind&&(this._$mind=t(this.options.mind)),this.options.zIndex&&(this.child.style.zIndex=this.options.zIndex)},setOptions:function(t){this._setOptions(t),this.refresh()},_stop:function(){},_start:function(){},_destroy:function(){},refresh:function(){}},f.prototype=new p,t.extend(f.prototype,{_bind:function(t,e){return function(){return t.call(e)}},_toresize:8===c?i.documentElement:e,_onscroll:function(){if(this._scrollTop=i.documentElement.scrollTop||i.body.scrollTop,this._parentBottom=this.parent.offsetHeight+this._fullOffset("offsetTop",this.parent),this.fixed){if(this.options.toBottom){if(this._scrollTop>=this._fullOffset("offsetTop",this._ghostNode))return void this._unfix()}else if(this._scrollTop>this._parentBottom||this._scrollTop<=this._fullOffset("offsetTop",this._ghostNode)-this.options.top-this._mindtop())return void this._unfix();this._adjust()}else{var t=o.getAll(this.child);(this._scrollTop<this._parentBottom&&this._scrollTop>this._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop()&&this._viewportHeight>this.child.offsetHeight+o.toFloat(t.marginTop)+o.toFloat(t.marginBottom)||this.options.toBottom)&&(this._fix(),this._adjust())}},_adjust:function(){var e=0,i=this._mindtop(),s=0,n=o.getAll(this.child),a=null;if(r&&(a=this._getContext())&&(e=Math.abs(a.getBoundingClientRect().top)),(s=this._parentBottom-this._scrollTop-(this.child.offsetHeight+o.toFloat(n.marginBottom)+i+this.options.top))>0&&(s=0),this.options.toBottom);else{var h=this.options.top;0===h&&(h=t("body").offset().top),this.child.style.top=Math.round(s+i+e+h-o.toFloat(n.marginTop))+"px"}},_fullOffset:function(t,e,i){for(var s=e[t],o=e.offsetParent;null!==o&&o!==i;)s+=o[t],o=o.offsetParent;return s},_getContext:function(){for(var t,e=this.child,s=null;!s;){if((t=e.parentNode)===i.documentElement)return null;if("none"!==o.getAll(t)[l]){s=t;break}e=t}return s},_fix:function(){var e=this.child,s=e.style,n=o.getAll(e),a=e.getBoundingClientRect().left,h=n.width;if(this.options._original,this._saveStyles(),i.documentElement.currentStyle&&(h=e.offsetWidth,"border-box"!==n.boxSizing&&(h-=o.toFloat(n.paddingLeft)+o.toFloat(n.paddingRight)+o.toFloat(n.borderLeftWidth)+o.toFloat(n.borderRightWidth)),h+="px"),r){this._getContext();a=this._$child.offset().left}if(this._replacer.replace(),s.left=a-o.toFloat(n.marginLeft)+"px",s.width=h,s.position="fixed",this.options.toBottom)s.top="",s.bottom=this.options.top+o.toFloat(n.marginBottom)+"px";else{s.bottom="";var l=this.options.top;0===l&&(l=t("body").offset().top),s.top=this._mindtop()+l-o.toFloat(n.marginTop)+"px"}this._$child.addClass(this.options.className),this.fixed=!0,this._$child.trigger("fixto-added")},_unfix:function(){var t=this.child.style;this._replacer.hide(),t.position=this._childOriginalPosition,t.top=this._childOriginalTop,t.bottom=this._childOriginalBottom,t.width=this._childOriginalWidth,t.left=this._childOriginalLeft,this.options.always||(this._$child.removeClass(this.options.className),this._$child.trigger("fixto-removed")),this.fixed=!1},_saveStyles:function(){var t=this.child.style;this._childOriginalPosition=t.position,this.options.toBottom?(this._childOriginalTop="",this._childOriginalBottom=t.bottom):(this._childOriginalTop=t.top,this._childOriginalBottom=""),this._childOriginalWidth=t.width,this._childOriginalLeft=t.left},_onresize:function(){this.refresh()}
27,_saveViewportHeight:function(){this._viewportHeight=e.innerHeight||i.documentElement.clientHeight},_stop:function(){this._unfix(),t(e).unbind("scroll.fixto mousewheel",this._proxied_onscroll),t(this._toresize).unbind("resize.fixto",this._proxied_onresize)},_start:function(){this._onscroll(),t(e).bind("scroll.fixto mousewheel",this._proxied_onscroll),t(this._toresize).bind("resize.fixto",this._proxied_onresize)},_destroy:function(){this._replacer.destroy()},refresh:function(){this._saveViewportHeight(),this._unfix(),this._onscroll()}}),m.prototype=new p,t.extend(m.prototype,{_start:function(){var t=o.getAll(this.child);this._childOriginalPosition=t.position,this._childOriginalTop=t.top,this.child.style.position=d,this.refresh()},_stop:function(){this.child.style.position=this._childOriginalPosition,this.child.style.top=this._childOriginalTop},refresh:function(){this.child.style.top=this._mindtop()+this.options.top+"px"}});var g=function(t,e,s){return d&&!s||d&&s&&!1!==s.useNativeSticky?new m(t,e,s):u?(void 0===r&&(o=!1,n=i.createElement("div"),a=i.createElement("div"),n.appendChild(a),n.style[l]="translate(0)",n.style.marginTop="10px",n.style.visibility="hidden",a.style.position="fixed",a.style.top=0,i.body.appendChild(n),a.getBoundingClientRect().top>0&&(o=!0),i.body.removeChild(n),r=o),new f(t,e,s)):"Neither fixed nor sticky positioning supported";var o,n,a};return c<8&&(g=function(){return"not supported"}),t.fn.fixTo=function(e,i){var s=t(e),o=0;return this.each(function(){var n=t(this).data("fixto-instance");n?n[e].call(n,i):t(this).data("fixto-instance",g(this,s[o],i));o++})},{FixToContainer:f,fixTo:g,computedStyle:o,mimicNode:n}}(window.jQuery,window,document);!function(t,e,i){"use strict";var s=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;t.fn.backstretch=function(s,o){var n,a=arguments;return 0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(e){var r=t(this),h=r.data("backstretch");if(h){if("string"==typeof a[0]&&"function"==typeof h[a[0]]){var l=h[a[0]].apply(h,Array.prototype.slice.call(a,1));return l===h&&(l=i),void(l!==i&&((n=n||[])[e]=l))}o=t.extend(h.options,o),h.hasOwnProperty("destroy")&&h.destroy(!0)}if(!s||s&&0===s.length){var c=r.css("background-image");c&&"none"!==c?s=[{url:r.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:t.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}h=new v(this,s,o||{}),r.data("backstretch",h)}),n?1===n.length?n[0]:n:this},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return t(e).data("backstretch")!==i},t.fn.backstretch.defaults={duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};var o,n,a,r,h,l,c={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},d=(o=function(t){for(var e=1;e<t.length;e++){for(var i=t[e],s=e;t[s-1]&&parseInt(t[s-1].width,10)>parseInt(i.width,10);)t[s]=t[s-1],--s;t[s]=i}return t},n=function(t,i,s){for(var o,n,a=e.devicePixelRatio||1,r=S(),h=(A(),i>t?"portrait":t>i?"landscape":"square"),l=0,c=0;c<s.length&&("string"==typeof(n=s[c])&&(n=s[c]={url:n}),n.pixelRatio&&"auto"!==n.pixelRatio&&parseFloat(n.pixelRatio)!==a||n.deviceOrientation&&n.deviceOrientation!==r||n.windowOrientation&&n.windowOrientation!==r||n.orientation&&n.orientation!==h||(l=c,o=t,"auto"===n.pixelRatio&&(t*=a),!(n.width>=o)));c++);return s[Math.min(c,l)]},a=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i<t.length;i++)t[i].src?t[i].src=a(t[i].src,e):t[i]=a(t[i],e);return t},function(e,i){for(var s=e.width(),r=e.height(),h=[],l=function(t,e){return"width"===e?s:"height"===e?r:t},c=0;c<i.length;c++)if(t.isArray(i[c])){i[c]=o(i[c]);var d=n(s,r,i[c]);h.push(d)}else{"string"==typeof i[c]&&(i[c]={url:i[c]});var u=t.extend({},i[c]);u.url=a(u.url,l),h.push(u)}return h}),u=function(t){return s.test(t.url)||t.isVideo},p=(r=[],h=function(t){for(var e=0;e<r.length;e++)if(r[e].src===t.src)return r[e];return r.push(t),t}
27,l=function(t,e,i){"function"==typeof e&&e.call(t,i)},function e(i,s,o,n,a){if(void 0!==i){t.isArray(i)||(i=[i]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(a=arguments[arguments.length-1]),s="function"!=typeof s&&s?s:0,o="function"==typeof o||!o||o<0?i.length:Math.min(o,i.length),n="function"!=typeof n&&n?n:1,s>=i.length&&(s=0,o=0),n<0&&(n=o),n=Math.min(n,o);var r=i.slice(s+n,o-n);if(i=i.slice(s,n),o=i.length)for(var c,d=0,p=function(){++d===o&&(l(i,a,!r),e(r,0,0,n,a))},f=0;f<i.length;f++)u(i[f])||((c=new Image).src=i[f].url,(c=h(c)).complete?p():t(c).on("load error",p));else l(i,a,!0)}}),f=function(e){for(var i=[],s=0;s<e.length;s++)"string"==typeof e[s]?i.push({url:e[s]}):t.isArray(e[s])?i.push(f(e[s])):i.push(m(e[s]));return i},m=function(t,s){return(t.centeredX||t.centeredY)&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),t.centeredX&&(t.alignX=.5),t.centeredY&&(t.alignY=.5)),t.speed!==i&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),t.transitionDuration=t.speed,t.transition="fade"),t.resolutionChangeRatioTreshold!==i&&(e.console.log("jquery.backstretch: `treshold` is a typo!"),t.resolutionChangeRatioThreshold=t.resolutionChangeRatioTreshold),t.fadeFirst!==i&&(t.animateFirst=t.fadeFirst),t.fade!==i&&(t.transitionDuration=t.fade,t.transition="fade"),g(t)},g=function(t,e){return"left"===t.alignX?t.alignX=0:"center"===t.alignX?t.alignX=.5:"right"===t.alignX?t.alignX=1:(t.alignX!==i||e)&&(t.alignX=parseFloat(t.alignX),isNaN(t.alignX)&&(t.alignX=.5)),"top"===t.alignY?t.alignY=0:"center"===t.alignY?t.alignY=.5:"bottom"===t.alignY?t.alignY=1:(t.alignX!==i||e)&&(t.alignY=parseFloat(t.alignY),isNaN(t.alignY)&&(t.alignY=.5)),t},v=function(i,s,o){this.options=t.extend({},t.fn.backstretch.defaults,o||{}),this.firstShow=!0,m(this.options,!0),this.images=f(t.isArray(s)?s:[s]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=i===document.body;var n=t(e);this.$container=t(i),this.$root=this.isBody?P?n:t(document):this.$container,this.originalImages=this.images,this.images=d(this.options.alwaysTestWindowResolution?n:this.$root,this.originalImages),p(this.images,this.options.start||0,this.options.preload||1);var a=this.$container.children(".backstretch").first();if(this.$wrap=a.length?a:t('<div class="backstretch"></div>').css(this.options.bypassCss?{}:c.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var r=this.$container.css("position"),h=this.$container.css("zIndex");this.$container.css({position:"static"===r?"relative":r,zIndex:"auto"===h?0:h}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&P?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),n.on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))};v.prototype={resize:function(){try{var s=this.options.alwaysTestWindowResolution?t(e):this.$root,o=s.width(),n=s.height(),a=o/(this._lastResizeContainerWidth||0),r=n/(this._lastResizeContainerHeight||0),h=this.options.resolutionChangeRatioThreshold||0;if((o!==this._lastResizeContainerWidth||n!==this._lastResizeContainerHeight)&&(Math.abs(a-1)>=h||isNaN(a)||Math.abs(r-1)>=h||isNaN(r))&&(this._lastResizeContainerWidth=o,this._lastResizeContainerHeight=n,this.images=d(s,this.originalImages),this.options.preload&&p(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var l=this;clearTimeout(l._selectAnotherResolutionTimeout),l._selectAnotherResolutionTimeout=setTimeout(function(){l.show(0)},this.options.resolutionRefreshRate)}var c={left:0,top:0,right:"auto",bottom:"auto"},u=this.isBody?this.$root.width():this.$root.innerWidth(),f=this.isBody?e.innerHeight?e.innerHe
vendor: 9,258 bytes, line 27
27ight:this.$root.height():this.$root.innerHeight(),m=u,g=m/this.$itemWrapper.data("ratio"),v=t.Event("backstretch.resize",{relatedTarget:this.$container[0]}),y=this._currentImage.alignX===i?this.options.alignX:this._currentImage.alignX,w=this._currentImage.alignY===i?this.options.alignY:this._currentImage.alignY;g>=f?c.top=-(g-f)*w:(((m=(g=f)*this.$itemWrapper.data("ratio"))-u)/2,c.left=-(m-u)*y),this.options.bypassCss||this.$wrap.css({width:u,height:f}).find(">.backstretch-item").not(".deleteable").each(function(){t(this).find("img,video,iframe").css({width:m,height:g}).css(c)}),this.$container.trigger(v,this)}catch(t){}return this},show:function(e,s){if(!(Math.abs(e)>this.images.length-1)){var o=this,n=o.$wrap.find(">.backstretch-item").addClass("deleteable"),a=o.videoWrapper,r={relatedTarget:o.$container[0]};o.$container.trigger(t.Event("backstretch.before",r),[o,e]),this.index=e;var h=o.images[e];clearTimeout(o._cycleTimeout),delete o.videoWrapper;var l=u(h);return l?(o.videoWrapper=new y(h),o.$item=o.videoWrapper.$video.css("pointer-events","none")):o.$item=t("<img />"),o.$itemWrapper=t('<div class="backstretch-item">').append(o.$item),this.options.bypassCss?o.$itemWrapper.css({display:"none"}):(o.$itemWrapper.css(c.itemWrapper),o.$item.css(c.item)),o.$item.bind(l?"canplay":"load",function(h){var c=t(this).parent(),d=c.data("options");s&&(d=t.extend({},d,s));var u=this.naturalWidth||this.videoWidth||this.width,p=this.naturalHeight||this.videoHeight||this.height;c.data("ratio",u/p);var f=function(t){return d[t]!==i?d[t]:o.options[t]},m=f("transition"),g=f("transitionEasing"),v=f("transitionDuration"),y=function(){a&&(a.stop(),a.destroy()),n.remove(),!o.paused&&o.images.length>1&&o.cycle(),o.options.bypassCss||o.isBody||o.$container.css("background-image","none"),t(["after","show"]).each(function(){o.$container.trigger(t.Event("backstretch."+this,r),[o,e])}),l&&o.videoWrapper.play()};o.firstShow&&!o.options.animateFirst||!v||!m?(c.show(),y()):function(e){var s=e.transition||"fade";"string"==typeof s&&s.indexOf("|")>-1&&(s=s.split("|")),s instanceof Array&&(s=s[Math.round(Math.random()*(s.length-1))]);var o=e.new,n=e.old?e.old:t([]);switch(s.toString().toLowerCase()){default:case"fade":o.fadeIn({duration:e.duration,complete:e.complete,easing:e.easing||i});break;case"fadeinout":case"fade_in_out":var a=function(){o.fadeIn({duration:e.duration/2,complete:e.complete,easing:e.easing||i})};n.length?n.fadeOut({duration:e.duration/2,complete:a,easing:e.easing||i}):a();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var r=s.match(/^(cover|push)_?(.*)$/),h="left"===r[2]?"right":"right"===r[2]?"left":"down"===r[2]?"top":"up"===r[2]?"bottom":"right",l={display:""},c={};if(l[h]="-100%",c[h]=0,o.css(l).animate(c,{duration:e.duration,complete:function(){o.css(h,""),e.complete.apply(this,arguments)},easing:e.easing||i}),"push"===r[1]&&n.length){var d={};d[h]="100%",n.animate(d,{duration:e.duration,complete:function(){n.css("display","none")},easing:e.easing||i})}}}({new:c,old:n,transition:m,duration:v,easing:g,complete:y}),o.firstShow=!1,o.resize()}),o.$itemWrapper.appendTo(o.$wrap),o.$item.attr("alt",h.alt||""),o.$itemWrapper.data("options",h),l||o.$item.attr("src",h.url),o._currentImage=h,o}},current:function(){return this.index},next:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,t)},prev:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,t)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(this.images.length>1){clearTimeout(this._cycleTimeout);var e=this._currentImage&&this._currentImage.duration||this.options.duration,i=u(this._currentImage),s=function(){this.$item.off(".cycle"),this.paused||this.next()};if(i){if(!this._currentImage.loop){var o=0;this.$item.on("playing.cycle",function(){var e=t(this).data("player");clearTimeout(o),o=setTimeout(function(){e.pause(),e.$video.trigger("ended")},1e3*(e.getDuration()-e.getCurrentTime()))}).on("ended.cycle",function(){clearTimeout(o)})}this.$item.on("error.cycle initerror.cycle",t.proxy(s,this))}i&&!this._currentImage.duration?this.$item.on("ended.cycle",t.proxy(s,this)):this._cycleTimeout=setTimeout(t.proxy(s,this),e)}return this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var y=function(){this.init.apply(this,arguments)};y.prototype.init=function(o){var n,a=this,r=function(){a.$video=n,a.video=n[0]},h="video";if(o.url instanceof Array||!s.test(o.url)||(h="youtube"),a.type=h,"youtube"===h){y.loadYoutubeAPI(),a.ytId=o.url.match(s)[2];var l="https://www.youtube.com/embed/"+a.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(e.location.origin);a.__ytStartMuted=!!o.mute||o.mute===i,n=t("<iframe />").attr({src_to_load:l}).css({border:0,margin:0,padding:0}).data("player",a),o.loop&&n.on("ended.loop",function(){a.__manuallyStopped||a.play()}),a.ytReady=!1,r(),e.YT?(a._initYoutube(),n.trigger("initsuccess")):t(e).one("youtube_api_load",function(){a._initYoutube(),n.trigger("initsuccess")})}else{n=t("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!o.loop).prop("muted",!!o.mute||o.mute===i).prop("preload","auto").prop("poster",o.poster||"");for(var c=o.url instanceof Array?o.url:[o.url],d=0;d<c.length;d++){var u=c[d];"string"==typeof u&&(u={src:u}),t("<source>").attr("src",u.src).attr("type",u.type||null).appendTo(n)}n[0].canPlayType&&c.length?n.trigger("initsuccess"):n.trigger("initerror"),r()}},y.prototype._initYoutube=function(){var i=this,s=e.YT;i.$video.attr("src",i.$video.attr("src_to_load")).removeAttr("src_to_load");var o=!!i.$video[0].parentNode;if(!o){var n=t("<div>").css("display","none !important").appendTo(document.body);i.$video.appendTo(n)}var a=new s.Player(i.video,{events:{onReady:function(){i.__ytStartMuted&&a.mute(),o||(i.$video[0].parentNode===n[0]&&i.$video.detach(),n.remove()),i.ytReady=!0,i._updateYoutubeSize(),i.$video.trigger("canplay")},onStateChange:function(t){switch(t.data){case s.PlayerState.PLAYING:i.$video.trigger("playing");break;case s.PlayerState.ENDED:i.$video.trigger("ended");break;case s.PlayerState.PAUSED:i.$video.trigger("pause");break;case s.PlayerState.BUFFERING:i.$video.trigger("waiting");break;case s.PlayerState.CUED:i.$video.trigger("canplay")}},onPlaybackQualityChange:function(){i._updateYoutubeSize(),i.$video.trigger("resize")},onError:function(t){i.hasError=!0,i.$video.trigger({type:"error",error:t})}}});return i.ytPlayer=a,i},y.prototype._updateYoutubeSize=function(){var t=this;switch(t.ytPlayer.getPlaybackQuality()||"medium"){case"small":t.video.videoWidth=426,t.video.videoHeight=240;break;case"medium":t.video.videoWidth=640,t.video.videoHeight=360;break;default:case"large":t.video.videoWidth=854,t.video.videoHeight=480;break;case"hd720":t.video.videoWidth=1280,t.video.videoHeight=720;break;case"hd1080":t.video.videoWidth=1920,t.video.videoHeight=1080;break;case"highres":t.video.videoWidth=2560,t.video.videoHeight=1440}return t},y.prototype.play=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&(t.$video.trigger("play"),t.ytPlayer.playVideo()):t.video.play(),t},y.prototype.pause=function(){var t=this;return t.__manuallyStopped=!1,"youtube"===t.type?t.ytReady&&t.ytPlayer.pauseVideo():t.video.pause(),t},y.prototype.stop=function(){var t=this;return t.__manuallyStopped=!0,"youtube"===t.type?t.ytReady&&(t.ytPlayer.pauseVideo(),t.ytPlayer.seekTo(0)):(t.video.pause(),t.video.currentTime=0),t},y.prototype.destroy=function(){return this.ytPlayer&&this.ytPlayer.destroy(),this.$video.remove(),this},y.prototype.getCurrentTime=function(t){return"youtube"!==this.type?this.video.currentTime:this.ytReady?this.ytPlayer.getCurrentTime():0},y.prototype.setCurrentTime=function(t){var e=this;return"youtube"===e.type?e.ytReady&&e.ytPlayer.seekTo(t,!0):e.video.currentTime=t,e},y.prototype.getDuration=function(){return"youtube"!==this.type?this.video.duration:this.ytReady?this.ytPlayer.getDuration():0},y.loadYoutubeAPI=function(){if(!e.YT){t("script[src*=www\\.youtube\\.com\\/iframe_api]").length||t('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body");var i=setInterval(function(){e.YT&&e.YT.loaded&&(t(e).trigger("youtube_api_load"),clearTimeout(i))},50)}};var w,b,C,$,_,x,k,T,O,I,S=function(){if("matchMedia"in e){if(e.matchMedia("(orientation: portrait)").matches)return"portrait";if(e.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"}
27,A=function(){return e.innerHeight>e.innerWidth?"portrait":e.innerWidth>e.innerHeight?"landscape":"square"},P=(w=navigator.userAgent,b=navigator.platform,C=w.match(/AppleWebKit\/([0-9]+)/),$=!!C&&C[1],_=w.match(/Fennec\/([0-9]+)/),x=!!_&&_[1],k=w.match(/Opera Mobi\/([0-9]+)/),T=!!k&&k[1],O=w.match(/MSIE ([0-9]+)/),I=!!O&&O[1],!((b.indexOf("iPhone")>-1||b.indexOf("iPad")>-1||b.indexOf("iPod")>-1)&&$&&$<534||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||k&&T<7458||w.indexOf("Android")>-1&&$&&$<533||x&&x<6||"palmGetResource"in e&&$&&$<534||w.indexOf("MeeGo")>-1&&w.indexOf("NokiaBrowser/8.5.0")>-1||I&&I<=6))}(jQuery,window),function(t,e,i){"use strict";var s=function(t,e){var s=this;this.el=t,this.options={},Object.keys(o).forEach(function(t){s.options[t]=o[t]}),Object.keys(e).forEach(function(t){s.options[t]=e[t]}),this.isInput="input"===this.el.tagName.toLowerCase(),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.getAttribute(this.attr):this.el.textContent,this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.fadeOut=this.options.fadeOut,this.fadeOutClass=this.options.fadeOutClass,this.fadeOutDelay=this.options.fadeOutDelay,i&&this.options.stringsElement instanceof i?this.stringsElement=this.options.stringsElement[0]:this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var e=0;e<t.strings.length;++e)t.sequence[e]=e;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var t=this;(!0===this.showCursor&&(this.cursor=e.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)),this.stringsElement)&&(this.strings=[],this.stringsElement.style.display="none",Array.prototype.slice.apply(this.stringsElement.children).forEach(function(e){t.strings.push(e.innerHTML)}));this.init()},typewrite:function(t,e){if(!0!==this.stop){this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor.classList.remove(this.fadeOutClass));var i=Math.round(70*Math.random())+this.typeSpeed,s=this;s.timeout=setTimeout(function(){var i=0,o=t.substr(e);if("^"===o.charAt(0)){var n=1;/^\^\d+/.test(o)&&(n+=(o=/\d+/.exec(o)[0]).length,i=parseInt(o)),t=t.substring(0,e)+t.substring(e+n)}if("html"===s.contentType){var a=t.substr(e).charAt(0);if("<"===a){var r="";for(r="<"===a?">":";";t.substr(e+1).charAt(0)!==r&&(t.substr(e).charAt(0),!(++e+1>t.length)););e++,r}}s.timeout=setTimeout(function(){if(e===t.length){if(s.options.onStringTyped(s.arrayPos),s.arrayPos===s.strings.length-1&&(s.options.callback(),s.curLoop++,!1===s.loop||s.curLoop===s.loopCount))return;s.timeout=setTimeout(function(){s.backspace(t,e)},s.backDelay)}else{0===e&&s.options.preStringTyped(s.arrayPos);var i=t.substr(0,e+1);s.attr?s.el.setAttribute(s.attr,i):s.isInput?s.el.value=i:"html"===s.contentType?s.el.innerHTML=i:s.el.textContent=i,e++,s.typewrite(t,e)}},i)},i)}},backspace:function(t,e){var i=this;if(!0!==this.stop)if(this.fadeOut)this.initFadeOut();else{var s=Math.round(70*Math.random())+this.backSpeed;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(e).charAt(0)){for(;"<"!==t.substr(e-1).charAt(0)&&(t.substr(e).charAt(0),!(--e<0)););e--,"<"}var s=t.substr(0,e);i.replaceText(s),e>i.stopNum?(e--,i.backspace(t,e)):e<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos
27]],e))},s)}},initFadeOut:function(){return self=this,this.el.className+=" "+this.fadeOutClass,this.cursor.className+=" "+this.fadeOutClass,setTimeout(function(){self.arrayPos++,self.replaceText(""),self.typewrite(self.strings[self.sequence[self.arrayPos]],0)},self.fadeOutDelay)},replaceText:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t},shuffleArray:function(t){var e,i,s=t.length;if(s)for(;--s;)e=t[i=Math.floor(Math.random()*(s+1))],t[i]=t[s],t[s]=e;return t},reset:function(){clearInterval(this.timeout);this.el.getAttribute("id");this.el.textContent="",void 0!==this.cursor&&void 0!==this.cursor.parentNode&&this.cursor.parentNode.removeChild(this.cursor),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},s.new=function(t,i){Array.prototype.slice.apply(e.querySelectorAll(t)).forEach(function(t){var e=t._typed,o="object"==typeof i&&i;e&&e.reset(),t._typed=e=new s(t,o),"string"==typeof i&&e[i]()})},i&&(i.fn.typed=function(t){return this.each(function(){var e=i(this),o=e.data("typed"),n="object"==typeof t&&t;o&&o.reset(),e.data("typed",o=new s(this,n)),"string"==typeof t&&o[t]()})}),t.Typed=s;var o={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window,document,window.jQuery),function(t){if("undefined"==typeof jQuery)throw new Error("Kube's requires jQuery");!function(t){var e=jQuery.fn.jquery.split(".");if(1==e[0]&&e[1]<8)throw new Error("Kube's requires at least jQuery v1.8")}(),function(){Function.prototype.inherits=function(t){var e=function(){};e.prototype=t.prototype;var i=new e;for(var s in this.prototype)i[s]=this.prototype[s];this.prototype=i,this.prototype.super=t.prototype};var e=function(e,i){i="object"==typeof i?i:{},this.$element=t(e),this.opts=t.extend(!0,this.defaults,t.fn[this.namespace].options,this.$element.data(),i),this.$target="string"==typeof this.opts.target?t(this.opts.target):null};e.prototype={getInstance:function(){return this.$element.data("fn."+this.namespace)},hasTarget:function(){return!(null===this.$target)},callback:function(e){var i=[].slice.call(arguments).splice(1);return this.$element&&(i=this._fireCallback(t._data(this.$element[0],"events"),e,this.namespace,i)),this.$target&&(i=this._fireCallback(t._data(this.$target[0],"events"),e,this.namespace,i)),this.opts&&this.opts.callbacks&&t.isFunction(this.opts.callbacks[e])?this.opts.callbacks[e].apply(this,i):i},_fireCallback:function(t,e,i,s){if(t&&void 0!==t[e])for(var o=t[e].length,n=0;n<o;n++){if(t[e][n].namespace===i)var a=t[e][n].handler.apply(this,s)}return void 0===a?s:a}},window.MesmerizeKube=e}();var e,i,s,o,n,a,r,h,l,c,d,u,p,f,m,g,v=window.MesmerizeKube;(e=v).Plugin={create:function(i,s){return s=void 0===s?i.toLowerCase():s,t.fn[s]=function(o,n){var a=Array.prototype.slice.call(arguments,1),r="fn."+s,h=[];return this.each(function(){var s=t(this),l=s.data(r);if(n="object"==typeof o?o:n,l||(s.data(r,{}),s.data(r,l=new e[i](this,n))),"string"==typeof o)if(t.isFunction(l[o])){var c=l[o].apply(l,a);void 0!==c&&h.push(c)}else t.error('No such method "'+o+'" for '+i)}),0===h.length||1===h.length?0===h.length?this:h[0]:h},t.fn[s].options={},this},autoload:function(t){for(var e=t.split(","),i=e.length,s=0;s<i;s++){var o=e[s].toLowerCase().split(",").map(function(t){return t.trim()}).join(",");this.autoloadQueue.push(o)}return this},autoloadQueue:[],startAutoload:function(){if(window.MutationObserver&&0!==this.autoloadQueue.length){var t=this;new MutationObserver(function(e){e.forEach(function(e){var i=e.addedNodes;0===i.length||1===i.length&&3===i.nodeType||t.startAutoloadOnce()})}).observe(document,{subtree:!0,childList:!0})}},startAutoloadOnce:function(){var e=this;t("[data-component]").not("[data-loaded]").each(function(){var i=t(this),s=i.data("c
27omponent");-1!==e.autoloadQueue.indexOf(s)&&(i.attr("data-loaded",!0),i[s]())})},watch:function(){e.Plugin.startAutoloadOnce(),e.Plugin.startAutoload()}},t(window).on("load",function(){e.Plugin.watch()}),(i=v).Animation=function(t,e,s){this.namespace="animation",this.defaults={},i.apply(this,arguments),this.effect=e,this.completeCallback=void 0!==s&&s,this.prefixes=["","-moz-","-o-animation-","-webkit-"],this.queue=[],this.start()},i.Animation.prototype={start:function(){this.isSlideEffect()&&this.setElementHeight(),this.addToQueue(),this.clean(),this.animate()},addToQueue:function(){this.queue.push(this.effect)},setElementHeight:function(){this.$element.height(this.$element.height())},removeElementHeight:function(){this.$element.css("height","")},isSlideEffect:function(){return"slideDown"===this.effect||"slideUp"===this.effect},isHideableEffect:function(){return-1!==t.inArray(this.effect,["fadeOut","slideUp","flipOut","zoomOut","slideOutUp","slideOutRight","slideOutLeft"])},isToggleEffect:function(){return"show"===this.effect||"hide"===this.effect},storeHideClasses:function(){this.$element.hasClass("hide-sm")?this.$element.data("hide-sm-class",!0):this.$element.hasClass("hide-md")&&this.$element.data("hide-md-class",!0)},revertHideClasses:function(){this.$element.data("hide-sm-class")?this.$element.addClass("hide-sm").removeData("hide-sm-class"):this.$element.data("hide-md-class")?this.$element.addClass("hide-md").removeData("hide-md-class"):this.$element.addClass("hide")},removeHideClass:function(){this.$element.data("hide-sm-class")?this.$element.removeClass("hide-sm"):this.$element.data("hide-md-class")?this.$element.removeClass("hide-md"):this.$element.removeClass("hide")},animate:function(){if(this.storeHideClasses(),this.isToggleEffect())return this.makeSimpleEffects();this.$element.addClass("kubeanimated"),this.$element.addClass(this.queue[0]),this.removeHideClass();var e=this.queue.length>1?null:this.completeCallback;this.complete("AnimationEnd",t.proxy(this.makeComplete,this),e)},makeSimpleEffects:function(){"show"===this.effect?this.removeHideClass():"hide"===this.effect&&this.revertHideClasses(),"function"==typeof this.completeCallback&&this.completeCallback(this)},makeComplete:function(){this.$element.hasClass(this.queue[0])&&(this.clean(),this.queue.shift(),this.queue.length&&this.animate())},complete:function(e,i,s){var o=e.split(" ").map(function(t){return t.toLowerCase()+" webkit"+t+" o"+t+" MS"+t});this.$element.one(o.join(" "),t.proxy(function(){"function"==typeof i&&i(),this.isHideableEffect()&&this.revertHideClasses(),this.isSlideEffect()&&this.removeElementHeight(),"function"==typeof s&&s(this),this.$element.off(event)},this))},clean:function(){this.$element.removeClass("kubeanimated").removeClass(this.queue[0])}},i.Animation.inherits(i),(s=jQuery).fn.animation=function(t,e){var i="fn.animation";return this.each(function(){var o=s(this);o.data(i),o.data(i,{}),o.data(i,new v.Animation(this,t,e))})},s.fn.animation.options={},(o=v).Detect=function(){},o.Detect.prototype={isMobile:function(){return/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent)},isDesktop:function(){return!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent)},isMobileScreen:function(){return t(window).width()<=768},isTabletScreen:function(){return t(window).width()>=768&&t(window).width()<=1024},isDesktopScreen:function(){return t(window).width()>1024}},(n=v).FormData=function(t){this.opts=t.opts},n.FormData.prototype={set:function(t){this.data=t},get:function(t){return this.formdata=t,this.opts.appendForms&&this.appendForms(),this.opts.appendFields&&this.appendFields(),this.data},appendFields:function(){var e=t(this.opts.appendFields);if(0!==e.length){var i=this,s="";this.formdata?e.each(function(){i.data.append(t(this).attr("name"),t(this).val())}):(e.each(function(){s+="&"+t(this).attr("name")+"="+t(this).val()}),this.data=""===this.data?s.replace(/^&/,""):this.data+s)}},appendForms:function(){var e=t(this.opts.appendForms);if(0!==e.length)if(this.formdata){var i=this,s=t(this.opts.appendForms).serializeArray();t.each(s,function(t,e){i.data.append(e.name,e.value)})}else{var o=e.serialize();this.data=""===this.data?o:this.data+"&"+o}}},(a=v).Response=function(t){},a.Response.prototype={parse:function(t){if(""===t)return!1;var e={};try{e=JSON.parse(t)}catch(t){return!1}if(void 0!==e[0])for(var i in e)this.parseItem(e[i]);else this.parseItem(e);return e},parseItem:function(e){return"value"===e.type?t.each(e.data,t.proxy(function(e,i){i=!0===(i=null===i||!1===i?0:i)?1:i,t(e).val(i)},this)):"html"===e.type?t.each(e.data,t.proxy(function(e,i){i=null===i||!1===i?"":i,t(e).html(this.stripslashes(i))},this)):"addClass"===e.type?t.each(e.data,function(e,i){t(e).addClass(i)}):"removeClass"===e.type?t.each(e.data,function(e,i){t(e).removeClass(i)}):"command"===e.type?t.each(e.data,function(e,i){t(i)[e]()}):"animation"===e.type?t.each(e.data,function(e,i){i.opts=void 0===i.opts?{}:i.opts,t(e).animation(i.name,i.opts)}):"location"===e.type?top.location.href=e.data:"notify"===e.type&&t.notify(e.data),e},stripslashes:function(t){return(t+"").replace(/\0/g,"0").replace(/\\([\\'"])/g,"$1")}},(r=v).Utils=function(){},r.Utils.prototype={disableBodyScroll:function(){var e=t("html"),i=window.innerWidth;if(!i){var s=document.documentElement.getBoundingClientRect();i=s.right-Math.abs(s.left)}var o=document.body.clientWidth<i,n=this.measureScrollbar();e.css("overflow","hidden"),o&&e.css("padding-right",n)},measureScrollbar:function(){var e=t("body"),i=document.createElement("div");i.className="scrollbar-measure",e.append(i);var s=i.offsetWidth-i.clientWidth;return e[0].removeChild(i),s},enableBodyScroll:function(){t("html").css({overflow:"","padding-right":""})}},(h=v).Message=function(t,e){this.namespace="message",this.defaults={closeSelector:".close",closeEvent:"click",animationOpen:"fadeIn",animationClose:"fadeOut",callbacks:["open","opened","close","closed"]},h.apply(this,arguments),this.start()},h.Message.prototype={start:function(){this.$close=this.$element.find(this.opts.closeSelector),this.$close.on(this.opts.closeEvent+"."+this.namespace,t.proxy(this.close,this)),this.$element.addClass("open")},stop:function(){this.$close.off("."+this.namespace),this.$element.removeClass("open")},open:function(e){e&&e.preventDefault(),this.isOpened()||(this.callback("open"),this.$element.animation(this.opts.animationOpen,t.proxy(this.onOpened,this)))},isOpened:function(){return this.$element.hasClass("open")},onOpened:function(){this.callback("opened"),this.$element.addClass("open")},close:function(e){e&&e.preventDefault(),this.isOpened()&&(this.callback("close"),this.$element.animation(this.opts.animationClose,t.proxy(this.onClosed,this)))},onClosed:function(){this.callback("closed"),this.$element.removeClass("open")}},h.Message.inherits(h),h.Plugin.create("Message"),h.Plugin.autoload("Message"),(l=v).Sticky=function(t,e){this.namespace="sticky",this.defaults={classname:"fixed",offset:0,callbacks:["fixed","unfixed"]},l.apply(this,arguments),this.start()},l.Sticky.prototype={start:function(){this.offsetTop=this.getOffsetTop(),this.load(),t(window).scroll(t.proxy(this.load,this))},getOffsetTop:function(){return this.$element.offset().top},load:function(){return this.isFix()?this.fixed():this.unfixed()},isFix:function(){return t(window).scrollTop()>this.offsetTop+this.opts.offset},fixed:function(){this.$element.addClass(this.opts.classname).css("top",this.opts.offset+"px"),this.callback("fixed")},unfixed:function(){this.$element.removeClass(this.opts.classname).css("top",""),this.callback("unfixed")}},l.Sticky.inherits(l),l.Plugin.create("Sticky"),l.Plugin.autoload("Sticky"),(c=v).Toggleme=function(t,e){this.namespace="toggleme",this.defaults={toggleEvent:"click",target:null,text:"",animationOpen:"slideDown",animationClose:"slide
27Up",callbacks:["open","opened","close","closed"]},c.apply(this,arguments),this.start()},c.Toggleme.prototype={start:function(){this.hasTarget()&&this.$element.on(this.opts.toggleEvent+"."+this.namespace,t.proxy(this.toggle,this))},stop:function(){this.$element.off("."+this.namespace),this.revertText()},toggle:function(t){this.isOpened()?this.close(t):this.open(t)},open:function(e){e&&e.preventDefault(),this.isOpened()||(this.storeText(),this.callback("open"),this.$target.animation("slideDown",t.proxy(this.onOpened,this)),setTimeout(t.proxy(this.replaceText,this),100))},close:function(e){e&&e.preventDefault(),this.isOpened()&&(this.callback("close"),this.$target.animation("slideUp",t.proxy(this.onClosed,this)))},isOpened:function(){return this.$target.hasClass("open")},onOpened:function(){this.$target.addClass("open"),this.callback("opened")},onClosed:function(){this.$target.removeClass("open"),this.revertText(),this.callback("closed")},storeText:function(){this.$element.data("replacement-text",this.$element.html())},revertText:function(){var t=this.$element.data("replacement-text");t&&this.$element.html(t),this.$element.removeData("replacement-text")},replaceText:function(){""!==this.opts.text&&this.$element.html(this.opts.text)}},c.Toggleme.inherits(c),c.Plugin.create("Toggleme"),c.Plugin.autoload("Toggleme"),(d=v).Offcanvas=function(t,e){this.namespace="offcanvas",this.defaults={target:null,push:!0,width:"250px",direction:"left",toggleEvent:"click",clickOutside:!0,animationOpen:"slideInLeft",animationClose:"slideOutLeft",callbacks:["open","opened","close","closed"]},d.apply(this,arguments),this.utils=new d.Utils,this.detect=new d.Detect,this.start()},d.Offcanvas.prototype={start:function(){this.hasTarget()&&(this.buildTargetWidth(),this.buildAnimationDirection(),this.$close=this.getCloseLink(),this.$element.on(this.opts.toggleEvent+"."+this.namespace,t.proxy(this.toggle,this)),this.$target.addClass("offcanvas"),this.$target.trigger("kube.offcanvas.ready"))},stop:function(){this.closeAll(),this.$element.off("."+this.namespace),this.$close.off("."+this.namespace),t(document).off("."+this.namespace)},toggle:function(t){this.isOpened()?this.close(t):this.open(t)},buildTargetWidth:function(){this.opts.width=t(window).width()<parseInt(this.opts.width)?"100%":this.opts.width},buildAnimationDirection:function(){"right"===this.opts.direction&&(this.opts.animationOpen="slideInRight",this.opts.animationClose="slideOutRight")},getCloseLink:function(){return this.$target.find(".close")},open:function(e){e&&e.preventDefault(),this.isOpened()||(this.closeAll(),this.callback("open"),this.$target.addClass("offcanvas-"+this.opts.direction),this.$target.css("width",Math.min(parseInt(this.opts.width),window.innerWidth-100)),this.$target.css("right","-"+Math.min(parseInt(this.opts.width),window.innerWidth-100)),this.pushBody(),this.$target.trigger("kube.offcanvas.open"),this.$target.animation(this.opts.animationOpen,t.proxy(this.onOpened,this)))},closeAll:function(){var e=t(document).find(".offcanvas");0!==e.length&&(e.each(function(){var e=t(this);e.hasClass("open")&&(e.css("width","").animation("hide"),e.removeClass("open offcanvas-left offcanvas-right"))}),t(document).off("."+this.namespace),t("body").css("left",""))},close:function(e){if(e){var i=t(e.target);if(("A"===i[0].tagName||"BUTTON"===i[0].tagName||i.parents("a").length)&&0!==i.closest(".offcanvas").length&&!i.hasClass("close"))return;e.preventDefault()}this.isOpened()&&(this.utils.enableBodyScroll(),this.callback("close"),this.pullBody(),this.$target.trigger("kube.offcanvas.close"),this.$target.animation(this.opts.animationClose,t.proxy(this.onClosed,this)))},isOpened:function(){return this.$target.hasClass("open")},onOpened:function(){this.opts.clickOutside&&t(document).on("click."+this.namespace+" tap."+this.namespace,t.proxy(this.close,this)),this.detect.isMobileScreen()&&t("html").addClass("no-scroll"),t(document).on("keyup."+this.namespace,t.proxy(this.handleKeyboard,this)),this.$close.on("click."+this.namespace,t.proxy(this.close,this)),this.utils.disableBodyScroll(),this.$target.addClass("open"),this.callback("opened")},onClosed:function(){this.detect.isMobileScreen()&&t("html").removeClass("no-scroll"),this.$target.css("width","").removeClass("offcanvas-"+this.opts.direction),this.$close.off("."+this.namespace),t(document).off("."+this.namespace),this.$target.removeClass("open"),this.callback("closed"),this.$target.trigger("kube.offcanvas.closed")},handleKeyboard:function(t){27===t.which&&this.close()},pullBody:function(){this.opts.push&&t("body").animate({left:0},350,function(){t(this).removeClass("offcanvas-push-body")})}
27,pushBody:function(){if(this.opts.push){var e="left"===this.opts.direction?{left:this.opts.width}:{left:"-"+this.opts.width};t("body").addClass("offcanvas-push-body").animate(e,200)}}},d.Offcanvas.inherits(d),d.Plugin.create("Offcanvas"),d.Plugin.autoload("Offcanvas"),(u=v).Collapse=function(t,e){this.namespace="collapse",this.defaults={target:null,toggle:!0,active:!1,toggleClass:"collapse-toggle",boxClass:"collapse-box",callbacks:["open","opened","close","closed"],hashes:[],currentHash:!1,currentItem:!1},u.apply(this,arguments),this.start()},u.Collapse.prototype={start:function(){this.$items=this.getItems(),this.$items.each(t.proxy(this.loadItems,this)),this.$boxes=this.getBoxes(),this.setActiveItem()},getItems:function(){return this.$element.find("."+this.opts.toggleClass)},getBoxes:function(){return this.$element.find("."+this.opts.boxClass)},loadItems:function(e,i){var s=this.getItem(i);s.$el.attr("rel",s.hash),t(s.hash).hasClass("hide")||(this.opts.currentItem=s,this.opts.active=s.hash,s.$el.addClass("active")),s.$el.on("click.collapse",t.proxy(this.toggle,this))},setActiveItem:function(){!1!==this.opts.active&&(this.opts.currentItem=this.getItemBy(this.opts.active),this.opts.active=this.opts.currentItem.hash),!1!==this.opts.currentItem&&(this.addActive(this.opts.currentItem),this.opts.currentItem.$box.removeClass("hide"))},addActive:function(t){t.$box.removeClass("hide").addClass("open"),t.$el.addClass("active"),!1!==t.$caret&&t.$caret.removeClass("down").addClass("up"),!1!==t.$parent&&t.$parent.addClass("active"),this.opts.currentItem=t},removeActive:function(t){t.$box.removeClass("open"),t.$el.removeClass("active"),!1!==t.$caret&&t.$caret.addClass("down").removeClass("up"),!1!==t.$parent&&t.$parent.removeClass("active"),this.opts.currentItem=!1},toggle:function(e){e&&e.preventDefault();var i=t(e.target).closest("."+this.opts.toggleClass).get(0)||e.target,s=this.getItem(i);this.isOpened(s.hash)?this.close(s.hash):this.open(e)},openAll:function(){this.$items.addClass("active"),this.$boxes.addClass("open").removeClass("hide")},open:function(e,i){if(void 0!==e){"object"==typeof e&&e.preventDefault();var s=t(e.target).closest("."+this.opts.toggleClass).get(0)||e.target,o="object"==typeof e?this.getItem(s):this.getItemBy(e);o.$box.hasClass("open")||(this.opts.toggle&&this.closeAll(),this.callback("open",o),this.addActive(o),o.$box.animation("slideDown",t.proxy(this.onOpened,this)))}},onOpened:function(){this.callback("opened",this.opts.currentItem)},closeAll:function(){this.$items.removeClass("active").closest("li").removeClass("active"),this.$boxes.removeClass("open").addClass("hide")},close:function(e){var i=this.getItemBy(e);this.callback("close",i),this.opts.currentItem=i,i.$box.animation("slideUp",t.proxy(this.onClosed,this))},onClosed:function(){var t=this.opts.currentItem;this.removeActive(t),this.callback("closed",t)},isOpened:function(e){return t(e).hasClass("open")},getItem:function(e){var i={};i.$el=t(e),i.hash=i.$el.attr("href"),i.$box=t(i.hash);var s=i.$el.parent();i.$parent="LI"===s[0].tagName&&s;var o=i.$el.find(".caret");return i.$caret=0!==o.length&&o,i},getItemBy:function(t){var e="number"==typeof t?this.$items.eq(t-1):this.$element.find('[rel="'+t+'"]');return this.getItem(e)}},u.Collapse.inherits(u),u.Plugin.create("Collapse"),u.Plugin.autoload("Collapse"),(p=v).Dropdown=function(t,e){this.namespace="dropdown",this.defaults={target:null,toggleEvent:"click",height:!1,width:!1,animationOpen:"slideDown",animationClose:"slideUp",caretUp:!1,callbacks:["open","opened","close","closed"]},p.apply(this,arguments),this.utils=new p.Utils,this.detect=new p.Detect,this.start()},p.Dropdown.prototype={start:function(){this.buildClose(),this.buildCaret(),this.detect.isMobile()&&this.buildMobileAnimation(),this.$target.addClass("hide"),this.$element.on(this.opts.toggleEvent+"."+this.namespace,t.proxy(this.toggle,this))},stop:function(){this.$element.off("."+this.namespace),this.$target.removeClass("open").addClass("hide"),this.disableEvents()},buildMobileAnimation:function(){this.opts.animationOpen="fadeIn",this.opts.animationClose
27="fadeOut"},buildClose:function(){this.$close=this.$target.find(".close")},buildCaret:function(){this.$caret=this.getCaret(),this.buildCaretPosition()},buildCaretPosition:function(){var e=this.$element.offset().top+this.$element.innerHeight()+this.$target.innerHeight();t(document).height()>e||(this.opts.caretUp=!0,this.$caret.addClass("up"))},getCaret:function(){return this.$element.find(".caret")},toggleCaretOpen:function(){this.opts.caretUp?this.$caret.removeClass("up").addClass("down"):this.$caret.removeClass("down").addClass("up")},toggleCaretClose:function(){this.opts.caretUp?this.$caret.removeClass("down").addClass("up"):this.$caret.removeClass("up").addClass("down")},toggle:function(t){this.isOpened()?this.close(t):this.open(t)},open:function(e){e&&e.preventDefault(),this.callback("open"),t(".dropdown").removeClass("open").addClass("hide"),this.opts.height&&this.$target.css("min-height",this.opts.height+"px"),this.opts.width&&this.$target.width(this.opts.width),this.setPosition(),this.toggleCaretOpen(),this.$target.animation(this.opts.animationOpen,t.proxy(this.onOpened,this))},close:function(e){if(this.isOpened()){if(e){if(this.shouldNotBeClosed(e.target))return;e.preventDefault()}this.utils.enableBodyScroll(),this.callback("close"),this.toggleCaretClose(),this.$target.animation(this.opts.animationClose,t.proxy(this.onClosed,this))}},onClosed:function(){this.$target.removeClass("open"),this.disableEvents(),this.callback("closed")},onOpened:function(){this.$target.addClass("open"),this.enableEvents(),this.callback("opened")},isOpened:function(){return this.$target.hasClass("open")},enableEvents:function(){this.detect.isDesktop()&&this.$target.on("mouseover."+this.namespace,t.proxy(this.utils.disableBodyScroll,this.utils)).on("mouseout."+this.namespace,t.proxy(this.utils.enableBodyScroll,this.utils)),t(document).on("scroll."+this.namespace,t.proxy(this.setPosition,this)),t(window).on("resize."+this.namespace,t.proxy(this.setPosition,this)),t(document).on("click."+this.namespace+" touchstart."+this.namespace,t.proxy(this.close,this)),t(document).on("keydown."+this.namespace,t.proxy(this.handleKeyboard,this)),this.$target.find('[data-action="dropdown-close"]').on("click."+this.namespace,t.proxy(this.close,this))},disableEvents:function(){this.$target.off("."+this.namespace),t(document).off("."+this.namespace),t(window).off("."+this.namespace)},handleKeyboard:function(t){27===t.which&&this.close(t)},shouldNotBeClosed:function(e){return"dropdown-close"!==t(e).attr("data-action")&&e!==this.$close[0]&&0!==t(e).closest(".dropdown").length},isNavigationFixed:function(){return 0!==this.$element.closest(".fixed").length},getPlacement:function(e){return t(document).height()<e?"top":"bottom"},getOffset:function(t){return this.isNavigationFixed()?this.$element.position():this.$element.offset()},getPosition:function(){return this.isNavigationFixed()?"fixed":"absolute"},setPosition:function(){if(this.detect.isMobile())this.$target.addClass("dropdown-mobile");else{var e,i=this.getPosition(),s=this.getOffset(i),o=this.$target.innerHeight(),n=this.$target.innerWidth(),a=this.getPlacement(s.top+o+this.$element.innerHeight()),r=t(window).width()<s.left+n?n-this.$element.innerWidth():0,h=s.left-r;"bottom"===a?(this.isOpened()||this.$caret.removeClass("up").addClass("down"),this.opts.caretUp=!1,e=s.top+this.$element.outerHeight()+1):(this.opts.animationOpen="show",this.opts.animationClose="hide",this.isOpened()||this.$caret.addClass("up").removeClass("down"),this.opts.caretUp=!0,e=s.top-o-1),this.$target.css({position:i,top:e+"px",left:h+"px"})}}},p.Dropdown.inherits(p),p.Plugin.create("Dropdown"),p.Plugin.autoload("Dropdown"),(f=v).Tabs=function(t,e){this.namespace="tabs",this.defaults={equals:!1,active:!1,live:!1,hash:!0,callbacks:["init","next","prev","open","opened","close","closed"]},f.apply(this,arguments),this.start()},f.Tabs.prototype={start:function(){!1!==this.opts.live&&this.buildLiveTabs(),this.tabsCollection=[],this.hashesCollection=[],this.currentHash=[],this.currentItem=!1,this.$items=this.getItems(),this.$items.each(t.proxy(this.loadItems,this)),this.$tabs=this.getTabs(),this.currentHash=this.getLocationHash(),this.closeAll(),this.setActiveItem(),this.setItemHeight(),this.callback("init")},getTabs:function(){return t(this.tabsCollection).map(function(){return this.toArray()})},getItems:function(){return this.$element.find("a")},loadItems:function(e,i){var s=this.getItem(i);s.$el.attr("rel",s.hash),this.collectItem(s),s.$parent.hasClass("active")&&(this.currentItem=s,this.opts.active=s.hash),s.$el.on("click.tabs",t.proxy(this.open,this))},collectItem:function(t){this.tabsCollection.push(t.$tab),this.hashesCollection.push(t.hash)},buildLiveTabs:function(){var e=t(this.opts.live);0!==e.length&&(this.$liveTabsList=t("<ul />"),e.each(t.proxy(this.buildLiveItem,this)),this.$element.html("").append(this.$liveTabsList))},buildLiveItem:function(e,i){var s=t(i),o=t("<li />"),n=t("<a />"),a=e+1;s.attr("id",this.getLiveItemId(s,a));var r="#"+s.attr("id"),h=this.getLiveItemTitle(s);n.attr("href",r).attr("rel",r).text(h),o.append(n),this.$liveTabsList.append(o)},getLiveItemId:function(t,e){return void 0===t.attr("id")?this.opts.live.replace(".","")+e:t.attr("id")},getLiveItemTitle:function(t){return void 0===t.attr("data-title")?t.attr("id"):t.attr("data-title")},setActiveItem:function(){this.currentHash?(this.currentItem=this.getItemBy(this.currentHash),this.opts.active=this.currentHash):!1===this.opts.active&&(this.currentItem=this.getItem(this.$items.first()),this.opts.active=this.currentItem.hash),this.addActive(this.currentItem)},addActive:function(t){t.$parent.addClass("active"),t.$tab.removeClass("hide").addClass("open"),this.currentItem=t},removeActive:function(t){t.$parent.removeClass("active"),t.$tab.addClass("hide").removeClass("open"),this.currentItem=!1},next:function(t){t&&t.preventDefault();var e=this.getItem(this.fetchElement("next"));this.open(e.hash),this.callback("next",e)},prev:function(t){t&&t.preventDefault();var e=this.getItem(this.fetchElement("prev"));this.open(e.hash),this.callback("prev",e)},fetchElement:function(t){var e;if(!1!==this.currentItem){if(0===(e=this.currentItem.$parent[t]().find("a")).length)return}else e=this.$items[0];return e},open:function(t,e){if(void 0!==t){"object"==typeof t&&t.preventDefault();var i="object"==typeof t?this.getItem(t.target):this.getItemBy(t);this.closeAll(),this.callback("open",i),this.addActive(i),this.pushStateOpen(e,i),this.callback("opened",i)}},pushStateOpen:function(t,e){!1!==t&&!1!==this.opts.hash&&history.pushState(!1,!1,e.hash)},close:function(t){var e=this.getItemBy(t);e.$parent.hasClass("active")&&(this.callback("close",e),this.removeActive(e),this.pushStateClose(),this.callback("closed",e))},pushStateClose:function(){!1!==this.opts.hash&&history.pushState(!1,!1," ")},closeAll:function(){this.$tabs.removeClass("open").addClass("hide"),this.$items.parent().removeClass("active")},getItem:function(e){var i={};return i.$el=t(e),i.hash=i.$el.attr("href"),i.$parent=i.$el.parent(),i.$tab=t(i.hash),i},getItemBy:function(t){var e="number"==typeof t?this.$items.eq(t-1):this.$element.find('[rel="'+t+'"]');return this.getItem(e)},getLocationHash:function(){return!1!==this.opts.hash&&!!this.isHash()&&top.location.hash},isHash:function(){return!(""===top.location.hash||-1===t.inArray(top.location.hash,this.hashesCollection))},setItemHeight:function(){if(this.opts.equals){var t=this.getItemMaxHeight()+"px";this.$tabs.css("min-height",t)}},getItemMaxHeight:function(){var e=0;return this.$tabs.each(function(){var i=t(this).height();e=i>e?i:e}),e}},f.Tabs.inherits(f),f.Plugin.create("Tabs"),f.Plugin.autoload("Tabs"),(m=jQuery).modalcurrent=null,m.modalwindow=function(t){var e=m.extend({},t,{show:!0});m("<span />").modal(e)},(g=v).Modal=function(t,e){this.namespace="modal",this.defaults={target:null,show:!1,url:!1,header:!1,width:"600px",height:!1,maxHeight:!1,position:"center",overlay:!0,appendForms:!1,appendFields:!1,animationOpen:"show",animationClose:"hide",callbacks:["open","opened","close","closed"]},g.apply(this,arguments),this.utils=new g.Utils,this.detect=new g.Detect,this.start()},g.Modal.prototype={start:function(){this.hasTarget()&&(this.opts.show?this.load():this.$element.on("click."+this.namespace,t.proxy(this.load,this)))},buildModal:function(){this.$modal=this.$target.find(".modal"),this.$header=this.$target.find(".modal
27-header"),this.$close=this.$target.find(".close"),this.$body=this.$target.find(".modal-body")},buildOverlay:function(){!1!==this.opts.overlay&&(0!==t("#modal-overlay").length?this.$overlay=t("#modal-overlay"):(this.$overlay=t('<div id="modal-overlay">').addClass("hide"),t("body").prepend(this.$overlay)),this.$overlay.addClass("overlay"))},buildHeader:function(){this.opts.header&&this.$header.html(this.opts.header)},load:function(t){this.buildModal(),this.buildOverlay(),this.buildHeader(),this.opts.url?this.buildContent():this.open(t)},open:function(e){e&&e.preventDefault(),this.isOpened()||(this.detect.isMobile()&&(this.opts.width="96%"),this.opts.overlay&&this.$overlay.removeClass("hide"),this.$target.removeClass("hide"),this.$modal.removeClass("hide"),this.enableEvents(),this.findActions(),this.resize(),t(window).on("resize."+this.namespace,t.proxy(this.resize,this)),this.detect.isDesktop()&&this.utils.disableBodyScroll(),this.$modal.find("input[type=text],input[type=url],input[type=email]").on("keydown."+this.namespace,t.proxy(this.handleEnter,this)),this.callback("open"),this.$modal.animation(this.opts.animationOpen,t.proxy(this.onOpened,this)))},close:function(e){if(this.$modal&&this.isOpened()){if(e){if(this.shouldNotBeClosed(e.target))return;e.preventDefault()}this.callback("close"),this.disableEvents(),this.$modal.animation(this.opts.animationClose,t.proxy(this.onClosed,this)),this.opts.overlay&&this.$overlay.animation(this.opts.animationClose)}},onOpened:function(){this.$modal.addClass("open"),this.callback("opened"),t.modalcurrent=this},onClosed:function(){this.callback("closed"),this.$target.addClass("hide"),this.$modal.removeClass("open"),this.detect.isDesktop()&&this.utils.enableBodyScroll(),this.$body.css("height",""),t.modalcurrent=null},isOpened:function(){return this.$modal.hasClass("open")},getData:function(){var t=new g.FormData(this);return t.set(""),t.get()},buildContent:function(){t.ajax({url:this.opts.url+"?"+(new Date).getTime(),cache:!1,type:"post",data:this.getData(),success:t.proxy(function(t){this.$body.html(t),this.open()},this)})},buildWidth:function(){var e=this.opts.width,i="2%",s="2%",o=e.match(/%$/);parseInt(this.opts.width)>t(window).width()&&!o?e="96%":o||(i="16px",s="16px"),this.$modal.css({width:e,"margin-top":i,"margin-bottom":s})},buildPosition:function(){if("center"===this.opts.position){var e=t(window).height(),i=this.$modal.outerHeight(),s=e/2-i/2+"px";this.detect.isMobile()?s="2%":i>e&&(s="16px"),this.$modal.css("margin-top",s)}},buildHeight:function(){var e=t(window).height();if(this.opts.maxHeight){var i=parseInt(this.$body.css("padding-top"))+parseInt(this.$body.css("padding-bottom")),s=parseInt(this.$modal.css("margin-top"))+parseInt(this.$modal.css("margin-bottom")),o=e-this.$header.innerHeight()-i-s;this.$body.height(o)}else!1!==this.opts.height&&this.$body.css("height",this.opts.height);this.$modal.outerHeight()>e&&(this.opts.animationOpen="show",this.opts.animationClose="hide")},resize:function(){this.buildWidth(),this.buildPosition(),this.buildHeight()},enableEvents:function(){this.$close.on("click."+this.namespace,t.proxy(this.close,this)),t(document).on("keyup."+this.namespace,t.proxy(this.handleEscape,this)),this.$target.on("click."+this.namespace,t.proxy(this.close,this))},disableEvents:function(){this.$close.off("."+this.namespace),t(document).off("."+this.namespace),this.$target.off("."+this.namespace),t(window).off("."+this.namespace)},findActions:function(){this.$body.find('[data-action="modal-close"]').on("mousedown."+this.namespace,t.proxy(this.close,this))},setHeader:function(t){this.$header.html(t)},setContent:function(t){this.$body.html(t)},setWidth:function(t){this.opts.width=t,this.resize()},getModal:function(){return this.$modal},getBody:function(){return this.$body},getHeader:function(){return this.$header},handleEnter:function(t){13===t.which&&(t.preventDefault(),this.close(!1))},handleEscape:function(t){return 27!==t.which||this.close(!1)},shouldNotBeClosed:function(e){return"modal-close"!==t(e).attr("data-action")&&e!==this.$close[0]&&0!==t(e).closest(".modal").length}},g.Modal.inherits(g),g.Plugin.create("Modal"),g.Plugin.autoload("Modal")}(jQuery),function(t){"#page-top"===window.location.hash&&o("",5);var e={items:{},eachCategory:function(t){for(var e in this.items)this.items.hasOwnProperty(e)&&t(this.items[e])},addItem:function(t,e){this.items[t]||(this.items[t]=[]),this.items[t].push(e)},all:function(){var t=[];for(var e in this.items)this.items.hasOwnProperty(e)&&(t=t.concat(this.items[e]));return t}},i=!1;function s(e){var i=isNaN(parseFloat(e.options.offset))?e.options.offset.call(e.target):e.options.offset;return e.target.offset().top-i-t("body").offset().top}function o(t,e){t===location.hash.replace("#","")||"page-top"===t&&""===location.hash.replace("#","")||setTimeout(function(){t=t?"page-top"===t?" ":"#"+t:" ",history&&history.replaceState&&history.replaceState({},"",t)},e||100)}function n(e){if(!i){i=!0;var n=s(e);t("html, body").animate({scrollTop:n},{easing:"linear",complete:function(){var n=s(e);t("html, body").animate({scrollTop:n},{easing:"linear",duration:100,complete:function(){i=!1,o(e.id,5)}})}})}}function a(e){var i=(e.attr("href")||"").split("#").pop(),s=function(t){var e=jQuery(t)[0].href||"",i="#";try{var s=new window.URL(e);i=[s.protocol,"//",s.host,s.pathname].join("")}catch(t){i=e.split("?")[0].split("#")[0]}return i}(e),o=null,n=[location.protocol,"//",location.host,location.pathname].join("");if(s.length&&s!==n)return o;if(i.trim().length)try{o=t('[id="'+i+'"]')}catch(t){console.log("error scrollSpy",t)}return o&&o.length?o:null}function r(){e.eachCategory(function(t){var e=t.sort(function(t,e){return t.target.offset().top-e.target.offset().top}),i=e.filter(function(t){return t.target.offset().top<=window.scrollY+.25*window.innerHeight}).pop();e.forEach(function(t){i&&t.element.is(i.element)?(o(t.id,5),t.options.onChange.call(t.element)):t.options.onLeave.call(t.element)})})}t.fn.smoothScrollAnchor=function(e){var i=t(this);e=jQuery.extend({offset:0},e),i.each(function(){var i=t(this),s=e.target||a(i);if(s&&s.length){var o={element:i,options:e,target:s,targetSel:e.targetSel||'[id="'+s.attr("id").trim()+'"]',id:(s.attr("id")||"").trim()};i.off("click tap").on("click tap",function(e){t(this).data("skip-smooth-scroll")||(e.preventDefault(),t(this).data("allow-propagation")||e.stopPropagation(),n(o),o.clickCallback&&o.clickCallback.call(this,e))})}})},t.fn.scrollSpy=function(i){var s=t(this),o="spy-"+parseInt(Date.now()
27*Math.random());s.each(function(){var s=t(this);if(i=jQuery.extend({onChange:function(){},onLeave:function(){},clickCallback:function(){},smoothScrollAnchor:!1,offset:0},i),s.is("a")&&-1!==(s.attr("href")||"").indexOf("#")){var n=a(s);if(n){var r={element:s,options:i,target:n,targetSel:'[id="'+n.attr("id").trim()+'"]',id:n.attr("id").trim()};e.addItem(o,r),s.data("scrollSpy",r),i.smoothScrollAnchor&&s.smoothScrollAnchor({offset:i.offset})}}})},t(window).scroll(r),t(window).bind("smoothscroll.update",r),t(function(){var i=window.location.hash.replace("#",""),s=e.all().filter(function(t){return t.targetSel==='[id="'+i.trim()+'"]'});t(window).on("load",function(){s.length&&n(s[0]),r()})})}(jQuery),function(t){function e(e){e.find("[data-selected-item]").each(function(){t(this).removeAttr("data-selected-item");var i=e.children("ul");e.is(".mobile-menu")&&i.slideDown()})}function i(e,i){t("body").off("tap.navigation-clear-selection"),t(window).off("scroll.navigation-clear-selection"),e.is(i)||t.contains(i[0],this)||s(i)}function s(e,i){e.find("li.hover").each(function(){var e;i&&(e=t(this),e.find("[data-selected-item]").length>0||e.is("[data-selected-item]"))||t(this).removeClass("hover")})}function o(t,e){if(e.parentsUntil("ul.dorpdown-menu").filter("li").length>0){var i=e.children("ul"),s=i.length&&e.offset().left+e.width()+300>window.innerWidth,o=i.length&&e.closest(".open-reverse").length;s||o?i.addClass("open-reverse"):i.length&&i.removeClass("open-reverse")}}function n(e){var i=e;t.fn.scrollSpy&&i.find("a").scrollSpy({onChange:function(){i.find(".current-menu-item,.current_page_item").removeClass("current-menu-item current_page_item"),t(this).closest("li").addClass("current-menu-item")},onLeave:function(){t(this).closest("li").removeClass("current-menu-item current_page_item")},smoothScrollAnchor:!0,offset:function(){var e=t(".navigation-bar.fixto-fixed");return e.length?e[0].getBoundingClientRect().height:0}}),t(window).trigger("smoothscroll.update")}t.event.special.tap||(t.event.special.tap={setup:function(e,i){t(this).bind("touchstart",t.event.special.tap.handler).bind("touchmove",t.event.special.tap.handler).bind("touchend",t.event.special.tap.handler)},teardown:function(e){t(this).unbind("touchstart",t.event.special.tap.handler).unbind("touchmove",t.event.special.tap.handler).unbind("touchend",t.event.special.tap.handler)},handler:function(e){var i,s=t(this),o=e.handleObj;return s.data(e.type,1),"touchend"!==e.type||s.data("touchmove")?s.data("touchend")&&s.removeData("touchstart touchmove touchend"):(e.type="tap",i=o.handler.call(this,e)),i}}),t("ul.dropdown-menu").each(function(){var a=t(this);if(a.hasClass("mobile-menu")){var r=t('<a href="#" data-menu-toggler="">Menu</a>');a.before(r),r.click(function(){r.hasClass("opened")?(a.slideUp(300,function(){a.css("display","")}),a.removeClass("mobile-menu"),r.removeClass("opened")):(r.addClass("opened"),a.slideDown(),a.addClass("mobile-menu"),s(a),e(a))})}t("");a.on("tap.navigation","li.menu-item > a, li.page_item > a",function(n){var r,h,l=t(this),c=l.parent();if(c.children("ul").length)if(c.is("[data-selected-item]")){var d=l.attr("href");if(0===d.indexOf("#")){var u=d.replace("#","").trim();if(!u||!t("#"+u).length)return}e(a)}else h=c,e(r=a),h.attr("data-selected-item",!0),s(r,h),h.addClass("hover"),o(0,h),t("body").on("tap.navigation-clear-selection","*",function(){i(jQuery(this),r)}),t(window).on("scroll.navigation-clear-selection",function(){i(jQuery(this),r)}),n.preventDefault(),n.stopPropagation();else n.stopPropagation(),e(a)}),a.on("mouseover.navigation","li",function(){a.find("li.hover").removeClass("hover"),o(0,t(this))}),n(a)}),t(function(){window.wp&&window.wp.customize&&(jQuery(".offcanvas_menu").find("li > ul").eq(0).each(function(){jQuery(this).show(),jQuery(this).parent().addClass("open")}),window.wp.customize.selectiveRefresh.bind("render-partials-response",function(e){Object.getOwnPropertyNames(e.contents).filter(function(t){return-1!==t.indexOf("nav_menu_instance[")}).length&&setTimeout(function(){t("ul.dropdown-menu").each(function(){n(t(this))})},1e3)}))})}(jQuery),window.mesmerizeMenuSticky=function(){var t=jQuery,e="data-sticky";function i(t){return t?e+"-"+t:e}var s=t("["+e+"]");s.each(function(e,s){var o=t(s);if(!o.data("stickData")){var n=parseInt(o.attr(i())),a="1"==o.attr(i("mobile")),r="1"==o.attr(i("shrinked")),h="bottom"==o.attr(i("to")),l="1"==o.attr(i("always"));l&&o.addClass("fixto-fixed"),r&&o.attr(i(),"initial");var c={center:!0,responsiveWidth:!0,zIndex:1e4+e,topSpacing:n,stickyOnMobile:a,stickyOnTablet:!0,useShrink:r,toBottom:h,useNativeSticky:!1,always:l};r||(0===n&&jQuery("#wpadminbar").length&&"absolute"===jQuery("#wpadminbar").css("position")&&(n=0),c.topSpacing=n,c.top=n,o.data("stickData",c),o.fixTo("body",c))}});var o=function(){var e=this.$els;window.innerWidth<1024?e.each(function(e,i){var s=t(this).data(),o=s.stickData;if(o){var n=s.fixtoInstance;if(!n)return!0;window.innerWidth<=767?o.stickyOnMobile||n.stop():o.stickyOnTablet||n.stop()}}):e.each(function(e,i){var s=t(this).data();if(s){var o=s.fixtoInstance;if(!o)return!0;o.start()}})}.bind({$els:s});t(window).bind("resize.sticky orientationchange.sticky",function(){setTimeout(o,50)}),t(window).trigger("resize.sticky")},jQuery(document).ready(function(t){mesmerizeMenuSticky()}),function(t){function e(t,e){var i=jQuery(t),s=mesmerize_video_background.getVideoRect();i.css({width:Math.round(s.width),"max-width":Math.round(s.width),height:Math.round(s.height),opacity:1,left:s.left})}window.addEventListener("resize",function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&(e(t),mesmerize_video_background.resizePoster())}),jQuery(function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&e(t)}),__cpVideoElementFirstPlayed=!1,document.addEventListener("wp-custom-header-video-loaded",function(){var t=document.querySelector("video#wp-custom-header-video");t?e(t):document.querySelector("#wp-custom-header")&&document.querySelector("#wp-custom-header").addEventListener("play",function(){var t=document.querySelector("iframe#wp-custom-header-video"),i=document.querySelector("video#wp-custom-header-video")||t;i&&!__cpVideoElementFirstPlayed&&(__cpVideoElementFirstPlayed=!0,e(i)),function(){for(var t in wp.customHeader.handlers){var e=wp.customHeader.handlers[t];if(e.settings)return e}}().play()})})}(jQuery),function(t){"ontouchstart"in window&&(document.documentElement.className=document.documentElement.className+" touch-enabled"),navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)&&(document.documentElement.className=document.documentElement.className+" no-parallax");var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){window.setTimeout(t,1e3/60)};window.requestInterval=function(t,i,s){if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setInterval(t,
27i);var o=(new Date).getTime(),n={};return n.value=e(function a(){var r=(new Date).getTime()-o;r>=i&&(t.call(),o=(new Date).getTime()),n.value=e(a),r>=i&&s&&!0===s.call()&&clearRequestInterval(n)}),n},window.clearRequestInterval=function(t){window.cancelAnimationFrame?window.cancelAnimationFrame(t.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(t.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(t.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(t.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(t.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(t.value):clearInterval(t)},t.event.special.tap||(t.event.special.tap={setup:function(e,i){t(this).bind("touchstart",t.event.special.tap.handler).bind("touchmove",t.event.special.tap.handler).bind("touchend",t.event.special.tap.handler)},teardown:function(e){t(this).unbind("touchstart",t.event.special.tap.handler).unbind("touchmove",t.event.special.tap.handler).unbind("touchend",t.event.special.tap.handler)},handler:function(e){var i=t(this);i.data(e.type,1),"touchend"!==e.type||i.data("touchmove")?i.data("touchend")&&i.removeData("touchstart touchmove touchend"):(e.type="tap",t.event.handle.apply(this,arguments))}}),t.fn.isInView||(t.fn.isInView=function(e){var i=t(window).scrollTop(),s=i+t(window).height(),o=t(this).offset().top,n=o+t(this).height();return!0===e?i<o&&s>n:o<=s&&n>=i}),t.throttle||(t.throttle=function(t,e,i){var s,o;return e||(e=250),function(){var n=i||this,a=+new Date,r=arguments;s&&a<s+e?(clearTimeout(o),o=setTimeout(function(){s=a,t.apply(n,r)},e)):(s=a,t.apply(n,r))}}),t.debounce||(t.debounce=function(t,e,i){var s;return function(){var o=this,n=arguments,a=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||t.apply(o,n)},e),a&&t.apply(o,n)}})}(jQuery),function(t){if(window.mesmerize_smooth_scroll&&window.mesmerize_smooth_scroll.enabled){var e=!0,i=null,s=null,o=10,n=10,a=100,r=0;t(window).on("load",function(t){window.addEventListener&&window.addEventListener("DOMMouseScroll",h,!1),window.onmousewheel=document.onmousewheel=h})}function h(h){var l,c=0;return h.wheelDelta?c=h.wheelDelta/120:h.detail&&(c=-h.detail/3),0===window.scrollY&&c>0||(window.innerHeight+window.scrollY>=document.body.offsetHeight&&c<0||(l=c,l=Math.sign(l)*parseInt(Math.min(Math.abs(l,10))),null===i&&(i=t(window).scrollTop()),i-=a*l,e=l>0,t("body").on("mousedown.wheelscroll","a",function(e){s&&(clearRequestInterval(s),s=null,i=null,t("body").off("mousedown.wheelscroll"))}),null===s&&(s=requestInterval(function(){var e=t(window).scrollTop();r=Math.round((i-e)/n),t(window).scrollTop(e+r)},o,function(){var o=t(window).scrollTop();return!!(o<=0&&e||o>=t(window).prop("scrollHeight")-t(window).height()||e&&r>-1||!e&&r<1)&&(s=null,i=null,!0)})),h.preventDefault&&h.preventDefault(),void(h.returnValue=!1)))}}(jQuery),mesmerizeDomReady(function(t){if(window.mesmerize_backstretch){window.mesmerize_backstretch.duration=parseInt(window.mesmerize_backstretch.duration),window.mesmerize_backstretch.transitionDuration=parseInt(window.mesmerize_backstretch.transitionDuration);var e=mesmerize_backstretch.images;if(!e)return;t(".header-homepage, .header").backstretch(e,mesmerize_backstretch)}if(t.fn.smoothScrollAnchor){var i=t("body");t(".header-homepage-arrow-c .header-homepage-arrow").smoothScrollAnchor({target:i.find("[data-id]").length?i.find("[data-id]").first():i.find(".page-content, .content").eq(0),targetSel:i.find("[data-id]").length?"[data-id]:first":".page-content, .content",offset:function(){var e=t(".navigation-bar.fixto-fixed");return e.length?e[0].getBoundingClientRect().height:0}})}}),mesmerizeDomReady(function(t){var e=!1,i=t(".post-list.row");function s(){if(!e){e=!0,i.find("img").each(function(){this.onload=n,setTimeout(function(){i.data().masonry.layout()},500)});var s=t(".post-list.row .post-list-item"),o=s.length-1;s.each(function(){t(this).css({width:t(this).css("max-width")})}),i.length&&i.masonry({itemSelector:".post-list-item",percentPosition:!0,columnWidth:"."+s.eq(o).attr("data-masonry-width")})}function n(){i.data().masonry.layout()}}i.is("[data-no-masonry]")||(window.innerWidth>=768&&s(),t(window).resize(function(){window.innerWidth>=768?s():i.data("masonry")&&i.masonry("destroy")}))}),function(t){function e(t,e){t.offset().top+t.outerHeight()>=e.offset().top+e.height()?t.css("visibility","visible"):t.css("visibility","")}function i(t,i){i.css("margin-bottom",t.outerHeight()-1),e(t,i)}window.mesmerizeFooterParallax=function(){var s=t(".footer.parallax");if(s.length){if(s.parents(".no-parallax").length)return void s.css("visibility","visible");t(".header-wrapper").css("z-index",1);var o=s.prev();o.addClass("footer-shadow"),o.css({position:"relative","z-index":1}),t(window).bind("resize.footerParallax",function(){i(s,o)}),mesmerizeDomReady(function(){window.setTimeout(function(){i(s,o)},100)}),i(s,o),t(window).bind("scroll.footerParallax",function(){e(s,o)})}},window.mesmerizeStopFooterParallax=function(){var e=t(".footer").prev();t(".header-wrapper").css("z-index",0),e.removeClass("footer-shadow"),e.css("margin-bottom","0px"),t(window).unbind("resize.footerParallax"),t(window).unbind("scroll.footerParallax")},mesmerizeFooterParallax()}(jQuery),mesmerizeDomReady(function(t){var e=t("[data-text-effect]");t.fn.typed&&e.length&&JSON.parse(mesmerize_morph.header_text_morph)&&e.each(function(){t(this).empty(),t(this).typed({strings:JSON.parse(t(this).attr("data-text-effect")),typeSpeed:parseInt(mesmerize_morph.header_text_morph_speed),loop:!0})})}),function(t){var e=t(".offcanvas_menu"),i=t("#offcanvas-wrapper");i.length&&(t("html").addClass("has-offscreen"),i.appendTo("body"),i.on("kube.offcanvas.ready",function(){i.removeClass("force-hide")}),i.on("kube.offcanvas.open",function(){t("html").addClass("offcanvas-opened")}),i.on("kube.offcanvas.close",function(){t("html").removeClass("offcanvas-opened")})),e.each(function(){var e=t(this);e.on("mesmerize.open-all",function(){t(this).find(".menu-item-has-children, .page_item_has_children").each(function(){t(this).addClass("open"),t(this).children("ul").slideDown(100)})}),e.find(".menu-item-has-children a, .page_item_has_children a").each(function(){0===t(this).children("i.fa.arrow").length&&t(this).append('<i class="fa arrow"></i>')}),e.on("click tap",".menu-item-has-children > a, .page_item_has_children >
27 a",function(e){var i=t(this),s=i.closest("li");if(e.stopPropagation(),0===s.children("ul").length)return t('[data-component="offcanvas"]').offcanvas("close"),!0;if(s.hasClass("open")){if(i.is("a"))return t('[data-component="offcanvas"]').offcanvas("close"),!0;s.children("ul").slideUp(100,function(){s.find("ul").each(function(){t(this).parent().removeClass("open"),t(this).css("display","none")})})}else s.children("ul").slideDown(100);s.toggleClass("open"),e.preventDefault()}),e.on("click tap",".mesmerize-menu-cart",function(t){t.stopPropagation()}),e.on("click tap",".menu-item-has-children > a > .arrow, .page_item_has_children  > a > .arrow",function(e){var i=t(this).closest("li");e.stopPropagation(),e.preventDefault(),i.toggleClass("open"),i.hasClass("open")?i.children("ul").slideDown(100):i.children("ul").slideUp(100)}),e.on("click tap","a",function(e){0===t(this).closest("li").children("ul").length&&t('[data-component="offcanvas"]').offcanvas("close")}),t.fn.scrollSpy&&(e.find("a").each(function(){t(this).data("allow-propagation",!0)}),e.find("a > i").each(function(){t(this).data("allow-propagation",!1),t(this).data("skip-smooth-scroll",!0)}),e.find("a").scrollSpy({onChange:function(){e.find(".current-menu-item,.current_page_item").removeClass("current-menu-item current_page_item"),t(this).closest("li").addClass("current-menu-item")},onLeave:function(){t(this).closest("li").removeClass("current-menu-item current_page_item")},clickCallback:function(){t('[data-component="offcanvas"]').offcanvas("close")},smoothScrollAnchor:!0,offset:function(){return t(".navigation-bar.fixto-fixed").length?t(".navigation-bar.fixto-fixed")[0].getBoundingClientRect().height:0}}))}),t.fn.smoothScrollAnchor&&(t("#page > .page-content > .content, #page >  .content").find("a[data-cp-link]").filter(function(){var e=t(this);return!e.is("[role=tab]")&&!e.parent().is("[role=tab]")}).smoothScrollAnchor(),t("#page > .footer").find("a").filter(function(){var e=t(this);return!e.is("[role=tab]")&&!e.parent().is("[role=tab]")}).smoothScrollAnchor())}(jQuery),function(t){function e(e){var i=e.find("[data-countup]"),s=i.text();s=jQuery.map(s.match(/[-]{0,1}[s\d.]*[\d]+/g),function(t){return t}).join([]);var o=void 0!==i.attr("data-max")?i.attr("data-max"):100,n=void 0!==i.attr("data-min")?i.attr("data-min"):0;if(n>o){var a=o;o=n,n=a}s||(s=n);var r=s/o*100,h=e.find(".circle-bar"),l=h.attr("r"),c=Math.PI*(2*l);r<0&&(r=0),r>100&&(r=100);var d=c*(100-r)/100;h.css({strokeDashoffset:d}),t(function(){try{wp&&wp.customize||h.parent().height(h.parent().width())}catch(t){}})}function i(t){e(t),t.find("[data-countup]").bind("countup.update",function(){e(t)}),t.data("doCircle",function(){e(t)})}function s(t,e){var o=void 0!==t.attr("data-min")?t.attr("data-min"):0,n=t.attr("data-stop"),a=void 0!==t.attr("data-max")?t.attr("data-max"):100,r=t.attr("data-prefix")||"",h=t.attr("data-suffix")||"",l=t.attr("data-duration")||2e3,c=t.attr("data-decimals")||0;void 0!==n&&(a=n);var d="";try{var u=new CountUp(t[0],parseInt(o),parseInt(a),parseInt(c),parseInt(l)/1e3,{prefix:r,suffix:h,onUpdate:function(e){i(t.closest(".circle-counter"))}});d=u.options.formattingFn(parseInt(a))}catch(t){console.error("invalid countup args",{min:o,max:a,decimals:c,duration:l,suffix:h,prefix:r})}t.data("countup",u),t.attr("data-max-computed",d),e&&t.data("countup").reset(),(t.isInView(!0)||e)&&t.data("countup").start(),t.data("restartCountUp",function(){s(t)})}t(".circle-counter").each(function(){i(t(this))});var o=t("[data-countup]");o.each(function(){s(t(this))}),t(window).on("scroll",function(){o.each(function(){var e=t(this);e.isInView(!0)&&!e.data("one")&&(e.data("countup").start(),e.data("one",!0))})}),t(function(){try{wp&&wp.customize||t(window).on("resize",function(){t(".circle-counter .circle-svg").each(function(){t(this).height(t(this).width())})})}catch(t){}});try{parent.CP_Customizer&&parent.CP_Customizer.addModule(function(e){e.hooks.addAction("after_node_insert",function(e){e.is("[data-countup]")&&(e.closest(".circle-counter").length&&i(e.closest(".circle-counter")),s(e,!0)),e.find("[data-countup]").each(function(){t(this).closest(".circle-counter").length&&i(t(this).closest(".circle-counter")),s(t(this),!0)})})})}catch(t){}}(jQuery),function(t){var e=function(e,i,s){t("body").on("mouseover.ope-woo",function(o){var n,a,r,h,l,c=t(o.target);(n=c,a=e,r=i,h=t.contains(r[0],n[0])||n.is(r),l=t.contains(a[0],n[0])||n.is(a),h||l||c.is(s))||(t("body").off("mouseover.ope-woo"),e.fadeOut())})};function i(e,i){if(!t("body").is(".woocommerce-cart")&&!t("body").is(".woocommerce-checkout")){var s=i.offset().top+i.outerHeight()-i.closest("div").offset().top;if(i.offset().left<e.outerWidth())var o=i.offset().left+e.outerWidth()+12;else o=i.offset().left+i.width()+5;e.css({position:"absolute","z-index":"100000",top:s,left:o}),e.fadeIn()}}jQuery(document).ready(function(){var s,o=jQuery("#main_menu"),n=o.find("li.mesmerize-menu-cart"),a=jQuery(".mesmerize-woo-header-cart");!function(t,s,o){t.parent().append(o);var n=t.find("li").not(s);s.children("a").off().on("mouseover",function(a){0!==o.children().length&&(n.trigger("mouseleave"),e(o,s,t),i(o,s))})}(o,n,a),(s=a).prepend('<a href="#" class="close-mini-cart small"><i class="fa fa-close"></i></a>'),t(".close-mini-cart").click(function(){t("body").off("mouseover.ope-woo"),s.fadeOut()}),n.children("a").on("touchstart",function(e){"use strict";a.is(":visible")?window.location=t(this).attr("href"):(e.preventDefault(),i(a,n))})}),t(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image").on("load",function(){var e=t(this);e&&setTimeout(function(){var t=e.closest(".woocommerce-product-gallery__image").height(),i=e.closest(".flex-viewport");t&&i&&i.height(t)},500)}).each(function(){this.complete&&t(this).load()})}(jQuery);
28 ;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.