Files
appco_dist/.output/public/_nuxt/P1w8tcVa.js
T
2026-03-09 20:51:58 +03:30

2 lines
10 KiB
JavaScript

import{a3 as pt}from"./DgGQLp3q.js";function mt(E,L){for(var T=0;T<L.length;T++){const p=L[T];if(typeof p!="string"&&!Array.isArray(p)){for(const m in p)if(m!=="default"&&!(m in E)){const w=Object.getOwnPropertyDescriptor(p,m);w&&Object.defineProperty(E,m,w.get?w:{enumerable:!0,get:()=>p[m]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var D={exports:{}},gt=D.exports,ft;function _t(){return ft||(ft=1,(function(E,L){(function(){var T,p,m,w,X,G,K,J,V,Y,Z,R,c,tt,et,C,it,g,H,nt,b,N,k,I,S,q,P,rt,j,U,ot,st,at=[].slice;it='<span class="odometer-value"></span>',tt='<span class="odometer-ribbon"><span class="odometer-ribbon-inner">'+it+"</span></span>",w='<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner">'+tt+"</span></span>",K='<span class="odometer-formatting-mark"></span>',m="(,ddd).dd",J=/^\(?([^)]*)\)?(?:(.)(d+))?$/,V=30,G=2e3,T=20,Y=2,X=.5,Z=1e3/V,p=1e3/T,et="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",S=document.createElement("div").style,C=S.transition!=null||S.webkitTransition!=null||S.mozTransition!=null||S.oTransition!=null,k=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,R=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,H=function(i){var t;return t=document.createElement("div"),t.innerHTML=i,t.children[0]},N=function(i,t){return i.className=i.className.replace(new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi")," ")},g=function(i,t){return N(i,t),i.className+=" "+t},q=function(i,t){var e;if(document.createEvent!=null)return e=document.createEvent("HTMLEvents"),e.initEvent(t,!0,!0),i.dispatchEvent(e)},b=function(){var i,t;return(i=(t=window.performance)!=null&&typeof t.now=="function"?t.now():void 0)!=null?i:+new Date},I=function(i,t){return t==null&&(t=0),t?(i*=Math.pow(10,t),i+=.5,i=Math.floor(i),i/=Math.pow(10,t)):Math.round(i)},P=function(i){return i<0?Math.ceil(i):Math.floor(i)},nt=function(i){return i-I(i)},j=!1,(rt=function(){var i,t,e,n,o;if(!j&&window.jQuery!=null){for(j=!0,n=["html","text"],o=[],t=0,e=n.length;t<e;t++)i=n[t],o.push((function(r){var s;return s=window.jQuery.fn[r],window.jQuery.fn[r]=function(a){var u;return a==null||((u=this[0])!=null?u.odometer:void 0)==null?s.apply(this,arguments):this[0].odometer.update(a)}})(i));return o}})(),setTimeout(rt,0),c=(function(){function i(t){var e,n,o,r,s,a,u,h,f,l=this;if(this.options=t,this.el=this.options.el,this.el.odometer!=null)return this.el.odometer;this.el.odometer=this,u=i.options;for(e in u)o=u[e],this.options[e]==null&&(this.options[e]=o);(r=this.options).duration==null&&(r.duration=G),this.MAX_VALUES=this.options.duration/Z/Y|0,this.resetFormat(),this.value=this.cleanValue((h=this.options.value)!=null?h:""),this.renderInside(),this.render();try{for(f=["innerHTML","innerText","textContent"],s=0,a=f.length;s<a;s++)n=f[s],this.el[n]!=null&&(function(d){return Object.defineProperty(l.el,d,{get:function(){var _;return d==="innerHTML"?l.inside.outerHTML:(_=l.inside.innerText)!=null?_:l.inside.textContent},set:function(_){return l.update(_)}})})(n)}catch{this.watchForMutations()}}return i.prototype.renderInside=function(){return this.inside=document.createElement("div"),this.inside.className="odometer-inside",this.el.innerHTML="",this.el.appendChild(this.inside)},i.prototype.watchForMutations=function(){var t=this;if(R!=null)try{return this.observer==null&&(this.observer=new R(function(e){var n;return n=t.el.innerText,t.renderInside(),t.render(t.value),t.update(n)})),this.watchMutations=!0,this.startWatchingMutations()}catch{}},i.prototype.startWatchingMutations=function(){if(this.watchMutations)return this.observer.observe(this.el,{childList:!0})},i.prototype.stopWatchingMutations=function(){var t;return(t=this.observer)!=null?t.disconnect():void 0},i.prototype.cleanValue=function(t){var e;return typeof t=="string"&&(t=t.replace((e=this.format.radix)!=null?e:".","<radix>"),t=t.replace(/[.,]/g,""),t=t.replace("<radix>","."),t=parseFloat(t,10)||0),I(t,this.format.precision)},i.prototype.bindTransitionEnd=function(){var t,e,n,o,r,s,a=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,e=!1,r=et.split(" "),s=[],n=0,o=r.length;n<o;n++)t=r[n],s.push(this.el.addEventListener(t,function(){return e||(e=!0,setTimeout(function(){return a.render(),e=!1,q(a.el,"odometerdone")},0)),!0},!1));return s}},i.prototype.resetFormat=function(){var t,e,n,o,r,s,a,u;if(t=(a=this.options.format)!=null?a:m,t||(t="d"),n=J.exec(t),!n)throw new Error("Odometer: Unparsable digit format");return u=n.slice(1,4),s=u[0],r=u[1],e=u[2],o=e?.length||0,this.format={repeating:s,radix:r,precision:o}},i.prototype.render=function(t){var e,n,o,r,s,a,u;for(t==null&&(t=this.value),this.stopWatchingMutations(),this.resetFormat(),this.inside.innerHTML="",s=this.options.theme,e=this.el.className.split(" "),r=[],a=0,u=e.length;a<u;a++)if(n=e[a],!!n.length){if(o=/^odometer-theme-(.+)$/.exec(n)){s=o[1];continue}/^odometer(-|$)/.test(n)||r.push(n)}return r.push("odometer"),C||r.push("odometer-no-transitions"),s?r.push("odometer-theme-"+s):r.push("odometer-auto-theme"),this.el.className=r.join(" "),this.ribbons={},this.formatDigits(t),this.startWatchingMutations()},i.prototype.formatDigits=function(t){var e,n,o,r,s,a,u,h,f,l;if(this.digits=[],this.options.formatFunction)for(o=this.options.formatFunction(t),f=o.split("").reverse(),s=0,u=f.length;s<u;s++)n=f[s],n.match(/0-9/)?(e=this.renderDigit(),e.querySelector(".odometer-value").innerHTML=n,this.digits.push(e),this.insertDigit(e)):this.addSpacer(n);else for(r=!this.format.precision||!nt(t)||!1,l=t.toString().split("").reverse(),a=0,h=l.length;a<h;a++)e=l[a],e==="."&&(r=!0),this.addDigit(e,r)},i.prototype.update=function(t){var e,n=this;if(t=this.cleanValue(t),!!(e=t-this.value))return N(this.el,"odometer-animating-up odometer-animating-down odometer-animating"),e>0?g(this.el,"odometer-animating-up"):g(this.el,"odometer-animating-down"),this.stopWatchingMutations(),this.animate(t),this.startWatchingMutations(),setTimeout(function(){return n.el.offsetHeight,g(n.el,"odometer-animating")},0),this.value=t},i.prototype.renderDigit=function(){return H(w)},i.prototype.insertDigit=function(t,e){return e!=null?this.inside.insertBefore(t,e):this.inside.children.length?this.inside.insertBefore(t,this.inside.children[0]):this.inside.appendChild(t)},i.prototype.addSpacer=function(t,e,n){var o;return o=H(K),o.innerHTML=t,n&&g(o,n),this.insertDigit(o,e)},i.prototype.addDigit=function(t,e){var n,o,r,s;if(e==null&&(e=!0),t==="-")return this.addSpacer(t,null,"odometer-negation-mark");if(t===".")return this.addSpacer((s=this.format.radix)!=null?s:".",null,"odometer-radix-mark");if(e)for(r=!1;;){if(!this.format.repeating.length){if(r)throw new Error("Bad odometer format without digits");this.resetFormat(),r=!0}if(n=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),n==="d")break;this.addSpacer(n)}return o=this.renderDigit(),o.querySelector(".odometer-value").innerHTML=t,this.digits.push(o),this.insertDigit(o)},i.prototype.animate=function(t){return!C||this.options.animation==="count"?this.animateCount(t):this.animateSlide(t)},i.prototype.animateCount=function(t){var e,n,o,r,s,a=this;if(n=+t-this.value)return r=o=b(),e=this.value,(s=function(){var u,h,f;if(b()-r>a.options.duration){a.value=t,a.render(),q(a.el,"odometerdone");return}return u=b()-o,u>p&&(o=b(),f=u/a.options.duration,h=n*f,e+=h,a.render(Math.round(e))),k!=null?k(s):setTimeout(s,p)})()},i.prototype.getDigitCount=function(){var t,e,n,o,r,s;for(o=1<=arguments.length?at.call(arguments,0):[],t=r=0,s=o.length;r<s;t=++r)n=o[t],o[t]=Math.abs(n);return e=Math.max.apply(Math,o),Math.ceil(Math.log(e+1)/Math.log(10))},i.prototype.getFractionalDigitCount=function(){var t,e,n,o,r,s,a;for(r=1<=arguments.length?at.call(arguments,0):[],e=/^\-?\d*\.(\d*?)0*$/,t=s=0,a=r.length;s<a;t=++s)o=r[t],r[t]=o.toString(),n=e.exec(r[t]),n==null?r[t]=0:r[t]=n[1].length;return Math.max.apply(Math,r)},i.prototype.resetDigits=function(){return this.digits=[],this.ribbons=[],this.inside.innerHTML="",this.resetFormat()},i.prototype.animateSlide=function(t){var e,n,o,r,s,a,u,h,f,l,d,_,A,F,y,M,v,ut,x,W,B,lt,dt,ht,$,Q,z;if(M=this.value,h=this.getFractionalDigitCount(M,t),h&&(t=t*Math.pow(10,h),M=M*Math.pow(10,h)),!!(o=t-M)){for(this.bindTransitionEnd(),r=this.getDigitCount(M,t),s=[],e=0,d=x=0;0<=r?x<r:x>r;d=0<=r?++x:--x){if(v=P(M/Math.pow(10,r-d-1)),u=P(t/Math.pow(10,r-d-1)),a=u-v,Math.abs(a)>this.MAX_VALUES){for(l=[],_=a/(this.MAX_VALUES+this.MAX_VALUES*e*X),n=v;a>0&&n<u||a<0&&n>u;)l.push(Math.round(n)),n+=_;l[l.length-1]!==u&&l.push(u),e++}else l=(function(){z=[];for(var O=v;v<=u?O<=u:O>=u;v<=u?O++:O--)z.push(O);return z}).apply(this);for(d=W=0,lt=l.length;W<lt;d=++W)f=l[d],l[d]=Math.abs(f%10);s.push(l)}for(this.resetDigits(),Q=s.reverse(),d=B=0,dt=Q.length;B<dt;d=++B)for(l=Q[d],this.digits[d]||this.addDigit(" ",d>=h),(ut=this.ribbons)[d]==null&&(ut[d]=this.digits[d].querySelector(".odometer-ribbon-inner")),this.ribbons[d].innerHTML="",o<0&&(l=l.reverse()),A=$=0,ht=l.length;$<ht;A=++$)f=l[A],y=document.createElement("div"),y.className="odometer-value",y.innerHTML=f,this.ribbons[d].appendChild(y),A===l.length-1&&g(y,"odometer-last-value"),A===0&&g(y,"odometer-first-value");if(v<0&&this.addDigit("-"),F=this.inside.querySelector(".odometer-radix-mark"),F?.parent.removeChild(F),h)return this.addSpacer(this.format.radix,this.digits[h-1],"odometer-radix-mark")}},i})(),c.options=(ot=window.odometerOptions)!=null?ot:{},setTimeout(function(){var i,t,e,n,o;if(window.odometerOptions){n=window.odometerOptions,o=[];for(i in n)t=n[i],o.push((e=c.options)[i]!=null?(e=c.options)[i]:e[i]=t);return o}},0),c.init=function(){var i,t,e,n,o,r;if(document.querySelectorAll!=null){for(t=document.querySelectorAll(c.options.selector||".odometer"),r=[],e=0,n=t.length;e<n;e++)i=t[e],r.push(i.odometer=new c({el:i,value:(o=i.innerText)!=null?o:i.textContent}));return r}},((st=document.documentElement)!=null?st.doScroll:void 0)!=null&&document.createEventObject!=null?(U=document.onreadystatechange,document.onreadystatechange=function(){return document.readyState==="complete"&&c.options.auto!==!1&&c.init(),U?.apply(this,arguments)}):document.addEventListener("DOMContentLoaded",function(){if(c.options.auto!==!1)return c.init()},!1),L!==null?E.exports=c:window.Odometer=c}).call(gt)})(D,D.exports)),D.exports}var ct=_t();const Mt=pt(ct),Tt=mt({__proto__:null,default:Mt},[ct]);export{Tt as o};