{"version":3,"sources":["webpack://_N_E/./node_modules/@next/polyfill-module/dist/polyfill-module.js","webpack://_N_E/./node_modules/next/node_modules/@babel/runtime/helpers/extends.js","webpack://_N_E/./node_modules/next/node_modules/@babel/runtime/helpers/inherits.js","webpack://_N_E/../../client/next.js","webpack://_N_E/../../../client/portal/index.tsx","webpack://_N_E/../../client/head-manager.ts","webpack://_N_E/../../../next-server/lib/head-manager-context.ts","webpack://_N_E/../../client/index.tsx","webpack://_N_E/./node_modules/next/node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://_N_E/./node_modules/core-js/modules/es.set.js","webpack://_N_E/../../client/performance-relayer.ts","webpack://_N_E/../../client/route-announcer.tsx","webpack://_N_E/(webpack)/web-vitals/web-vitals.es5.umd.min.js","webpack://_N_E/./node_modules/next/node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://_N_E/./node_modules/core-js/modules/es.number.constructor.js","webpack://_N_E/./node_modules/next/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://_N_E/../../../next-server/lib/runtime-config.ts","webpack://_N_E/../../client/page-loader.ts"],"names":["String","prototype","trimStart","trimLeft","trimEnd","trimRight","Symbol","Object","defineProperty","configurable","get","t","exec","this","toString","Array","flat","r","concat","apply","some","isArray","flatMap","map","Promise","finally","then","constructor","o","resolve","_extends","module","exports","assign","target","i","arguments","length","source","key","hasOwnProperty","call","setPrototypeOf","subClass","superClass","TypeError","create","value","writable","window","portalNode","React","document","forceUpdate","createPortal","updatePromise","mountedInstances","updateHead","head","promise","tags","h","components","titleComponent","title","children","type","headEl","headCountEl","headCount","Number","oldTags","j","newTags","newTag","k","len","oldTag","updateElements","DOMAttributeNames","acceptCharset","className","htmlFor","httpEquiv","noModule","reactElementToDOM","el","props","p","attr","dangerouslySetInnerHTML","HeadManagerContext","data","JSON","process","__NEXT_VERSION","looseToArray","err","isFallback","prefix","__webpack_public_path__","envConfig","serverRuntimeConfig","publicRuntimeConfig","runtimeConfig","asPath","hasBasePath","delBasePath","pageLoader","PageLoader","register","setTimeout","headManager","appElement","router","page","hydrateProps","isDynamicRoute","location","querystring","URLSearchParams","_h","shallow","hash","Component","emitter","initialErr","appEntrypoint","component","CachedApp","mod","onPerfEntry","uniqueID","Date","Math","entries","perfStartEntry","id","name","startTime","label","entryType","pageEntrypoint","CachedComponent","createRouter","initialProps","App","wrapApp","Boolean","subscription","render","scroll","locale","locales","defaultLocale","domainLocales","isPreview","renderCtx","initial","renderingProps","renderError","doRender","renderErr","renderErrorProps","AppTree","appCtx","ctx","pathname","query","loadGetInitialProps","initProps","styleSheets","shouldHydrate","ReactDOM","markHydrateComplete","ST","performance","clearMarks","markRenderComplete","navStartEntries","measure","mark","AppContainer","fn","error","makePublicRouterInstance","wrappedAppProps","appProps","input","undefined","lastAppProps","canceled","renderPromise","lastRenderReject","resolvePromise","Error","reject","currentStyleTags","currentHrefs","Set","tag","noscript","nonce","styleTag","onStart","elem","callback","desiredHrefs","s","idx","referenceNode","targetTag","getComputedStyle","reactEl","renderReactElement","callbacks","Root","Head","_getPrototypeOf","getPrototypeOf","__proto__","collection","collectionStrong","init","isRegistered","onReport","metric","userReportHandler","getCLS","getFID","getFCP","getLCP","getTTFB","RouteAnnouncer","useState","initialPathLoaded","useRef","useEffect","pageHeader","newRouteAnnouncement","setRouteAnnouncement","aria-live","role","style","border","clip","height","margin","overflow","padding","position","width","whiteSpace","wordWrap","599","e","n","now","floor","random","a","delta","isFinal","PerformanceObserver","supportedEntryTypes","includes","getEntries","observe","buffered","u","persisted","c","addEventListener","timeStamp","visibilityState","isUnloading","capture","once","l","disconnect","f","d","passive","hadRecentInput","push","takeRecords","processingStart","perfMetrics","onFirstInputDelay","cancelable","getEntriesByType","timing","max","navigationStart","responseStart","readyState","__nccwpck_require__","ab","__dirname","self","ReferenceError","DESCRIPTORS","global","isForced","redefine","has","classof","inheritIfRequired","toPrimitive","fails","getOwnPropertyNames","getOwnPropertyDescriptor","trim","NUMBER","NativeNumber","NumberPrototype","BROKEN_CLASSOF","toNumber","argument","first","third","radix","maxCode","digits","index","code","it","charCodeAt","NaN","slice","parseInt","NumberWrapper","dummy","valueOf","keys","split","_typeof","assertThisInitialized","configValue","buildId","assetPrefix","promisedSsgManifest","promisedDevPagesManifest","routeLoader","getClientBuildManifest","manifest","parseRelativeUrl","route","normalizeRoute","getHrefForSlug","path","dataRoute","removePathTrailingSlash","addLocale","addBasePath","ssg","isDynamic","interpolatedRoute","interpolateAs","loadRoute","res","href","text","prefetch"],"mappings":"4FAAA,cAAcA,OAAOC,YAAYD,OAAOC,UAAUC,UAAUF,OAAOC,UAAUE,UAAU,YAAYH,OAAOC,YAAYD,OAAOC,UAAUG,QAAQJ,OAAOC,UAAUI,WAAW,gBAAgBC,OAAOL,WAAWM,OAAOC,eAAeF,OAAOL,UAAU,cAAc,CAACQ,cAAa,EAAGC,IAAI,WAAW,IAAIC,EAAE,WAAWC,KAAKC,KAAKC,YAAY,OAAOH,EAAEA,EAAE,QAAG,KAAUI,MAAMd,UAAUe,OAAOD,MAAMd,UAAUe,KAAK,SAASL,EAAEM,GAAG,OAAOA,EAAEJ,KAAKK,OAAOC,MAAM,GAAGN,MAAMF,EAAE,GAAGM,EAAEG,KAAKL,MAAMM,SAASJ,EAAED,KAAKL,EAAE,GAAGM,GAAGF,MAAMd,UAAUqB,QAAQ,SAASX,EAAEM,GAAG,OAAOJ,KAAKU,IAAIZ,EAAEM,GAAGD,SAASQ,QAAQvB,UAAUwB,UAAUD,QAAQvB,UAAUwB,QAAQ,SAASd,GAAG,GAAG,mBAAmBA,EAAE,OAAOE,KAAKa,KAAKf,EAAEA,GAAG,IAAIM,EAAEJ,KAAKc,aAAaH,QAAQ,OAAOX,KAAKa,MAAK,SAASE,GAAG,OAAOX,EAAEY,QAAQlB,KAAKe,MAAK,WAAW,OAAOE,QAAK,SAASA,GAAG,OAAOX,EAAEY,QAAQlB,KAAKe,MAAK,WAAW,MAAME,W,qBCAp0B,SAASE,IAeP,OAdAC,EAAOC,QAAUF,E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F,Q,+BAKM,GACN,OAAOnM,KAAK0U,YAAYgB,UAAUZ,GAAOjU,MAAM8U,YAC7C,GAAI,cAAJ,EACE,MAAO,CACLrP,KAAMqP,EADD,UAELtO,IAAKsO,EAFA,QAGL7L,YAAa6L,cAAgB5U,YAAD,MAAQ,CAClC6U,KAAM7U,EAD4B,KAElC8U,KAAM9U,EALV,aASF,MAAM4U,EAAN,W,+BAII,GACN,OAAO3V,KAAK0U,YAAYoB,SAAxB,O","file":"static/chunks/main-9115c90063fb636c777b.js","sourcesContent":["\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var t=/\\((.*)\\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if(\"function\"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(o){return r.resolve(t()).then(function(){return o})},function(o){return r.resolve(t()).then(function(){throw o})})});\n","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","import initNext, * as next from './'\n\nwindow.next = next\n\ninitNext().catch(console.error)\n","import * as React from 'react'\nimport { createPortal } from 'react-dom'\n\ntype PortalProps = {\n children: React.ReactNode\n type: string\n}\n\nexport const Portal: React.FC = ({ children, type }) => {\n let portalNode = React.useRef(null)\n let [, forceUpdate] = React.useState<{}>()\n React.useEffect(() => {\n portalNode.current = document.createElement(type)\n document.body.appendChild(portalNode.current)\n forceUpdate({})\n return () => {\n if (portalNode.current) {\n document.body.removeChild(portalNode.current)\n }\n }\n }, [type])\n\n return portalNode.current ? createPortal(children, portalNode.current) : null\n}\n","export const DOMAttributeNames: Record = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv',\n noModule: 'noModule',\n}\n\nfunction reactElementToDOM({ type, props }: JSX.Element): HTMLElement {\n const el: HTMLElement = document.createElement(type)\n for (const p in props) {\n if (!props.hasOwnProperty(p)) continue\n if (p === 'children' || p === 'dangerouslySetInnerHTML') continue\n\n // we don't render undefined props to the DOM\n if (props[p] === undefined) continue\n\n const attr = DOMAttributeNames[p] || p.toLowerCase()\n if (\n type === 'script' &&\n (attr === 'async' || attr === 'defer' || attr === 'noModule')\n ) {\n ;(el as HTMLScriptElement)[attr] = !!props[p]\n } else {\n el.setAttribute(attr, props[p])\n }\n }\n\n const { children, dangerouslySetInnerHTML } = props\n if (dangerouslySetInnerHTML) {\n el.innerHTML = dangerouslySetInnerHTML.__html || ''\n } else if (children) {\n el.textContent =\n typeof children === 'string'\n ? children\n : Array.isArray(children)\n ? children.join('')\n : ''\n }\n return el\n}\n\nfunction updateElements(type: string, components: JSX.Element[]): void {\n const headEl = document.getElementsByTagName('head')[0]\n const headCountEl: HTMLMetaElement = headEl.querySelector(\n 'meta[name=next-head-count]'\n ) as HTMLMetaElement\n if (process.env.NODE_ENV !== 'production') {\n if (!headCountEl) {\n console.error(\n 'Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing'\n )\n return\n }\n }\n\n const headCount = Number(headCountEl.content)\n const oldTags: Element[] = []\n\n for (\n let i = 0, j = headCountEl.previousElementSibling;\n i < headCount;\n i++, j = j!.previousElementSibling\n ) {\n if (j!.tagName.toLowerCase() === type) {\n oldTags.push(j!)\n }\n }\n const newTags = (components.map(reactElementToDOM) as HTMLElement[]).filter(\n (newTag) => {\n for (let k = 0, len = oldTags.length; k < len; k++) {\n const oldTag = oldTags[k]\n if (oldTag.isEqualNode(newTag)) {\n oldTags.splice(k, 1)\n return false\n }\n }\n return true\n }\n )\n\n oldTags.forEach((t) => t.parentNode!.removeChild(t))\n newTags.forEach((t) => headEl.insertBefore(t, headCountEl))\n headCountEl.content = (headCount - oldTags.length + newTags.length).toString()\n}\n\nexport default function initHeadManager(): {\n mountedInstances: Set\n updateHead: (head: JSX.Element[]) => void\n} {\n let updatePromise: Promise | null = null\n\n return {\n mountedInstances: new Set(),\n updateHead: (head: JSX.Element[]) => {\n const promise = (updatePromise = Promise.resolve().then(() => {\n if (promise !== updatePromise) return\n\n updatePromise = null\n const tags: Record = {}\n\n head.forEach((h) => {\n const components = tags[h.type] || []\n components.push(h)\n tags[h.type] = components\n })\n\n const titleComponent = tags.title ? tags.title[0] : null\n let title = ''\n if (titleComponent) {\n const { children } = titleComponent.props\n title =\n typeof children === 'string'\n ? children\n : Array.isArray(children)\n ? children.join('')\n : ''\n }\n if (title !== document.title) document.title = title\n ;['meta', 'base', 'link', 'style', 'script'].forEach((type) => {\n updateElements(type, tags[type] || [])\n })\n }))\n },\n }\n}\n","import React from 'react'\n\nexport const HeadManagerContext: React.Context<{\n updateHead?: (state: any) => void\n mountedInstances?: any\n updateScripts?: (state: any) => void\n scripts?: any\n}> = React.createContext({})\n\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext'\n}\n","/* global location */\nimport '@next/polyfill-module'\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { HeadManagerContext } from '../next-server/lib/head-manager-context'\nimport mitt, { MittEmitter } from '../next-server/lib/mitt'\nimport { RouterContext } from '../next-server/lib/router-context'\nimport Router, {\n AppComponent,\n AppProps,\n delBasePath,\n hasBasePath,\n PrivateRouteInfo,\n} from '../next-server/lib/router/router'\nimport { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic'\nimport * as querystring from '../next-server/lib/router/utils/querystring'\nimport * as envConfig from '../next-server/lib/runtime-config'\nimport {\n getURL,\n loadGetInitialProps,\n NEXT_DATA,\n ST,\n} from '../next-server/lib/utils'\nimport { Portal } from './portal'\nimport initHeadManager from './head-manager'\nimport PageLoader, { StyleSheetTuple } from './page-loader'\nimport measureWebVitals from './performance-relayer'\nimport { RouteAnnouncer } from './route-announcer'\nimport { createRouter, makePublicRouterInstance } from './router'\n\n/// \n\ndeclare let __webpack_public_path__: string\n\ndeclare global {\n interface Window {\n /* test fns */\n __NEXT_HYDRATED?: boolean\n __NEXT_HYDRATED_CB?: () => void\n\n /* prod */\n __NEXT_PRELOADREADY?: (ids?: (string | number)[]) => void\n __NEXT_DATA__: NEXT_DATA\n __NEXT_P: any[]\n }\n}\n\ntype RenderRouteInfo = PrivateRouteInfo & {\n App: AppComponent\n scroll?: { x: number; y: number } | null\n}\ntype RenderErrorProps = Omit\n\nconst data: typeof window['__NEXT_DATA__'] = JSON.parse(\n document.getElementById('__NEXT_DATA__')!.textContent!\n)\nwindow.__NEXT_DATA__ = data\n\nexport const version = process.env.__NEXT_VERSION\n\nconst looseToArray = (input: any): T[] => [].slice.call(input)\n\nconst {\n props: hydrateProps,\n err: hydrateErr,\n page,\n query,\n buildId,\n assetPrefix,\n runtimeConfig,\n dynamicIds,\n isFallback,\n locale,\n locales,\n domainLocales,\n isPreview,\n} = data\n\nlet { defaultLocale } = data\n\nconst prefix: string = assetPrefix || ''\n\n// With dynamic assetPrefix it's no longer possible to set assetPrefix at the build time\n// So, this is how we do it in the client side at runtime\n__webpack_public_path__ = `${prefix}/_next/` //eslint-disable-line\n// Initialize next/config with the environment configuration\nenvConfig.setConfig({\n serverRuntimeConfig: {},\n publicRuntimeConfig: runtimeConfig || {},\n})\n\nlet asPath: string = getURL()\n\n// make sure not to attempt stripping basePath for 404s\nif (hasBasePath(asPath)) {\n asPath = delBasePath(asPath)\n}\n\nif (process.env.__NEXT_I18N_SUPPORT) {\n const {\n normalizeLocalePath,\n } = require('../next-server/lib/i18n/normalize-locale-path') as typeof import('../next-server/lib/i18n/normalize-locale-path')\n\n const {\n detectDomainLocale,\n } = require('../next-server/lib/i18n/detect-domain-locale') as typeof import('../next-server/lib/i18n/detect-domain-locale')\n\n const {\n parseRelativeUrl,\n } = require('../next-server/lib/router/utils/parse-relative-url') as typeof import('../next-server/lib/router/utils/parse-relative-url')\n\n const {\n formatUrl,\n } = require('../next-server/lib/router/utils/format-url') as typeof import('../next-server/lib/router/utils/format-url')\n\n if (locales) {\n const parsedAs = parseRelativeUrl(asPath)\n const localePathResult = normalizeLocalePath(parsedAs.pathname, locales)\n\n if (localePathResult.detectedLocale) {\n parsedAs.pathname = localePathResult.pathname\n asPath = formatUrl(parsedAs)\n } else {\n // derive the default locale if it wasn't detected in the asPath\n // since we don't prerender static pages with all possible default\n // locales\n defaultLocale = locale\n }\n\n // attempt detecting default locale based on hostname\n const detectedDomain = detectDomainLocale(\n process.env.__NEXT_I18N_DOMAINS as any,\n window.location.hostname\n )\n\n // TODO: investigate if defaultLocale needs to be populated after\n // hydration to prevent mismatched renders\n if (detectedDomain) {\n defaultLocale = detectedDomain.defaultLocale\n }\n }\n}\n\nif (process.env.__NEXT_SCRIPT_LOADER && data.scriptLoader) {\n const { initScriptLoader } = require('./experimental-script')\n initScriptLoader(data.scriptLoader)\n}\n\ntype RegisterFn = (input: [string, () => void]) => void\n\nconst pageLoader: PageLoader = new PageLoader(buildId, prefix)\nconst register: RegisterFn = ([r, f]) =>\n pageLoader.routeLoader.onEntrypoint(r, f)\nif (window.__NEXT_P) {\n // Defer page registration for another tick. This will increase the overall\n // latency in hydrating the page, but reduce the total blocking time.\n window.__NEXT_P.map((p) => setTimeout(() => register(p), 0))\n}\nwindow.__NEXT_P = []\n;(window.__NEXT_P as any).push = register\n\nconst headManager: {\n mountedInstances: Set\n updateHead: (head: JSX.Element[]) => void\n} = initHeadManager()\nconst appElement: HTMLElement | null = document.getElementById('__next')\n\nlet lastRenderReject: (() => void) | null\nlet webpackHMR: any\nexport let router: Router\nlet CachedApp: AppComponent, onPerfEntry: (metric: any) => void\n\nclass Container extends React.Component<{\n fn: (err: Error, info?: any) => void\n}> {\n componentDidCatch(componentErr: Error, info: any) {\n this.props.fn(componentErr, info)\n }\n\n componentDidMount() {\n this.scrollToHash()\n\n // We need to replace the router state if:\n // - the page was (auto) exported and has a query string or search (hash)\n // - it was auto exported and is a dynamic route (to provide params)\n // - if it is a client-side skeleton (fallback render)\n if (\n router.isSsr &&\n // We don't update for 404 requests as this can modify\n // the asPath unexpectedly e.g. adding basePath when\n // it wasn't originally present\n page !== '/404' &&\n !(\n page === '/_error' &&\n hydrateProps &&\n hydrateProps.pageProps &&\n hydrateProps.pageProps.statusCode === 404\n ) &&\n (isFallback ||\n (data.nextExport &&\n (isDynamicRoute(router.pathname) ||\n location.search ||\n process.env.__NEXT_HAS_REWRITES)) ||\n (hydrateProps &&\n hydrateProps.__N_SSG &&\n (location.search || process.env.__NEXT_HAS_REWRITES)))\n ) {\n // update query on mount for exported pages\n router.replace(\n router.pathname +\n '?' +\n String(\n querystring.assign(\n querystring.urlQueryToSearchParams(router.query),\n new URLSearchParams(location.search)\n )\n ),\n asPath,\n {\n // @ts-ignore\n // WARNING: `_h` is an internal option for handing Next.js\n // client-side hydration. Your app should _never_ use this property.\n // It may change at any time without notice.\n _h: 1,\n // Fallback pages must trigger the data fetch, so the transition is\n // not shallow.\n // Other pages (strictly updating query) happens shallowly, as data\n // requirements would already be present.\n shallow: !isFallback,\n }\n )\n }\n }\n\n componentDidUpdate() {\n this.scrollToHash()\n }\n\n scrollToHash() {\n let { hash } = location\n hash = hash && hash.substring(1)\n if (!hash) return\n\n const el: HTMLElement | null = document.getElementById(hash)\n if (!el) return\n\n // If we call scrollIntoView() in here without a setTimeout\n // it won't scroll properly.\n setTimeout(() => el.scrollIntoView(), 0)\n }\n\n render() {\n if (process.env.NODE_ENV === 'production') {\n return this.props.children\n } else {\n const { ReactDevOverlay } = require('@next/react-dev-overlay/lib/client')\n return {this.props.children}\n }\n }\n}\n\nexport const emitter: MittEmitter = mitt()\nlet CachedComponent: React.ComponentType\n\nexport default async (opts: { webpackHMR?: any } = {}) => {\n // This makes sure this specific lines are removed in production\n if (process.env.NODE_ENV === 'development') {\n webpackHMR = opts.webpackHMR\n }\n\n let initialErr = hydrateErr\n\n try {\n const appEntrypoint = await pageLoader.routeLoader.whenEntrypoint('/_app')\n if ('error' in appEntrypoint) {\n throw appEntrypoint.error\n }\n\n const { component: app, exports: mod } = appEntrypoint\n CachedApp = app as AppComponent\n if (mod && mod.reportWebVitals) {\n onPerfEntry = ({\n id,\n name,\n startTime,\n value,\n duration,\n entryType,\n entries,\n }): void => {\n // Combines timestamp with random number for unique ID\n const uniqueID: string = `${Date.now()}-${\n Math.floor(Math.random() * (9e12 - 1)) + 1e12\n }`\n let perfStartEntry: string | undefined\n\n if (entries && entries.length) {\n perfStartEntry = entries[0].startTime\n }\n\n mod.reportWebVitals({\n id: id || uniqueID,\n name,\n startTime: startTime || perfStartEntry,\n value: value == null ? duration : value,\n label:\n entryType === 'mark' || entryType === 'measure'\n ? 'custom'\n : 'web-vital',\n })\n }\n }\n\n const pageEntrypoint =\n // The dev server fails to serve script assets when there's a hydration\n // error, so we need to skip waiting for the entrypoint.\n process.env.NODE_ENV === 'development' && hydrateErr\n ? { error: hydrateErr }\n : await pageLoader.routeLoader.whenEntrypoint(page)\n if ('error' in pageEntrypoint) {\n throw pageEntrypoint.error\n }\n CachedComponent = pageEntrypoint.component\n\n if (process.env.NODE_ENV !== 'production') {\n const { isValidElementType } = require('react-is')\n if (!isValidElementType(CachedComponent)) {\n throw new Error(\n `The default export is not a React Component in page: \"${page}\"`\n )\n }\n }\n } catch (error) {\n // This catches errors like throwing in the top level of a module\n initialErr = error\n }\n\n if (process.env.NODE_ENV === 'development') {\n const { getNodeError } = require('@next/react-dev-overlay/lib/client')\n // Server-side runtime errors need to be re-thrown on the client-side so\n // that the overlay is rendered.\n if (initialErr) {\n if (initialErr === hydrateErr) {\n setTimeout(() => {\n let error\n try {\n // Generate a new error object. We `throw` it because some browsers\n // will set the `stack` when thrown, and we want to ensure ours is\n // not overridden when we re-throw it below.\n throw new Error(initialErr!.message)\n } catch (e) {\n error = e\n }\n\n error.name = initialErr!.name\n error.stack = initialErr!.stack\n\n const node = getNodeError(error)\n throw node\n })\n }\n // We replaced the server-side error with a client-side error, and should\n // no longer rewrite the stack trace to a Node error.\n else {\n setTimeout(() => {\n throw initialErr\n })\n }\n }\n }\n\n if (window.__NEXT_PRELOADREADY) {\n await window.__NEXT_PRELOADREADY(dynamicIds)\n }\n\n router = createRouter(page, query, asPath, {\n initialProps: hydrateProps,\n pageLoader,\n App: CachedApp,\n Component: CachedComponent,\n wrapApp,\n err: initialErr,\n isFallback: Boolean(isFallback),\n subscription: (info, App, scroll) =>\n render(\n Object.assign<\n {},\n Omit,\n Pick\n >({}, info, {\n App,\n scroll,\n }) as RenderRouteInfo\n ),\n locale,\n locales,\n defaultLocale,\n domainLocales,\n isPreview,\n })\n\n const renderCtx: RenderRouteInfo = {\n App: CachedApp,\n initial: true,\n Component: CachedComponent,\n props: hydrateProps,\n err: initialErr,\n }\n\n if (process.env.NODE_ENV === 'production') {\n render(renderCtx)\n return emitter\n } else {\n return { emitter, render, renderCtx }\n }\n}\n\nexport async function render(renderingProps: RenderRouteInfo): Promise {\n if (renderingProps.err) {\n await renderError(renderingProps)\n return\n }\n\n try {\n await doRender(renderingProps)\n } catch (renderErr) {\n // bubble up cancelation errors\n if (renderErr.cancelled) {\n throw renderErr\n }\n\n if (process.env.NODE_ENV === 'development') {\n // Ensure this error is displayed in the overlay in development\n setTimeout(() => {\n throw renderErr\n })\n }\n await renderError({ ...renderingProps, err: renderErr })\n }\n}\n\n// This method handles all runtime and debug errors.\n// 404 and 500 errors are special kind of errors\n// and they are still handle via the main render method.\nexport function renderError(renderErrorProps: RenderErrorProps): Promise {\n const { App, err } = renderErrorProps\n\n // In development runtime errors are caught by our overlay\n // In production we catch runtime errors using componentDidCatch which will trigger renderError\n if (process.env.NODE_ENV !== 'production') {\n // A Next.js rendering runtime error is always unrecoverable\n // FIXME: let's make this recoverable (error in GIP client-transition)\n webpackHMR.onUnrecoverableError()\n\n // We need to render an empty so that the `` can\n // render itself.\n return doRender({\n App: () => null,\n props: {},\n Component: () => null,\n styleSheets: [],\n })\n }\n\n // Make sure we log the error to the console, otherwise users can't track down issues.\n console.error(err)\n return pageLoader\n .loadPage('/_error')\n .then(({ page: ErrorComponent, styleSheets }) => {\n // In production we do a normal render with the `ErrorComponent` as component.\n // If we've gotten here upon initial render, we can use the props from the server.\n // Otherwise, we need to call `getInitialProps` on `App` before mounting.\n const AppTree = wrapApp(App)\n const appCtx = {\n Component: ErrorComponent,\n AppTree,\n router,\n ctx: { err, pathname: page, query, asPath, AppTree },\n }\n return Promise.resolve(\n renderErrorProps.props\n ? renderErrorProps.props\n : loadGetInitialProps(App, appCtx)\n ).then((initProps) =>\n doRender({\n ...renderErrorProps,\n err,\n Component: ErrorComponent,\n styleSheets,\n props: initProps,\n })\n )\n })\n}\n\nlet reactRoot: any = null\nlet shouldHydrate: boolean = typeof ReactDOM.hydrate === 'function'\n\nfunction renderReactElement(\n domEl: HTMLElement,\n fn: (cb: () => void) => JSX.Element\n): void {\n // mark start of hydrate/render\n if (ST) {\n performance.mark('beforeRender')\n }\n\n const reactEl = fn(shouldHydrate ? markHydrateComplete : markRenderComplete)\n if (process.env.__NEXT_REACT_ROOT) {\n if (!reactRoot) {\n const createRootName =\n typeof (ReactDOM as any).unstable_createRoot === 'function'\n ? 'unstable_createRoot'\n : 'createRoot'\n reactRoot = (ReactDOM as any)[createRootName](domEl, {\n hydrate: shouldHydrate,\n })\n }\n reactRoot.render(reactEl)\n shouldHydrate = false\n } else {\n // The check for `.hydrate` is there to support React alternatives like preact\n if (shouldHydrate) {\n ReactDOM.hydrate(reactEl, domEl)\n shouldHydrate = false\n } else {\n ReactDOM.render(reactEl, domEl)\n }\n }\n}\n\nfunction markHydrateComplete(): void {\n if (!ST) return\n\n performance.mark('afterHydrate') // mark end of hydration\n\n performance.measure(\n 'Next.js-before-hydration',\n 'navigationStart',\n 'beforeRender'\n )\n performance.measure('Next.js-hydration', 'beforeRender', 'afterHydrate')\n\n if (onPerfEntry) {\n performance.getEntriesByName('Next.js-hydration').forEach(onPerfEntry)\n }\n clearMarks()\n}\n\nfunction markRenderComplete(): void {\n if (!ST) return\n\n performance.mark('afterRender') // mark end of render\n const navStartEntries: PerformanceEntryList = performance.getEntriesByName(\n 'routeChange',\n 'mark'\n )\n\n if (!navStartEntries.length) return\n\n performance.measure(\n 'Next.js-route-change-to-render',\n navStartEntries[0].name,\n 'beforeRender'\n )\n performance.measure('Next.js-render', 'beforeRender', 'afterRender')\n if (onPerfEntry) {\n performance.getEntriesByName('Next.js-render').forEach(onPerfEntry)\n performance\n .getEntriesByName('Next.js-route-change-to-render')\n .forEach(onPerfEntry)\n }\n clearMarks()\n ;['Next.js-route-change-to-render', 'Next.js-render'].forEach((measure) =>\n performance.clearMeasures(measure)\n )\n}\n\nfunction clearMarks(): void {\n ;[\n 'beforeRender',\n 'afterHydrate',\n 'afterRender',\n 'routeChange',\n ].forEach((mark) => performance.clearMarks(mark))\n}\n\nfunction AppContainer({\n children,\n}: React.PropsWithChildren<{}>): React.ReactElement {\n return (\n \n renderError({ App: CachedApp, err: error }).catch((err) =>\n console.error('Error rendering page: ', err)\n )\n }\n >\n \n \n {children}\n \n \n \n )\n}\n\nconst wrapApp = (App: AppComponent) => (\n wrappedAppProps: Record\n): JSX.Element => {\n const appProps: AppProps = {\n ...wrappedAppProps,\n Component: CachedComponent,\n err: hydrateErr,\n router,\n }\n return (\n \n \n \n )\n}\n\nlet lastAppProps: AppProps\nfunction doRender(input: RenderRouteInfo): Promise {\n let { App, Component, props, err }: RenderRouteInfo = input\n let styleSheets: StyleSheetTuple[] | undefined =\n 'initial' in input ? undefined : input.styleSheets\n Component = Component || lastAppProps.Component\n props = props || lastAppProps.props\n\n const appProps: AppProps = {\n ...props,\n Component,\n err,\n router,\n }\n // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error.\n lastAppProps = appProps\n\n let canceled: boolean = false\n let resolvePromise: () => void\n const renderPromise = new Promise((resolve, reject) => {\n if (lastRenderReject) {\n lastRenderReject()\n }\n resolvePromise = () => {\n lastRenderReject = null\n resolve()\n }\n lastRenderReject = () => {\n canceled = true\n lastRenderReject = null\n\n const error: any = new Error('Cancel rendering route')\n error.cancelled = true\n reject(error)\n }\n })\n\n // This function has a return type to ensure it doesn't start returning a\n // Promise. It should remain synchronous.\n function onStart(): boolean {\n if (\n !styleSheets ||\n // We use `style-loader` in development, so we don't need to do anything\n // unless we're in production:\n process.env.NODE_ENV !== 'production'\n ) {\n return false\n }\n\n const currentStyleTags: HTMLStyleElement[] = looseToArray(\n document.querySelectorAll('style[data-n-href]')\n )\n const currentHrefs: Set = new Set(\n currentStyleTags.map((tag) => tag.getAttribute('data-n-href'))\n )\n\n const noscript: Element | null = document.querySelector(\n 'noscript[data-n-css]'\n )\n const nonce: string | null | undefined = noscript?.getAttribute(\n 'data-n-css'\n )\n\n styleSheets.forEach(({ href, text }: { href: string; text: any }) => {\n if (!currentHrefs.has(href)) {\n const styleTag = document.createElement('style')\n styleTag.setAttribute('data-n-href', href)\n styleTag.setAttribute('media', 'x')\n\n if (nonce) {\n styleTag.setAttribute('nonce', nonce)\n }\n\n document.head.appendChild(styleTag)\n styleTag.appendChild(document.createTextNode(text))\n }\n })\n return true\n }\n\n function onHeadCommit(): void {\n if (\n // We use `style-loader` in development, so we don't need to do anything\n // unless we're in production:\n process.env.NODE_ENV === 'production' &&\n // We can skip this during hydration. Running it wont cause any harm, but\n // we may as well save the CPU cycles:\n styleSheets &&\n // Ensure this render was not canceled\n !canceled\n ) {\n const desiredHrefs: Set = new Set(styleSheets.map((s) => s.href))\n const currentStyleTags: HTMLStyleElement[] = looseToArray<\n HTMLStyleElement\n >(document.querySelectorAll('style[data-n-href]'))\n const currentHrefs: string[] = currentStyleTags.map(\n (tag) => tag.getAttribute('data-n-href')!\n )\n\n // Toggle `