PageSourceSearch

https://www.o11n.life/_next/static/chunks/362-d0e87e7f841d1115.js

js o11n.life collected 2026-10-03 18:49:25 UTC 27,227 bytes, 28 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[362],{2548:(t,e,i)=>{i.d(e,{Ay:()=>p});var o=i(2115),s=i(7452),r=i(186),n=i(5155);let l="function"==typeof(0,s.Dp)({}),h=(t,e)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...e&&!t.vars&&{colorScheme:t.palette.mode}}),a=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),c=function(t){var e,i;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s={};o&&t.colorSchemes&&"function"==typeof t.getColorSchemeSelector&&Object.entries(t.colorSchemes).forEach(e=>{var i,o;let[r,n]=e,l=t.getColorSchemeSelector(r);l.startsWith("@")?s[l]={":root":{colorScheme:null===(i=n.palette)||void 0===i?void 0:i.mode}}:s[l.replace(/\s*&/,"")]={colorScheme:null===(o=n.palette)||void 0===o?void 0:o.mode}});let r={html:h(t,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...a(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...s},n=null===(i=t.components)||void 0===i?void 0:null===(e=i.MuiCssBaseline)||void 0===e?void 0:e.styleOverrides;return n&&(r=[r,n]),r},d="mui-ecs",m=t=>{let e=c(t,!1),i=Array.isArray(e)?e[0]:e;return!t.vars&&i&&(i.html[":root:has(".concat(d,")")]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(e=>{var o,s;let[r,n]=e,l=t.getColorSchemeSelector(r);l.startsWith("@")?i[l]={[":root:not(:has(.".concat(d,"))")]:{colorScheme:null===(o=n.palette)||void 0===o?void 0:o.mode}}:i[l.replace(/\s*&/,"")]={["&:not(:has(.".concat(d,"))")]:{colorScheme:null===(s=n.palette)||void 0===s?void 0:s.mode}}}),e},u=(0,s.Dp)(l?t=>{let{theme:e,enableColorScheme:i}=t;return c(e,i)}:t=>{let{theme:e}=t;return m(e)}),p=function(t){let{children:e,enableColorScheme:i=!1}=(0,r.b)({props:t,name:"MuiCssBaseline"});return(0,n.jsxs)(o.Fragment,{children:[l&&(0,n.jsx)(u,{enableColorScheme:i}),!l&&!i&&(0,n.jsx)("span",{className:d,style:{display:"none"}}),e]})}},2810:(t,e,i)=>{function o(t,e,i){return Math.max(t,Math.min(e,i))}i.d(e,{A:()=>c});var s=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 i=o(0,this.currentTime/this.duration,1),s=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*s}else if(this.lerp){var i,s,r;this.value=(i=this.value,s=this.to,(1-(r=1-Math.exp(-(60*this.lerp)*t)))*i+r*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}fromTo(t,e,{lerp:i,duration:o,easing:s,onStart:r,onUpdate:n}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=o,this.easing=s,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=n}},r=class{constructor(t,e,{autoResize:i=!0,debounce:o=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...o){let s=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(s,o)},e)}}(this.resize,o),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}}},n=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,o=i.length;t<o;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={}}},l=100/6,h={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,h),this.element.addEventListener("touchstart",this.onTouchStart,h),this.element.addEventListener("touchmove",this.onTouchMove,h),this.element.addEventListener("touchend",this.onTouchEnd,h)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new n;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,h),this.element.removeEventListener("touchstart",this.onTouchStart,h),this.element.removeEventListener("touchmove",this.onTouchMove,h),this.element.removeEventListener("touchend",this.onTouchEnd,h)}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,o=-(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:o,y:s},this.emitter.emit("scroll",{deltaX:o,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:o}=t,s=1===o?l:2===o?this.window.width:1,r=1===o?l:2===o?this.window.height:1;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}}},c=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 s;emitter=new n;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:o=!0,syncTouch:s=!1,syncTouchLerp:n=.075,touchInertiaMultiplier:l=35,duration:h,easing:c=t=>Math.min(1,1.001-Math.pow(2,-10*t)),lerp:d=.1,infinite:m=!1,orientation:u="vertical",gestureOrientation:p="vertical",touchMultiplier:v=1,wheelMultiplier:S=1,autoResize:g=!0,prevent:f,virtualScroll:y,overscroll:w=!0,autoRaf:b=!1,anchors:E=!1,__experimental__naiveDimensions:k=!1}={}){window.lenisVersion="1.2.3",t&&t!==document.documentElement||(t=window),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:o,syncTouch:s,syncTouchLerp:n,touchInertiaMultiplier:l,duration:h,easing:c,lerp:d,infinite:m,gestureOrientation:p,orientation:u,touchMultiplier:v,wheelMultiplier:S,autoResize:g,prevent:f,virtualScroll:y,overscroll:w,autoRaf:b,anchors:E,__experimental__naiveDimensions:k},this.dimensions=new r(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
1w a(i,{touchMultiplier:v,wheelMultiplier:S}),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:o}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:o}),o.ctrlKey||o.lenisStopPropagation)return;let s=o.type.includes("touch"),r=o.type.includes("wheel");this.isTouching="touchstart"===o.type||"touchmove"===o.type;let n=0===e&&0===i;if(this.options.syncTouch&&s&&"touchstart"===o.type&&n&&!this.isStopped&&!this.isLocked){this.reset();return}let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(n||l)return;let h=o.composedPath();h=h.slice(0,h.indexOf(this.rootElement));let a=this.options.prevent;if(h.find(t=>t instanceof HTMLElement&&("function"==typeof a&&a?.(t)||t.hasAttribute?.("data-lenis-prevent")||s&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel"))))return;if(this.isStopped||this.isLocked){o.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),o.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))&&(o.lenisStopPropagation=!0),o.preventDefault();let d=s&&this.options.syncTouch,m=s&&"touchend"===o.type&&Math.abs(c)>5;m&&(c=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+c,{programmatic:!1,...d?{lerp:m?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
1(),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:i=!1,lock:s=!1,duration:r=this.options.duration,easing:n=this.options.easing,lerp:l=this.options.lerp,onStart:h,onComplete:a,force:c=!1,programmatic:d=!0,userData:m}={}){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 o=i.getBoundingClientRect();t=(this.isHorizontal?o.left:o.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite?d&&(this.targetScroll=this.animatedScroll=this.scroll):t=o(0,t,this.limit),t===this.targetScroll){h?.(this),a?.(this);return}if(this.userData=m??{},i){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),a?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:r,easing:n,lerp:l,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),d&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),a?.(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()}}},3196:(t,e,i)=>{i.d(e,{A:()=>R});var o=i(2115);let s=o.createContext(null);function r(){return o.useContext(s)}let n="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var l=i(5155);let h=function(t){let{children:e,theme:i}=t,h=r(),a=o.useMemo(()=>{var t,e;let o=null===h?{...i}:(t=h,"function"==typeof(e=i)?e(t):{...t,...e});return null!=o&&(o[n]=null!==h),o},[i,h]);return(0,l.jsx)(s.Provider,{value:a,children:e})};var a=i(4453),c=i(340),d=i(2299),m=i(194);let u={};
1function p(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=t&&e[t]||e;if("function"==typeof i){let r=i(o),n=t?{...e,[t]:r}:r;return s?()=>n:n}return t?{...e,[t]:i}:{...e,...i}},[t,e,i,s])}let v=function(t){let{children:e,theme:i,themeId:o}=t,s=(0,c.A)(u),n=r()||u,v=p(o,s,i),S=p(o,n,i,!0),g="rtl"===(o?v[o]:v).direction;return(0,l.jsx)(h,{theme:S,children:(0,l.jsx)(a.T.Provider,{value:v,children:(0,l.jsx)(d.A,{value:g,children:(0,l.jsx)(m.A,{value:o?v[o].components:v.components,children:e})})})})};var S=i(4107);function g(t){let{theme:e,...i}=t,o=S.A in e?e[S.A]:void 0;return(0,l.jsx)(v,{...i,themeId:o?S.A:void 0,theme:o||e})}var f=i(3184),y=i(9051),w=i(3430);let b="mode",E="color-scheme";function k(){}let C=({key:t,storageWindow:e})=>(e||"undefined"==typeof window||(e=window),{get(i){let o;if("undefined"!=typeof window){if(!e)return i;try{o=e.localStorage.getItem(t)}catch{}return o||i}},set:i=>{if(e)try{e.localStorage.setItem(t,i)}catch{}},subscribe:i=>{if(!e)return k;let o=e=>{let o=e.newValue;e.key===t&&i(o)};return e.addEventListener("storage",o),()=>{e.removeEventListener("storage",o)}}});function x(){}function M(t){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===t)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function T(t,e){return"light"===t.mode||"system"===t.mode&&"light"===t.systemMode?e("light"):"dark"===t.mode||"system"===t.mode&&"dark"===t.systemMode?e("dark"):void 0}var z=i(9839),L=i(3373);let _={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:A,useColorScheme:N,getInitColorSchemeScript:W}=function(t){let{themeId:e,theme:i={},modeStorageKey:s=b,colorSchemeStorageKey:n=E,disableTransitionOnChange:h=!1,defaultColorScheme:a,resolveTheme:c}=t,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},m=o.createContext(void 0),u={},p={},S="string"==typeof a?a:a.light,g="string"==typeof a?a:a.dark;return{CssVarsProvider:function(t){var d,S,g,f;let{children:k,theme:z,modeStorageKey:L=s,colorSchemeStorageKey:_=n,disableTransitionOnChange:A=h,storageManager:N,storageWindow:W="undefined"==typeof window?void 0:window,documentNode:R="undefined"==typeof document?void 0:document,colorSchemeNode:j="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:D=!1,disableStyleSheetGeneration:$=!1,defaultMode:H="system",forceThemeRerender:O=!1,noSsr:V}=t,I=o.useRef(!1),P=r(),K=o.useContext(m),F=!!K&&!D,q=o.useMemo(()=>z||("function"==typeof i?i():i),[z]),U=q[e],B=U||q,{colorSchemes:X=u,components:Y=p,cssVarPrefix:G}=B,J=Object.keys(X).filter(t=>!!X[t]).join(","),Q=o.useMemo(()=>J.split(","),[J]),Z="string"==typeof a?a:a.light,tt="string"==typeof a?a:a.dark,te=X[Z]&&X[tt]?H:(null===(S=X[B.defaultColorScheme])||void 0===S?void 0:null===(d=S.palette)||void 0===d?void 0:d.mode)||(null===(g=B.palette)||void 0===g?void 0:g.mode),{mode:ti,setMode:to,systemMode:ts,lightColorScheme:tr,darkColorScheme:tn,colorScheme:tl,setColorScheme:th}=function(t){let{defaultMode:e="light",defaultLightColorScheme:i,defaultDarkColorScheme:s,supportedColorSchemes:r=[],modeStorageKey:n=b,colorSchemeStorageKey:l=E,storageWindow:h="undefined"==typeof window?void 0:window,storageManager:a=C,noSsr:c=!1}=t,d=r.join(","),m=r.length>1,u=o.useMemo(()=>null==a?void 0:a({key:n,storageWindow:h}),[a,n,h]),p=o.useMemo(()=>null==a?void 0:a({key:"".concat(l,"-light"),storageWindow:h}),[a,l,h]),v=o.useMemo(()=>null==a?void 0:a({key:"".concat(l,"-dark"),storageWindow:h}),[a,l,h]),[S,g]=o.useState(()=>{let t=(null==u?void 0:u.get(e))||e,o=(null==p?void 0:p.get(i))||i,r=(null==v?void 0:v.get(s))||s;return{mode:t,systemMode:M(t),lightColorScheme:o,darkColorScheme:r}}),[f,y]=o.useState(c||!m);o.useEffect(()=>{y(!0)},[]);let w=T(S,t=>"light"===t?S.lightColorScheme:"dark"===t?S.darkColorScheme:void 0),k=o.useCallback(t=>{g(i=>{if(t===i.mode)return i;let o=null!=t?t:e;return null==u||u.set(o),{...i,mode:o,systemMode:M(o)}})},[u,e]),z=o.useCallback(t=>{t?"string"==typeof t?t&&!d.includes(t)?console.error("`".concat(t,"` does not exist in `theme.colorSchemes`.")):g(e=>{let i={...e};return T(e,e=>{"light"===e&&(null==p||p.set(t),i.lightColorScheme=t),"dark"===e&&(null==v||v.set(t),i.darkColorScheme=t)}),i}):g(e=>{let o={...e},r=null===t.light?i:t.light,n=null===t.dark?s:t.dark;return r&&(d.includes(r)?(o.lightColorScheme=r,null==p||p.set(r)):console.error("`".concat(r,"` does not exist in `theme.colorSchemes`."))),n&&(d.includes(n)?(o.darkColorScheme=n,null==v||v.set(n)):console.error("`".concat(n,"` does not exist in `theme.colorSchemes`."))),o}):g(t=>(null==p||p.set(i),null==v||v.set(s),{...t,lightColorScheme:i,darkColorScheme:s}))},[d,p,v,i,s]),L=o.useCallback(t=>{"system"===S.mode&&g(e=>{let i=(null==t?void 0:t.matches)?"dark":"light";return e.systemMode===i?e:{...e,systemMode:i}})},[S.mode]),_=o.useRef(L);return _.current=L,o.useEffect(()=>{if("function"!=typeof window.matchMedia||!m)return;let t=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return _.current(...e)},e=window.matchMedia("(prefers-color-scheme: dark)");return e.addListener(t),t(e),()=>{e.removeListener(t)}},[m]),o.useEffect(()=>{if(m){let t=(null==u?void 0:u.subscribe(t=>{(!t||["light","dark","system"].includes(t))&&k(t||e)}))||x,i=(null==p?void 0:p.subscribe(t=>{(!t||d.match(t))&&z({light:t})}))||x,o=(null==v?void 0:v.subscribe(t=>
1{(!t||d.match(t))&&z({dark:t})}))||x;return()=>{t(),i(),o()}}},[z,k,d,e,h,m,u,p,v]),{...S,mode:f?S.mode:void 0,systemMode:f?S.systemMode:void 0,colorScheme:f?w:void 0,setMode:k,setColorScheme:z}}({supportedColorSchemes:Q,defaultLightColorScheme:Z,defaultDarkColorScheme:tt,modeStorageKey:L,colorSchemeStorageKey:_,defaultMode:te,storageManager:N,storageWindow:W,noSsr:V}),ta=ti,tc=tl;F&&(ta=K.mode,tc=K.colorScheme);let td=tc||B.defaultColorScheme;B.vars&&!O&&(td=B.defaultColorScheme);let tm=o.useMemo(()=>{var t;let e=(null===(t=B.generateThemeVars)||void 0===t?void 0:t.call(B))||B.vars,i={...B,components:Y,colorSchemes:X,cssVarPrefix:G,vars:e};if("function"==typeof i.generateSpacing&&(i.spacing=i.generateSpacing()),td){let t=X[td];t&&"object"==typeof t&&Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?i[e]={...i[e],...t[e]}:i[e]=t[e]})}return c?c(i):i},[B,td,Y,X,G]),tu=B.colorSchemeSelector;(0,w.A)(()=>{if(tc&&j&&tu&&"media"!==tu){let t=tu;if("class"===tu&&(t=".%s"),"data"===tu&&(t="[data-%s]"),(null==tu?void 0:tu.startsWith("data-"))&&!tu.includes("%s")&&(t="[".concat(tu,'="%s"]')),t.startsWith("."))j.classList.remove(...Q.map(e=>t.substring(1).replace("%s",e))),j.classList.add(t.substring(1).replace("%s",tc));else{let e=t.replace("%s",tc).match(/\[([^\]]+)\]/);if(e){let[t,i]=e[1].split("=");i||Q.forEach(e=>{j.removeAttribute(t.replace(tc,e))}),j.setAttribute(t,i?i.replace(/"|'/g,""):"")}else j.setAttribute(t,tc)}}},[tc,tu,j,Q]),o.useEffect(()=>{let t;if(A&&I.current&&R){let e=R.createElement("style");e.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(e),window.getComputedStyle(R.body),t=setTimeout(()=>{R.head.removeChild(e)},1)}return()=>{clearTimeout(t)}},[tc,A,R]),o.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);let tp=o.useMemo(()=>({allColorSchemes:Q,colorScheme:tc,darkColorScheme:tn,lightColorScheme:tr,mode:ta,setColorScheme:th,setMode:to,systemMode:ts}),[Q,tc,tn,tr,ta,th,to,ts,tm.colorSchemeSelector]),tv=!0;($||!1===B.cssVariables||F&&(null==P?void 0:P.cssVarPrefix)===G)&&(tv=!1);let tS=(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)(v,{themeId:U?e:void 0,theme:tm,children:k}),tv&&(0,l.jsx)(y.A,{styles:(null===(f=tm.generateStyleSheets)||void 0===f?void 0:f.call(tm))||[]})]});return F?tS:(0,l.jsx)(m.Provider,{value:tp,children:tS})},useColorScheme:()=>o.useContext(m)||d,getInitColorSchemeScript:t=>(function(t){let{defaultMode:e="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:o="dark",modeStorageKey:s=b,colorSchemeStorageKey:r=E,attribute:n="data-color-scheme",colorSchemeNode:h="document.documentElement",nonce:a}=t||{},c="",d=n;if("class"===n&&(d=".%s"),"data"===n&&(d="[data-%s]"),d.startsWith(".")){let t=d.substring(1);c+=`${h}.classList.remove('${t}'.replace('%s', light), '${t}'.replace('%s', dark));
2      ${h}.classList.add('${t}'.replace('%s', colorScheme));`}let m=d.match(/\[([^\]]+)\]/);if(m){let[t,e]=m[1].split("=");e||(c+=`${h}.removeAttribute('${t}'.replace('%s', light));
3      ${h}.removeAttribute('${t}'.replace('%s', dark));`),c+=`
4      ${h}.setAttribute('${t}'.replace('%s', colorScheme), ${e?`${e}.replace('%s', colorScheme)`:'""'});`}else c+=`${h}.setAttribute('${d}', colorScheme);`;return(0,l.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?a:"",dangerouslySetInnerHTML:{__html:`(function() {
5try {
6  let colorScheme = '';
7  const mode = localStorage.getItem('${s}') || '${e}';
8  const dark = localStorage.getItem('${r}-dark') || '${o}';
9  const light = localStorage.getItem('${r}-light') || '${i}';
10  if (mode === 'system') {
11    // handle system mode
12    const mql = window.matchMedia('(prefers-color-scheme: dark)');
13    if (mql.matches) {
14      colorScheme = dark
15    } else {
16      colorScheme = light
17    }
18  }
19  if (mode === 'light') {
20    colorScheme = light;
21  }
22  if (mode === 'dark') {
23    colorScheme = dark;
24  }
25  if (colorScheme) {
26    ${c}
27  }
28} catch(e){}})();`}},"mui-color-scheme-init")}
28)({colorSchemeStorageKey:n,defaultLightColorScheme:S,defaultDarkColorScheme:g,modeStorageKey:s,...t})}}({themeId:S.A,theme:()=>(0,z.A)({cssVariables:!0}),colorSchemeStorageKey:_.colorSchemeStorageKey,modeStorageKey:_.modeStorageKey,defaultColorScheme:{light:_.defaultLightColorScheme,dark:_.defaultDarkColorScheme},resolveTheme:t=>{let e={...t,typography:(0,L.A)(t.palette,t.typography)};return e.unstable_sx=function(t){return(0,f.A)({sx:t,theme:this})},e}});function R(t){let{theme:e,...i}=t;if("function"==typeof e)return(0,l.jsx)(g,{theme:e,...i});let o=S.A in e?e[S.A]:e;return"colorSchemes"in o?(0,l.jsx)(A,{theme:e,...i}):"vars"in o?(0,l.jsx)(g,{theme:e,...i}):(0,l.jsx)(g,{theme:{...e,vars:null},...i})}}}]);

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.