PageSourceSearch

https://www.mallofabilene.com/_astro/countUp.min.js

js mallofabilene.com collected 2026-10-04 10:40:10 UTC 6,789 bytes, 1 lines download raw bytes

1var b=Object.defineProperty;var p=(s,e)=>b(s,"name",{value:e,configurable:!0});var m=p(function(){return m=Object.assign||function(s){for(var e,i=1,n=arguments.length;i<n;i++)for(var t in e=arguments[i])Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t]);return s},m.apply(this,arguments)},"t"),E=function(){function s(e,i,n){var t=this;this.endVal=i,this.options=n,this.version="2.10.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){t.startTime||(t.startTime=o);var a=o-t.startTime;t.remaining=t.duration-a,t.useEasing?t.countDown?t.frameVal=t.startVal-t.easingFn(a,0,t.startVal-t.endVal,t.duration):t.frameVal=t.easingFn(a,t.startVal,t.endVal-t.startVal,t.duration):t.frameVal=t.startVal+(t.endVal-t.startVal)*(a/t.duration);var r=t.countDown?t.frameVal<t.endVal:t.frameVal>t.endVal;t.frameVal=r?t.endVal:t.frameVal,t.frameVal=Number(t.frameVal.toFixed(t.options.decimalPlaces)),t.printValue(t.frameVal),a<t.duration?t.rAF=requestAnimationFrame(t.count):t.finalEndVal!==null?t.update(t.finalEndVal):t.options.onCompleteCallback&&t.options.onCompleteCallback()},this.formatNumber=function(o){var a,r,l,u,v=o<0?"-":"";a=Math.abs(o).toFixed(t.options.decimalPlaces);var c=(a+="").split(".");if(r=c[0],l=c.length>1?t.options.decimal+c[1]:"",t.options.useGrouping){u="";for(var V=3,d=0,h=0,g=r.length;h<g;++h)t.options.useIndianSeparators&&h===4&&(V=2,d=1),h!==0&&d%V==0&&(u=t.options.separator+u),d++,u=r[g-h-1]+u;r=u}return t.options.numerals&&t.options.numerals.length&&(r=r.replace(/[0-9]/g,function(f){return t.options.numerals[+f]}),l=l.replace(/[0-9]/g,function(f){return t.options.numerals[+f]})),v+t.options.prefix+r+l+t.options.suffix},this.easeOutExpo=function(o,a,r,l){return r*(1-Math.pow(2,-10*o/l))*1024/1023+a},this.options=m(m({},this.defaults),n),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),this.options.scrollSpyDelay!==void 0&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof e=="string"?document.getElementById(e):e,i=i??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(i),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.autoAnimate&&(this.error||typeof IntersectionObserver>"u"?this.error?console.error(this.error,e):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return p(s,"i"),s.prototype.setupObserver=function(){var e=this,i=s.observedElements.get(this.el);i&&i.unobserve(),s.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(n){for(var t=0,o=n;t<o.length;t++){var a=o[t];a.isIntersecting&&e.paused&&!e.once?(e.paused=!1,e.autoAnimateTimeout=setTimeout(function(){return e.start()},e.options.autoAnimateDelay),e.options.autoAnimateOnce&&(e.once=!0,e.observer.disconnect())):a.isIntersecting||e.paused||(clearTimeout(e.autoAnimateTimeout),e.reset())}},{threshold:0}),this.observer.observe(this.el)},s.prototype.unobserve=function(){var e;clearTimeout(this.autoAnimateTimeout),(e=this.observer)===null||e===void 0||e.disconnect(),s.observedElements.delete(this.el)},s.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},s.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var i=e-this.startVal;if(Math.abs(i)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var n=this.countDown?1:-1;
vendor: 2,314 bytes, line 1
1this.endVal=e+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},s.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},s.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},s.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},s.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},s.prototype.printValue=function(e){var i;if(this.el){var n=this.formattingFn(e);!((i=this.options.plugin)===null||i===void 0)&&i.render?this.options.plugin.render(this.el,n):this.el.tagName==="INPUT"?this.el.value=n:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=n:this.el.innerHTML=n}},s.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},s.prototype.validateValue=function(e){var i=Number(e);return this.ensureNumber(i)?i:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},s.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},s.prototype.parse=function(e){var i=p(function(a){return a.replace(/([.,'  ])/g,"\\$1")},"i"),n=i(this.options.separator),t=i(this.options.decimal),o=e.replace(new RegExp(n,"g"),"").replace(new RegExp(t,"g"),".");return parseFloat(o)},s.observedElements=new WeakMap,s}();export{E as CountUp};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.