{"mappings":";;AAEA,OAAO,eAAe,iBAAiB,UAAyE;CAC9G,IAAK,SAAS,aAAa,gBAAgB,CAAC,SAAS,SAAS,WAAW,aAAa,KAAM,SAAS,KAAK,WAAW,SAAS,GAAG;CACjI,MAAM,QAAQ,IAAI;EAChB,OAAO;EAGP,OAAO;EACP,OAAO;EACP,OAAO,oCAAoC,CAAC,MAAM,EAAE,uBAAuB,iBAAiB,SAAS,UAAU,SAAS,MAAM,CAAC;CACjI,CAAC,CAAC,CAAC,YAAY;;CAEf,CAAC;AACH;AAEA,IAAI,OAAO,WAAW,aAAa,KAAK,iBAAiB,OAAO,QAAQ","names":[],"sources":["workspace-preload.ts"],"version":3,"sourcesContent":["/** Start the workspace's code and authorized reads before the router module tree\n * finishes loading. The route and mounted shell reuse the same modules/cache. */\nexport async function preloadWorkspace(location: Pick<Location, 'pathname' | 'search' | 'hash'>): Promise<void> {\n  if ((location.pathname !== '/workspace' && !location.pathname.startsWith('/workspace/')) || location.hash.startsWith('#reset=')) return\n  await Promise.all([\n    import('@/pages/layout/PageLayout'),\n    // These shell dependencies have deeper import trees. Discover them together\n    // rather than waiting for PageSession/PlatformBranding and PageLayout.\n    import('@/components/Appearance/PlatformTheme'),\n    import('@/pages/layout/HeaderAvatarMenu'),\n    import('@/pages/runtime/workspace-startup').then(({ prepareWorkspace }) => prepareWorkspace(location.pathname, location.search)),\n  ]).catch(() => {\n    // Speculative loading never owns the error UI; the route/session can retry.\n  })\n}\n\nif (typeof window !== 'undefined') void preloadWorkspace(window.location)\n"]}