!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 p},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.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)}})},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)=>"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??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??r??"":t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??r:t?.[e]?.desktop?.value??r,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"},p=e=>{const t=e||window.diviModuleNumberCounterData,n={...window?.diviElementStickyData??{},...window?.et_pb_sticky_elements??{}};if(!Array.isArray(t))return;const i=c();t.forEach((({selector:e,data:t})=>{const o=r()(e);if(!o.length)return;"fitText"in r().fn&&"function"==typeof r().fn.fitText&&o.find(".percent p").fitText(.3),void 0!==o.data("easyPieChart")?s(o,l(t,i)):d(o,l(t,i)),o.on("containerWidthChanged",(()=>{s(o,l(t,c()))})),o.on("mouseleave",(()=>{s(o,l(t,i))})),o.on("mouseenter",(()=>{s(o,l(t,i,!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(o,l(t,"sticky"))})),window.addEventListener("ETBuilderStickyEnd",(e=>{u===e.detail.stickyId&&s(o,l(t,i))})))}))};"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:p,writable:!1}),((window.divi=window.divi||{}).moduleLibrary=window.divi.moduleLibrary||{}).moduleLibraryScriptNumberCounter=t}();