/*! addEventListener Polyfill ie9- http://stackoverflow.com/a/27790212*/ var tcOutline;window.addEventListener=window.addEventListener||function(e,t){window.attachEvent("on"+e,t)}, /*! 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(e,t){if(void 0!==t)throw"The multiple-argument version of Object.create is not provided by this browser and cannot be shimmed.";function i(){}return i.prototype=e,new i}) /*! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter */,Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=[],o=arguments.length>=2?arguments[1]:void 0,s=0;s>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(i=t),n=new Array(r),o=0;o0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),i)};return function(e){var i=this,o=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var s,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!t(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}for(var a,l=n(o.length),c=t(i)?Object(new i(l)):new Array(l),d=0;d=s-c&&a<=r+c},s.prototype._load_img=function(t){var i=e(t),n=i.attr(this.options.attribute[0]),s=i.attr(this.options.attribute[1]),r=i.attr(this.options.attribute[2]),a=this;i.parent().hasClass("smart-loading")||(i.parent().addClass("smart-loading"),i.off("load_img").removeAttr(this.options.attribute.join(" ")).attr("sizes",r).attr("srcset",s).attr("src",n).on("load",(function(){if(i.hasClass(o)||i.fadeIn(a.options.fadeIn_options).addClass(o),void 0!==i.attr("data-tcjp-recalc-dims")&&!1!==i.attr("data-tcjp-recalc-dims")){var e=i.originalWidth(),t=i.originalHeight();if(2!=_.size(_.filter([e,t],(function(e){return _.isNumber(parseInt(e,10))&&e>1}))))return;i.removeAttr("data-tcjp-recalc-dims scale"),i.attr("width",e),i.attr("height",t)}i.trigger("smartload"),i.data("czr-smart-loaded",!0)})),i[0].complete&&i.trigger("load"),i.parent().removeClass("smart-loading"))},e.fn[i]=function(t){return this.each((function(){e.data(this,"plugin_"+i)||e.data(this,"plugin_"+i,new s(this,t))}))}}(jQuery,window),function(e){var t={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};function i(i,n){this.$_el=e(i),this.options=e.extend({},t,n),this._href="string"==typeof this.$_el.attr("href")?this.$_el.attr("href").trim():"",this.init()}i.prototype.init=function(){var e=this.$_el.next("."+this.options.iconClassName);this._is_eligible()?(this.options.addIcon&&0===e.length&&this.$_el.append(''),this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank")):e.length&&e.remove()},i.prototype._is_eligible=function(){var t=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter((function(e){return t._is_selector_allowed(e)})).length){var i=!0;return e.each(this.$_el.parents(),(function(){if("underline"==e(this).css("textDecoration"))return i=!1,!1})),i}},i.prototype._is_selector_allowed=function(t){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,t);var i="ids"==t?"id":"class",n=this.options.skipSelectors[t];return"object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[t]||!Array.isArray(this.options.skipSelectors[t])||0===this.options.skipSelectors[t].length||!(this.$_el.parents(n.map((function(e){return"id"==i?"#"+e:"."+e})).join(",")).length>0)&&(!this.$_el.attr(i)||0===this.$_el.attr(i).split(" ").filter((function(t){return-1!=e.inArray(t,n)})).length)},i.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var t=this.$_el.children().first()[0].tagName,i=this.options.skipChildTags;return!Array.isArray(i)||(i=i.map((function(e){return e.toUpperCase()})),-1==e.inArray(t,i))},i.prototype._is_external=function(e){var t=location.host.split(".").slice(-2).join("."),i=new RegExp(t);if("string"==typeof e)return""!==(e=e.trim())&&"#"!=e&&this._isValidURL(e)?!i.test(e):void 0},i.prototype._isValidURL=function(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)},e.fn.extLinks=function(t){return this.each((function(){e.data(this,"plugin_extLinks")||e.data(this,"plugin_extLinks",new i(this,t))}))}}(jQuery),function(e,t){var i="centerImages",n={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};function o(t,o){var s=this;this.container=t,this.options=e.extend({},n,o),this._defaults=n,this._name=i,this._customEvt=_.isArray(s.options.oncustom)?s.options.oncustom:s.options.oncustom.split(" "),this.init()}o.prototype.init=function(){var i=this,n=function(n){n=n||"init",i._maybe_apply_golden_r();var o=e(i.options.imgSel,i.container);i.options.enableGoldenRatio&&e(t).on("resize",{},_.debounce((function(e){i._maybe_apply_golden_r(e)}),200)),1<=o.length&&i.options.enableCentering&&i._parse_imgs(o,n)};i.options.onInit&&n(),_.isArray(i._customEvt)&&i._customEvt.map((function(t){(i.options.$containerToListen instanceof e&&1this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:t,e(this.container).css({"line-height":t+"px",height:t+"px"}).trigger("golden-ratio-applied")}else e(this.container).attr("style","")},o.prototype._is_window_width_allowed=function(){return e(t).width()>this.options.disableGRUnder-15},o.prototype._parse_imgs=function(i,n){var o=this;if(i.each((function(i,s){var r=e(s);o._pre_img_cent(r,n),o.options.onresize&&!r.data("resize-react-bound")&&(r.data("resize-react-bound",!0),e(t).on("resize",_.debounce((function(){o._pre_img_cent(r,"resize")}),100)))})),e(o.container).attr("data-img-centered-in-container")){var s=parseInt(e(o.container).attr("data-img-centered-in-container"),10)+1;e(o.container).attr("data-img-centered-in-container",s)}else e(o.container).attr("data-img-centered-in-container",1)},o.prototype._pre_img_cent=function(t){var i=this._get_current_state(t),n=this,o=i.current,s=i.prop[o],r=i.prop["h"==o?"v":"h"],a="h"==o?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,l=function(e){if(e.css(s.dim.name,s.dim.val).css(r.dim.name,n.options.defaultCSSVal[r.dim.name]||"auto").css(s.dir.name,s.dir.val).css(r.dir.name,a),0!==n.options.addCenteredClassWithDelay&&_.isNumber(n.options.addCenteredClassWithDelay)?_.delay((function(){e.addClass(s._class).removeClass(r._class)}),n.options.addCenteredClassWithDelay):e.addClass(s._class).removeClass(r._class),e.attr("data-img-centered")){var t=parseInt(e.attr("data-img-centered"),10)+1;e.attr("data-img-centered",t)}else e.attr("data-img-centered",1);return e};this.options.setOpacityWhenCentered?e.when(l(t)).done((function(e){e.css("opacity",n.options.opacity)})):_.delay((function(){l(t)}),0)},o.prototype._get_current_state=function(t){var i=t.closest(this.container).outerWidth(),n=e(this.container).outerHeight(),o=this._get_img_dim(t,"x"),s=this._get_img_dim(t,"y"),r=s*n!=0?Math.round(o/s*n):i,a=o*i!=0?Math.round(s/o*i):n,l="h";return 0!=i*o&&(l=n/i>=s/o?"h":"v"),{current:l,prop:{h:{dim:{name:"height",val:n},dir:{name:"left",val:(i-r)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:i},dir:{name:"top",val:(n-a)/2+(this.options.topAdjust||0)},_class:"v-centered"}}}},o.prototype._get_img_dim=function(e,t){if(!this.options.useImgAttr)return"x"==t?e.outerWidth():e.outerHeight();if(e.is(":visible"))return"x"==t?e.outerWidth():e.outerHeight();if("x"==t){var i=e.originalWidth();return void 0===typeof i?0:i}if("y"==t){var n=e.originalHeight();return void 0===typeof n?0:n}},o.prototype._is_selector_allowed=function(){if(!e(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!_.isArray(this.options.skipGoldenRatioClasses))return!0;var t=e(this.container).attr("class").split(" "),i=this.options.skipGoldenRatioClasses;return 0===t.filter((function(t){return-1!=e.inArray(t,i)})).length},e.fn[i]=function(t){return this.each((function(){e.data(this,"plugin_"+i)||e.data(this,"plugin_"+i,new o(this,t))}))}}(jQuery,window),function(e,t,i){var n="czrParallax",o={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};function s(t,i){this.element=e(t),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=e.extend({},o,i,this.parseElementDataOptions()),this._defaults=o,this._name=n,this.init()}s.prototype.parseElementDataOptions=function(){return this.element.data()},s.prototype.init=function(){this.$_document=e(document),this.$_window=czrapp?czrapp.$_window:e(t),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},s.prototype._bind_evt=function(){i.bindAll(this,"maybeParallaxMe","parallaxMe")},s.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var e=this.element_wrapper;e.length&&e.css("overflow","hidden")}},s.prototype.initWaypoints=function(){var e=this;this.way_start=new Waypoint({element:e.element_wrapper.length?e.element_wrapper:e.element,handler:function(){e.maybeParallaxMe(),e.element.hasClass("parallaxing")?(e.element.removeClass("parallaxing"),e.$_window.off("scroll",e.maybeParallaxMe),e.doingAnimation=!1,e.element.css("top",0)):(e.$_window.on("scroll",e.maybeParallaxMe),e.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:e.element_wrapper.length?e.element_wrapper:e.element,handler:function(){e.maybeParallaxMe(),e.element.hasClass("parallaxing")?(e.element.removeClass("parallaxing"),e.$_window.off("scroll",e.maybeParallaxMe),e.doingAnimation=!1):(e.$_window.on("scroll",e.maybeParallaxMe),e.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},s.prototype.maybeParallaxMe=function(){var e=this;if(i.isFunction(t.matchMedia)&&matchMedia(e.options.matchMedia).matches)return this.setTopPosition();this.doingAnimation||(this.doingAnimation=!0,t.requestAnimationFrame((function(){e.parallaxMe(),e.doingAnimation=!1})))},s.prototype.setTopPosition=function(e){e=e||0,this.element.css({transform:"translate3d(0px, "+e+"px, .01px)","-webkit-transform":"translate3d(0px, "+e+"px, .01px)"})},s.prototype.parallaxMe=function(){var e=this.options.parallaxRatio,t=this.options.parallaxDirection,i=e*t*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(t*i<0?0:i)},e.fn.czrParallax=function(t){return this.each((function(){e.data(this,"plugin_czrParallax")||e.data(this,"plugin_czrParallax",new s(this,t))}))}}(jQuery,window,_),function(){for(var e=0,t=["ms","moz","webkit","o"],i=0;in.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s],a=n.oldScroll=r.triggerPoint;(a&&l||!a&&!l)&&(r.queueTrigger(o),e[r.group.id]=r.group)}}for(var c in e)e[c].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},s.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},s.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},s.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},s.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var n=0,o=e.length;n-1&&(p=Math.ceil(r.contextDimension*p/100))),l=r.contextScroll-r.contextOffset,h.triggerPoint=m+l-p,c=f=r.oldScroll,u=!c&&!d,!g&&(c&&d)?(h.queueTrigger(r.backward),o[h.group.id]=h.group):(!g&&u||g&&r.oldScroll>=h.triggerPoint)&&(h.queueTrigger(r.forward),o[h.group.id]=h.group)}}return n.requestAnimationFrame((function(){for(var e in o)o[e].flushTriggers()})),this},s.findOrCreateByElement=function(e){return s.findByElement(e)||new s(e)},s.refreshAll=function(){for(var e in i)i[e].refresh()},s.findByElement=function(e){return i[e.waypointContextKey]},window.onload=function(){o&&o(),s.refreshAll()},n.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},n.Context=s}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}var i={vertical:{},horizontal:{}},n=window.Waypoint;function o(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}o.prototype.add=function(e){this.waypoints.push(e)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?t:e);for(var s=0,r=n.length;s-1&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(e){return i[e.axis][e.name]||new o(e)},n.Group=o}(),function(){"use strict";var e=window.jQuery,t=window.Waypoint;function i(t){this.$element=e(t)}e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,t){i.prototype[t]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[t].apply(this.$element,e)}})),e.each(["extend","inArray","isEmptyObject"],(function(t,n){i[n]=e[n]})),t.adapters.push({name:"jquery",Adapter:i}),t.Adapter=i}(),function(){"use strict";var e=window.Waypoint;function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&((n=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=t.extend({},n,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),i.push(new e(o))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(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(e){e.fn.fitText=function(t,i){var n=t||1,o=e.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each((function(){var t=e(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(10*n),parseFloat(o.maxFontSize)),parseFloat(o.minFontSize))+"px")};i(),e(window).on("resize.fittext orientationchange.fittext",i)}))}}(jQuery);var czrapp=czrapp||{};!function(e,t){t._printLog=function(i){var n=function(){e("#bulklog").prepend("

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

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