scrabble-solver
Version:
Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.
5 lines • 137 kB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(4761)._(r(5729)).default.createContext(null)},277:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(1371),("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)},340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return u},isEqualNode:function(){return i}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(8374);function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function u(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,n="";if(r){let{children:e}=r.props;n="string"==typeof e?e:Array.isArray(e)?e.join(""):""}n!==document.title&&(document.title=n),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(`${e}[data-next-head]`));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let a=[];for(let e=0;e<t.length;e++){let r=function({type:e,props:t}){let r=document.createElement(e);(0,o.setAttributesFromProps)(r,t);let{children:n,dangerouslySetInnerHTML:a}=t;return a?r.innerHTML=a.__html||"":n&&(r.textContent="string"==typeof n?n:Array.isArray(n)?n.join(""):""),r}(t[e]);r.setAttribute("data-next-head","");let u=!0;for(let e of n)if(i(e,r)){n.delete(e),u=!1;break}u&&a.push(r)}for(let e of n)e.parentNode?.removeChild(e);for(let e of a)"meta"===e.tagName.toLowerCase()&&null!==e.getAttribute("charset")&&r.prepend(e),r.appendChild(e)}(e,t[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)},445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Router:function(){return u.default},createRouter:function(){return g},default:function(){return _},makePublicRouterInstance:function(){return E},useRouter:function(){return m},withRouter:function(){return c.default}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(4761),i=o._(r(5729)),u=o._(r(1217)),s=r(265),l=o._(r(5255)),c=o._(r(4586)),f={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},d=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],p=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!f.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return f.router}Object.defineProperty(f,"events",{get:()=>u.default.events}),d.forEach(e=>{Object.defineProperty(f,e,{get:()=>h()[e]})}),p.forEach(e=>{f[e]=(...t)=>h()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{f.ready(()=>{u.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(f[r])try{f[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,l.default)(e)?`${e.message}
${e.stack}`:e+"")}})})});let _=f;function m(){let e=i.default.useContext(s.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function g(...e){return f.router=new u.default(...e),f.readyCallbacks.forEach(e=>e()),f.readyCallbacks=[],f.router}function E(e){let t={};for(let r of d){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=u.default.events,p.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("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)},859:(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let a=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=a}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(2434)},920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(1031),a=r(1279);function o({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let o=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?i[e]=t.split("/").map(e=>o(e)):i[e]=o(t))}return i})}},944:(e,t,r)=>{"use strict";let n,a,o,i,u,s,l,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let _=r(3514);Object.defineProperty(t,"__esModule",{value:!0});var m={emitter:function(){return X},hydrate:function(){return eh},initialize:function(){return z},router:function(){return n},version:function(){return H}};for(var g in m)Object.defineProperty(t,g,{enumerable:!0,get:m[g]});let E=r(4761),y=r(6029);r(8402);let b=E._(r(5729)),P=E._(r(9315)),R=r(6290),v=E._(r(1900)),O=r(265),S=r(859),T=r(5306),j=r(9891),A=r(1031),N=r(7485),x=E._(r(340)),w=E._(r(6689)),C=r(4171),I=r(445),M=r(5255),L=r(9528),D=r(5630),U=r(7778),$=r(5611),k=r(2580),F=r(5850),B=r(5886);r(1574),r(3302);let H="16.2.9",X=(0,v.default)(),W=e=>[].slice.call(e),G=!1;class q extends b.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(a.isFallback||a.nextExport&&((0,T.isDynamicRoute)(n.pathname)||location.search||G)||a.props&&a.props.__N_SSG&&(location.search||G))&&n.replace(n.pathname+"?"+String((0,j.assign)((0,j.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),o,{_h:1,shallow:!a.isFallback&&!G}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function z(e={}){a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let t=a.assetPrefix||"";if(self.__next_set_public_path__(`${t}/_next/`),o=(0,A.getURL)(),(0,U.hasBasePath)(o)&&(o=(0,D.removeBasePath)(o)),a.scriptLoader){let{initScriptLoader:e}=r(9387);e(a.scriptLoader)}i=new w.default(a.buildId,t);let l=([e,t])=>i.routeLoader.onEntrypoint(e,t);return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>l(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=l,(s=(0,x.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function Y(e,t){return(0,y.jsx)(e,{...t})}function V({children:e}){let t=b.default.useMemo(()=>(0,k.adaptForAppRouterInstance)(n),[]);return(0,y.jsx)(q,{fn:e=>J({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,y.jsx)($.AppRouterContext.Provider,{value:t,children:(0,y.jsx)(F.SearchParamsContext.Provider,{value:(0,k.adaptForSearchParams)(n),children:(0,y.jsx)(k.PathnameContextProviderAdapter,{router:n,isAutoExport:self.__NEXT_DATA__.autoExport??!1,children:(0,y.jsx)(F.PathParamsContext.Provider,{value:(0,k.adaptForPathParams)(n),children:(0,y.jsx)(O.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,y.jsx)(R.HeadManagerContext.Provider,{value:s,children:(0,y.jsx)(L.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:e})})})})})})})})}let K=e=>t=>{let r={...t,Component:p,err:a.err,router:n};return(0,y.jsx)(V,{children:Y(e,r)})};function J(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(({page:n,styleSheets:a})=>l?.Component===n?Promise.resolve().then(()=>_._(r(8388))).then(n=>Promise.resolve().then(()=>_._(r(9785))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:n,styleSheets:a}).then(({ErrorComponent:r,styleSheets:i})=>{let s=K(t),l={Component:r,AppTree:s,router:n,ctx:{err:u,pathname:a.page,query:a.query,asPath:o,AppTree:s}};return Promise.resolve(e.props?.err?e.props:(0,A.loadGetInitialProps)(t,l)).then(t=>ed({...e,err:u,Component:r,styleSheets:i,props:t}))})}function Q({callback:e}){return b.default.useLayoutEffect(()=>e(),[e]),null}let Z="beforeRender",ee="afterRender",et="afterHydrate",er="routeChange",en="Next.js-hydration",ea="Next.js-route-change-to-render",eo="Next.js-render",ei=null,eu=!0;function es(){[Z,et,ee,er].forEach(e=>performance.clearMarks(e))}function el(){A.ST&&(performance.mark(et),performance.getEntriesByName(Z,"mark").length&&(performance.measure("Next.js-before-hydration","navigationStart",Z),performance.measure(en,Z,et)),d&&performance.getEntriesByName(en).forEach(d),es())}function ec(){if(!A.ST)return;performance.mark(ee);let e=performance.getEntriesByName(er,"mark");e.length&&(performance.getEntriesByName(Z,"mark").length&&(performance.measure(ea,e[0].name,Z),performance.measure(eo,Z,ee),d&&(performance.getEntriesByName(eo).forEach(d),performance.getEntriesByName(ea).forEach(d))),es(),[ea,eo].forEach(e=>performance.clearMeasures(e)))}function ef({callbacks:e,children:t}){return b.default.useLayoutEffect(()=>e.forEach(e=>e()),[e]),t}function ed(e){var t,r;let a,o,{App:i,Component:s,props:f,err:d}=e,p="initial"in e?void 0:e.styleSheets;s=s||l.Component;let h={...f=f||l.props,Component:s,err:d,router:n};l=h;let _=!1,m=new Promise((e,t)=>{c&&c(),o=()=>{c=null,e()},c=()=>{_=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function g(){o()}!function(){if(!p)return;let e=new Set(W(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=t?.getAttribute("data-n-css");p.forEach(({href:t,text:n})=>{if(!e.has(t)){let e=document.createElement("style");e.setAttribute("data-n-href",t),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(n))}})}();let E=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Q,{callback:function(){if(p&&!_){let e=new Set(p.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute("media"):t[n].setAttribute("media","x");let n=document.querySelector("noscript[data-n-css]");n&&p.forEach(({href:e})=>{let t=document.querySelector(`style[data-n-href="${e}"]`);t&&(n.parentNode.insertBefore(t,n.nextSibling),n=t)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,y.jsxs)(V,{children:[Y(i,h),(0,y.jsx)(N.Portal,{type:"next-route-announcer",children:(0,y.jsx)(C.RouteAnnouncer,{})})]})]});return t=u,r=e=>(0,y.jsx)(ef,{callbacks:[e,g],children:(0,y.jsx)(b.default.StrictMode,{children:E})}),A.ST&&performance.mark(Z),a=r(eu?el:ec),ei?(0,b.default.startTransition)(()=>{ei.render(a)}):(ei=P.default.hydrateRoot(t,a,{onRecoverableError:B.onRecoverableError}),eu=!1),m}async function ep(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await J(e);try{await ed(e)}catch(r){let t=(0,M.getProperError)(r);if(t.cancelled)throw t;await J({...e,err:t})}}async function eh(e){let t=a.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=({id:e,name:t,startTime:n,value:a,duration:o,entryType:i,entries:u,attribution:s})=>{let l,c=`${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;u&&u.length&&(l=u[0].startTime);let f={id:e||c,name:t,startTime:n||l,value:null==a?o:a,label:"mark"===i||"measure"===i?"custom":"web-vital"};s&&(f.attribution=s),r.reportWebVitals(f)});let n=await i.routeLoader.whenEntrypoint(a.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,M.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(a.dynamicIds),n=(0,I.createRouter)(a.page,a.query,o,{initialProps:a.props,pageLoader:i,App:f,Component:p,wrapApp:K,err:t,isFallback:!!a.isFallback,subscription:(e,t,r)=>ep(Object.assign({},e,{App:t,scroll:r})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),G=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:a.props,err:t,isHydratePass:!0};e?.beforeRender&&await e.beforeRender(),ep(r)}("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)},1031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return E},SP:function(){return h},ST:function(){return _},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return s},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return P}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=s();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,_=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class g extends Error{}class E extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y 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 P(e){return JSON.stringify({message:e.message,stack:e.stack})}},1217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={createKey:function(){return Y},default:function(){return J},matchesMiddleware:function(){return F}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(4761),i=r(3514),u=r(9453),s=r(1271),l=r(9387),c=i._(r(5255)),f=r(2066),d=r(3997),p=o._(r(1900)),h=r(1031),_=r(5306),m=r(1848),g=r(920),E=r(2397),y=r(9537);r(7199);let b=r(1371),P=r(1400),R=r(277),v=r(5630),O=r(4381),S=r(7778),T=r(8338),j=r(3741),A=r(2954),N=r(9719),x=r(1998),w=r(2472),C=r(2554),I=r(1387),M=r(1856),L=r(859),D=r(4957),U=r(7637),$=r(8143);function k(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function F(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,b.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,a=(0,O.addBasePath)((0,P.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function B(e){let t=(0,h.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function H(e,t,r){let[n,a]=(0,T.resolveHref)(e,t,!0),o=(0,h.getLocationOrigin)(),i=n.startsWith(o),u=a&&a.startsWith(o);n=B(n),a=a?B(a):a;let s=i?n:(0,O.addBasePath)(n),l=r?B((0,T.resolveHref)(e,r)):a||n;return{url:s,as:u?l:(0,O.addBasePath)(l)}}function X(e,t){let r=(0,u.removeTrailingSlash)((0,f.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,_.isDynamicRoute)(t)&&(0,E.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,u.removeTrailingSlash)(e))}async function W(e){if(!await F(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),o=a||t.headers.get("x-nextjs-matched-path"),i=t.headers.get(D.MATCHED_PATH_HEADER);if(!i||o||i.includes("__next_data_catchall")||i.includes("/_error")||i.includes("/404")||(o=i),o){if(o.startsWith("/")){let t=(0,m.parseRelativeUrl)(o),i=(0,A.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),l=(0,u.removeTrailingSlash)(i.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,s.getClientBuildManifest)()]).then(([o,{__rewrites:u}])=>{let s=(0,P.addLocale)(i.pathname,i.locale);if((0,_.isDynamicRoute)(s)||!a&&o.includes((0,d.normalizeLocalePath)((0,v.removeBasePath)(s),r.router.locales).pathname)){let r=(0,A.getNextPathnameInfo)((0,m.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:n.basePath,trailingSlash:n.trailingSlash},parseData:!0});t.pathname=s=(0,O.addBasePath)(r.pathname)}if(!o.includes(l)){let e=X(l,o);e!==l&&(l=e)}let c=o.includes(l)?l:X((0,d.normalizeLocalePath)((0,v.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,_.isDynamicRoute)(c)){let e=(0,g.getRouteMatcher)((0,E.getRouteRegex)(c))(s);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:c}})}let t=(0,b.parsePath)(e),i=(0,N.formatNextPathnameInfo)({...(0,A.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${i}${t.query}${t.hash}`})}let l=t.headers.get("x-nextjs-redirect");if(l){if(l.startsWith("/")){let e=(0,b.parsePath)(l),t=(0,N.formatNextPathnameInfo)({...(0,A.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:l})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let G=Symbol("SSG_DATA_NOT_FOUND");function q(e){try{return JSON.parse(e)}catch(e){return null}}function z({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:o,persistCache:i,isBackground:u,unstable_skipClientCache:l}){let{href:c}=new URL(e,window.location.href),f=(0,U.getDeploymentId)(),d=u=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},f?{"x-deployment-id":f}:{}),method:u?.method??"GET"}).then(t=>t.ok&&u?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&q(r)?.notFound)return{dataHref:e,json:{notFound:G},response:t,text:r,cacheKey:c};let o=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,s.markAssetError)(o),o}let i=t.headers.get(D.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=i&&i!==f){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw a||(0,s.markAssetError)(e),e}return{dataHref:e,json:o?q(r):null,response:t,text:r,cacheKey:c}})).then(e=>(i&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw l||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,s.markAssetError)(e),e});return l&&i?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=d(u?{method:"HEAD"}:{})}function Y(){return Math.random().toString(36).slice(2,10)}function V({url:e,router:t}){if(e===(0,O.addBasePath)((0,P.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let K=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class J{static{this.events=(0,p.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:o,wrapApp:i,Component:s,err:l,subscription:c,isFallback:f,locale:d,locales:p,defaultLocale:g,domainLocales:E,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=Y(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,y.formatWithValidation)({pathname:(0,O.addBasePath)(e),query:t}),(0,h.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:o,options:i,key:u}=n;this._key=u;let{pathname:s}=(0,m.parseRelativeUrl)(a);this.isSsr&&o===(0,O.addBasePath)(this.asPath)&&s===(0,O.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,o,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};const P=(0,u.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:s,initial:!0,props:n,err:l,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]},this.events=J.events,this.pageLoader=a;const R=(0,_.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=i,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!R&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:R?e:r,isPreview:!!b,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){const n={locale:d},a=(0,h.getURL)();this._initialMatchesMiddlewarePromise=F({router:this,locale:d,asPath:a}).then(o=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",o?a:(0,y.formatWithValidation)({pathname:(0,O.addBasePath)(e),query:t}),a,n),o))}window.addEventListener("popstate",this.onPopState)}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,$.isJavaScriptURLString)(e.toString())||t&&(0,$.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=H(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,a){{if(!this._bfl_s&&!this._bfl_d){let t,o,{BloomFilter:i}=r(4070);try{({__routerFilterStatic:t,__routerFilterDynamic:o}=await (0,s.getClientBuildManifest)())}catch(t){if(console.error(t),a)return!0;return V({url:(0,O.addBasePath)((0,P.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}t?.numHashes&&(this._bfl_s=new i(t.numItems,t.errorRate),this._bfl_s.import(t)),o?.numHashes&&(this._bfl_d=new i(o.numItems,o.errorRate),this._bfl_d.import(o))}let o=!1,i=!1;for(let{as:r,allowMatchCurrent:s}of[{as:e},{as:t}])if(r){let t=(0,u.removeTrailingSlash)(new URL(r,"http://n").pathname),l=(0,O.addBasePath)((0,P.addLocale)(t,n||this.locale));if(s||t!==(0,u.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(o=o||!!this._bfl_s?.contains(t)||!!this._bfl_s?.contains(l),[t,l])){let t=e.split("/");for(let e=0;!i&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){i=!0;break}}}if(o||i){if(a)return!0;return V({url:(0,O.addBasePath)((0,P.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,a){let o,i;if(!(0,w.isLocalURL)(t))return V({url:t,router:this}),!1;let f=1===n._h;f||n.shallow||await this._bfl(r,void 0,n.locale);let d=f||n._shouldResolveHref||(0,b.parsePath)(t).pathname===(0,b.parsePath)(r).pathname,p={...this.state},T=!0!==this.isReady;this.isReady=!0;let j=this.isSsr;if(f||(this.isSsr=!1),f&&this.clc)return!1;let A=p.locale;h.ST&&performance.mark("routeChange");let{shallow:N=!1,scroll:C=!0}=n,L={shallow:N};this._inFlightRoute&&this.clc&&(j||J.events.emit("routeChangeError",k(),this._inFlightRoute,L),this.clc(),this.clc=null),r=(0,O.addBasePath)((0,P.addLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,n.locale,this.defaultLocale));let D=(0,R.removeLocale)((0,S.hasBasePath)(r)?(0,v.removeBasePath)(r):r,p.locale);this._inFlightRoute=r;let U=A!==p.locale;if(!f&&this.onlyAHashChange(D)&&!U){p.asPath=D,J.events.emit("hashChangeStart",r,L),this.changeState(e,t,r,{...n,scroll:!1}),C&&this.scrollToHash(D);try{await this.set(p,this.components[p.route],null)}catch(e){throw(0,c.default)(e)&&e.cancelled&&J.events.emit("routeChangeError",e,D,L),e}return J.events.emit("hashChangeComplete",r,L),!0}let $=(0,m.parseRelativeUrl)(t),{pathname:B,query:W}=$;try{[o,{__rewrites:i}]=await Promise.all([this.pageLoader.getPageList(),(0,s.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(D)||U||(e="replaceState");let q=r;B=B?(0,u.removeTrailingSlash)((0,v.removeBasePath)(B)):B;let z=(0,u.removeTrailingSlash)(B),Y=r.startsWith("/")&&(0,m.parseRelativeUrl)(r).pathname;if(this.components[B]?.__appRouter)return V({url:r,router:this}),new Promise(()=>{});let K=!!(Y&&z!==Y&&(!(0,_.isDynamicRoute)(z)||!(0,g.getRouteMatcher)((0,E.getRouteRegex)(z))(Y))),Q=!n.shallow&&await F({asPath:r,locale:p.locale,router:this});if(f&&Q&&(d=!1),d&&"/_error"!==B&&(n._shouldResolveHref=!0,$.pathname=X(B,o),$.pathname!==B&&(B=$.pathname,$.pathname=(0,O.addBasePath)(B),Q||(t=(0,y.formatWithValidation)($)))),!(0,w.isLocalURL)(r))return V({url:r,router:this}),!1;q=(0,R.removeLocale)((0,v.removeBasePath)(q),p.locale),z=(0,u.removeTrailingSlash)(B);let Z=!1;if((0,_.isDynamicRoute)(z)){let e=(0,m.parseRelativeUrl)(q),n=e.pathname,a=(0,E.getRouteRegex)(z);Z=(0,g.getRouteMatcher)(a)(n);let o=z===n,i=o?(0,M.interpolateAs)(z,n,W):{};if(Z&&(!o||i.result))o?r=(0,y.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(W,i.params)})):Object.assign(W,Z);else{let e=Object.keys(a.groups).filter(e=>!W[e]&&!a.groups[e].optional);if(e.length>0&&!Q)throw Object.defineProperty(Error((o?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${z}). `)+`Read more: https://nextjs.org/docs/messages/${o?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}f||J.events.emit("routeChangeStart",r,L);let ee="/404"===this.pathname||"/_error"===this.pathname;try{let i=await this.getRouteInfo({route:z,pathname:B,query:W,as:r,resolvedAs:q,routeProps:L,locale:p.locale,isPreview:p.isPreview,hasMiddleware:Q,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:f&&!this.isFallback,isMiddlewareRewrite:K});if(f||n.shallow||await this._bfl(r,"resolvedAs"in i?i.resolvedAs:void 0,p.locale),"route"in i&&Q){z=B=i.route||z,L.shallow||(W=Object.assign({},i.query||{},W));let e=(0,S.hasBasePath)($.pathname)?(0,v.removeBasePath)($.pathname):$.pathname;if(Z&&B!==e&&Object.keys(Z).forEach(e=>{Z&&W[e]===Z[e]&&delete W[e]}),(0,_.isDynamicRoute)(B)){let e=!L.shallow&&i.resolvedAs?i.resolvedAs:(0,O.addBasePath)((0,P.addLocale)(new URL(r,location.href).pathname,p.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,v.removeBasePath)(e));let t=(0,E.getRouteRegex)(B),n=(0,g.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(W,n)}}if("type"in i)if("redirect-internal"===i.type)return this.change(e,i.newUrl,i.newAs,n);else return V({url:i.destination,router:this}),new Promise(()=>{});let u=i.Component;if(u&&u.unstable_scriptLoader&&[].concat(u.unstable_scriptLoader()).forEach(e=>{(0,l.handleClientScriptLoad)(e.props)}),(i.__N_SSG||i.__N_SSP)&&i.props){if(i.props.pageProps&&i.props.pageProps.__N_REDIRECT){n.locale=!1;let t=i.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==i.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,m.parseRelativeUrl)(t);r.pathname=X(r.pathname,o);let{url:a,as:i}=H(this,t,t);return this.change(e,a,i,n)}return V({url:t,router:this}),new Promise(()=>{})}if(p.isPreview=!!i.props.__N_PREVIEW,i.props.notFound===G){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(i=await this.getRouteInfo({route:e,pathname:e,query:W,as:r,resolvedAs:q,routeProps:{shallow:!1},locale:p.locale,isPreview:p.isPreview,isNotFound:!0}),"type"in i)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}f&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&i.props?.pageProps&&(i.props.pageProps.statusCode=500);let s=n.shallow&&p.route===(i.route??z),d=n.scroll??(!f&&!s),h=a??(d?{x:0,y:0}:null),y={...p,route:z,pathname:B,query:W,asPath:D,isFallback:!1};if(f&&ee){if(i=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:W,as:r,resolvedAs:q,routeProps:{shallow:!1},locale:p.locale,isPreview:p.isPreview,isQueryUpdating:f&&!this.isFallback}),"type"in i)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&i.props?.pageProps&&(i.props.pageProps.statusCode=500);try{await this.set(y,i,h)}catch(e){throw(0,c.default)(e)&&e.cancelled&&J.events.emit("routeChangeError",e,D,L),e}return!0}if(J.events.emit("beforeHistoryChange",r,L),this.changeState(e,t,r,n),!(f&&!h&&!T&&!U&&(0,x.compareRouterStates)(y,this.state))){try{await this.set(y,i,h)}catch(e){if(e.cancelled)i.error=i.error||e;else throw e}if(i.error)throw f||J.events.emit("routeChangeError",i.error,D,L),i.error;f||J.events.emit("routeChangeComplete",r,L),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,c.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,h.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:Y()},"",r))}async handleRouteInfoError(e,t,r,n,a,o){if(e.cancelled)throw e;if((0,s.isAssetError)(e)||o)throw J.events.emit("routeChangeError",e,n,a),V({url:n,router:this}),k();console.error(e);try{let n,{page:a,styleSheets:o}=await this.fetchComponent("/_error"),i={props:n,Component:a,styleSheets:o,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,c.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:o,locale:i,hasMiddleware:s,isPreview:l,unstable_skipClientCache:f,isQueryUpdating:p,isMiddlewareRewrite:h,isNotFound:_}){let m=e;try{let e=this.components[m];if(o.shallow&&e&&this.route===m)return e;let c=K({route:m,router:this});s&&(e=void 0);let g=!e||"initial"in e?void 0:e,E={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:_?"/404":a,locale:i}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!l,isPrefetch:!1,unstable_skipClientCache:f,isBackground:p},b=p&&!h?null:await W({fetchData:()=>z(E),asPath:_?"/404":a,locale:i,router:this}).catch(e=>{if(p)return null;throw e});if(b&&("/_error"===t||"/404"===t)&&(b.effect=void 0),p&&(b?b.json=self.__NEXT_DATA__.props:b={json:self.__NEXT_DATA__.props}),c(),b?.effect?.type==="redirect-internal"||b?.effect?.type==="redirect-external")return b.effect;if(b?.effect?.type==="rewrite"){let n=(0,u.removeTrailingSlash)(b.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!p||i.includes(n))&&(m=n,t=b.effect.resolvedHref,r={...r,...b.effect.parsedAs.query},a=(0,v.removeBasePath)((0,d.normalizeLocalePath)(b.effect.parsedAs.pathname,this.locales).pathname),e=this.components[m],o.shallow&&e&&this.route===m&&!s))return{...e,route:m}}if((0,j.isAPIRoute)(m))return V({url:n,router:this}),new Promise(()=>{});let P=g||await this.fetchComponent(m).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),R=b?.response?.headers.get("x-middleware-skip"),O=P.__N_SSG||P.__N_SSP;R&&b?.dataHref&&delete this.sdc[b.dataHref];let{props:S,cacheKey:T}=await this._getData(async()=>{if(O){if(b?.json&&!R)return{cacheKey:b.cacheKey,props:b.json};let e=b?.dataHref?b.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:i}),n=await z({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:R?{}:this.sdc,persistCache:!l,isPrefetch:!1,unstable_skipClientCache:f});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(P.Component,{pathname:t,query:r,asPath:n,locale:i,locales:this.locales,defaultLocale:this.defaultLocale})}});return P.__N_SSP&&E.dataHref&&T&&delete this.sdc[T],this.isPreview||!P.__N_SSG||p||z(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),S.pageProps=Object.assign({},S.pageProps),P.props=S,P.route=m,P.query=r,P.resolvedAs=a,this.components[m]=P,P}catch(e){return this.handleRouteInfoError((0,c.getProperError)(e),t,r,n,o)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,L.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if((0,C.isBot)(window.navigator.userAgent))return;let n=(0,m.parseRelativeUrl)(e),a=n.pathname,{pathname:o,query:i}=n,s=o,l=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await F({asPath:t,locale:f,router:this});n.pathname=X(n.pathname,l),(0,_.isDynamicRoute)(n.pathname)&&(o=n.pathname,n.pathname=o,Object.assign(i,(0,g.getRouteMatcher)((0,E.getRouteRegex)(n.pathname))((0,b.parsePath)(t).pathname)||{}),d||(e=(0,y.formatWithValidation)(n)));let p=await W({fetchData:()=>z({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:s,query:i}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if(p?.effect.type==="rewrite"&&(n.pathname=p.effect.resolvedHref,o=p.effect.resolvedHref,i={...i,...p.effect.parsedAs.query},c=p.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(n)),p?.effect.type==="redirect-external")return;let h=(0,u.removeTrailingSlash)(o);await this._bfl(t,c,r.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(h).then(t=>!!t&&z({dataHref:p?.json?p?.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](h)])}async fetchComponent(e){let t=K({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,h.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},1271:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0});var a={createRouteLoader:function(){return E},getClientBuildManifest:function(){return m},isAssetError:function(){return h},markAssetError:function(){return p}};for(var o in a)Object.defineProperty(t,o,{enumerable:!0,get:a[o]});r(4761),r(3956);let i=r(2559),u=r(5954),s=r(7637),l=r(9025),c=r(2837);function f(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let o=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:o}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):o}let d=Symbol("ASSET_LOAD_ERROR");function p(e){return Object.defineProperty(e,d,{})}function h(e){return e&&d in e}let _=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function m(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,c.resolvePromiseWithTimeout)(e,p(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function g(e,t){return m().then(r=>{if(!(t in r))throw p(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,l.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+(0,s.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,s.getAssetTokenQuery)())}})}function E(e){let t=new Map,r=new Map,a=new Map,o=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(p(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function s(e){let t=a.get(e);return t||a.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw p(e)})),t}return{whenEntrypoint:e=>f(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),o.delete(e))})},loadRoute(r,a){return f(r,o,()=>{let o;return(0,c.resolvePromiseWithTimeout)(g(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(i)),Promise.all(n.map(s))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),p(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(a)throw e;return{error:e}}).finally(()=>o?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():g(e,t).then(e=>Promise.all(_?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let o=`
link[rel="prefetch"][href^="${t}"],
link[rel="preload"][href^="${t}"],
script[src^="${t}"]`;if(document.querySelector(o))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(p(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,u.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("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)},1279:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={safeCompile:function(){return s},safePathToRegexp:function(){return u},safeRegexpToFunction:function(){return l},safeRouteMatcher:function(){return c}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(2680),i=r(6778);function u(e,t,r){if("string"!=typeof e)return(0,o.pathToRegexp)(e,t,r);let n=(0,i.hasAdjacentParameterIssues)(e),a=n?(0,i.normalizeAdjacentParameters)(e):e;try{return(0,o.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,i.normalizeAdjacentParameters)(e);return(0,o.pathToRegexp)(n,t,r)}catch(e){}throw a}}function s(e,t){let r=(0,i.hasAdjacentParameterIssues)(e),n=r?(0,i.normalizeAdjacentParameters)(e):e;try{let e=(0,o.compile)(n,t);if(r)return t=>(0,i.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,i.normalizeAdjacentParameters)(e),n=(0,o.compile)(r,t);return e=>(0,i.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function l(e,t){let r=(0,o.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,i.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,i.stripParameterSeparators)(r)}}},1298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let n=r(6782),a=r(1483);function o(e,t,r,o){if(!t||t===r)return e;let i=e.toLowerCase();return!o&&((0,a.pathHasPrefix)(i,"/api")||(0,a.pathHasPrefix)(i,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},1371:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},1387:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},1400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(2034);let n=(e,...t)=>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)},1483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let n=r(1371);function a(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},1508:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={compareAppPaths:function(){return s},normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(5945),i=r(8883);function u(e){return(0,o.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}function s(e,t){let r=e.includes("/@"),n=t.includes("/@");return r&&!n?-1:!r&&n?1:e.localeCompare(t)}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},1574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4761)._(r(1900));class a{constructor(e,t,r){this.name=e,this.attributes=t.attributes??{},this.startTime=t.startTime??Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:e??Date.now()},this.onSpanEnd(this)}}class o{startSpan(e,t){return new a(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new o;("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)},1686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getParamProperties:function(){return s},getSegmentParam:function(){return i},isCatchAll:function(){return u}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(7051);function i(e){let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function u(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function