document.addEventListener('DOMContentLoaded',function(){document.addEventListener('click',function(e){if(e.target.matches('ul.convertkit-broadcasts-pagination a')){e.preventDefault();const blockContainer=e.target.closest('div.convertkit-broadcasts');const atts={display_date:blockContainer.dataset.displayDate,date_format:blockContainer.dataset.dateFormat,display_image:blockContainer.dataset.displayImage,display_description:blockContainer.dataset.displayDescription,display_read_more:blockContainer.dataset.displayReadMore,read_more_label:blockContainer.dataset.readMoreLabel,limit:blockContainer.dataset.limit,paginate:blockContainer.dataset.paginate,paginate_label_prev:blockContainer.dataset.paginateLabelPrev,paginate_label_next:blockContainer.dataset.paginateLabelNext,link_color:blockContainer.dataset.linkColor,page:e.target.dataset.page,nonce:e.target.dataset.nonce,};convertKitBroadcastsRender(blockContainer,atts);}});});function convertKitBroadcastsRender(blockContainer,atts){atts.action=convertkit_broadcasts.action;if(convertkit_broadcasts.debug){console.log('convertKitBroadcastsRender()');console.log(atts);} blockContainer.classList.add('convertkit-broadcasts-loading');fetch(convertkit_broadcasts.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams(atts),}).then(function(response){if(convertkit_broadcasts.debug){console.log(response);} return response.json();}).then(function(result){if(convertkit_broadcasts.debug){console.log(result);} blockContainer.classList.remove('convertkit-broadcasts-loading');blockContainer.innerHTML=result.data;}).catch(function(error){if(convertkit.debug){console.error(error);} blockContainer.classList.remove('convertkit-broadcasts-loading');});}; (function(){"use strict";window.kadence={initOutlineToggle:function(){document.body.addEventListener("keydown",function(){document.body.classList.remove("hide-focus-outline")}),document.body.addEventListener("mousedown",function(){document.body.classList.add("hide-focus-outline")})},getOffset:function(a){if(a instanceof HTMLElement){var b=a.getBoundingClientRect();return{top:b.top+window.pageYOffset,left:b.left+window.pageXOffset}}return{top:null,left:null}},findParents:function(a,b){function c(a){var e=a.parentNode;e instanceof HTMLElement&&(e.matches(b)&&d.push(e),c(e))}var d=[];return c(a),d},toggleAttribute:function(a,b,c,d){c===void 0&&(c=!0),d===void 0&&(d=!1),a.getAttribute(b)===c?a.setAttribute(b,d):a.setAttribute(b,c)},initNavToggleSubmenus:function(){var a=document.querySelectorAll(".nav--toggle-sub");if(a.length)for(let b=0;bh)var u=Math.floor(Math.floor(i)-Math.floor(k)+Math.floor(s));else var u=Math.floor(i-k);var v=e.querySelectorAll(".custom-logo"),w=e.querySelector(".site-main-header-inner-wrap"),x=parseInt(w.getAttribute("data-start-height"));if(x||(w.setAttribute("data-start-height",w.offsetHeight),x=w.offsetHeight),window.scrollY<=u){if(w.style.height=x+"px",w.style.minHeight=x+"px",w.style.maxHeight=x+"px",v)for(let a,b=0;bu){var y=Math.max(t,x-(window.scrollY-(i-k)));if(w.style.height=y+"px",w.style.minHeight=y+"px",w.style.maxHeight=y+"px",v)for(let a,b=0;bh;if(A<=z)e.style.transform="translateY(0px)";else if(F)e.classList.add("item-hidden-above"),e.style.transform="translateY("+(Math.abs(E)>B?-B:E)+"px)";else{var z=Math.floor(i-k);e.style.transform="translateY("+(0z?"true"===r?window.scrollY{a.forEach(a=>{b(0{j("updateActive")})}},getTopOffset:function(a="scroll"){if("load"===a)var b=document.querySelector("#main-header .kadence-sticky-header"),c=document.querySelector("#mobile-header .kadence-sticky-header");else var b=document.querySelector("#main-header .kadence-sticky-header:not([data-reveal-scroll-up=\"true\"])"),c=document.querySelector("#mobile-header .kadence-sticky-header:not([data-reveal-scroll-up=\"true\"])");var d=0,e=0;if(kadenceConfig.breakPoints.desktop<=window.innerWidth){if(b){var f=b.getAttribute("data-shrink");d="true"!==f||b.classList.contains("site-header-inner-wrap")?Math.floor(b.offsetHeight):Math.floor(b.getAttribute("data-shrink-height"))}else d=0;document.body.classList.contains("admin-bar")&&(e=32)}else{if(c){var f=c.getAttribute("data-shrink");d="true"===f?Math.floor(c.getAttribute("data-shrink-height")):Math.floor(c.offsetHeight)}else d=0;document.body.classList.contains("admin-bar")&&(e=46)}let g=0,h=!1;const i=document.querySelector(".wp-block-kadence-header");i&&(h=kadenceConfig.breakPoints.desktop<=window.innerWidth?i.classList.contains("header-desktop-sticky"):i.classList.contains("header-mobile-sticky"),h&&(g=i.offsetHeight));const j=i&&h?g:d;return Math.floor(j+e+Math.floor(kadenceConfig.scrollOffset))},scrollToElement:function(a,b,c="scroll"){b=!("undefined"!=typeof b)||b;var d=window.kadence.getTopOffset(c),e=Math.floor(a.getBoundingClientRect().top)-d;window.scrollBy({top:e,left:0,behavior:"smooth"}),a.tabIndex="-1",a.focus({preventScroll:!0}),a.classList.contains("kt-title-item")&&a.firstElementChild.click(),b&&window.history.pushState("","","#"+a.id)},anchorScrollToCheck:function(a,b){if(b="undefined"==typeof b?null:b,a.target.getAttribute("href"))var c=a.target;else{var c=a.target.closest("a");if(!c)return;if(!c.getAttribute("href"))return}if(!(c.parentNode&&c.parentNode.hasAttribute("role")&&"tab"===c.parentNode.getAttribute("role"))&&!c.closest(".woocommerce-tabs ul.tabs")&&!(c.classList.contains("comment-reply-link")||"#respond"===c.getAttribute("href")||c.getAttribute("href").includes("#respond"))){var d=b?b.getAttribute("href").substring(b.getAttribute("href").indexOf("#")):c.getAttribute("href").substring(c.getAttribute("href").indexOf("#"));var e=document.getElementById(d.replace("#",""));e&&(e?.classList?.contains("kt-accordion-pane")||(a.preventDefault(),window.kadence.scrollToElement(e),window.kadence.updateActiveAnchors()))}},initStickySidebarWidget:function(){if(document.body.classList.contains("has-sticky-sidebar-widget")){var a=window.kadence.getTopOffset(),b=document.querySelector("#secondary .sidebar-inner-wrap .widget:last-child");b&&(b.style.top=Math.floor(a+20)+"px",b.style.maxHeight="calc( 100vh - "+Math.floor(a+20)+"px )")}},initStickySidebar:function(){if(document.body.classList.contains("has-sticky-sidebar")){var a=window.kadence.getTopOffset(),b=document.querySelector("#secondary .sidebar-inner-wrap");b&&(b.style.top=Math.floor(a+20)+"px",b.style.maxHeight="calc( 100vh - "+Math.floor(a+20)+"px )")}},initActiveAnchors:function(){""!=window.location.hash&&window.kadence.updateActiveAnchors(),window.onhashchange=function(){window.kadence.updateActiveAnchors()}},updateActiveAnchors:function(){const a=document.querySelectorAll(".menu-item");a.forEach(function(a){const b=a.querySelector("a");b?.href&&b.href.includes("#")&&(window.location.href==b.href?a.classList.add("current-menu-item"):a.classList.remove("current-menu-item"))})},initAnchorScrollTo:function(){if(!document.body.classList.contains("no-anchor-scroll")){if(window.onhashchange=function(){""===window.location.hash&&(window.scrollTo({top:0,behavior:"smooth"}),document.activeElement.blur())},""!=window.location.hash){var a,b=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(b))return;a=document.getElementById(b),a&&window.setTimeout(function(){window.kadence.scrollToElement(a,!1,"load")},100)}var c=document.querySelectorAll("a[href*=\\#]:not([href=\\#]):not(.scroll-ignore):not([data-tab]):not([data-toggle]):not(.woocommerce-tabs a):not(.tabs a)");c.length&&c.forEach(function(a){try{var b=new URL(a.href);b.pathname===window.location.pathname&&a.addEventListener("click",function(a){window.kadence.anchorScrollToCheck(a)})}catch(b){console.log("ClassList: "+a.classList,"Invalid URL")}})}},initScrollToTop:function(){var a=document.getElementById("kt-scroll-up");if(a){var b=function(){100b!==a);if(d.forEach(function(a){const b=a.querySelector(":scope > ul.sub-menu");b&&b.classList.remove("opened")}),!b){const b=d=>{a.contains(d.target)||(c.classList.remove("opened"),document.removeEventListener("click",b))};document.addEventListener("click",b)}}})})})},init:function(){window.kadence.initNavToggleSubmenus(),window.kadence.initToggleDrawer(),window.kadence.initMobileToggleAnchor(),window.kadence.initMobileToggleSub(),window.kadence.initOutlineToggle(),window.kadence.initStickyHeader(),window.kadence.initStickySidebar(),window.kadence.initStickySidebarWidget(),window.kadence.initTransHeaderPadding(),window.kadence.initAnchorScrollTo(),window.kadence.initScrollToTop(),window.kadence.initActiveAnchors(),window.kadence.initClickToOpen()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadence.init):window.kadence.init()})(); function convertStoreSubscriberEmailAsIDInCookie(emailAddress){if(convertkit.debug){console.log('convertStoreSubscriberEmailAsIDInCookie');console.log(emailAddress);} fetch(convertkit.ajaxurl,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({action:'convertkit_store_subscriber_email_as_id_in_cookie',convertkit_nonce:convertkit.nonce,email:emailAddress,}),}).then(function(response){if(convertkit.debug){console.log(response);} return response.json();}).then(function(result){if(convertkit.debug){console.log(result);} convertKitEmitCustomEvent('convertkit_user_subscribed',{id:result.data.id,email:emailAddress,});}).catch(function(error){if(convertkit.debug){console.error(error);}});} function convertKitRemoveSubscriberIDFromURL(url){const url_object=new URL(url);const ck_subscriber_id=url_object.searchParams.get('ck_subscriber_id');if(ck_subscriber_id===null){return;} url_object.searchParams.delete('ck_subscriber_id');const title=document.getElementsByTagName('title')[0].innerHTML;let params=url_object.searchParams.toString();if(params.length>0){params='?'+params;} window.history.replaceState(null,title,url_object.pathname+params+url_object.hash);convertKitEmitCustomEvent('kit_subscriber_id_removed_from_url',{id:ck_subscriber_id,});} function convertKitSleep(milliseconds){const start=new Date().getTime();for(let i=0;i<1e7;i++){if(new Date().getTime()-start>milliseconds){break;}}} function convertKitEmitCustomEvent(eventName,detail){const event=new CustomEvent(eventName,{detail});document.dispatchEvent(event);} function convertKitRecaptchaFormSubmit(token){const submitButton=document.querySelector('[type="submit"][data-callback="convertKitRecaptchaFormSubmit"]');const form=submitButton.closest('form');form.submit();} document.addEventListener('DOMContentLoaded',function(){convertKitRemoveSubscriberIDFromURL(window.location.href);document.addEventListener('click',function(e){if(!e.target.matches('.formkit-submit')&&(!e.target.parentElement||!e.target.parentElement.matches('.formkit-submit'))){if(convertkit.debug){console.log('not a ck form');} return;} const emailAddress=document.querySelector('input[name="email_address"]').value;if(!emailAddress.length){if(convertkit.debug){console.log('email empty');} return;} const validator=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!validator.test(emailAddress.toLowerCase())){if(convertkit.debug){console.log('email not an email address');} return;} convertKitSleep(2000);convertStoreSubscriberEmailAsIDInCookie(emailAddress);});if(document.querySelectorAll('script[data-kit-limit-per-session="1"]').length>0){document.cookie='ck_non_inline_form_displayed=1; path=/';if(convertkit.debug){console.log('Set `ck_non_inline_form_displayed` cookie for non-inline form limit');}}}); function r(n,t){for(var i=0;i=r))return l();u=h(s)}}function l(){f=!0}function d(){u&&cancelAnimationFrame(u),f=!(u=c=0)}return{start:function(n){n||d(),o=e()-(n?c*t:0),f=!1,u=h(s)},rewind:function(){o=e(),c=0,i&&i(c)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return f}}}function s(n){var t=n;return{set:function(n){t=n},is:function(n){return b(y(n),t)}}}var n="Arrow",Bn=n+"Left",Hn=n+"Right",t=n+"Up",n=n+"Down",Jn="ttb",l={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[t,Hn],ArrowRight:[n,Bn]};var Z="role",$="tabindex",i="aria-",Kn=i+"controls",Vn=i+"current",Qn=i+"selected",nn=i+"label",Zn=i+"labelledby",$n=i+"hidden",nt=i+"orientation",tt=i+"roledescription",it=i+"live",rt=i+"busy",ot=i+"atomic",ut=[Z,$,"disabled",Kn,Vn,nn,Zn,$n,nt,tt],i=yn+"__",et=yn,ct=i+"track",ft=i+"list",at=i+"slide",st=at+"--clone",lt=at+"__container",dt=i+"arrows",vt=i+"arrow",ht=vt+"--prev",pt=vt+"--next",gt=i+"pagination",mt=gt+"__page",yt=i+"progress"+"__bar",bt=i+"toggle",wt=i+"sr",tn="is-active",xt="is-prev",kt="is-next",St="is-visible",Et="is-loading",Lt="is-focus-in",Ot="is-overflow",At=[tn,St,xt,kt,Et,Lt,Ot];var _t="touchstart mousedown",zt="touchmove mousemove",Dt="touchend touchcancel mouseup click";var Mt="slide",Pt="loop",It="fade";function Rt(o,r,t,u){var e,n=Q(o),i=n.on,c=n.emit,f=n.bind,a=o.Components,s=o.root,l=o.options,d=l.isNavigation,v=l.updateOnMove,h=l.i18n,p=l.pagination,g=l.slideFocus,m=a.Direction.resolve,y=z(u,"style"),b=z(u,nn),w=-1u.perPage}}},Layout:function(t,n,i){var r,o,u,e=(a=Q(t)).on,c=a.bind,f=a.emit,a=n.Slides,s=n.Direction.resolve,l=(n=n.Elements).root,d=n.track,v=n.list,h=a.getAt,p=a.style;function g(){r=i.direction===Jn,_(l,"maxWidth",W(i.width)),_(d,s("paddingLeft"),y(!1)),_(d,s("paddingRight"),y(!0)),m(!0)}function m(n){var t=N(l);!n&&o.width===t.width&&o.height===t.height||(_(d,"height",function(){var n="";r&&(bn(n=b(),"height or heightRatio is missing."),n="calc("+n+" - "+y(!1)+" - "+y(!0)+")");return n}()),p(s("marginRight"),W(i.gap)),p("width",i.autoWidth?null:W(i.fixedWidth)||(r?"":w())),p("height",W(i.fixedHeight)||(r?i.autoHeight?null:w():b()),!0),o=t,f(Nn),u!==(u=O())&&(A(l,Ot,u),f("overflow",u)))}function y(n){var t=i.padding,n=s(n?"right":"left");return t&&W(t[n]||(un(t)?0:t))||"0px"}function b(){return W(i.height||N(v).width*i.heightRatio)}function w(){var n=W(i.gap);return"calc((100%"+(n&&" + "+n)+")/"+(i.perPage||1)+(n&&" - "+n)+")"}function x(){return N(v)[s("width")]}function k(n,t){n=h(n||0);return n?N(n.slide)[s("width")]+(t?0:L()):0}function S(n,t){var i,n=h(n);return n?(n=N(n.slide)[s("right")],i=N(v)[s("left")],U(n-i)+(t?0:L())):0}function E(n){return S(t.length-1)-S(0)+k(0,n)}function L(){var n=h(0);return n&&parseFloat(_(n.slide,s("marginRight")))||0}function O(){return t.is(It)||E(!0)>x()}return{mount:function(){var n,t,i;g(),c(window,"resize load",(n=R(f,jn),i=qn(t||0,n,null,1),function(){i.isPaused()&&i.start()})),e([K,J],g),e(jn,m)},resize:m,listSize:x,slideSize:k,sliderSize:E,totalSize:S,getPadding:function(n){return parseFloat(_(d,s("padding"+(n?"Right":"Left"))))||0},isOverflow:O}},Clones:function(c,i,f){var t,r=Q(c),n=r.on,a=i.Elements,s=i.Slides,o=i.Direction.resolve,l=[];function u(){if(n(J,d),n([K,jn],v),t=h()){var o=t,u=s.get().slice(),e=u.length;if(e){for(;u.lengthc.Controller.getEnd(),(t<0||i)&&(n=w(n,i)))}return n}(n),_(p,"transform","translate"+v("X")+"("+t+"px)"),n!==t&&f(Un))}function w(n,t){var i=n-L(t),r=d();return n-=h(r*(kn(U(i)/r)||1))*(t?1:-1)}function x(){b(E(),!0),e.cancel()}function k(n){for(var t=c.Slides.get(),i=0,r=1/0,o=0;oh(L(!0));return i||n},reposition:m}},Controller:function(o,u,e){var c,f,a,s,n=Q(o),t=n.on,i=n.emit,l=u.Move,d=l.getPosition,r=l.getLimit,v=l.toPosition,h=(n=u.Slides).isEnough,p=n.getLength,g=e.omitEnd,m=o.is(Pt),y=o.is(Mt),b=R(L,!1),w=R(L,!0),x=e.start||0,k=x;function S(){f=p(!0),a=e.perMove,s=e.perPage,c=_();var n=q(x,0,g?c:f-1);n!==x&&(x=n,l.reposition())}function E(){c!==_()&&i("ei")}function L(n,t){var i=a||(P()?1:s),i=O(x+i*(n?-1:1),x,!(a||P()));return-1===i&&y&&!Sn(d(),r(!n),1)?n?0:c:t?i:A(i)}function O(n,t,i){var r;return h()||P()?((r=function(n){if(y&&"move"===e.trimSpace&&n!==x)for(var t=d();t===v(n,!0)&&En(n,0,o.length-1,!e.rewind);)n])(\d+)?/)||[],i=r[1],r=r[2],"+"===i||"-"===i?t=O(x+ +(""+i+(+r||1)),x):">"===i?t=r?z(+r):b(!0):"<"===i&&(t=w(!0))):t=m?n:q(n,0,c)}return t}(n)))&&(t||r!==x)&&(M(r),l.move(n,r,k,i))},scroll:function(n,t,i,r){u.Scroll.scroll(n,t,i,function(){var n=A(l.toIndex(d()));M(g?Y(n,c):n),r&&r()})},getNext:b,getPrev:w,getAdjacent:L,getEnd:_,setIndex:M,getIndex:function(n){return n?k:x},toIndex:z,toPage:D,toDest:function(n){return n=l.toIndex(n),y?q(n,0,c):n},hasFocus:P,isBusy:I}},Arrows:function(o,n,t){var i,r,u=Q(o),e=u.on,c=u.bind,f=u.emit,a=t.classes,s=t.i18n,l=n.Elements,d=n.Controller,v=l.arrows,h=l.track,p=v,g=l.prev,m=l.next,y={};function b(){var n=t.arrows;!n||g&&m||(p=v||j("div",a.arrows),g=S(!0),m=S(!1),i=!0,L(p,[g,m]),v||O(p,h)),g&&m&&(an(y,{prev:g,next:m}),ln(p,n?"":"none"),M(p,r=dt+"--"+t.direction),n&&(e([B,Dn,J,V,"ei"],E),c(m,"click",R(k,">")),c(g,"click",R(k,"<")),E(),I([g,m],Kn,h.id),f("arrows:mounted",g,m))),e(K,w)}function w(){x(),b()}function x(){u.destroy(),X(p,r),i?(T(v?[g,m]:p),g=m=null):P([g,m],ut)}function k(n){d.go(n,!0)}function S(n){return hn('