(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing["jswing"]=$.easing["swing"];var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);
(B=>{var R={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",fallbackHTML:!1,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!0,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!0,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};B.fn.bxSlider=function(e){var d,c,n,s,o,t,r,a,l,g,u,p,h,v,f,x,m,b,S,w,C,T,k,E,y,F,M,P,z,I,O,N,H,X,Y,q,V,Z,L,A,D,W;return 0===this.length?this:1<this.length?(this.each(function(){B(this).bxSlider(e)}),this):(d={},c=this,n=B(window).width(),s=B(window).height(),B(c).data("bxSlider")?void 0:(o=function(){B(c).data("bxSlider")||(d.settings=B.extend({},R,e),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(d.settings.speed=0),d.settings.slideWidth=parseInt(d.settings.slideWidth),d.children=c.children(d.settings.slideSelector),d.children.length<d.settings.minSlides&&(d.settings.minSlides=d.children.length),d.children.length<d.settings.maxSlides&&(d.settings.maxSlides=d.children.length),d.settings.randomStart&&(d.settings.startSlide=Math.floor(Math.random()*d.children.length)),d.active={index:d.settings.startSlide},d.carousel=1<d.settings.minSlides||1<d.settings.maxSlides,d.carousel&&(d.settings.preloadImages="all"),d.minThreshold=d.settings.minSlides*d.settings.slideWidth+(d.settings.minSlides-1)*d.settings.slideMargin,d.maxThreshold=d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin,d.working=!1,d.controls={},d.interval=null,d.animProp="vertical"===d.settings.mode?"top":"left",d.usingCSS=d.settings.useCSS&&"fade"!==d.settings.mode&&(()=>{for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return d.cssPrefix=e[i].replace("Perspective","").toLowerCase(),d.animProp="-"+d.cssPrefix+"-transform",!0;return!1})(),"vertical"===d.settings.mode&&(d.settings.maxSlides=d.settings.minSlides),c.data("origStyle",c.attr("style")),c.children(d.settings.slideSelector).each(function(){B(this).data("origStyle",B(this).attr("style"))}),t())},t=function(){var t=d.children.eq(d.settings.startSlide);c.wrap('<div class="'+d.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),d.viewport=c.parent(),d.settings.ariaLive&&!d.settings.ticker&&d.viewport.attr("aria-live","polite"),d.loader=B('<div class="bx-loading" />'),d.viewport.prepend(d.loader),c.css({width:"horizontal"===d.settings.mode?1e3*d.children.length+215+"%":"auto",position:"relative"}),d.usingCSS&&d.settings.easing?c.css("-"+d.cssPrefix+"-transition-timing-function",d.settings.easing):d.settings.easing||(d.settings.easing="swing"),d.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),d.viewport.parent().css({maxWidth:g()}),d.settings.pager||d.settings.controls||d.viewport.parent().css({margin:"0 auto 0px"}),d.children.css({float:"horizontal"===d.settings.mode?"left":"none",listStyle:"none",position:"relative"}),d.children.css("width",u()),"horizontal"===d.settings.mode&&0<d.settings.slideMargin&&d.children.css("marginRight",d.settings.slideMargin),"vertical"===d.settings.mode&&0<d.settings.slideMargin&&d.children.css("marginBottom",d.settings.slideMargin),"fade"===d.settings.mode&&(d.children.css({position:"absolute",zIndex:0,display:"none"}),d.children.eq(d.settings.startSlide).css({zIndex:d.settings.slideZIndex,display:"block"})),d.controls.el=B('<div class="bx-controls" />'),d.settings.captions&&C(),d.active.last=d.settings.startSlide===h()-1,d.settings.video&&c.fitVids(),"all"!==d.settings.preloadImages&&!d.settings.ticker||(t=d.children),d.settings.ticker?d.settings.pager=!1:(d.settings.controls&&S(),d.settings.pager&&b(),d.settings.auto&&d.settings.autoControls&&w(),(d.settings.controls||d.settings.autoControls||d.settings.pager)&&d.viewport.after(d.controls.el)),r(t,a)},r=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0===i?e():t.find('img:not([src=""]), iframe').each(function(){B(this).one("load error",function(){++n===i&&e()}).each(function(){setTimeout(()=>{!this.complete&&""!=this.src||B(this).trigger("load")},0)})})},a=function(){var t,e;d.settings.infiniteLoop&&"fade"!==d.settings.mode&&!d.settings.ticker&&(e="vertical"===d.settings.mode?d.settings.minSlides:d.settings.maxSlides,t=d.children.slice(0,e).clone(!0).addClass("bx-clone"),e=d.children.slice(-e).clone(!0).addClass("bx-clone"),d.settings.ariaHidden&&(t.attr("aria-hidden",!0),e.attr("aria-hidden",!0),t.find("a, button").attr("tabindex",-1),e.find("a, button").attr("tabindex",-1)),c.append(t).prepend(e)),d.loader.remove(),f(),"vertical"===d.settings.mode&&(d.settings.adaptiveHeight=!0),d.viewport.height(l()),c.redrawSlider(),d.settings.onSliderLoad.call(c,d.active.index),d.initialized=!0,d.settings.responsive&&B(window).bind("resize",D),d.settings.auto&&d.settings.autoStart&&(1<h()||d.settings.autoSlideForOnePage)&&O(),d.settings.ticker&&N(),d.settings.pager&&M(d.settings.startSlide),d.settings.controls&&I(),"ontouchstart"in window&&V(),d.settings.keyboardEnabled&&!d.settings.ticker&&d.viewport.closest(".fl-module").keydown(q).focusin(Y)},l=function(){var e=0,t=B();if("vertical"===d.settings.mode||d.settings.adaptiveHeight)if(d.carousel){var n=1===d.settings.moveSlides?d.active.index:d.active.index*v(),t=d.children.eq(n);for(i=1;i<=d.settings.maxSlides-1;i++)t=n+i>=d.children.length?t.add(d.children.eq(i-1)):t.add(d.children.eq(n+i))}else t=d.children.eq(d.active.index);else t=d.children;return"vertical"===d.settings.mode?(t.each(function(t){e+=B(this).outerHeight()}),0<d.settings.slideMargin&&(e+=d.settings.slideMargin*(d.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return B(this).outerHeight(!1)}).get()),"border-box"===d.viewport.css("box-sizing")?e+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))+parseFloat(d.viewport.css("border-top-width"))+parseFloat(d.viewport.css("border-bottom-width")):"padding-box"===d.viewport.css("box-sizing")&&(e+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))),e},g=function(){var t="100%";return t=0<d.settings.slideWidth?"horizontal"===d.settings.mode?d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin:d.settings.slideWidth:t},u=function(){var t=d.settings.slideWidth,e=d.viewport.width();if(0===d.settings.slideWidth||d.settings.slideWidth>e&&!d.carousel||"vertical"===d.settings.mode)t=e;else if(1<d.settings.maxSlides&&"horizontal"===d.settings.mode){if(e>d.maxThreshold)return t;e<d.minThreshold?t=(e-d.settings.slideMargin*(d.settings.minSlides-1))/d.settings.minSlides:d.settings.shrinkItems&&(t=Math.floor((e+d.settings.slideMargin)/Math.ceil((e+d.settings.slideMargin)/(t+d.settings.slideMargin))-d.settings.slideMargin))}return t},p=function(){var t,e=1;return"horizontal"===d.settings.mode&&0<d.settings.slideWidth?e=d.viewport.width()<d.minThreshold?d.settings.minSlides:d.viewport.width()>d.maxThreshold?d.settings.maxSlides:(t=d.children.first().width()+d.settings.slideMargin,Math.floor((d.viewport.width()+d.settings.slideMargin)/t)):"vertical"===d.settings.mode&&(e=d.settings.minSlides),e},h=function(){var t=0,e=0,i=0;if(0<d.settings.moveSlides)if(d.settings.infiniteLoop)t=Math.ceil(d.children.length/v());else for(;e<d.children.length;)++t,e=i+p(),i+=d.settings.moveSlides<=p()?d.settings.moveSlides:p();else t=Math.ceil(d.children.length/p());return t},v=function(){return 0<d.settings.moveSlides&&d.settings.moveSlides<=p()?d.settings.moveSlides:p()},f=function(){var t,e;d.children.length>d.settings.maxSlides&&d.active.last&&!d.settings.infiniteLoop?"horizontal"===d.settings.mode?(t=(e=d.children.last()).position(),x(-(t.left-(d.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===d.settings.mode&&(e=d.children.length-d.settings.minSlides,t=d.children.eq(e).position(),x(-t.top,"reset",0)):(t=d.children.eq(d.active.index*v()).position(),d.active.index===h()-1&&(d.active.last=!0),void 0!==t&&("horizontal"===d.settings.mode?x(-t.left,"reset",0):"vertical"===d.settings.mode&&x(-t.top,"reset",0)))},x=function(t,e,i,n){var s;d.usingCSS?(s="vertical"===d.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",c.css("-"+d.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(c.css(d.animProp,s),0!==i?c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){B(t.target).is(c)&&(c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),P())}):P()):"reset"===e?c.css(d.animProp,s):"ticker"===e&&(c.css("-"+d.cssPrefix+"-transition-timing-function","linear"),c.css(d.animProp,s),0!==i?c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){B(t.target).is(c)&&(c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),x(n.resetValue,"reset",0),H())}):(x(n.resetValue,"reset",0),H()))):((s={})[d.animProp]=t,"slide"===e?c.animate(s,i,d.settings.easing,function(){P()}):"reset"===e?c.css(d.animProp,t):"ticker"===e&&c.animate(s,i,"linear",function(){x(n.resetValue,"reset",0),H()}))},m=function(){for(var t="",e="",i=h(),n=0;n<i;n++)e="",e=d.settings.buildPager&&"function"==typeof d.settings.buildPager||d.settings.pagerCustom?d.settings.buildPager(n):n+1,d.pagerEl.addClass("bx-default-pager"),d.settings.fallbackHTML?t+='<div class="bx-pager-item"><a data-slide-index="'+n+'" class="bx-pager-link" role="button" tabindex="0">'+e+"</a></div>":t+='<div class="bx-pager-item"><button data-slide-index="'+n+'" class="bx-pager-link fl-content-ui-button" type="button">'+e+"</button></div>";d.pagerEl.html(t)},b=function(){d.settings.pagerCustom?d.pagerEl=B(d.settings.pagerCustom):(d.pagerEl=B('<div class="bx-pager" />'),d.settings.pagerSelector?B(d.settings.pagerSelector).html(d.pagerEl):d.controls.el.addClass("bx-has-pager").append(d.pagerEl),m()),d.pagerEl.on("click touchend","a, button",F)},S=function(){d.settings.fallbackHTML?(d.controls.next=B('<a class="bx-next" role="button" tabindex="0">'+d.settings.nextText+"</a>"),d.controls.prev=B('<a class="bx-prev" role="button" tabindex="0">'+d.settings.prevText+"</a>")):(d.controls.next=B('<button class="bx-next fl-content-ui-button" type="button">'+d.settings.nextText+"</button>"),d.controls.prev=B('<button class="bx-prev fl-content-ui-button" type="button">'+d.settings.prevText+"</button>")),d.controls.next.bind("click touchend",T),d.controls.prev.bind("click touchend",k),d.settings.nextSelector&&B(d.settings.nextSelector).append(d.controls.next),d.settings.prevSelector&&B(d.settings.prevSelector).append(d.controls.prev),d.settings.nextSelector||d.settings.prevSelector||(d.controls.directionEl=B('<div class="bx-controls-direction" />'),d.controls.directionEl.append(d.controls.prev).append(d.controls.next),d.controls.el.addClass("bx-has-controls-direction").append(d.controls.directionEl))},w=function(){["start","stop"].forEach(function(t){var e=null,i="start"===t?"false":"true";e=d.settings.fallbackHTML?"<a "+('class="bx-'+t+'" role="button" tabindex="0" aria-pressed="'+i+'"')+">"+d.settings[t+"Text"]+"</a>":"<button "+('class="bx-'+t+' fl-content-ui-button" type="button" aria-pressed="'+i+'"')+">"+d.settings[t+"Text"]+"</button>",d.controls[t]=B('<div class="bx-controls-auto-item">'+e+"</div>")}),d.controls.autoEl=B('<div class="bx-controls-auto" />'),d.controls.autoEl.on("click",".bx-start",E),d.controls.autoEl.on("click",".bx-stop",y),d.settings.autoControlsCombine?d.controls.autoEl.append(d.controls.start):d.controls.autoEl.append(d.controls.start).append(d.controls.stop),d.settings.autoControlsSelector?B(d.settings.autoControlsSelector).html(d.controls.autoEl):d.controls.el.addClass("bx-has-controls-auto").append(d.controls.autoEl),z(d.settings.autoStart?"stop":"start")},C=function(){d.children.each(function(t){var e=B(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&B(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},T=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),c.goToNextSlide())},k=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),c.goToPrevSlide())},E=function(t){c.startAuto(),t.preventDefault()},y=function(t){c.stopAuto(),t.preventDefault()},F=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),void 0!==(t=B(t.currentTarget)).attr("data-slide-index")&&(t=parseInt(t.attr("data-slide-index")))!==d.active.index&&c.goToSlide(t))},M=function(i){var t=d.children.length;"short"===d.settings.pagerType?(1<d.settings.maxSlides&&(t=Math.ceil(d.children.length/d.settings.maxSlides)),d.pagerEl.html(i+1+d.settings.pagerShortSeparator+t)):(d.pagerEl.find("a, button").removeClass("active"),d.pagerEl.find("a, button").attr("aria-current",!1),d.pagerEl.each(function(t,e){B(e).find("a, button").eq(i).addClass("active"),B(e).find("a, button").eq(i).attr("aria-current",!0)}))},P=function(){var t;d.settings.infiniteLoop&&(t="",0===d.active.index?t=d.children.eq(0).position():d.active.index===h()-1&&d.carousel?t=d.children.eq((h()-1)*v()).position():d.active.index===d.children.length-1&&(t=d.children.eq(d.children.length-1).position()),t)&&("horizontal"===d.settings.mode?x(-t.left,"reset",0):"vertical"===d.settings.mode&&x(-t.top,"reset",0)),d.working=!1,d.viewport.closest(".fl-module").find("a, button").not(".bx-start, .bx-stop").removeClass("disabled"),d.settings.onSlideAfter.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)},z=function(t){var e;d.settings.autoControlsCombine?(e=1==d.controls.autoEl.has(B(document.activeElement)).length,d.controls.autoEl.html(d.controls[t]),e&&(d.controls[t].find("a, button").focus(),d.isFocused)&&"stop"===t&&(d.isFocused=null)):(d.controls.autoEl.find("a, button").removeClass("active"),d.controls.autoEl.find("a:not(.bx-"+t+"), button:not(.bx-"+t+")").addClass("active"))},I=function(){1===h()?(d.controls.prev.addClass("disabled"),d.controls.next.addClass("disabled")):!d.settings.infiniteLoop&&d.settings.hideControlOnEnd&&(0===d.active.index?(d.controls.prev.addClass("disabled"),d.controls.next):d.active.index===h()-1?(d.controls.next.addClass("disabled"),d.controls.prev):(d.controls.prev.removeClass("disabled"),d.controls.next)).removeClass("disabled")},O=function(){0<d.settings.autoDelay?setTimeout(c.startAuto,d.settings.autoDelay):c.startAuto(),d.settings.autoHover&&c.hover(function(){d.interval&&(c.stopAuto(!0),d.autoPaused=!0)},function(){d.autoPaused&&(c.startAuto(!0),d.autoPaused=null)})},N=function(){var t,e,i,n,s,o,r,a,l=0;"next"===d.settings.autoDirection?c.append(d.children.clone().addClass("bx-clone")):(c.prepend(d.children.clone().addClass("bx-clone")),t=d.children.first().position(),l="horizontal"===d.settings.mode?-t.left:-t.top),x(l,"reset",0),d.settings.pager=!1,d.settings.controls=!1,d.settings.autoControls=!1,d.settings.tickerHover&&(d.usingCSS?(n="horizontal"===d.settings.mode?4:5,d.viewport.hover(function(){e=c.css("-"+d.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),x(i,"reset",0)},function(){a=0,d.children.each(function(t){a+="horizontal"===d.settings.mode?B(this).outerWidth(!0):B(this).outerHeight(!0)}),s=d.settings.speed/a,o="horizontal"===d.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),H(r)})):d.viewport.hover(function(){c.stop()},function(){a=0,d.children.each(function(t){a+="horizontal"===d.settings.mode?B(this).outerWidth(!0):B(this).outerHeight(!0)}),s=d.settings.speed/a,o="horizontal"===d.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(c.css(o)))),H(r)})),H()},H=function(t){var t=t||d.settings.speed,e={left:0,top:0},i={left:0,top:0};"next"===d.settings.autoDirection?e=c.find(".bx-clone").first().position():i=d.children.first().position(),e="horizontal"===d.settings.mode?-e.left:-e.top,i="horizontal"===d.settings.mode?-i.left:-i.top,x(e,"ticker",t,{resetValue:i})},X=function(t){var e=B(window),i={top:e.scrollTop(),left:e.scrollLeft()},n=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(i.right<n.left||i.left>n.right||i.bottom<n.top||i.top>n.bottom)},Y=function(t){0!==d.viewport.closest(".fl-module").has(B(t.relatedTarget)).length||d.isFocused||(d.isFocused=!0,y(t))},q=function(t){if(X(c)&&(39===t.keyCode||37===t.keyCode))return 39===t.keyCode?T(t):37===t.keyCode&&k(t),d.viewport.closest("."+d.settings.wrapperClass).find(".bx-pager-link.active").focus(),!1},V=function(){d.touch={start:{x:0,y:0},end:{x:0,y:0}},d.viewport.bind("touchstart",Z),d.viewport.on("click",".bxslider a, .bxslider button",function(t){d.viewport.hasClass("click-disabled")&&(t.preventDefault(),d.viewport.removeClass("click-disabled"))})},Z=function(t){d.controls.el.addClass("disabled"),d.working?(t.preventDefault(),d.controls.el.removeClass("disabled")):(d.touch.originalPos=c.position(),t=void 0!==(t=t.originalEvent).changedTouches?t.changedTouches:[t],d.touch.start.x=t[0].pageX,d.touch.start.y=t[0].pageY,d.viewport.bind("touchmove",L),d.viewport.bind("touchend",A))},L=function(t){var e=t.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=Math.abs(e[0].pageX-d.touch.start.x),n=Math.abs(e[0].pageY-d.touch.start.y),s=0,o=0;(n<3*i&&d.settings.preventDefaultSwipeX||i<3*n&&d.settings.preventDefaultSwipeY)&&t.preventDefault(),"fade"!==d.settings.mode&&d.settings.oneToOneTouch&&(s="horizontal"===d.settings.mode?(o=e[0].pageX-d.touch.start.x,d.touch.originalPos.left+o):(o=e[0].pageY-d.touch.start.y,d.touch.originalPos.top+o),x(s,"reset",0))},A=function(t){d.viewport.unbind("touchmove",L),d.controls.el.removeClass("disabled");var t=t.originalEvent,e=void 0!==t.changedTouches?t.changedTouches:[t],i=0,n=0;d.touch.end.x=e[0].pageX,d.touch.end.y=e[0].pageY,"fade"===d.settings.mode?(n=Math.abs(d.touch.start.x-d.touch.end.x))>=d.settings.swipeThreshold&&(d.touch.start.x>d.touch.end.x?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):(i="horizontal"===d.settings.mode?(n=d.touch.end.x-d.touch.start.x,d.touch.originalPos.left):(n=d.touch.end.y-d.touch.start.y,d.touch.originalPos.top),(d.settings.infiniteLoop||!(0===d.active.index&&0<n||d.active.last&&n<0))&&Math.abs(n)>=d.settings.swipeThreshold?(n<0?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):x(i,"reset",200)),d.viewport.unbind("touchend",A),"function"==typeof PointerEvent&&void 0===t.pointerId||d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},D=function(t){var e,i;d.initialized&&(d.working?window.setTimeout(D,10):(e=B(window).width(),i=B(window).height(),n===e&&s===i||(n=e,s=i,c.redrawSlider(),d.settings.onSliderResize.call(c,d.active.index))))},W=function(t){var e=p();d.settings.ariaHidden&&!d.settings.ticker&&(d.children.attr("aria-hidden","true"),d.children.find("a, button").attr("tabindex","-1"),d.children.slice(t,t+e).attr("aria-hidden","false"),d.children.slice(t,t+e).find("a, button").not('[aria-hidden="true"]').attr("tabindex","0"))},c.goToSlide=function(t,e){var i,n=!0,s=0,o={left:0,top:0},r=null;d.oldIndex=d.active.index,d.active.index=(i=t)<0?d.settings.infiniteLoop?h()-1:d.active.index:i>=h()?d.settings.infiniteLoop?0:d.active.index:i,d.working||d.active.index===d.oldIndex||(d.working=!0,d.viewport.closest(".fl-module").find("a, button").not(".bx-start, .bx-stop").addClass("disabled"),void 0===(n=d.settings.onSlideBefore.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index))||n?("next"===e?d.settings.onSlideNext.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(n=!1):"prev"!==e||d.settings.onSlidePrev.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(n=!1),d.active.last=d.active.index>=h()-1,(d.settings.pager||d.settings.pagerCustom)&&M(d.active.index),d.settings.controls&&I(),"fade"===d.settings.mode?(d.settings.adaptiveHeight&&d.viewport.height()!==l()&&d.viewport.animate({height:l()},d.settings.adaptiveHeightSpeed),d.children.filter(":visible").fadeOut(d.settings.speed).css({zIndex:0}),d.children.eq(d.active.index).css("zIndex",d.settings.slideZIndex+1).fadeIn(d.settings.speed,function(){B(this).css("zIndex",d.settings.slideZIndex),P()})):(d.settings.adaptiveHeight&&d.viewport.height()!==l()&&d.viewport.animate({height:l()},d.settings.adaptiveHeightSpeed),!d.settings.infiniteLoop&&d.carousel&&d.active.last?"horizontal"===d.settings.mode?(o=(r=d.children.eq(d.children.length-1)).position(),s=d.viewport.width()-r.outerWidth()):(i=d.children.length-d.settings.minSlides,o=d.children.eq(i).position()):d.carousel&&d.active.last&&"prev"===e?(n=1===d.settings.moveSlides?d.settings.maxSlides-v():(h()-1)*v()-(d.children.length-d.settings.maxSlides),o=(r=c.children(".bx-clone").eq(n)).position()):"next"===e&&0===d.active.index?(o=c.find("> .bx-clone").eq(d.settings.maxSlides).position(),d.active.last=!1):0<=t&&(i=t*parseInt(v()),o=d.children.eq(i).position()),void 0!==o?(n="horizontal"===d.settings.mode?-(o.left-s):-o.top,x(n,"slide",d.settings.speed)):d.working=!1),d.settings.ariaHidden&&W(d.active.index*v())):(d.active.index=d.oldIndex,d.working=!1))},c.goToNextSlide=function(){var t;!d.settings.infiniteLoop&&d.active.last||d.working||(t=parseInt(d.active.index)+1,c.goToSlide(t,"next"))},c.goToPrevSlide=function(){var t;!d.settings.infiniteLoop&&0===d.active.index||d.working||(t=parseInt(d.active.index)-1,c.goToSlide(t,"prev"))},c.startAuto=function(t){d.interval||(d.interval=setInterval(function(){"next"===d.settings.autoDirection?c.goToNextSlide():c.goToPrevSlide()},d.settings.pause),d.settings.autoControls&&!0!==t&&z("stop"))},c.stopAuto=function(t){d.interval&&(clearInterval(d.interval),d.interval=null,d.settings.autoControls)&&!0!==t&&z("start")},c.getCurrentSlide=function(){return d.active.index},c.getCurrentSlideElement=function(){return d.children.eq(d.active.index)},c.getSlideElement=function(t){return d.children.eq(t)},c.getSlideCount=function(){return d.children.length},c.redrawSlider=function(){d.children.add(c.find(".bx-clone")).outerWidth(u()),d.viewport.css("height",l()),d.settings.ticker||f(),d.active.last&&(d.active.index=h()-1),d.active.index>=h()&&(d.active.last=!0),d.settings.pager&&!d.settings.pagerCustom&&(m(),M(d.active.index)),d.settings.ariaHidden&&W(d.active.index*v())},c.destroySlider=function(){d.initialized&&(d.initialized=!1,B(".bx-clone",this).remove(),d.children.each(function(){void 0!==B(this).data("origStyle")?B(this).attr("style",B(this).data("origStyle")):B(this).removeAttr("style")}),void 0!==B(this).data("origStyle")?this.attr("style",B(this).data("origStyle")):B(this).removeAttr("style"),B(this).unwrap().unwrap(),d.controls.el&&d.controls.el.remove(),d.controls.next&&d.controls.next.remove(),d.controls.prev&&d.controls.prev.remove(),d.pagerEl&&d.settings.controls&&!d.settings.pagerCustom&&d.pagerEl.remove(),B(".bx-caption",this).remove(),d.controls.autoEl&&d.controls.autoEl.remove(),clearInterval(d.interval),d.settings.responsive&&B(window).unbind("resize",D),d.settings.keyboardEnabled&&d.viewport.closest(".fl-module").unbind("keydown",q),B(this).removeData("bxSlider"))},c.reloadSlider=function(t){void 0!==t&&(e=t),c.destroySlider(),o(),B(c).data("bxSlider",this)},o(),B(c).data("bxSlider",this),this))}})(jQuery);
(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)})(function(c){function e(){}function d(e,t){f.ev.on(x+e+I,t)}function u(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function p(e,t){f.ev.triggerHandler(x+e,t),f.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),f.st.callbacks[e])&&f.st.callbacks[e].apply(f,Array.isArray(t)?t:[t])}function m(e){return e===A&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=c(f.st.closeMarkup.replace(/%title%/g,f.st.tClose)),A=e),f.currTemplate.closeBtn}function r(){c.magnificPopup.instance||((f=new e).init(),c.magnificPopup.instance=f)}function a(){y&&(v.after(y.addClass(l)).detach(),y=null)}function i(){n&&c(document.body).removeClass(n)}function t(){i(),f.req&&f.req.abort()}var f,o,g,s,h,A,l,v,y,n,w="Close",F="BeforeClose",C="MarkupParse",b="Open",j="Change",x="mfp",I="."+x,k="mfp-ready",N="mfp-removing",T="mfp-prevent-close",P=!!window.jQuery,_=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(e),f.isIOS=/iphone|ipad|ipod/gi.test(e),f.supportsTransition=(()=>{var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1})(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),f.popupsCache={}},open:function(e){if(!1===e.isObj){f.items=e.items.toArray(),f.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){f.index=o;break}}else f.items=Array.isArray(e.items)?e.items:[e.items],f.index=e.index||0;if(!f.isOpen){f.types=[],h="",e.mainEl&&e.mainEl.length?f.ev=e.mainEl.eq(0):f.ev=g,e.key?(f.popupsCache[e.key]||(f.popupsCache[e.key]={}),f.currTemplate=f.popupsCache[e.key]):f.currTemplate={},f.st=c.extend(!0,{},c.magnificPopup.defaults,e),f.fixedContentPos="auto"===f.st.fixedContentPos?!f.probablyMobile:f.st.fixedContentPos,f.st.modal&&(f.st.closeOnContentClick=!1,f.st.closeOnBgClick=!1,f.st.showCloseBtn=!1,f.st.enableEscapeKey=!1),f.bgOverlay||(f.bgOverlay=u("bg").on("click"+I,function(){f.close()}),f.wrap=u("wrap").attr("tabindex",-1).attr("role","dialog").attr("aria-modal",!0).attr("aria-label","Popup Image").on("click"+I,function(e){f._checkIfClose(e.target)&&f.close()}),f.container=u("container",f.wrap)),f.contentContainer=u("content"),f.st.preloader&&(f.preloader=u("preloader",f.container,f.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var r=(r=i[o]).charAt(0).toUpperCase()+r.slice(1);f["init"+r].call(f)}p("BeforeOpen"),f.st.showCloseBtn&&(f.st.closeBtnInside?(d(C,function(e,t,n,o){n.close_replaceWith=m(o.type)}),h+=" mfp-close-btn-in"):f.wrap.append(m())),f.st.alignTop&&(h+=" mfp-align-top"),f.fixedContentPos?f.wrap.css({overflow:f.st.overflowY,overflowX:"hidden",overflowY:f.st.overflowY}):f.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==f.st.fixedBgPos&&("auto"!==f.st.fixedBgPos||f.fixedContentPos)||f.bgOverlay.css({height:g.height(),position:"absolute"}),f.st.enableEscapeKey&&g.on("keyup"+I,function(e){27===e.keyCode&&f.close()}),_.on("resize"+I,function(){f.updateSize()}),f.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&f.wrap.addClass(h);var a=f.wH=_.height(),s={},l=(f.fixedContentPos&&f._hasScrollBar(a)&&(l=f._getScrollbarSize())&&(s.marginRight=l),f.fixedContentPos&&(f.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),f.st.mainClass);return f.isIE7&&(l+=" mfp-ie7"),l&&f._addClassToMFP(l),f.updateItemHTML(),p("BuildControls"),c("html").css(s),f.bgOverlay.add(f.wrap).prependTo(f.st.prependTo||c(document.body)),f._lastFocusedEl=document.activeElement,setTimeout(function(){f.content?(f._addClassToMFP(k),f._setFocus()):f.bgOverlay.addClass(k),g.on("focusin"+I,f._onFocusIn)},16),f.isOpen=!0,f.updateSize(a),p(b),e}f.updateItemHTML()},close:function(){f.isOpen&&(p(F),f.isOpen=!1,f.st.removalDelay&&!f.isLowIE&&f.supportsTransition?(f._addClassToMFP(N),setTimeout(function(){f._close()},f.st.removalDelay)):f._close())},_close:function(){p(w);var e=N+" "+k+" ";f.bgOverlay.detach(),f.wrap.detach(),f.container.empty(),f.st.mainClass&&(e+=f.st.mainClass+" "),f._removeClassFromMFP(e),f.fixedContentPos&&(e={marginRight:""},f.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+I),f.ev.off(I),f.wrap.attr("class","mfp-wrap").removeAttr("style"),f.bgOverlay.attr("class","mfp-bg"),f.container.attr("class","mfp-container"),!f.st.showCloseBtn||f.st.closeBtnInside&&!0!==f.currTemplate[f.currItem.type]||f.currTemplate.closeBtn&&f.currTemplate.closeBtn.detach(),f.st.autoFocusLast&&f._lastFocusedEl&&c(f._lastFocusedEl).trigger("focus"),f.currItem=null,f.content=null,f.currTemplate=null,f.prevHeight=0,p("AfterClose")},updateSize:function(e){var t;f.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,f.wrap.css("height",t=window.innerHeight*t),f.wH=t):f.wH=e||_.height(),f.fixedContentPos||f.wrap.css("height",f.wH),p("Resize")},updateItemHTML:function(){var e=f.items[f.index],t=(f.contentContainer.detach(),f.content&&f.content.detach(),(e=e.parsed?e:f.parseEl(f.index)).type),n=(p("BeforeChange",[f.currItem?f.currItem.type:"",t]),f.currItem=e,f.currTemplate[t]||(n=!!f.st[t]&&f.st[t].markup,p("FirstMarkupParse",n),f.currTemplate[t]=!n||c(n)),s&&s!==e.type&&f.container.removeClass("mfp-"+s+"-holder"),f["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,f.currTemplate[t]));f.appendContent(n,t),e.preloaded=!0,p(j,e),s=e.type,f.container.prepend(f.contentContainer),p("AfterChange")},appendContent:function(e,t){(f.content=e)?f.st.showCloseBtn&&f.st.closeBtnInside&&!0===f.currTemplate[t]?f.content.find(".mfp-close").length||f.content.append(m()):f.content=e:f.content="",p("BeforeAppend"),f.container.addClass("mfp-"+t+"-holder"),f.contentContainer.append(f.content)},parseEl:function(e){var t,n=f.items[e];if((n=n.tagName?{el:c(n)}:(t=n.type,{data:n,src:n.src})).el){for(var o=f.types,i=0;i<o.length;i++)if(n.el.hasClass("mfp-"+o[i])){t=o[i];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||f.st.type||"inline",n.index=e,n.parsed=!0,f.items[e]=n,p("ElementParse",n),f.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,f._openClick(e,t,n)}var o="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(o).on(o,e)):(n.isObj=!1,n.delegate?t.off(o).on(o,n.delegate,e):(n.items=t).off(o).on(o,e))},_openClick:function(e,t,n){var o=(void 0!==n.midClick?n:c.magnificPopup.defaults).midClick;if(o||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){o=(void 0!==n.disableOn?n:c.magnificPopup.defaults).disableOn;if(o)if("function"==typeof o){if(!o.call(f))return!0}else if(_.width()<o)return!0;e.type&&(e.preventDefault(),f.isOpen)&&e.stopPropagation(),n.el=c(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),f.open(n)}},updateStatus:function(e,t){var n;f.preloader&&(o!==e&&f.container.removeClass("mfp-s-"+o),n={status:e,text:t=t||"loading"!==e?t:f.st.tLoading},p("UpdateStatus",n),e=n.status,t=n.text,f.st.allowHTMLInStatusIndicator?f.preloader.html(t):f.preloader.text(t),f.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),f.container.addClass("mfp-s-"+e),o=e)},_checkIfClose:function(e){if(!c(e).closest("."+T).length){var t=f.st.closeOnContentClick,n=f.st.closeOnBgClick;if(t&&n)return!0;if(!f.content||c(e).closest(".mfp-close").length||f.preloader&&e===f.preloader[0])return!0;if(e===f.content[0]||c.contains(f.content[0],e)){if(t)return!0}else if(n&&c.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){f.bgOverlay.addClass(e),f.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),f.wrap.removeClass(e)},_hasScrollBar:function(e){return(f.isIE7?g.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==f.wrap[0]&&!c.contains(f.wrap[0],e.target))return f._setFocus(),!1},_parseMarkup:function(i,e,t){var r;t.data&&(e=c.extend(t.data,e)),p(C,[i,e,t]),c.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,o;1<(r=e.split("_")).length?0<(n=i.find(I+"-"+r[0])).length&&("replaceWith"===(o=r[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===o?n.is("img")?n.attr("src",t):n.replaceWith(c("<img>").attr("src",t).attr("class",n.attr("class"))):n.attr(r[1],t)):f.st.allowHTMLInTemplate?i.find(I+"-"+e).html(t):i.find(I+"-"+e).text(t)})},_getScrollbarSize:function(){var e;return void 0===f.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),f.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),f.scrollbarSize}},modules:[],open:function(e,t){return r(),(e=e?c.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(c.magnificPopup.defaults[e]=t.options),c.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close" aria-label="%title%"><span aria-hidden="true">&times;</span></button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},c.fn.magnificPopup=function(e){r();var t,n,o,i=c(this);return"string"==typeof e?"open"===e?(t=P?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0,o=t.items?t.items[n]:(o=i,(o=t.delegate?o.find(t.delegate):o).eq(n)),f._openClick({mfpEl:o},i,t)):f.isOpen&&f[e].apply(f,Array.prototype.slice.call(arguments,1)):(e=c.extend(!0,{},e),P?i.data("magnificPopup",e):i[0].magnificPopup=e,f.addGroup(i,e)),i},"inline"),E=(c.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(S),d(w+"."+S,function(){a()})},getInline:function(e,t){var n,o,i;return a(),e.src?(n=f.st.inline,(o=c(e.src)).length?((i=o[0].parentNode)&&i.tagName&&(v||(l=n.hiddenClass,v=u(l),l="mfp-"+l),y=o.after(v).detach().removeClass(l)),f.updateStatus("ready")):(f.updateStatus("error",n.tNotFound),o=c("<div>")),e.inlineElement=o):(f.updateStatus("ready"),f._parseMarkup(t,{},e),t)}}}),"ajax");c.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){f.types.push(E),n=f.st.ajax.cursor,d(w+"."+E,t),d("BeforeChange."+E,t)},getAjax:function(o){n&&c(document.body).addClass(n),f.updateStatus("loading");var e=c.extend({url:o.src,success:function(e,t,n){e={data:e,xhr:n};p("ParseAjax",e),f.appendContent(c(e.data),E),o.finished=!0,i(),f._setFocus(),setTimeout(function(){f.wrap.addClass(k)},16),f.updateStatus("ready"),p("AjaxContentAdded")},error:function(){i(),o.finished=o.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",o.src))}},f.st.ajax.settings);return f.req=c.ajax(e),""}}});var z;c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var e=f.st.image,t=".image";f.types.push("image"),d(b+t,function(){"image"===f.currItem.type&&e.cursor&&c(document.body).addClass(e.cursor)}),d(w+t,function(){e.cursor&&c(document.body).removeClass(e.cursor),_.off("resize"+I)}),d("Resize"+t,f.resizeImage),f.isLowIE&&d("AfterChange",f.resizeImage)},resizeImage:function(){var e,t=f.currItem;t&&t.img&&f.st.image.verticalFit&&(e=0,f.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",f.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden)&&(f.content&&f.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(t){function n(e){z&&clearInterval(z),z=setInterval(function(){0<i.naturalWidth?f._onImageHasSize(t):(200<o&&clearInterval(z),3===++o?n(10):40===o?n(50):100===o&&n(500))},e)}var o=0,i=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}function o(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++r<200?setTimeout(o,100):n())}var i,r=0,a=f.st.image,s=t.find(".mfp-img");return s.length&&((i=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(i.alt=e.el.find("img").attr("alt")),e.img=c(i).on("load.mfploader",o).on("error.mfploader",n),i.src=e.src,s.is("img")&&(e.img=e.img.clone()),0<(i=e.img[0]).naturalWidth?e.hasSize=!0:i.width||(e.hasSize=!1)),f._parseMarkup(t,{title:(e=>{if(e.data&&void 0!==e.data.title)return e.data.title;var t=f.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(f,e);if(e.el)return e.el.attr(t)||""}return""})(e),img_replaceWith:e.img},e),f.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),f.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),f.updateStatus("ready"))):(f.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),f.findImageSize(e))),t}}});function O(e){var t;f.currTemplate[L]&&(t=f.currTemplate[L].find("iframe")).length&&(e||(t[0].src="//about:blank"),f.isIE8)&&t.css("display",e?"block":"none")}function M(e){var t=f.items.length;return t-1<e?e-t:e<0?t+e:e}function D(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,o,i,r,a=f.st.zoom,s=".zoom";a.enabled&&f.supportsTransition&&(t=a.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+a.duration/1e3+"s "+a.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},o=function(){f.content.css("visibility","visible")},d("BuildControls"+s,function(){f._allowZoom()&&(clearTimeout(i),f.content.css("visibility","hidden"),(e=f._getItemToZoom())?((r=n(e)).css(f._getOffset()),f.wrap.append(r),i=setTimeout(function(){r.css(f._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){r.remove(),e=r=null,p("ZoomAnimationEnded")},16)},t)},16)):o())}),d(F+s,function(){if(f._allowZoom()){if(clearTimeout(i),f.st.removalDelay=t,!e){if(!(e=f._getItemToZoom()))return;r=n(e)}r.css(f._getOffset(!0)),f.wrap.append(r),f.content.css("visibility","hidden"),setTimeout(function(){r.css(f._getOffset())},16)}}),d(w+s,function(){f._allowZoom()&&(o(),r&&r.remove(),e=null)}))},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(e){var e=e?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),o=parseInt(e.css("padding-bottom"),10),e=(t.top-=c(window).scrollTop()-n,{width:e.width(),height:(P?e.innerHeight():e[0].offsetHeight)-o-n});return(B=void 0===B?void 0!==document.createElement("p").style.MozTransform:B)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var B,L="iframe",H=(c.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtu_be:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtube_nocookie:{index:"youtube-nocookie.com",id:"/",src:"//www.youtube-nocookie.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){f.types.push(L),d("BeforeChange",function(e,t,n){t!==n&&(t===L?O():n===L&&O(!0))}),d(w+"."+L,function(){O()})},getIframe:function(e,t){var n=e.src,o=f.st.iframe,i=(c.each(o.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return o.srcAction&&(i[o.srcAction]=n),f._parseMarkup(t,i,e),f.updateStatus("ready"),t}}}),c.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var r=f.st.gallery,e=".mfp-gallery";if(f.direction=!0,!r||!r.enabled)return!1;r.langDir||(r.langDir=document.dir||"ltr"),h+=" mfp-gallery",d(b+e,function(){r.navigateByImgClick&&f.wrap.on("click"+e,".mfp-img",function(){if(1<f.items.length)return f.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?"rtl"===r.langDir?f.next():f.prev():39===e.keyCode&&("rtl"===r.langDir?f.prev():f.next())}),f.updateGalleryButtons()}),d("UpdateStatus"+e,function(){f.updateGalleryButtons()}),d("UpdateStatus"+e,function(e,t){t.text&&(t.text=D(t.text,f.currItem.index,f.items.length))}),d(C+e,function(e,t,n,o){var i=f.items.length;n.counter=1<i?D(r.tCounter,o.index,i):""}),d("BuildControls"+e,function(){var e,t,n,o,i;1<f.items.length&&r.arrows&&!f.arrowLeft&&(t="rtl"===r.langDir?(i=r.tNext,e=r.tPrev,o="next","prev"):(i=r.tPrev,e=r.tNext,o="prev","next"),n=r.arrowMarkup,o=f.arrowLeft=c(n.replace(/%title%/gi,i).replace(/%action%/gi,o).replace(/%dir%/gi,"left")).attr("aria-label",i).addClass(T),i=f.arrowRight=c(n.replace(/%title%/gi,e).replace(/%action%/gi,t).replace(/%dir%/gi,"right")).attr("aria-label",e).addClass(T),"rtl"===r.langDir?(f.arrowNext=o,f.arrowPrev=i):(f.arrowNext=i,f.arrowPrev=o),o.on("click",function(){"rtl"===r.langDir?f.next():f.prev()}),i.on("click",function(){"rtl"===r.langDir?f.prev():f.next()}),f.container.append(o.add(i)),f.container.attr("role","region").attr("aria-label","carousel"))}),d(j+e,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),d(w+e,function(){g.off(e),f.wrap.off("click"+e),f.arrowRight=f.arrowLeft=null})},next:function(){var e=M(f.index+1);if(!f.st.gallery.loop&&0===e)return!1;f.direction=!0,f.index=e,f.updateItemHTML()},prev:function(){var e=f.index-1;if(!f.st.gallery.loop&&e<0)return!1;f.direction=!1,f.index=M(e),f.updateItemHTML()},goTo:function(e){f.direction=e>=f.index,f.index=e,f.updateItemHTML()},preloadNearbyImages:function(){for(var e=f.st.gallery.preload,t=Math.min(e[0],f.items.length),n=Math.min(e[1],f.items.length),o=1;o<=(f.direction?n:t);o++)f._preloadItem(f.index+o);for(o=1;o<=(f.direction?t:n);o++)f._preloadItem(f.index-o)},_preloadItem:function(e){var t;e=M(e),f.items[e].preloaded||((t=f.items[e]).parsed||(t=f.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)},updateGalleryButtons:function(){f.st.gallery.loop||"object"!=typeof f.arrowPrev||null===f.arrowPrev||(0===f.index?f.arrowPrev.hide():f.arrowPrev.show(),f.index===f.items.length-1?f.arrowNext.hide():f.arrowNext.show())}}}),"retina");c.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,o;1<window.devicePixelRatio&&(n=f.st.retina,o=n.ratio,1<(o=isNaN(o)?o():o))&&(d("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,o)}))}}}),r()});
var wpAjaxUrl='https://ccdmag.com/wp-admin/admin-ajax.php';var flBuilderUrl='https://ccdmag.com/wp-content/plugins/bb-plugin/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://ccdmag.com/wp-content/plugins/bb-plugin/',wpAjaxUrl:'https://ccdmag.com/wp-admin/admin-ajax.php'},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80},emptyColWidth:'0%'};(function($){if(typeof FLBuilderLayout!='undefined'){return;}
FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();FLBuilderLayout._initButtons();FLBuilderLayout._initRowShapeLayerHeight();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu();}else{FLBuilderLayout._initNestedColsWidth();}
$('body').removeClass('fl-no-js');},refreshGalleries:function(element){var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill');}}
if(wmContent){wmContent.trigger('refreshWookmark');}},refreshGridLayout:function(element){var $element='undefined'==typeof element?$('body'):$(element),msnryContent=$element.find('.masonry');if(msnryContent.length){msnryContent.masonry('layout');}},reloadSlider:function(content){var $content='undefined'==typeof content?$('body'):$(content);if($content.find('.bx-viewport > div').length>0){$.each($content.find('.bx-viewport > div'),function(key,slider){setTimeout(function(){$(slider).data('bxSlider').reloadSlider();},100);});}},resizeAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio'),player=null,mejsPlayer=null,rail=null,railWidth=400;if(audioPlayers.length&&typeof mejs!=='undefined'){audioPlayers.each(function(){player=$(this);mejsPlayer=mejs.players[player.attr('id')];rail=player.find('.mejs-controls .mejs-time-rail');var innerMejs=player.find('.mejs-inner'),total=player.find('.mejs-controls .mejs-time-total');if(typeof mejsPlayer!=='undefined'){railWidth=Math.ceil(player.width()*0.8);if(innerMejs.length){rail.css('width',railWidth+'px!important');mejsPlayer.options.autosizeProgress=true;setTimeout(function(){mejsPlayer.setControlsSize();},50);player.find('.mejs-inner').css({visibility:'visible',height:'inherit'});}}});}},preloadAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),contentWrap=$element.closest('.fl-accordion-item'),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio');if(!contentWrap.hasClass('fl-accordion-item-active')&&audioPlayers.find('.mejs-inner').length){audioPlayers.find('.mejs-inner').css({visibility:'hidden',height:0});}},resizeSlideshow:function(){if(typeof YUI!=='undefined'){YUI().use('node-event-simulate',function(Y){Y.one(window).simulate("resize");});}},reloadGoogleMap:function(element){var $element='undefined'==typeof element?$('body'):$(element),googleMap=$element.find('iframe[src*="google.com/maps"]');if(googleMap.length){googleMap.attr('src',function(i,val){return val;});}},_destroy:function(){var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video');},_isTouch:function(){if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return true;}
return false;},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent);},_initClasses:function(){var body=$('body'),ua=navigator.userAgent;if(!body.hasClass('fl-builder-blocks-only')&&!body.hasClass('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder');}
if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');}
if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}
if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder-breakpoint-medium');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default');}
if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>-1){body.addClass('fl-builder-ie-11');}},_initBackgrounds:function(){var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('resize.fl-bg-parallax',FLBuilderLayout._initParallaxBackgrounds);win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds);}
if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();var resizeBGTimer=null;win.on('resize.fl-bg-video',function(e){clearTimeout(resizeBGTimer);resizeBGTimer=setTimeout(function(){FLBuilderLayout._resizeBgVideos(e);},100);});}},_initButtons:function(){$('a.fl-button[role="button"]').on('keydown',function(event){if(event.key==='Enter'||event.key===' '){event.preventDefault();$(this).trigger('click');}});},_initParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground);},_initParallaxBackground:function(){var row=$(this),content=row.find('> .fl-row-content-wrap'),winWidth=$(window).width(),screenSize='',imageSrc={default:'',medium:'',responsive:'',};imageSrc.default=row.data('parallax-image')||'';imageSrc.medium=row.data('parallax-image-medium')||imageSrc.default;imageSrc.responsive=row.data('parallax-image-responsive')||imageSrc.medium;if(winWidth>FLBuilderLayoutConfig.breakpoints.medium){screenSize='default';}else if(winWidth>FLBuilderLayoutConfig.breakpoints.small&&winWidth<=FLBuilderLayoutConfig.breakpoints.medium){screenSize='medium';}else if(winWidth<=FLBuilderLayoutConfig.breakpoints.small){screenSize='responsive';}
content.css('background-image','url('+imageSrc[screenSize]+')');row.data('current-image-loaded',screenSize);},_scrollParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground);},_scrollParallaxBackground:function(){var win=$(window),row=$(this),content=row.find('> .fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/ speed),initialOffset=(row.data('parallax-offset')!=null)?row.data('parallax-offset'):0,totalOffset=yPos-initialOffset;content.css('background-position','center '+totalOffset+'px');},_initBgVideos:function(){$('.fl-bg-video').each(FLBuilderLayout._initBgVideo);},_initBgVideo:function(){var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),youtube=wrap.data('youtube'),vimeo=wrap.data('vimeo'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),videoMobile=wrap.data('video-mobile'),playPauseButton=wrap.find('.fl-bg-video-play-pause-control'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return;}
videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7')
videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})}
if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag);}
if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag);}
if(!FLBuilderLayout._isMobile()||(FLBuilderLayout._isMobile()&&"yes"==videoMobile)){if('undefined'!=typeof youtube){FLBuilderLayout._initYoutubeBgVideo.apply(this);}
else if('undefined'!=typeof vimeo){FLBuilderLayout._initVimeoBgVideo.apply(this);}else{wrap.append(videoTag);if(playPauseButton.length>0){var video=videoTag[0];playPauseButton.on('click',{video:video},function(e){var video=e.data.video;if(video.paused){video.play();}else{video.pause();}});$(video).on('play playing',function(){playPauseButton.removeClass('fa-play').addClass('fa-pause');});$(video).on('pause ended waiting',function(){playPauseButton.removeClass('fa-pause').addClass('fa-play');});}}}else{videoTag.attr('src','')
wrap.append(videoTag);}
wrap.data('loaded',true);},_initYoutubeBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),startTime='undefined'!==typeof playerWrap.data('start')?playerWrap.data('start'):0,startTime='undefined'!==typeof playerWrap.data('t')&&startTime===0?playerWrap.data('t'):startTime,endTime='undefined'!==typeof playerWrap.data('end')?playerWrap.data('end'):0,loop='undefined'!==typeof playerWrap.data('loop')?playerWrap.data('loop'):1,stateCount=0,player,fallback_showing;if(videoId){fallback=playerWrap.data('fallback')||false
if(fallback){playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');fallbackTag.css('background-size','cover');fallbackTag.css('transition','background-image 1s')
playerWrap.append(fallbackTag);fallback_showing=true;}
FLBuilderLayout._onYoutubeApiReady(function(YT){setTimeout(function(){player=new YT.Player(videoPlayer[0],{videoId:videoId,events:{onReady:function(event){if("no"===enableAudio||FLBuilderLayout._isMobile()){event.target.mute();}
else if("yes"===enableAudio&&event.target.isMuted){event.target.unMute();}
playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>0&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}
if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(1===player.getPlayerState()){player.pauseVideo();}else{player.playVideo();}});}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}}
if(stateCount<4){stateCount++;}
if(stateCount>1&&-1===event.data&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show();}
if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime);}else{player.playVideo();}}
if(event.data===YT.PlayerState.PLAYING){playPauseButton.removeClass('fa-play').addClass('fa-pause');}else if(event.data===YT.PlayerState.PAUSED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}else if(event.data===YT.PlayerState.BUFFERING){playPauseButton.removeClass('fa-play').addClass('fa-pause');}else if(event.data===YT.PlayerState.CUED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}else if(event.data===YT.PlayerState.ENDED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}},onError:function(event){console.info('YT Error: '+event.data)
FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:startTime,end:endTime,}});},1);});}},_onErrorYoutubeVimeo:function(playerWrap){fallback=playerWrap.data('fallback')||false
if(!fallback){return false;}
playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');playerWrap.append(fallbackTag);},_onYoutubeApiReady:function(callback){if(window.YT&&YT.loaded){callback(YT);}else{setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(callback);},350);}},_initVimeoBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoHash=playerWrap.data('video-hash'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),playerState='',player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){const vimOptions={loop:true,title:false,portrait:false,background:true,autopause:false,muted:true,};if(videoHash.length){vimOptions.url=`https://player.vimeo.com/video/${ videoId }?h=${ videoHash }`;}else{vimOptions.id=videoId;}
player=new Vimeo.Player(videoPlayer[0],vimOptions);playerWrap.data('VMPlayer',player);if("no"===enableAudio){player.setVolume(0);}
else if("yes"===enableAudio){if(ua.indexOf("Safari")>-1||ua.indexOf("Chrome")>-1||ua.indexOf("Firefox")>-1){player.setVolume(0);audioButton.show();}else{player.setVolume(1);}}
player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}
player.on('play',function(){playerState='play';playPauseButton.removeClass('fa-play').addClass('fa-pause');});player.on('pause',function(){playerState='pause';playPauseButton.removeClass('fa-pause').addClass('fa-play');});player.on('ended',function(){playerState='ended';playPauseButton.removeClass('fa-pause').addClass('fa-play');});player.on('bufferstart',function(){playerState='bufferstart';playPauseButton.removeClass('fa-play').addClass('fa-pause');});if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(playerState==='play'){player.pause();}else{player.play();}});}}},_toggleBgVideoAudio:function(e){var player=e.data.player,control=e.data.button.find('.fl-audio-control');if(control.hasClass('fa-volume-off')){control.removeClass('fa-volume-off').addClass('fa-volume-up');e.data.button.find('.fa-times').hide();if('function'===typeof player.unMute){player.unMute();}else{player.setVolume(1);}}else{control.removeClass('fa-volume-up').addClass('fa-volume-off');e.data.button.find('.fa-times').show();if('function'===typeof player.unMute){player.mute();}else{player.setVolume(0);}}},_videoBgSourceError:function(e){var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video'),fallback=wrap.data('fallback'),fallbackTag='';source.remove();if(vid.find('source').length){return;}else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove();}},_resizeBgVideos:function(){$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this));}});},_resizeBgVideo:function(){if(0===$(this).find('video').length&&0===$(this).find('iframe').length){return;}
var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0,iframe=wrap.find('iframe'),isRowFullHeight=$(this).closest('.fl-row-bg-video').hasClass('fl-row-full-height'),vidCSS={top:'50%',left:'50%',transform:'translate(-50%,-50%)',};if(vid.length){if(vidHeight===''||typeof vidHeight==='undefined'||vidWidth===''||typeof vidWidth==='undefined'){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});vid.on('loadedmetadata',FLBuilderLayout._resizeOnLoadedMeta);return;}
if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newLeft=-((newWidth-wrapWidth)/ 2);newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;}else{newTop=-((newHeight-wrapHeight)/2);}
vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}}
vid.css(vidCSS);}
else if(iframe.length){if(typeof wrap.data('youtube')!=='undefined'){FLBuilderLayout._resizeYoutubeBgVideo.apply(this);}}},_resizeOnLoadedMeta:function(){var video=$(this),wrapHeight=video.parent().outerHeight(),wrapWidth=video.parent().outerWidth(),vidWidth=video[0].videoWidth,vidHeight=video[0].videoHeight,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newWidth=wrapWidth,newLeft=0,newTop=0;if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2);}else{newTop=-((newHeight-wrapHeight)/2);}
video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);video.css({'left':newLeft+'px','top':newTop+'px','width':newWidth+'px','height':newHeight+'px'});},_resizeYoutubeBgVideo:function(){var wrap=$(this),wrapWidth=wrap.outerWidth(),wrapHeight=wrap.outerHeight(),player=wrap.data('YTPlayer'),video=player?player.getIframe():null,aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/ aspectRatioArray[1],ratioWidth=wrapWidth / aspectRatio,ratioHeight=wrapHeight*aspectRatio,isWidthFixed=wrapWidth / wrapHeight>aspectRatio,width=isWidthFixed?wrapWidth:ratioHeight,height=isWidthFixed?ratioWidth:wrapHeight;if(video){$(video).width(width).height(height);}},_initHash:function(){var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){try{element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click');},100);}
if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');label[0].click();FLBuilderLayout._scrollToElement(element);},100);}}}
catch(e){}}},_initAnchorLinks:function(){$('a, [role="link"]').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function(){var link=$(this),href=link.data('url')?link.data('url'):link.attr('href'),target=link.data('url')?new URL(href,window.location.href):this,loc=window.location,id=null,element=null,flNode=false;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==target.pathname.replace(/^\//,'')&&loc.hostname==target.hostname){try{id=href.split('#').pop();if(!id){return;}
element=$('#'+id);if(element.length>0){flNode=element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module');if(!element.hasClass('fl-no-scroll')&&(link.hasClass('fl-scroll-link')||flNode)){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick);}
if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);}
if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}}
catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var attribute=$(this).data('url')?$(this).data('url'):$(this).attr('href');var element=$('#'+attribute.split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault();},_scrollToElement:function(element,callback){var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if('fixed'===element.css('position')||'fixed'===element.parent().css('position')){dest=element.position().top;}
else if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height();}else{dest=element.offset().top-config.offset;}
$('html, body').stop(true).animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();}
if(undefined!=element.attr('id')&&window.location.hash!=='#'+element.attr('id')){var firefox_version=window.navigator.userAgent.match(/Firefox\/(\d+)\./),firefox_version=firefox_version?parseInt(firefox_version[1],10):null;if(firefox_version!==null&&firefox_version<135){window.location.hash=element.attr('id');}else{if(history.pushState){history.pushState(null,null,'#'+element.attr('id'));}else{window.location.hash=element.attr('id');}}}});}},_scrollToAccordionOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}},_scrollToTabOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger($.Event('click',{which:1}));}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}else{label[0].click();FLBuilderLayout._scrollToElement(element);}
e.preventDefault();}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);}
$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError);},_hasPlaceholderSupport:function(){var input=document.createElement('input');return'undefined'!=input.placeholder;},_initFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback);}},_hideFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('');}},_showFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder);}},_clearFormFieldError:function(){var field=$(this);field.removeAttr('aria-invalid');field.removeClass('fl-form-error');const message=field.attr('aria-describedby');message?$('#'+message).hide():field.siblings('.fl-form-error-message').hide();},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight();$(window).on('resize',FLBuilderLayout._adjustRowShapeLayerHeight);},_initNestedColsWidth:function(){var nestedCols=$('.fl-col-has-cols');if(nestedCols.length<=0){return;}
$(nestedCols).each(function(index,col){if($(col).width()<=0){$(col).css('width',FLBuilderLayoutConfig.emptyColWidth);}});},_adjustRowShapeLayerHeight:function(){var rowShapeLayers=$('.fl-builder-shape-layer');$(rowShapeLayers).each(function(index){var rowShapeLayer=$(this),shape=$(rowShapeLayer).find('svg'),height=shape.height(),excludeShapes='.fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect';if(!rowShapeLayer.is(excludeShapes)){$(shape).css('height',Math.ceil(height));}});},_string_to_slug:function(str){str=str.replace(/^\s+|\s+$/g,'');if('undefined'==typeof window._fl_string_to_slug_regex){regex=new RegExp('[^a-zA-Z0-9\'":() !.,-_|]','g');}else{regex=new RegExp('[^'+window._fl_string_to_slug_regex+'\'":\(\) !.,-_|\\\p{Letter}]','ug');}
str=str.replace(regex,'').replace(/\s+/g,' ');return str;},_reorderMenu:function(){if($('#wp-admin-bar-fl-builder-frontend-edit-link-default li').length>1){$('#wp-admin-bar-fl-builder-frontend-duplicate-link').appendTo('#wp-admin-bar-fl-builder-frontend-edit-link-default').css('padding-top','5px').css('border-top','2px solid #1D2125').css('margin-top','5px')}}};$(function(){FLBuilderLayout.init();});})(jQuery);(function($){if(typeof FLBuilderLayoutModules!=='undefined'){return;}
FLBuilderLayoutModules={init:function(){if(0===$('.fl-builder-edit').length){FLBuilderLayoutModules._initModuleAnimations();}},_initModuleAnimations:function(){if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').each(function(){var node=$(this),nodeTop=node.offset().top,winHeight=$(window).height(),bodyHeight=$('body').height(),waypoint=FLBuilderLayoutConfig.waypoint,offset='80%';if(typeof waypoint.offset!==undefined){offset=FLBuilderLayoutConfig.waypoint.offset+'%';}
if(bodyHeight-nodeTop<winHeight*0.2){offset='100%';}
node.waypoint({offset:offset,handler:FLBuilderLayoutModules._doModuleAnimation});});}},_doModuleAnimation:function(){var module='undefined'==typeof this.element?$(this):$(this.element),delay=parseFloat(module.data('animation-delay')),duration=parseFloat(module.data('animation-duration'));if(!isNaN(duration)){module.css('animation-duration',duration+'s');}
if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);}else{setTimeout(function(){module.addClass('fl-animated');},1);}}};$(function(){FLBuilderLayoutModules.init();});})(jQuery);(function($){})(jQuery);;var FLBuilderNumber;(function($){FLBuilderNumber=function(settings){this.nodeClass='.fl-node-'+settings.id;this.wrapperClass=this.nodeClass+' .fl-number';this.layout=settings.layout;this.type=settings.type;this.startNumber=parseFloat(('undefined'!==typeof window["number_module_"+settings.id])?window["number_module_"+settings.id].start_number:settings.start_number);this.number=parseFloat(('undefined'!==typeof window["number_module_"+settings.id])?window["number_module_"+settings.id].number:settings.number);this.max=parseFloat(('undefined'!==typeof window["number_module_"+settings.id])?window["number_module_"+settings.id].max:settings.max);this.locale=('undefined'!==typeof window["number_module_"+settings.id])?window["number_module_"+settings.id].locale:'en_US';this.speed=settings.speed;this.delay=settings.delay;this.breakPoints=settings.breakPoints;this.currentBrowserWidth=$(window).width();this.animated=false;this._initNumber();};FLBuilderNumber.prototype={nodeClass:'',wrapperClass:'',layout:'',type:'',startNumber:0,number:0,max:0,speed:0,delay:0,_initNumber:function(){var self=this;if(typeof jQuery.fn.waypoint!=='undefined'&&!this.animated){$(this.wrapperClass).waypoint({offset:FLBuilderLayoutConfig.waypoint.offset+'%',triggerOnce:true,handler:function(direction){self._initCount();}});}else{self._initCount();}},_initCount:function(){var $number=$(this.wrapperClass).find('.fl-number-string');if(!isNaN(this.delay)&&this.delay>0){setTimeout(function(){if(this.layout=='circle'){this._triggerCircle();}else if(this.layout=='bars'){this._triggerBar();}
this._countNumber();}.bind(this),this.delay*1000);}else{if(this.layout=='circle'){this._triggerCircle();}else if(this.layout=='bars'){this._triggerBar();}
this._countNumber();}},_countNumber:function(){var $number=$(this.wrapperClass).find('.fl-number-string'),$string=$number.find('.fl-number-int'),number=parseFloat($string.data('number')),current=0,self=this,startNum=parseFloat($string.data('start-number')),endNum=parseFloat($string.data('number')),countUp=startNum<endNum,startStep=countUp?startNum:endNum,endStep=countUp?endNum:startNum,stepNum=0,counterNum=startNum;if(!this.animated){$string.prop('Counter',startStep).animate({Counter:endStep},{duration:this.speed,easing:'swing',step:function(now,fx){counterNum=Math.ceil(this.Counter);if(countUp){stepNum=counterNum;}else{stepNum=(startStep+endStep-counterNum);}
locale=self.locale.replace('_','-');stepNumText=new Intl.NumberFormat(locale).format(stepNum)
if(countUp){if(stepNum<endStep){$string.text(stepNumText);}}else{$string.text(stepNumText);}},complete:function(){locale=self.locale.replace('_','-');endNum=new Intl.NumberFormat(locale).format(endNum)
$string.text(endNum);self.animated=true;}});}},_triggerCircle:function(){var $bar=$(this.wrapperClass).find('.fl-bar'),r=$bar.attr('r'),circle=Math.PI*(r*2),startNumber=parseInt($(this.wrapperClass).find('.fl-number-int').data('start-number')),number=parseInt($(this.wrapperClass).find('.fl-number-int').data('number')),total=parseInt($(this.wrapperClass).find('.fl-number-int').data('total')),val=parseInt(number),max=parseInt(total),startPct=0,endPct=max;if(this.animated){return;}
if(val<0){val=0;}
if(val>max){val=max;}
if(this.type=='percent'){startPct=((max-startNumber)/ max)*circle;endPct=((max-val)/ max)*circle;}else{startPct=(1-(startNumber / max))*circle;endPct=(1-(val / max))*circle;}
$bar.css('stroke-dashoffset',startPct);$bar.animate({strokeDashoffset:endPct},{duration:this.speed,easing:'swing',complete:function(){this.animated=true;}});},_triggerBar:function(){var $bar=$(this.wrapperClass).find('.fl-number-bar'),startNum=parseInt($(this.wrapperClass).find('.fl-number-int').data('start-number')),number=parseInt($(this.wrapperClass).find('.fl-number-int').data('number')),total=parseInt($(this.wrapperClass).find('.fl-number-int').data('total')),initWidth=0,finalWidth=0;if(isNaN(total)||total<=0){return;}
if(this.animated){return;}
if(number>startNum&&total<number){total=number;}else if(startNum>number&&total<startNum){total=startNum;}
initWidth=Math.ceil((startNum / total)*100);finalWidth=Math.ceil((number / total)*100);$bar.css('width',initWidth+'%');$bar.animate({width:finalWidth+'%'},{duration:this.speed,easing:'swing',complete:function(){this.animated=true;}});}};})(jQuery);(function($){$(function(){var numModule=window['number_module_6b5hseay3ngj'];new FLBuilderNumber({id:'6b5hseay3ngj',layout:'bars',type:'percent',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:21),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50),speed:1000,delay:1,});});})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-f2notz580xel .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-pue36fvtwd8x .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){$(function(){var numModule=window['number_module_xyv35w8mhbc4'];new FLBuilderNumber({id:'xyv35w8mhbc4',layout:'circle',type:'standard',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:50000),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50000),speed:1000,delay:0.5,});});})(jQuery);(function($){$(function(){var numModule=window['number_module_l47zcr3wxn8a'];new FLBuilderNumber({id:'l47zcr3wxn8a',layout:'circle',type:'standard',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:300000),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:300000),speed:1000,delay:1,});});})(jQuery);(function($){$(function(){var numModule=window['number_module_t5clkf2q9uvp'];new FLBuilderNumber({id:'t5clkf2q9uvp',layout:'circle',type:'standard',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:8126),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:8126),speed:1000,delay:1.5,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-hyeduvmpx6wr .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});;var FLBuilderPricingTable;(function($){FLBuilderPricingTable=function(settings){this.settings=settings;this.nodeClass='.fl-node-'+settings.id;this.wrapperClass=this.nodeClass+' .fl-pricing-table';this._initPricingTable();};FLBuilderPricingTable.prototype={nodeClass:'',wrapperClass:'',_initPricingTable:function(){var self=this;$(this.nodeClass+' .fl-builder-tooltip-icon').on('click',$.proxy(this._showHelpTooltip,this));$('body').on('click',self._hideHelpTooltip);$(this.nodeClass+' .switch-button').on('click',$.proxy(this._switchPrice,this));},_showHelpTooltip:function(e){this._hideHelpTooltip();$(e.target).closest('.fl-builder-tooltip').find('.fl-builder-tooltip-text').fadeIn();e.stopPropagation();},_hideHelpTooltip:function(evt){$('.fl-module-pricing-table .fl-builder-tooltip-text').fadeOut();},_switchPrice:function(event){var nodeClass=this.nodeClass,issecond_option=$(nodeClass+' .switch-button').prop('checked');if(issecond_option){$(nodeClass+' .first_option-price').hide();$(nodeClass+' .second_option-price').show();$(nodeClass+' .slider').removeClass('first_option');$(nodeClass+' .slider').addClass('second_option');}else{$(nodeClass+' .first_option-price').show();$(nodeClass+' .second_option-price').hide();$(nodeClass+' .slider').removeClass('second_option');$(nodeClass+' .slider').addClass('first_option');}
event.stopPropagation();}};})(jQuery);(function($){$(function(){new FLBuilderPricingTable({id:'a1evnw3u0yf8',});});})(jQuery);(function($){$(function(){var numModule=window['number_module_5sygcwrfa34z'];new FLBuilderNumber({id:'5sygcwrfa34z',layout:'circle',type:'standard',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:110000),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:110000),speed:1000,delay:0.5,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-acul93oexrfk .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-w4ia8fx0pyuz .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){$(function(){$('.fl-node-heaw4yxj0pzl .fl-slider-next').empty();$('.fl-node-heaw4yxj0pzl .fl-slider-prev').empty();var testimonials=$('.fl-node-heaw4yxj0pzl .fl-testimonials').bxSlider({fallbackHTML:1,autoStart:1,auto:true,adaptiveHeight:true,ariaLive:false,pause:5000,mode:'horizontal',autoDirection:'next',speed:500,pager:0,nextSelector:'.fl-node-heaw4yxj0pzl .fl-slider-next',prevSelector:'.fl-node-heaw4yxj0pzl .fl-slider-prev',nextText:'<i class="fas fa-chevron-circle-right"></i>',prevText:'<i class="fas fa-chevron-circle-left"></i>',controls:0,autoControls:1,autoControlsCombine:1,onSliderLoad:function(currentIndex){$('.fl-node-heaw4yxj0pzl .fl-testimonials').addClass('fl-testimonials-loaded');$('.fl-node-heaw4yxj0pzl .fl-slider-next a').attr('aria-label','Next testimonial.');$('.fl-node-heaw4yxj0pzl .fl-slider-prev a').attr('aria-label','Previous testimonial.');},onSliderResize:function(currentIndex){this.working=false;this.reloadSlider();}});if('undefined'!==typeof(FLBuilder)){var reloadTestimonials=function(){setTimeout(function(){testimonials.reloadSlider();},50);}
if(!FLBuilder.UIIFrame.isEnabled()){FLBuilder.addHook('responsive-editing-switched',reloadTestimonials);}
FLBuilder.addHook('col-resize-drag',reloadTestimonials);FLBuilder.addHook('col-deleted',reloadTestimonials);}});})(jQuery);(function($){$(function(){var numModule=window['number_module_0dzvoh2xtsjc'];new FLBuilderNumber({id:'0dzvoh2xtsjc',layout:'bars',type:'percent',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:23),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50),speed:1000,delay:1,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-y9mvbanoh7d1 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-el8u2pt0zicj .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});;(function($){FLBuilderAccordion=function(settings){this.settings=settings;this.nodeClass='.fl-node-'+settings.id;this.expandOnTab=settings.expandOnTab;this._init();};FLBuilderAccordion.prototype={settings:{},nodeClass:'',expandOnTab:false,_init:function(){$(this.nodeClass+' .fl-accordion-button').on('click keydown',$.proxy(this._buttonClick,this));$(this.nodeClass+' .fl-accordion-content').on('keydown',$.proxy(this._contentKeys,this));$(this.nodeClass+' .fl-accordion-button').on('focusin',$.proxy(this._focusIn,this));if('undefined'!==typeof FLBuilderLayout){FLBuilderLayout.preloadAudio(this.nodeClass+' .fl-accordion-content');}
this._openActiveAccordion();},_openActiveAccordion:function(){var activeAccordion=$(this.nodeClass+' .fl-accordion-item.fl-accordion-item-active');if(activeAccordion.length>0){activeAccordion.find('.fl-accordion-content:first').show();}},_contentKeys:function(e){const item=$(e.target).closest('.fl-accordion-item');const active=item.hasClass('fl-accordion-item-active');const typing=$(e.target).is('input, textarea, select')||e.target.isContentEditable;if(e.key==='Escape'&&active){this._toggleAccordion(item.find('.fl-accordion-button'));}else if(e.key===' '&&!typing){e.preventDefault();}},_focusIn:function(e){if(!e.relatedTarget||!this.expandOnTab)return;if(!e.target.matches(':focus-visible'))return;const button=$(e.target).closest('.fl-accordion-button');this._toggleAccordion(button);},_buttonClick:function(e){const item=$(e.currentTarget).closest('.fl-accordion-item');const active=item.hasClass('fl-accordion-item-active');const button=item.find('.fl-accordion-button');const target='fl-node-'+item.closest('.fl-module-accordion').data('node');const node=this.nodeClass.replace('.','');if(e.type==='keydown'&&![' ','Enter','Escape'].includes(e.key))return;if(e.type==='click'&&e.button!==0&&e.button!==undefined)return;if(node!==target)return;if(e.key==='Escape'&&!active)return;if([' ','Enter'].includes(e.key)&&$(e.target).hasClass('fl-accordion-button-icon'))e.preventDefault();this._toggleAccordion(button);},_toggleAccordion:function(button){var accordion=button.closest('.fl-accordion'),item=button.closest('.fl-accordion-item'),allContent=accordion.find('.fl-accordion-content'),allIcons=accordion.find('.fl-accordion-button i.fl-accordion-button-icon'),content=button.siblings('.fl-accordion-content'),icon=button.find('i.fl-accordion-button-icon');if(accordion.hasClass('fl-accordion-collapse')){accordion.find('.fl-accordion-item-active').removeClass('fl-accordion-item-active');accordion.find('.fl-accordion-button-icon:not(i)').attr('aria-expanded','false');accordion.find('.fl-accordion-content').attr('aria-hidden','true');allContent.slideUp('normal');if(allIcons.find('svg').length>0){allIcons.find('svg').attr("data-icon",'plus');}else{allIcons.removeClass(this.settings.activeIcon);allIcons.addClass(this.settings.labelIcon);}}
if(!item.find('.fl-accordion-button-icon:not(i)').is(':focus')){item.find('.fl-accordion-button-icon:not(i)').trigger('focus');}
if(content.is(':hidden')){item.find('.fl-accordion-button-icon:not(i)').attr('aria-expanded','true');item.find('.fl-accordion-content').attr('aria-hidden','false');item.addClass('fl-accordion-item-active');content.slideDown('normal',this._slideDownComplete);if(icon.find('svg').length>0){icon.find('svg').attr("data-icon",'minus');}else{icon.removeClass(this.settings.labelIcon);icon.addClass(this.settings.activeIcon);}
icon.parent().find('span').text(this.settings.collapseTxt);icon.find('span').text(this.settings.collapseTxt);}else{item.find('.fl-accordion-button-icon:not(i)').attr('aria-expanded','false');item.find('.fl-accordion-content').attr('aria-hidden','true');item.removeClass('fl-accordion-item-active');content.slideUp('normal',this._slideUpComplete);if(icon.find('svg').length>0){icon.find('svg').attr("data-icon",'plus');}else{icon.removeClass(this.settings.activeIcon);icon.addClass(this.settings.labelIcon);}
icon.parent().find('span').text(this.settings.expandTxt);icon.find('span').text(this.settings.expandTxt);}},_slideUpComplete:function(){var content=$(this),accordion=content.closest('.fl-accordion');accordion.trigger('fl-builder.fl-accordion-toggle-complete');},_slideDownComplete:function(){var content=$(this),accordion=content.closest('.fl-accordion'),item=content.parent(),win=$(window);if('undefined'!==typeof FLBuilderLayout){FLBuilderLayout.refreshGalleries(content);FLBuilderLayout.refreshGridLayout(content);FLBuilderLayout.reloadSlider(content);FLBuilderLayout.resizeAudio(content);FLBuilderLayout.reloadGoogleMap(content);FLBuilderLayout.resizeSlideshow();}
if(item.offset().top<win.scrollTop()+100){$('html, body').animate({scrollTop:item.offset().top-100},500,'swing');}
accordion.trigger('fl-builder.fl-accordion-toggle-complete');}};})(jQuery);(function($){$(function(){new FLBuilderAccordion({id:'eap06ugbd1ki',defaultItem:false,labelIcon:'fas fa-plus',activeIcon:'fas fa-minus',expandOnTab:false,expandTxt:'Expand',collapseTxt:'Collapse'});});})(jQuery);(function($){$(function(){$('.fl-node-ozbirncgsk8v .fl-slider-next').empty();$('.fl-node-ozbirncgsk8v .fl-slider-prev').empty();var testimonials=$('.fl-node-ozbirncgsk8v .fl-testimonials').bxSlider({fallbackHTML:1,autoStart:1,auto:true,adaptiveHeight:true,ariaLive:false,pause:10000,mode:'fade',autoDirection:'next',speed:1000,pager:1,nextSelector:'.fl-node-ozbirncgsk8v .fl-slider-next',prevSelector:'.fl-node-ozbirncgsk8v .fl-slider-prev',nextText:'<i class="fas fa-chevron-circle-right"></i>',prevText:'<i class="fas fa-chevron-circle-left"></i>',controls:0,autoControls:0,autoControlsCombine:0,onSliderLoad:function(currentIndex){$('.fl-node-ozbirncgsk8v .fl-testimonials').addClass('fl-testimonials-loaded');$('.fl-node-ozbirncgsk8v .fl-slider-next a').attr('aria-label','Next testimonial.');$('.fl-node-ozbirncgsk8v .fl-slider-prev a').attr('aria-label','Previous testimonial.');},onSliderResize:function(currentIndex){this.working=false;this.reloadSlider();}});if('undefined'!==typeof(FLBuilder)){var reloadTestimonials=function(){setTimeout(function(){testimonials.reloadSlider();},50);}
if(!FLBuilder.UIIFrame.isEnabled()){FLBuilder.addHook('responsive-editing-switched',reloadTestimonials);}
FLBuilder.addHook('col-resize-drag',reloadTestimonials);FLBuilder.addHook('col-deleted',reloadTestimonials);}});})(jQuery);jQuery(function($){$(function(){$('.fl-node-gfas4hwv3xp9 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){$(function(){var numModule=window['number_module_8cut5rb0kvsd'];new FLBuilderNumber({id:'8cut5rb0kvsd',layout:'bars',type:'percent',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:21),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50),speed:1000,delay:1,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-2pa0oqs658eh .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-a7863uwm2jed .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){$(function(){var numModule=window['number_module_0tkws98me7fa'];new FLBuilderNumber({id:'0tkws98me7fa',layout:'bars',type:'percent',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:22),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50),speed:1000,delay:1,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-h0jsbq2fi4wz .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-69skcdml1x8h .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-epsfjvl3urcb .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){$(function(){var numModule=window['number_module_56gakzthecov'];new FLBuilderNumber({id:'56gakzthecov',layout:'bars',type:'percent',start_number:parseFloat(('undefined'!==typeof numModule)?numModule.start_number:0),number:parseFloat(('undefined'!==typeof numModule)?numModule.number:13),max:parseFloat(('undefined'!==typeof numModule)?numModule.max:50),speed:1000,delay:1,});});})(jQuery);jQuery(function($){$(function(){$('.fl-node-t0mhbj241qxk .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-8uhp7dxeqmal .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-m1ot497fxh3n .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-ajvo3h86lknr .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-7yz23m8gpn1x .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){var e=Array.prototype.slice,i=Array.prototype.splice,n={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},r=t(window),s=t(document),o=[],c=r.height(),a=function(){for(var e=r.scrollTop(),i=s.height(),n=i-c,a=e>n?n-e:0,p=0,d=o.length;p<d;p++){var l=o[p],h=l.stickyWrapper.offset().top-l.topSpacing-a;if(l.stickyWrapper.css("height",l.stickyElement.outerHeight()),e<=h)null!==l.currentTop&&(l.stickyElement.css({width:"",position:"",top:"","z-index":""}),l.stickyElement.parent().removeClass(l.className),l.stickyElement.trigger("sticky-end",[l]),l.currentTop=null);else{var u,g=i-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-e-a;if(g<0?g+=l.topSpacing:g=l.topSpacing,l.currentTop!==g)l.getWidthFrom?u=t(l.getWidthFrom).width()||null:l.widthFromWrapper&&(u=l.stickyWrapper.width()),null==u&&(u=l.stickyElement.width()),l.stickyElement.css("width",u).css("position","fixed").css("top",g).css("z-index",l.zIndex),l.stickyElement.parent().addClass(l.className),null===l.currentTop?l.stickyElement.trigger("sticky-start",[l]):l.stickyElement.trigger("sticky-update",[l]),l.currentTop===l.topSpacing&&l.currentTop>g||null===l.currentTop&&g<l.topSpacing?l.stickyElement.trigger("sticky-bottom-reached",[l]):null!==l.currentTop&&g===l.topSpacing&&l.currentTop<g&&l.stickyElement.trigger("sticky-bottom-unreached",[l]),l.currentTop=g;var m=l.stickyWrapper.parent();l.stickyElement.offset().top+l.stickyElement.outerHeight()>=m.offset().top+m.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing?l.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):l.stickyElement.css("position","fixed").css("top",g).css("bottom","").css("z-index",l.zIndex)}}},p=function(){c=r.height();for(var e=0,i=o.length;e<i;e++){var n=o[e],s=null;n.getWidthFrom?n.responsiveWidth&&(s=t(n.getWidthFrom).width()):n.widthFromWrapper&&(s=n.stickyWrapper.width()),null!=s&&n.stickyElement.css("width",s)}},d={init:function(e){return this.each((function(){var i=t.extend({},n,e),r=t(this),s=r.attr("id"),c=s?s+"-"+n.wrapperClassName:n.wrapperClassName,a=t("<div></div>").attr("id",c).addClass(i.wrapperClassName);r.wrapAll((function(){if(0==t(this).parent("#"+c).length)return a}));var p=r.parent();i.center&&p.css({width:r.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===r.css("float")&&r.css({float:"none"}).parent().css({float:"right"}),i.stickyElement=r,i.stickyWrapper=p,i.currentTop=null,o.push(i),d.setWrapperHeight(this),d.setupChangeListeners(this)}))},setWrapperHeight:function(e){var i=t(e),n=i.parent();n&&n.css("height",i.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver((function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)})).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",(function(){d.setWrapperHeight(t)}),!1),t.addEventListener("DOMNodeRemoved",(function(){d.setWrapperHeight(t)}),!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",(function(){d.setWrapperHeight(t)})),t.attachEvent("onDOMNodeRemoved",(function(){d.setWrapperHeight(t)})))},update:a,unstick:function(e){return this.each((function(){for(var e=t(this),n=-1,r=o.length;r-- >0;)o[r].stickyElement.get(0)===this&&(i.call(o,r,1),n=r);-1!==n&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))}))}};window.addEventListener?(window.addEventListener("scroll",a,!1),window.addEventListener("resize",p,!1)):window.attachEvent&&(window.attachEvent("onscroll",a),window.attachEvent("onresize",p)),t.fn.sticky=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t((function(){setTimeout(a,0)}))}));
;
(function($, window, document, undefined){
'use strict';
var pluginName='newsTicker',
defaults={
row_height: 20,
row_width: 400,
max_rows: 3,
speed: 400,
duration: 2500,
direction: 'up',
autostart: 1,
pauseOnHover: 1,
nextButton: null,
prevButton: null,
startButton: null,
stopButton: null,
hasMoved: function(){},
movingUp: function(){},
movingLeft: function(){},
movingRight: function(){},
movingDown: function(){},
start: function(){},
stop: function(){},
pause: function(){},
unpause: function(){}};
function Plugin(element, options){
this.element=element;
this.$el=$(element);
this.options=$.extend({}, defaults, options);
this._defaults=defaults;
this._name=pluginName;
this.moveInterval;
this.state=0;
this.paused=0;
this.moving=0;
if(this.$el.is('ul, ol')){
this.init();
}}
Plugin.prototype={
init: function(){
this.$el.height(this.options.row_height * this.options.max_rows)
.css({overflow:'hidden'});
this.checkSpeed();
if(this.options.nextButton&&typeof(this.options.nextButton[0])!=='undefined')
this.options.nextButton.click(function(e){
this.moveNext();
this.resetInterval();
}.bind(this));
if(this.options.prevButton&&typeof(this.options.prevButton[0])!=='undefined')
this.options.prevButton.click(function(e){
this.movePrev();
this.resetInterval();
}.bind(this));
if(this.options.stopButton&&typeof(this.options.stopButton[0])!=='undefined')
this.options.stopButton.click(function(e){
this.stop()
}.bind(this));
if(this.options.startButton&&typeof(this.options.startButton[0])!=='undefined')
this.options.startButton.click(function(e){
this.start()
}.bind(this));
if(this.options.pauseOnHover){
this.$el.hover(function(){
if(this.state)
this.pause();
}.bind(this), function(){
if(this.state)
this.unpause();
}.bind(this));
}
if(this.options.autostart)
this.start();
},
start: function(){
if(!this.state){
this.state=1;
this.resetInterval();
this.options.start();
}},
stop: function(){
if(this.state){
clearInterval(this.moveInterval);
this.state=0;
this.options.stop();
}},
resetInterval: function(){
if(this.state){
clearInterval(this.moveInterval);
this.moveInterval=setInterval(function(){this.move()}.bind(this), this.options.duration);
}},
move: function(){
if(!this.paused) this.moveNext();
},
moveNext: function(){
if(this.options.direction==='down')
this.moveDown();
else if(this.options.direction==='up')
this.moveUp();
else if(this.options.direction==='right')
this.moveRight();
else if(this.options.direction==='left')
this.moveLeft();
},
movePrev: function(){
if(this.options.direction==='down')
this.moveUp();
else if(this.options.direction==='up')
this.moveDown();
else if(this.options.direction==='right')
this.moveLeft();
else if(this.options.direction==='left')
this.moveRight();
},
pause: function(){
if(!this.paused) this.paused=1;
this.options.pause();
},
unpause: function(){
if(this.paused) this.paused=0;
this.options.unpause();
},
moveDown: function(){
if(!this.moving){
this.moving=1;
this.options.movingDown();
this.$el.children('li:last').detach().prependTo(this.$el).css('marginTop', '-' + this.options.row_height + 'px')
.animate({marginTop: '0px'}, this.options.speed, function(){
this.moving=0;
this.options.hasMoved();
}.bind(this));
}},
moveUp: function(){
if(!this.moving){
this.moving=1;
this.options.movingUp();
var element=this.$el.children('li:first');
element.animate({marginTop: '-' + this.options.row_height + 'px'}, this.options.speed,
function(){
element.detach().css('marginTop', '0').appendTo(this.$el);
this.moving=0;
this.options.hasMoved();
}.bind(this));
}},
moveRight: function(){
if(!this.moving){
this.moving=1;
this.options.movingRight();
this.$el.children('li:last').detach().prependTo(this.$el).css('marginLeft', '-' + this.options.row_width + 'px')
.animate({marginLeft: '0px'}, this.options.speed, function(){
this.moving=0;
this.options.hasMoved();
}.bind(this));
}},
moveLeft: function(){
if(!this.moving){
this.moving=1;
this.options.movingLeft();
var element=this.$el.children('li:first');
element.animate({marginLeft: '-' + this.options.row_width + 'px'}, this.options.speed,
function(){
element.detach().css('marginLeft', '0').appendTo(this.$el);
this.moving=0;
this.options.hasMoved();
}.bind(this));
}},
updateOption: function(option, value){
if(typeof(this.options[option])!=='undefined'){
this.options[option]=value;
if(option=='duration'||option=='speed'){
this.checkSpeed();
this.resetInterval();
}}
},
add: function(content){
this.$el.append($('<li>').html(content));
},
getState: function(){
if(paused) return 2 
else return this.state;
},
checkSpeed: function(){
if(this.options.duration < (this.options.speed + 25))
this.options.speed=this.options.duration - 25;
},
destroy: function(){
this._destroy();
}};
$.fn[pluginName]=function(option){
var args=arguments;
return this.each(function(){
var $this=$(this),
data=$.data(this, 'plugin_' + pluginName),
options=typeof option==='object'&&option;
if(!data){
$this.data('plugin_' + pluginName, (data=new Plugin(this, options)));
}
if(typeof option==='string'){
data[option].apply(data, Array.prototype.slice.call(args, 1));
}});
};})(jQuery, window, document);
!(function (t, e){
'use strict';
'object'==typeof module &&
'object'==typeof module.exports &&
(module.exports=t.document
? void 0
: function (t){
if(!t.document)
throw new Error('jQuery requires a window with a document');
});
})('undefined'!=typeof window ? window:this),
(function (t){
'use strict';
(t.breakingNews=function (e, i){
var s={
effect: 'scroll',
direction: 'ltr',
height: 20,
fontSize: 'default',
themeColor: 'default',
background: 'default',
borderWidth: 1,
radius: 2,
source: 'html',
rss2jsonApiKey: '',
play: !0,
delayTimer: 4e3,
scrollSpeed: 2,
stopOnHover: !0,
position: 'auto',
zIndex: 99999,
},
n=this;
n.settings={};
var r=t(e),
o=((e=e), r.children('.bn-label')),
a=r.children('.bn-news'),
l=a.children('ul'),
c=l.children('li'),
d=r.children('.bn-controls'),
f=d.find('.bn-prev').parent(),
h=d.find('.bn-action').parent(),
u=d.find('.bn-next').parent(),
g = !1,
p = !0,
m=l.children('li').length,
b=0,
y = !1,
w=function (){
if((0 < o.length &&
('rtl'==n.settings.direction
? a.css({
right: o.outerWidth(),
})
: a.css({
left: o.outerWidth(),
})),
0 < d.length)
){
var e=d.outerWidth();
'rtl'==n.settings.direction
? a.css({
left: e,
})
: a.css({
right: e,
});
}
if('scroll'===n.settings.effect){
var i=0;
c.each(function (){
i +=t(this).outerWidth();
}),
(i +=10),
l.css({
width: i,
});
}},
k=function (){
var t=parseFloat(l.css('marginLeft'));
(t -=n.settings.scrollSpeed / 2),
l.css({
marginLeft: t,
}),
t <=-l.find('li:first-child').outerWidth() &&
(l.find('li:first-child').insertAfter(l.find('li:last-child')),
l.css({
marginLeft: 0,
})),
!1===g &&
((window.requestAnimationFrame&&requestAnimationFrame(k)) ||
setTimeout(k, 16));
},
v=function (){
var t=parseFloat(l.css('marginRight'));
(t -=n.settings.scrollSpeed / 2),
l.css({
marginRight: t,
}),
t <=-l.find('li:first-child').outerWidth() &&
(l.find('li:first-child').insertAfter(l.find('li:last-child')),
l.css({
marginRight: 0,
})),
!1===g &&
((window.requestAnimationFrame&&requestAnimationFrame(v)) ||
setTimeout(v, 16));
},
q=function (){
switch (((p = !0), n.settings.effect)){
case 'typography':
l.find('li').hide(),
l.find('li').eq(b).width(30).show(),
l.find('li').eq(b).animate({
width: '100%',
opacity: 1,
},
1500,
);
break;
case 'fade':
l.find('li').hide(), l.find('li').eq(b).fadeIn();
break;
case 'slide-down':
m <=1
? l.find('li').animate({
top: 30,
opacity: 0,
},
300,
function (){
t(this).css({
top: -30,
opacity: 0,
display: 'block',
}),
t(this).animate({
top: 0,
opacity: 1,
},
300,
);
},
)
: (l.find('li:visible').animate({
top: 30,
opacity: 0,
},
300,
function (){
t(this).hide();
},
),
l
.find('li')
.eq(b)
.css({
top: -30,
opacity: 0,
})
.show(),
l.find('li').eq(b).animate({
top: 0,
opacity: 1,
},
300,
));
break;
case 'slide-up':
m <=1
? l.find('li').animate({
top: -30,
opacity: 0,
},
300,
function (){
t(this).css({
top: 30,
opacity: 0,
display: 'block',
}),
t(this).animate({
top: 0,
opacity: 1,
},
300,
);
},
)
: (l.find('li:visible').animate({
top: -30,
opacity: 0,
},
300,
function (){
t(this).hide();
},
),
l
.find('li')
.eq(b)
.css({
top: 30,
opacity: 0,
})
.show(),
l.find('li').eq(b).animate({
top: 0,
opacity: 1,
},
300,
));
break;
case 'slide-left':
m <=1
? l.find('li').animate({
left: '50%',
opacity: 0,
},
300,
function (){
t(this).css({
left: -50,
opacity: 0,
display: 'block',
}),
t(this).animate({
left: 0,
opacity: 1,
},
300,
);
},
)
: (l.find('li:visible').animate({
left: '50%',
opacity: 0,
},
300,
function (){
t(this).hide();
},
),
l
.find('li')
.eq(b)
.css({
left: -50,
opacity: 0,
})
.show(),
l.find('li').eq(b).animate({
left: 0,
opacity: 1,
},
300,
));
break;
case 'slide-right':
m <=1
? l.find('li').animate({
left: '-50%',
opacity: 0,
},
300,
function (){
t(this).css({
left: '50%',
opacity: 0,
display: 'block',
}),
t(this).animate({
left: 0,
opacity: 1,
},
300,
);
},
)
: (l.find('li:visible').animate({
left: '-50%',
opacity: 0,
},
300,
function (){
t(this).hide();
},
),
l
.find('li')
.eq(b)
.css({
left: '50%',
opacity: 0,
})
.show(),
l.find('li').eq(b).animate({
left: 0,
opacity: 1,
},
300,
));
break;
default:
l.find('li').hide(), l.find('li').eq(b).show();
}},
x=function (){
if(((g = !1), n.settings.play))
switch (n.settings.effect){
case 'scroll':
'rtl'===n.settings.direction
? l.width() > a.width()&&v()
: l.width() > a.width()&&k();
break;
default:
n.pause(),
(y=setInterval(function (){
n.next();
}, n.settings.delayTimer));
}};
(n.init=function (){
if(((n.settings=t.extend({}, s, i)),
'fixed-top'===n.settings.position
? r.addClass('bn-fixed-top').css({
'z-index': n.settings.zIndex,
})
: 'fixed-bottom'===n.settings.position &&
r.addClass('bn-fixed-bottom').css({
'z-index': n.settings.zIndex,
}),
'default'!=n.settings.fontSize &&
r.css({
'font-size': n.settings.fontSize,
}),
'default'!=n.settings.themeColor &&
(r.css({
'border-color': n.settings.themeColor,
color: n.settings.themeColor,
}),
o.css({
background: n.settings.themeColor,
})),
'default'!=n.settings.background &&
r.css({
background: n.settings.background,
}),
r.css({
height: n.settings.height,
'line-height':
n.settings.height - 2 * n.settings.borderWidth + 'px',
'border-radius': n.settings.radius,
'border-width': n.settings.borderWidth,
}),
c.find('.bn-seperator').css({
height: n.settings.height - 2 * n.settings.borderWidth,
}),
r.addClass('bn-effect-' +
n.settings.effect +
' bn-direction-' +
n.settings.direction,
),
w(),
'object'==typeof n.settings.source)
)
switch (n.settings.source.type){
case 'rss':
'rss2json'===n.settings.source.usingApi
? (((d=new XMLHttpRequest()).onreadystatechange =
function (){
if(4==d.readyState&&200==d.status){
var t=JSON.parse(d.responseText),
e='',
i='';
switch (n.settings.source.showingField){
case 'title':
i='title';
break;
case 'description':
i='description';
break;
case 'link':
i='link';
break;
default:
i='title';
}
var s='';
void 0!==n.settings.source.seperator &&
void 0!==typeof n.settings.source.seperator &&
(s=n.settings.source.seperator);
for (var r=0; r < t.items.length; r++)
n.settings.source.linkEnabled
? (e +=
'<li><a target="' +
n.settings.source.target +
'" href="' +
t.items[r].link +
'">' +
s +
t.items[r][i] +
'</a></li>')
: (e +=
'<li><a>' + s + t.items[r][i] + '</a></li>');
l.empty().append(e),
(c=l.children('li')),
(m=l.children('li').length),
w(),
'scroll'!=n.settings.effect&&q(),
c.find('.bn-seperator').css({
height:
n.settings.height - 2 * n.settings.borderWidth,
}),
x();
}}),
d.open('GET',
'https://api.rss2json.com/v1/api.json?rss_url=' +
n.settings.source.url +
'&count=' +
n.settings.source.limit +
'&api_key=' +
n.settings.source.rss2jsonApiKey,
!0,
),
d.send())
: ((e=new XMLHttpRequest()).open('GET',
'https://query.yahooapis.com/v1/public/yql?q=' +
encodeURIComponent(
'select * from rss where url="' +
n.settings.source.url +
'" limit ' +
n.settings.source.limit,
) +
'&format=json',
!0,
),
(e.onreadystatechange=function (){
if(4==e.readyState)
if(200==e.status){
var t=JSON.parse(e.responseText),
i='',
s='';
switch (n.settings.source.showingField){
case 'title':
s='title';
break;
case 'description':
s='description';
break;
case 'link':
s='link';
break;
default:
s='title';
}
var r='';
'undefined'!=n.settings.source.seperator &&
void 0!==n.settings.source.seperator &&
(r=n.settings.source.seperator);
for (var o=0; o < t.query.results.item.length; o++)
n.settings.source.linkEnabled
? (i +=
'<li><a target="' +
n.settings.source.target +
'" href="' +
t.query.results.item[o].link +
'">' +
r +
t.query.results.item[o][s] +
'</a></li>')
: (i +=
'<li><a>' +
r +
t.query.results.item[o][s] +
'</a></li>');
l.empty().append(i),
(c=l.children('li')),
(m=l.children('li').length),
w(),
'scroll'!=n.settings.effect&&q(),
c.find('.bn-seperator').css({
height:
n.settings.height - 2 * n.settings.borderWidth,
}),
x();
} else
l.empty().append('<li><span class="bn-loader-text">' +
n.settings.source.errorMsg +
'</span></li>',
);
}),
e.send(null));
break;
case 'json':
t.getJSON(n.settings.source.url, function (t){
var e,
i='';
e =
'undefined'===n.settings.source.showingField
? 'title'
: n.settings.source.showingField;
var s='';
void 0!==n.settings.source.seperator &&
void 0!==typeof n.settings.source.seperator &&
(s=n.settings.source.seperator);
for (
var r=0;
r < t.length&&!(r >=n.settings.source.limit);
r++
)
n.settings.source.linkEnabled
? (i +=
'<li><a target="' +
n.settings.source.target +
'" href="' +
t[r].link +
'">' +
s +
t[r][e] +
'</a></li>')
: (i +='<li><a>' + s + t[r][e] + '</a></li>'),
'undefined'===t[r][e] &&
console.log('"' + e + '" does not exist in this json.');
l.empty().append(i),
(c=l.children('li')),
(m=l.children('li').length),
w(),
'scroll'!=n.settings.effect&&q(),
c.find('.bn-seperator').css({
height: n.settings.height - 2 * n.settings.borderWidth,
}),
x();
});
break;
default:
console.log('Please check your "source" object parameter. Incorrect Value',
);
}
else
'html'===n.settings.source
? ('scroll'!=n.settings.effect&&q(), x())
: console.log('Please check your "source" parameter. Incorrect Value',
);
var e, d;
n.settings.play
? h.find('span').removeClass('bn-play').addClass('bn-pause')
: h.find('span').removeClass('bn-pause').addClass('bn-play'),
r.on('mouseleave', function (e){
var i=t(document.elementFromPoint(e.clientX, e.clientY)).parents('.breaking-news-ticker',
)[0];
t(this)[0]!==i &&
(!0===n.settings.stopOnHover
? !0===n.settings.play&&n.play()
: !0===n.settings.play&&!0===g&&n.play());
}),
r.on('mouseenter', function (){
!0===n.settings.stopOnHover&&n.pause();
}),
u.on('click', function (){
p&&((p = !1), n.pause(), n.next());
}),
f.on('click', function (){
p&&((p = !1), n.pause(), n.prev());
}),
h.on('click', function (){
p &&
(h.find('span').hasClass('bn-pause')
? (h.find('span').removeClass('bn-pause').addClass('bn-play'),
n.stop())
: ((n.settings.play = !0),
h.find('span').removeClass('bn-play').addClass('bn-pause')));
}),
t(window).on('resize', function (){
r.width() < 480
? (o.hide(),
'rtl'==n.settings.direction
? a.css({
right: 0,
})
: a.css({
left: 0,
}))
: (o.show(),
'rtl'==n.settings.direction
? a.css({
right: o.outerWidth(),
})
: a.css({
left: o.outerWidth(),
}));
});
}),
(n.pause=function (){
(g = !0), clearInterval(y);
}),
(n.stop=function (){
(g = !0), (n.settings.play = !1);
}),
(n.play=function (){
x();
}),
(n.next=function (){
!(function (){
switch (n.settings.effect){
case 'scroll':
'rtl'===n.settings.direction
? l.stop().animate({
marginRight: -l.find('li:first-child').outerWidth(),
},
300,
function (){
l
.find('li:first-child')
.insertAfter(l.find('li:last-child')),
l.css({
marginRight: 0,
}),
(p = !0);
},
)
: l.stop().animate({
marginLeft: -l.find('li:first-child').outerWidth(),
},
300,
function (){
l
.find('li:first-child')
.insertAfter(l.find('li:last-child')),
l.css({
marginLeft: 0,
}),
(p = !0);
},
);
break;
default:
m <=++b&&(b=0), q();
}})();
}),
(n.prev=function (){
!(function (){
switch (n.settings.effect){
case 'scroll':
'rtl'===n.settings.direction
? (0 <=parseInt(l.css('marginRight'), 10) &&
(l.css({
'margin-right': -l.find('li:last-child').outerWidth(),
}),
l
.find('li:last-child')
.insertBefore(l.find('li:first-child'))),
l.stop().animate({
marginRight: 0,
},
300,
function (){
p = !0;
},
))
: (0 <=parseInt(l.css('marginLeft'), 10) &&
(l.css({
'margin-left': -l.find('li:last-child').outerWidth(),
}),
l
.find('li:last-child')
.insertBefore(l.find('li:first-child'))),
l.stop().animate({
marginLeft: 0,
},
300,
function (){
p = !0;
},
));
break;
default:
--b < 0&&(b=m - 1), q();
}})();
}),
n.init();
}),
(t.fn.breakingNews=function (e){
return this.each(function (){
if(null==t(this).data('breakingNews')){
var i=new t.breakingNews(this, e);
t(this).data('breakingNews', i);
}});
});
})(jQuery);
!function(){var e,a,t,n,s,r;if((e=document.getElementById("cm-primary-nav"))&&void 0!==(a=e.getElementsByClassName("cm-menu-toggle")[0]))if(void 0!==(t=e.getElementsByTagName("ul")[0])){for(t.setAttribute("aria-expanded","false"),-1===t.className.indexOf("nav-menu")&&(t.className+="nav-menu"),a.onclick=function(){-1!==e.className.indexOf("cm-mobile-nav")?(e.className=e.className.replace("cm-mobile-nav","cm-primary-nav"),a.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false")):(e.className=e.className.replace("cm-primary-nav","cm-mobile-nav"),a.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","true"))},s=0,r=(n=t.getElementsByTagName("a")).length;s<r;s++)n[s].addEventListener("focus",i,!0),n[s].addEventListener("blur",i,!0);!function(e){var a,t,n=e.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");if("ontouchstart"in window&&window.matchMedia("(min-width: 768px)").matches)for(a=function(e){var a,t=this.parentNode;if(t.classList.contains("focus"))t.classList.remove("focus");else{for(e.preventDefault(),a=0;a<t.parentNode.children.length;++a)t!==t.parentNode.children[a]&&t.parentNode.children[a].classList.remove("focus");t.classList.add("focus")}},t=0;t<n.length;++t)n[t].addEventListener("touchstart",a,!1)}(e)}else a.style.display="none";function i(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}(),function(){const e=document.querySelector(".cm-mobile-nav-container");if(!e)return;const a=e.querySelector(".cm-menu-toggle"),t=e.querySelector(".cm-mobile-menu");a.addEventListener("click",(function(e){e.preventDefault();"false"===e.currentTarget.getAttribute("aria-expanded")?(e.currentTarget.setAttribute("aria-expanded","true"),t.classList.add("cm-mobile-menu--open")):(e.currentTarget.setAttribute("aria-expanded","false"),t.classList.remove("cm-mobile-menu--open"))}))}();
!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("div");a.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',r.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));(a=(a=a.not("object object")).not(r)).each((function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var a="fitvid"+t.fn.fitVids._count;e.attr("name",a),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);
!function(i){i.fn.theiaStickySidebar=function(t){function e(t,e){return!0===t.initialized||!(i("body").width()<t.minWidth)&&(function(t,e){t.initialized=!0,0===i("#theia-sticky-sidebar-stylesheet-"+t.namespace).length&&i("head").append(i('<style id="theia-sticky-sidebar-stylesheet-'+t.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));e.each((function(){var e={};if(e.sidebar=i(this),e.options=t||{},e.container=i(e.options.containerSelector),0==e.container.length&&(e.container=e.sidebar.parent()),e.sidebar.parents().css("-webkit-transform","none"),e.sidebar.css({position:e.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),e.stickySidebar=e.sidebar.find(".theiaStickySidebar"),0==e.stickySidebar.length){var a=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;e.sidebar.find("script").filter((function(i,t){return 0===t.type.length||t.type.match(a)})).remove(),e.stickySidebar=i("<div>").addClass("theiaStickySidebar").append(e.sidebar.children()),e.sidebar.append(e.stickySidebar)}e.marginBottom=parseInt(e.sidebar.css("margin-bottom")),e.paddingTop=parseInt(e.sidebar.css("padding-top")),e.paddingBottom=parseInt(e.sidebar.css("padding-bottom"));var n=e.stickySidebar.offset().top,s=e.stickySidebar.outerHeight();function d(){e.fixedScrollTop=0,e.sidebar.css({"min-height":"1px"}),e.stickySidebar.css({position:"static",width:"",transform:"none"})}e.stickySidebar.css("padding-top",1),e.stickySidebar.css("padding-bottom",1),n-=e.stickySidebar.offset().top,s=e.stickySidebar.outerHeight()-s-n,0==n?(e.stickySidebar.css("padding-top",0),e.stickySidebarPaddingTop=0):e.stickySidebarPaddingTop=1,0==s?(e.stickySidebar.css("padding-bottom",0),e.stickySidebarPaddingBottom=0):e.stickySidebarPaddingBottom=1,e.previousScrollTop=null,e.fixedScrollTop=0,d(),e.onScroll=function(e){if(e.stickySidebar.is(":visible"))if(i("body").width()<e.options.minWidth)d();else{if(e.options.disableOnResponsiveLayouts)if(e.sidebar.outerWidth("none"==e.sidebar.css("float"))+50>e.container.width())return void d();var a,n,s=i(document).scrollTop(),r="static";if(s>=e.sidebar.offset().top+(e.paddingTop-e.options.additionalMarginTop)){var c,p=e.paddingTop+t.additionalMarginTop,b=e.paddingBottom+e.marginBottom+t.additionalMarginBottom,l=e.sidebar.offset().top,f=e.sidebar.offset().top+(a=e.container,n=a.height(),a.children().each((function(){n=Math.max(n,i(this).height())})),n),h=0+t.additionalMarginTop;c=e.stickySidebar.outerHeight()+p+b<i(window).height()?h+e.stickySidebar.outerHeight():i(window).height()-e.marginBottom-e.paddingBottom-t.additionalMarginBottom;var g=l-s+e.paddingTop,S=f-s-e.paddingBottom-e.marginBottom,u=e.stickySidebar.offset().top-s,m=e.previousScrollTop-s;"fixed"==e.stickySidebar.css("position")&&"modern"==e.options.sidebarBehavior&&(u+=m),"stick-to-top"==e.options.sidebarBehavior&&(u=t.additionalMarginTop),"stick-to-bottom"==e.options.sidebarBehavior&&(u=c-e.stickySidebar.outerHeight()),u=m>0?Math.min(u,h):Math.max(u,c-e.stickySidebar.outerHeight()),u=Math.max(u,g),u=Math.min(u,S-e.stickySidebar.outerHeight());var y=e.container.height()==e.stickySidebar.outerHeight();r=(y||u!=h)&&(y||u!=c-e.stickySidebar.outerHeight())?s+u-e.sidebar.offset().top-e.paddingTop<=t.additionalMarginTop?"static":"absolute":"fixed"}if("fixed"==r){var k=i(document).scrollLeft();e.stickySidebar.css({position:"fixed",width:o(e.stickySidebar)+"px",transform:"translateY("+u+"px)",left:e.sidebar.offset().left+parseInt(e.sidebar.css("padding-left"))-k+"px",top:"0px"})}else if("absolute"==r){var v={};"absolute"!=e.stickySidebar.css("position")&&(v.position="absolute",v.transform="translateY("+(s+u-e.sidebar.offset().top-e.stickySidebarPaddingTop-e.stickySidebarPaddingBottom)+"px)",v.top="0px"),v.width=o(e.stickySidebar)+"px",v.left="",e.stickySidebar.css(v)}else"static"==r&&d();"static"!=r&&1==e.options.updateSidebarHeight&&e.sidebar.css({"min-height":e.stickySidebar.outerHeight()+e.stickySidebar.offset().top-e.sidebar.offset().top+e.paddingBottom}),e.previousScrollTop=s}},e.onScroll(e),i(document).on("scroll."+e.options.namespace,function(i){return function(){i.onScroll(i)}}(e)),i(window).on("resize."+e.options.namespace,function(i){return function(){i.stickySidebar.css({position:"static"}),i.onScroll(i)}}(e)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(e.stickySidebar[0],function(i){return function(){i.onScroll(i)}}(e))}))}(t,e),!0)}function o(i){var t;try{t=i[0].getBoundingClientRect().width}catch(i){}return void 0===t&&(t=i.width()),t}return(t=i.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},t)).additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||0,function(t,o){e(t,o)||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),i(document).on("scroll."+t.namespace,function(t,o){return function(a){e(t,o)&&i(this).unbind(a)}}(t,o)),i(window).on("resize."+t.namespace,function(t,o){return function(a){e(t,o)&&i(this).unbind(a)}}(t,o)))}(t,this),this}}(jQuery);
!function(){var e=function(t,i){function s(){var e,t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(e=0,t=this.q.length;e<t;e++)this.q[e].call()}}function o(e,t){if(e.resizedAttached){if(e.resizedAttached)return void e.resizedAttached.add(t)}else e.resizedAttached=new s,e.resizedAttached.add(t);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var i="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",o="position: absolute; left: 0; top: 0; transition: 0s;";e.resizeSensor.style.cssText=i,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+i+'"><div style="'+o+'"></div></div><div class="resize-sensor-shrink" style="'+i+'"><div style="'+o+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor),{fixed:1,absolute:1}[function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(e,"position")]||(e.style.position="relative");var n,r,d=e.resizeSensor.childNodes[0],l=d.childNodes[0],c=e.resizeSensor.childNodes[1],h=(c.childNodes[0],function(){l.style.width=d.offsetWidth+10+"px",l.style.height=d.offsetHeight+10+"px",d.scrollLeft=d.scrollWidth,d.scrollTop=d.scrollHeight,c.scrollLeft=c.scrollWidth,c.scrollTop=c.scrollHeight,n=e.offsetWidth,r=e.offsetHeight});h();var a=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)},f=function(){e.offsetWidth==n&&e.offsetHeight==r||e.resizedAttached&&e.resizedAttached.call(),h()};a(d,"scroll",f),a(c,"scroll",f)}var n=Object.prototype.toString.call(t),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements;if(r)for(var d=0,l=t.length;d<l;d++)o(t[d],i);else o(t,i);this.detach=function(){if(r)for(var i=0,s=t.length;i<s;i++)e.detach(t[i]);else e.detach(t)}};e.detach=function(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)},"undefined"!=typeof module&&void 0!==module.exports?module.exports=e:window.ResizeSensor=e}();
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1);
jQuery(document).ready((function(){var e=function(){jQuery("#cm-masthead .search-form-top").removeClass("show"),jQuery("#cm-content").removeClass("backdrop")};jQuery(".search-top").click((function(){jQuery(this).next("#cm-masthead .search-form-top").toggleClass("show"),jQuery("#cm-content").toggleClass("backdrop"),setTimeout((function(){jQuery("#cm-masthead .search-form-top input").focus()}),200),jQuery(document).on("keyup",(function(t){27===t.keyCode&&jQuery("#cm-masthead .search-form-top").hasClass("show")&&e()})),jQuery(document).on("click.outEvent",(function(t){t.target.closest(".cm-top-search")||(e(),jQuery(document).off("click.outEvent"))}))})),jQuery("#scroll-up").hide(),jQuery(window).scroll((function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()})),jQuery("a#scroll-up").click((function(){return jQuery("body,html").animate({scrollTop:0},800),!1})),jQuery(".cm-menu-primary-container .menu-item-has-children"),jQuery(".cm-submenu-toggle").click((function(){jQuery(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000")})),jQuery(document).on("click","#cm-primary-nav ul li.menu-item-has-children > a",(function(e){var t=jQuery(this).parent(".menu-item-has-children");!t.hasClass("focus")&&jQuery(window).width()<=768&&(t.addClass("focus"),e.preventDefault(),t.children(".sub-menu").css({display:"block"}))}));let t,i=document.getElementsByClassName("cm-header-builder");if(t=i.length>0?".cm-header-bottom-row":".cm-primary-nav",jQuery(window).on("load",(function(){if(window.matchMedia("(max-width: 768px)").matches&&jQuery("#cm-masthead .sticky-wrapper, .cm-header-bottom-row .sticky-wrapper, #cm-masthead .headroom").length>=1){var e=jQuery(window).height()-88,t=jQuery("#cm-primary-nav").find("ul").first();t.css("max-height",e),t.addClass("menu-scrollbar")}})),jQuery(".wp-block-group__inner-container h2").wrap('<div class="block-title"></div>'),jQuery(".wp-block-heading").wrap('<div class="block-title"></div>'),void 0!==jQuery.fn.magnificPopup&&(jQuery(".image-popup").magnificPopup({type:"image"}),jQuery(".image-popup-blog").magnificPopup({type:"image"}),jQuery(".gallery").find('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".ico"]').magnificPopup({type:"image",gallery:{enabled:!0}}),jQuery(".colormag-ticker-news-popup-link").magnificPopup({type:"ajax",callbacks:{parseAjax:function(e){var t=jQuery.magnificPopup.instance,i=jQuery(t.currItem.el[0]).data("fragment");e.data=jQuery(e.data).find(i)}}})),void 0!==jQuery.fn.fitVids&&jQuery(".fitvids-video").fitVids(),"undefined"!=typeof colormag_new_news_ticker_settings){let e=colormag_new_news_ticker_settings.ticker_slide_effect,t=colormag_new_news_ticker_settings.ticker_news_duration,i=colormag_new_news_ticker_settings.ticker_news_speed;jQuery("#cm-breaking-news-ticker").breakingNews({effect:e,scrollSpeed:i,delayTimer:t})}if(void 0!==jQuery.fn.newsTicker){if("undefined"!=typeof colormag_ticker_settings){var r=colormag_ticker_settings.breaking_news_slide_effect,a=parseInt(colormag_ticker_settings.breaking_news_duration,10),o=parseInt(colormag_ticker_settings.breaking_news_speed,10);jQuery(".newsticker").newsTicker({row_height:20,max_rows:1,direction:r,speed:o,duration:a,autostart:1,pauseOnHover:1,start:function(){jQuery(".newsticker").css("visibility","visible")}})}var s=jQuery(".cm-breaking-news");jQuery(s).each((function(){!function(e,t,i,r,a,o,s){jQuery(e).newsTicker({row_height:o,max_rows:s,duration:a,direction:r,prevButton:jQuery(t),nextButton:jQuery(i),start:function(){jQuery(".cm-breaking-news-slider-widget").css({visibility:"visible"})}})}(jQuery(this).children(".cm-breaking-news-slider-widget"),jQuery(this).children(".cm-slide-up"),jQuery(this).children(".cm-slide-down"),jQuery(this).children(".cm-breaking-news-slider-widget").data("direction"),jQuery(this).children(".cm-breaking-news-slider-widget").data("duration"),jQuery(this).children(".cm-breaking-news-slider-widget").data("rowheight"),jQuery(this).children(".cm-breaking-news-slider-widget").data("maxrows"))}))}var n,c,l,d,u,m,h,p,g,y,f,v,j;void 0!==jQuery.fn.sticky&&((w=jQuery("#wpadminbar")).length?jQuery(t).sticky({topSpacing:w.height(),zIndex:999}):jQuery(t).sticky({topSpacing:0,zIndex:999}));if(jQuery(".wp-block-search__input").attr("placeholder","Search posts"),void 0!==jQuery.fn.headroom){var Q=jQuery(t).offset().top,w=jQuery("#wpadminbar"),b=jQuery(t).width();w.length&&(Q=w.height()+jQuery(t).offset().top),jQuery(t).headroom({offset:Q,tolerance:0,onPin:function(){w.length?jQuery(t).css({top:w.height(),position:"fixed",width:b}):jQuery(t).css({top:0,position:"fixed","z-index":999,width:b})},onTop:function(){jQuery(t).css({top:0,position:"relative"})}})}if(void 0!==jQuery.fn.bxSlider){var k=jQuery(".cm-featured-category-slider ");jQuery(k).each((function(){!function(e,t,i,r,a,o){jQuery(e).bxSlider({mode:t,speed:i,auto:a,pause:r,autoHover:o,adaptiveHeight:!0,nextText:'<div class="cm-category-slide-next"><svg class="cm-icon coloramg-icon--arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11h15.59l-7.3-7.29a1 1 0 0 1 1.42-1.42l9 9a.93.93 0 0 1 .21.33A1 1 0 0 1 22 12a1.09 1.09 0 0 1-.08.39 1.06 1.06 0 0 1-.21.31l-9 9a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l7.3-7.28H3a1 1 0 0 1 0-2Z"></path></svg></div>',prevText:'<div class="cm-category-slide-prev"><svg class="cm-icon coloramg-icon--arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 11H5.41l7.3-7.29a1 1 0 1 0-1.42-1.42l-9 9a.93.93 0 0 0-.21.33A1 1 0 0 0 2 12a1.09 1.09 0 0 0 .08.39 1.06 1.06 0 0 0 .21.31l9 9a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.41 13H21a1 1 0 0 0 0-2Z"></path></svg></div>',pager:!1,tickerHover:!0,onSliderLoad:function(){jQuery(".cm-slider-area-rotate").css("visibility","visible"),jQuery(".cm-slider-area-rotate").css("height","auto")}})}(jQuery(this).children(".cm-slider-area-rotate"),jQuery(this).children(".cm-slider-area-rotate").data("mode"),jQuery(this).children(".cm-slider-area-rotate").data("speed"),jQuery(this).children(".cm-slider-area-rotate").data("pause"),jQuery(this).children(".cm-slider-area-rotate").data("auto"),jQuery(this).children(".cm-slider-area-rotate").data("hover"))}));var _=jQuery(".cm-posts");jQuery(_).each((function(){!function(e,t,i,r,a){jQuery(e).bxSlider({minSlides:1,maxSlides:2,slideWidth:390,slideMargin:20,speed:t,pause:i,auto:r,autoHover:a,adaptiveHeight:!0,nextText:'<div class="slide-next"><i class="fa fa-angle-right"></i></div>',prevText:'<div class="slide-prev"><i class="fa fa-angle-left"></i></div>',pager:!1,captions:!1,onSliderLoad:function(){jQuery(".cm-featured-posts--style-5 .cm-highlighted-post").css("visibility","visible"),jQuery(".cm-featured-posts--style-5 .cm-highlighted-post").css("height","auto")}})}(jQuery(this).children(".cm-featured-posts--style-5 .cm-highlighted-post"),jQuery(this).children(".cm-featured-posts--style-5 .cm-highlighted-post").data("speed"),jQuery(this).children(".cm-featured-posts--style-5 .cm-highlighted-post").data("pause"),jQuery(this).children(".cm-featured-posts--style-5 .cm-highlighted-post").data("auto"),jQuery(this).children(".cm-featured-posts--style-5 .cm-highlighted-post").data("hover"))}));var x=jQuery(".cm-thumbnail-slider-news");jQuery(x).each((function(){!function(e,t,i,r,a,o,s){jQuery(e).bxSlider({mode:i,speed:r,pause:a,auto:o,pagerCustom:t,autoHover:s,controls:!1,nextText:"",prevText:"",nextSelector:"",prevSelector:"",captions:!1,onSliderLoad:function(){jQuery(".thumbnail-big-sliders").css("visibility","visible"),jQuery(".thumbnail-big-sliders").css("height","auto")}})}(jQuery(this).children(".thumbnail-big-sliders"),jQuery(this).children(".cm-thumbnail-slider"),jQuery(this).children(".thumbnail-big-sliders").data("mode"),jQuery(this).children(".thumbnail-big-sliders").data("speed"),jQuery(this).children(".thumbnail-big-sliders").data("pause"),jQuery(this).children(".thumbnail-big-sliders").data("auto"),jQuery(this).children(".thumbnail-big-sliders").data("hover"))}));var S=jQuery(".cm-featured-posts--style-7");jQuery(S).each((function(){!function(e,t){jQuery(e).bxSlider({minSlides:5,maxSlides:8,slideWidth:150,slideMargin:12,ticker:!0,speed:t,tickerHover:!0,useCSS:!1,onSliderLoad:function(){jQuery(".cm-image-ticker-news").css("visibility","visible"),jQuery(".cm-image-ticker-news").css("height","auto")}})}(jQuery(this).children(".cm-image-ticker-news"),jQuery(this).children(".cm-image-ticker-news").data("speed"))})),jQuery(".blog .gallery-images, .archive .gallery-images, .search .gallery-images, .single-post .gallery-images").bxSlider({mode:"fade",speed:1500,auto:!0,pause:3e3,adaptiveHeight:!0,nextText:"",prevText:"",nextSelector:".slide-next",prevSelector:".slide-prev",pager:!1}),jQuery(window).on("load colormagAjaxSinglePostLoaded",(function(){jQuery(".related-post-carousel").bxSlider({minSlides:1,maxSlides:2,auto:!0,slideWidth:390,slideMargin:20,moveSlides:1,shrinkItems:!0,speed:3e3,autoHover:!0,nextText:'<div class="slide-next"><svg class="cm-icon coloramg-icon--arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11h15.59l-7.3-7.29a1 1 0 0 1 1.42-1.42l9 9a.93.93 0 0 1 .21.33A1 1 0 0 1 22 12a1.09 1.09 0 0 1-.08.39 1.06 1.06 0 0 1-.21.31l-9 9a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l7.3-7.28H3a1 1 0 0 1 0-2Z"></path></svg></i></div>',prevText:'<div class="slide-prev"><svg class="cm-icon coloramg-icon--arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 11H5.41l7.3-7.29a1 1 0 1 0-1.42-1.42l-9 9a.93.93 0 0 0-.21.33A1 1 0 0 0 2 12a1.09 1.09 0 0 0 .08.39 1.06 1.06 0 0 0 .21.31l9 9a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.41 13H21a1 1 0 0 0 0-2Z"></path></svg></div>',pager:!1,captions:!1,onSliderLoad:function(){jQuery(".related-post-carousel").css("visibility","visible"),jQuery(".related-post-carousel").css("height","auto")}})}))}if(void 0!==jQuery.fn.easytabs&&jQuery(".cm-tabbed-widget").easytabs(),void 0!==jQuery.fn.theiaStickySidebar&&"undefined"!=typeof ResizeSensor){var C=jQuery("#sticky-wrapper").outerHeight();null===C&&(C=0),jQuery("#cm-primary, #cm-secondary, #cm-tertiary").theiaStickySidebar({additionalMarginTop:40+C})}function I(e){e.find(".player-frame").each((function(){var e=jQuery(this),t=jQuery('[data-id="'+e.attr("id")+'"]');e.addVideoEvent("play",(function(e,i,r){t.removeClass("is-paused").addClass("is-playing")})),e.addVideoEvent("pause",(function(e,i,r){t.removeClass("is-playing").addClass("is-paused")})),e.addVideoEvent("finish",(function(e,i,r){t.removeClass("is-paused is-playing")}))}))}if(jQuery(".video-player").each((function(e){var t=jQuery(this),i="video-playlist-item-"+e,r=jQuery(this).find(".player-frame");t.attr("id",i),r.video(),I(t),r.addVideoEvent("ready",(function(){r.css("visibility","visible").fadeIn()})),t.on("click",".video-playlist-item",(function(){var e=jQuery(this),i=e.data("id"),r=jQuery("#"+i),a=e.data("src");t.find(".player-frame").each((function(){jQuery(this).pauseVideo().hide()})),r.length?r.playVideo():(t.find(".video-frame").append('<iframe id="'+i+'" class="player-frame" src="'+a+'" frameborder="0" width="100%" height="434" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),(r=jQuery("#"+i)).video(),r.addVideoEvent("ready",(function(e,t,i){r.playVideo()}))),r.css("visibility","visible").fadeIn(),I(t)}))})),void 0!==jQuery.fn.prognroll&&jQuery("body").prognroll({height:5,color:colormag_progress_bar_indicator_color.bg_color,custom:!1}),"undefined"!=typeof google&&"undefined"!=typeof colormag_google_maps_widget_settings){n=parseFloat(colormag_google_maps_widget_settings.longitude),c=parseFloat(colormag_google_maps_widget_settings.latitude),l=parseInt(colormag_google_maps_widget_settings.zoom_size),d={lat:c,lng:n},u=new google.maps.Map(document.getElementById("GoogleMaps"),{zoom:l,center:d}),new google.maps.Marker({position:d,map:u}),jQuery("#GoogleMaps").css({height:colormag_google_maps_widget_settings.height})}y=jQuery(".share-buttons #facebook")[0],f=jQuery(".share-buttons #twitter")[0],v=jQuery(".share-buttons #pinterest")[0],j=jQuery(".share-buttons #email")[0],y&&jQuery(y).click((function(e){return e.preventDefault(),(m=window.open("https://www.facebook.com/sharer/sharer.php?u="+document.URL+"&p[title]="+document.title,"facebook-popup","height=350,width=600")).focus&&m.focus(),!1})),f&&jQuery(f).click((function(e){return e.preventDefault(),(h=window.open("https://twitter.com/share?text="+document.title+"&url="+document.URL,"twitter-popup","height=350,width=600")).focus&&h.focus(),!1})),v&&jQuery(v).click((function(e){e.preventDefault();var t=jQuery(".cm-posts .cm-featured-image img").attr("src")?jQuery(".cm-posts .cm-featured-image img").attr("src"):"";return(p=window.open("https://pinterest.com/pin/create/button/?url="+document.URL+"&media="+t+"&description="+document.title,"pinterest-popup","height=350,width=600")).focus&&p.focus(),!1})),j&&jQuery(j).click((function(e){e.preventDefault();var t=document.URL,i=document.title,r="mailto:?subject="+encodeURIComponent(i)+"&body="+encodeURIComponent(t);return(g=window.open(r,"email-popup","height=350,width=600")).focus&&g.focus(),!1}))})),jQuery((function(){var e=jQuery("#related-posts-wrapper-flyout");function t(){jQuery("#cm-primary").outerHeight();var t=jQuery(this).scrollTop()+jQuery(this).height();t>jQuery(document).height()-t?e.addClass("flyout"):e.removeClass("flyout")}jQuery(window).on("scroll",t),jQuery("#flyout-related-post-close").click((function(){e.removeClass("flyout"),jQuery(window).off("scroll",t)}))})),document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("cm-color-switch-checkbox");let t=colormag_color_switcher.colormag_switcher;void 0===t&&(t="white"),null==e&&localStorage.removeItem("hasRunColor");let i=localStorage.getItem("hasRunColor");"false"!==i&&null!=i||("dark"===t?localStorage.setItem("colorSwitcherState","false"):localStorage.setItem("colorSwitcherState","true"));const r=localStorage.getItem("colorSwitcherState");"true"===r?document.body.classList.remove("dark-skin"):document.body.classList.add("dark-skin"),null!==e&&(localStorage.setItem("hasRunColor","true"),e.checked="true"===r,e.addEventListener("change",(function(){localStorage.removeItem("colorSwitcherState"),localStorage.setItem("colorSwitcherState",e.checked),e.checked?document.body.classList.remove("dark-skin"):document.body.classList.add("dark-skin")})))})),function(e){"use strict";e(document).ready((function(){function t(){e(".cm-header-off-canvas").removeClass("active"),e(".cm-off-canvas-overlay").removeClass("active"),e("body").removeClass("off-canvas-open"),e(".cm-off-canvas-toggle").attr("aria-expanded","false")}e(".cm-off-canvas-toggle").on("click",(function(t){t.preventDefault(),e(".cm-header-off-canvas").toggleClass("active"),e(".cm-off-canvas-overlay").toggleClass("active"),e("body").toggleClass("off-canvas-open"),e(".cm-header-off-canvas").hasClass("active")?e(".cm-off-canvas-toggle").attr("aria-expanded","true"):e(".cm-off-canvas-toggle").attr("aria-expanded","false")})),e(".cm-off-canvas-close, .cm-off-canvas-overlay").on("click",(function(e){e.preventDefault(),t()})),e(document).keyup((function(e){"Escape"===e.key&&t()}))}))}(jQuery);
!function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){let i=t.console,n=void 0===i?function(){}:function(t){i.error(t)};return function(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),s.fn[i]=function(t,...e){return"string"==typeof t?function(t,e,o){let r,l=`$().${i}("${e}")`;return t.each((function(t,h){let a=s.data(h,i);if(!a)return void n(i+" not initialized. Cannot call method "+l);let c=a[e];if(!c||"_"==e.charAt(0))return void n(l+" is not a valid method");let u=c.apply(a,o);r=void 0===r?u:r})),void 0!==r?r:t}(this,t,e):(r=t,this.each((function(t,e){let n=s.data(e,i);n?(n.option(r),n._init()):(n=new o(e,r),s.data(e,i,n))})),this);var r})}})),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i){n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,(function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){if(Array.isArray(t))return t;if(null==t)return[];return"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter(t=>t instanceof HTMLElement).reduce((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)},[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[o]);let t=arguments;this[o]=setTimeout(()=>{n.apply(this,t),delete this[o]},i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,o){e.docReady((function(){let s="data-"+e.toDashed(o),r=document.querySelectorAll(`[${s}]`),l=t.jQuery;[...r].forEach(t=>{let e,r=t.getAttribute(s);try{e=r&&JSON.parse(r)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let h=new n(t,e);l&&l.data(t,o,h)})}))},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,i){let n=t.jQuery,o={};function s(t,e){let r=i.getQueryElement(t);if(r){if((t=r).infiniteScrollGUID){let i=o[t.infiniteScrollGUID];return i.option(e),i}this.element=t,this.options={...s.defaults},this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(r||t))}s.defaults={},s.create={},s.destroy={};let r=s.prototype;Object.assign(r,e.prototype);let l=0;r.create=function(){let t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath()){this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(let t in s.create)s.create[t].call(this)}else console.error("Disabling InfiniteScroll")},r.option=function(t){Object.assign(this.options,t)},r.callOnInit=function(){let t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);let o=e?[e].concat(i):i;if(this.emitEvent(t,o),!n||!this.$element)return;let s=t+=".infiniteScroll";if(e){let i=n.Event(e);i.type=t,s=i}this.$element.trigger(s,i)};let h={initialized:t=>"on "+t,request:t=>"URL: "+t,load:(t,e)=>`${t.title||""}. URL: ${e}`,error:(t,e)=>`${t}. URL: ${e}`,append:(t,e,i)=>`${i.length} items. URL: ${e}`,last:(t,e)=>"URL: "+e,history:(t,e)=>"URL: "+e,pageIndex:function(t,e){return`current page determined to be: ${t} from ${e}`}};r.log=function(t,e){if(!this.options.debug)return;let i="[InfiniteScroll] "+t,n=h[t];n&&(i+=". "+n.apply(this,e)),console.log(i)},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;let e=this.element.getBoundingClientRect();this.top=e.top+t.scrollY},r.updateScroller=function(){let e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw new Error("Unable to find elementScroll: "+e)}else this.scroller=t},r.updateGetPath=function(){let t=this.options.path;if(!t)return void console.error("InfiniteScroll path option required. Set as: "+t);let e=typeof t;"function"!=e?"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t):this.getPath=t},r.updateGetPathTemplate=function(t){this.getPath=()=>{let e=this.pageIndex+1;return t.replace("{{#}}",e)};let e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};let a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/],c=s.getPathParts=function(t){if(t)for(let e of a){let i=t.match(e);if(i){let[,t,e,n]=i;return{begin:t,index:e,end:n}}}};r.updateGetPathSelector=function(t){let e=document.querySelector(t);if(!e)return void console.error("Bad InfiniteScroll path option. Next link not found: "+t);let i=e.getAttribute("href"),n=c(i);if(!n)return void console.error("InfiniteScroll unable to parse next link href: "+i);let{begin:o,index:s,end:r}=n;this.isPathSelector=!0,this.getPath=()=>o+(this.pageIndex+1)+r,this.pageIndex=parseInt(s,10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},r.updateGetAbsolutePath=function(){let t=this.getPath();if(t.match(/^http/)||t.match(/^\//))return void(this.getAbsolutePath=this.getPath);let{pathname:e}=location,i=t.match(/^\?/),n=e.substring(0,e.lastIndexOf("/")),o=i?e:n+"/";this.getAbsolutePath=()=>o+this.getPath()},s.create.hideNav=function(){let t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(let t in s.destroy)s.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},s.throttle=function(t,e){let i,n;return e=e||200,function(){let o=+new Date,s=arguments,r=()=>{i=o,t.apply(this,s)};i&&o<i+e?(clearTimeout(n),n=setTimeout(r,e)):r()}},s.data=function(t){let e=(t=i.getQueryElement(t))&&t.infiniteScrollGUID;return e&&o[e]},s.setJQuery=function(t){n=t},i.htmlInit(s,"infinite-scroll"),r._init=function(){};let{jQueryBridget:u}=t;return n&&u&&u("infiniteScroll",s,n),s})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,(function(t,e){let i=e.prototype;Object.assign(e.defaults,{loadOnScroll:!0,checkLastPage:!0,responseBody:"text",domParseResponse:!0}),e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},i.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()};let n=new DOMParser;function o(t){let e=document.createDocumentFragment();return t&&e.append(...t),e}return i.loadNextPage=function(){if(this.isLoading||!this.canLoad)return;let{responseBody:t,domParseResponse:e,fetchOptions:i}=this.options,o=this.getAbsolutePath();this.isLoading=!0,"function"==typeof i&&(i=i());let s=fetch(o,i).then(i=>{if(!i.ok){let t=new Error(i.statusText);return this.onPageError(t,o,i),{response:i}}return i[t]().then(s=>("text"==t&&e&&(s=n.parseFromString(s,"text/html")),204==i.status?(this.lastPageReached(s,o),{body:s,response:i}):this.onPageLoad(s,o,i)))}).catch(t=>{this.onPageError(t,o)});return this.dispatchEvent("request",null,[o,s]),s},i.onPageLoad=function(t,e,i){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e,i]),this.appendNextPage(t,e,i)},i.appendNextPage=function(t,e,i){let{append:n,responseBody:s,domParseResponse:r}=this.options;if(!("text"==s&&r)||!n)return{body:t,response:i};let l=t.querySelectorAll(n),h={body:t,response:i,items:l};if(!l||!l.length)return this.lastPageReached(t,e),h;let a=o(l),c=()=>(this.appendItems(l,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,l,i]),h);return this.options.outlayer?this.appendOutlayerItems(a,c):c()},i.appendItems=function(t,e){t&&t.length&&(function(t){let e=t.querySelectorAll("script");for(let t of e){let e=document.createElement("script"),i=t.attributes;for(let t of i)e.setAttribute(t.name,t.value);e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}(e=e||o(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){let o=e.imagesLoaded||t.imagesLoaded;return o?new Promise((function(t){o(i,(function(){let e=n();t(e)}))})):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){let i,{checkLastPage:n,path:o}=this.options;if(n){if("function"==typeof o){if(!this.getPath())return void this.lastPageReached(t,e)}"string"==typeof n?i=n:this.isPathSelector&&(i=o),i&&t.querySelector&&(t.querySelector(i)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e,i){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e,i]),t},e.create.prefill=function(){if(!this.options.prefill)return;let t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error("append option required for prefill. Set as :"+t)},i.prefill=function(){let t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;return Object.assign(e.defaults,{scrollThreshold:400}),e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);let t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),n.getBottomDistance=function(){let e,i;return this.options.elementScroll?(e=this.scroller.scrollHeight,i=this.scroller.scrollTop+this.scroller.clientHeight):(e=this.top+this.element.clientHeight,i=t.scrollY+this.windowHeight),e-i},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;Object.assign(e.defaults,{history:"replace"});let o=document.createElement("a");return e.create.history=function(){if(!this.options.history)return;o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error(`[InfiniteScroll] cannot set history with different origin: ${o.origin} on ${location.origin} . History behavior disabled.`)},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPage=this.scrollPages[0],this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(!i||!i.length)return;let n=i[0],s=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:s,path:o.href,title:t.title})},n.getElementScrollY=function(e){if(this.options.elementScroll)return e.offsetTop-this.top;return e.getBoundingClientRect().top+t.scrollY},n.onScrollHistory=function(){let t=this.getClosestScrollPage();t!=this.scrollPage&&(this.scrollPage=t,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getClosestScrollPage=function(){let e,i;e=this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.scrollY+this.windowHeight/2;for(let t of this.scrollPages){if(t.top>=e)break;i=t}return i},n.setHistory=function(t,e){let i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){if(0===this.scrollPage.top)return;let e=t.scrollY-this.scrollPage.top+this.top;this.destroyHistory(),scrollTo(0,e)},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){class n{constructor(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}onClick(t){t.preventDefault(),this.infScroll.loadNextPage()}enable(){this.element.removeAttribute("disabled")}disable(){this.element.disabled="disabled"}hide(){this.element.style.display="none"}destroy(){this.element.removeEventListener("click",this.clickHandler)}}return e.create.button=function(){let t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},e.Button=n,e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;function o(t){r(t,"none")}function s(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}return e.create.status=function(){let t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},n.bindHideStatus=function(t){let e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},n.showRequestStatus=function(){this.showStatus("request")},n.showErrorStatus=function(){this.showStatus("error")},n.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},n.showStatus=function(t){s(this.statusElement),this.hideStatusEventElements(),s(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(let t in this.statusEventElements){o(this.statusEventElements[t])}},e})),
function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var h,a=t;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(h=a,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?s.call(h):[h]),this.options=o({},this.options),"function"==typeof e?l=e:o(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(a||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}}};var l={1:!0,9:!0,11:!0};function h(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new h(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new a(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(h.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}));
!function(n){n(window).on("load",(function(){!function(){if("undefined"!=typeof colormagInfiniteScrollParams){var t=colormagInfiniteScrollParams,o=n(".tg-infinite-pagination"),i=n(".tg-infinite-scroll-container"),l=t.infiniteScrollEvent;o.length&&i.length&&o.find(".next").length&&!o.infinitescroll&&(o.infinitescroll=new InfiniteScroll(".tg-infinite-scroll-container",{path:".next",checkLastPage:".next",append:".tg-infinite-scroll-container .post",button:"button"===l?".tg-load-more-btn":null,outlayer:null,scrollThreshold:"scroll"===l&&500,onInit:function(){var n=o.find(".tg-load-more");this.on("load",(function(){n.removeClass("loading")})),this.on("request",(function(){n.addClass("loading")})),this.on("last",(function(){n.find(".tg-all-post-loaded-text").css("display","block")}))}}))}}(),function(){if("undefined"!=typeof colormagInfiniteScrollParams){var t=colormagInfiniteScrollParams,o=n(".tg-infinite-pagination"),i=n(".tg-autoload-posts"),l=t.autoLoadEvent;i.length&&o.find(".next").length&&!o.infinitescroll&&(o.infinitescroll=new InfiniteScroll(".tg-autoload-posts",{path:function(){var n=o.find('a[data-index="'+(this.pageIndex+1)+'"]');return n.length||(this.canLoad=!1),n.attr("href")},append:".tg-autoload-posts .tg-post",button:"button"===l?".tg-load-more-btn":null,outlayer:null,scrollThreshold:"scroll"===l&&500,onInit:function(){var n=o.find(".tg-load-more");this.on("load",(function(){n.removeClass("loading")})),this.on("request",(function(){n.addClass("loading")})),this.on("last",(function(){n.hide()}))}}))}}()}))}(jQuery);
jQuery(document).ready((function(){var t=jQuery(".tg-ajax-btn-wrapper");jQuery(t).each((function(){!function(t,r,a,e,o,n,d,i,u,g){var l=1,s=colormag_script_vars.no_more_posts,c=r,y=e,h=a,j=o,Q=n,_=d,p=i;jQuery(t).on("click",(function(){l++,jQuery(g).show(),jQuery(t).attr("disabled",!0);var r={action:"get_ajax_results",tg_nonce:colormag_load_more.tg_nonce,tg_pagenumber:l,tg_category:c,tg_number:y,tg_random:h,tg_child_category:j,tg_tag:Q,tg_author:_,tg_type:p};return jQuery.post(colormag_load_more.ajax_url,r,(function(r){var a=jQuery(r);a.length?(jQuery(u).append(a),jQuery(g).hide(),jQuery(t).attr("disabled",!1)):(jQuery(g).hide(),jQuery(t).attr("disabled",!0),jQuery(t).html("<span>"+s+"</span>"))})),!1}))}("#"+jQuery(this).children(".tg-front-post-load-more").attr("id"),jQuery(this).children(".tg-front-post-load-more").data("category"),jQuery(this).children(".tg-front-post-load-more").data("random"),jQuery(this).children(".tg-front-post-load-more").data("number"),jQuery(this).children(".tg-front-post-load-more").data("child_category"),jQuery(this).children(".tg-front-post-load-more").data("tag"),jQuery(this).children(".tg-front-post-load-more").data("author"),jQuery(this).children(".tg-front-post-load-more").data("type"),"#"+jQuery(this).children(".tg-append-ajax-datas").attr("id"),"#"+jQuery(this).find(".waiting").attr("id"))}))}));
!function(o){"use strict";var l=window.GEM||{};l.DEBUG_FLAG=!0,l.init=function(){o("form.gem-form").submit(function(e){var i,t,a,s,n,r=o(this),u=o(".gem-spinner",r),h=r.find(".gem-error, .gem-info"),c=[],d=[];e.preventDefault(),o(this).find("input[type=checkbox]").each(function(){var e=o(this).data("name");t!==e&&(a=o('input:checkbox[data-name="'+(t=e)+'"]:checked').map(function(){return this.value}).get().join(", "),o('input[name="'+e+'"]').val(a))}),o(this).find("[fingerprint=date]").each(function(){var e=o(this).data("name");s!==e&&(o('select[data-name="'+(s=e)+'"]').each(function(){var e=o(this).val();e&&d.push(e)}),3===d.length&&(n=d[0]+" "+d[1]+", "+d[2],o('input[name="'+e+'"]').val(n)))}),i=o(this).serialize(),r.find("input.gem-invalid").removeClass("gem-invalid"),o(this).find(".gem-required").each(function(){var e=o(this).val();"signup[email]"!==o(this).attr("name")||l.isEmail(e)?""===e&&o(this).is("input")?c.push(o(this)):o(this).is('input[type="checkbox"]')&&!o(this).is(":checked")?c.push(o(this)):o(this).is("label")&&void 0===o('input:radio[name="'+o(this).data("name")+'"]:checked').val()&&c.push(o(this)):c.push(o(this))}),0===c.length?(u.css("display","inline-block"),o.post(r.attr("action")+".json",i,function(i){r.fadeOut("fast",function(){var e;i.success?(e=i.result.audience_member.suppressed,i.result.has_redirect&&(window.location.href=i.result.redirect),r.html(l.addMessage(e?["suppressed","success"]:["info","success"],e?l.thankyou_suppressed:l.thankyou)).fadeIn("fast")):r.html(l.addMessage("info",l.oops)).fadeIn("fast")})},"jsonp")):(0!==h.length&&h.remove(),o(c.reverse()).each(function(){var e="";o(this).addClass("gem-invalid"),"signup[email]"===o(this).attr("name")?e=""===o(this).val()?l.required.replace("%s",o(this).data("label")):l.email:o(this).data("label")&&(e=l.required.replace("%s",o(this).data("label"))),e&&r.prepend(l.addMessage("error",e))}))})},l.addMessage=function(e,i){var t=[];return o.isArray(e)?o.each(e,function(e,i){t.push("gem-"+i)}):t.push("gem-"+e.toString()),o("<p/>",{class:t.join(" ")}).text(i)},l.isEmail=function(e){return/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)},o(document).ready(l.init)}(jQuery);