(()=>{"use strict";window.addEventListener("load",()=>{(()=>{const e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting)try{(e=>{((e,t)=>{const n=e.target,r=JSON.parse(n.getAttribute("data-animation")),o=n.querySelector(".number-percentage");r&&(()=>{const{endTime:e,duration:c,style:a}=r;if("static"===a){if(t){const u=document.createElement("span");u.classList.add("number-percentage"),o.replaceWith(u)}function i(e){const t=e.toString().split("."),n=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");return t.length>1?n+"."+t[1]:n}function s(e,t,r,o){let c=t;const a=(r-t)/(o/16),s=n.querySelector(e);if(!s)return void console.error("Element not found:",e);const u=()=>{c+=a,s.innerHTML=c>999?i(Math.round(c)):Math.round(c),a>0&&c<r||a<0&&c>r?requestAnimationFrame(u):s.innerHTML=r>999?i(r):r};u()}s(".number-percentage",0,e,c)}else new Odometer({el:o,value:0}).update(e)})()})(e,!1)})(e)}catch(e){console.warn(e)}})});document.querySelectorAll(".gkit-funfact-inner").forEach(t=>e.observe(t))})()})})();