/*! addEventListener Polyfill ie9- http://stackoverflow.com/a/27790212*/ window.addEventListener=window.addEventListener||function(a,b){window.attachEvent("on"+a,b)},/*! Datenow Polyfill ie9- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now */ Date.now||(Date.now=function(){return(new Date).getTime()}),/*! Object.create monkey patch ie8 http://stackoverflow.com/a/18020326 */ Object.create||(Object.create=function(a,b){function c(){}if("undefined"!=typeof b)throw"The multiple-argument version of Object.create is not provided by this browser and cannot be shimmed.";return c.prototype=a,new c}),/*! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter */ Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments.length>=2?arguments[1]:void 0,f=0;f>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(arguments.length>1&&(c=b),d=new Array(g),e=0;e0?1:-1)*Math.floor(Math.abs(b)):b},d=Math.pow(2,53)-1,e=function(a){var b=c(a);return Math.min(Math.max(b,0),d)};return function(a){var c=this,d=Object(a);if(null==a)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,g=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof g){if(!b(g))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(f=arguments[2])}for(var h,i=e(d.length),j=b(c)?Object(new c(i)):new Array(i),k=0;k=f-j&&h<=g+j},c.prototype._load_img=function(b){var c=a(b),d=c.attr(this.options.attribute[0]),e=c.attr(this.options.attribute[1]),f=c.attr(this.options.attribute[2]),g=this;c.parent().addClass("smart-loading"),c.unbind("load_img").hide().removeAttr(this.options.attribute.join(" ")).attr("sizes",f).attr("srcset",e).attr("src",d).load(function(){if(c.hasClass("tc-smart-loaded")||c.fadeIn(g.options.fadeIn_options).addClass("tc-smart-loaded"),"undefined"!=typeof c.attr("data-tcjp-recalc-dims")&&!1!==c.attr("data-tcjp-recalc-dims")){var a=c.originalWidth(),b=c.originalHeight();if(2!=_.size(_.filter([a,b],function(a){return _.isNumber(parseInt(a,10))&&a>1})))return;c.removeAttr("data-tcjp-recalc-dims scale"),c.attr("width",a),c.attr("height",b)}c.trigger("smartload"),c.data("czr-smart-loaded",!0)}),c[0].complete&&c.load(),c.parent().removeClass("smart-loading")},a.fn[d]=function(b){return this.each(function(){a.data(this,"plugin_"+d)||a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window),function(a){function b(b,c){this.$_el=a(b),this.options=a.extend({},d,c),this._href=a.trim(this.$_el.attr("href")),this.init()}var c="extLinks",d={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};b.prototype.init=function(){var a=this,b=this.$_el.next("."+a.options.iconClassName);return this._is_eligible()?(this.options.addIcon&&0===b.length&&this.$_el.after(''),void(this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank"))):void(b.length&&b.remove())},b.prototype._is_eligible=function(){var b=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter(function(a){return b._is_selector_allowed(a)}).length){var c=!0;return a.each(this.$_el.parents(),function(){if("underline"==a(this).css("textDecoration"))return c=!1,!1}),c}},b.prototype._is_selector_allowed=function(b){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,b);var c="ids"==b?"id":"class",d=this.options.skipSelectors[b];if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[b]||!a.isArray(this.options.skipSelectors[b])||0===this.options.skipSelectors[b].length)return!0;if(this.$_el.parents(d.map(function(a){return"id"==c?"#"+a:"."+a}).join(",")).length>0)return!1;if(!this.$_el.attr(c))return!0;var e=this.$_el.attr(c).split(" "),f=e.filter(function(b){return-1!=a.inArray(b,d)});return 0===f.length},b.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var b=this.$_el.children().first()[0].tagName,c=this.options.skipChildTags;return!a.isArray(c)||(c=c.map(function(a){return a.toUpperCase()}),-1==a.inArray(b,c))},b.prototype._is_external=function(b){var c=location.host.split(".").slice(-2).join("."),d=new RegExp(c);if(b=a.trim(b),""!==b&&"#"!=b&&this._isValidURL(b))return!d.test(b)},b.prototype._isValidURL=function(a){var b=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)},a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(this,d))})}}(jQuery),function(a,b){function c(b,c){var f=this;this.container=b,this.options=a.extend({},e,c),this._defaults=e,this._name=d,this._customEvt=a.isArray(f.options.oncustom)?f.options.oncustom:f.options.oncustom.split(" "),this.init()}var d="centerImages",e={enableCentering:!0,onresize:!0,onInit:!0,oncustom:[],$containerToListen:null,imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,enableGoldenRatio:!1,goldenRatioLimitHeightTo:350,goldenRatioVal:1.618,skipGoldenRatioClasses:["no-gold-ratio"],disableGRUnder:767,useImgAttr:!1,setOpacityWhenCentered:!1,addCenteredClassWithDelay:0,opacity:1};c.prototype.init=function(){var c=this,d=function(d){d=d||"init",c._maybe_apply_golden_r();var e=a(c.options.imgSel,c.container);c.options.enableGoldenRatio&&a(b).bind("resize",{},_.debounce(function(a){c._maybe_apply_golden_r(a)},200)),1<=e.length&&c.options.enableCentering&&c._parse_imgs(e,d)};c.options.onInit&&d(),a.isArray(c._customEvt)&&c._customEvt.map(function(b){var e=c.options.$containerToListen instanceof a&&1this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:b,a(this.container).css({"line-height":b+"px",height:b+"px"}).trigger("golden-ratio-applied")}},c.prototype._is_window_width_allowed=function(){return a(b).width()>this.options.disableGRUnder-15},c.prototype._parse_imgs=function(c,d){var e=this;if(c.each(function(c,f){var g=a(f);e._pre_img_cent(g,d),e.options.onresize&&!g.data("resize-react-bound")&&(g.data("resize-react-bound",!0),a(b).resize(_.debounce(function(){e._pre_img_cent(g,"resize")},100)))}),a(e.container).attr("data-img-centered-in-container")){var f=parseInt(a(e.container).attr("data-img-centered-in-container"),10)+1;a(e.container).attr("data-img-centered-in-container",f)}else a(e.container).attr("data-img-centered-in-container",1)},c.prototype._pre_img_cent=function(b){var c=this._get_current_state(b),d=this,e=c.current,f=c.prop[e],g=c.prop["h"==e?"v":"h"],h="h"==e?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,i=function(a){if(a.css(f.dim.name,f.dim.val).css(g.dim.name,d.options.defaultCSSVal[g.dim.name]||"auto").css(f.dir.name,f.dir.val).css(g.dir.name,h),0!==d.options.addCenteredClassWithDelay&&_.isNumber(d.options.addCenteredClassWithDelay)?_.delay(function(){a.addClass(f._class).removeClass(g._class)},d.options.addCenteredClassWithDelay):a.addClass(f._class).removeClass(g._class),a.attr("data-img-centered")){var b=parseInt(a.attr("data-img-centered"),10)+1;a.attr("data-img-centered",b)}else a.attr("data-img-centered",1);return a};this.options.setOpacityWhenCentered?a.when(i(b)).done(function(a){a.css("opacity",d.options.opacity)}):_.delay(function(){i(b)},0)},c.prototype._get_current_state=function(b){var c=b.closest(this.container).outerWidth(),d=a(this.container).outerHeight(),e=this._get_img_dim(b,"x"),f=this._get_img_dim(b,"y"),g=f*d!==0?Math.round(e/f*d):c,h=e*c!==0?Math.round(f/e*c):d,i="h";0!==c*e&&(i=d/c>=f/e?"h":"v");var j={h:{dim:{name:"height",val:d},dir:{name:"left",val:(c-g)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:c},dir:{name:"top",val:(d-h)/2+(this.options.topAdjust||0)},_class:"v-centered"}};return{current:i,prop:j}},c.prototype._get_img_dim=function(a,b){if(!this.options.useImgAttr)return"x"==b?a.outerWidth():a.outerHeight();if(a.is(":visible"))return"x"==b?a.outerWidth():a.outerHeight();if("x"==b){var c=a.originalWidth();return void 0===typeof c?0:c}if("y"==b){var d=a.originalHeight();return void 0===typeof d?0:d}},c.prototype._is_selector_allowed=function(){if(!a(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!a.isArray(this.options.skipGoldenRatioClasses))return!0;var b=a(this.container).attr("class").split(" "),c=this.options.skipGoldenRatioClasses,d=b.filter(function(b){return-1!=a.inArray(b,c)});return 0===d.length},a.fn[d]=function(b){return this.each(function(){a.data(this,"plugin_"+d)||a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window),function(a,b,c){function d(b,c){this.element=a(b),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=a.extend({},f,c,this.parseElementDataOptions()),this._defaults=f,this._name=e,this.init()}var e="czrParallax",f={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};d.prototype.parseElementDataOptions=function(){return this.element.data()},d.prototype.init=function(){this.$_document=a(document),this.$_window=czrapp?czrapp.$_window:a(b),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},d.prototype._bind_evt=function(){c.bindAll(this,"maybeParallaxMe","parallaxMe")},d.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var a=this.element_wrapper;a.length&&a.css("overflow","hidden")}},d.prototype.initWaypoints=function(){var a=this;this.way_start=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1,a.element.css("top",0)):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},d.prototype.maybeParallaxMe=function(){var a=this;return c.isFunction(b.matchMedia)&&matchMedia(a.options.matchMedia).matches?this.setTopPosition():void(this.doingAnimation||(this.doingAnimation=!0,b.requestAnimationFrame(function(){a.parallaxMe(),a.doingAnimation=!1})))},d.prototype.setTopPosition=function(a){a=a||0,this.element.css({transform:"translate3d(0px, "+a+"px, .01px)","-webkit-transform":"translate3d(0px, "+a+"px, .01px)"})},d.prototype.parallaxMe=function(){var a=this.options.parallaxRatio,b=this.options.parallaxDirection,c=a*b*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(b*c<0?0:c)},a.fn[e]=function(b){return this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,new d(this,b))})}}(jQuery,window,_),function(a,b,c,d){var e="animateSvg",f={filter_opacity:.8,svg_opacity:.8,animation_duration:400},g=function(c){var e=a(this).attr("id");if(d.isUndefined(e)||d.isEmpty(e)||"function"!=typeof Vivus)return void(b.czrapp&&czrapp.consoleLog("An svg icon could not be animated with Vivus."));a("[id="+e+"]").length>1&&b.czrapp&&czrapp.consoleLog("Svg icons must have a unique css #id to be animated. Multiple id found for : "+e);var f=function(){return a("#"+e).siblings(".filter-placeholder").length?a("#"+e).css("opacity",c.svg_opacity).siblings(".filter-placeholder").css("opacity",c.filter_opacity):a("#"+e).css("opacity",c.svg_opacity)};a.when(f()).done(function(){new Vivus(e,{type:"delayed",duration:c.animation_duration})})};a.fn[e]=function(b){return b=a.extend({},f,b),this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,g.call(this,b))})}}(jQuery,window,document,_),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=0?c:b,y=b,a(),top!=self)F=!0;else if(e>d&&(b.offsetHeight<=d||c.offsetHeight<=d)){var f=document.createElement("div");f.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+I.scrollHeight+"px",document.body.appendChild(f);var g,h=function(){g||(g=setTimeout(function(){E||(f.style.height="0",f.style.height=I.scrollHeight+"px",g=null)},500))};setTimeout(h,10);var i={attributes:!0,childList:!0,characterData:!1};if(z=new S(h),z.observe(b,i),I.offsetHeight<=d){var j=document.createElement("div");j.style.clear="both",b.appendChild(j)}}D.fixedBackground||E||(b.style.backgroundAttachment="scroll",c.style.backgroundAttachment="scroll")}}function c(){z&&z.disconnect(),o(X,e,W),o("mousedown",g),o("keydown",f)}function d(a,b,c){if(q(b,c),1!=D.accelerationMax){var d=Date.now(),e=d-O;if(e1&&(f=Math.min(f,D.accelerationMax),b*=f,c*=f)}O=Date.now()}if(M.push({x:b,y:c,lastX:b<0?.99:-.99,lastY:c<0?.99:-.99,start:Date.now()}),!N){var g=a===document.body,h=function(d){for(var e=Date.now(),f=0,i=0,j=0;j=D.animationTime,n=m?1:l/D.animationTime;D.pulseAlgorithm&&(n=w(n));var o=k.x*n-k.lastX>>0,p=k.y*n-k.lastY>>0;f+=o,i+=p,k.lastX+=o,k.lastY+=p,m&&(M.splice(j,1),j--)}g?window.scrollBy(f,i):(f&&(a.scrollLeft+=f),i&&(a.scrollTop+=i)),b||c||(M=[]),M.length?R(h,a,1e3/D.frameRate+1):N=!1};R(h,a,0),N=!0}}function e(a){H||b();var c=a.target,e=j(c);if(!e||a.defaultPrevented||a.ctrlKey)return!0;if(p(y,"embed")||p(c,"embed")&&/\.pdf/i.test(c.src)||p(y,"object"))return!0;var f=-a.wheelDeltaX||a.deltaX||0,g=-a.wheelDeltaY||a.deltaY||0;return K&&(a.wheelDeltaX&&s(a.wheelDeltaX,120)&&(f=-120*(a.wheelDeltaX/Math.abs(a.wheelDeltaX))),a.wheelDeltaY&&s(a.wheelDeltaY,120)&&(g=-120*(a.wheelDeltaY/Math.abs(a.wheelDeltaY)))),f||g||(g=-a.wheelDelta||0),1===a.deltaMode&&(f*=40,g*=40),!(D.touchpadSupport||!r(g))||(Math.abs(f)>1.2&&(f*=D.stepSize/120),Math.abs(g)>1.2&&(g*=D.stepSize/120),d(e,f,g),a.preventDefault(),void h())}function f(a){var b=a.target,c=a.ctrlKey||a.altKey||a.metaKey||a.shiftKey&&a.keyCode!==L.spacebar;document.contains(y)||(y=document.activeElement);var e=/^(textarea|select|embed|object)$/i,f=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.test(b.nodeName)||p(b,"input")&&!f.test(b.type)||p(y,"video")||u(a)||b.isContentEditable||a.defaultPrevented||c)return!0;if((p(b,"button")||p(b,"input")&&f.test(b.type))&&a.keyCode===L.spacebar)return!0;var g,i=0,k=0,l=j(y),m=l.clientHeight;switch(l==document.body&&(m=window.innerHeight),a.keyCode){case L.up:k=-D.arrowScroll;break;case L.down:k=D.arrowScroll;break;case L.spacebar:g=a.shiftKey?1:-1,k=-g*m*.9;break;case L.pageup:k=.9*-m;break;case L.pagedown:k=.9*m;break;case L.home:k=-l.scrollTop;break;case L.end:var n=l.scrollHeight-l.scrollTop-m;k=n>0?n+10:0;break;case L.left:i=-D.arrowScroll;break;case L.right:i=D.arrowScroll;break;default:return!0}d(l,i,k),a.preventDefault(),h()}function g(a){y=a.target}function h(){clearTimeout(A),A=setInterval(function(){Q={}},1e3)}function i(a,b){for(var c=a.length;c--;)Q[P(a[c])]=b;return b}function j(a){var b=[],c=document.body,d=I.scrollHeight;do{var e=Q[P(a)];if(e)return i(b,e);if(b.push(a),d===a.scrollHeight){var f=l(I)&&l(c),g=f||m(I);if(F&&k(I)||!F&&g)return i(b,T())}else if(k(a)&&m(a))return i(b,a)}while(a=a.parentElement)}function k(a){return a.clientHeight+100?1:-1,b=b>0?1:-1,G.x===a&&G.y===b||(G.x=a,G.y=b,M=[],O=0)}function r(a){if(a)return J.length||(J=[a,a,a]),a=Math.abs(a),J.push(a),J.shift(),clearTimeout(B),B=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=J.join(","))},1e3),!t(120)&&!t(100)}function s(a,b){return Math.floor(a/b)==a/b}function t(a){return s(J[0],a)&&s(J[1],a)&&s(J[2],a)}function u(a){var b=a.target,c=!1;if(document.URL.indexOf("www.youtube.com/watch")!=-1)do if(c=b.classList&&b.classList.contains("html5-video-controls"))break;while(b=b.parentNode);return c}function v(a){var b,c,d;return a*=D.pulseScale,a<1?b=a-(1-Math.exp(-a)):(c=Math.exp(-1),a-=1,d=1-Math.exp(-a),b=c+d*(1-c)),b*D.pulseNormalize}function w(a){return a>=1?1:a<=0?0:(1==D.pulseNormalize&&(D.pulseNormalize/=v(1)),v(a))}function x(a){return X&&(n(X,e,W),n("mousedown",g),a?b():n("load",b)),!!X}var y,z,A,B,C={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},D=C,E=!1,F=!1,G={x:0,y:0},H=!1,I=document.documentElement,J=[],K=/^Mac/.test(navigator.platform),L={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},D=C,M=[],N=!1,O=Date.now(),P=function(){var a=0;return function(b){return b.uniqueID||(b.uniqueID=a++)}}(),Q={};window.localStorage&&localStorage.SS_deltaBuffer&&(J=localStorage.SS_deltaBuffer.split(","));var R=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a,b,c){window.setTimeout(a,c||1e3/60)}}(),S=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,T=function(){var a;return function(){if(!a){var b=document.createElement("div");b.style.cssText="height:10000px;width:1px;",document.body.appendChild(b);var c=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,1),a=document.body.scrollTop!=c?document.body:document.documentElement,window.scrollBy(0,-1),document.body.removeChild(b)}return a}}(),U=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){U=!0}}))}catch(V){}var W=!!U&&{passive:!1},X="onwheel"in document.createElement("div")?"wheel":"mousewheel";smoothScroll=function(a){smoothScroll._setCustomOptions(a),x(),czrapp.$_body.addClass("hu-smoothscroll")},smoothScroll._cleanUp=function(){c(),czrapp.$_body.removeClass("hu-smoothscroll")},smoothScroll._maybeFire=function(){x(!0),czrapp.$_body.addClass("hu-smoothscroll")},smoothScroll._setCustomOptions=function(a){D=a?_.extend(D,a):D}}();var smoothScroll,tcOutline;!function(a){tcOutline=function(){var b=a.createElement("STYLE"),c="addEventListener"in a,d=function(b,d){c?a.addEventListener(b,d):a.attachEvent("on"+b,d)},e=function(a){b.styleSheet?b.styleSheet.cssText=a:b.innerHTML=a};a.getElementsByTagName("HEAD")[0].appendChild(b),d("mousedown",function(){e("input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus,select:focus,a:focus{outline:0}input[type=file]::-moz-focus-inner,input[type=radio]::-moz-focus-inner,input[type=checkbox]::-moz-focus-inner,select::-moz-focus-inner,a::-moz-focus-inner{border:0;}")}),d("keydown",function(){e("")})}}(document),/*! Waypoints - 4.0.0 Copyright © 2011-2015 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/waypoints/blob/master/licenses.txt */ function(){"use strict";function a(d){if(!d)throw new Error("No options passed to Waypoint constructor");if(!d.element)throw new Error("No element option passed to Waypoint constructor");if(!d.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+b,this.options=a.Adapter.extend({},a.defaults,d),this.element=this.options.element,this.adapter=new a.Adapter(this.element),this.callback=d.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=a.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=a.Context.findOrCreateByElement(this.options.context),a.offsetAliases[this.options.offset]&&(this.options.offset=a.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),c[this.key]=this,b+=1}var b=0,c={};a.prototype.queueTrigger=function(a){this.group.queueTrigger(this,a)},a.prototype.trigger=function(a){this.enabled&&this.callback&&this.callback.apply(this,a)},a.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete c[this.key]},a.prototype.disable=function(){return this.enabled=!1,this},a.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},a.prototype.next=function(){return this.group.next(this)},a.prototype.previous=function(){return this.group.previous(this)},a.invokeAll=function(a){var b=[];for(var d in c)b.push(c[d]);for(var e=0,f=b.length;ed.oldScroll,f=e?d.forward:d.backward;for(var g in this.waypoints[c]){var h=this.waypoints[c][g],i=d.oldScroll=h.triggerPoint,k=i&&j,l=!i&&!j;(k||l)&&(h.queueTrigger(f),a[h.group.id]=h.group)}}for(var m in a)a[m].flushTriggers();this.oldScroll={x:b.horizontal.newScroll,y:b.vertical.newScroll}},b.prototype.innerHeight=function(){return this.element==this.element.window?e.viewportHeight():this.adapter.innerHeight()},b.prototype.remove=function(a){delete this.waypoints[a.axis][a.key],this.checkEmpty()},b.prototype.innerWidth=function(){return this.element==this.element.window?e.viewportWidth():this.adapter.innerWidth()},b.prototype.destroy=function(){var a=[];for(var b in this.waypoints)for(var c in this.waypoints[b])a.push(this.waypoints[b][c]);for(var d=0,e=a.length;d-1&&(o=Math.ceil(g.contextDimension*o/100))),i=g.contextScroll-g.contextOffset,n.triggerPoint=q+i-o,j=p=g.oldScroll,l=j&&k,m=!j&&!k,!r&&l?(n.queueTrigger(g.backward),d[n.group.id]=n.group):!r&&m?(n.queueTrigger(g.forward),d[n.group.id]=n.group):r&&g.oldScroll>=n.triggerPoint&&(n.queueTrigger(g.forward),d[n.group.id]=n.group)}}return e.requestAnimationFrame(function(){for(var a in d)d[a].flushTriggers()}),this},b.findOrCreateByElement=function(a){return b.findByElement(a)||new b(a)},b.refreshAll=function(){for(var a in d)d[a].refresh()},b.findByElement=function(a){return d[a.waypointContextKey]},window.onload=function(){f&&f(),b.refreshAll()},e.requestAnimationFrame=function(b){var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||a;c.call(window,b)},e.Context=b}(),function(){"use strict";function a(a,b){return a.triggerPoint-b.triggerPoint}function b(a,b){return b.triggerPoint-a.triggerPoint}function c(a){this.name=a.name,this.axis=a.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),d[this.axis][this.name]=this}var d={vertical:{},horizontal:{}},e=window.Waypoint;c.prototype.add=function(a){this.waypoints.push(a)},c.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},c.prototype.flushTriggers=function(){for(var c in this.triggerQueues){var d=this.triggerQueues[c],e="up"===c||"left"===c;d.sort(e?b:a);for(var f=0,g=d.length;f-1&&this.waypoints.splice(b,1)},c.prototype.first=function(){return this.waypoints[0]},c.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},c.findOrCreate=function(a){return d[a.axis][a.name]||new c(a)},e.Group=c}(),function(){"use strict";function a(a){this.$element=b(a)}var b=window.jQuery,c=window.Waypoint;b.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(b,c){a.prototype[c]=function(){var a=Array.prototype.slice.call(arguments);return this.$element[c].apply(this.$element,a)}}),b.each(["extend","inArray","isEmptyObject"],function(c,d){a[d]=b[d]}),c.adapters.push({name:"jquery",Adapter:a}),c.Adapter=a}(),function(){"use strict";function a(a){return function(){var c=[],d=arguments[0];return a.isFunction(arguments[0])&&(d=a.extend({},arguments[1]),d.handler=arguments[0]),this.each(function(){var e=a.extend({},d,{element:this});"string"==typeof e.context&&(e.context=a(this).closest(e.context)[0]),c.push(new b(e))}),c}}var b=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=a(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=a(window.Zepto))}(),!function(a,b){function c(c){if("undefined"==typeof c)throw new Error('Pathformer [constructor]: "element" parameter is required');if(c.constructor===String&&(c=b.getElementById(c),!c))throw new Error('Pathformer [constructor]: "element" parameter is not related to an existing ID');if(!(c.constructor instanceof a.SVGElement||/^svg$/i.test(c.nodeName)))throw new Error('Pathformer [constructor]: "element" parameter must be a string or a SVGelement');this.el=c,this.scan(c)}function d(a,b,c){this.isReady=!1,this.setElement(a,b),this.setOptions(b),this.setCallback(c),this.isReady&&this.init()}c.prototype.TYPES=["line","ellipse","circle","polygon","polyline","rect"],c.prototype.ATTR_WATCH=["cx","cy","points","r","rx","ry","x","x1","x2","y","y1","y2"],c.prototype.scan=function(a){for(var b,c,d,e,f=a.querySelectorAll(this.TYPES.join(",")),g=0;g=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},d.prototype.setCallback=function(a){if(a&&a.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=a||function(){}},d.prototype.mapping=function(){var b,c,d,e,f,h,i,j;for(j=h=i=0,c=this.el.querySelectorAll("path"),b=0;b1?c.length-1:1),b=0;b=this.frameLength?(this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy(),this.callback(this)):(this.trace(),this.handle=e(function(){a.drawer()}))},d.prototype.trace=function(){var a,b,c,d;for(d=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength,a=0;a=g+f*b&&h>=c},d.prototype.docElem=a.document.documentElement,d.prototype.getViewportH=function(){var b=this.docElem.clientHeight,c=a.innerHeight;return c>b?c:b},d.prototype.scrollY=function(){return a.pageYOffset||this.docElem.scrollTop},e=function(){return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(b){return a.setTimeout(b,1e3/60)}}(),f=function(){return a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.mozCancelAnimationFrame||a.oCancelAnimationFrame||a.msCancelAnimationFrame||function(b){return a.clearTimeout(b)}}(),g=function(a,b){var c=parseInt(a,10);return c>=0?c:b},"function"==typeof define&&define.amd?define([],function(){return d}):"object"==typeof exports?module.exports=d:a.Vivus=d}(window,document),/*! * FitText.js 1.2 * * Copyright 2011, Dave Rupert http://daverupert.com * Released under the WTFPL license * http://sam.zoy.org/wtfpl/ * * Date: Thu May 05 14:23:00 2011 -0600 */ function(a){a.fn.fitText=function(b,c){var d=b||1,e=a.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},c);return this.each(function(){var b=a(this),c=function(){b.css("font-size",Math.max(Math.min(b.width()/(10*d),parseFloat(e.maxFontSize)),parseFloat(e.minFontSize)))};c(),a(window).on("resize.fittext orientationchange.fittext",c)})}}(jQuery);var czrapp=czrapp||{};!function(a,b){b._printLog=function(c){var d=function(){return a.Deferred(function(){var b=this;a.when(a("#footer").before(a("
",{id:"bulklog"}))).done(function(){a("#bulklog").css({position:"fixed","z-index":"99999","font-size":"0.8em",color:"#000",padding:"5%",width:"90%",height:"20%",overflow:"hidden",bottom:"0",left:"0",background:"yellow"}),b.resolve()})}).promise()},e=function(){a("#bulklog").prepend("

"+b._prettyfy({consoleArguments:[c],prettyfy:!1})+"

")};1!=a("#bulk-log").length?d().done(e):e()},b._truncate=function(a,b){return b=b||150,_.isString(a)?a.length>b?a.substr(0,b-1):a:""};var c=function(a){var b={bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]};a=_.extend(b,a);var c=Array.from(a.consoleArguments),d=function(a){return _.isString(a)?a.length>300?a.substr(0,299)+"...":a:""};return c=_.isEmpty(_.filter(c,function(a){return!_.isString(a)}))?c.join(" "):JSON.stringify(c.join(" ")),["%c "+d(c),["background:"+a.bgCol,"color:"+a.textCol,"display: block;"].join(";")]},d=function(a,d,e){_.isUndefined(console)&&"function"!=typeof window.console.log||(b.localized.isDevMode?_.isUndefined(d)?console.log.apply(console,c({bgCol:e,textCol:"#000",consoleArguments:["<"+a+">"]})):(console.log.apply(console,c({bgCol:e,textCol:"#000",consoleArguments:["<"+a+">"]})),console.log(d),console.log.apply(console,c({bgCol:e,textCol:"#000",consoleArguments:[""]}))):console.log.apply(console,c({bgCol:e,textCol:"#000",consoleArguments:[a]})))};b.consoleLog=function(){b.localized.isDevMode&&(_.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,c({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},b.errorLog=function(){_.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,c({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},b.errare=function(a,b){d(a,b,"#ffd5a0")},b.infoLog=function(a,b){d(a,b,"#5ed1f5")},b.doAjax=function(c){c=c||(_.isObject(c)?c:{});var d=c.ajaxUrl||b.localized.ajaxUrl,e=b.localized.frontNonce,f=a.Deferred(),g=_.extend({action:"",withNonce:!1},c);return"https:"==document.location.protocol&&(d=d.replace("http://","https://")),_.isEmpty(g.action)||!_.isString(g.action)?(b.errorLog("czrapp.doAjax : unproper action provided"),f.resolve().promise()):(g[e.id]=e.handle,!_.isObject(e)||_.isUndefined(e.id)||_.isUndefined(e.handle)?(b.errorLog("czrapp.doAjax : unproper nonce"),f.resolve().promise()):(a.post(d,g).done(function(a){"0"!==a&&"-1"!==a&&!1!==a.success||(b.errare("czrapp.doAjax : done ajax error for action : "+g.action,a),f.reject(a)),f.resolve(a)}).fail(function(a){b.errare("czrapp.doAjax : failed ajax error for : "+g.action,a),f.reject(a)}),f.promise()))}}(jQuery,czrapp),function(a,b){b.isKeydownButNotEnterEvent=function(a){return"keydown"===a.type&&13!==a.which},b.setupDOMListeners=function(c,d,e){var f={model:{},dom_el:{}};return _.isUndefined(e)||!_.isObject(e)?void b.errorLog("setupDomListeners : instance should be an object",d):_.isArray(c)?_.isObject(d)?(d=_.extend(f,d),d.dom_el instanceof jQuery&&1==d.dom_el.length?void _.map(c,function(c){if(!_.isString(c.selector)||_.isEmpty(c.selector))return void b.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+c.actions.join(","));if(!_.isString(c.selector)||_.isEmpty(c.selector))return void b.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+c.actions.join(","));var f=!!c.once&&c.once;d.dom_el[f?"one":"on"](c.trigger,c.selector,function(f,g){if(f.stopPropagation(),!b.isKeydownButNotEnterEvent(f)){f.preventDefault();var h=a.extend(!0,{},d);if(_.has(h,"model")&&_.has(h.model,"id")&&(_.has(e,"get")?h.model=e():h.model=e.getModel(h.model.id)),a.extend(h,{event:c,dom_event:f}),a.extend(h,g),!_.has(h,"event")||!_.has(h.event,"actions"))return void b.errorLog("executeEventActionChain : missing obj.event or obj.event.actions");try{b.executeEventActionChain(h,e)}catch(i){b.errorLog("In setupDOMListeners : problem when trying to fire actions : "+h.event.actions),b.errorLog("Error : "+i)}}})}):void b.errorLog("setupDomListeners : dom element should be an existing dom element",d)):void b.errorLog("setupDomListeners : args should be an object",c):void b.errorLog("setupDomListeners : event_map should be an array",d)},b.executeEventActionChain=function(a,c){if("function"==typeof a.event.actions)return a.event.actions.call(c,a);_.isArray(a.event.actions)||(a.event.actions=[a.event.actions]);var d=!1;_.map(a.event.actions,function(e){if(!d){if("function"!=typeof c[e])throw new Error("executeEventActionChain : the action : "+e+" has not been found when firing event : "+a.event.selector);var f=!(!_.has(a,"dom_el")||-1==a.dom_el.length)&&a.dom_el;if(!f)return void b.errorLog("missing dom element");f.trigger("before_"+e,_.omit(a,"event"));var g=c[e].call(c,a);!1===g&&(d=!0),f.trigger("after_"+e,_.omit(a,"event"))}})}}(jQuery,czrapp);var czrapp=czrapp||{};czrapp.methods={},function(a){var b,c,d=Array.prototype.slice;b=function(){},c=function(c,d,e){var f;return f=d&&d.hasOwnProperty("constructor")?d.constructor:function(){var a=c.apply(this,arguments);return a},a.extend(f,c),b.prototype=c.prototype,f.prototype=new b,d&&a.extend(f.prototype,d),e&&a.extend(f,e),f.prototype.constructor=f,f.__super__=c.prototype,f},czrapp.Class=function(b,c,d){var e,f=arguments;return b&&c&&czrapp.Class.applicator===b&&(f=c,a.extend(this,d||{})),e=this,this.instance&&(e=function(){return e.instance.apply(e,arguments)},a.extend(e,this)),e.initialize.apply(e,f),e},czrapp.Class.extend=function(a,b){var d=c(this,a,b);return d.extend=this.extend,d},czrapp.Class.applicator={},czrapp.Class.prototype.initialize=function(){},czrapp.Class.prototype.extended=function(a){for(var b=this;"undefined"!=typeof b.constructor;){if(b.constructor===a)return!0;if("undefined"==typeof b.constructor.__super__)return!1;b=b.constructor.__super__}return!1},czrapp.Events={trigger:function(a){return this.topics&&this.topics[a]&&this.topics[a].fireWith(this,d.call(arguments,1)),this},bind:function(b){return this.topics=this.topics||{},this.topics[b]=this.topics[b]||a.Callbacks(),this.topics[b].add.apply(this.topics[b],d.call(arguments,1)),this},unbind:function(a){return this.topics&&this.topics[a]&&this.topics[a].remove.apply(this.topics[a],d.call(arguments,1)),this}},czrapp.Value=czrapp.Class.extend({initialize:function(b,c){this._value=b,this.callbacks=a.Callbacks(),this._dirty=!1,a.extend(this,c||{}),this.set=a.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(b,c){var d=this._value,e=a.Deferred(),f=this,g=[];b=this._setter.apply(this,arguments),b=this.validate(b);var h=_.extend({silent:!1},_.isObject(c)?c:{});return null===b||_.isEqual(d,b)?e.resolveWith(f,[b,d,c]).promise():(this._value=b,this._dirty=!0,!0===h.silent?e.resolveWith(f,[b,d,c]).promise():this._deferreds?(_.each(f._deferreds,function(a){g.push(a.apply(null,[b,d,c]))}),a.when.apply(null,g).fail(function(){czrapp.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){f.callbacks.fireWith(f,[b,d,c]),e.resolveWith(f,[b,d,c])}),e.promise(f)):(this.callbacks.fireWith(this,[b,d,c]),e.resolveWith(f,[b,d,c]).promise(f)))},silent_set:function(a,b){var c=this._value;return a=this._setter.apply(this,arguments),a=this.validate(a),null===a||_.isEqual(c,a)?this:(this._value=a,this._dirty=_.isUndefined(b)||!_.isBoolean(b)?this._dirty:b,this.callbacks.fireWith(this,[a,c,{silent:!0}]),this)},_setter:function(a){return a},setter:function(a){var b=this.get();return this._setter=a,this._value=null,this.set(b),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(a){return a},bind:function(){var b=this,c=!1,d=[];return a.each(arguments,function(a,b){c||(c=_.isObject(b)&&b.deferred),_.isFunction(b)&&d.push(b)}),c?(b._deferreds=b._deferreds||[],_.each(d,function(a){_.contains(a,b._deferreds)||b._deferreds.push(a)})):b.callbacks.add.apply(b.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this}}),czrapp.Values=czrapp.Class.extend({defaultConstructor:czrapp.Value,initialize:function(b){a.extend(this,b||{}),this._value={},this._deferreds={}},instance:function(a){return 1===arguments.length?this.value(a):this.when.apply(this,arguments)},value:function(a){return this._value[a]},has:function(a){return"undefined"!=typeof this._value[a]},add:function(a,b){return this.has(a)?this.value(a):(this._value[a]=b,b.parent=this,b.extended(czrapp.Value)&&b.bind(this._change),this.trigger("add",b),this._deferreds[a]&&this._deferreds[a].resolve(),this._value[a])},create:function(a){return this.add(a,new this.defaultConstructor(czrapp.Class.applicator,d.call(arguments,1)))},each:function(b,c){c="undefined"==typeof c?this:c,a.each(this._value,function(a,d){b.call(c,d,a)})},remove:function(a){var b;this.has(a)&&(b=this.value(a),this.trigger("remove",b),b.extended(czrapp.Value)&&b.unbind(this._change),delete b.parent),delete this._value[a],delete this._deferreds[a]},when:function(){var b=this,c=d.call(arguments),e=a.Deferred();return a.isFunction(c[c.length-1])&&e.done(c.pop()),a.when.apply(a,a.map(c,function(c){if(!b.has(c))return b._deferreds[c]||a.Deferred()})).done(function(){var d=a.map(c,function(a){return b(a)});return d.length!==c.length?void b.when.apply(b,c).done(function(){e.resolveWith(b,d)}):void e.resolveWith(b,d)}),e.promise()},_change:function(){this.parent.trigger("change",this)}}),a.extend(czrapp.Values.prototype,czrapp.Events)}(jQuery);var czrapp=czrapp||{};!function(a,b){b.localized=HUParams||{};var c={cacheProp:function(){var c=this;a.extend(b,{$_window:a(window),$_html:a("html"),$_body:a("body"),$_header:a("#header"),$_wpadminbar:a("#wpadminbar"),$_mainWrapper:a(".main","#wrapper"),$_mainContent:a(".main","#wrapper").find(".content"),is_responsive:c.isResponsive(),current_device:c.getDevice()})},isResponsive:function(){return this.matchMedia(979)},getDevice:function(){var a={desktop:979,tablet:767,smartphone:480},b="desktop",c=this;return _.map(a,function(a,d){c.matchMedia(a)&&(b=d)}),b},matchMedia:function(c){return window.matchMedia?window.matchMedia("(max-width: "+c+"px)").matches:($_window=b.$_window||a(window),$_window.width()<=c-15)},emit:function(a,c){a=_.isArray(a)?a:[a];var d=this;_.map(a,function(a){"function"==typeof d[a]&&(c="undefined"==typeof c?Array():c,d[a].apply(d,c),b.trigger(a,_.object(_.keys(c),c)))})},triggerSimpleLoad:function(b){0!==b.length&&b.map(function(b,c){a(c).load(function(){a(c).trigger("simple_load")}),a(c)[0]&&a(c)[0].complete&&a(c).load()})},isUserLogged:function(){return b.$_body.hasClass("logged-in")||0!==b.$_wpadminbar.length},isSelectorAllowed:function(b,c,d){var e="ids"==d?"id":"class",f=c[d];if("object"!=typeof c||!c[d]||!a.isArray(c[d])||0===c[d].length)return!0;if(b.parents(f.map(function(a){return"id"==e?"#"+a:"."+a}).join(",")).length>0)return!1;if(!b.attr(e))return!0;var g=b.attr(e).split(" "),h=g.filter(function(b){return-1!=a.inArray(b,f)});return 0===h.length},_isMobileScreenSize:function(){return _.isFunction(window.matchMedia)&&matchMedia("only screen and (max-width: 720px)").matches||this._isCustomizing()&&"desktop"!=this.previewDevice()},_isCustomizing:function(){return b.$_body.hasClass("is-customizing")||"undefined"!=typeof wp&&"undefined"!=typeof wp.customize},_has_iframe:function(a){var b=[];return _.each(a,function(a,c){a.length>0&&a.find("IFRAME").length>0&&b.push(c)}),b}};b.methods.Base=b.methods.Base||{},a.extend(b.methods.Base,c)}(jQuery,czrapp),function(a,b){var c={addBrowserClassToBody:function(){a.browser.chrome?b.$_body.addClass("chrome"):a.browser.webkit&&b.$_body.addClass("safari"),a.browser.mozilla?b.$_body.addClass("mozilla"):(a.browser.msie||"8.0"===a.browser.version||"9.0"===a.browser.version||"10.0"===a.browser.version||"11.0"===a.browser.version)&&b.$_body.addClass("ie").addClass("ie"+a.browser.version.replace(/[.0]/g,"")),b.$_body.hasClass("ie")&&b.$_body.addClass(a.browser.version)}};b.methods.BrowserDetect=b.methods.BrowserDetect||{},a.extend(b.methods.BrowserDetect,c)}(jQuery,czrapp);var czrapp=czrapp||{};!function(a,b){var c={imgSmartLoad:function(){var b=1==HUParams.imgSmartLoadEnabled,c=HUParams.imgSmartLoadOpts.parentSelectors.join();if(b&&a(c).imgSmartLoad(_.size(HUParams.imgSmartLoadOpts.opts)>0?HUParams.imgSmartLoadOpts.opts:{}),1==HUParams.centerAllImg){var d=this,e=b?a(_.filter(a(c).find("img"),function(b){return a(b).is(HUParams.imgSmartLoadOpts.opts.excludeImg.join())})):a(c).find("img");$_to_center_with_delay=a(_.filter(e,function(b){return a(b).hasClass("tc-holder-img")})),setTimeout(function(){d.triggerSimpleLoad($_to_center_with_delay)},300),d.triggerSimpleLoad(e)}},extLinks:function(){(HUParams.extLinksStyle||HUParams.extLinksTargetExt)&&a("a",".post-inner .entry").extLinks({addIcon:HUParams.extLinksStyle,iconClassName:"hu-external",newTab:HUParams.extLinksTargetExt,skipSelectors:_.isObject(HUParams.extLinksSkipSelectors)?HUParams.extLinksSkipSelectors:{}})},parallax:function(){a(".parallax-item").czrParallax()}};b.methods.JQPlugins=b.methods.JQPlugins||{},a.extend(b.methods.JQPlugins={},c)}(jQuery,czrapp);var czrapp=czrapp||{};!function(a,b){var c={setupUIListeners:function(){var c=this;if(this.windowWidth=new b.Value(b.$_window.width()),this.isScrolling=new b.Value((!1)),this.isResizing=new b.Value((!1)),this.scrollPosition=new b.Value(b.$_window.scrollTop()),this.scrollDirection=new b.Value("down"),c.previewDevice=new b.Value("desktop"),c._isCustomizing()){var d=function(){wp.customize.preview.bind("previewed-device",function(a){c.previewDevice(a)})};wp.customize.preview?d():wp.customize.bind("preview-ready",function(){d()})}c.windowWidth.bind(function(b,d){c.isResizing(c._isMobileScreenSize?Math.abs(d-b)>2:Math.abs(d-b)>0),clearTimeout(a.data(this,"resizeTimer")),a.data(this,"resizeTimer",setTimeout(function(){c.isResizing(!1)},50))}),c.isResizing.bind(function(a){b.$_body.toggleClass("is-resizing",a)}),this.isScrolling.bind(function(a,c){b.$_body.toggleClass("is-scrolling",a),a||b.trigger("scrolling-finished")}),this.scrollPosition.bind(function(a,d){b.$_body.toggleClass("is-scrolled",a>100),a<=50&&b.trigger("page-scrolled-top",{}),c.scrollDirection(a>=d?"down":"up")}),b.$_window.resize(_.throttle(function(a){c.windowWidth(b.$_window.width())},10)),b.$_window.scroll(_.throttle(function(){c.isScrolling(!0),c.scrollPosition(b.$_window.scrollTop()),clearTimeout(a.data(this,"scrollTimer")),a.data(this,"scrollTimer",setTimeout(function(){c.isScrolling(!1)},100))},10))},onSlidingCompleteResetCSS:function(b){b=b?b:a(this),b.css({display:"",paddingTop:"",marginTop:"",paddingBottom:"",marginBottom:"",height:""})}};b.methods.UserXP=b.methods.UserXP||{},a.extend(b.methods.UserXP,c)}(jQuery,czrapp);var czrapp=czrapp||{};!function(a,b){var c={mobileMenu:function(){var c=this;c.mobileMenu=new b.Values,a(".nav-container").each(function(d){if(_.isString(a(this).attr("data-menu-id"))){var e,f=a(this),g=!_.isString(a(this).attr("data-menu-scrollable"))||"false"!=a(this).attr("data-menu-scrollable"),h=f.attr("data-menu-id");if(!c.mobileMenu.has(h)){var i=f.find(".nav-wrap"),j=".nav-toggle, .ham__navbar-toggler, .ham__navbar-toggler-two",k=f.find(j);1==i.length&&1==k.length&&(e=b.Value.extend(c.MobileCTOR),c.mobileMenu.add(h,new e(h,{container:f,menu_wrapper:i,button:k,button_selectors:j,is_scrollable:g})))}}})},MobileCTOR:{initialize:function(c,d){var e=this;b.Value.prototype.initialize.call(e,null,d),a.extend(e,d||{}),e("collapsed").button.toggleClass("collapsed",!0).toggleClass("active",!1).attr("aria-expanded",!1),e.bind(function(c){return a.Deferred(function(){var a=this;b.userXP.headerSearchExpanded(!1).done(function(){e._toggleMobileMenu().done(function(b){e.button.toggleClass("hovering","expanded"==b).toggleClass("focusing","expanded"==b),a.resolve()})})}).promise()},{deferred:!0}),b.setupDOMListeners([{trigger:"click keydown",selector:e.button_selectors,actions:function(){var a=this;a("collapsed"==a()?"expanded":"collapsed")}},{trigger:"mouseenter",selector:e.button_selectors,actions:function(){this.button.addClass("hovering")}},{trigger:"mouseleave",selector:e.button_selectors,actions:function(){this.button.removeClass("hovering")}}],{dom_el:e.container},e),b.localized.mobileSubmenuExpandOnClick&&(e.menu_wrapper.addClass("submenu-click-expand"),b.setupDOMListeners([{trigger:"click keydown",selector:e.button_selectors,actions:function(){var a=this;a._collapsibleSubmenu()},once:!0}],{dom_el:e.container},e)),b.userXP.isResizing.bind(function(a){a&&e("collapsed")})},_toggleMobileMenu:function(){var c=this,d="expanded"==c(),e=a.Deferred();return c.button.toggleClass("collapsed",!d).toggleClass("active",d).attr("aria-expanded",d),a.when(c.menu_wrapper.toggleClass("expanded",d)).done(function(){var f=a(this);f.find(".nav").stop()[d?"slideDown":"slideUp"]({duration:300,complete:function(){if(c.is_scrollable){var g="undefined"==typeof window.innerHeight?window.innerHeight:b.$_window.height(),h=g-f.offset().top+b.$_window.scrollTop();f.css({"max-height":d?h:"",overflow:"auto"})}b.userXP.onSlidingCompleteResetCSS(a(this).toggleClass("expanded",d)),e.resolve(d)}})}),e.promise()},_collapsibleSubmenu:function(){var c=this,d=".hu.submenu",e={SHOW:"show"+d,HIDE:"hide"+d,CLICK:"click"+d},f={DD_TOGGLE_ON_CLICK:"submenu-click-expand",SHOWN:"expanded",DD_TOGGLE:"hu-dropdown-toggle",DD_TOGGLE_WRAPPER:"hu-dropdown-toggle-wrapper",SCREEN_READER:"screen-reader-text"},g={DD_TOGGLE_PARENT:".menu-item-has-children, .page_item_has_children",CURRENT_ITEM_ANCESTOR:".current-menu-ancestor",SUBMENU:".sub-menu"},h=a("