PageSourceSearch

https://www.phoenix-studios.co/_next/static/immutable/chunks/26lq_0vpziymv.js

js phoenix-studios.co collected 2026-10-08 02:04:46 UTC 34,091 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94960,t=>{"use strict";var e=t.i(95199),i=t.i(76885),n=t.i(72922),s=t.i(29078),r=t.i(98252),o=t.i(25542);let l="motion-curtain",a="motion-curtains-style",h="data-motion-curtains";function c(t){!function(){if("u"<typeof document||document.getElementById(a))return;let t=document.createElement("style");t.id=a,t.textContent=`.${l}{background:#0b0b0c;}[${h}]::backdrop{background:transparent;}`,document.head.insertBefore(t,document.head.firstChild)}();let e=document.createElement("div");return e.className="motion-curtains",e.setAttribute(h,""),e.setAttribute("aria-hidden","true"),Object.assign(e.style,t),e}class u{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return d(this.animations,"duration")}get iterationDuration(){return d(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function d(t,e){let i=0;for(let n=0;n<t.length;n++){let s=t[n][e];null!==s&&s>i&&(i=s)}return i}class p extends u{then(t,e){return this.finished.finally(t).then(()=>{})}}var m=t.i(35359),f=t.i(43137);let g=new WeakMap,v=(t,e="")=>`${t}:${e}`;var w=t.i(1148);function y(t,e){let i=window.getComputedStyle(t);return(0,w.isCSSVar)(e)?i.getPropertyValue(e):i[e]}var S=t.i(65216);let b=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius",...t.i(8865).cornerRadiusProps,"width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);var E=t.i(44888),T=t.i(33836);let $=function(t,e,i){return new p(function(t,e,i,n){if(null==t)return[];let s=(0,m.resolveElements)(t,n),r=s.length;(0,o.invariant)(!!r,"No valid elements provided.","no-valid-elements");let l=[];for(let t=0;t<r;t++){let n=s[t],o={...i};for(let i in"function"==typeof o.delay&&(o.delay=o.delay(t,r)),e){let t=e[i];Array.isArray(t)||(t=[t]);let s={...(0,f.getValueTransition)(o,i)};s.duration&&(s.duration=(0,T.secondsToMilliseconds)(s.duration)),s.delay&&(s.delay=(0,T.secondsToMilliseconds)(s.delay));let r=function(t){let e=g.get(t);return e||(e=new Map,g.set(t,e)),e}(n),a=v(i,s.pseudoElement||""),h=r.get(a);h&&h.stop(),l.push({map:r,key:a,unresolvedKeyframes:t,options:{...s,element:n,name:i,allowFlatten:!o.type&&!o.ease}})}}for(let t=0;t<l.length;t++){let{unresolvedKeyframes:e,options:i}=l[t],{element:n,name:s,pseudoElement:r}=i;r||null!==e[0]||(e[0]=y(n,s)),(0,S.fillWildcards)(e);for(let t=0;t<e.length;t++)"number"==typeof e[t]&&b.has(s)&&(e[t]=e[t]+"px");!r&&e.length<2&&e.unshift(y(n,s)),i.keyframes=e}let a=[];for(let t=0;t<l.length;t++){let{map:e,key:i,options:n}=l[t],s=new E.NativeAnimation(n);e.set(i,s),s.finished.finally(()=>e.delete(i)),a.push(s)}return a}(t,e,i,void 0))},L={duration:.5,ease:[.76,0,.24,1]};function M(t){return{...L,...t}}function R(t="transform"){let e=document.createElement("div");e.className=l;let i=e.style;
1return i.position="absolute",i.inset="0",i.width="100%",i.height="100%",i.willChange=t,e}let C={up:"down",down:"up",left:"right",right:"left"};function z(t){return"left"===t||"right"===t}function N(t,e){let i=Math.round(100*t)/100,n=Math.round(e);return 0===n?`${i}%`:0===i?`${n}px`:`calc(${i}% + ${n}px)`}function x(t,e,i){let n=100*e,s=-i*(1-e),r=i*e;switch(t){case"right":return`0% 0%, ${N(n,s)} 0%, ${N(n,r)} 100%, 0% 100%`;case"left":return`100% 0%, ${N(100-n,-s)} 0%, ${N(100-n,-r)} 100%, 100% 100%`;case"down":return`0% 0%, 100% 0%, 100% ${N(n,r)}, 0% ${N(n,s)}`;default:return`0% 100%, 100% 100%, 100% ${N(100-n,-r)}, 0% ${N(100-n,-s)}`}}function W(t,e,i){let n=100*e,s=-i*(1-e),r=i*e;switch(t){case"right":return`${N(n,s)} 0%, 100% 0%, 100% 100%, ${N(n,r)} 100%`;case"left":return`${N(100-n,-s)} 0%, 0% 0%, 0% 100%, ${N(100-n,-r)} 100%`;case"down":return`0% ${N(n,s)}, 100% ${N(n,r)}, 100% 100%, 0% 100%`;default:return`0% ${N(100-n,-s)}, 100% ${N(100-n,-r)}, 100% 0%, 0% 0%`}}let k=t=>`polygon(${t})`,A=t=>`path("${t}")`,O=t=>Math.round(10*t)/10;function P(t,e,i,n,s){let r=2*i;switch(t){case"down":{let t=-i+e*(s+i);return`M 0 0 L ${O(n)} 0 L ${O(n)} ${O(t)} Q ${O(n/2)} ${O(t+r)} 0 ${O(t)} Z`}case"up":{let t=(s+i)*(1-e);return`M 0 ${O(s)} L ${O(n)} ${O(s)} L ${O(n)} ${O(t)} Q ${O(n/2)} ${O(t-r)} 0 ${O(t)} Z`}case"right":{let t=-i+e*(n+i);return`M 0 0 L ${O(t)} 0 Q ${O(t+r)} ${O(s/2)} ${O(t)} ${O(s)} L 0 ${O(s)} Z`}default:{let t=(n+i)*(1-e);return`M ${O(n)} 0 L ${O(t)} 0 Q ${O(t-r)} ${O(s/2)} ${O(t)} ${O(s)} L ${O(n)} ${O(s)} Z`}}}function H(t,e,i,n,s){let r=2*i;switch(t){case"down":{let t=-i+e*(s+i);return`M 0 ${O(t)} Q ${O(n/2)} ${O(t+r)} ${O(n)} ${O(t)} L ${O(n)} ${O(s)} L 0 ${O(s)} Z`}case"up":{let t=(s+i)*(1-e);return`M 0 ${O(t)} Q ${O(n/2)} ${O(t-r)} ${O(n)} ${O(t)} L ${O(n)} 0 L 0 0 Z`}case"right":{let t=-i+e*(n+i);return`M ${O(t)} 0 Q ${O(t+r)} ${O(s/2)} ${O(t)} ${O(s)} L ${O(n)} ${O(s)} L ${O(n)} 0 Z`}default:{let t=(n+i)*(1-e);return`M ${O(t)} 0 Q ${O(t-r)} ${O(s/2)} ${O(t)} ${O(s)} L 0 ${O(s)} L 0 0 Z`}}}let I={duration:0,delay:0},_=Symbol(),B=new Map;function D(t,e){t.settled||(t.settled=!0,t.reject(e))}async function F(t,e){let i;try{let n,s,r=e.batch[0].inEffect,l=e.batch[0].coverTransition;if(i=t?((0,o.warning)("function"!=typeof getComputedStyle||"static"!==getComputedStyle(t).position,"curtains: the `scope` element should be positioned (e.g. position: relative) so the overlay covers it"),s=c({position:"absolute",inset:"0",overflow:"hidden",zIndex:"999999"}),t.appendChild(s),{element:s,remove(){s.remove()}}):function(){let t=c({position:"fixed",margin:"0",padding:"0",border:"0",inset:"0",width:"100vw",height:"100vh",maxWidth:"none",maxHeight:"none",background:"transparent",overflow:"hidden"});t.setAttribute("popover","manual"),document.body.appendChild(t);try{t.showPopover()}catch{t.style.zIndex="2147483647"}return{element:t,remove(){try{t.hidePopover()}catch{}t.remove()}}}(),t){let t=i.element.getBoundingClientRect();n={width:t.width,height:t.height}}let a=i.element;r.setup(a,n),await r.cover(l).finished;for(let t=0;t<e.batch.length;t++){let i=e.batch[t];try{await i.callback()}catch(t){D(i,t)}}e.phase="revealing";let h=e.batch.filter(t=>!t.settled);if(h.length){let t=h[h.length-1],e=t.outEffect;if(e!==r){let t=Array.from(a.children);for(let i of(e.setup(a,n),await e.cover(I).finished,t))i.remove()}for(let i of(await e.reveal(t.revealTransition).finished,h))i.settled||(i.settled=!0,i.resolve())}}catch(t){for(let i of e.batch)D(i,t)}finally{i?.remove()}e.pending.length?(e.batch=e.pending,e.pending=[],e.phase="covering",F(t,e)):B.delete(t??_)}function j(t){if(!t){let t;return{setup(e){(t=R("opacity")).style.opacity="0",e.appendChild(t)},cover:e=>$(t,{opacity:[0,1]},M(e)),reveal:e=>$(t,{opacity:[1,0]},M(e))}}return"function"==typeof t?t():t}function V(t){return Array.isArray(t)?[t[0],t[1]]:[t,t]}async function U(t,e={}){if("function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void await t();let[i,n]=function(t){let[e,i]=V(t),n=j(e),s=i===e?n:j(i);return[n,s]}(e.effect),[s,r]=V(e.transition);return new Promise((o,l)=>{!function(t,e){let i=t??_,n=B.get(i);if(!n){let n={phase:"covering",batch:[e],pending:[]};B.set(i,n),F(t,n);return}"covering"===n.phase?n.batch.push(e):n.pending.push(e)}(e.scope,{callback:t,inEffect:i,outEffect:n,coverTransition:s,revealTransition:r,resolve:o,reject:l,settled:!1})})}var X=t.i(28277);let Y="https://phoenix-studios-cms.gumlet.io/static/images/phoenixlogo.avif?format=png",Q={"/":"Phoenix Studios","/about":"About","/careers":"Careers","/contact":"Contact","/news":"Insights","/privacy-policy":"Privacy Policy","/
1projects-grid":"Projects","/services":"Services","/terms-and-conditions":"Terms & Conditions","/work":"Work"},Z=(0,i.createContext)(null);t.s(["default",0,function({children:t}){let l=(0,n.useRouter)(),a=(0,s.useLenis)(),[h,c]=function(){let[t,e]=(0,i.useTransition)(),[,n]=(0,i.useReducer)(t=>t+1,0),s=(0,i.useRef)(null),o=(0,i.useRef)(t),l=(0,i.useRef)(!0);return(0,i.useEffect)(()=>(l.current=!0,()=>{l.current=!1,s.current?.resolve(),s.current=null}),[]),(0,i.useEffect)(()=>{let e=o.current&&!t;if(o.current=t,e&&s.current){let{resolve:t,reject:e,beforeReveal:i}=s.current;s.current=null,r.frame.postRender(()=>{try{i?.(),t()}catch(t){e(t)}})}},[t]),[(0,i.useCallback)((t,i,r)=>U(()=>new Promise((i,o)=>{l.current?(s.current={resolve:i,reject:o,beforeReveal:r},e(async()=>{try{await t()}catch(t){s.current=null,o(t);return}n()})):i()}),i).finally(()=>{s.current=null}),[e]),t]}(),u=(0,i.useRef)(!1),[d,p]=(0,i.useState)(!1),[m,f]=(0,i.useState)("");(0,i.useEffect)(()=>{new Image().src=Y},[]);let g=(0,i.useCallback)(async({href:t,replace:e=!1,scroll:i=!0,title:n})=>{if(!u.current){u.current=!0,p(!0),f(`Navigating to ${n}`);try{let s;await h(()=>{let i={scroll:!1,transitionTypes:["motion-curtain"]};e?l.replace(t,i):l.push(t,i)},{effect:{setup(t,e){s.setup(t,e);let i=t.lastElementChild;if(!(i instanceof HTMLElement))return;let r=document.createElement("div");r.setAttribute("aria-hidden","true"),Object.assign(r.style,{alignItems:"center",display:"flex",flexDirection:"column",gap:"clamp(1.5rem, 3vh, 2.25rem)",inset:"0",justifyContent:"center",padding:"clamp(1.5rem, 6vw, 6rem)",pointerEvents:"none",position:"absolute",textAlign:"center"});let o=document.createElement("img");o.src=Y,o.alt="",o.decoding="async",Object.assign(o.style,{display:"block",height:"auto",objectFit:"contain",width:"clamp(8rem, 12vw, 10.5rem)"});let l=document.createElement("h2");l.textContent=n,l.setAttribute("aria-hidden","true"),Object.assign(l.style,{color:"#ffffff",fontFamily:"var(--font-lazzer), sans-serif",fontSize:n.length>64?"clamp(1.75rem, 4.5vw, 4.75rem)":n.length>38?"clamp(2rem, 5.5vw, 6rem)":n.length>22?"clamp(2.5rem, 7vw, 7.5rem)":"clamp(3rem, 9vw, 9rem)",fontWeight:"500",letterSpacing:"-0.045em",lineHeight:"0.94",margin:"0",maxWidth:"min(90vw, 75rem)",overflowWrap:"anywhere",textTransform:"uppercase"}),r.append(o,l),i.appendChild(r)},cover:(s=function(t={}){let e,i,{direction:n,directionMode:s,angle:r=0}=t,l=Math.max(0,t.bow??0),{cover:a,reveal:h}=function(t="right",e="normal"){return Array.isArray(t)?{cover:t[0],reveal:t[1]}:{cover:t,reveal:"reverse"===e?C[t]:t}}(n,s);(0,o.warning)(z(a)===z(h),"curtains: clipWipe can't reveal on a different axis than it covers; the reveal direction is ignored"),(0,o.warning)(!(l>0&&0!==r),"curtains: clipWipe ignores `angle` when `bow` is set");let c=h===a;return{setup(t,n){i=R("clip-path");let{width:s,height:o}=function(t,e){if(e)return e;let i=t.getBoundingClientRect();return{width:i.width||window.innerWidth,height:i.height||window.innerHeight}}(t,n);if(l>0){let t=l*(z(a)?s:o),i=A(P(a,0,t,s,o)),n=A(P(a,1,t,s,o));e={coverFrom:i,coverTo:n,revealFrom:c?A(H(a,0,t,s,o)):n,revealTo:c?A(H(a,1,t,s,o)):i}}else{let t=Math.abs(Math.tan(r*Math.PI/180)*(z(a)?o:s)),i=k(x(a,0,t)),n=k(x(a,1,t));e={coverFrom:i,coverTo:n,revealFrom:c?k(W(a,0,t)):n,revealTo:c?k(W(a,1,t)):i}}i.style.clipPath=e.coverFrom,t.appendChild(i)},cover:t=>$(i,{clipPath:[e.coverFrom,e.coverTo]},M(t)),reveal:t=>$(i,{clipPath:[e.revealFrom,e.revealTo]},M(t))}}({direction:"left",angle:9})).cover,reveal:s.reveal},transition:[{duration:.4,ease:X.MOTION_EASE},{duration:.4,ease:X.MOTION_EASE}]},()=>{if(!i)return;let t=null;if(window.location.hash)try{t=document.getElementById(decodeURIComponent(window.location.hash.slice(1)))}catch{}if(a){a.resize();let e=t?-parseFloat(getComputedStyle(t).scrollMarginTop||"0"):0;a.scrollTo(t??0,{immediate:!0,force:!0,offset:e})}else t?t.scrollIntoView({behavior:"instant",block:"start"}):window.scrollTo({top:0,left:0,behavior:"instant"})})}finally{u.current=!1,p(!1)}}},[l,h,a]),v=(0,i.useMemo)(()=>({isPending:c||d,navigate:g}),[c,d,g]);return(0,e.jsxs)(Z.Provider,{value:v,children:[t,(0,e.jsx)("p",{className:"sr-only","aria-atomic":"true","aria-live":"polite",children:m})]})},"getCurtainTitle",0,function(t,e){if(e?.trim())return e.trim();try{let e=new URL(t,"https://phoenix.local").pathname.replace(/\/$/,"")||"/";if(Q[e])return Q[e];if(e.startsWith("/work/"))return"Work";if(e.startsWith("/news/"))return"Insights";
1let i=e.split("/").filter(Boolean).at(-1);if(!i)return"Phoenix Studios";return i.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}catch{return"Phoenix Studios"}},"useCurtainNavigation",0,function(){let t=(0,i.useContext)(Z);if(!t)throw Error("useCurtainNavigation must be used within CurtainNavigationProvider");return t}],94960)},29078,t=>{"use strict";var e="1.3.26";function i(t,e,i){return Math.max(t,Math.min(e,i))}var n=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let n=i(0,this.currentTime/this.duration,1),s=(e=n>=1)?1:this.easing(n);this.value=this.from+(this.to-this.from)*s}else if(this.lerp){var n,s,r,o;this.value=(n=this.value,s=this.to,r=60*this.lerp,(1-(o=1-Math.exp(-r*t)))*n+o*s),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:n,easing:s,onStart:r,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=o}},s=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:i=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...n){clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,n)},e)}}(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(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(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};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)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},r=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,n=i.length;t<n;t++)i[t]?.(...e)}on(t,e){return this.events[t]?this.events[t].push(e):this.events[t]=[e],()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}};let o=100/6,l={passive:!1};function a(t,e){return 1===t?o:2===t?e:1}var h=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new r;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onTouchMove,l),this.element.addEventListener("touchend",this.onTouchEnd,l)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onTouchMove,l),this.element.removeEventListener("touchend",this.onTouchEnd,l)}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,s=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:n,y:s},this.emitter.emit("scroll",{deltaX:n,deltaY:s,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:n}=t,s=a(n,this.window.width),r=a(n,this.window.height);e*=s,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let c=t=>Math.min(1,1.001-2**(-10*t));var u=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;reducedMotionMediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)");
1isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new n;emitter=new r;dimensions;virtualScroll;constructor({wrapper:t=window,content:i=document.documentElement,eventsTarget:n=t,smoothWheel:r=!0,syncTouch:o=!1,syncTouchLerp:l=.075,touchInertiaExponent:a=1.7,duration:u,easing:d,lerp:p=.1,infinite:m=!1,orientation:f="vertical",gestureOrientation:g="horizontal"===f?"both":"vertical",touchMultiplier:v=1,wheelMultiplier:w=1,autoResize:y=!0,prevent:S,virtualScroll:b,overscroll:E=!0,autoRaf:T=!1,anchors:$=!1,autoToggle:L=!1,allowNestedScroll:M=!1,__experimental__naiveDimensions:R=!1,naiveDimensions:C=R,stopInertiaOnNavigate:z=!1,respectReducedMotion:N=!0}={}){window.lenisVersion=e,window.lenis||(window.lenis={}),window.lenis.version=e,"horizontal"===f&&(window.lenis.horizontal=!0),!0===o&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),t&&t!==document.documentElement||(t=window),"number"==typeof u&&"function"!=typeof d?d=c:"function"==typeof d&&"number"!=typeof u&&(u=1),this.options={wrapper:t,content:i,eventsTarget:n,smoothWheel:r,syncTouch:o,syncTouchLerp:l,touchInertiaExponent:a,duration:u,easing:d,lerp:p,infinite:m,gestureOrientation:g,orientation:f,touchMultiplier:v,wheelMultiplier:w,autoResize:y,prevent:S,virtualScroll:b,overscroll:E,autoRaf:T,anchors:$,autoToggle:L,allowNestedScroll:M,naiveDimensions:C,stopInertiaOnNavigate:z,respectReducedMotion:N},this.dimensions=new s(t,i,{autoResize:y}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new h(n,{touchMultiplier:v,wheelMultiplier:w}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){let t=e.find(t=>i.host===t.host&&i.pathname===t.pathname&&t.hash);if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=decodeURIComponent(t.hash);this.scrollTo(i,e);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname))return void this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};isTouchOnSelectionHandle(t){let e=window.getSelection();if(!e||e.isCollapsed||0===e.rangeCount)return!1;let i=t.targetTouches[0]??t.changedTouches[0];if(!i)return!1;let n=e.getRangeAt(0).getClientRects();if(0===n.length)return!1;let s=n[0],r=n[n.length-1],o=40>=Math.hypot(i.clientX-s.left,i.clientY-s.top),l=40>=Math.hypot(i.clientX-r.right,i.clientY-r.bottom);return o||l}onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let s=n.type.includes("touch"),r=n.type.includes("wheel");if(s&&this.isIos&&("touchstart"===n.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(n)),this._isDraggingSelection)){"touchend"===n.type&&(this._isDraggingSelection=!1);return}this.isTouching="touchstart"===n.type||"touchmove"===n.type;let o=0===e&&0===i;if(this.options.syncTouch&&s&&"touchstart"===n.type&&o&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(o||l)return;let a=n.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let h=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(a.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===c&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===c&&t.hasAttribute?.("data-lenis-prevent-horizontal")||s&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:i}
1))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let u=i;"both"===this.options.gestureOrientation?u=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(u=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let d=s&&this.options.syncTouch,p=s&&"touchend"===n.type;p&&(u=Math.sign(u)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+u,{programmatic:!1,...d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:n=!1,lock:s=!1,programmatic:r=!0,lerp:o=r?this.options.lerp:void 0,duration:l=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:h,onComplete:u,force:d=!1,userData:p}={}){if(this.prefersReducedMotion&&(r?n=!0:(o=1,l=void 0,a=void 0)),(this.isStopped||this.isLocked)&&!d)return;let m=t,f=e;if("string"==typeof m&&["top","left","start","#"].includes(m))m=0;else if("string"==typeof m&&["bottom","right","end"].includes(m))m=this.limit;else{let t=null;if("string"==typeof m?(t=m.startsWith("#")?document.getElementById(m.slice(1)):document.querySelector(m))||("#top"===m?m=0:console.warn("Lenis: Target not found",m)):m instanceof HTMLElement&&m?.nodeType&&(t=m),t){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();f-=this.isHorizontal?t.left:t.top}let e=t.getBoundingClientRect(),i=getComputedStyle(t),n=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),s=getComputedStyle(this.rootElement),r=this.isHorizontal?Number.parseFloat(s.scrollPaddingLeft):Number.parseFloat(s.scrollPaddingTop);m=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(n)?0:n)-(Number.isNaN(r)?0:r)}}if("number"==typeof m){if(m+=f,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;let t=m-this.animatedScroll;t>this.limit/2?m-=this.limit:t<-this.limit/2&&(m+=this.limit)}}else m=i(0,m,this.limit);if(m===this.targetScroll){h?.(this),u?.(this);return}if(this.userData=p??{},n){this.animatedScroll=this.targetScroll=m,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit
1(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=m),"number"==typeof l&&"function"!=typeof a?a=c:"function"==typeof a&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,m,{duration:l,easing:a,lerp:o,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",h?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),r&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:i}){let n,s,r,o,l,a,h,c,u,d,p,m,f,g,v,w,y=Date.now();t._lenis||(t._lenis={});let S=t._lenis;if(y-(S.time??0)>2e3){S.time=Date.now();let e=window.getComputedStyle(t);if(S.computedStyle=e,n=["auto","overlay","scroll"].includes(e.overflowX),s=["auto","overlay","scroll"].includes(e.overflowY),l=["auto"].includes(e.overscrollBehaviorX),a=["auto"].includes(e.overscrollBehaviorY),S.hasOverflowX=n,S.hasOverflowY=s,!(n||s))return!1;h=t.scrollWidth,c=t.scrollHeight,u=t.clientWidth,d=t.clientHeight,r=h>u,o=c>d,S.isScrollableX=r,S.isScrollableY=o,S.scrollWidth=h,S.scrollHeight=c,S.clientWidth=u,S.clientHeight=d,S.hasOverscrollBehaviorX=l,S.hasOverscrollBehaviorY=a}else r=S.isScrollableX,o=S.isScrollableY,n=S.hasOverflowX,s=S.hasOverflowY,h=S.scrollWidth,c=S.scrollHeight,u=S.clientWidth,d=S.clientHeight,l=S.hasOverscrollBehaviorX,a=S.hasOverscrollBehaviorY;if(!(n&&r||s&&o))return!1;let b=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===b)p=Math.round(t.scrollLeft),m=h-u,f=e,g=n,v=r,w=l;else{if("vertical"!==b)return!1;p=Math.round(t.scrollTop),m=c-d,f=i,g=s,v=o,w=a}return!w&&(p>=m||p<=0)||(f>0?p<m:p>0)&&g&&v}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.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"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?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"smooth"===this.isScrolling}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(let t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}},d=t.i(76885),p=t.i(95199);let m=(0,d.createContext)(null),f=new class{listeners=[];constructor(t){this.state=t}set(t){for(let e of(this.state=t,this.listeners))e(this.state)}subscribe(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(e=>e!==t)}}get(){return this.state}}(null),g=(0,d.forwardRef)(({children:t,root:e=!1,options:i={},autoRaf:n=!0,className:s="",...r},o)=>{let l=(0,d.useRef)(null),a=(0,d.useRef)(null),[h,c]=(0,d.useState)(void 0);(0,d.useImperativeHandle)(o,()=>({wrapper:l.current,content:a.current,lenis:h}),[h]),(0,d.useEffect)(()=>{let t=new u({...i,...l.current&&a.current&&{wrapper:l.current,content:a.current},autoRaf:i?.autoRaf??n});return c(t),()=>{t.destroy(),c(void 0)}},[n,JSON.stringify({...i,wrapper:null,content:null})]);let g=(0,d.useRef)([]),v=(0,d.useCallback)((t,e)=>{g.current.push({callback:t,priority:e}),g.current.sort((t,e)=>t.priority-e.priority)},[]),w=(0,d.useCallback)(t=>{g.current=g.current.filter(e=>e.callback!==t)},[]);return((0,d.useEffect)(()=>
1{if(e&&h)return f.set({lenis:h,addCallback:v,removeCallback:w}),()=>f.set(null)},[e,h,v,w]),(0,d.useEffect)(()=>{if(!h)return;let t=t=>{for(let{callback:e}of g.current)e(t)};return h.on("scroll",t),()=>{h.off("scroll",t)}},[h]),t)?(0,p.jsx)(m.Provider,{value:{lenis:h,addCallback:v,removeCallback:w},children:e&&"asChild"!==e?t:(0,p.jsx)("div",{ref:l,className:`${s} ${h?.className??""}`.trim(),...r,children:(0,p.jsx)("div",{ref:a,children:t})})}):null}),v={};t.s(["ReactLenis",0,g,"useLenis",0,function(t,e=[],i=0){let n=(0,d.useContext)(m),s=function(t){let[e,i]=(0,d.useState)(t.get());return(0,d.useEffect)(()=>t.subscribe(t=>i(t)),[t]),e}(f),{lenis:r,addCallback:o,removeCallback:l}=n??s??v;return(0,d.useEffect)(()=>{if(t&&o&&l&&r)return o(t,i),t(r),()=>{l(t)}},[r,o,l,i,...e,t]),r}],29078)},72922,(t,e,i)=>{e.exports=t.r(56951)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.