(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,965783,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let r={"fade-up":"anim-fade-up","fade-in":"anim-fade-in","slide-left":"anim-slide-left","slide-right":"anim-slide-right","scale-in":"anim-scale-in"};function i({children:e,animation:i="fade-up",delay:s=0,duration:a,className:l="",as:u="div"}){let o=(0,n.useRef)(null),[c,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(d(!0),t.unobserve(e.target))},{threshold:.1,rootMargin:"0px 0px -50px 0px"});return t.observe(e),()=>t.disconnect()},[]);let f={...s?{animationDelay:`${s}ms`}:{},...a?{animationDuration:`${a}ms`}:{},...!c?{opacity:0}:{}};return(0,t.jsx)(u,{ref:o,className:`${l} ${c?r[i]:""}`,style:f,children:e})}e.s(["AnimateOnScroll",()=>i])},30358,e=>{"use strict";var t=e.i(843476),n=e.i(271645);function r({value:e,duration:r=2e3,className:i}){let s=(0,n.useRef)(null),[a,l]=(0,n.useState)(!1),[u,o]=(0,n.useState)(e),c=e.match(/^([^\d]*)(\d+)(.*)$/),d=c?.[1]??"",f=c?parseInt(c[2],10):0,m=c?.[3]??"",p=null!==c,h=(0,n.useCallback)(()=>{if(!p)return;let e=performance.now(),t=n=>{let i=Math.min((n-e)/r,1),s=Math.round((1-Math.pow(1-i,3))*f);o(`${d}${s}${m}`),i<1&&requestAnimationFrame(t)};requestAnimationFrame(t)},[p,r,f,d,m]);return(0,n.useEffect)(()=>{let e=s.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&!a&&(l(!0),h(),t.unobserve(e.target))},{threshold:.1});return t.observe(e),()=>t.disconnect()},[a,h]),(0,t.jsx)("span",{ref:s,className:i,children:u})}e.s(["CountUp",()=>r])}]);