(function(){"use strict";var a={cache:[],trigger:[],initAll(){var b=document.querySelectorAll(".kadence-splide-slider-init");for(let c=0;c<b.length;c++){const d=b[c],e=parseFloat(d.parentNode.getAttribute("data-slider-speed")),f=parseInt(d.parentNode.getAttribute("data-slider-anim-speed")),g=d.parentNode.getAttribute("data-slider-arrows"),h=d.parentNode.getAttribute("data-slider-dots"),i=d.parentNode.getAttribute("data-slider-auto"),j=d.parentNode.getAttribute("data-slider-auto-scroll"),k=d.parentNode.getAttribute("data-slider-hover-pause"),l=parseInt(d.parentNode.getAttribute("data-slider-scroll")),m=parseInt(d.parentNode.getAttribute("data-columns-xxl")),n=parseInt(d.parentNode.getAttribute("data-columns-xl")),o=parseInt(d.parentNode.getAttribute("data-columns-md")),p=parseInt(d.parentNode.getAttribute("data-columns-sm")),q=parseInt(d.parentNode.getAttribute("data-columns-xs")),r=parseInt(d.parentNode.getAttribute("data-columns-ss")),s=d.parentNode.getAttribute("data-slider-center-mode"),t=d.parentNode.getAttribute("data-slider-type")??"slider",u=d.parentNode.getAttribute("data-slider-loop-type")&&""!=d.parentNode.getAttribute("data-slider-loop-type")?d.parentNode.getAttribute("data-slider-loop-type"):"loop",v=parseInt(d.parentNode.getAttribute("data-slider-gap")),w=parseInt(d.parentNode.getAttribute("data-slider-gap-tablet")),x=parseInt(d.parentNode.getAttribute("data-slider-gap-mobile")),y=d.parentNode.getAttribute("data-slider-gap-unit");d.parentNode.classList.add("splide-initial"),d.parentNode.classList.add("kb-splide");const z=d.querySelectorAll("article.hide-on-js");z.forEach(a=>{a.classList.remove("hide-on-js")}),d.classList.contains("hide-on-js")&&d.classList.remove("hide-on-js");let A=void 0===e?7e3:e;const B=void 0!==j&&"true"===j;a.trigger[c]=!1,"true"==i&&!B&&A<(void 0===f?400:f)&&(a.trigger[c]=!0,A+=void 0===f?400:f);let C="ltr",D=m,E=n,F=o,G=p,H=q,I=r;if(document.querySelector("html[dir=\"rtl\"]")&&(C="rtl"),1===l&&(D=1,E=1,F=1,G=1,H=1,I=1),!d.firstChild)return;if(d.firstChild.classList.contains("wpfHidden")&&(d.removeChild(d.firstChild),!d.firstChild))return;d.firstChild.classList.add("splide__list");for(let a=0;a<d.firstChild.children.length;a++)d.firstChild.children[a].classList.add("splide__slide"),d.firstChild.children[a].classList.contains("last")&&d.firstChild.children[a].classList.remove("last");"fluidcarousel"==t&&d.querySelectorAll(".kb-slide-item").forEach(function(a){a.style.maxWidth=d.clientWidth?Math.floor(80/100*d.clientWidth)+"px":"100%"});const J={perPage:m,type:u,slideFocus:!1,easing:void 0!==f&&1e3<f?"linear":"cubic-bezier(0.25, 1, 0.5, 1)",pauseOnHover:"false"!=k,autoplay:"false"!=i,interval:A,speed:void 0===f?400:f,arrows:"false"!=g,pagination:"false"!=h,gap:v+y,focus:s&&"false"!==s?"center":0,perMove:D,direction:C,autoWidth:"fluidcarousel"==t,breakpoints:{543:{perPage:r,perMove:I,gap:x+y},767:{perPage:q,perMove:H,gap:x+y},991:{perPage:p,perMove:G,gap:w+y},1199:{perPage:o,perMove:F,gap:w+y},1499:{perPage:n,perMove:E,gap:v+y}},i18n:{prev:kb_splide?.i18n?.prev,next:kb_splide?.i18n?.next,first:kb_splide?.i18n?.first,last:kb_splide?.i18n?.last,slideX:kb_splide?.i18n?.slideX,pageX:kb_splide?.i18n?.pageX,play:kb_splide?.i18n?.play,pause:kb_splide?.i18n?.pause,carousel:kb_splide?.i18n?.carousel,slide:kb_splide?.i18n?.slide,select:kb_splide?.i18n?.select,slideLabel:kb_splide?.i18n?.slideLabel}};void 0!==window.splide&&void 0!==window.splide.Extensions&&B&&(J.autoplay=!1,J.autoScroll={speed:A,pauseOnHover:"false"!=k,useToggleButton:!0});const K=new Splide(d.parentElement,J);a.cache[c]=K,a.cache[c].on("pagination:mounted",function(){var b=d.parentElement.querySelectorAll(".splide__pagination__page");b.forEach(function(b){b.addEventListener("keydown",function(b){if(" "===b.key||"Enter"===b.key){b.preventDefault();var d=a.cache[c]?.index||0,e=a.cache[c]?.Components?.Slides?.getAt(d)?.slide;e&&(e.setAttribute("tabindex","0"),e.focus())}})})}),K.on("mounted",function(){var a=new CustomEvent("splideMounted");d.dispatchEvent(a)}),K.on("overflow",function(a){K.go(0),K.options={arrows:"false"!==g&&a,pagination:"false"!==h&&a,drag:a,clones:a?void 0:0,focus:a?s&&"false"!==s?"center":0:0}}),a.mountSplideObj(K,a.trigger[c],B)}},mountSplideObj(a,b,c){void 0!==window.splide&&void 0!==window.splide.Extensions&&c?a.mount(window.splide.Extensions):a.mount(),b&&a.go("+1")},init(){if("function"==typeof Splide)a.initAll();else var b=setInterval(function(){"function"==typeof Splide&&(a.initAll(),clearInterval(b))},200)}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a.init):a.init()})();