!function(){"use strict";function t(t){const e=t.querySelector(".animated-counter-container");if(!e)return;const s=e.dataset.trigger||"scroll",a=parseInt(e.dataset.duration)||2e3,n="1"===e.dataset.separator,r=e.dataset.entrance||"fade-in",o=parseInt(e.dataset.delay)||0,i=parseInt(e.dataset.stagger)||100,l=e.querySelectorAll(".counter-number"),c=e.querySelectorAll(".counter-item");let d=!1;function u(){d||(d=!0,r&&"none"!==r&&function(t,e,s,a){t.forEach(((t,n)=>{const r=s+n*a;t.style.opacity="0",setTimeout((()=>{switch(t.style.transition="all 0.6s ease-out",t.style.opacity="1",e){case"slide-up":t.style.transform="translateY(30px)",setTimeout((()=>{t.style.transform="translateY(0)"}),10);break;case"slide-down":t.style.transform="translateY(-30px)",setTimeout((()=>{t.style.transform="translateY(0)"}),10);break;case"slide-left":t.style.transform="translateX(30px)",setTimeout((()=>{t.style.transform="translateX(0)"}),10);break;case"slide-right":t.style.transform="translateX(-30px)",setTimeout((()=>{t.style.transform="translateX(0)"}),10);break;case"zoom-in":t.style.transform="scale(0.8)",setTimeout((()=>{t.style.transform="scale(1)"}),10)}}),r)}))}(Array.from(c),r,o,i),l.forEach(((t,e)=>{const s=parseFloat(t.dataset.start)||0,r=parseFloat(t.dataset.end)||0,l=t.dataset.prefix||"",c=t.dataset.suffix||"",d=parseInt(t.dataset.decimals)||0;setTimeout((()=>{!function(t,e,s,a,n,r,o,i){const l=performance.now(),c=parseFloat(e)||0,d=parseFloat(s)||0,u=d-c;function f(t,e,s){const a=t.toFixed(e);if(s){const t=a.split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}return a}requestAnimationFrame((function e(s){const m=s-l,h=Math.min(m/a,1),y=(p=h,1-Math.pow(1-p,4));var p;const v=c+u*y;t.textContent=o+f(v,n,r)+i,h<1?requestAnimationFrame(e):t.textContent=o+f(d,n,r)+i}))}(t,s,r,a,d,n,l,c)}),o+e*i)})))}if("load"===s)"complete"===document.readyState?u():window.addEventListener("load",u);else{const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(u(),t.unobserve(e.target))}))}),{threshold:.2,rootMargin:"0px 0px -50px 0px"});t.observe(e)}c.forEach((t=>{const e=parseFloat(t.dataset.hoverScale)||1.05;t.classList.contains("hover-scale")&&(t.addEventListener("mouseenter",(function(){this.style.transform=`scale(${e})`,this.style.transition="transform 0.3s ease"})),t.addEventListener("mouseleave",(function(){this.style.transform="scale(1)"}))),t.classList.contains("hover-lift")&&(t.addEventListener("mouseenter",(function(){this.style.boxShadow="0 10px 30px rgba(0, 0, 0, 0.2)",this.style.transform="translateY(-5px)",this.style.transition="all 0.3s ease"})),t.addEventListener("mouseleave",(function(){this.style.boxShadow="",this.style.transform="translateY(0)"}))),t.classList.contains("hover-tint")&&(t.addEventListener("mouseenter",(function(){this.style.filter="brightness(1.1)",this.style.transition="filter 0.3s ease"})),t.addEventListener("mouseleave",(function(){this.style.filter="brightness(1)"}))),t.classList.contains("hover-glow")&&(t.addEventListener("mouseenter",(function(){this.style.boxShadow="0 0 20px rgba(0, 123, 255, 0.5)",this.style.transition="box-shadow 0.3s ease"})),t.addEventListener("mouseleave",(function(){this.style.boxShadow=""})))}))}function e(){document.querySelectorAll(".animated-counter-block").forEach(t)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),document.addEventListener("animatedCounterBlockLoaded",e)}();