!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{numberCounterInit:function(){return d},numberCounterReInit:function(){return v},numberCounterUpdate:function(){return s}});var n=window.jQuery,r=e.n(n);const i=(e,t)=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t),o=e=>{if(e.includes(".")){const t=e.split("."),n=t.length,r=t.reduce(((e,t,r)=>r===n-1?`${e}.${t}`:`${e}${t}`),"");return{value:parseFloat(r.replace(/,/g,"")),separator:r.includes(",")?",":"",decimal:t[n-1].length}}return{value:parseFloat(e.replace(/,/g,"")),separator:e.includes(",")?",":"",decimal:0}},a=(e,t)=>{const n=r()("body").hasClass("gecko"),{separator:a,decimal:d,value:u}=o(t.numberValue);e.easyPieChart({numberValue:u,animate:{duration:1800,enabled:!0},size:n?1:0,trackAlpha:0,trackColor:!1,scaleColor:!1,lineWidth:0,onStart(t){e.data("PieChartHasLoaded",!0),e.addClass("active"),e.find(".percent-value").text(Number.isNaN(t)?t:i(t,a))},onStep(t,n,r){e.find(".percent-value").text(Number.isNaN(r)?r:i(r.toFixed(d),a))},onStop(){e.find(".percent-value").text(t.numberValue),e.data("PieChartHasLoaded",!0)}})},d=(e,t)=>{if(void 0!==e.data("easyPieChart"))return;const n=()=>{const t=e[0].getBoundingClientRect();return t.top<window.innerHeight&&t.bottom>0};if(n())a(e,t);else{const r=()=>{n()&&(window.removeEventListener("scroll",r),a(e,t))};window.addEventListener("scroll",r)}},u=(e,t,n,r,i)=>{let o=r??"";return o="sticky"===n?t?.[e]?.desktop?.sticky??t?.[e]?.desktop?.value??r??"":"desktop"===n?i?t?.[e]?.desktop?.hover??t?.[e]?.desktop?.value??r??"":t?.[e]?.desktop?.value??t?.[e]?.desktop?.hover??r??"":"phone"===n?i?t?.[e]?.desktop?.hover??t?.[e]?.phone?.value??t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??r??"":t?.[e]?.phone?.value??t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??r??"":"tablet"===n?i?t?.[e]?.desktop?.hover??t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??r??"":t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??r??"":t?.[e]?.desktop?.value??r??"",o},l=(e,t,n)=>({numberValue:u("numberValue",e,t,"50",n)}),s=(e,t,n)=>{if(e.width()<=0)return;if(void 0===e.data("easyPieChart"))return;if(n)return e.removeData("easyPieChart"),e.find("canvas").remove(),void d(e,t);const{value:r,separator:a,decimal:u}=o(t.numberValue),l=/[^\d.,\s-]/.test(t.numberValue);e.data("easyPieChart").options.onStep=(n,r,o)=>{l?e.find(".percent-value").text(t.numberValue):Number.isNaN(o)?e.find(".percent-value").text(o):e.find(".percent-value").text(i(o.toFixed(u),a))},e.data("easyPieChart").options.onStop=()=>{e.find(".percent-value").text(t.numberValue)},e.data("easyPieChart").update(r),e.find(".percent-value").text(t.numberValue)},c=()=>{const e=r()(window).width();return e<=980&&e>767?"tablet":e<=767?"phone":"desktop"},v=e=>{const t=e||window.diviModuleNumberCounterData,n={...window?.diviElementStickyData??{},...window?.et_pb_sticky_elements??{}};Array.isArray(t)&&t.forEach((({selector:e,data:t})=>{const i=r()(e);if(!i.length)return;"fitText"in r().fn&&"function"==typeof r().fn.fitText&&i.find(".percent p").fitText(.3);const o=c();void 0!==i.data("easyPieChart")?s(i,l(t,o)):d(i,l(t,o)),i.off("containerWidthChanged.etNumberCounter").on("containerWidthChanged.etNumberCounter",(()=>{s(i,l(t,c()))})),i.off(".diviNumberCounterHover"),("function"!=typeof window.matchMedia||window.matchMedia("(any-hover: hover) and (any-pointer: fine)").matches)&&(i.on("mouseleave.diviNumberCounterHover",(()=>{s(i,l(t,c()))})),i.on("mouseenter.diviNumberCounterHover",(()=>{s(i,l(t,c(),!0))})));const a=Object.values(n).find((t=>e===t?.selector)),u=a&&a?.id?a?.id:null;u&&(window.addEventListener("ETBuilderStickyStart",(e=>{u===e.detail.stickyId&&s(i,l(t,"sticky"))})),window.addEventListener("ETBuilderStickyEnd",(e=>{u===e.detail.stickyId&&s(i,l(t,c()))})))}))};"diviModuleNumberCounterInit"in window||Object.defineProperty(window,"diviModuleNumberCounterInit",{value:d,writable:!1}),"diviModuleNumberCounterUpdate"in window||Object.defineProperty(window,"diviModuleNumberCounterUpdate",{value:s,writable:!1}),"diviModuleNumberCounterReinit"in window||Object.defineProperty(window,"diviModuleNumberCounterReinit",{value:v,writable:!1}),((window.divi=window.divi||{}).moduleLibrary=window.divi.moduleLibrary||{}).moduleLibraryScriptNumberCounter=t}();