"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[211],{7659:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(5469),o=n.n(r)},7754:function(e,t,n){var r=n(534);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},9912:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(2679);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2774:function(e,t,n){function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(2679),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5469:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(7666),o=n(7573),a=r._(n(9585)),i=n(5913),l=n(5499),u=n(3570),c=n(6e3),s=n(9912),d=n(1917),f=n(5026),p=n(3868),h=n(2774),m=n(5923),v=n(5398),g=new Set;function b(e,t,n,r,o,a){if("undefined"!=typeof window&&(a||(0,l.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(o))return;g.add(o)}(async()=>a?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=a.default.forwardRef(function(e,t){let n,r;let{href:u,as:g,children:w,prefetch:x=null,passHref:E,replace:R,shallow:N,scroll:P,locale:S,onClick:j,onMouseEnter:C,onTouchStart:M,legacyBehavior:O=!1,...T}=e;n=w,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=a.default.useContext(d.RouterContext),_=a.default.useContext(f.AppRouterContext),L=null!=k?k:_,I=!k,A=!1!==x,W=null===x?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:U,as:B}=a.default.useMemo(()=>{if(!k){let e=y(u);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(k,u,!0);return{href:e,as:g?(0,i.resolveHref)(k,g):t||e}},[k,u,g]),F=a.default.useRef(U),z=a.default.useRef(B);O&&(r=a.default.Children.only(n));let K=O?r&&"object"==typeof r&&r.ref:t,[D,q,Y]=(0,p.useIntersection)({rootMargin:"200px"}),$=a.default.useCallback(e=>{(z.current!==B||F.current!==U)&&(Y(),z.current=B,F.current=U),D(e),K&&("function"==typeof K?K(e):"object"==typeof K&&(K.current=e))},[B,K,U,Y,D]);a.default.useEffect(()=>{L&&q&&A&&b(L,U,B,{locale:S},{kind:W},I)},[B,U,q,S,A,null==k?void 0:k.locale,L,I,W]);let H={ref:$,onClick(e){O||"function"!=typeof j||j(e),O&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,o,i,u,c,s){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!s&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};s?a.default.startTransition(f):f()}(e,L,U,B,R,N,P,S,I)},onMouseEnter(e){O||"function"!=typeof C||C(e),O&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(A||!I)&&b(L,U,B,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:W},I)},onTouchStart:function(e){O||"function"!=typeof M||M(e),O&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(A||!I)&&b(L,U,B,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:W},I)}};if((0,c.isAbsoluteUrl)(B))H.href=B;else if(!O||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(B,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);H.href=t||(0,m.addBasePath)((0,s.addLocale)(B,e,null==k?void 0:k.defaultLocale))}return O?a.default.cloneElement(r,H):(0,o.jsx)("a",{...T,...H,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6790:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5913:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(6537),o=n(3570),a=n(9084),i=n(6e3),l=n(2679),u=n(5499),c=n(7145),s=n(3929);function d(e,t,n){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,s.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3868:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(9585),o=n(6790),a="function"==typeof IntersectionObserver,i=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[s,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||s)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),i.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!s){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,s,f.current]),[p,s,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},3570:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return i}});let r=n(3520)._(n(6537)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,a=e.protocol||"",i=e.pathname||"",l=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let s=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),s&&"?"!==s[0]&&(s="?"+s),""+a+c+(i=i.replace(/[?#]/g,encodeURIComponent))+(s=s.replace("#","%23"))+l}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},7145:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(3963),o=n(9475)},3929:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let r=n(1889),o=n(1019);function a(e,t,n){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,u=(t!==e?(0,r.getRouteMatcher)(i)(t):"")||n;a=e;let c=Object.keys(l);return c.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=l[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(a=a.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},9475:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let r=n(3468),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},5499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=n(6e3),o=n(3655);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},9084:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},6537:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},1889:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(6e3);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},i={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(i[e]=~r.indexOf("/")?r.split("/").map(e=>a(e)):t.repeat?[a(r)]:a(r))}),i}}},1019:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u}});let r=n(3468),o=n(8161),a=n(74);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function l(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:r,repeat:u}=i(a[1]);return n[e]={pos:l++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=i(a[1]);return n[e]={pos:l++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function c(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:a,keyPrefix:l}=e,{key:u,optional:c,repeat:s}=i(r),d=u.replace(/\W/g,"");l&&(d=""+l+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),l?a[d]=""+l+u:a[d]=u;let p=t?(0,o.escapeStringRegexp)(t):"";return s?c?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function s(e,t){let n;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:i.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&a){let[n]=e.split(a[0]);return c({getSafeRouteKey:l,interceptionMarker:n,segment:a[1],routeKeys:u,keyPrefix:t?"nxtI":void 0})}return a?c({getSafeRouteKey:l,segment:a[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function d(e,t){let n=s(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=l(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=s(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},3963:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),i=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),i=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function a(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},6e3:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return i},getURL:function(){return l},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return s},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return n||(n=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>o.test(e);function i(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function s(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&c(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},8599:function(e,t,n){n.d(t,{L:function(){return v}});var r=n(9099),o=n(2208),a=n(8930),i=n(6737),l=n(9760),u=n(3391),c=n(5058),s=n(1251),d=n(9585),f=n(1156),p=n(1446),h=n(7573),m=(0,l.Gp)((e,t)=>{var n;let{as:l,icon:m,className:v,onChange:g,autoFocus:b,srOnlyText:y,...w}=e,x=(0,u.gy)(t),{slots:E,classNames:R,isMenuOpen:N,setIsMenuOpen:P}=(0,r.q)(),S=function(e={}){let{isReadOnly:t}=e,[n,r]=function(e,t,n){let[r,o]=(0,d.useState)(e||t),a=(0,d.useRef)(void 0!==e),i=void 0!==e;(0,d.useEffect)(()=>{let e=a.current;e!==i&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:r,u=(0,d.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),i||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((n,...o)=>{let a=e(i?l:n,...o);return(r(a,...t),i)?n:a})):(i||o(e),r(e,...t))},[i,l,n]);return[l,u]}(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}({...w,isSelected:N,onChange:e=>{null==g||g(e),P(e)}}),{buttonProps:j,isPressed:C}=function(e,t,n){let{isSelected:r}=t,{isPressed:l,buttonProps:u}=(0,i.j)({...e,onPress:(0,o.t)(t.toggle,e.onPress)},n);return{isPressed:l,buttonProps:(0,a.d)(u,{"aria-pressed":r})}}(e,S,x),{isFocusVisible:M,focusProps:O}=(0,f.F)({autoFocus:b}),{isHovered:T,hoverProps:k}=(0,p.X)({}),_=(0,c.W)(null==R?void 0:R.toggle,v),L=(0,d.useMemo)(()=>"function"==typeof m?m(null!=N&&N):m||(0,h.jsx)("span",{className:E.toggleIcon({class:null==R?void 0:R.toggleIcon})}),[m,N,E.toggleIcon,null==R?void 0:R.toggleIcon]),I=(0,d.useMemo)(()=>y||(S.isSelected?"close navigation menu":"open navigation menu"),[y,N]);return(0,h.jsxs)(l||"button",{ref:x,className:null==(n=E.toggle)?void 0:n.call(E,{class:_}),"data-focus-visible":(0,s.PB)(M),"data-hover":(0,s.PB)(T),"data-open":(0,s.PB)(N),"data-pressed":(0,s.PB)(C),...(0,a.d)(j,O,k,w),children:[(0,h.jsx)("span",{className:E.srOnly(),children:I}),L]})});m.displayName="NextUI.NavbarMenuToggle";var v=m},9099:function(e,t,n){n.d(t,{V:function(){return r},q:function(){return o}});var[r,o]=(0,n(6547).k)({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"})},7039:function(e,t,n){n.d(t,{$:function(){return eA}});var r,o,a,i,l,u,c,s=n(9099),d={enter:{height:"calc(100vh - var(--navbar-height))",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},f=n(9760),p=n(3391),h=n(5058),m=n(1251),v=n(5458),g=n(3940),b=n(7584),y=n(3245),w=n(8930),x=n(9585),E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function R(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var N="right-scroll-bar-position",P="width-before-scroll-bar";function S(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var j="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,C=new WeakMap,M=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),a=[],i=!1,l={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,i);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){i=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=E({async:!0,ssr:!1},r),l),O=function(){},T=x.forwardRef(function(e,t){var n,r,o,a,i=x.useRef(null),l=x.useState({onScrollCapture:O,onWheelCapture:O,onTouchMoveCapture:O}),u=l[0],c=l[1],s=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,h=e.enabled,m=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,w=e.as,N=e.gapMode,P=R(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[i,t],r=function(e){return n.forEach(function(t){return S(t,e)})},(o=(0,x.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,j(function(){var e=C.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||S(e,null)}),r.forEach(function(e){t.has(e)||S(e,o)})}C.set(a,n)},[n]),a),k=E(E({},P),u);return x.createElement(x.Fragment,null,h&&x.createElement(v,{sideCar:M,removeScrollBar:p,shards:m,noIsolation:g,inert:b,setCallbacks:c,allowPinchZoom:!!y,lockRef:i,gapMode:N}),s?x.cloneElement(x.Children.only(d),E(E({},k),{ref:T})):x.createElement(void 0===w?"div":w,E({},k,{className:f,ref:T}),d))});T.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},T.classNames={fullWidth:P,zeroRight:N};var k=function(e){var t=e.sideCar,n=R(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return x.createElement(r,E({},n))};k.isSideCarExport=!0;var _=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},L=function(){var e=_();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I=function(){var e=L();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},W=function(e){return parseInt(e||"",10)||0},U=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[W(n),W(r),W(o)]},B=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A;var t=U(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F=I(),z="data-scroll-locked",K=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(z,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(N," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(P," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(N," .").concat(N," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(P," .").concat(P," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(z,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},D=function(){var e=parseInt(document.body.getAttribute(z)||"0",10);return isFinite(e)?e:0},q=function(){x.useEffect(function(){return document.body.setAttribute(z,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(z):document.body.setAttribute(z,e.toString())}},[])},Y=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;q();var a=x.useMemo(function(){return B(o)},[o]);return x.createElement(F,{styles:K(a,!t,o,n?"":"!important")})},$=!1;if("undefined"!=typeof window)try{var H=Object.defineProperty({},"passive",{get:function(){return $=!0,!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch(e){$=!1}var G=!!$&&{passive:!1},V=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},X=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Z(e,r)){var o=Q(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Z=function(e,t){return"v"===e?V(t,"overflowY"):V(t,"overflowX")},Q=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},J=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var h=Q(e,u),m=h[0],v=h[1]-h[2]-i*m;(m||v)&&Z(e,u)&&(f+=v,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},ee=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},et=function(e){return[e.deltaX,e.deltaY]},en=function(e){return e&&"current"in e?e.current:e},er=0,eo=[],ea=(u=function(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(er++)[0],a=x.useState(I)[0],i=x.useRef(e);x.useEffect(function(){i.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(en),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=x.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=ee(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=X(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=X(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return J(p,t,e,"h"===p?u:c,!0)},[]),u=x.useCallback(function(e){if(eo.length&&eo[eo.length-1]===a){var n="deltaY"in e?et(e):ee(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(en).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=x.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=x.useCallback(function(e){n.current=ee(e),r.current=void 0},[]),d=x.useCallback(function(t){c(t.type,et(t),t.target,l(t,e.lockRef.current))},[]),f=x.useCallback(function(t){c(t.type,ee(t),t.target,l(t,e.lockRef.current))},[]);x.useEffect(function(){return eo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,G),document.addEventListener("touchmove",u,G),document.addEventListener("touchstart",s,G),function(){eo=eo.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,G),document.removeEventListener("touchmove",u,G),document.removeEventListener("touchstart",s,G)}},[]);var p=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?x.createElement(Y,{gapMode:e.gapMode}):null)},M.useMedium(u),k),ei=x.forwardRef(function(e,t){return x.createElement(T,E({},e,{ref:t,sideCar:ea}))});ei.classNames=T.classNames;let el=(0,x.createContext)({});var eu=n(5349);function ec({children:e}){let t=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(eu.O.Provider,{value:t},e)}var es=n(9279),ed=n(7587),ef=n(449);let ep=x.createContext(null),eh=null;function em(e){let t,n,{children:r,contain:o,restoreFocus:a,autoFocus:i}=e,l=(0,x.useRef)(null),u=(0,x.useRef)(null),c=(0,x.useRef)([]),{parentNode:s}=(0,x.useContext)(ep)||{},d=(0,x.useMemo)(()=>new eC({scopeRef:c}),[c]);(0,ef.b)(()=>{let e=s||eM.root;if(eM.getTreeNode(e.scopeRef)&&eh&&!eR(eh,e.scopeRef)){let t=eM.getTreeNode(eh);t&&(e=t)}e.addChild(d),eM.addNode(d)},[d,s]),(0,ef.b)(()=>{let e=eM.getTreeNode(c);e&&(e.contain=!!o)},[o]),(0,ef.b)(()=>{var e;let t=null===(e=l.current)||void 0===e?void 0:e.nextSibling,n=[];for(;t&&t!==u.current;)n.push(t),t=t.nextSibling;c.current=n},[r]),(0,ef.b)(()=>{if(a||o)return;let e=c.current,t=(0,ed.r)(e?e[0]:void 0),n=e=>{let t=e.target;ex(t,c.current)?eh=c:eE(t)||(eh=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[c,a,o]),t=(0,x.useRef)(),n=(0,x.useRef)(),(0,ef.b)(()=>{let e=c.current;if(!o){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let r=(0,ed.r)(e?e[0]:void 0),a=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!ew(c)||e.isComposing)return;let t=r.activeElement,n=c.current;if(!n||!ex(t,n))return;let o=eS(ey(n),{tabbable:!0},n);if(!t)return;o.currentNode=t;let a=e.shiftKey?o.previousNode():o.nextNode();a||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,a=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),a&&eN(a,!0)},i=e=>{(!eh||eR(eh,c))&&ex(e.target,c.current)?(eh=c,t.current=e.target):ew(c)&&!eE(e.target,c)?t.current?t.current.focus():eh&&eh.current&&eP(eh.current):ew(c)&&(t.current=e.target)},l=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(r.activeElement&&ew(c)&&!eE(r.activeElement,c)){if(eh=c,r.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else eh.current&&eP(eh.current)}})};return r.addEventListener("keydown",a,!1),r.addEventListener("focusin",i,!1),null==e||e.forEach(e=>e.addEventListener("focusin",i,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",l,!1)),()=>{r.removeEventListener("keydown",a,!1),r.removeEventListener("focusin",i,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",i,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",l,!1))}},[c,o]),(0,ef.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let r=(0,x.useRef)("undefined"!=typeof document?(0,ed.r)(e.current?e.current[0]:void 0).activeElement:null);(0,ef.b)(()=>{let r=e.current,o=(0,ed.r)(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!eh||eR(eh,e))&&ex(o.activeElement,e.current)&&(eh=e)};return o.addEventListener("focusin",a,!1),null==r||r.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,n]),(0,ef.b)(()=>{let r=(0,ed.r)(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!ew(e)||t.isComposing)return;let n=r.activeElement;if(!ex(n,e.current))return;let o=eM.getTreeNode(e);if(!o)return;let a=o.nodeToRestore,i=eS(r.body,{tabbable:!0});i.currentNode=n;let l=t.shiftKey?i.previousNode():i.nextNode();if(a&&r.body.contains(a)&&a!==r.body||(a=void 0,o.nodeToRestore=void 0),(!l||!ex(l,e.current))&&a){i.currentNode=a;do l=t.shiftKey?i.previousNode():i.nextNode();while(ex(l,e.current));(t.preventDefault(),t.stopPropagation(),l)?eN(l,!0):eE(a)?eN(a,!0):n.blur()}};return n||r.addEventListener("keydown",o,!0),()=>{n||r.removeEventListener("keydown",o,!0)}},[e,t,n]),(0,ef.b)(()=>{var n;let o=(0,ed.r)(e.current?e.current[0]:void 0);if(!t)return;let a=eM.getTreeNode(e);if(a)return a.nodeToRestore=null!==(n=r.current)&&void 0!==n?n:void 0,()=>{let n=eM.getTreeNode(e);if(!n)return;let r=n.nodeToRestore;if(t&&r&&(ex(o.activeElement,e.current)||o.activeElement===o.body&&function(e){let t=eM.getTreeNode(eh);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=eM.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){eN(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&eM.getTreeNode(n.scopeRef)){eP(n.scopeRef.current,!0);return}n=n.parent}}})}}},[e,t])}(c,a,o),function(e,t){let n=x.useRef(t);(0,x.useEffect)(()=>{n.current&&(eh=e,!ex((0,ed.r)(e.current?e.current[0]:void 0).activeElement,eh.current)&&e.current&&eP(e.current)),n.current=!1},[e])}(c,i),(0,x.useEffect)(()=>{let e=(0,ed.r)(c.current?c.current[0]:void 0).activeElement,t=null;if(ex(e,c.current)){for(let n of eM.traverse())n.scopeRef&&ex(e,n.scopeRef.current)&&(t=n);t===eM.getTreeNode(c)&&(eh=t.scopeRef)}},[c]),(0,ef.b)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=eM.getTreeNode(c))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(c===eh||eR(c,eh))&&(!r||eM.getTreeNode(r))&&(eh=r),eM.removeTreeNode(c)},[c]);let f=(0,x.useMemo)(()=>({focusNext(e={}){let t=c.current,{from:n,tabbable:r,wrap:o,accept:a}=e,i=n||(0,ed.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=eS(ey(t),{tabbable:r,accept:a},t);u.currentNode=ex(i,t)?i:l;let s=u.nextNode();return!s&&o&&(u.currentNode=l,s=u.nextNode()),s&&eN(s,!0),s},focusPrevious(e={}){let t=c.current,{from:n,tabbable:r,wrap:o,accept:a}=e,i=n||(0,ed.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=eS(ey(t),{tabbable:r,accept:a},t);u.currentNode=ex(i,t)?i:l;let s=u.previousNode();return!s&&o&&(u.currentNode=l,s=u.previousNode()),s&&eN(s,!0),s},focusFirst(e={}){let t=c.current,{tabbable:n,accept:r}=e,o=eS(ey(t),{tabbable:n,accept:r},t);o.currentNode=t[0].previousElementSibling;let a=o.nextNode();return a&&eN(a,!0),a},focusLast(e={}){let t=c.current,{tabbable:n,accept:r}=e,o=eS(ey(t),{tabbable:n,accept:r},t);o.currentNode=t[t.length-1].nextElementSibling;let a=o.previousNode();return a&&eN(a,!0),a}}),[]),p=(0,x.useMemo)(()=>({focusManager:f,parentNode:d}),[d,f]);return x.createElement(ep.Provider,{value:p},x.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),r,x.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}let ev=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],eg=ev.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ev.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let eb=ev.join(':not([hidden]):not([tabindex="-1"]),');function ey(e){return e[0].parentElement}function ew(e){let t=eM.getTreeNode(eh);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function ex(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function eE(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of eM.traverse(eM.getTreeNode(t)))if(n&&ex(e,n.current))return!0;return!1}function eR(e,t){var n;let r=null===(n=eM.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function eN(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,es.e)(e)}catch(e){}}function eP(e,t=!0){let n=e[0].previousElementSibling,r=ey(e),o=eS(r,{tabbable:t},e);o.currentNode=n;let a=o.nextNode();t&&!a&&((o=eS(r=ey(e),{tabbable:!1},e)).currentNode=n,a=o.nextNode()),eN(a)}function eS(e,t,n){let r=(null==t?void 0:t.tabbable)?eb:eg,o=(0,ed.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,ed.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o="none"!==n&&"hidden"!==r&&"collapse"!==r;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||ex(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class ej{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new eC({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ex(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new ej;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new eC({scopeRef:null}),this.fastMap.set(null,this.root)}}class eC{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let eM=new ej;var eO=n(3458),eT=n(1464);let ek=x.createContext(null);function e_(e){var t;let n=(0,eT.Av)(),{portalContainer:r=n?null:document.body,isExiting:o}=e,[a,i]=(0,x.useState)(!1),l=(0,x.useMemo)(()=>({contain:a,setContain:i}),[a,i]),{getContainer:u}=null!==(t=(0,x.useContext)(el))&&void 0!==t?t:{};if(!e.portalContainer&&u&&(r=u()),!r)return null;let c=e.children;return e.disableFocusManagement||(c=x.createElement(em,{restoreFocus:!0,contain:a&&!o},c)),c=x.createElement(ek.Provider,{value:l},x.createElement(ec,null,c)),eO.createPortal(c,r)}var eL=n(7573),eI=(0,f.Gp)((e,t)=>{var n,r;let{className:o,children:a,portalContainer:i,motionProps:l,style:u,...c}=e,f=(0,p.gy)(t),{slots:E,isMenuOpen:R,height:N,disableAnimation:P,classNames:S}=(0,s.q)(),j=(0,h.W)(null==S?void 0:S.menu,o),C=(0,x.useCallback)(e=>{let{children:t}=e;return(0,eL.jsx)(ei,{forwardProps:!0,enabled:R,removeScrollBar:!1,children:t})},[R]),M=P?(0,eL.jsx)(C,{children:(0,eL.jsx)("ul",{ref:f,className:null==(n=E.menu)?void 0:n.call(E,{class:j}),"data-open":(0,m.PB)(R),style:{"--navbar-height":"number"==typeof N?"".concat(N,"px"):N},...c,children:a})}):(0,eL.jsx)(v.M,{mode:"wait",children:R?(0,eL.jsx)(g.X,{features:b.H,children:(0,eL.jsx)(C,{children:(0,eL.jsx)(y.m.ul,{ref:f,layoutScroll:!0,animate:"enter",className:null==(r=E.menu)?void 0:r.call(E,{class:j}),"data-open":(0,m.PB)(R),exit:"exit",initial:"exit",style:{"--navbar-height":"number"==typeof N?"".concat(N,"px"):N,...u},variants:d,...(0,w.d)(l,c),children:a})})}):null});return(0,eL.jsx)(e_,{portalContainer:i,children:M})});eI.displayName="NextUI.NavbarMenu";var eA=eI},5424:function(e,t,n){n.d(t,{k:function(){return s}});var r=n(9099),o=n(9760),a=n(3391),i=n(5058),l=n(1251),u=n(7573),c=(0,o.Gp)((e,t)=>{var n;let{as:o,className:c,children:s,isActive:d,...f}=e,p=(0,a.gy)(t),{slots:h,classNames:m}=(0,r.q)(),v=(0,i.W)(null==m?void 0:m.item,c);return(0,u.jsx)(o||"li",{ref:p,className:null==(n=h.item)?void 0:n.call(h,{class:v}),"data-active":(0,l.PB)(d),...f,children:s})});c.displayName="NextUI.NavbarItem";var s=c},2998:function(e,t,n){n.d(t,{R:function(){return v}});var r=n(7039),o={visible:{y:0,transition:{ease:[0,0,.2,1]}},hidden:{y:"-100%",transition:{ease:[.4,0,1,1]}}},a=n(4788),i=n(9099),l=n(9760),u=n(9585),c=(e,t)=>{var n;let r=[];return[null==(n=u.Children.map(e,e=>(0,u.isValidElement)(e)&&e.type===t?(r.push(e),null):e))?void 0:n.filter(Boolean),r.length>=0?r:void 0]},s=n(3940),d=n(7584),f=n(3245),p=n(8930),h=n(7573),m=(0,l.Gp)((e,t)=>{let{children:n,...l}=e,u=(0,a.R)({...l,ref:t}),m=u.Component,[v,g]=c(n,r.$),b=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("header",{...u.getWrapperProps(),children:v}),g]});return(0,h.jsx)(i.V,{value:u,children:u.shouldHideOnScroll?(0,h.jsx)(s.X,{features:d.H,children:(0,h.jsx)(f.m.nav,{animate:u.isHidden?"hidden":"visible",initial:!1,variants:o,...(0,p.d)(u.getBaseProps(),u.motionProps),children:b})}):(0,h.jsx)(m,{...u.getBaseProps(),children:b})})});m.displayName="NextUI.Navbar";var v=m},52:function(e,t,n){n.d(t,{U:function(){return c}});var r=n(9099),o=n(9760),a=n(3391),i=n(5058),l=n(7573),u=(0,o.Gp)((e,t)=>{var n;let{as:o,className:u,children:c,justify:s="start",...d}=e,f=(0,a.gy)(t),{slots:p,classNames:h}=(0,r.q)(),m=(0,i.W)(null==h?void 0:h.content,u);return(0,l.jsx)(o||"ul",{ref:f,className:null==(n=p.content)?void 0:n.call(p,{class:m}),"data-justify":s,...d,children:c})});u.displayName="NextUI.NavbarContent";var c=u},8326:function(e,t,n){n.d(t,{h:function(){return s}});var r=n(9099),o=n(9760),a=n(3391),i=n(5058),l=n(1251),u=n(7573),c=(0,o.Gp)((e,t)=>{var n;let{className:o,children:c,isActive:s,...d}=e,f=(0,a.gy)(t),{slots:p,isMenuOpen:h,classNames:m}=(0,r.q)(),v=(0,i.W)(null==m?void 0:m.menuItem,o);return(0,u.jsx)("li",{ref:f,className:null==(n=p.menuItem)?void 0:n.call(p,{class:v}),"data-active":(0,l.PB)(s),"data-open":(0,l.PB)(h),...d,children:c})});c.displayName="NextUI.NavbarMenuItem";var s=c},4788:function(e,t,n){n.d(t,{R:function(){return g}});var r=n(9996),o=n(9760),a=n(7970),i=n(6111),l=(0,a.tv)({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...i.Dh],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large","data-[active=true]:font-semibold"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height))]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),u=n(3391),c=n(4255),s=n(5058),d=n(1251),f=n(9585),p=n(8930),h="undefined"!=typeof window;function m(e){return h?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var v=e=>{let{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,a=(0,f.useRef)(o?m(null==t?void 0:t.current):{x:0,y:0}),i=(0,f.useRef)(null),l=(0,f.useCallback)(()=>{let e=m(null==t?void 0:t.current);"function"==typeof r&&r({prevPos:a.current,currPos:e}),a.current=e,i.current=null},[r,t]);return(0,f.useEffect)(()=>{if(!o)return;let e=()=>{n?(i.current&&clearTimeout(i.current),i.current=setTimeout(l,n)):l()},r=(null==t?void 0:t.current)||window;return r.addEventListener("scroll",e),()=>{r.removeEventListener("scroll",e),i.current&&(clearTimeout(i.current),i.current=null)}},[null==t?void 0:t.current,n,l,o]),a.current};function g(e){var t,n;let a=(0,r.w)(),[i,h]=(0,o.oe)(e,l.variantKeys),{ref:m,as:g,parentRef:b,height:y="4rem",shouldHideOnScroll:w=!1,disableScrollHandler:x=!1,onScrollPositionChange:E,isMenuOpen:R,isMenuDefaultOpen:N,onMenuOpenChange:P=()=>{},motionProps:S,className:j,classNames:C,...M}=i,O=null!=(n=null!=(t=e.disableAnimation)?t:null==a?void 0:a.disableAnimation)&&n,T=(0,u.gy)(m),k=(0,f.useRef)(0),_=(0,f.useRef)(0),[L,I]=(0,f.useState)(!1),[A,W]=function(e,t,n){let[r,o]=(0,f.useState)(e||t),a=(0,f.useRef)(void 0!==e),i=void 0!==e;(0,f.useEffect)(()=>{let e=a.current;e!==i&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:r,u=(0,f.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),i||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((n,...o)=>{let a=e(i?l:n,...o);return(r(a,...t),i)?n:a})):(i||o(e),r(e,...t))},[i,l,n]);return[l,u]}(R,null!=N&&N,(0,f.useCallback)(e=>{P(e||!1)},[P])),U=()=>{if(T.current){let e=T.current.offsetWidth;e!==k.current&&(k.current=e)}};!function(e){let{ref:t,onResize:n}=e;(0,f.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{let t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e),()=>{e&&t.unobserve(e)}}}},[n,t])}({ref:T,onResize:()=>{var e;(null==(e=T.current)?void 0:e.offsetWidth)!==k.current&&(U(),W(!1))}}),(0,f.useEffect)(()=>{var e;U(),_.current=(null==(e=T.current)?void 0:e.offsetHeight)||0},[]);let B=(0,f.useMemo)(()=>l({...h,disableAnimation:O,hideOnScroll:w}),[(0,c.Xx)(h),O,w]),F=(0,s.W)(null==C?void 0:C.base,j);return v({elementRef:b,isEnabled:w||!x,callback:e=>{let{prevPos:t,currPos:n}=e;null==E||E(n.y),w&&I(e=>{let r=n.y>t.y&&n.y>_.current;return r!==e?r:e})}}),{Component:g||"nav",slots:B,domRef:T,height:y,isHidden:L,disableAnimation:O,shouldHideOnScroll:w,isMenuOpen:A,classNames:C,setIsMenuOpen:W,motionProps:S,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,p.d)(M,e),"data-hidden":(0,d.PB)(L),"data-menu-open":(0,d.PB)(A),ref:T,className:B.base({class:(0,s.W)(F,null==e?void 0:e.className)}),style:{"--navbar-height":"number"==typeof y?"".concat(y,"px"):y,...null==M?void 0:M.style,...null==e?void 0:e.style}}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-menu-open":(0,d.PB)(A),className:B.wrapper({class:(0,s.W)(null==C?void 0:C.wrapper,null==e?void 0:e.className)})}}}}},1898:function(e,t,n){n.d(t,{H:function(){return c}});var r=n(9099),o=n(9760),a=n(3391),i=n(5058),l=n(7573),u=(0,o.Gp)((e,t)=>{var n;let{as:o,className:u,children:c,...s}=e,d=(0,a.gy)(t),{slots:f,classNames:p}=(0,r.q)(),h=(0,i.W)(null==p?void 0:p.brand,u);return(0,l.jsx)(o||"div",{ref:d,className:null==(n=f.brand)?void 0:n.call(f,{class:h}),...s,children:c})});u.displayName="NextUI.NavbarBrand";var c=u},69:function(e,t,n){n.d(t,{RD:function(){return a.R},UG:function(){return i.H},Vy:function(){return d.V},Ys:function(){return c.h},e9:function(){return u.k},ej:function(){return s.L},ez:function(){return o.$},qL:function(){return d.q},ur:function(){return l.U},wp:function(){return r.R}});var r=n(2998),o=n(7039),a=n(4788),i=n(1898),l=n(52),u=n(5424),c=n(8326),s=n(8599),d=n(9099)},1464:function(e,t,n){n.d(t,{Av:function(){return c}});var r=n(9585);let o={prefix:String(Math.round(1e10*Math.random())),current:0},a=(r.createContext(o),r.createContext(!1));function i(){return!1}function l(){return!0}function u(e){return()=>{}}function c(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(u,i,l):(0,r.useContext)(a)}"undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap,r.useId}}]);