(()=>{"use strict";const e=new WeakMap;let t;function l(){document.querySelectorAll(".wp-block-wccom-gallery-slider").forEach((e=>{r(e)}))}function r(t){var l;const r=e.get(t);let c;r&&clearInterval(r);try{c=JSON.parse(t.dataset.customData)}catch(e){c={}}const a=null!==(l=t?.dataset?.responsiveImages)&&void 0!==l&&l,s=t.querySelectorAll(".wccom-gallery-slider__images .wp-block-gallery"),o=t.querySelectorAll(".wccom-gallery-slider__indicators .wccom-gallery-slider__indicator"),n=t.querySelector(".wccom-gallery-slider__caption"),i=[];s.forEach((e=>{const t=Array.from(e.querySelectorAll("figure"));if(a){const e=t.filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}));i.push(e)}else i.push(t)}));const d=[];s.forEach((e=>{const t=e.querySelector("figcaption");d.push(t?.textContent||"")}));let g=0,u=0,y=null;function m(){s.forEach(((e,t)=>{e.classList.remove("active"),i[t].forEach((e=>e.classList.remove("active")))})),s[g].classList.add("active"),i[g][u].classList.add("active"),n.textContent=d[g]||"";const e=s[g].querySelector(".wccom-gallery-slider__overlay-rectangle");e&&e.remove();const t=`${g}-${u}`,l=c?.overlay?.[t];if(y&&(clearTimeout(y),y=null),l){const e=`\n\t\t\t\n\t\t\t`,t=l.delay||0;y=setTimeout((()=>{const t=s[g];t&&t.insertAdjacentHTML("beforeend",e)}),t)}o.forEach(((e,t)=>{e.classList.toggle("active",t===g)}))}function h(){const l=t?.dataset?.interval||3e3;e.get(t)&&clearInterval(e.get(t));const r=setInterval((()=>{const e=i[g].length;u++,u>=e&&(u=0,g=(g+1)%s.length),m()}),Number(l));e.set(t,r)}m(),h(),t.addEventListener("click",(l=>{if(y&&(clearTimeout(y),y=null),l.target.classList.contains("wccom-gallery-slider__indicator")){const e=l.target.dataset.gallery;return g=parseInt(e,10),u=0,m(),void h()}if(l.target.closest(".wccom-gallery-slider__images")){clearInterval(e.get(t));const l=i[g].length;u++,u>=l&&(u=0,g=(g+1)%s.length),m(),h()}}))}"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l),window.addEventListener("resize",(()=>{clearTimeout(t),t=setTimeout((()=>{document.querySelectorAll(".wccom-gallery-slider--resizable").forEach((t=>{if(t.dataset.responsiveImages){const l=e.get(t);l&&clearInterval(l),t.querySelectorAll(".wccom-gallery-slider__overlay-rectangle").forEach((e=>e.remove())),r(t)}}))}),250)}))})();;
!function(){function e(){const e=document.querySelectorAll(".wccom-effect-ticker-scroll > * ");if(1>e.length)return;for(let t=0;to;o++){const o=e[t].cloneNode(!0);c.appendChild(o)}}document.querySelectorAll(".wccom-effect-ticker-scroll-container").forEach((e=>{const t=e.firstElementChild.cloneNode(!0);e.appendChild(t)}));let t=0;document.addEventListener("scroll",(function(){const e=window.scrollY||document.documentElement.scrollTop,c=document.querySelectorAll(".animate-on-scroll"),o=e>t?"right":"left";t=0>=e?0:e,c.forEach((e=>{"right"===o?e.scrollLeft+=5:e.scrollLeft-=5}))}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}();;
!function(){let e,c;function n(){const n=document.querySelectorAll(".wccom-effect-fade-in-on-scroll > *");if(!(1>n.length||c)){for(let e=0;ec.bottom||c.top>parseInt(window.innerHeight))}function f(e){e.classList.remove("wccom-effect-fade-in-on-scroll__child"),e.classList.add("wccom-effect-fadeInUp"),1>document.querySelectorAll(".wccom-effect-fade-in-on-scroll__child").length&&window.removeEventListener("scroll",o)}document.addEventListener("DOMContentLoaded",n),e=setInterval(n,100)}();;