HEX
Server: Apache
System: Linux webm009.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: ateliug (129934)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/ateliug/www/wp-content/plugins/raratheme-companion/trunk/public/js/odometer.min.js
/*! odometer 0.4.6 */
(function(){var t,e,n,i,o,r,s,a,u,l,d,h,p,c,m,f,g,v,w,M,y,b,T,E,x,S,D=[].slice;e='<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner">'+('<span class="odometer-ribbon"><span class="odometer-ribbon-inner">'+'<span class="odometer-value"></span>'+"</span></span>")+"</span></span>",i='<span class="odometer-formatting-mark"></span>',t="(,ddd).dd",o=/^\(?([^)]*)\)?(?:(.)(d+))?$/,n=2e3,r=2,s=1e3/30,l="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",w=document.createElement("div").style,d=null!=w.transition||null!=w.webkitTransition||null!=w.mozTransition||null!=w.oTransition,g=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,p=function(t){var e;return(e=document.createElement("div")).innerHTML=t,e.children[0]},f=function(t,e){return t.className=t.className.replace(new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi")," ")},h=function(t,e){return f(t,e),t.className+=" "+e},M=function(t,e){var n;if(null!=document.createEvent)return(n=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(n)},m=function(){var t,e;return null!=(t=null!=(e=window.performance)&&"function"==typeof e.now?e.now():void 0)?t:+new Date},v=function(t,e){return null==e&&(e=0),e?(t*=Math.pow(10,e),t+=.5,(t=Math.floor(t))/Math.pow(10,e)):Math.round(t)},y=function(t){return t<0?Math.ceil(t):Math.floor(t)},c=function(t){return t-v(t)},T=!1,(b=function(){var t,e,n,i,o;if(!T&&null!=window.jQuery){for(T=!0,o=[],e=0,n=(i=["html","text"]).length;e<n;e++)t=i[e],o.push(function(t){var e;return e=window.jQuery.fn[t],window.jQuery.fn[t]=function(t){var n;return null==t||null==(null!=(n=this[0])?n.odometer:void 0)?e.apply(this,arguments):this[0].odometer.update(t)}}(t));return o}})(),setTimeout(b,0),(u=function(){function u(t){var e,i,o,a,l,d,h,p,c,m=this;if(this.options=t,this.el=this.options.el,null!=this.el.odometer)return this.el.odometer;this.el.odometer=this,h=u.options;for(e in h)o=h[e],null==this.options[e]&&(this.options[e]=o);null==(a=this.options).duration&&(a.duration=n),this.MAX_VALUES=this.options.duration/s/r|0,this.resetFormat(),this.value=this.cleanValue(null!=(p=this.options.value)?p:""),this.renderInside(),this.render();try{for(l=0,d=(c=["innerHTML","innerText","textContent"]).length;l<d;l++)i=c[l],null!=this.el[i]&&function(t){Object.defineProperty(m.el,t,{get:function(){var e;return"innerHTML"===t?m.inside.outerHTML:null!=(e=m.inside.innerText)?e:m.inside.textContent},set:function(t){return m.update(t)}})}(i)}catch(t){t,this.watchForMutations()}}return u.prototype.renderInside=function(){return this.inside=document.createElement("div"),this.inside.className="odometer-inside",this.el.innerHTML="",this.el.appendChild(this.inside)},u.prototype.watchForMutations=function(){var t=this;if(null!=a)try{return null==this.observer&&(this.observer=new a(function(e){var n;return n=t.el.innerText,t.renderInside(),t.render(t.value),t.update(n)})),this.watchMutations=!0,this.startWatchingMutations()}catch(t){t}},u.prototype.startWatchingMutations=function(){if(this.watchMutations)return this.observer.observe(this.el,{childList:!0})},u.prototype.stopWatchingMutations=function(){var t;return null!=(t=this.observer)?t.disconnect():void 0},u.prototype.cleanValue=function(t){var e;return"string"==typeof t&&(t=(t=(t=t.replace(null!=(e=this.format.radix)?e:".","<radix>")).replace(/[.,]/g,"")).replace("<radix>","."),t=parseFloat(t,10)||0),v(t,this.format.precision)},u.prototype.bindTransitionEnd=function(){var t,e,n,i,o,r,s=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,e=!1,r=[],n=0,i=(o=l.split(" ")).length;n<i;n++)t=o[n],r.push(this.el.addEventListener(t,function(){return!!e||(e=!0,setTimeout(function(){return s.render(),e=!1,M(s.el,"odometerdone")},0),!0)},!1));return r}},u.prototype.resetFormat=function(){var e,n,i,r,s,a,u,l;if((e=null!=(u=this.options.format)?u:t)||(e="d"),!(i=o.exec(e)))throw new Error("Odometer: Unparsable digit format");return a=(l=i.slice(1,4))[0],s=l[1],r=(null!=(n=l[2])?n.length:void 0)||0,this.format={repeating:a,radix:s,precision:r}},u.prototype.render=function(t){var e,n,i,o,r,s,a;for(null==t&&(t=this.value),this.stopWatchingMutations(),this.resetFormat(),this.inside.innerHTML="",r=this.options.theme,o=[],s=0,a=(e=this.el.className.split(" ")).length;s<a;s++)(n=e[s]).length&&((i=/^odometer-theme-(.+)$/.exec(n))?r=i[1]:/^odometer(-|$)/.test(n)||o.push(n));return o.push("odometer"),d||o.push("odometer-no-transitions"),r?o.push("odometer-theme-"+r):o.push("odometer-auto-theme"),this.el.className=o.join(" "),this.ribbons={},this.formatDigits(t),this.startWatchingMutations()},u.prototype.formatDigits=function(t){var e,n,i,o,r,s,a,u,l;if(this.digits=[],this.options.formatFunction)for(o=0,s=(u=this.options.formatFunction(t).split("").reverse()).length;o<s;o++)(n=u[o]).match(/0-9/)?((e=this.renderDigit()).querySelector(".odometer-value").innerHTML=n,this.digits.push(e),this.insertDigit(e)):this.addSpacer(n);else for(i=!this.format.precision||!c(t)||!1,r=0,a=(l=t.toString().split("").reverse()).length;r<a;r++)"."===(e=l[r])&&(i=!0),this.addDigit(e,i)},u.prototype.update=function(t){var e,n=this;if(e=(t=this.cleanValue(t))-this.value)return f(this.el,"odometer-animating-up odometer-animating-down odometer-animating"),h(this.el,e>0?"odometer-animating-up":"odometer-animating-down"),this.stopWatchingMutations(),this.animate(t),this.startWatchingMutations(),setTimeout(function(){return n.el.offsetHeight,h(n.el,"odometer-animating")},0),this.value=t},u.prototype.renderDigit=function(){return p(e)},u.prototype.insertDigit=function(t,e){return null!=e?this.inside.insertBefore(t,e):this.inside.children.length?this.inside.insertBefore(t,this.inside.children[0]):this.inside.appendChild(t)},u.prototype.addSpacer=function(t,e,n){var o;return(o=p(i)).innerHTML=t,n&&h(o,n),this.insertDigit(o,e)},u.prototype.addDigit=function(t,e){var n,i,o,r;if(null==e&&(e=!0),"-"===t)return this.addSpacer(t,null,"odometer-negation-mark");if("."===t)return this.addSpacer(null!=(r=this.format.radix)?r:".",null,"odometer-radix-mark");if(e)for(o=!1;;){if(!this.format.repeating.length){if(o)throw new Error("Bad odometer format without digits");this.resetFormat(),o=!0}if(n=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),"d"===n)break;this.addSpacer(n)}return(i=this.renderDigit()).querySelector(".odometer-value").innerHTML=t,this.digits.push(i),this.insertDigit(i)},u.prototype.animate=function(t){return d&&"count"!==this.options.animation?this.animateSlide(t):this.animateCount(t)},u.prototype.animateCount=function(t){var e,n,i,o,r,s=this;if(n=+t-this.value)return o=i=m(),e=this.value,(r=function(){var a,u;return m()-o>s.options.duration?(s.value=t,s.render(),void M(s.el,"odometerdone")):((a=m()-i)>50&&(i=m(),u=a/s.options.duration,e+=n*u,s.render(Math.round(e))),null!=g?g(r):setTimeout(r,50))})()},u.prototype.getDigitCount=function(){var t,e,n,i,o,r;for(t=o=0,r=(i=1<=arguments.length?D.call(arguments,0):[]).length;o<r;t=++o)n=i[t],i[t]=Math.abs(n);return e=Math.max.apply(Math,i),Math.ceil(Math.log(e+1)/Math.log(10))},u.prototype.getFractionalDigitCount=function(){var t,e,n,i,o,r,s;for(e=/^\-?\d*\.(\d*?)0*$/,t=r=0,s=(o=1<=arguments.length?D.call(arguments,0):[]).length;r<s;t=++r)i=o[t],o[t]=i.toString(),n=e.exec(o[t]),o[t]=null==n?0:n[1].length;return Math.max.apply(Math,o)},u.prototype.resetDigits=function(){return this.digits=[],this.ribbons=[],this.inside.innerHTML="",this.resetFormat()},u.prototype.animateSlide=function(t){var e,n,i,o,r,s,a,u,l,d,p,c,m,f,g,v,w,M,b,T,E,x,S,D,L,F,A;if(v=this.value,(u=this.getFractionalDigitCount(v,t))&&(t*=Math.pow(10,u),v*=Math.pow(10,u)),i=t-v){for(this.bindTransitionEnd(),o=this.getDigitCount(v,t),r=[],e=0,p=b=0;0<=o?b<o:b>o;p=0<=o?++b:--b){if(w=y(v/Math.pow(10,o-p-1)),s=(a=y(t/Math.pow(10,o-p-1)))-w,Math.abs(s)>this.MAX_VALUES){for(d=[],c=s/(this.MAX_VALUES+this.MAX_VALUES*e*.5),n=w;s>0&&n<a||s<0&&n>a;)d.push(Math.round(n)),n+=c;d[d.length-1]!==a&&d.push(a),e++}else d=function(){A=[];for(var t=w;w<=a?t<=a:t>=a;w<=a?t++:t--)A.push(t);return A}.apply(this);for(p=T=0,x=d.length;T<x;p=++T)l=d[p],d[p]=Math.abs(l%10);r.push(d)}for(this.resetDigits(),p=E=0,S=(F=r.reverse()).length;E<S;p=++E)for(d=F[p],this.digits[p]||this.addDigit(" ",p>=u),null==(M=this.ribbons)[p]&&(M[p]=this.digits[p].querySelector(".odometer-ribbon-inner")),this.ribbons[p].innerHTML="",i<0&&(d=d.reverse()),m=L=0,D=d.length;L<D;m=++L)l=d[m],(g=document.createElement("div")).className="odometer-value",g.innerHTML=l,this.ribbons[p].appendChild(g),m===d.length-1&&h(g,"odometer-last-value"),0===m&&h(g,"odometer-first-value");return w<0&&this.addDigit("-"),null!=(f=this.inside.querySelector(".odometer-radix-mark"))&&f.parent.removeChild(f),u?this.addSpacer(this.format.radix,this.digits[u-1],"odometer-radix-mark"):void 0}},u}()).options=null!=(x=window.odometerOptions)?x:{},setTimeout(function(){var t,e,n,i,o;if(window.odometerOptions){i=window.odometerOptions,o=[];for(t in i)e=i[t],o.push(null!=(n=u.options)[t]?(n=u.options)[t]:n[t]=e);return o}},0),u.init=function(){var t,e,n,i,o,r;if(null!=document.querySelectorAll){for(r=[],n=0,i=(e=document.querySelectorAll(u.options.selector||".odometer")).length;n<i;n++)t=e[n],r.push(t.odometer=new u({el:t,value:null!=(o=t.innerText)?o:t.textContent}));return r}},null!=(null!=(S=document.documentElement)?S.doScroll:void 0)&&null!=document.createEventObject?(E=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&!1!==u.options.auto&&u.init(),null!=E?E.apply(this,arguments):void 0}):document.addEventListener("DOMContentLoaded",function(){if(!1!==u.options.auto)return u.init()},!1),"function"==typeof define&&define.amd?define(["jquery"],function(){return u}):"undefined"!=typeof exports&&null!==exports?module.exports=u:window.Odometer=u}).call(this);