function countUp(a,t,e,n,i,r){this.options=r||{useEasing:!0,useGrouping:!0,separator:",",decimal:"."};for(var o=0,s=["webkit","moz","ms"],l=0;lthis.endVal,this.startTime=null,this.timestamp=null,this.remaining=null,this.frameVal=this.startVal,this.rAF=null,this.decimals=Math.max(0,n||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*i||2e3,this.easeOutExpo=function(a,t,e,n){return e*(1-Math.pow(2,-10*a/n))*1024/1023+t},this.count=function(a){null===m.startTime&&(m.startTime=a);var t=(m.timestamp=a)-m.startTime;if(m.remaining=m.duration-t,m.options.useEasing)if(m.countDown){var e=m.easeOutExpo(t,0,m.startVal-m.endVal,m.duration);m.frameVal=m.startVal-e}else m.frameVal=m.easeOutExpo(t,m.startVal,m.endVal-m.startVal,m.duration);else if(m.countDown){e=(m.startVal-m.endVal)*(t/m.duration);m.frameVal=m.startVal-e}else m.frameVal=m.startVal+(m.endVal-m.startVal)*(t/m.duration);m.frameVal=Math.round(m.frameVal*m.dec)/m.dec,m.countDown?m.frameVal=m.frameValm.endVal?m.endVal:m.frameVal,m.d.innerHTML=m.formatNumber(m.frameVal.toFixed(m.decimals)),t