jQuery(document).ready(function(a){function b(b){var c=parseInt(b.data("slider-speed")),d=parseInt(b.attr("data-slider-anim-speed")),e=b.data("slider-arrows"),f=b.data("slider-dots"),g=b.data("slider-pause-hover"),h=b.data("slider-auto"),i=parseInt(b.attr("data-columns-xxl")),j=parseInt(b.attr("data-columns-xl")),k=parseInt(b.attr("data-columns-md")),l=parseInt(b.attr("data-columns-sm")),m=parseInt(b.attr("data-columns-xs")),n=parseInt(b.attr("data-columns-ss")),o=parseInt(b.attr("data-slider-scroll")),p=b.attr("data-slider-type"),q=b.attr("data-slider-center-mode"),r=!1,s=i,t=j,u=k,v=l,w=m,x=n;if(a("html[dir=\"rtl\"]").length&&(r=!0),1===o&&(s=1,t=1,u=1,v=1,w=1,x=1),b.on("init",function(){b.removeClass("kt-post-carousel-loading")}),p&&"fluidcarousel"===p){b.find(".kb-slide-item").each(function(){a(this).css("maxWidth",Math.floor(80/100*b.innerWidth()))}),q=""===q||"false"!==q,b.slick({slidesToScroll:1,slidesToShow:1,centerMode:q,variableWidth:!0,arrows:e,speed:d,autoplay:h,autoplaySpeed:c,fade:!1,pauseOnHover:g,rtl:r,dots:f});var y;a(window).on("resize",function(){clearTimeout(y),y=setTimeout(function(){b.find(".kb-slide-item").each(function(){a(this).css("maxWidth",Math.floor(80/100*b.innerWidth()))})},10)})}else if(p&&"slider"===p){var z=b.attr("data-slider-fade");z="false"!=z,b.slick({slidesToShow:1,slidesToScroll:1,arrows:e,speed:d,autoplay:h,autoplaySpeed:c,fade:z,pauseOnHover:g,rtl:r,adaptiveHeight:!0,dots:f}),a(window).on("resize",function(){b.slick("refresh")})}else if(p&&"thumbnail"===p){var z=b.attr("data-slider-fade"),A=b.attr("id"),B=b.attr("data-slider-nav");z="false"!=z,b.slick({slidesToShow:1,slidesToScroll:1,arrows:e,speed:d,autoplay:h,autoplaySpeed:c,fade:z,pauseOnHover:g,rtl:r,adaptiveHeight:!0,dots:!1,asNavFor:"#"+B}),a("#"+B).slick({slidesToShow:i,slidesToScroll:1,asNavFor:"#"+A,dots:!1,rtl:r,centerMode:!1,focusOnSelect:!0,responsive:[{breakpoint:1499,settings:{slidesToShow:j}},{breakpoint:1199,settings:{slidesToShow:k}},{breakpoint:991,settings:{slidesToShow:l}},{breakpoint:767,settings:{slidesToShow:m}},{breakpoint:543,settings:{slidesToShow:n}}]}),a(window).on("resize",function(){b.slick("refresh")})}else b.slick({slidesToScroll:s,slidesToShow:i,arrows:e,speed:d,autoplay:h,autoplaySpeed:c,fade:!1,pauseOnHover:g,dots:f,rtl:r,responsive:[{breakpoint:1499,settings:{slidesToShow:j,slidesToScroll:t}},{breakpoint:1199,settings:{slidesToShow:k,slidesToScroll:u}},{breakpoint:991,settings:{slidesToShow:l,slidesToScroll:v}},{breakpoint:767,settings:{slidesToShow:m,slidesToScroll:w}},{breakpoint:543,settings:{slidesToShow:n,slidesToScroll:x}}]}),a(window).on("resize",function(){b.slick("refresh")})}a(".wp-block-kadence-advancedgallery .kt-blocks-carousel-init").each(function(){var c=a(this);b(c)}),a(".kb-blocks-bg-slider > .kt-blocks-carousel-init").each(function(){var c=a(this);b(c)})});