1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4746],{90469:function(t,e){"use strict";e.Q=function(t,e){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},s=(e||{}).decode||n,o=0;o<t.length;){var r=t.indexOf("=",o);if(-1===r)break;var l=t.indexOf(";",o);if(-1===l)l=t.length;else if(l<r){o=t.lastIndexOf(";",r-1)+1;continue}var a=t.slice(o,r).trim();if(void 0===i[a]){var c=t.slice(r+1,l).trim();34===c.charCodeAt(0)&&(c=c.slice(1,-1)),i[a]=function(t,e){try{return e(t)}catch(e){return t}}(c,s)}o=l+1}return i},e.q=function(t,e,n){var r=n||{},l=r.encode||o;if("function"!=typeof l)throw TypeError("option encode is invalid");if(!s.test(t))throw TypeError("argument name is invalid");var a=l(e);if(a&&!s.test(a))throw TypeError("argument val is invalid");var c=t+"="+a;if(null!=r.maxAge){var h=r.maxAge-0;if(isNaN(h)||!isFinite(h))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(h)}if(r.domain){if(!s.test(r.domain))throw TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){var u=r.expires;if("[object Date]"!==i.call(u)&&!(u instanceof Date)||isNaN(u.valueOf()))throw TypeError("option expires is invali
1d");c+="; Expires="+u.toUTCString()}if(r.httpOnly&&(c+="; HttpOnly"),r.secure&&(c+="; Secure"),r.partitioned&&(c+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var i=Object.prototype.toString,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(t){return -1!==t.indexOf("%")?decodeURIComponent(t):t}function o(t){return encodeURIComponent(t)}},8541:function(t,e,i){var s,n,o;void 0!==(n="function"==typeof(s=o=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var s in i)e[s]=i[s]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent)}return function i(s){function n(){}function o(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},n.defaults,o)).expires&&(o.expires=new Date(new Date*1+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var r=JSON.stringify(i);/^[\{\[]/.test(r)&&(i=r)}catch(t){}i=s.write?s.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var l="";for(var a in o)o[a]&&(l+="; "+a,!0!==o[a]&&(l+="="+o[a].split(";")[0]));return document.cookie=e+"="+i+l}}function r(t,i){if("undefined"!=typeof document){for(var n={},o=document.cookie?document.cookie.split("; "):[],r=0;r<o.length;r++){var l=o[r].split("="),a=l.slice(1).join("=");i||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var c=e(l[0]);if(a=(s.read||s)(a,c)||e(a),i)try{a=JSON.parse(a)}catch(t){}if(n[c]=a,t===c)break}catch(t){}}return t?n[t]:n}}return n.set=o,n.get=function(t){return r(t,!1)},n.getJSON=function(t){return r(t,!0)},n.remove=function(e,i){o(e,"",t(i,{expires:-1}))},n.defaults={},n.withConverter=i,n}(function(){})})?s.call(e,i,e,t):s)&&(t.exports=n),t.exports=o()},40257:function(t,e,i){"use strict";var s,n;t.exports=(null==(s=i.g.process)?void 0:s.env)&&"object"==typeof(null==(n=i.g.process)?void 0:n.env)?i.g.process:i(44227)},44227:function(t){!function(){var e={229:function(t){var e,i,s,n=t.exports={};function o(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function l(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var a=[],c=!1,h=-1;function u(){c&&s&&(c=!1,s.length?a=s.concat(a):h=-1,a.length&&d())}function d(){if(!c){var t=l(u);c=!0;for(var e=a.length;e;){for(s=a,a=[];++h<e;)s&&s[h].run();h=-1,e=a.length}s=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];a.push(new p(t,e)),1!==a.length||c||l(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var o=i[t]={exports:{}},r=!0;try{e[t](o,o.exports,s),r=!1}finally{r&&delete i[t]}return o.exports}s.ab="//";var n=s(229);t.exports=n}()},56212:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(2265),n=i(90469);function o(t,e={}){let i=t&&"j"===t[0]&&":"===t[1]?t.substr(2):t;if(!e.doNotParse)try{return JSON.parse(i)}catch(t){}return t}class r{constructor(t,e={}){var s;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let t=this.cookies;this.cookies=n.Q(document.cookie),this._checkChanges(t)};let o="undefined"==typeof document?"":document.cookie;this.cookies="string"==typeof(s=t||o)?n.Q(s):"object"==typeof s&&null!==s?s:{},this.defaultSetOptions=e,this.HAS_DOCUMENT_COOKIE=function(){let t=void 0===i.g?void 0:i.g.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof t?t:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(t){for(let e=0;e<this.changeListeners.length;++e)this.changeListeners[e](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEac
1h(e=>{t[e]!==this.cookies[e]&&this._emitChange({name:e,value:o(this.cookies[e])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,e={}){return e.doNotUpdate||this.update(),o(this.cookies[t],e)}getAll(t={}){t.doNotUpdate||this.update();let e={};for(let i in this.cookies)e[i]=o(this.cookies[i],t);return e}set(t,e,i){i=i?Object.assign(Object.assign({},this.defaultSetOptions),i):this.defaultSetOptions;let s="string"==typeof e?e:JSON.stringify(e);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(t,s,i)),this._emitChange({name:t,value:e,options:i})}remove(t,e){let i=e=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(t,"",i)),this._emitChange({name:t,value:void 0,options:e})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){let e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}let l=s.createContext(new r),{Provider:a,Consumer:c}=l;function h(t){let e=(0,s.useContext)(l);if(!e)throw Error("Missing <CookiesProvider>");let[i,n]=(0,s.useState)(()=>e.getAll());return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,s.useLayoutEffect)(()=>{function s(){let s=e.getAll({doNotUpdate:!0});(function(t,e,i){if(!t)return!0;for(let s of t)if(e[s]!==i[s])return!0;return!1})(t||null,s,i)&&n(s)}return e.addChangeListener(s),()=>{e.removeChangeListener(s)}},[e,i]),[i,(0,s.useMemo)(()=>e.set.bind(e),[e]),(0,s.useMemo)(()=>e.remove.bind(e),[e]),(0,s.useMemo)(()=>e.update.bind(e),[e])]}},10034:function(t,e,i){"use strict";var s=i(2265),n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=s.useState,r=s.useEffect,l=s.useLayoutEffect,a=s.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!n(t,i)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var i=e(),s=o({inst:{value:i,getSnapshot:e}}),n=s[0].inst,h=s[1];return l(function(){n.value=i,n.getSnapshot=e,c(n)&&h({inst:n})},[t,i,e]),r(function(){return c(n)&&h({inst:n}),t(function(){c(n)&&h({inst:n})})},[t]),a(i),i};e.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:h},83044:function(t,e,i){"use strict";var s=i(2265),n=i(82558),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=n.useSyncExternalStore,l=s.useRef,a=s.useEffect,c=s.useMemo,h=s.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,s,n){var u=l(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var p=r(t,(u=c(function(){function t(t){if(!a){if(a=!0,r=t,t=s(t),void 0!==n&&d.hasValue){var e=d.value;if(n(e,t))return l=e}return l=t}if(e=l,o(r,t))return e;var i=s(t);return void 0!==n&&n(e,i)?e:(r=t,l=i)}var r,l,a=!1,c=void 0===i?null:i;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,i,s,n]))[0],u[1]);return a(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}},82558:function(t,e,i){"use strict";t.exports=i(10034)},35195:function(t,e,i){"use strict";t.exports=i(83044)},36598:function(t){t.exports={style:{fontFamily:"'__IBM_Plex_Mono_5406eb', '__IBM_Plex_Mono_Fallback_5406eb'",fontStyle:"normal"},className:"__className_5406eb",variable:"__variable_5406eb"}},55465:function(t){t.exports={style:{fontFamily:"'__IBM_Plex_Sans_6d343d', '__IBM_Plex_Sans_Fallback_6d343d'",fontStyle:"normal"},className:"__className_6d343d",variable:"__variable_6d343d"}},6196:function(t){t.exports={style:{fontFamily:"'__Noto_Sans_SC_ebbf85', '__Noto_Sans_SC_Fallback_ebbf85'",fontStyle:"normal"},className:"__className_ebbf85",variable:"__variable_ebbf85"}},95868:function(t){t.exports={style:{fontFamily:"'__Noto_Sans_TC_1bc134', '__Noto_Sans_TC_Fallback_1bc134'",fontStyle:"normal"},className:"__className_1bc134",variable:"__variable_1bc134"}},84594:function(t){t.exports={style:{fontFamily:"'__Poppins_c70c06', '__Poppins_Fallback_c70c06'",fontStyle:"normal"},className:"__className_c70c06",variable:"__variable_c70c06"}}
1,32017:function(t,e,i){"use strict";let s;i.d(e,{LZ:function(){return k}});var n=i(2265),o="undefined"!=typeof window&&new class{constructor(){this.raf=t=>{requestAnimationFrame(this.raf);let e=t-this.now;this.now=t;for(let i=0;i<this.callbacks.length;i++)this.callbacks[i].callback(t,e)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}add(t,e=0){return this.callbacks.push({callback:t,priority:e}),this.callbacks.sort((t,e)=>t.priority-e.priority),()=>this.remove(t)}remove(t){this.callbacks=this.callbacks.filter(({callback:e})=>t!==e)}};function r(t,e,i){return Math.max(t,Math.min(e,i))}class l{advance(t){var e,i,s;if(!this.isRunning)return;let n=!1;if(this.lerp)this.value=(e=this.value,i=this.to,(1-(s=1-Math.exp(-(60*this.lerp)*t)))*e+s*i),Math.round(this.value)===this.to&&(this.value=this.to,n=!0);else{this.currentTime+=t;let e=r(0,this.currentTime/this.duration,1),i=(n=e>=1)?1:this.easing(e);this.value=this.from+(this.to-this.from)*i}this.onUpdate?.(this.value,n),n&&this.stop()}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i=.1,duration:s=1,easing:n=t=>t,onStart:o,onUpdate:r}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=n,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=r}}class a{constructor({wrapper:t,content:e,autoResize:i=!0,debounce:s=250}={}){var n;let o;this.wrapper=t,this.content=e,i&&(this.debouncedResize=(n=this.resize,function(){let t=arguments,e=this;clearTimeout(o),o=setTimeout(function(){n.apply(e,t)},s)}),this.wrapper===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(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper===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}}}class c{constructor(){this.events={}}emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t<s;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={}}}let h=100/6;class u{constructor(t,{wheelMultiplier:e=1,touchMultiplier:i=1}){this.element=t,this.wheelMultiplier=e,this.touchMultiplier=i,this.touchStart={x:null,y:null},this.emitter=new c,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}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,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}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,s=-(e-this.touchStart.x)*this.touchMultiplier,n=-(i-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:n},this.emitter.emit("scroll",{deltaX:s,deltaY:n,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:s}=t;e*=1===s?h:2===s?this.windowWidth:1,i*=1===s?h:2===s?this.windowHeight:1,e*=this.wheelMultiplier,i*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight}}class d{constructor({wrapper:t=window,content:e=document.documentElement,wheelEventsTarget:i=t,eventsTarget:s=i,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:r=.075,touchInertiaMultiplier:h=35,duration:d,easing:p=t=>Math.min(1,1.001-Math.pow(2,-10*t)),lerp:f=!d&&.1,infinite:m=!1,orientation:v="vertical",gestureOrientation:g="vertical",touchMultiplier:S=1,wheelMultiplier:w=1,autoResize:y=!0,__experimental__naiveDimensions:_=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:t,deltaY:e,event:i})=>{if(i.ctrlKey)return;let s=i.type.includes("touch"),n=i.type.includes("wheel");if(this.options.syncTouch&&s&&"touchstart"===i.type&&!this.isStopped&&!this.isLocked)return void this.reset();let o="vertical"===this.options.gestureOrientation&&0===e||"horizontal"===this.options.gestureOrientation&&0===t;if(0===t&&0===e||o)return;let r=i.composedPath();if((r=r.slice(0,r.indexOf(this.rootElement))).find(t=>{var e,i,o,r,l;return(null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-lenis-prevent"))||s&&(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,"data-lenis-prevent-touch"))||n&&(null===(o=t.hasAttribute)||void 0===o?void 0:o.call(t,"data-lenis-prevent-wheel"))||(null===(r=t.classList)||void 0===r?void 0:r.contains("lenis"))&&!(null===(l=t.classList)||void 0===l?void 0:l.contains("lenis-stopped"))}))return;if(this.isStopped||this.isLocked)return void i.preventDefault();if(this.isSmooth=this.options.syncTouch&&s||this.options.smoothWheel&&n,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();i.preventDefault();let l=e;"both"===this.options.gestureOrientation?l=Math.abs(e)>Math.abs(t)?e:t:"horizontal"===this.options.gestureOrientation&&(l=t);let a=s&&this.options.syncTouch,c=s&&"touchend"===i.type&&Math.abs(l)>5;
1c&&(l=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+l,Object.assign({programmatic:!1},a?{lerp:c?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-t),this.emit()}},window.lenisVersion="1.0.42",t!==document.documentElement&&t!==document.body||(t=window),this.options={wrapper:t,content:e,wheelEventsTarget:i,eventsTarget:s,smoothWheel:n,syncTouch:o,syncTouchLerp:r,touchInertiaMultiplier:h,duration:d,easing:p,lerp:f,infinite:m,gestureOrientation:g,orientation:v,touchMultiplier:S,wheelMultiplier:w,autoResize:y,__experimental__naiveDimensions:_},this.animate=new l,this.emitter=new c,this.dimensions=new a({wrapper:t,content:e,autoResize:y}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=o||n,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new u(s,{touchMultiplier:S,wheelMultiplier:w}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,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 e=t-(this.time||t);this.time=t,this.animate.advance(.001*e)}scrollTo(t,{offset:e=0,immediate:i=!1,lock:s=!1,duration:n=this.options.duration,easing:o=this.options.easing,lerp:l=!n&&this.options.lerp,onComplete:a,force:c=!1,programmatic:h=!0}={}){if(!this.isStopped&&!this.isLocked||c){if(["top","left","start"].includes(t))t=0;else if(["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?i=document.querySelector(t):(null==t?void 0:t.nodeType)&&(i=t),i){if(this.options.wrapper!==window){let t=this.options.wrapper.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let s=i.getBoundingClientRect();t=(this.isHorizontal?s.left:s.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite?h&&(this.targetScroll=this.animatedScroll=this.scroll):t=r(0,t,this.limit),i)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),void(null==a||a(this));if(!h){if(t===this.targetScroll)return;this.targetScroll=t}this.animate.fromTo(this.animatedScroll,t,{duration:n,easing:o,lerp:l,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(t,e)=>{this.isScrolling=!0,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),h&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),null==a||a(this),this.__preventNextScrollEvent=!0,requestAnimationFrame(()=>{delete this.__preventNextScrollEvent}))}})}}}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(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.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 isSmooth(){return this.__isSmooth}set isSmooth(t){this.__isSmooth!==t&&(this.__isSmooth=t,this.toggleClassName("lenis-smooth",t))}get isScrolling(){return this.__isScrolling}set isScrolling(t){this.__isScrolling!==t&&(this.__isScrolling=t,this.toggleClassName("lenis-scrolling",t))}get isStopped(){return this.__isStopped}set isStopped(t){this.__isStopped!==t&&(this.__isStopped=t,this.toggleClassName("lenis-stopped",t))}get isLocked(){return this.__isLocked}set isLocked(t){this.__isLocked!==t&&(this.__isLocked=t,this.toggleClassName("lenis-locked",t))}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isSmooth&&(t+=" lenis-smooth"),t}toggleClassName(t,e){this.rootElement.classList.toggle(t,e),this.emitter.emit("className change",this)}}var p=i(61994);let f=t=>{let e;let i=new Set,s=(t,s)=>{let n="function"==typeof t?t(e):t;if(!Object.is(n,e)){let t=e;e=(null!=s?s:"object"!=typeof n||null===n)?n:Object.assign({}
1,e,n),i.forEach(i=>i(e,t))}},n=()=>e,o={setState:s,getState:n,getInitialState:()=>r,subscribe:t=>(i.add(t),()=>i.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},r=e=t(s,n,o);return o},m=t=>t?f(t):f;var v=i(35195);let{useDebugValue:g}=n,{useSyncExternalStoreWithSelector:S}=v,w=!1,y=t=>t,_=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?m(t):t,i=(t,i)=>(function(t,e=y,i){i&&!w&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),w=!0);let s=S(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,i);return g(s),s})(e,t,i);return Object.assign(i,e),i};"function"==typeof SuppressedError&&SuppressedError;let b=(0,n.createContext)(),E=(s=()=>({}))?_(s):_;function k(t,e=[],i=0){let{lenis:s,addCallback:o,removeCallback:r}=function(){let t=(0,n.useContext)(b),e=E();return null!=t?t:e}();return(0,n.useEffect)(()=>{if(t&&o&&r&&s)return o(t,i),t(s),()=>{r(t)}},[s,o,r,i,...e]),s}(0,n.forwardRef)((t,e)=>{var{children:i,root:s=!1,options:r={},autoRaf:l=!0,rafPriority:a=0,className:c}=t,h=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)0>e.indexOf(s[n])&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(t,["children","root","options","autoRaf","rafPriority","className"]);let u=(0,n.useRef)(),f=(0,n.useRef)(),[m,v]=(0,n.useState)(),g=(0,n.useRef)([]),S=(0,n.useCallback)((t,e)=>{g.current.push({callback:t,priority:e}),g.current.sort((t,e)=>t.priority-e.priority)},[]),w=(0,n.useCallback)(t=>{g.current=g.current.filter(e=>e.callback!==t)},[]);(0,n.useImperativeHandle)(e,()=>({wrapper:u.current,content:f.current,lenis:m}),[m]),(0,n.useEffect)(()=>{let t=new d(Object.assign(Object.assign({},r),!s&&{wrapper:u.current,content:f.current}));return v(t),()=>{t.destroy(),v(void 0)}},[s,JSON.stringify(r)]),function(t,e=0){(0,n.useEffect)(()=>{if(t)return o.add(t,e),()=>o.remove(t)},[t,e])}(t=>{l&&(null==m||m.raf(t))},a),(0,n.useEffect)(()=>{s&&m&&E.setState({lenis:m,addCallback:S,removeCallback:w})},[s,m,S,w]);let y=(0,n.useCallback)(t=>{for(let e=0;e<g.current.length;e++)g.current[e].callback(t)},[]);(0,n.useEffect)(()=>(null==m||m.on("scroll",y),()=>{null==m||m.off("scroll",y)}),[m,y]);let _=(0,n.useCallback)(()=>{u.current&&(u.current.className=(0,p.Z)(null==m?void 0:m.className,c))},[m,c]);return(0,n.useEffect)(()=>(_(),null==m||m.on("className change",_),()=>{null==m||m.off("className change",_)}),[m,_]),n.createElement(b.Provider,{value:{lenis:m,addCallback:S,removeCallback:w}},s?i:n.createElement("div",Object.assign({ref:u,className:(0,p.Z)(null==m?void 0:m.className,c)},h),n.createElement("div",{ref:f},i)))})},61994:function(t,e,i){"use strict";e.Z=function(){for(var t,e,i=0,s="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(s=t(e[i]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s)}return n}(t))&&(s&&(s+=" "),s+=e);return s}}}]);
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.