PageSourceSearch

https://www.sweco.se/wp-content/plugins/the-sweco-plugin/vendor/countUp.min.js?ver=6.9.9

js sweco.se collected 2026-10-02 06:34:06 UTC 3,799 bytes, 1 lines download raw bytes

1!function(t,a){"function"==typeof define&&define.amd?define(a):"object"==typeof exports?module.exports=a(require,exports,module):t.CountUp=a()}(this,function(t,a,n){return function(t,a,n,e,r,i){var o=this;if(o.version=function(){return"1.9.3"},o.options={useEasing:!0,useGrouping:!0,separator:" ",decimal:".",easingFn:function t(a,n,e,r){return e*(-Math.pow(2,-10*a/r)+1)*1024/1023+n},formattingFn:function t(a){var n,e,r,i,s,l,u=a<0;if(a=Math.abs(a).toFixed(o.decimals),a+="",e=(n=a.split("."))[0],r=n.length>1?o.options.decimal+n[1]:"",o.options.useGrouping){for(s=0,i="",l=e.length;s<l;++s)0!==s&&s%3==0&&(i=o.options.separator+i),i=e[l-s-1]+i;e=i}return o.options.numerals.length&&(e=e.replace(/[0-9]/g,function(t){return o.options.numerals[+t]}),r=r.replace(/[0-9]/g,function(t){return o.options.numerals[+t]})),(u?"-":"")+o.options.prefix+e+r+o.options.suffix},prefix:"",suffix:"",numerals:[]},i&&"object"==typeof i)for(var s in o.options)i.hasOwnProperty(s)&&null!==i[s]&&(o.options[s]=i[s]);""===o.options.separator?o.options.useGrouping=!1:o.options.separator=""+o.options.separator;for(var l=0,u=["webkit","moz","ms","o"],m=0;m<u.length&&!window.requestAnimationFrame;++m)window.requestAnimationFrame=window[u[m]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[m]+"CancelAnimationFrame"]||window[u[m]+"CancelRequestAnimationFrame"];function p(t){return"number"==typeof t&&!isNaN(t)}window.requestAnimationFrame||(window.requestAnimationFrame=function(t,a){var n=new Date().getTime(),e=Math.max(0,16-(n-l)),r=window.setTimeout(function(){t(n+e)},e);return l=n+e,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),o.initialize=function(){return!!o.initialized||((o.error="",o.d="string"==typeof t?document.getElementById(t):t,o.d)?(o.startVal=Number(a),o.endVal=Number(n),p(o.startVal)&&p(o.endVal))?(o.decimals=Math.max(0,e||0),o.dec=Math.pow(10,o.decimals),o.duration=1e3*Number(r)||2e3,o.countDown=o.startVal>o.endVal,o.frameVal=o.startVal,o.initialized=!0,!0):(o.error="[CountUp] startVal ("+a+") or endVal ("+n+") is not a number",!1):(o.error="[CountUp] target is null or undefined",!1))},o.printValue=function(t){var a=o.options.formattingFn(t);"INPUT"===o.d.tagName?this.d.value=a:"text"===o.d.tagName||"tspan"===o.d.tagName?this.d.textContent=a:this.d.innerHTML=a},o.count=function(t){o.startTime||(o.startTime=t),o.timestamp=t;var a=t-o.startTime;o.remaining=o.duration-a,o.options.useEasing?o.countDown?o.frameVal=o.startVal-o.options.easingFn(a,0,o.startVal-o.endVal,o.duration):o.frameVal=o.options.easingFn(a,o.startVal,o.endVal-o.startVal,o.duration):o.countDown?o.frameVal=o.startVal-(o.startVal-o.endVal)*(a/o.duration):o.frameVal=o.startVal+(o.endVal-o.startVal)*(a/o.duration),o.countDown?o.frameVal=o.frameVal<o.endVal?o.endVal:o.frameVal:o.frameVal=o.frameVal>o.endVal?o.endVal:o.frameVal,o.frameVal=Math.round(o.frameVal*o.dec)/o.dec,o.printValue(o.frameVal),a<o.duration?o.rAF=requestAnimationFrame(o.count):o.callback&&o.callback()},o.start=function(t){o.initialize()&&(o.callback=t,o.rAF=requestAnimationFrame(o.count))},o.pauseResume=function(){o.paused?(o.paused=!1,delete o.startTime,o.duration=o.remaining,o.startVal=o.frameVal,requestAnimationFrame(o.count)):(o.paused=!0,cancelAnimationFrame(o.rAF))},o.reset=function(){o.paused=!1,delete o.startTime,o.initialized=!1,o.initialize()&&(cancelAnimationFrame(o.rAF),o.printValue(o.startVal))},o.update=function(t){if(o.initialize()){if(!p(t=Number(t))){o.error="[CountUp] update() - new endVal is not a number: "+t;return}o.error="",t!==o.frameVal&&(cancelAnimationFrame(o.rAF),o.paused=!1,delete o.startTime,o.startVal=o.frameVal,o.endVal=t,o.countDown=o.startVal>o.endVal,o.rAF=requestAnimationFrame(o.count))}},o.initialize()&&o.printValue(o.startVal)}});

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.