var frontend_block_count_up;(()=>{"use strict";var t={};(t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(t);const e=t=>{clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""},n=(t,e={})=>{const{duration:n=1e3,delay:i=16}=e,o=n/i,r=t.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),s=[];for(let t=0;t<o;t++)s.push("");for(let t=0;t<r.length;t++)if(/([0-9.][,.0-9]*[0-9]*)/.test(r[t])&&!/<[^>]+>/.test(r[t])){let e=r[t];const n=[...e.matchAll(/[.,]/g)].map((t=>({char:t[0],i:e.length-t.index-1}))).sort(((t,e)=>t.i-e.i));e=e.replace(/[.,]/g,"");let i=s.length-1;for(let t=o;t>=1;t--){let r=parseInt(e/o*t,10);r=n.reduce(((t,{char:e,i:n})=>t.length<=n?t:t.slice(0,-n)+e+t.slice(-n)),r.toString()),s[i--]+=r}}else for(let e=0;e<o;e++)s[e]+=r[t];return s[s.length]=t.toString(),s},i="stk--count-up-active";class o{constructor(t){this.el=t}callback=t=>{t.forEach((t=>{const o=t.target,r=o.getAttribute("data-duration")||1e3;!o.classList.contains(i)&&t.isIntersecting&&setTimeout((()=>{((t,i={})=>{const{action:o="start",duration:r=1e3,delay:s=16}=i;if("stop"===o)return void e(t);if(e(t),!/[0-9]/.test(t.innerHTML))return;const c=n(t.innerHTML,{duration:r||t.getAttribute("data-duration"),delay:s||t.getAttribute("data-delay")});t._countUpOrigInnerHTML=t.innerHTML,t.innerHTML=c[0]||"&nbsp;",t.style.visibility="visible";const a=function(){t.innerHTML=c.shift()||"&nbsp;",c.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(a,s)):t._countUpOrigInnerHTML=void 0};t.countUpTimeout=setTimeout(a,s)})(o,{duration:r}),o.classList.add(i)}),200)}))};init=()=>{this.el.classList.remove(i);const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;"IntersectionObserver"in window&&!t?(this.io&&this.io.disconnect(),this.io=new IntersectionObserver(this.callback,{threshold:.25}),this.io.observe(this.el)):this.el.classList.add(i)}}var r;window.stackableCountUp=new class{init=()=>{document.querySelectorAll(".stk-block-count-up__text").forEach((t=>{if(!t._StackableHasInitCountUp){const e=new o(t);t.countUp=e,e.init(),t.StackableHasInitCountUp=!0}}))}},r=window.stackableCountUp.init,"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",r):r()),frontend_block_count_up=t})();