(function(){"use strict";window.kadenceCountUp={cache:{},countUpItems:{},listenerCache:{},isInViewport:function(a){const b=a.getBoundingClientRect();return 0<=b.top&&-300<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)+300},initScrollSpy:function(){if(window.kadenceCountUp.countUpItems=document.querySelectorAll(".kb-count-up"),!!window.kadenceCountUp.countUpItems.length)for(let a=0;a<window.kadenceCountUp.countUpItems.length;a++){let b=window.kadenceCountUp.countUpItems[a],c=b.dataset.start,d=b.dataset.end,e=b.dataset.prefix,f=b.dataset.suffix,g=b.dataset.duration,h=b.dataset.separator,i=!!b.dataset.decimal&&b.dataset.decimal,j=!!b.dataset.decimalSpaces&&b.dataset.decimalSpaces,k=b.querySelector(".kb-count-up-process"),l="true"===h?",":h;l="false"===l?"":l;let m={startVal:c?c:0,duration:g?g:2,prefix:e?e:"",suffix:f?f:"",separator:l,decimal:i,decimalPlaces:j};window.kadenceCountUp.cache[a]=new countUp.CountUp(k,d,m),window.kadenceCountUp.accessabilityModifications(k,d),window.kadenceCountUp.listenerCache[a]=window.kadenceCountUp.listener(a),document.addEventListener("scroll",window.kadenceCountUp.listenerCache[a],{passive:!0}),window.kadenceCountUp.startCountUp(a)}},accessabilityModifications(a,b){var c=document.createElement("div");c.classList.add("screen-reader-text"),c.innerHTML=b,a.before(c),a.setAttribute("aria-hidden","true")},listener:function(a){return function(){window.kadenceCountUp.startCountUp(a)}},startCountUp:function(a){window.kadenceCountUp.isInViewport(window.kadenceCountUp.countUpItems[a])&&(!window.kadenceCountUp.cache[a].error&&window.kadenceCountUp.cache[a].start(),document.removeEventListener("scroll",window.kadenceCountUp.listenerCache[a],!1))},init:function(){window.kadenceCountUp.initScrollSpy()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadenceCountUp.init):window.kadenceCountUp.init()})();