1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[991],{58:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(9601),o=r(7673),i=r.t(o,2),a=r(9667),l=i["use".trim()],s=r(1359),u=r(5578),c=r(6532),f=r(7837),d=r(8312);function p(e){let{Link:t,config:r,getPathname:i,...p}=function(e,t){var r,i,a;let d={...r=t||{},localePrefix:"object"==typeof(a=r.localePrefix)?a:{mode:a||"always"},localeCookie:!!((i=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof i&&i},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},p=d.pathnames,m=(0,o.forwardRef)(function({href:t,locale:r,...n},o){let i,a;"object"==typeof t?(i=t.pathname,a=t.params):i=t;let c=(0,s._x)(t),m=e(),y=(0,s.yL)(m)?l(m):m,v=c?h({locale:r||y,href:null==p?i:{pathname:i,params:a},forcePrefix:null!=r||void 0}):i;return(0,f.jsx)(u.default,{ref:o,href:"object"==typeof t?{...t,pathname:v}:v,locale:r,localeCookie:d.localeCookie,...n})});function h(e){let t,{forcePrefix:r,href:n,locale:o}=e;return null==p?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,c.Zn)(n.query))):t=n:t=(0,c.FP)({locale:o,...(0,c.TK)(n),pathnames:d.pathnames}),(0,c.x3)(t,o,d,r)}function y(e){return function(t,...r){return e(h(t),...r)}}return{config:d,Link:m,redirect:y(n.redirect),permanentRedirect:y(n.permanentRedirect),getPathname:h}}(a.Ym,e);return{...p,Link:t,usePathname:function(){let e=function(e){let t=(0,n.usePathname)(),r=(0,a.Ym)();return(0,o.useMemo)(()=>{if(!t)return t;let n=t,o=(0,s.XP)(r,e.localePrefix);if((0,s.wO)(o,t))n=(0,s.MY)(t,o);else if("as-needed"===e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,s.bL)(r);(0,s.wO)(e,t)&&(n=(0,s.MY)(t,e))}return n},[e.localePrefix,r,t])}(r),t=(0,a.Ym)();return(0,o.useMemo)(()=>e&&r.pathnames?(0,c.aM)(t,e,r.pathnames):e,[t,e])},useRouter:function(){let e=(0,n.useRouter)(),t=(0,a.Ym)(),l=(0,n.usePathname)();return(0,o.useMemo)(()=>{function n(e){return function(n,o){let{locale:a,...s}=o||{},u=[i({href:n,locale:a||t})];Object.keys(s).length>0&&u.push(s),(0,d.A)(r.localeCookie,l,t,a),e(...u)}}return{...e,push:n(e.push),replace:n(e.replace),prefetch:n(e.prefetch)}},[t,l,e])},getPathname:i}}},845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=r(3626),o=r(6035);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},883:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},1101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return y},useLinkStatus:function(){return g}});let n=r(2265),o=r(7837),i=n._(r(7673)),a=r(6868),l=r(2306),s=r(2454),u=r(3626),c=r(3544);r(7403);let f=r(501),d=r(845),p=r(4945);r(883);let m=r(4346);function h(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function y(e){var t;let r,n,a,[y,g]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:b,as:E,children:x,prefetch:T=null,passHref:P,replace:C,shallow:R,scroll:S,onClick:_,onMouseEnter:N,onTouchStart:O,legacyBehavior:L=!1,onNavigate:M,ref:A,unstable_dynamicOnHover:k,...I}=e;r=x,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let j=i.default.useContext(l.AppRouterContext),F=!1!==T,D=!1!==T?null===(t=T)||"auto"===t?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:U,as:z}=i.default.useMemo(()=>{let e=h(b);return{href:e,as:E?h(E):e}},[b,E]);L&&(n=i.default.Children.only(r));let K=L?n&&"object"==typeof n&&n.ref:A,W=i.default.useCallback(e=>(null!==j&&(w.current=(0,f.mountLinkInstance)(e,U,j,D,F,g)),()=>{w.current&&((0,f.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,f.unmountPrefetchableInstance)(e)}),[F,U,j,D,g]),q={ref:(0,s.useMergedRef)(W,K),onClick(e){L||"function"!=typeof _||_(e),L&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),j&&(e.defaultPrevented||function(e,t,r,n,o,a,l){let{nodeName:s}=e.currentTarget;if(!("A"===s.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)||e.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,p.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,U,z,w,C,S,M))},onMouseEnter(e){L||"function"!=typeof N||N(e),L&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),j&&F&&(0,f.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){L||"function"!=typeof O||O(e),L&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),j&&F&&(0,f.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,u.isAbsoluteUrl)(z)?q.href=z:L&&!P&&("a"!==n.type||"href"in n.props)||(q.href=(0,c.addBasePath)(z)),a=L?i.default.cloneElement(n,q):(0,o.jsx)("a",{...I,...q,children:r}),(0,o.jsx)(v.Provider,{value:y,children:a})}let v=(0,i.createContext)(f.IDLE_LINK_STATUS),g=()=>(0,i.useContext)(v);("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)},1359:(e,t,r)=>{"use strict";r.d(t,{FD:()=>v,MY:()=>i,PJ:()=>a,Wl:()=>s,XP:()=>f,_x:()=>o,bL:()=>d,po:()=>u,ql:()=>c,wO:()=>l,yL:()=>g});var n=r(4658);function o(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function i(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function a(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}function l(e,t){return t===e||t.startsWith(`${e}/`)}function s(e,t,r){return"string"==typeof e?e:e[t]||r}function u(e){let t=function(){try{return"true"===n.env._next_intl_trailing_slash}catch{return!1}}(),[r,...o]=e.split("#"),i=o.join("#"),a=r;if("/"!==a){let e=a.endsWith("/");t&&!e?a+="/":!t&&e&&(a=a.slice(0,-1))}return i&&(a+="#"+i),a}function c(e,t){let r=u(e),n=u(t);return(function(e){let t=e.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${t}$`)})(r).test(n)}function f(e,t){return"never"!==t.mode&&t.prefixes?.[e]||d(e)}function d(e){return"/"+e}function p(e){return e.includes("[[...")}function m(e){return e.includes("[...")}function h(e){return e.includes("[")}function y(e,t){let r=e.split("/"),n=t.split("/"),o=Math.max(r.length,n.length);for(let e=0;e<o;e++){let t=r[e],o=n[e];if(!t&&o)return -1;if(t&&!o)return 1;if(t||o){if(!h(t)&&h(o))return -1;if(h(t)&&!h(o))return 1;if(!m(t)&&m(o))return -1;if(m(t)&&!m(o))return 1;if(!p(t)&&p(o))return -1;if(p(t)&&!p(o))return 1}}return 0}function v(e){return e.sort(y)}function g(e){return"function"==typeof e.then}},1976:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_dd5b2f",variable:"__variable_dd5b2f"}},2454:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(7673);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},3404:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},3626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return v},NormalizeError:function(){return h},PageNotFoundError:function(){return y},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return w}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}
1class h extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},4110:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(9667),o=r(7837);function i(e){let{locale:t,...r}=e;if(!t)throw Error(void 0);return(0,o.jsx)(n.Dk,{locale:t,...r})}},4574:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{A:()=>n})},5002:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3515).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},5578:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var n=r(1101),o=r(9601),i=r(7673),a=r(9667),l=r(8312),s=r(7837),u=(0,i.forwardRef)(function(e,t){let{href:r,locale:i,localeCookie:u,onClick:c,prefetch:f,...d}=e,p=(0,a.Ym)(),m=null!=i&&i!==p,h=(0,o.usePathname)();return m&&(f=!1),(0,s.jsx)(n,{ref:t,href:r,hrefLang:m?i:void 0,onClick:function(e){(0,l.A)(u,h,p,i),c&&c(e)},prefetch:f,...d})})},5639:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>es});var n,o,i=r(7673),a=r.t(i,2),l=r(4844);function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var u=r(1573);function c(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function f(e,t){var r=c(e,t,"get");return r.get?r.get.call(e):r.value}function d(e,t,r){var n=c(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}var p=r(7837);function m(e,t=[]){let r=[],n=()=>{let t=r.map(e=>i.createContext(e));return function(r){let n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=i.createContext(n),a=r.length;r=[...r,n];let l=t=>{let{scope:r,children:n,...l}=t,s=r?.[e]?.[a]||o,u=i.useMemo(()=>l,Object.values(l));return(0,p.jsx)(s.Provider,{value:u,children:n})};return l.displayName=t+"Provider",[l,function(r,l){let s=l?.[e]?.[a]||o,u=i.useContext(s);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}var h=r(7807),y=new WeakMap;function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=g(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function g(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return y.get(this)&&(this.has(e)?f(this,n)[f(this,n).indexOf(e)]=e:f(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let o,i=this.has(t),a=f(this,n).length,l=g(e),s=l>=0?l:a+l,u=s<0||s>=a?-1:s;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!i;l<0&&s++;let d=[...f(this,n)],p=!1;for(let e=s;e<c;e++)if(s===e){let n=d[e];d[e]===t&&(n=d[e+1]),i&&this.delete(t),o=this.get(n),this.set(t,r)}else{p||d[e-1]!==t||(p=!0);let r=d[p?e:e-1],n=o;o=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=f(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let o=f(this,n).indexOf(e);return -1===o?this:this.insert(o,t,r)}after(e){let t=f(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let o=f(this,n).indexOf(e);return -1===o?this:this.insert(o+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return d(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&f(this,n).splice(f(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=v(f(this,n),e);
1if(void 0!==t)return this.get(t)}entryAt(e){let t=v(f(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return f(this,n).indexOf(e)}keyAt(e){return v(f(this,n),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,i=0,a=null!=o?o:this.at(0);for(let e of this)a=0===i&&1===t.length?e:Reflect.apply(n,this,[a,e,i,this]),i++;return a}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);i=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[i,r,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,n,{writable:!0,value:void 0}),d(this,n,[...super.keys()]),y.set(this,!0)}};var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,h.TL)(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function b(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}function E(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var x="dismissableLayer.update",T=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=i.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...h}=e,y=i.useContext(T),[v,g]=i.useState(null),b=null!=(n=null==v?void 0:v.ownerDocument)?n:null==(r=globalThis)?void 0:r.document,[,P]=i.useState({}),C=(0,u.s)(t,e=>g(e)),_=Array.from(y.layers),[N]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),O=_.indexOf(N),L=v?_.indexOf(v):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,A=L>=O,k=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=E(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){S("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));A&&!r&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==m||m())},b),I=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=E(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>
1{e.target&&!o.current&&S("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(null==f||f(e),null==d||d(e),e.defaultPrevented||null==m||m())},b);return!function(e,t=globalThis?.document){let r=E(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{L===y.layers.size-1&&(null==l||l(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},b),i.useEffect(()=>{if(v)return a&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(v)),y.layers.add(v),R(),()=>{a&&1===y.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[v,b,a,y]),i.useEffect(()=>()=>{v&&(y.layers.delete(v),y.layersWithOutsidePointerEventsDisabled.delete(v),R())},[v,y]),i.useEffect(()=>{let e=()=>P({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,p.jsx)(w.div,{...h,ref:C,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,I.onFocusCapture),onBlurCapture:s(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,k.onPointerDownCapture)})});P.displayName="DismissableLayer";var C=i.forwardRef((e,t)=>{let r=i.useContext(T),n=i.useRef(null),o=(0,u.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,p.jsx)(w.div,{...e,ref:o})});function R(){let e=new CustomEvent(x);document.dispatchEvent(e)}function S(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?b(i,a):i.dispatchEvent(a)}C.displayName="DismissableLayerBranch";var _=globalThis?.document?i.useLayoutEffect:()=>{},N=i.forwardRef((e,t)=>{var r,n;let{container:o,...a}=e,[s,u]=i.useState(!1);_(()=>u(!0),[]);let c=o||s&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return c?l.createPortal((0,p.jsx)(w.div,{...a,ref:t}),c):null});N.displayName="Portal";var O=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,o]=i.useState(),a=i.useRef(null),l=i.useRef(e),s=i.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return i.useEffect(()=>{let e=L(a.current);s.current="mounted"===u?e:"none"},[u]),_(()=>{let t=a.current,r=l.current;if(r!==e){let n=s.current,o=L(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),_(()=>{if(n){var e;let t,r=null!=(e=n.ownerDocument.defaultView)?e:window,o=e=>{let o=L(a.current).includes(CSS.escape(e.animationName));if(e.target===n&&o&&(c("ANIMATION_END"),!l.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},i=e=>{e.target===n&&(s.current=L(a.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),a=(0,u.s)(n.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:a}):null};function L(e){return(null==e?void 0:e.animationName)||"none"}O.displayName="Presence";var M=a[" useInsertionEffect ".trim().toString()]||_;Symbol("RADIX:SYNC_STATE");var A=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),k=i.forwardRef((e,t)=>
1(0,p.jsx)(w.span,{...e,ref:t,style:{...A,...e.style}}));k.displayName="VisuallyHidden";var I="ToastProvider",[j,F,D]=function(e){let t=e+"CollectionProvider",[r,n]=m(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,p.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};l.displayName=t;let s=e+"CollectionSlot",c=(0,h.TL)(s),f=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=a(s,r),i=(0,u.s)(t,o.collectionRef);return(0,p.jsx)(c,{ref:i,children:n})});f.displayName=s;let d=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,h.TL)(d),g=i.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,l=i.useRef(null),s=(0,u.s)(t,l),c=a(d,r);return i.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,p.jsx)(v,{...{[y]:""},ref:s,children:n})});return g.displayName=d,[{Provider:l,Slot:f,ItemSlot:g},function(t){let r=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}("Toast"),[U,z]=m("Toast",[D]),[K,W]=U(I),q=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:l}=e,[s,u]=i.useState(null),[c,f]=i.useState(0),d=i.useRef(!1),m=i.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(I,"`. Expected non-empty `string`.")),(0,p.jsx)(j.Provider,{scope:t,children:(0,p.jsx)(K,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:i.useCallback(()=>f(e=>e+1),[]),onToastRemove:i.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:l})})};q.displayName=I;var $="ToastViewport",V=["F8"],B="toast.viewportPause",H="toast.viewportResume";i.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:n=V,label:o="Notifications ({hotkey})",...a}=e,l=W($,r),s=F(r),c=i.useRef(null),f=i.useRef(null),d=i.useRef(null),m=i.useRef(null),h=(0,u.s)(t,m,l.onViewportChange),y=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=l.toastCount>0;i.useEffect(()=>{let e=e=>{var t;0!==n.length&&n.every(t=>e[t]||e.code===t)&&(null==(t=m.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),i.useEffect(()=>{let e=c.current,t=m.current;if(v&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(B);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(H);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},i=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",i),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[v,l.isClosePausedRef]);let g=i.useCallback(e=>{let{tabbingDirection:t}=e,r=s().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[s]);return i.useEffect(()=>{let e=m.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,i;let r=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null==(n=f.current)||n.focus();return}let l=g({tabbingDirection:a?"backwards":"forwards"}),s=l.findIndex(e=>e===r);el(l.slice(s+1))?t.preventDefault():a?null==(o=f.current)||o.focus():null==(i=d.current)||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[s,g]),(0,p.jsxs)(C,{ref:c,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&(0,p.jsx)(G,{ref:f,onFocusFromOutsideViewport:()=>{el(g({tabbingDirection:"forwards"}))}}),(0,p.jsx)(j.Slot,{scope:r,children:(0,p.jsx)(w.ol,{tabIndex:-1,...a,ref:h})}),v&&(0,p.jsx)(G,{ref:d,onFocusFromOutsideViewport:()=>{el(g({tabbingDirection:"backwards"}))}})]})}).displayName=$;var Y="ToastFocusProxy",G=i.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=W(Y,r);return(0,p.jsx)(k,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=i.viewport)?void 0:t.contains(r))||n()}})});G.displayName=Y;var X="Toast";i.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:o,onOpenChange:a,...l}=e,[u,c]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return M(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),s=void 0!==e,u=s?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,n])}return[u,i.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[s,e,a,l])]}({prop:n,defaultProp:null==o||o,onChange:a,caller:X});return(0,p.jsx)(O,{present:r||u,children:(0,p.jsx)(Q,{open:u,...l,ref:t,onClose:()=>c(!1),onPause:E(e.onPause),onResume:E(e.onResume),onSwipeStart:s(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:s(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:s(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:s(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),c(!1)})})})}).displayName=X;var[J,Z]=U(X,{onClose(){}}),Q=i.forwardRef((e,t)=>
1{let{__scopeToast:r,type:n="foreground",duration:o,open:a,onClose:c,onEscapeKeyDown:f,onPause:d,onResume:m,onSwipeStart:h,onSwipeMove:y,onSwipeCancel:v,onSwipeEnd:g,...b}=e,x=W(X,r),[T,C]=i.useState(null),R=(0,u.s)(t,e=>C(e)),S=i.useRef(null),_=i.useRef(null),N=o||x.duration,O=i.useRef(0),L=i.useRef(N),M=i.useRef(0),{onToastAdd:A,onToastRemove:k}=x,I=E(()=>{var e;(null==T?void 0:T.contains(document.activeElement))&&(null==(e=x.viewport)||e.focus()),c()}),F=i.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(M.current),O.current=new Date().getTime(),M.current=window.setTimeout(I,e))},[I]);i.useEffect(()=>{let e=x.viewport;if(e){let t=()=>{F(L.current),null==m||m()},r=()=>{let e=new Date().getTime()-O.current;L.current=L.current-e,window.clearTimeout(M.current),null==d||d()};return e.addEventListener(B,r),e.addEventListener(H,t),()=>{e.removeEventListener(B,r),e.removeEventListener(H,t)}}},[x.viewport,N,d,m,F]),i.useEffect(()=>{a&&!x.isClosePausedRef.current&&F(N)},[a,N,x.isClosePausedRef,F]),i.useEffect(()=>(A(),()=>k()),[A,k]);let D=i.useMemo(()=>T?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n)if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(T):null,[T]);return x.viewport?(0,p.jsxs)(p.Fragment,{children:[D&&(0,p.jsx)(ee,{__scopeToast:r,role:"status","aria-live":"foreground"===n?"assertive":"polite",children:D}),(0,p.jsx)(J,{scope:r,onClose:I,children:l.createPortal((0,p.jsx)(j.ItemSlot,{scope:r,children:(0,p.jsx)(P,{asChild:!0,onEscapeKeyDown:s(f,()=>{x.isFocusedToastEscapeKeyDownRef.current||I(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,p.jsx)(w.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:s(e.onKeyDown,e=>{"Escape"===e.key&&(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:s(e.onPointerDown,e=>{0===e.button&&(S.current={x:e.clientX,y:e.clientY})}),onPointerMove:s(e.onPointerMove,e=>{if(!S.current)return;let t=e.clientX-S.current.x,r=e.clientY-S.current.y,n=!!_.current,o=["left","right"].includes(x.swipeDirection),i=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,l=o?0:i(0,r),s="touch"===e.pointerType?10:2,u={x:a,y:l},c={originalEvent:e,delta:u};n?(_.current=u,ei("toast.swipeMove",y,c,{discrete:!1})):ea(u,x.swipeDirection,s)?(_.current=u,ei("toast.swipeStart",h,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(S.current=null)}),onPointerUp:s(e.onPointerUp,e=>{let t=_.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),_.current=null,S.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};ea(t,x.swipeDirection,x.swipeThreshold)?ei("toast.swipeEnd",g,n,{discrete:!0}):ei("toast.swipeCancel",v,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),ee=e=>{let{__scopeToast:t,children:r,...n}=e,o=W(X,t),[a,l]=i.useState(!1),[s,u]=i.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=E(e);_(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),i.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,p.jsx)(N,{asChild:!0,children:(0,p.jsx)(k,{...n,children:a&&(0,p.jsxs)(p.Fragment,{children:[o.label," ",r]})})})};i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,p.jsx)(w.div,{...n,ref:t})}).displayName="ToastTitle",i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,p.jsx)(w.div,{...n,ref:t})}).displayName="ToastDescription";var et="ToastAction";i.forwardRef((e,t)=>
1{let{altText:r,...n}=e;return r.trim()?(0,p.jsx)(eo,{altText:r,asChild:!0,children:(0,p.jsx)(en,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(et,"`. Expected non-empty `string`.")),null)}).displayName=et;var er="ToastClose",en=i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,o=Z(er,r);return(0,p.jsx)(eo,{asChild:!0,children:(0,p.jsx)(w.button,{type:"button",...n,ref:t,onClick:s(e.onClick,o.onClose)})})});en.displayName=er;var eo=i.forwardRef((e,t)=>{let{__scopeToast:r,altText:n,...o}=e;return(0,p.jsx)(w.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function ei(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?b(i,a):i.dispatchEvent(a)}var ea=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return"left"===t||"right"===t?i&&n>r:!i&&o>r};function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var es=q},6532:(e,t,r)=>{"use strict";r.d(t,{DT:()=>s,FP:()=>a,TK:()=>o,Zn:()=>i,aM:()=>l,x3:()=>u});var n=r(1359);function o(e){return"string"==typeof e?{pathname:e}:e}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.append(r,String(e))}):t.set(r,String(n));return"?"+t.toString()}function a({pathname:e,locale:t,params:r,pathnames:o,query:a}){function l(e){let l,s=o[e];return s?(l=(0,n.Wl)(s,t,e),r&&Object.entries(r).forEach(([e,t])=>{let r,n;Array.isArray(t)?(r=`(\\[)?\\[...${e}\\](\\])?`,n=t.map(e=>String(e)).join("/")):(r=`\\[${e}\\]`,n=String(t)),l=l.replace(RegExp(r,"g"),n)}),l=(l=l.replace(/\[\[\.\.\..+\]\]/g,"")).split("/").map(e=>encodeURIComponent(e)).join("/")):l=e,l=(0,n.po)(l),a&&(l+=i(a)),l}if("string"==typeof e)return l(e);{let{pathname:t,...r}=e;return{...r,pathname:l(t)}}}function l(e,t,r){let o=(0,n.FD)(Object.keys(r)),i=decodeURI(t);for(let t of o){let o=r[t];if("string"==typeof o){if((0,n.ql)(o,i))return t}else if((0,n.ql)((0,n.Wl)(o,e,t),i))return t}return t}function s(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function u(e,t,r,o){let i,{mode:a}=r.localePrefix;return void 0!==o?i=o:(0,n._x)(e)&&("always"===a?i=!0:"as-needed"===a&&(i=r.domains?!r.domains.some(e=>e.defaultLocale===t):t!==r.defaultLocale)),i?(0,n.PJ)((0,n.XP)(t,r.localePrefix),e):e}},6868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let n=r(2265)._(r(3404)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},7067:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>f});var n=r(7673),o=(e,t,r,n,o,i,a,l)=>{let s=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&i?o.map(e=>i[e]||e):o;r?(s.classList.remove(...n),s.classList.add(i&&i[t]?i[t]:t)):s.setAttribute(e,t)}),r=t,l&&u.includes(r)&&(s.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},i=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,s=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(s))?e:u},f=e=>n.useContext(s)?n.createElement(n.Fragment,null,e.children):n.createElement(p,{...e}),d=["light","dark"],p=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=d,defaultTheme:f=o?"system":"light",attribute:p="data-theme",value:g,children:w,nonce:b,scriptProps:E}=e,[x,T]=n.useState(()=>h(u,f)),[P,C]=n.useState(()=>"system"===x?v():x),R=g?Object.values(g):c,S=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=v());let n=g?g[t]:t,a=r?y(b):null,s=document.documentElement,u=e=>{"class"===e?(s.classList.remove(...R),n&&s.classList.add(n)):e.startsWith("data-")&&(n?s.setAttribute(e,n):s.removeAttribute(e))};if(Array.isArray(p)?p.forEach(u):u(p),l){let e=i.includes(f)?f:null,r=i.includes(t)?t:e;s.style.colorScheme=r}null==a||a()},[b]),_=n.useCallback(e=>{let t="function"==typeof e?e(x):e;T(t);try{localStorage.setItem(u,t)}catch(e){}},[x]),N=n.useCallback(e=>{C(v(e)),"system"===x&&o&&!t&&S("system")},[x,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(N),N(e),()=>e.removeListener(N)},[N]),n.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?T(e.newValue):_(f))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),n.useEffect(()=>{S(null!=t?t:x)},[t,x]);let O=n.useMemo(()=>({theme:x,setTheme:_,forcedTheme:t,resolvedTheme:"system"===x?P:x,themes:o?[...c,"system"]:c,systemTheme:o?P
1:void 0}),[x,_,t,P,o,c]);return n.createElement(s.Provider,{value:O},n.createElement(m,{forcedTheme:t,storageKey:u,attribute:p,enableSystem:o,enableColorScheme:l,defaultTheme:f,value:g,themes:c,nonce:b,scriptProps:E}),w)},m=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:s,value:u,themes:c,nonce:f,scriptProps:d}=e,p=JSON.stringify([i,r,s,t,c,u,a,l]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?f:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),h=(e,t)=>{let r;if(!l){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},7960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return h}});let n=r(8044),o=r(2265),i=r(7837),a=n._(r(4844)),l=o._(r(7673)),s=r(3179),u=r(7647),c=r(8651),f=new Map,d=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:l="",strategy:s="afterInteractive",onError:c,stylesheets:p}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,c);return}let h=()=>{o&&o(),d.add(m)},y=document.createElement("script"),v=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),h()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(y.innerHTML=i.__html||"",h()):l?(y.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):"",h()):t&&(y.src=t,f.set(t,v)),(0,u.setAttributesFromProps)(y,e),"worker"===s&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",s),p&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(p),document.body.appendChild(y)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function h(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:u="afterInteractive",onError:f,stylesheets:m,...h}=e,{updateScripts:y,scripts:v,getIsSsr:g,appDir:w,nonce:b}=(0,l.useContext)(s.HeadManagerContext);b=h.nonce||b;let E=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||r;E.current||(o&&e&&d.has(e)&&o(),E.current=!0)},[o,t,r]);let x=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!x.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));x.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(y?(v[u]=(v[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h,nonce:b}]),y(v)):g&&g()?d.add(t||r):g&&!g()&&p({...e,nonce:b})),w){if(m&&m.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}});else return a.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+J
1SON.stringify([r,{...h,id:t}])+")"}});"afterInteractive"===u&&r&&a.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("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)},8033:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},8312:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6532);function o(e,t,r,o){if(!e||o===r||null==o||!t)return;let i=(0,n.DT)(t),{name:a,...l}=e;l.path||(l.path=""!==i?i:"/");let s=`${a}=${o};`;for(let[e,t]of Object.entries(l))s+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(s+="="+t),s+=";";document.cookie=s}},8651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="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)},n="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)},9601:(e,t,r)=>{"use strict";var n=r(4914);r.o(n,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return n.permanentRedirect}}),r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},9667:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>y,Ym:()=>v});var n=r(7673);function o(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function i(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}var a=function(){return JSON.stringify(arguments)},l=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),s={create:function(){return new l}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)}},c=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(c||{});function f(e){return function(...e){return e.filter(Boolean).join(".")}(e.namespace,e.key)}function d(e){console.error(e)}function p(e,t){return function(e,t){var r,n,l;return n=(r={cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:u.variadic}).cache?r.cache:s,l=r&&r.serializer?r.serializer:a,(r&&r.strategy?r.strategy:function(e,t){var r,n,a=1===e.length?o:i;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)})(e,{cache:n,serializer:l})}((...t)=>new e(...t),t)}var m=r(7837);let h=(0,n.createContext)(void 0);function y({children:e,formats:t,getMessageFallback:r,locale:o,messages:i,now:a,onError:l,timeZone:s}){let u=(0,n.useContext)(h),c=(0,n.useMemo)(()=>u?.cache||{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},[o,u?.cache]),y=(0,n.useMemo)(()=>u?.formatters||{getDateTimeFormat:p(Intl.DateTimeFormat,c.dateTime),getNumberFormat:p(Intl.NumberFormat,c.number),getPluralRules:p(Intl.PluralRules,c.pluralRules),getRelativeTimeFormat:p(Intl.RelativeTimeFormat,c.relativeTime),getListFormat:p(Intl.ListFormat,c.list),getDisplayNames:p(Intl.DisplayNames,c.displayNames)},[c,u?.formatters]),v=(0,n.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:n,...o}){return{...o,formats:e||void 0,messages:r||void 0,onError:n||d,getMessageFallback:t||f}}({locale:o,formats:void 0===t?u?.formats:t,getMessageFallback:r||u?.getMe
1ssageFallback,messages:void 0===i?u?.messages:i,now:a||u?.now,onError:l||u?.onError,timeZone:s||u?.timeZone}),formatters:y,cache:c}),[c,t,y,r,o,i,a,l,u,s]);return(0,m.jsx)(h.Provider,{value:v,children:e})}function v(){return function(){let e=(0,n.useContext)(h);if(!e)throw Error(void 0);return e}().locale}},9677:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3515).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])}}]);
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.