"use strict";(()=>{function B(d,t,i){return Math.max(d,Math.min(t,i))}var q=class{constructor(){this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.currentTime=0}advance(t){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let s=B(0,this.currentTime/this.duration,1);e=s>=1;let o=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*o}else this.lerp?(this.value=function(o,n,l,h){return function(S,m,v){return(1-v)*S+v*m}(o,n,1-Math.exp(-l*h))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(i=this.onUpdate)===null||i===void 0||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(t,i,{lerp:e,duration:s,easing:o,onStart:n,onUpdate:l}){this.from=this.value=t,this.to=i,this.lerp=e,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,n==null||n(),this.onUpdate=l}},V=class{constructor(t,i,{autoResize:e=!0,debounce:s=250}={}){this.wrapper=t,this.content=i,this.width=0,this.height=0,this.scrollHeight=0,this.scrollWidth=0,this.resize=()=>{this.onWrapperResize(),this.onContentResize()},this.onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},this.onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},e&&(this.debouncedResize=function(n,l){let h;return function(...r){let S=this;clearTimeout(h),h=setTimeout(()=>{h=void 0,n.apply(S,r)},l)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,i;(t=this.wrapperResizeObserver)===null||t===void 0||t.disconnect(),(i=this.contentResizeObserver)===null||i===void 0||i.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},R=class{constructor(){this.events={}}emit(t,...i){var e;let s=this.events[t]||[];for(let o=0,n=s.length;o{var s;this.events[t]=(s=this.events[t])===null||s===void 0?void 0:s.filter(o=>i!==o)}}off(t,i){var e;this.events[t]=(e=this.events[t])===null||e===void 0?void 0:e.filter(s=>i!==s)}destroy(){this.events={}}},U=100/6,E={passive:!1},P=class{constructor(t,i={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=i,this.touchStart={x:0,y:0},this.lastDelta={x:0,y:0},this.window={width:0,height:0},this.emitter=new R,this.onTouchStart=e=>{let{clientX:s,clientY:o}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=s,this.touchStart.y=o,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})},this.onTouchMove=e=>{let{clientX:s,clientY:o}=e.targetTouches?e.targetTouches[0]:e,n=-(s-this.touchStart.x)*this.options.touchMultiplier,l=-(o-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=s,this.touchStart.y=o,this.lastDelta={x:n,y:l},this.emitter.emit("scroll",{deltaX:n,deltaY:l,event:e})},this.onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},this.onWheel=e=>{let{deltaX:s,deltaY:o,deltaMode:n}=e;s*=n===1?U:n===2?this.window.width:1,o*=n===1?U:n===2?this.window.height:1,s*=this.options.wheelMultiplier,o*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:e})},this.onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}},window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,E),this.element.addEventListener("touchstart",this.onTouchStart,E),this.element.addEventListener("touchmove",this.onTouchMove,E),this.element.addEventListener("touchend",this.onTouchEnd,E)}on(t,i){return this.emitter.on(t,i)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,E),this.element.removeEventListener("touchstart",this.onTouchStart,E),this.element.removeEventListener("touchmove",this.onTouchMove,E),this.element.removeEventListener("touchend",this.onTouchEnd,E)}},H=class{constructor({wrapper:t=window,content:i=document.documentElement,eventsTarget:e=t,smoothWheel:s=!0,syncTouch:o=!1,syncTouchLerp:n=.075,touchInertiaMultiplier:l=35,duration:h,easing:r=a=>Math.min(1,1.001-Math.pow(2,-10*a)),lerp:S=.1,infinite:m=!1,orientation:v="vertical",gestureOrientation:u="vertical",touchMultiplier:g=1,wheelMultiplier:T=1,autoResize:x=!0,prevent:L,virtualScroll:w,__experimental__naiveDimensions:_=!1}={}){this._isScrolling=!1,this._isStopped=!1,this._isLocked=!1,this._preventNextNativeScrollEvent=!1,this._resetVelocityTimeout=null,this.time=0,this.userData={},this.lastVelocity=0,this.velocity=0,this.direction=0,this.animate=new q,this.emitter=new R,this.onPointerDown=a=>{a.button===1&&this.reset()},this.onVirtualScroll=a=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(a)===!1)return;let{deltaX:f,deltaY:y,event:c}=a;if(this.emitter.emit("virtual-scroll",{deltaX:f,deltaY:y,event:c}),c.ctrlKey)return;let M=c.type.includes("touch"),b=c.type.includes("wheel");if(this.isTouching=c.type==="touchstart"||c.type==="touchmove",this.options.syncTouch&&M&&c.type==="touchstart"&&!this.isStopped&&!this.isLocked)return void this.reset();let X=f===0&&y===0,$=this.options.gestureOrientation==="vertical"&&y===0||this.options.gestureOrientation==="horizontal"&&f===0;if(X||$)return;let N=c.composedPath();N=N.slice(0,N.indexOf(this.rootElement));let W=this.options.prevent;if(N.find(p=>{var O,A,k,D,C;return p instanceof HTMLElement&&(typeof W=="function"&&(W==null?void 0:W(p))||((O=p.hasAttribute)===null||O===void 0?void 0:O.call(p,"data-lenis-prevent"))||M&&((A=p.hasAttribute)===null||A===void 0?void 0:A.call(p,"data-lenis-prevent-touch"))||b&&((k=p.hasAttribute)===null||k===void 0?void 0:k.call(p,"data-lenis-prevent-wheel"))||((D=p.classList)===null||D===void 0?void 0:D.contains("lenis"))&&!(!((C=p.classList)===null||C===void 0)&&C.contains("lenis-stopped")))}))return;if(this.isStopped||this.isLocked)return void c.preventDefault();if(!(this.options.syncTouch&&M||this.options.smoothWheel&&b))return this.isScrolling="native",void this.animate.stop();c.preventDefault();let z=y;this.options.gestureOrientation==="both"?z=Math.abs(y)>Math.abs(f)?y:f:this.options.gestureOrientation==="horizontal"&&(z=f);let F=M&&this.options.syncTouch,Y=M&&c.type==="touchend"&&Math.abs(z)>5;Y&&(z=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+z,Object.assign({programmatic:!1},F?{lerp:Y?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(this.isScrolling===!1||this.isScrolling==="native"){let a=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-a,this.direction=Math.sign(this.animatedScroll-a),this.isScrolling="native",this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},window.lenisVersion="1.1.13",t&&t!==document.documentElement&&t!==document.body||(t=window),this.options={wrapper:t,content:i,eventsTarget:e,smoothWheel:s,syncTouch:o,syncTouchLerp:n,touchInertiaMultiplier:l,duration:h,easing:r,lerp:S,infinite:m,gestureOrientation:u,orientation:v,touchMultiplier:g,wheelMultiplier:T,autoResize:x,prevent:L,virtualScroll:w,__experimental__naiveDimensions:_},this.dimensions=new V(t,i,{autoResize:x}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new P(e,{touchMultiplier:g,wheelMultiplier:T}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName()}on(t,i){return this.emitter.on(t,i)}off(t,i){return this.emitter.off(t,i)}setScroll(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(t){let i=t-(this.time||t);this.time=t,this.animate.advance(.001*i)}scrollTo(t,{offset:i=0,immediate:e=!1,lock:s=!1,duration:o=this.options.duration,easing:n=this.options.easing,lerp:l=this.options.lerp,onStart:h,onComplete:r,force:S=!1,programmatic:m=!0,userData:v}={}){if(!this.isStopped&&!this.isLocked||S){if(typeof t=="string"&&["top","left","start"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let u;if(typeof t=="string"?u=document.querySelector(t):t instanceof HTMLElement&&(t!=null&&t.nodeType)&&(u=t),u){if(this.options.wrapper!==window){let T=this.rootElement.getBoundingClientRect();i-=this.isHorizontal?T.left:T.top}let g=u.getBoundingClientRect();t=(this.isHorizontal?g.left:g.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=i,t=Math.round(t),this.options.infinite?m&&(this.targetScroll=this.animatedScroll=this.scroll):t=B(0,t,this.limit),t===this.targetScroll)return h==null||h(this),void(r==null||r(this));if(this.userData=v!=null?v:{},e)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),r==null||r(this),void(this.userData={});m||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:n,lerp:l,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",h==null||h(this)},onUpdate:(u,g)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=u-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=u,this.setScroll(this.scroll),m&&(this.targetScroll=u),g||this.emit(),g&&(this.reset(),this.emit(),r==null||r(this),this.userData={},this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?function(i,e){return(i%e+e)%e}(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function I(d,t){let i=new H({lerp:.1,wheelMultiplier:.8,gestureOrientation:"vertical"});return i.on("scroll",e=>{}),i.on("scroll",d.update),t.ticker.add(e=>{i.raf(e*1e3)}),t.ticker.lagSmoothing(),i}document.addEventListener("DOMContentLoaded",()=>{gsap.registerPlugin(ScrollTrigger),I(ScrollTrigger,gsap);function d(){return window.innerWidth<=767}let t="back.out",i="elastic.out(1, 0.5)",e="power2.out",s=document.getElementById("client-testimonials"),o=s.querySelector("[img-slide]"),n=[...s.querySelectorAll("[slideup]")],l=gsap.utils.toArray("[counter]"),h=[...document.querySelectorAll("[counter-box]")],r=document.querySelector("[drop--section]"),S=[...r.querySelectorAll("[drop-item]")],m=[...r.querySelectorAll("[drop-tp]")],v=[...r.querySelectorAll("[drop-md]")],u=[...r.querySelectorAll("[drop-btm]")];gsap.timeline({scrollTrigger:{trigger:s,start:"top 70%"}}).from(n,{yPercent:100,autoAlpha:0,stagger:.1,ease:t,duration:1},.25),L("logo--section","logo-slide",{}),L("faq-section","faq-slide",{});let T=w=>{let _=w.getAttribute("count-uptext");new Odometer({el:w,value:0,duration:250}).update(_)};l.length>0&&h.forEach((w,_)=>{let a=gsap.timeline({scrollTrigger:{trigger:w,start:"top 80%",scrub:!0,onEnter:function(){T(l[_])}},defaults:{duration:.5,ease:"power2.out"}})}),L("drop-text-sect","drop-slide",{}),gsap.timeline({scrollTrigger:{trigger:r,start:d()?"top 20%":"top 30%"}}).from(u,{yPercent:-100,autoAlpha:0,stagger:.1,ease:i,duration:.8}).from(v,{yPercent:-100,autoAlpha:0,stagger:.1,ease:i,duration:1},.5).from(m,{yPercent:-100,autoAlpha:0,stagger:.1,ease:i,duration:1.5},.1),L("press-section","press-slide",{}),L("banner-section","banner-slide",{});function L(w,_,a={}){let{start:f="top 70%",y=50,stagger:c=.15,autoAlpha:M=0,markers:b=!1}=a;gsap.timeline({scrollTrigger:{trigger:`[${w}]`,start:f,markers:b}}).from(`[${_}]`,{y,stagger:c,autoAlpha:M},0)}});})();