{"version":3,"sources":["../../../src/client/components/layout-router.tsx"],"names":["OuterLayoutRouter","walkAddRefetch","segmentPathToWalk","treeToRecreate","segment","parallelRouteKey","isLast","length","matchSegment","hasOwnProperty","subTree","undefined","slice","findDOMNode","instance","window","process","env","NODE_ENV","originalConsoleError","console","error","messages","includes","ReactDOM","rectProperties","shouldSkipElement","element","getComputedStyle","position","warn","rect","getBoundingClientRect","every","item","topOfElementInViewport","viewportHeight","top","getHashFragmentDomNode","hashFragment","document","body","getElementById","getElementsByName","InnerScrollAndFocusHandler","React","Component","componentDidMount","handlePotentialScroll","componentDidUpdate","props","focusAndScrollRef","apply","render","children","segmentPath","segmentPaths","some","scrollRefSegmentPath","index","domNode","Element","HTMLElement","nextElementSibling","handleSmoothScroll","scrollIntoView","htmlElement","documentElement","clientHeight","scrollTop","dontForceLayout","onlyHashChange","focus","ScrollAndFocusHandler","context","useContext","GlobalLayoutRouterContext","Error","InnerLayoutRouter","parallelRouterKey","url","childNodes","childProp","tree","cacheKey","buildId","changeByServerResponse","fullTree","childNode","get","current","status","CacheStates","READY","data","subTreeData","parallelRoutes","Map","set","LAZY_INITIALIZED","refetchTree","DATA_FETCH","createRecordFromThenable","fetchServerResponse","URL","location","origin","nextUrl","head","flightData","overrideCanonicalUrl","use","setTimeout","startTransition","createInfinitePromise","subtree","LayoutRouterContext","Provider","value","LoadingBoundary","loading","loadingStyles","hasLoading","Suspense","fallback","errorStyles","templateStyles","template","notFound","notFoundStyles","styles","childNodesForParallelRouter","treeSegment","childPropSegment","currentChildSegmentValue","getSegmentValue","preservedSegments","map","preservedSegment","isChildPropSegment","preservedSegmentValue","createRouterCacheKey","TemplateContext","key","ErrorBoundary","errorComponent","NotFoundBoundary","RedirectBoundary","isActive"],"mappings":"AAAA;;;;;+BA6eA;;;CAGC,GACD;;;eAAwBA;;;;;iEAre0C;mEAC7C;+CAMd;qCAC6B;iCACE;+BACR;+BACD;oCACM;kCACF;kCACA;iCACD;sCACK;0CACI;AAEzC;;;CA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