{"version":3,"sources":["../../../src/server/dev/hot-reloader-webpack.ts"],"names":["renderScriptError","matchNextPageBundleRequest","HotReloader","MILLISECONDS_IN_NANOSECOND","diff","a","b","Set","filter","v","has","wsServer","ws","Server","noServer","res","error","verbose","setHeader","code","finished","undefined","console","stack","statusCode","end","addCorsSupport","req","url","startsWith","preflight","headers","origin","method","writeHead","getPathMatch","findEntryModule","module","compilation","issuer","moduleGraph","getIssuer","erroredPages","failedPages","errors","entryModule","name","enhancedName","getRouteFromEntrypoint","push","constructor","dir","config","pagesDir","distDir","buildId","previewProps","rewrites","appDir","telemetry","clientError","serverError","hmrServerError","pagesMapping","versionInfo","staleness","installed","reloadAfterInvalidation","hasAmpEntrypoints","hasAppRouterEntrypoints","hasPagesRouterEntrypoints","interceptors","clientStats","serverStats","edgeServerStats","serverPrevDocumentHash","hotReloaderSpan","trace","version","process","env","__NEXT_VERSION","stop","run","parsedUrl","handlePageBundleRequest","pageBundleRes","parsedPageBundleUrl","pathname","params","decodedPagePath","path","map","param","decodeURIComponent","join","_","DecodeError","page","denormalizePagePath","BLOCKED_PAGES","indexOf","ensurePage","clientOnly","getProperError","getCompilationErrors","length","fn","Promise","resolve","reject","err","setHmrServerError","clearHmrServerError","send","action","HMR_ACTIONS_SENT_TO_BROWSER","RELOAD_PAGE","refreshServerComponents","SERVER_COMPONENT_CHANGES","onHMR","_socket","head","handleUpgrade","socket","client","webpackHotMiddleware","onDemandEntries","addEventListener","data","toString","payload","JSON","parse","traceChild","event","Span","spanName","startTime","BigInt","Math","floor","attrs","attributes","endTime","updatedModules","m","replace","isPageHidden","errorCount","warningCount","stackTrace","hadRuntimeError","Log","warn","fileMessage","file","exec","WEBPACK_LAYERS","appPagesBrowser","fileUrl","URL","cwd","modules","searchParams","getAll","filepath","slice","manualTraceChild","hrtime","bigint","clientId","id","clean","span","traceAsyncFn","recursiveDelete","getVersionInfo","enabled","versionInfoSpan","require","registry","getRegistry","fetch","ok","tags","json","parseVersionInfo","latest","canary","getWebpackConfig","webpackConfigSpan","pageExtensions","pagePaths","all","findPageFile","traceFn","createPagesMapping","isDev","pagesType","i","entrypoints","createEntrypoints","envFiles","pages","previewMode","rootDir","commonWebpackOptions","dev","originalRewrites","_originalRewrites","originalRedirects","_originalRedirects","runWebpackSpan","info","loadProjectInfo","getBaseWebpackConfig","compilerType","COMPILER_NAMES","server","edgeServer","buildFallbackError","fallbackWatcher","fallbackConfig","beforeFiles","afterFiles","fallback","isDevFallback","fallbackCompiler","webpack","bootedFallbackCompiler","watch","watchOptions","_err","start","startSpan","testMode","NEXT_TEST_MODE","__NEXT_TEST_MODE","isEnabled","fs","mkdir","recursive","distPackageJsonPath","writeFile","activeWebpackConfigs","defaultEntry","entry","args","outputPath","multiCompiler","entries","getEntries","isClientCompilation","isNodeServerCompilation","isEdgeServerCompilation","Object","keys","entryKey","entryData","bundlePath","dispose","result","key","isEntry","type","EntryTypes","ENTRY","isChildEntry","CHILD_ENTRY","pageExists","existsSync","absolutePagePath","absoluteEntryFilePath","hasAppDir","isAppPath","staticInfo","getStaticInfoIncludingLayouts","isInsideAppDir","pageFilePath","amp","isServerComponent","rsc","RSC_MODULE_TYPES","pageType","runDependingOnPageType","pageRuntime","runtime","onEdgeServer","appDirLoader","getAppEntry","appPaths","pagePath","posix","APP_DIR_ALIAS","relative","tsconfigPath","typescript","basePath","assetPrefix","nextConfigOutput","output","preferredRegion","middlewareConfig","Buffer","from","stringify","middleware","import","status","BUILDING","finalizeEntrypoint","value","getEdgeServerEntry","onClient","request","getClientEntry","onServer","relativeRequest","context","isAbsolute","isAPIRoute","getRouteLoaderEntry","kind","RouteKind","PAGES_API","isMiddlewareFile","isInternalComponent","isNonRoutePagesPage","PAGES","CLIENT_STATIC_FILES_RUNTIME_AMP","CLIENT_STATIC_FILES_RUNTIME_MAIN","CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH","CLIENT_STATIC_FILES_RUNTIME_MAIN_APP","parallelism","inputFileSystem","compilers","compiler","fsStartTime","Date","now","hooks","beforeRun","intercept","register","tapInfo","done","tap","purge","watchCompilers","changedClientPages","changedServerPages","changedEdgeServerPages","changedServerComponentPages","changedCSSImportPages","prevClientPageHashes","Map","prevServerPageHashes","prevEdgeServerPageHashes","prevCSSImportModuleHashes","pageExtensionRegex","RegExp","trackPageChanges","pageHashMap","changedItems","serverComponentChangedItems","stats","forEach","isMiddlewareFilename","chunks","chunk","modsIterable","chunkGraph","getChunkModulesIterable","hasCSSModuleChanges","chunksHash","StringXor","chunksHashServerLayer","mod","resource","includes","test","hash","createHash","update","originalSource","buffer","digest","layer","reactServerComponents","buildInfo","add","getModuleHash","resourceKey","prevHash","get","set","curHash","serverKey","prevServerHash","curServerHash","emit","failed","serverChunkNames","documentChunk","namedChunks","chunkNames","diffChunkNames","difference","every","chunkName","serverOnlyChanges","edgeServerOnlyChanges","pageChanges","concat","middlewareChanges","Array","MIDDLEWARE_CHANGES","SERVER_ONLY_CHANGES","pg","size","clear","prevChunkNames","addedPages","removedPages","addedPage","ADDED_PAGE","removedPage","REMOVED_PAGE","WebpackHotMiddleware","booted","watcher","onDemandEntryHandler","hotReloader","nextConfig","getOverlayMiddleware","rootDirectory","invalidate","getInvalidator","close","getErrors","normalizedPage","normalizePathSep","hasErrors","publish","definition","isApp"],"mappings":";;;;;;;;;;;;;;;;IAsFsBA,iBAAiB;eAAjBA;;IAoDTC,0BAA0B;eAA1BA;;IA8Cb,OAiyCC;eAjyCoBC;;;yBAhLc;4BACE;+BACA;sBACa;yBAU3C;wBACwB;6DACV;uEAGd;2BACuC;iCACd;4BASzB;2BAEsB;8BACA;sCAOtB;qCAC6B;kCACH;+EACE;uBAK5B;wBACqB;uBACA;yBACG;2DAChB;oBAC4B;6BAEf;kCACK;4BAEN;iCACS;qCAI7B;2BACmB;kCAInB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGP,MAAMC,6BAA6B;AAEnC,SAASC,KAAKC,CAAW,EAAEC,CAAW;IACpC,OAAO,I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