1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89768,t=>{"use strict";var e=t.i(43476),i=t.i(71645),r=t.i(79145),s=t.i(47734),o=t.i(90160),n=t.i(94804),l=i,a=t.i(9344);class h extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:i,anchorX:r}){let s=(0,l.useId)(),o=(0,l.useRef)(null),n=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,l.useContext)(a.MotionConfigContext);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:l,left:a,right:h}=n.current;if(i||!o.current||!t||!e)return;let c="left"===r?`left: ${a}`:`right: ${h}`;o.current.dataset.motionPopId=s;let p=document.createElement("style");return u&&(p.nonce=u),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${e}px !important; 6 ${c}px !important; 7 top: ${l}px !important; 8 } 9 `),()=>{document.head.removeChild(p)}},[i]),(0,e.jsx)(h,{isPresent:i,childRef:o,sizeRef:n,children:l.cloneElement(t,{ref:o})})}let u=({children:t,initial:r,isPresent:o,onExitComplete:l,custom:a,presenceAffectsLayout:h,mode:u,anchorX:d})=>{let f=(0,s.useConstant)(p),m=(0,i.useId)(),v=(0,i.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),g=(0,i.useMemo)(()=>({id:m,initial:r,isPresent:o,custom:a,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))}),h?[Math.random(),v]:[o,v]);return(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[o]),i.useEffect(()=>{o||f.size||!l||l()},[o]),"popLayout"===u&&(t=(0,e.jsx)(c,{isPresent:o,anchorX:d,children:t})),(0,e.jsx)(n.PresenceContext.Provider,{value:g,children:t})};function p(){return new Map}var d=t.i(92296);let f=t=>t.key||"";function m(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:n,initial:l=!0,onExitComplete:a,presenceAffectsLayout:h=!0,mode:c="sync",propagate:p=!1,anchorX:v="left"})=>{let[g,S]=(0,d.usePresence)(p),w=(0,i.useMemo)(()=>m(t),[t]),y=p&&!g?[]:w.map(f),E=(0,i.useRef)(!0),_=(0,i.useRef)(w),T=(0,s.useConstant)(()=>new Map),[b,L]=(0,i.useState)(w),[R,x]=(0,i.useState)(w);(0,o.useIsomorphicLayoutEffect)(()=>{E.current=!1,_.current=w;for(let t=0;t<R.length;t++){let e=f(R[t]);y.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}},[R,y.length,y.join("-")]);let C=[];if(w!==b){let t=[...w];for(let e=0;e<R.length;e++){let i=R[e],r=f(i);y.includes(r)||(t.splice(e,0,i),C.push(i))}return"wait"===c&&C.length&&(t=C),x(m(t)),L(w),null}let{forceRender:O}=(0,i.useContext)(r.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:R.map(t=>{let i=f(t),r=(!p||!!g)&&(w===R||y.includes(i));return(0,e.jsx)(u,{isPresent:r,initial:(!E.current||!!l)&&void 0,custom:n,presenceAffectsLayout:h,mode:c,onExitComplete:r?void 0:()=>{if(!T.has(i))return;T.set(i,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(null==O||O(),x(_.current),p&&(null==S||S()),a&&a())},anchorX:v,children:t},i)})})}],89768)},22016,(t,e,i)=>{"use strict";t.i(47167),Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return g},useLinkStatus:function(){return w}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let o=t.r(90809),n=t.r(43476),l=o._(t.r(71645)),a=t.r(95057),h=t.r(8372),c=t.r(18581),u=t.r(18967),p=t.r(5550),d=t.r(88540),f=t.r(91949),m=t.r(73668),v=t.r(9396);function g(e){var i;let r,s,o,[g,w]=(0,l.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:E,as:_,children:T,prefetch:b=null,passHref:L,replace:R,shallow:x,scroll:C,onClick:O,onMouseEnter:P,onTouchStart:N,legacyBehavior:M=!1,onNavigate:z,transitionTypes:A,ref:U,unstable_dynamicOnHover:k,...j}=e;r=T,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,n.jsx)("a",{children:r}));let I=l.default.useContext(h.AppRouterContext),$=!1!==b,W=!1===b?"none":!0===b?"full":"auto",H="none"!==W?"auto"===W?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,D="string"==typeof(i=_||E)?i:(0,a.formatUrl)(i);if(M){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
9` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=l.default.Children.only(r)}let B=M?s&&"object"==typeof s&&s.ref:U,F,V=l.default.useCallback(t=>(null!==I&&(y.current=(0,f.mountLinkInstance)(t,D,I,H,$,w,F)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(t)}),[$,D,I,H,w,F]),K={ref:(0,c.useMergedRef)(V,B),onClick(e){M||"function"!=typeof O||O(e),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e),!I||e.defaultPrevented||function(e,i,r,s,o,n,a,h="none"){if("u">typeof window){let c,{nodeName:u}=e.currentTarget;if("A"===u.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),n){let t=!1;if(n({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:p}=t.r(99781);l.default.startTransition(()=>{p(i,s?"replace":"push",!1===o?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,r.current,a,h)})}}(e,D,y,R,C,z,A,W)},onMouseEnter(t){M||"function"!=typeof P||P(t),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(t),I&&$&&(0,f.onNavigationIntent)(t.currentTarget,!0===k)},onTouchStart:function(t){M||"function"!=typeof N||N(t),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(t),I&&$&&(0,f.onNavigationIntent)(t.currentTarget,!0===k)}};return(0,u.isAbsoluteUrl)(D)?K.href=D:M&&!L&&("a"!==s.type||"href"in s.props)||(K.href=(0,p.addBasePath)(D)),o=M?l.default.cloneElement(s,K):(0,n.jsx)("a",{...j,...K,children:r}),(0,n.jsx)(S.Provider,{value:g,children:o})}let S=(0,l.createContext)(f.IDLE_LINK_STATUS),w=()=>(0,l.useContext)(S);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=t.r(18967),s=t.r(52817);function o(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,s.hasBasePath)(i.pathname)}catch(t){return!1}}},98183,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return a},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return l}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});function o(t){let e={};for(let[i,r]of t.entries()){let t=e[i];void 0===t?e[i]=r:Array.isArray(t)?t.push(r):e[i]=[t,r]}return e}function n(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function l(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.append(i,n(t));else e.set(i,n(r));return e}function a(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,r]of i.entries())t.append(e,r)}return t}},95057,(t,e,i)=>{"use strict";t.i(47167),Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return l},formatWithValidation:function(){return h},urlObjectKeys:function(){return a}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let o=t.r(90809)._(t.r(98183)),n=/https?|ftp|gopher|file/;function l(t){let{auth:e,hostname:i}=t,r=t.protocol||"",s=t.pathname||"",l=t.hash||"",a=t.query||"",h=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?h=e+t.host:i&&(h=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(h+=":"+t.port)),a&&"object"==typeof a&&(a=String(o.urlQueryToSearchParams(a)));let c=t.search||a&&`?${a}`||"";return r&&!r.endsWith(":")&&(r+=":"),t.slashes||(!r||n.test(r))&&!1!==h?(h="//"+(h||""),s&&"/"!==s[0]&&(s="/"+s)):h||(h=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${h}${s}${c}${l}`}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(t){return l(t)}},18967,(t,e,i)=>{"use strict";t.i(47167),Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return y},NormalizeError:function(){return S},PageNotFoundError:function(){return w},SP:function(){return m},ST:function(){return v},WEB_VITALS:function(){return o},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return h},getURL:function(){return c},isAbsoluteUrl:function(){return a},isResSent:function(){return p},loadGetInitialProps:function(){return f}
9,normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return _}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,i=!1;return(...r)=>(i||(i=!0,e=t(...r)),e)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=t=>{let e=t.charCodeAt(0);return!!(e>=65&&e<=90||e>=97&&e<=122)&&l.test(t)};function h(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function c(){let{href:t}=window.location,e=h();return t.substring(e.length)}function u(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function p(t){return t.finished||t.headersSent}function d(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function f(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await f(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(i&&p(i))return r;if(!r)throw Object.defineProperty(Error(`"${u(t)}
9.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,v=m&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class g extends Error{}class S extends Error{}class w extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class y extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(t){return JSON.stringify({message:t.message,stack:t.stack})}},99255,t=>{t.q("/_next/static/media/LoaderSearchButton.13s6doo3-r-st.png")},59937,t=>{t.v({full:"styles-module-scss-module___Vo9eG__full",header:"styles-module-scss-module___Vo9eG__header",icon:"styles-module-scss-module___Vo9eG__icon",primaryButton:"styles-module-scss-module___Vo9eG__primaryButton"})},38185,38974,t=>{"use strict";var e=t.i(43476),i=t.i(71645),r=t.i(85149);let s=[...r.ATS_HOSTS_ALL,r.MARKETING_HOST,`www.${r.MARKETING_HOST}`],o=new Set(["javascript:","data:","vbscript:"]);function n(t){let e=function(){let t={};try{let e=document.cookie.split(";");["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(i=>{let r=e.find(t=>t.trim().startsWith(`${i}=`));if(r){let e=r.split("=")[1]?.trim();e&&(t[i]=decodeURIComponent(e))}})}catch(t){console.error("Error retrieving UTM parameters from cookies:",t)}return t}();if(0===Object.keys(e).length)return t;try{let i=new URL(t);return Object.entries(e).forEach(([t,e])=>{i.searchParams.append(t,e)}),i.toString()}catch(e){return console.error("Error appending UTM parameters to URL:",e),t}}function l(t){let e;if(!t)return t;let i=t.replace(/[\x00-\x20]/g,"").toLowerCase();if(/^[\\/]{2}/.test(i))return console.warn("Blocked protocol-relative URL:",t),"";for(let e of o)if(i.startsWith(e))return console.warn("Blocked unsafe URL scheme (prefix):",t),"";try{e=new URL(t)}catch{return t}if(o.has(e.protocol))return console.warn("Blocked unsafe URL scheme (parsed):",t,e.protocol),"";if(!s.includes(e.host))return t;try{let e=new URL(t);if(r.ATS_HOSTS_ALL.includes(e.host)&&e.host!==r.ATS_HOST)return e.host=r.ATS_HOST,e.toString();return t}catch(e){return console.error("Error parsing URL for ATS host rewrite:",e),t}}function a(t){let e=l(t);return e?n(e):e}t.s(["appendUtmParams",0,n,"prepareJobUrl",0,a,"sanitizeJobUrl",0,l],38974);var h=t.i(59937);t.s(["default",0,({text:t,url:r,icon:s,full:o,onClick:n,style:c,isHeader:u,isTargetBlank:p})=>{let d=r&&(r.startsWith("http://")||r.startsWith("https://")||p),[f,m]=(0,i.useState)(()=>r?l(r):r);return(0,i.useEffect)(()=>{m(r?a(r):r)},[r]),f?(0,e.jsxs)("a",{href:f,className:o?`${h.default.primaryButton} ${h.default.full}`:`${h.default.primaryButton} ${u?h.default.header:""}`,target:d?"_blank":"_self",rel:d?"noopener noreferrer":void 0,style:c,children:[s&&(0,e.jsx)("span",{className:"icon",children:s}),t]}):(0,e.jsxs)("button",{onClick:n,className:o?`${h.default.primaryButton} ${h.default.full}`:h.default.primaryButton,style:c,children:[s&&(0,e.jsx)("span",{className:"icon",children:s}),t]})}],38185)},99949,t=>{"use strict";var e=t.i(71645);t.s(["default",0,t=>{let[i,r]=(0,e.useState)(null);return(0,e.useEffect)(()=>{let e=window.matchMedia(t);r(e.matches);let i=t=>r(t.matches);return e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[t]),i}])},85149,t=>{"use strict";t.i(47167);let e="jobs.netflix.com",i=`https://${e}`,r="explore.jobs.netflix.net",s=`https://${r}/careers`,o=[r,"sandbox.recruiting.netflix.net"];t.s(["ATS_HOST",0,r,"ATS_HOSTS_ALL",0,o,"CAREERS_ROUTE",0,s,"CULTURE_ROUTE",0,"/culture","INCLUSION_ROUTE",0,"/inclusion","JOB_SEARCH_URL",0,s,"LOCATIONS_ROUTE",0,"/locations","MARKETING_HOST",0,e,"PROD_URL",0,i,"WORK_LIFE_PHILOSOPHY_ROUTE",0,"/work-life-philosophy"])},63507,t=>{"use strict";var e=t.i(43476);function i(t,e,i){return Math.max(t,Math.min(e,i))}var r=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 r=i(0,this.currentTime/this.duration,1),s=(e=r>=1)?1:this.easing(r);this.value=this.from+(this.to-this.from)*s}else if(this.lerp){var r,s,o,n;this.value=(r=this.value,s=this.to,o=60*this.lerp,(1-(n=1-Math.exp(-o*t)))*r+n*s),Math.round(this.value)===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}
vendor: 5,436 bytes, line 9
9fromTo(t,e,{lerp:i,duration:r,easing:s,onStart:o,onUpdate:n}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=r,this.easing=s,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=n}},s=class{constructor(t,e,{autoResize:i=!0,debounce:r=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...r){let s=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(s,r)},e)}}(this.resize,r),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()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}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}}},o=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,r=i.length;t<r;t++)i[t]?.(...e)}on(t,e){return 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={}}},n=100/6,l={passive:!1},a=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),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)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new o;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),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,r=-(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:r,y:s},this.emitter.emit("scroll",{deltaX:r,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:r}=t,s=1===r?n:2===r?this.window.width:1,o=1===r?n:2===r?this.window.height:1;e*=s,i*=o,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}}},h=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new o;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:r=!0,syncTouch:o=!1,syncTouchLerp:n=.075,touchInertiaMultiplier:l=35,duration:h,easing:c=t=>Math.min(1,1.001-Math.pow(2,-10*t)),lerp:u=.1,infinite:p=!1,orientation:d="vertical",gestureOrientation:f="vertical",touchMultiplier:m=1,wheelMultiplier:v=1,autoResize:g=!0,prevent:S,virtualScroll:w,overscroll:y=!0,autoRaf:E=!1,anchors:_=!1,__experimental__naiveDimensions:T=!1}={}){window.lenisVersion="1.2.3",t&&t!==document.documentElement||(t=window),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:r,syncTouch:o,syncTouchLerp:n,touchInertiaMultiplier:l,duration:h,easing:c,lerp:u,infinite:p,gestureOrientation:f,orientation:d,touchMultiplier:m,wheelMultiplier:v,autoResize:g,prevent:S,virtualScroll:w,overscroll:y,autoRaf:E,anchors:_,__experimental__naiveDimensions:T},this.dimensions=new s(t,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
9w a(i,{touchMultiplier:m,wheelMultiplier:v}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),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}}))};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().find(t=>t instanceof HTMLAnchorElement&&(t.getAttribute("href")?.startsWith("#")||t.getAttribute("href")?.startsWith("/#")||t.getAttribute("href")?.startsWith("./#")));if(e){let t=e.getAttribute("href");if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(`#${t.split("#")[1]}`,e)}}};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:r}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let s=r.type.includes("touch"),o=r.type.includes("wheel");this.isTouching="touchstart"===r.type||"touchmove"===r.type;let n=0===e&&0===i;if(this.options.syncTouch&&s&&"touchstart"===r.type&&n&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(n||l)return;let a=r.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let h=this.options.prevent;if(a.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||s&&t.hasAttribute?.("data-lenis-prevent-touch")||o&&t.hasAttribute?.("data-lenis-prevent-wheel"))))return;if(this.isStopped||this.isLocked)return void r.preventDefault();if(!(this.options.syncTouch&&s||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),r.lenisStopPropagation=!0;return}let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(r.lenisStopPropagation=!0),r.preventDefault();let u=s&&this.options.syncTouch,p=s&&"touchend"===r.type&&Math.abs(c)>5;p&&(c=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+c,{programmatic:!1,...u?{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
9(),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(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}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:r=!1,lock:s=!1,duration:o=this.options.duration,easing:n=this.options.easing,lerp:l=this.options.lerp,onStart:a,onComplete:h,force:c=!1,programmatic:u=!0,userData:p}={}){if(!this.isStopped&&!this.isLocked||c){if("string"==typeof t&&["top","left","start"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?i=document.querySelector(t):t instanceof HTMLElement&&t?.nodeType&&(i=t),i){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let r=i.getBoundingClientRect();t=(this.isHorizontal?r.left:r.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite?u&&(this.targetScroll=this.animatedScroll=this.scroll):t=i(0,t,this.limit),t===this.targetScroll){a?.(this),h?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}u||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:n,lerp:l,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",a?.(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),u&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),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"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 className(){let t="lenis";return 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.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},c=t.i(34105),u=t.i(71645),p=t.i(9344),d=t.i(90160);let f=(0,u.createContext)(void 0);t.s(["LenisProvider",0,({isEnabled:t=!0,children:i})=>{let[r,s]=(0,u.useState)(),o=(0,u.useRef)(new Set);(0,d.useIsomorphicLayoutEffect)(function(){if(t){let t=new h({autoRaf:!1});return t.on("scroll",t=>{for(let e of o.current)e(t)}),s(t),()=>{t.destroy(),s(void 0)}}},[t]),function(t){let e=(0,u.useRef)(0),{isStatic:i}=(0,u.useContext)(p.MotionConfigContext);(0,u.useEffect)(()=>
9{if(i)return;let r=({timestamp:i,delta:r})=>{e.current||(e.current=i),t(i-e.current,r)};return c.frame.update(r,!0),()=>(0,c.cancelFrame)(r)},[t])}((0,u.useCallback)(t=>{r&&r.raf(t)},[r]));let n=(0,u.useMemo)(()=>({lenis:r,addCallback:t=>{o.current.add(t)},removeCallback:t=>{o.current.delete(t)}}),[r]);return(0,e.jsx)(f.Provider,{value:n,children:i})},"useLenis",0,(t,e={})=>{let i=(0,u.useContext)(f);if(!i)throw Error("'useLenis' must be used in a component with a parent 'LenisProvider'.");let{lenis:r,addCallback:s,removeCallback:o}=i;return(0,u.useEffect)(()=>{if(t&&(e.isEnabled??!0))return s(t),()=>o(t)},[t,e.isEnabled,s,o]),r}],63507)}]);
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.