(()=>{function e(e){if(e.swiper)return e.swiper.update(),e.swiper;const t=e.closest(".cb-carousel-block");if(!t)return null;const r=parseInt(t.getAttribute("data-cb-slides-per-view")),a=parseInt(t.getAttribute("data-cb-slides-per-group")),n=parseInt(t.getAttribute("data-cb-space-between")),i=parseInt(t.getAttribute("data-cb-speed")),o="true"===t.getAttribute("data-cb-navigation"),s="true"===t.getAttribute("data-cb-pagination"),u="true"===t.getAttribute("data-cb-loop"),c="true"===t.getAttribute("data-cb-resize-observer"),l="true"===t.getAttribute("data-cb-observer"),b=l&&"true"===t.getAttribute("data-cb-observe-parents"),p=l&&"true"===t.getAttribute("data-cb-observe-slide-children"),d="true"===t.getAttribute("data-cb-autoplay")&&{delay:parseInt(t.getAttribute("data-cb-autoplay-speed")),disableOnInteraction:"true"===t.getAttribute("data-cb-disable-on-interaction"),pauseOnMouseEnter:"true"===t.getAttribute("data-cb-pause-on-mouse-enter")},g=JSON.parse(t.getAttribute("data-cb-breakpoints")||"{}");return new Swiper(e,{slidesPerView:r,slidesPerGroup:a,spaceBetween:n,speed:i,loop:u,autoplay:d,navigation:!!o&&{nextEl:t.querySelector(".cb-button-next"),prevEl:t.querySelector(".cb-button-prev")},pagination:!!s&&{el:t.querySelector(".cb-pagination"),clickable:!0,renderBullet(e,t){return`<span class="${t} cb-pagination-bullet" role="button" aria-label="${r=this.params.a11y.paginationBulletMessage.replace(/\{\{index\}\}/,e+1),String(r).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}"></span>`;var r}},a11y:{enabled:!0,containerMessage:"Carousel",containerRole:"group",containerRoleDescriptionMessage:"carousel"},breakpoints:g,resizeObserver:c,...l&&{observer:!0},...b&&{observeParents:!0},...p&&{observeSlideChildren:!0}})}function t(t=document){t.querySelectorAll(".cb-carousel-block .swiper").forEach((t=>{e(t)}))}window.CarouselSliderBlock={init(e=document){t(e)},update(t=document){!function(t=document){t.querySelectorAll(".cb-carousel-block .swiper").forEach((t=>{t.swiper?t.swiper.update():e(t)}))}(t)}},document.addEventListener("DOMContentLoaded",(()=>{t()}))})();