"use strict";const T=require("react");var ue={exports:{}},q={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Fe;function vr(){if(Fe)return q;Fe=1;var l=T,c=Symbol.for("react.element"),O=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,R=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function C(j,p,w){var u,f={},E=null,x=null;w!==void 0&&(E=""+w),p.key!==void 0&&(E=""+p.key),p.ref!==void 0&&(x=p.ref);for(u in p)h.call(p,u)&&!g.hasOwnProperty(u)&&(f[u]=p[u]);if(j&&j.defaultProps)for(u in p=j.defaultProps,p)f[u]===void 0&&(f[u]=p[u]);return{$$typeof:c,type:j,key:E,ref:x,props:f,_owner:R.current}}return q.Fragment=O,q.jsx=C,q.jsxs=C,q}var B={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ae;function dr(){return Ae||(Ae=1,process.env.NODE_ENV!=="production"&&function(){var l=T,c=Symbol.for("react.element"),O=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),j=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),F=Symbol.iterator,A="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[A];return typeof r=="function"?r:null}var b=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&d>=0&&a[v]!==y[d];)d--;for(;v>=1&&d>=0;v--,d--)if(a[v]!==y[d]){if(v!==1||d!==1)do if(v--,d--,d<0||a[v]!==y[d]){var S=` `+a[v].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),typeof e=="function"&&K.set(e,S),S}while(v>=1&&d>=0);break}}}finally{Q=!1,H.current=s,Me(),Error.prepareStackTrace=i}var W=e?e.displayName||e.name:"",$=W?J(W):"";return typeof e=="function"&&K.set(e,$),$}function Le(e,r,t){return ye(e,!1)}function Ue(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function G(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ue(e));if(typeof e=="string")return J(e);switch(e){case w:return J("Suspense");case u:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Le(e.render);case f:return G(e.type,r,t);case E:{var n=e,i=n._payload,s=n._init;try{return G(s(i),r,t)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,ge={},_e=b.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=G(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var s=Function.call.bind(L);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var y=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){a=v}a&&!(a instanceof Error)&&(z(i),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),z(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,z(i),m("Failed %s type: %s",t,a.message),z(null))}}}var Be=Array.isArray;function ee(e){return Be(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Ee(e){if(Ke(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),Re(e)}var U=b.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Te,we,re;re={};function ze(e){if(L.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=k(U.current.type);re[t]||(m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(U.current.type),e.ref),re[t]=!0)}}function Ze(e,r){{var t=function(){Te||(Te=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Qe(e,r){{var t=function(){we||(we=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,i,s,o){var a={$$typeof:c,type:e,key:r,ref:t,props:o,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,i){{var s,o={},a=null,y=null;t!==void 0&&(Ee(t),a=""+t),Xe(r)&&(Ee(r.key),a=""+r.key),ze(r)&&(y=r.ref,He(r,i));for(s in r)L.call(r,s)&&!Ge.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var v=e.defaultProps;for(s in v)o[s]===void 0&&(o[s]=v[s])}if(a||y){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ze(o,d),y&&Qe(o,d)}return er(e,a,y,i,n,U.current,o)}}var te=b.ReactCurrentOwner,Se=b.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=G(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var ne;ne=!1;function ae(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function Oe(){{if(te.current){var e=k(te.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function tr(e){return""}var Ce={};function nr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==te.current&&(n=" It was passed a child from "+k(e._owner.type)+"."),N(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),N(null)}}function Pe(e,r){{if(typeof e!="object")return;if(ee(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,a)}var d=rr(e,r,t,i,s);if(d==null)return d;if(o){var S=r.children;if(S!==void 0)if(n)if(ee(S)){for(var W=0;W0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!xe[$+oe]){var cr=_.length>0?"{"+_.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,oe,$,cr,$),xe[$+oe]=!0}}return e===h?or(d):ar(d),d}}function ir(e,r,t){return ke(e,r,t,!0)}function ur(e,r,t){return ke(e,r,t,!1)}var sr=ur,lr=ir;B.Fragment=h,B.jsx=sr,B.jsxs=lr}()),B}process.env.NODE_ENV==="production"?ue.exports=vr():ue.exports=dr();var I=ue.exports;function pr(l,c,O,h){return(l/=h/2)<1?O/2*l*l*l+c:O/2*((l-=2)*l*l+2)+c}const ie={"scroll-item-wrapper":"_scroll-item-wrapper_18ebu_1","scroll-numbers":"_scroll-numbers_18ebu_11"};function mr(l){const[c,O]=T.useState(l.value%10),h=T.useRef(l.value),R=T.useRef(l.value),g=T.useMemo(()=>Math.floor(c),[c]),C=T.useMemo(()=>Math.floor(c)+1,[c]),j=T.useMemo(()=>({transform:`translateY(${(c-g)*100*-1}%)`,opacity:1-Math.abs(c-g)}),[c,g]),p=T.useMemo(()=>({transform:`translateY(${(C-c)*100}%)`,opacity:Math.abs(c-g)}),[C,c,g]),w=T.useRef(!1),u=T.useRef(null),f=T.useRef(null);function E(P){if(w.current=!0,u.current||(u.current=P),(P-u.current)/l.transformDuration>1){x(R.current);return}O(pr(P-u.current,h.current,R.current-h.current,l.transformDuration)%10),f.current=A(E)}function x(P){f.current&&(window.cancelAnimationFrame(f.current),f.current=null,O(P%10),u.current=null,w.current=!1)}function F(){f.current=A(E)}function A(P){return window.requestAnimationFrame(P)}return T.useEffect(()=>{w.current?(h.current=c,R.current=l.value,u.current=null):(h.current=R.current,R.current=l.value,h.current!==R.current&&F())},[l.value]),I.jsxs("div",{className:ie["scroll-item-wrapper"],children:[I.jsx("div",{style:{opacity:0,display:"inline-block"},children:g}),I.jsx("div",{className:ie["scroll-numbers"],style:j,children:g}),I.jsx("div",{className:ie["scroll-numbers"],style:p,children:C})]})}const br={"scroll-number-wrapper":"_scroll-number-wrapper_2i03v_1"};function hr(l){return!Number.isNaN(+l)}function yr({value:l,transformDuration:c=1500,fractionDigits:O=0,prefix:h="",infix:R="",suffix:g="",thousandSeparator:C=","}){function j(u,f,E,x,F,A){const P=u<0,b=u.toFixed(f).split(""),m=f<=0?b.length:b.length-1;if(A){let Y=0;const X=P?1:0;for(let M=b.length-f-2;M>X;M--)Y++,Y>0&&Y%3==0&&b.splice(M,0,A)}return F&&b.push(F),x&&(u<0?b.splice(1,0,x):b.unshift(x)),E&&b.unshift(E),[b,m]}const[p,w]=j(l,O,h,R,g,C);return I.jsx("div",{className:br["scroll-number-wrapper"],children:p.map((u,f)=>hr(u)?I.jsx(mr,{value:Number(u),transformDuration:c},w-f):I.jsx("span",{children:u},u))})}module.exports=yr;