/*! 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]),g=c.attr(this.options.attribute[2]),h=this;c.parent().hasClass("smart-loading")||(c.parent().addClass("smart-loading"),c.off("load_img").removeAttr(this.options.attribute.join(" ")).attr("sizes",g).attr("srcset",e).attr("src",d).on("load",function(){if(c.hasClass(f)||c.fadeIn(h.options.fadeIn_options).addClass(f),"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.trigger("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="string"==typeof this.$_el.attr("href")?this.$_el.attr("href").trim():"",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.append(''),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]||!Array.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!Array.isArray(c)||(c=c.map(function(a){return a.toUpperCase()}),-1==a.inArray(b,c))},b.prototype._is_external=function(a){var b=location.host.split(".").slice(-2).join("."),c=new RegExp(b);if("string"==typeof a)return a=a.trim(),""!==a&&"#"!=a&&this._isValidURL(a)?!c.test(a):void 0},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=_.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).on("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(),_.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).on("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||!_.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(){for(var a=0,b=["ms","moz","webkit","o"],c=0;cd.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))}(),/*! * 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))+"px")};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).on("load",function(){a(c).trigger("simple_load")}),a(c)[0]&&a(c)[0].complete&&a(c).trigger("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},observeAddedNodesOnDom:function(b,c,d){var e=function(b){b.forEach(function(b){if(b.addedNodes.length)for(var e=a(b.addedNodes).find(c),f=0,g=e.length;f0?HUParams.imgSmartLoadOpts.opts:{};var d=function(){b&&a(c).each(function(){a(this).data("smartLoadDone")?a(this).trigger("trigger-smartload"):a(this).imgSmartLoad(_params)})};if(d(),this.observeAddedNodesOnDom("body","img",_.debounce(function(a){d()},50)),1==HUParams.centerAllImg){var e=this,f=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(f,function(b){return a(b).hasClass("tc-holder-img")})),setTimeout(function(){e.triggerSimpleLoad($_to_center_with_delay)},300),e.triggerSimpleLoad(f)}},extLinks:function(){(HUParams.extLinksStyle||HUParams.extLinksTargetExt)&&a("a",".post-inner .entry p, .post-inner .entry li, .type-page .entry p, .type-page .entry li").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.on("resize",_.throttle(function(a){c.windowWidth(b.$_window.width())},10)),b.$_window.on("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:"mousedown focusin 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:"mousedown focusin 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")}),a(e.container).on("mouseup",".menu-item a",function(c){b.userXP._isMobileScreenSize()&&"#"!==a(this).attr("href")&&(c.preventDefault(),c.stopPropagation(),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:"mousedown"+d,FOCUSIN:"focusin"+d,FOCUSOUT:"focusout"+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("