clawpad 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +6 -6
  3. package/.next/standalone/.next/build-manifest.json +2 -2
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  7. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  18. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/api/ai/write/route_client-reference-manifest.js +1 -1
  24. package/.next/standalone/.next/server/app/api/changes/[id]/route_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/api/changes/record/route_client-reference-manifest.js +1 -1
  26. package/.next/standalone/.next/server/app/api/changes/revert/route_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/api/changes/run/route_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app/api/chat/abort/route_client-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/api/files/pages/[...path]/route_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
  33. package/.next/standalone/.next/server/app/api/files/search/route_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/api/files/spaces/[space]/pages/route.js +1 -1
  35. package/.next/standalone/.next/server/app/api/files/spaces/[space]/pages/route_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/api/files/spaces/route_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/api/files/watch/route_client-reference-manifest.js +1 -1
  38. package/.next/standalone/.next/server/app/api/gateway/detect/route_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/api/gateway/events/route_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/api/gateway/features/route_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/api/gateway/history/route_client-reference-manifest.js +1 -1
  42. package/.next/standalone/.next/server/app/api/gateway/resolve/route_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/api/gateway/sessions/route_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/api/gateway/status/route_client-reference-manifest.js +1 -1
  45. package/.next/standalone/.next/server/app/api/openclaw/commands/route_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/api/settings/search-status/route_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/api/setup/bootstrap/route_client-reference-manifest.js +1 -1
  49. package/.next/standalone/.next/server/app/api/setup/bootstrap-workspace/route_client-reference-manifest.js +1 -1
  50. package/.next/standalone/.next/server/app/api/setup/status/route_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/api/setup/trigger-onboarding/route_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/index.html +1 -1
  53. package/.next/standalone/.next/server/app/index.rsc +1 -1
  54. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  55. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  56. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  57. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  58. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  59. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/settings/connection/page_client-reference-manifest.js +1 -1
  61. package/.next/standalone/.next/server/app/settings/connection.html +1 -1
  62. package/.next/standalone/.next/server/app/settings/connection.rsc +1 -1
  63. package/.next/standalone/.next/server/app/settings/connection.segments/_full.segment.rsc +1 -1
  64. package/.next/standalone/.next/server/app/settings/connection.segments/_head.segment.rsc +1 -1
  65. package/.next/standalone/.next/server/app/settings/connection.segments/_index.segment.rsc +1 -1
  66. package/.next/standalone/.next/server/app/settings/connection.segments/_tree.segment.rsc +1 -1
  67. package/.next/standalone/.next/server/app/settings/connection.segments/settings/connection/__PAGE__.segment.rsc +1 -1
  68. package/.next/standalone/.next/server/app/settings/connection.segments/settings/connection.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app/settings/connection.segments/settings.segment.rsc +1 -1
  70. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  71. package/.next/standalone/.next/server/app/settings.html +1 -1
  72. package/.next/standalone/.next/server/app/settings.rsc +1 -1
  73. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +1 -1
  74. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  75. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  76. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  77. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
  78. package/.next/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  79. package/.next/standalone/.next/server/app/setup/page.js +1 -1
  80. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  81. package/.next/standalone/.next/server/app/setup.html +1 -1
  82. package/.next/standalone/.next/server/app/setup.rsc +2 -2
  83. package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +2 -2
  84. package/.next/standalone/.next/server/app/setup.segments/_head.segment.rsc +1 -1
  85. package/.next/standalone/.next/server/app/setup.segments/_index.segment.rsc +1 -1
  86. package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  87. package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +2 -2
  88. package/.next/standalone/.next/server/app/setup.segments/setup.segment.rsc +1 -1
  89. package/.next/standalone/.next/server/app/workspace/[...path]/page.js +1 -1
  90. package/.next/standalone/.next/server/app/workspace/[...path]/page_client-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
  92. package/.next/standalone/.next/server/app/workspace/search/page_client-reference-manifest.js +1 -1
  93. package/.next/standalone/.next/server/app/workspace/search.html +2 -2
  94. package/.next/standalone/.next/server/app/workspace/search.rsc +2 -2
  95. package/.next/standalone/.next/server/app/workspace/search.segments/_full.segment.rsc +2 -2
  96. package/.next/standalone/.next/server/app/workspace/search.segments/_head.segment.rsc +1 -1
  97. package/.next/standalone/.next/server/app/workspace/search.segments/_index.segment.rsc +1 -1
  98. package/.next/standalone/.next/server/app/workspace/search.segments/_tree.segment.rsc +1 -1
  99. package/.next/standalone/.next/server/app/workspace/search.segments/workspace/search/__PAGE__.segment.rsc +1 -1
  100. package/.next/standalone/.next/server/app/workspace/search.segments/workspace/search.segment.rsc +1 -1
  101. package/.next/standalone/.next/server/app/workspace/search.segments/workspace.segment.rsc +2 -2
  102. package/.next/standalone/.next/server/app/workspace.html +2 -2
  103. package/.next/standalone/.next/server/app/workspace.rsc +2 -2
  104. package/.next/standalone/.next/server/app/workspace.segments/_full.segment.rsc +2 -2
  105. package/.next/standalone/.next/server/app/workspace.segments/_head.segment.rsc +1 -1
  106. package/.next/standalone/.next/server/app/workspace.segments/_index.segment.rsc +1 -1
  107. package/.next/standalone/.next/server/app/workspace.segments/_tree.segment.rsc +1 -1
  108. package/.next/standalone/.next/server/app/workspace.segments/workspace/__PAGE__.segment.rsc +1 -1
  109. package/.next/standalone/.next/server/app/workspace.segments/workspace.segment.rsc +2 -2
  110. package/.next/standalone/.next/server/app-paths-manifest.json +6 -6
  111. package/.next/standalone/.next/server/chunks/3251.js +1 -1
  112. package/.next/standalone/.next/server/pages/404.html +1 -1
  113. package/.next/standalone/.next/server/pages/500.html +2 -2
  114. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  115. package/.next/standalone/package.json +1 -1
  116. package/.next/static/chunks/app/setup/page-7eac0e007d7fcd58.js +1 -0
  117. package/.next/static/chunks/app/workspace/{layout-1b1ab0e3ede2544b.js → layout-9717963f2fdd1346.js} +1 -1
  118. package/package.json +1 -1
  119. package/.next/static/chunks/app/setup/page-6e4deef7f9c6fa78.js +0 -1
  120. /package/.next/static/{Vdp_rUF6W0savCIJ0kRdG → WjQpy-wj7aRX-ddVHKjXc}/_buildManifest.js +0 -0
  121. /package/.next/static/{Vdp_rUF6W0savCIJ0kRdG → WjQpy-wj7aRX-ddVHKjXc}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--Vdp_rUF6W0savCIJ0kRdG--><html lang="en" class="__variable_245d8d __variable_97c177"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/27834908180db20f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/78fec81b34c4a365.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/a6a6c7db5d43079b.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/a44c237eaaac8354.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-2f676db6328b0d7d.js"/><script src="/_next/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-a1f34f01f7efbb58.js" async=""></script><script src="/_next/static/chunks/330-b7c74823606cc925.js" async=""></script><script src="/_next/static/chunks/9907-887311f99f5ddadc.js" async=""></script><script src="/_next/static/chunks/528-bcce4b03dcd2cc7a.js" async=""></script><script src="/_next/static/chunks/3496-84f355a971d68950.js" async=""></script><script src="/_next/static/chunks/6522-eb26a839daf0ace1.js" async=""></script><script src="/_next/static/chunks/1178-f2f0bd687a63b9f8.js" async=""></script><script src="/_next/static/chunks/app/layout-c12666d2d05cce33.js" async=""></script><script src="/_next/static/chunks/5403-0bffd8f59627ffd1.js" async=""></script><script src="/_next/static/chunks/1592-8d48cfb007c02ef4.js" async=""></script><script src="/_next/static/chunks/app/setup/page-6e4deef7f9c6fa78.js" async=""></script><meta name="next-size-adjust" content=""/><title>ClawPad</title><meta name="description" content="The workspace for OpenClaw"/><link rel="icon" href="/favicon.ico?50c20623341a5f1c" type="image/x-icon" sizes="256x256"/><link rel="icon" href="/favicon.ico"/><link rel="icon" href="/favicon.png" type="image/png"/><link rel="apple-touch-icon" href="/brand/apple-touch-icon.png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="flex min-h-screen items-center justify-center px-4 bg-background"><div class="w-full max-w-md"><div style="opacity:0;transform:translateX(80px)"><div class="rounded-xl border bg-card p-8 shadow-lg"><div class="space-y-6 text-center"><div class="mx-auto flex h-20 w-20 items-center justify-center rounded-2xl bg-muted/60 ring-1 ring-border/60" style="opacity:0;transform:scale(0.8)"><span class="inline-flex items-center"><img alt="" loading="lazy" width="50" height="44" decoding="async" data-nimg="1" class="block" style="color:transparent" srcSet="/_next/image?url=%2Fbrand%2Ficon.png&amp;w=64&amp;q=75 1x, /_next/image?url=%2Fbrand%2Ficon.png&amp;w=128&amp;q=75 2x" src="/_next/image?url=%2Fbrand%2Ficon.png&amp;w=128&amp;q=75"/></span></div><div class="space-y-2"><h1 class="text-2xl font-semibold tracking-tight">Welcome to ClawPad</h1><p class="text-muted-foreground text-sm">The workspace for<!-- --> <span class="inline-flex items-center gap-0.5 underline decoration-dotted underline-offset-2 cursor-help" data-state="closed" data-slot="tooltip-trigger">OpenClaw<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark inline h-3 w-3 text-muted-foreground" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg></span></p></div><div class="rounded-lg border bg-muted/30 p-4 text-left"><div class="flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle h-5 w-5 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg><div><p class="text-sm font-medium">Detecting<!-- --> <span class="inline-flex items-center gap-0.5 underline decoration-dotted underline-offset-2 cursor-help" data-state="closed" data-slot="tooltip-trigger">OpenClaw<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark inline h-3 w-3 text-muted-foreground" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg></span>…</p><p class="text-xs text-muted-foreground">Looking for your local gateway</p></div></div></div><div class="space-y-2"><button data-slot="button" data-variant="default" data-size="lg" class="inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-primary text-primary-foreground hover:bg-primary/90 h-10 rounded-md px-6 has-[&gt;svg]:px-4 w-full">Continue Without Agent<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right ml-1 h-4 w-4" aria-hidden="true"><path d="m9 18 6-6-6-6"></path></svg></button></div></div></div></div><div class="flex items-center justify-center gap-2 mt-6"><div class="h-1.5 rounded-full transition-all duration-300 w-8 bg-primary"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/webpack-2f676db6328b0d7d.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37279,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"528\",\"static/chunks/528-bcce4b03dcd2cc7a.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"6522\",\"static/chunks/6522-eb26a839daf0ace1.js\",\"1178\",\"static/chunks/1178-f2f0bd687a63b9f8.js\",\"7177\",\"static/chunks/app/layout-c12666d2d05cce33.js\"],\"Providers\"]\n3:I[57121,[],\"\"]\n4:I[74581,[],\"\"]\n5:I[25044,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"528\",\"static/chunks/528-bcce4b03dcd2cc7a.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"6522\",\"static/chunks/6522-eb26a839daf0ace1.js\",\"1178\",\"static/chunks/1178-f2f0bd687a63b9f8.js\",\"7177\",\"static/chunks/app/layout-c12666d2d05cce33.js\"],\"Toaster\"]\n6:I[61304,[],\"ClientPageRoot\"]\n7:I[69676,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"5403\",\"static/chunks/5403-0bffd8f59627ffd1.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"1592\",\"static/chunks/1592-8d48cfb007c02ef4.js\",\"620\",\"static/chunks/app/setup/page-6e4deef7f9c6fa78.js\"],\"default\"]\na:I[90484,[],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[90484,[],\"ViewportBoundary\"]\nf:I[90484,[],\"MetadataBoundary\"]\n11:I[27123,[],\"\"]\n:HL[\"/_next/static/media/27834908180db20f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/78fec81b34c4a365.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/a6a6c7db5d43079b.css\",\"style\"]\n:HL[\"/_next/static/css/a44c237eaaac8354.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"Vdp_rUF6W0savCIJ0kRdG\",\"c\":[\"\",\"setup\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"setup\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/a6a6c7db5d43079b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/a44c237eaaac8354.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"__variable_245d8d __variable_97c177\",\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L5\",null,{}]]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],null,[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[86869,[],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"ClawPad\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The workspace for OpenClaw\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?50c20623341a5f1c\",\"type\":\"image/x-icon\",\"sizes\":\"256x256\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.png\",\"type\":\"image/png\"}],[\"$\",\"link\",\"5\",{\"rel\":\"apple-touch-icon\",\"href\":\"/brand/apple-touch-icon.png\"}],[\"$\",\"$L12\",\"6\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--WjQpy_wj7aRX_ddVHKjXc--><html lang="en" class="__variable_245d8d __variable_97c177"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/27834908180db20f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/78fec81b34c4a365.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/a6a6c7db5d43079b.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/a44c237eaaac8354.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-2f676db6328b0d7d.js"/><script src="/_next/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-a1f34f01f7efbb58.js" async=""></script><script src="/_next/static/chunks/330-b7c74823606cc925.js" async=""></script><script src="/_next/static/chunks/9907-887311f99f5ddadc.js" async=""></script><script src="/_next/static/chunks/528-bcce4b03dcd2cc7a.js" async=""></script><script src="/_next/static/chunks/3496-84f355a971d68950.js" async=""></script><script src="/_next/static/chunks/6522-eb26a839daf0ace1.js" async=""></script><script src="/_next/static/chunks/1178-f2f0bd687a63b9f8.js" async=""></script><script src="/_next/static/chunks/app/layout-c12666d2d05cce33.js" async=""></script><script src="/_next/static/chunks/5403-0bffd8f59627ffd1.js" async=""></script><script src="/_next/static/chunks/1592-8d48cfb007c02ef4.js" async=""></script><script src="/_next/static/chunks/app/setup/page-7eac0e007d7fcd58.js" async=""></script><meta name="next-size-adjust" content=""/><title>ClawPad</title><meta name="description" content="The workspace for OpenClaw"/><link rel="icon" href="/favicon.ico?50c20623341a5f1c" type="image/x-icon" sizes="256x256"/><link rel="icon" href="/favicon.ico"/><link rel="icon" href="/favicon.png" type="image/png"/><link rel="apple-touch-icon" href="/brand/apple-touch-icon.png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="flex min-h-screen items-center justify-center px-4 bg-background"><div class="w-full max-w-md"><div style="opacity:0;transform:translateX(80px)"><div class="rounded-xl border bg-card p-8 shadow-lg"><div class="space-y-6 text-center"><div class="mx-auto flex h-20 w-20 items-center justify-center rounded-2xl bg-muted/60 ring-1 ring-border/60" style="opacity:0;transform:scale(0.8)"><span class="inline-flex items-center"><img alt="" loading="lazy" width="50" height="44" decoding="async" data-nimg="1" class="block" style="color:transparent" srcSet="/_next/image?url=%2Fbrand%2Ficon.png&amp;w=64&amp;q=75 1x, /_next/image?url=%2Fbrand%2Ficon.png&amp;w=128&amp;q=75 2x" src="/_next/image?url=%2Fbrand%2Ficon.png&amp;w=128&amp;q=75"/></span></div><div class="space-y-2"><h1 class="text-2xl font-semibold tracking-tight">Welcome to ClawPad</h1><p class="text-muted-foreground text-sm">The workspace for<!-- --> <span class="inline-flex items-center gap-0.5 underline decoration-dotted underline-offset-2 cursor-help" data-state="closed" data-slot="tooltip-trigger">OpenClaw<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark inline h-3 w-3 text-muted-foreground" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg></span></p></div><div class="rounded-lg border bg-muted/30 p-4 text-left"><div class="flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle h-5 w-5 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg><div><p class="text-sm font-medium">Detecting<!-- --> <span class="inline-flex items-center gap-0.5 underline decoration-dotted underline-offset-2 cursor-help" data-state="closed" data-slot="tooltip-trigger">OpenClaw<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark inline h-3 w-3 text-muted-foreground" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg></span>…</p><p class="text-xs text-muted-foreground">Looking for your local gateway</p></div></div></div><div class="space-y-2"><button data-slot="button" data-variant="default" data-size="lg" class="inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 shrink-0 [&amp;_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-primary text-primary-foreground hover:bg-primary/90 h-10 rounded-md px-6 has-[&gt;svg]:px-4 w-full">Continue Without Agent<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right ml-1 h-4 w-4" aria-hidden="true"><path d="m9 18 6-6-6-6"></path></svg></button></div></div></div></div><div class="flex items-center justify-center gap-2 mt-6"><div class="h-1.5 rounded-full transition-all duration-300 w-8 bg-primary"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div><div class="h-1.5 rounded-full transition-all duration-300 w-4 bg-muted"></div></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/webpack-2f676db6328b0d7d.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[37279,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"528\",\"static/chunks/528-bcce4b03dcd2cc7a.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"6522\",\"static/chunks/6522-eb26a839daf0ace1.js\",\"1178\",\"static/chunks/1178-f2f0bd687a63b9f8.js\",\"7177\",\"static/chunks/app/layout-c12666d2d05cce33.js\"],\"Providers\"]\n3:I[57121,[],\"\"]\n4:I[74581,[],\"\"]\n5:I[25044,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"528\",\"static/chunks/528-bcce4b03dcd2cc7a.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"6522\",\"static/chunks/6522-eb26a839daf0ace1.js\",\"1178\",\"static/chunks/1178-f2f0bd687a63b9f8.js\",\"7177\",\"static/chunks/app/layout-c12666d2d05cce33.js\"],\"Toaster\"]\n6:I[61304,[],\"ClientPageRoot\"]\n7:I[69676,[\"330\",\"static/chunks/330-b7c74823606cc925.js\",\"9907\",\"static/chunks/9907-887311f99f5ddadc.js\",\"5403\",\"static/chunks/5403-0bffd8f59627ffd1.js\",\"3496\",\"static/chunks/3496-84f355a971d68950.js\",\"1592\",\"static/chunks/1592-8d48cfb007c02ef4.js\",\"620\",\"static/chunks/app/setup/page-7eac0e007d7fcd58.js\"],\"default\"]\na:I[90484,[],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[90484,[],\"ViewportBoundary\"]\nf:I[90484,[],\"MetadataBoundary\"]\n11:I[27123,[],\"\"]\n:HL[\"/_next/static/media/27834908180db20f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/78fec81b34c4a365.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/a6a6c7db5d43079b.css\",\"style\"]\n:HL[\"/_next/static/css/a44c237eaaac8354.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"WjQpy-wj7aRX-ddVHKjXc\",\"c\":[\"\",\"setup\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"setup\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/a6a6c7db5d43079b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/a44c237eaaac8354.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"__variable_245d8d __variable_97c177\",\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L5\",null,{}]]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],null,[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[86869,[],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"ClawPad\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The workspace for OpenClaw\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?50c20623341a5f1c\",\"type\":\"image/x-icon\",\"sizes\":\"256x256\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.png\",\"type\":\"image/png\"}],[\"$\",\"link\",\"5\",{\"rel\":\"apple-touch-icon\",\"href\":\"/brand/apple-touch-icon.png\"}],[\"$\",\"$L12\",\"6\",{}]]\n"])</script></body></html>
@@ -4,7 +4,7 @@
4
4
  4:I[74581,[],""]
5
5
  5:I[25044,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","528","static/chunks/528-bcce4b03dcd2cc7a.js","3496","static/chunks/3496-84f355a971d68950.js","6522","static/chunks/6522-eb26a839daf0ace1.js","1178","static/chunks/1178-f2f0bd687a63b9f8.js","7177","static/chunks/app/layout-c12666d2d05cce33.js"],"Toaster"]
6
6
  6:I[61304,[],"ClientPageRoot"]
7
- 7:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-6e4deef7f9c6fa78.js"],"default"]
7
+ 7:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-7eac0e007d7fcd58.js"],"default"]
8
8
  a:I[90484,[],"OutletBoundary"]
9
9
  b:"$Sreact.suspense"
10
10
  d:I[90484,[],"ViewportBoundary"]
@@ -14,7 +14,7 @@ f:I[90484,[],"MetadataBoundary"]
14
14
  :HL["/_next/static/media/78fec81b34c4a365.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
15
15
  :HL["/_next/static/css/a6a6c7db5d43079b.css","style"]
16
16
  :HL["/_next/static/css/a44c237eaaac8354.css","style"]
17
- 0:{"P":null,"b":"Vdp_rUF6W0savCIJ0kRdG","c":["","setup"],"q":"","i":false,"f":[[["",{"children":["setup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
17
+ 0:{"P":null,"b":"WjQpy-wj7aRX-ddVHKjXc","c":["","setup"],"q":"","i":false,"f":[[["",{"children":["setup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
18
18
  8:{}
19
19
  9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
20
20
  e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
@@ -4,7 +4,7 @@
4
4
  4:I[74581,[],""]
5
5
  5:I[25044,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","528","static/chunks/528-bcce4b03dcd2cc7a.js","3496","static/chunks/3496-84f355a971d68950.js","6522","static/chunks/6522-eb26a839daf0ace1.js","1178","static/chunks/1178-f2f0bd687a63b9f8.js","7177","static/chunks/app/layout-c12666d2d05cce33.js"],"Toaster"]
6
6
  6:I[61304,[],"ClientPageRoot"]
7
- 7:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-6e4deef7f9c6fa78.js"],"default"]
7
+ 7:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-7eac0e007d7fcd58.js"],"default"]
8
8
  a:I[90484,[],"OutletBoundary"]
9
9
  b:"$Sreact.suspense"
10
10
  d:I[90484,[],"ViewportBoundary"]
@@ -14,7 +14,7 @@ f:I[90484,[],"MetadataBoundary"]
14
14
  :HL["/_next/static/media/78fec81b34c4a365.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
15
15
  :HL["/_next/static/css/a6a6c7db5d43079b.css","style"]
16
16
  :HL["/_next/static/css/a44c237eaaac8354.css","style"]
17
- 0:{"P":null,"b":"Vdp_rUF6W0savCIJ0kRdG","c":["","setup"],"q":"","i":false,"f":[[["",{"children":["setup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
17
+ 0:{"P":null,"b":"WjQpy-wj7aRX-ddVHKjXc","c":["","setup"],"q":"","i":false,"f":[[["",{"children":["setup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
18
18
  8:{}
19
19
  9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
20
20
  e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
@@ -3,4 +3,4 @@
3
3
  3:I[90484,[],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
5
  5:I[86869,[],"IconMark"]
6
- 0:{"buildId":"Vdp_rUF6W0savCIJ0kRdG","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"ClawPad"}],["$","meta","1",{"name":"description","content":"The workspace for OpenClaw"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?50c20623341a5f1c","type":"image/x-icon","sizes":"256x256"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"icon","href":"/favicon.png","type":"image/png"}],["$","link","5",{"rel":"apple-touch-icon","href":"/brand/apple-touch-icon.png"}],["$","$L5","6",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"WjQpy-wj7aRX-ddVHKjXc","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"ClawPad"}],["$","meta","1",{"name":"description","content":"The workspace for OpenClaw"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?50c20623341a5f1c","type":"image/x-icon","sizes":"256x256"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"icon","href":"/favicon.png","type":"image/png"}],["$","link","5",{"rel":"apple-touch-icon","href":"/brand/apple-touch-icon.png"}],["$","$L5","6",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
@@ -5,4 +5,4 @@
5
5
  5:I[25044,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","528","static/chunks/528-bcce4b03dcd2cc7a.js","3496","static/chunks/3496-84f355a971d68950.js","6522","static/chunks/6522-eb26a839daf0ace1.js","1178","static/chunks/1178-f2f0bd687a63b9f8.js","7177","static/chunks/app/layout-c12666d2d05cce33.js"],"Toaster"]
6
6
  :HL["/_next/static/css/a6a6c7db5d43079b.css","style"]
7
7
  :HL["/_next/static/css/a44c237eaaac8354.css","style"]
8
- 0:{"buildId":"Vdp_rUF6W0savCIJ0kRdG","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}],["$","$L5",null,{}]]}]}]}]]}],"loading":null,"isPartial":false}
8
+ 0:{"buildId":"WjQpy-wj7aRX-ddVHKjXc","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a6a6c7db5d43079b.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a44c237eaaac8354.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"__variable_245d8d __variable_97c177","children":["$","body",null,{"className":"font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}],["$","$L5",null,{}]]}]}]}]]}],"loading":null,"isPartial":false}
@@ -2,4 +2,4 @@
2
2
  :HL["/_next/static/media/78fec81b34c4a365.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
3
3
  :HL["/_next/static/css/a6a6c7db5d43079b.css","style"]
4
4
  :HL["/_next/static/css/a44c237eaaac8354.css","style"]
5
- 0:{"buildId":"Vdp_rUF6W0savCIJ0kRdG","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"setup","paramType":null,"paramKey":"setup","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
5
+ 0:{"buildId":"WjQpy-wj7aRX-ddVHKjXc","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"setup","paramType":null,"paramKey":"setup","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
@@ -1,9 +1,9 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[61304,[],"ClientPageRoot"]
3
- 3:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-6e4deef7f9c6fa78.js"],"default"]
3
+ 3:I[69676,["330","static/chunks/330-b7c74823606cc925.js","9907","static/chunks/9907-887311f99f5ddadc.js","5403","static/chunks/5403-0bffd8f59627ffd1.js","3496","static/chunks/3496-84f355a971d68950.js","1592","static/chunks/1592-8d48cfb007c02ef4.js","620","static/chunks/app/setup/page-7eac0e007d7fcd58.js"],"default"]
4
4
  6:I[90484,[],"OutletBoundary"]
5
5
  7:"$Sreact.suspense"
6
- 0:{"buildId":"Vdp_rUF6W0savCIJ0kRdG","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"WjQpy-wj7aRX-ddVHKjXc","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
7
7
  4:{}
8
8
  5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
9
9
  8:null
@@ -1,4 +1,4 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[57121,[],""]
3
3
  3:I[74581,[],""]
4
- 0:{"buildId":"Vdp_rUF6W0savCIJ0kRdG","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
4
+ 0:{"buildId":"WjQpy-wj7aRX-ddVHKjXc","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
@@ -1,2 +1,2 @@
1
1
  (()=>{var a={};a.id=8118,a.ids=[8118],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4312:(a,b,c)=>{"use strict";c.d(b,{PageDiffFallback:()=>g});var d=c(48249),e=c(34351),f=c(42886);function g({filePath:a,fallback:b}){let c=(0,e.W)(a=>a.review),g=(0,e.W)(a=>a.closeReview);return c.open&&c.changeSetId&&c.filePath===a?(0,d.jsx)(f.W,{changeSetId:c.changeSetId,filePath:a,onExit:g}):(0,d.jsx)(d.Fragment,{children:b})}},10117:(a,b)=>{"use strict";function c(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"encodeURIPath",{enumerable:!0,get:function(){return c}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},22463:(a,b,c)=>{"use strict";c.d(b,{PageEditor:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call PageEditor() from the server but PageEditor is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/clawpad/clawpad/src/components/editor/page-editor.tsx","PageEditor")},23318:(a,b,c)=>{let{createProxy:d}=c(78830);a.exports=d("/home/runner/work/clawpad/clawpad/node_modules/next/dist/client/app-dir/link.js")},24790:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>L,handler:()=>N,routeModule:()=>M});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(63747),o=c(24235),p=c(23938),q=c(261),r=c(66758),s=c(77243),t=c(26713),u=c(37527),v=c(22820),w=c(88216),x=c(47929),y=c(79551),z=c(89125),A=c(86439),B=c(77068),C=c(95547),D=c.n(C),E=c(61287),F=c(81494),G=c(70722),H=c(70753),I=c(43954),J={};for(let a in E)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(J[a]=()=>E[a]);c.d(b,J);let K={children:["",{children:["workspace",{children:["[...path]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,41122)),"/home/runner/work/clawpad/clawpad/src/app/workspace/[...path]/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,84763)),"/home/runner/work/clawpad/clawpad/src/app/workspace/layout.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,76537)),"/home/runner/work/clawpad/clawpad/src/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,L={require:c,loadChunk:()=>Promise.resolve()},M=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/workspace/[...path]/page",pathname:"/workspace/[...path]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:K},distDir:".next",relativeProjectDir:""});async function N(a,b,d){var C;M.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let J=!!(0,h.getRequestMeta)(a,"minimalMode"),O="/workspace/[...path]/page";"/index"===O&&(O="/");let P=await M.prepare(a,b,{srcPage:O,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,parsedUrl:ae,interceptionRoutePatterns:af,deploymentId:ag}=P,ah=(0,q.normalizeAppPath)(O),{isOnDemandRevalidate:ai}=P,aj=ad.experimental.ppr&&!ad.cacheComponents&&(0,I.isInterceptionRouteAppPath)(aa)?null:M.match(aa,$),ak=!!$.routes[aa],al=a.headers["user-agent"]||"",am=(0,t.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],aq=(0,r.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&ar&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let as=ar&&(null==(C=$.routes[ah]??$.dynamicRoutes[ah])?void 0:C.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?(0,h.getRequestMeta)(a,"postponed"):void 0,aw=as&&ap&&!ao;J&&(aw=aw&&!!av);let ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=(!an||!as)&&(!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots)),az=!!((aj||ak||$.routes[ah])&&!(an&&as)),aA=as&&!0===ad.cacheComponents,aB=!0===M.isDev||!az||"string"==typeof av||(aA&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aw&&!J:aw),aC=an&&as,aD=null;_||!az||aB||aq||av||aw||(aD=aa);let aE=aD;!aE&&M.isDev&&(aE=aa),M.isDev||_||!az||!ap||aw||(0,k.d)(a.headers);let aF={...E,tree:K,GlobalError:D(),handler:N,routeModule:M,__next_app__:L};X&&Y&&(0,o.setManifestsSingleton)({page:O,clientReferenceManifest:Y,serverActionsManifest:X});let aG=a.method||"GET",aH=(0,g.getTracer)(),aI=aH.getActiveScopeSpan(),aJ=async()=>((null==ac?void 0:ac.render404)?await ac.render404(a,b,ae,!1):b.end("This page could not be found"),null);try{let f=M.getVaryHeader(aa,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return M.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aH.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aG} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aG} ${O}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aF,Component:(0,j.T)(aF),params:S,routeModule:M,page:O,postponed:f,shouldWaitOnAllReady:aC,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||aB,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,setCacheStatus:null==ac?void 0:ac.setCacheStatus,setIsrStatus:null==ac?void 0:ac.setIsrStatus,setReactDebugChannel:null==ac?void 0:ac.setReactDebugChannel,sendErrorsToBrowser:null==ac?void 0:ac.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),M.relativeProjectDir),isDraftMode:_,botType:am,isOnDemandRevalidate:ai,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,images:ad.images,previewProps:$.preview,deploymentId:ag,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ad.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...at||au?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:at}:{},cacheComponents:!!ad.cacheComponents,experimental:{isRoutePPREnabled:as,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ad.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,B.parseMaxPostponedStateSize)(ad.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>M.onRequestError(a,b,d,e,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:M.isDev}};at&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=at),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,az&&(null==p?void 0:p.revalidate)===0&&!M.isDev&&!as){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
- see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===M.isDev,q=c||b.writableEnded;if(ai&&ab&&!f&&!J)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(k=(0,v.parseFallbackField)(aj.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(al)&&(!as||an)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!J&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aE&&!q&&!_&&T&&(l||!ak)){if((l||aj)&&k===v.FallbackMode.NOT_FOUND){if(ad.experimental.adapterPath)return await aJ();throw new A.NoFallbackError}if(as&&(ad.cacheComponents?!aw:!ap)){let b=l&&"string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:ah,c=l&&(null==aj?void 0:aj.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null,f=await M.handleResponse({cacheKey:b,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:as,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:J});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ai||g||!av?void 0:av;if(aA&&!J&&m&&aw&&!j){let b=await m.get(aa,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=M.getResponseCache(a);try{await b.revalidate(aa,m,as,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(at&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==aj?void 0:aj.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await M.handleResponse({cacheKey:aD,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil,isMinimalMode:J});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),M.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aD)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;az&&!aw&&(!n||ao)&&(J||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(av)l={revalidate:0,expire:void 0};else if(aw)l={revalidate:0,expire:void 0};else if(!M.isDev)if(_)l={revalidate:0,expire:void 0};else if(az){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];J&&az&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=aA?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(J&&az||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(J&&az&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ap&&as||(b.statusCode=q.status),!J&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),n&&!aw&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ad.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||J||ap)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:m.cacheControl});if(at)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aI)return await aH.withPropagatedContext(a.headers,()=>aH.trace(i.BaseServerSpan.handleRequest,{spanName:`${aG} ${O}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aG,"http.target":a.url}},q));await q(aI)}catch(b){throw b instanceof A.NoFallbackError||await M.onRequestError(a,b,{routerKind:"App Router",routePath:O,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:az,isOnDemandRevalidate:ai})},!1,ac),b}}},25338:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,23318,23)),Promise.resolve().then(c.bind(c,25994)),Promise.resolve().then(c.bind(c,22463))},25994:(a,b,c)=>{"use strict";c.d(b,{PageDiffFallback:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call PageDiffFallback() from the server but PageDiffFallback is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/clawpad/clawpad/src/components/editor/page-diff-fallback.tsx","PageDiffFallback")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},39973:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return e}});let d=c(40399)._(c(80061));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41122:(a,b,c)=>{"use strict";let d;c.r(b),c.d(b,{default:()=>t});var e,f,g=c(5735),h=c(21826),i=c(22463),j=c(94608),k=c(91986);let l=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),m=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,k.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:e="",children:f,iconNode:g,...h},i)=>(0,k.createElement)("svg",{ref:i,...n,width:b,height:b,stroke:a,strokeWidth:d?24*Number(c)/Number(b):c,className:l("lucide",e),...!f&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...g.map(([a,b])=>(0,k.createElement)(a,b)),...Array.isArray(f)?f:[f]])),p=(e="file-question-mark",f=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],(d=(0,k.forwardRef)(({className:a,...b},c)=>(0,k.createElement)(o,{ref:c,iconNode:f,className:l(`lucide-${m(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...b}))).displayName=m(e),d);var q=c(63059),r=c.n(q),s=c(25994);async function t({params:a}){let{path:b}=await a,c=b.join("/");try{let a=await (0,h.SP)(c);return(0,g.jsx)(i.PageEditor,{initialContent:a.content,meta:a.meta,filePath:a.meta.path})}catch(a){if(a instanceof j.i&&"NOT_FOUND"===a.code)return(0,g.jsx)(u,{path:c});throw a}}function u({path:a}){let b=a.replace(/\.md$/,"").replace(/[-_]/g," ");return(0,g.jsx)(s.PageDiffFallback,{filePath:a,fallback:(0,g.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,g.jsxs)("div",{className:"text-center max-w-md px-6",children:[(0,g.jsx)("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,g.jsx)(p,{className:"h-8 w-8 text-muted-foreground"})}),(0,g.jsx)("h1",{className:"text-2xl font-semibold tracking-tight mb-2",children:"Page not found"}),(0,g.jsxs)("p",{className:"text-muted-foreground mb-6",children:[(0,g.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-sm",children:b})," ","doesn't exist yet."]}),(0,g.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:(0,g.jsx)(r(),{href:"/workspace",className:"inline-flex items-center justify-center rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",children:"Go to workspace"})})]})})})}},42886:(a,b,c)=>{"use strict";c.d(b,{W:()=>l});var d=c(48249),e=c(67484),f=c(51381);let g=(0,c(47408).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);var h=c(25297),i=c(42893),j=c(90707),k=c(34351);function l({changeSetId:a,filePath:b,onExit:c}){let[i,l]=(0,e.useState)(null),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(!1),r=(0,k.W)(a=>a.loadChangeSets),s=(0,e.useCallback)(async()=>{o(!0);try{let b=await fetch(`/api/changes/${encodeURIComponent(a)}`);if(!b.ok)throw Error("Failed to load diff");let c=await b.json();l(c)}catch(a){j.oR.error("Could not load diff")}finally{o(!1)}},[a]),t=i?.files.find(a=>a.path===b),u=async()=>{q(!0);try{if(!(await fetch("/api/changes/revert",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({changeSetId:a,mode:"file",path:b})})).ok)throw Error("Undo failed");await s(),await r()}catch{j.oR.error("Undo failed")}finally{q(!1)}},v=async c=>{q(!0);try{if(!(await fetch("/api/changes/revert",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({changeSetId:a,mode:"hunk",path:b,hunkId:c})})).ok)throw Error("Undo failed");await s(),await r()}catch{j.oR.error("Could not apply undo")}finally{q(!1)}};return n?(0,d.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"Loading diff…"}):t?(0,d.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,d.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b bg-background/90 px-4 py-2 backdrop-blur",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(h.$,{variant:"ghost",size:"icon",onClick:c,children:(0,d.jsx)(f.A,{className:"h-4 w-4"})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Review changes"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:b})]})]}),(0,d.jsxs)(h.$,{variant:"outline",size:"sm",onClick:u,disabled:p,children:[(0,d.jsx)(g,{className:"mr-2 h-3.5 w-3.5"}),"Undo file"]})]}),(0,d.jsx)("div",{className:"flex-1 px-4 py-6",children:(0,d.jsx)(m,{file:t,onUndoHunk:v,busy:p})})]}):(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,d.jsx)("span",{children:"No diff available for this file."}),(0,d.jsx)(h.$,{variant:"outline",size:"sm",onClick:c,children:"Back to document"})]})}function m({file:a,onUndoHunk:b,busy:c}){if(a.tooLarge)return(0,d.jsx)("div",{className:"rounded-md border border-border p-4 text-sm text-muted-foreground",children:"File is too large to diff."});let e=a.hunks??[];return 0===e.length?(0,d.jsx)("div",{className:"rounded-md border border-border p-4 text-sm text-muted-foreground",children:"No differences found."}):(0,d.jsx)("div",{className:"space-y-4",children:e.map((a,e)=>(0,d.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between bg-muted/60 px-3 py-1.5 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{children:["Hunk ",e+1," \xb7 +",a.adds," −",a.removes]}),(0,d.jsx)(h.$,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>b(a.id),disabled:c,children:"Undo"})]}),(0,d.jsx)("div",{className:"bg-background",children:(0,d.jsx)("pre",{className:"whitespace-pre-wrap px-3 py-2 text-xs leading-relaxed",children:a.lines.map((b,c)=>{let e=b[0],f=b.slice(1);return(0,d.jsxs)("div",{className:(0,i.cn)("rounded-sm px-1","+"===e&&"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","-"===e&&"bg-rose-500/15 text-rose-700 dark:text-rose-300 line-through"),children:[(0,d.jsx)("span",{className:"mr-2 text-muted-foreground/70",children:e}),f]},`${a.id}-${c}`)})})})]},a.id))})}},43531:a=>{"use strict";a.exports=require("gray-matter")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51381:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57075:a=>{"use strict";a.exports=require("node:stream")},62883:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=c(48249),e=c(74429),f=c(29294),g=c(10117),h=c(44217);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let i=(0,h.getDeploymentIdQueryOrEmptyString)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${i}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63059:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(7904),g=c(5735),h=f._(c(23318));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},65506:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,2116,23)),Promise.resolve().then(c.bind(c,4312)),Promise.resolve().then(c.bind(c,87334))},66958:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=c(49306);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},78474:a=>{"use strict";a.exports=require("node:events")},79748:a=>{"use strict";a.exports=require("fs/promises")},80061:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return j}});let d=c(48249),e=c(67484),f=c(66958),g=c(62883);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87334:(a,b,c)=>{"use strict";c.d(b,{PageEditor:()=>bu});var d=c(48249),e=c(67484),f=c(39973),g=c.n(f),h=c(19099),i=c(47408);let j=(0,i.A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),k=(0,i.A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);var l=c(90707),m=c(77745),n=c(25297),o=c(39471),p=c(58221),q=c(50307),r=c(14929),s=c(74429),t=c(43980),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),v=c(87772),w=c(45433),x=c(50352),y=c(57277),z=c(2309),A=c(333),B=c(51435),C=c(44688),D=c(70085),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),G=c(76293),H="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},J="RovingFocusGroup",[K,L,M]=(0,v.N)(J),[N,O]=(0,q.A)(J,[M]),[P,Q]=N(J),R=e.forwardRef((a,b)=>(0,d.jsx)(K.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,d.jsx)(K.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,d.jsx)(S,{...a,ref:b})})}));R.displayName=J;var S=e.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,orientation:f,loop:g=!1,dir:h,currentTabStopId:i,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:k,onEntryFocus:l,preventScrollOnEntryFocus:m=!1,...n}=a,q=e.useRef(null),s=(0,p.s)(b,q),t=(0,w.jH)(h),[u,v]=(0,r.i)({prop:i,defaultProp:j??null,onChange:k,caller:J}),[x,y]=e.useState(!1),z=(0,G.c)(l),A=L(c),B=e.useRef(!1),[C,D]=e.useState(0);return e.useEffect(()=>{let a=q.current;if(a)return a.addEventListener(H,z),()=>a.removeEventListener(H,z)},[z]),(0,d.jsx)(P,{scope:c,orientation:f,dir:t,loop:g,currentTabStopId:u,onItemFocus:e.useCallback(a=>v(a),[v]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>D(a=>a+1),[]),onFocusableItemRemove:e.useCallback(()=>D(a=>a-1),[]),children:(0,d.jsx)(F.div,{tabIndex:x||0===C?-1:0,"data-orientation":f,...n,ref:s,style:{outline:"none",...a.style},onMouseDown:(0,o.mK)(a.onMouseDown,()=>{B.current=!0}),onFocus:(0,o.mK)(a.onFocus,a=>{let b=!B.current;if(a.target===a.currentTarget&&b&&!x){let b=new CustomEvent(H,I);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=A().filter(a=>a.focusable);W([a.find(a=>a.active),a.find(a=>a.id===u),...a].filter(Boolean).map(a=>a.ref.current),m)}}B.current=!1}),onBlur:(0,o.mK)(a.onBlur,()=>y(!1))})})}),T="RovingFocusGroupItem",U=e.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,focusable:f=!0,active:g=!1,tabStopId:h,children:i,...j}=a,k=(0,A.B)(),l=h||k,m=Q(T,c),n=m.currentTabStopId===l,p=L(c),{onFocusableItemAdd:q,onFocusableItemRemove:r,currentTabStopId:s}=m;return e.useEffect(()=>{if(f)return q(),()=>r()},[f,q,r]),(0,d.jsx)(K.ItemSlot,{scope:c,id:l,focusable:f,active:g,children:(0,d.jsx)(F.span,{tabIndex:n?0:-1,"data-orientation":m.orientation,...j,ref:b,onMouseDown:(0,o.mK)(a.onMouseDown,a=>{f?m.onItemFocus(l):a.preventDefault()}),onFocus:(0,o.mK)(a.onFocus,()=>m.onItemFocus(l)),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void m.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return V[e]}(a,m.orientation,m.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let e=p().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)e.reverse();else if("prev"===b||"next"===b){var c,d;"prev"===b&&e.reverse();let f=e.indexOf(a.currentTarget);e=m.loop?(c=e,d=f+1,c.map((a,b)=>c[(d+b)%c.length])):e.slice(f+1)}setTimeout(()=>W(e))}}),children:"function"==typeof i?i({isCurrentTabStop:n,hasTabStop:null!=s}):i})})});U.displayName=T;var V={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function W(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}var X=c(14206),Y=c(86709),Z=["Enter"," "],$=["ArrowUp","PageDown","End"],_=["ArrowDown","PageUp","Home",...$],aa={ltr:[...Z,"ArrowRight"],rtl:[...Z,"ArrowLeft"]},ab={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ac="Menu",[ad,ae,af]=(0,v.N)(ac),[ag,ah]=(0,q.A)(ac,[af,B.Bk,O]),ai=(0,B.Bk)(),aj=O(),[ak,al]=ag(ac),[am,an]=ag(ac),ao=a=>{let{__scopeMenu:b,open:c=!1,children:f,dir:g,onOpenChange:h,modal:i=!0}=a,j=ai(b),[k,l]=e.useState(null),m=e.useRef(!1),n=(0,G.c)(h),o=(0,w.jH)(g);return e.useEffect(()=>{let a=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",a,{capture:!0}),()=>{document.removeEventListener("keydown",a,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),(0,d.jsx)(B.bL,{...j,children:(0,d.jsx)(ak,{scope:b,open:c,onOpenChange:n,content:k,onContentChange:l,children:(0,d.jsx)(am,{scope:b,onClose:e.useCallback(()=>n(!1),[n]),isUsingKeyboardRef:m,dir:o,modal:i,children:f})})})};ao.displayName=ac;var ap=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a,f=ai(c);return(0,d.jsx)(B.Mz,{...f,...e,ref:b})});ap.displayName="MenuAnchor";var aq="MenuPortal",[ar,as]=ag(aq,{forceMount:void 0}),at=a=>{let{__scopeMenu:b,forceMount:c,children:e,container:f}=a,g=al(aq,b);return(0,d.jsx)(ar,{scope:b,forceMount:c,children:(0,d.jsx)(D.C,{present:c||g.open,children:(0,d.jsx)(C.Z,{asChild:!0,container:f,children:e})})})};at.displayName=aq;var au="MenuContent",[av,aw]=ag(au),ax=e.forwardRef((a,b)=>{let c=as(au,a.__scopeMenu),{forceMount:e=c.forceMount,...f}=a,g=al(au,a.__scopeMenu),h=an(au,a.__scopeMenu);return(0,d.jsx)(ad.Provider,{scope:a.__scopeMenu,children:(0,d.jsx)(D.C,{present:e||g.open,children:(0,d.jsx)(ad.Slot,{scope:a.__scopeMenu,children:h.modal?(0,d.jsx)(ay,{...f,ref:b}):(0,d.jsx)(az,{...f,ref:b})})})})}),ay=e.forwardRef((a,b)=>{let c=al(au,a.__scopeMenu),f=e.useRef(null),g=(0,p.s)(b,f);return e.useEffect(()=>{let a=f.current;if(a)return(0,X.Eq)(a)},[]),(0,d.jsx)(aB,{...a,ref:g,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})}),az=e.forwardRef((a,b)=>{let c=al(au,a.__scopeMenu);return(0,d.jsx)(aB,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)})}),aA=(0,t.TL)("MenuContent.ScrollLock"),aB=e.forwardRef((a,b)=>{let{__scopeMenu:c,loop:f=!1,trapFocus:g,onOpenAutoFocus:h,onCloseAutoFocus:i,disableOutsidePointerEvents:j,onEntryFocus:k,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:q,onDismiss:r,disableOutsideScroll:s,...t}=a,u=al(au,c),v=an(au,c),w=ai(c),A=aj(c),C=ae(c),[D,E]=e.useState(null),F=e.useRef(null),G=(0,p.s)(b,F,u.onContentChange),H=e.useRef(0),I=e.useRef(""),J=e.useRef(0),K=e.useRef(null),L=e.useRef("right"),M=e.useRef(0),N=s?Y.A:e.Fragment;e.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,y.Oh)();let O=e.useCallback(a=>{var b,c;return L.current===K.current?.side&&(b=a,!!(c=K.current?.area)&&function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;a<b.length;f=a++){let g=b[a],h=b[f],i=g.x,j=g.y,k=h.x,l=h.y;j>d!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}({x:b.clientX,y:b.clientY},c))},[]);return(0,d.jsx)(av,{scope:c,searchRef:I,onItemEnter:e.useCallback(a=>{O(a)&&a.preventDefault()},[O]),onItemLeave:e.useCallback(a=>{O(a)||(F.current?.focus(),E(null))},[O]),onTriggerLeave:e.useCallback(a=>{O(a)&&a.preventDefault()},[O]),pointerGraceTimerRef:J,onPointerGraceIntentChange:e.useCallback(a=>{K.current=a},[]),children:(0,d.jsx)(N,{...s?{as:aA,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(z.n,{asChild:!0,trapped:g,onMountAutoFocus:(0,o.mK)(h,a=>{a.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,d.jsx)(x.qW,{asChild:!0,disableOutsidePointerEvents:j,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:q,onDismiss:r,children:(0,d.jsx)(R,{asChild:!0,...A,dir:v.dir,orientation:"vertical",loop:f,currentTabStopId:D,onCurrentTabStopIdChange:E,onEntryFocus:(0,o.mK)(k,a=>{v.isUsingKeyboardRef.current||a.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(B.UC,{role:"menu","aria-orientation":"vertical","data-state":a_(u.open),"data-radix-menu-content":"",dir:v.dir,...w,...t,ref:G,style:{outline:"none",...t.style},onKeyDown:(0,o.mK)(t.onKeyDown,a=>{let b=a.target.closest("[data-radix-menu-content]")===a.currentTarget,c=a.ctrlKey||a.altKey||a.metaKey,d=1===a.key.length;if(b){var e;let b,f,g,h,i,j;"Tab"===a.key&&a.preventDefault(),!c&&d&&(e=a.key,b=I.current+e,f=C().filter(a=>!a.disabled),g=document.activeElement,h=f.find(a=>a.ref.current===g)?.textValue,i=function(a,b,c){var d;let e=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,f=c?a.indexOf(c):-1,g=(d=Math.max(f,0),a.map((b,c)=>a[(d+c)%a.length]));1===e.length&&(g=g.filter(a=>a!==c));let h=g.find(a=>a.toLowerCase().startsWith(e.toLowerCase()));return h!==c?h:void 0}(f.map(a=>a.textValue),b,h),j=f.find(a=>a.textValue===i)?.ref.current,function a(b){I.current=b,window.clearTimeout(H.current),""!==b&&(H.current=window.setTimeout(()=>a(""),1e3))}(b),j&&setTimeout(()=>j.focus()))}let f=F.current;if(a.target!==f||!_.includes(a.key))return;a.preventDefault();let g=C().filter(a=>!a.disabled).map(a=>a.ref.current);$.includes(a.key)&&g.reverse(),function(a){let b=document.activeElement;for(let c of a)if(c===b||(c.focus(),document.activeElement!==b))return}(g)}),onBlur:(0,o.mK)(a.onBlur,a=>{a.currentTarget.contains(a.target)||(window.clearTimeout(H.current),I.current="")}),onPointerMove:(0,o.mK)(a.onPointerMove,a2(a=>{let b=a.target,c=M.current!==a.clientX;a.currentTarget.contains(b)&&c&&(L.current=a.clientX>M.current?"right":"left",M.current=a.clientX)}))})})})})})})});ax.displayName=au;var aC=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{role:"group",...e,ref:b})});aC.displayName="MenuGroup";var aD=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{...e,ref:b})});aD.displayName="MenuLabel";var aE="MenuItem",aF="menu.itemSelect",aG=e.forwardRef((a,b)=>{let{disabled:c=!1,onSelect:f,...g}=a,h=e.useRef(null),i=an(aE,a.__scopeMenu),j=aw(aE,a.__scopeMenu),k=(0,p.s)(b,h),l=e.useRef(!1);return(0,d.jsx)(aH,{...g,ref:k,disabled:c,onClick:(0,o.mK)(a.onClick,()=>{let a=h.current;if(!c&&a){let b=new CustomEvent(aF,{bubbles:!0,cancelable:!0});a.addEventListener(aF,a=>f?.(a),{once:!0}),a&&s.flushSync(()=>a.dispatchEvent(b)),b.defaultPrevented?l.current=!1:i.onClose()}}),onPointerDown:b=>{a.onPointerDown?.(b),l.current=!0},onPointerUp:(0,o.mK)(a.onPointerUp,a=>{l.current||a.currentTarget?.click()}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{let b=""!==j.searchRef.current;c||b&&" "===a.key||Z.includes(a.key)&&(a.currentTarget.click(),a.preventDefault())})})});aG.displayName=aE;var aH=e.forwardRef((a,b)=>{let{__scopeMenu:c,disabled:f=!1,textValue:g,...h}=a,i=aw(aE,c),j=aj(c),k=e.useRef(null),l=(0,p.s)(b,k),[m,n]=e.useState(!1),[q,r]=e.useState("");return e.useEffect(()=>{let a=k.current;a&&r((a.textContent??"").trim())},[h.children]),(0,d.jsx)(ad.ItemSlot,{scope:c,disabled:f,textValue:g??q,children:(0,d.jsx)(U,{asChild:!0,...j,focusable:!f,children:(0,d.jsx)(E.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":f||void 0,"data-disabled":f?"":void 0,...h,ref:l,onPointerMove:(0,o.mK)(a.onPointerMove,a2(a=>{f?i.onItemLeave(a):(i.onItemEnter(a),a.defaultPrevented||a.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(a.onPointerLeave,a2(a=>i.onItemLeave(a))),onFocus:(0,o.mK)(a.onFocus,()=>n(!0)),onBlur:(0,o.mK)(a.onBlur,()=>n(!1))})})})}),aI=e.forwardRef((a,b)=>{let{checked:c=!1,onCheckedChange:e,...f}=a;return(0,d.jsx)(aQ,{scope:a.__scopeMenu,checked:c,children:(0,d.jsx)(aG,{role:"menuitemcheckbox","aria-checked":a0(c)?"mixed":c,...f,ref:b,"data-state":a1(c),onSelect:(0,o.mK)(f.onSelect,()=>e?.(!!a0(c)||!c),{checkForDefaultPrevented:!1})})})});aI.displayName="MenuCheckboxItem";var aJ="MenuRadioGroup",[aK,aL]=ag(aJ,{value:void 0,onValueChange:()=>{}}),aM=e.forwardRef((a,b)=>{let{value:c,onValueChange:e,...f}=a,g=(0,G.c)(e);return(0,d.jsx)(aK,{scope:a.__scopeMenu,value:c,onValueChange:g,children:(0,d.jsx)(aC,{...f,ref:b})})});aM.displayName=aJ;var aN="MenuRadioItem",aO=e.forwardRef((a,b)=>{let{value:c,...e}=a,f=aL(aN,a.__scopeMenu),g=c===f.value;return(0,d.jsx)(aQ,{scope:a.__scopeMenu,checked:g,children:(0,d.jsx)(aG,{role:"menuitemradio","aria-checked":g,...e,ref:b,"data-state":a1(g),onSelect:(0,o.mK)(e.onSelect,()=>f.onValueChange?.(c),{checkForDefaultPrevented:!1})})})});aO.displayName=aN;var aP="MenuItemIndicator",[aQ,aR]=ag(aP,{checked:!1}),aS=e.forwardRef((a,b)=>{let{__scopeMenu:c,forceMount:e,...f}=a,g=aR(aP,c);return(0,d.jsx)(D.C,{present:e||a0(g.checked)||!0===g.checked,children:(0,d.jsx)(E.span,{...f,ref:b,"data-state":a1(g.checked)})})});aS.displayName=aP;var aT=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{role:"separator","aria-orientation":"horizontal",...e,ref:b})});aT.displayName="MenuSeparator";var aU=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a,f=ai(c);return(0,d.jsx)(B.i3,{...f,...e,ref:b})});aU.displayName="MenuArrow";var[aV,aW]=ag("MenuSub"),aX="MenuSubTrigger",aY=e.forwardRef((a,b)=>{let c=al(aX,a.__scopeMenu),f=an(aX,a.__scopeMenu),g=aW(aX,a.__scopeMenu),h=aw(aX,a.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:j,onPointerGraceIntentChange:k}=h,l={__scopeMenu:a.__scopeMenu},m=e.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return e.useEffect(()=>m,[m]),e.useEffect(()=>{let a=j.current;return()=>{window.clearTimeout(a),k(null)}},[j,k]),(0,d.jsx)(ap,{asChild:!0,...l,children:(0,d.jsx)(aH,{id:g.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":g.contentId,"data-state":a_(c.open),...a,ref:(0,p.t)(b,g.onTriggerChange),onClick:b=>{a.onClick?.(b),a.disabled||b.defaultPrevented||(b.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:(0,o.mK)(a.onPointerMove,a2(b=>{h.onItemEnter(b),!b.defaultPrevented&&(a.disabled||c.open||i.current||(h.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{c.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.mK)(a.onPointerLeave,a2(a=>{m();let b=c.content?.getBoundingClientRect();if(b){let d=c.content?.dataset.side,e="right"===d,f=b[e?"left":"right"],g=b[e?"right":"left"];h.onPointerGraceIntentChange({area:[{x:a.clientX+(e?-5:5),y:a.clientY},{x:f,y:b.top},{x:g,y:b.top},{x:g,y:b.bottom},{x:f,y:b.bottom}],side:d}),window.clearTimeout(j.current),j.current=window.setTimeout(()=>h.onPointerGraceIntentChange(null),300)}else{if(h.onTriggerLeave(a),a.defaultPrevented)return;h.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(a.onKeyDown,b=>{let d=""!==h.searchRef.current;a.disabled||d&&" "===b.key||aa[f.dir].includes(b.key)&&(c.onOpenChange(!0),c.content?.focus(),b.preventDefault())})})})});aY.displayName=aX;var aZ="MenuSubContent",a$=e.forwardRef((a,b)=>{let c=as(au,a.__scopeMenu),{forceMount:f=c.forceMount,...g}=a,h=al(au,a.__scopeMenu),i=an(au,a.__scopeMenu),j=aW(aZ,a.__scopeMenu),k=e.useRef(null),l=(0,p.s)(b,k);return(0,d.jsx)(ad.Provider,{scope:a.__scopeMenu,children:(0,d.jsx)(D.C,{present:f||h.open,children:(0,d.jsx)(ad.Slot,{scope:a.__scopeMenu,children:(0,d.jsx)(aB,{id:j.contentId,"aria-labelledby":j.triggerId,...g,ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{i.isUsingKeyboardRef.current&&k.current?.focus(),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:(0,o.mK)(a.onFocusOutside,a=>{a.target!==j.trigger&&h.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(a.onEscapeKeyDown,a=>{i.onClose(),a.preventDefault()}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{let b=a.currentTarget.contains(a.target),c=ab[i.dir].includes(a.key);b&&c&&(h.onOpenChange(!1),j.trigger?.focus(),a.preventDefault())})})})})})});function a_(a){return a?"open":"closed"}function a0(a){return"indeterminate"===a}function a1(a){return a0(a)?"indeterminate":a?"checked":"unchecked"}function a2(a){return b=>"mouse"===b.pointerType?a(b):void 0}a$.displayName=aZ;var a3="DropdownMenu",[a4,a5]=(0,q.A)(a3,[ah]),a6=ah(),[a7,a8]=a4(a3),a9=a=>{let{__scopeDropdownMenu:b,children:c,dir:f,open:g,defaultOpen:h,onOpenChange:i,modal:j=!0}=a,k=a6(b),l=e.useRef(null),[m,n]=(0,r.i)({prop:g,defaultProp:h??!1,onChange:i,caller:a3});return(0,d.jsx)(a7,{scope:b,triggerId:(0,A.B)(),triggerRef:l,contentId:(0,A.B)(),open:m,onOpenChange:n,onOpenToggle:e.useCallback(()=>n(a=>!a),[n]),modal:j,children:(0,d.jsx)(ao,{...k,open:m,onOpenChange:n,dir:f,modal:j,children:c})})};a9.displayName=a3;var ba="DropdownMenuTrigger",bb=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,disabled:e=!1,...f}=a,g=a8(ba,c),h=a6(c);return(0,d.jsx)(ap,{asChild:!0,...h,children:(0,d.jsx)(u.button,{type:"button",id:g.triggerId,"aria-haspopup":"menu","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":g.open?"open":"closed","data-disabled":e?"":void 0,disabled:e,...f,ref:(0,p.t)(b,g.triggerRef),onPointerDown:(0,o.mK)(a.onPointerDown,a=>{!e&&0===a.button&&!1===a.ctrlKey&&(g.onOpenToggle(),g.open||a.preventDefault())}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{!e&&(["Enter"," "].includes(a.key)&&g.onOpenToggle(),"ArrowDown"===a.key&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});bb.displayName=ba;var bc=a=>{let{__scopeDropdownMenu:b,...c}=a,e=a6(b);return(0,d.jsx)(at,{...e,...c})};bc.displayName="DropdownMenuPortal";var bd="DropdownMenuContent",be=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...f}=a,g=a8(bd,c),h=a6(c),i=e.useRef(!1);return(0,d.jsx)(ax,{id:g.contentId,"aria-labelledby":g.triggerId,...h,...f,ref:b,onCloseAutoFocus:(0,o.mK)(a.onCloseAutoFocus,a=>{i.current||g.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:(0,o.mK)(a.onInteractOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey,d=2===b.button||c;(!g.modal||d)&&(i.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});be.displayName=bd,e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aC,{...f,...e,ref:b})}).displayName="DropdownMenuGroup",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aD,{...f,...e,ref:b})}).displayName="DropdownMenuLabel";var bf=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aG,{...f,...e,ref:b})});bf.displayName="DropdownMenuItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aI,{...f,...e,ref:b})}).displayName="DropdownMenuCheckboxItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aM,{...f,...e,ref:b})}).displayName="DropdownMenuRadioGroup",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aO,{...f,...e,ref:b})}).displayName="DropdownMenuRadioItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aS,{...f,...e,ref:b})}).displayName="DropdownMenuItemIndicator",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aT,{...f,...e,ref:b})}).displayName="DropdownMenuSeparator",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aU,{...f,...e,ref:b})}).displayName="DropdownMenuArrow",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aY,{...f,...e,ref:b})}).displayName="DropdownMenuSubTrigger",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(a$,{...f,...e,ref:b,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var bg=c(42893);function bh({...a}){return(0,d.jsx)(a9,{"data-slot":"dropdown-menu",...a})}function bi({...a}){return(0,d.jsx)(bb,{"data-slot":"dropdown-menu-trigger",...a})}function bj({className:a,sideOffset:b=4,...c}){return(0,d.jsx)(bc,{children:(0,d.jsx)(be,{"data-slot":"dropdown-menu-content",sideOffset:b,className:(0,bg.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",a),...c})})}function bk({className:a,inset:b,variant:c="default",...e}){return(0,d.jsx)(bf,{"data-slot":"dropdown-menu-item","data-inset":b,"data-variant":c,className:(0,bg.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...e})}var bl=c(98500),bm=c(34351),bn=c(42886);let bo=g()(async()=>{},{loadableGenerated:{modules:["components/editor/page-editor.tsx -> @/components/editor/editor"]},ssr:!1,loading:()=>(0,d.jsx)(m.L,{})}),bp=["\uD83D\uDCDD","\uD83D\uDCC4","\uD83D\uDCCB","\uD83D\uDCCC","\uD83D\uDCCE","\uD83D\uDCD1","\uD83D\uDCD2","\uD83D\uDCD3","\uD83D\uDCD4","\uD83D\uDCD5","\uD83D\uDCD6","\uD83D\uDCD7","\uD83D\uDCD8","\uD83D\uDCD9","\uD83C\uDFAF","\uD83D\uDE80","\uD83D\uDCA1","\uD83D\uDD25","⚡","\uD83C\uDFA8","\uD83E\uDDE0","\uD83D\uDCBB","\uD83D\uDD27","\uD83D\uDCCA","\uD83D\uDDC2️","✨","\uD83C\uDF1F","\uD83D\uDC4B","\uD83C\uDF99️","\uD83C\uDFB5","\uD83D\uDCF7","\uD83D\uDD2C","\uD83C\uDFD7️","\uD83D\uDDFA️","\uD83E\uDDE9"],bq=(0,e.memo)(function({status:a}){return"idle"===a?null:(0,d.jsx)("span",{className:`text-xs transition-opacity duration-300 ${{idle:"text-text-muted",saved:"text-success",saving:"text-text-muted",unsaved:"text-warning",error:"text-error"}[a]} ${"saved"===a?"animate-fade-out":""}`,children:{idle:"",saved:"Saved",saving:"Saving…",unsaved:"Unsaved changes",error:"Save failed"}[a]})}),br=(0,e.memo)(function({filePath:a}){let b=a.replace(/\.md$/,"").split("/").map(a=>a.replace(/[-_]+/g," ").replace(/\b\w/g,a=>a.toUpperCase()));return(0,d.jsx)("nav",{className:"flex items-center gap-1 text-[13px] text-text-muted",children:b.map((a,c)=>(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[c>0&&(0,d.jsx)("span",{className:"text-text-muted/50",children:"/"}),(0,d.jsx)("span",{className:c===b.length-1?"text-text-secondary":"",children:a})]},c))})});function bs({icon:a,onSelect:b}){let[c,f]=(0,e.useState)(!1),g=(0,e.useRef)(null);return(0,d.jsxs)("div",{ref:g,className:"relative inline-block",children:[(0,d.jsx)("button",{type:"button",onClick:()=>f(!c),className:"text-4xl leading-none hover:bg-surface-hover rounded-lg p-1 transition-colors cursor-pointer md:text-4xl text-3xl",title:"Change icon",children:a||"\uD83D\uDCC4"}),c&&(0,d.jsx)("div",{className:"absolute top-full left-0 z-50 mt-1 grid grid-cols-7 gap-1 rounded-lg border border-border bg-popover p-2 shadow-lg",children:bp.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{b(a),f(!1)},className:"flex items-center justify-center w-8 h-8 rounded hover:bg-surface-hover transition-colors text-lg cursor-pointer min-h-[44px] min-w-[44px] md:min-h-0 md:min-w-0",children:a},a))})]})}let bt=(0,e.memo)(function({status:a,wordCount:b,modified:c}){let[f,g]=(0,e.useState)(!1);(0,e.useEffect)(()=>{g(!0)},[]);let h=new Date(c),i=f?h.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):"",j=f?h.toLocaleDateString(void 0,{month:"short",day:"numeric"}):"";return(0,d.jsxs)("div",{className:"sticky bottom-0 z-10 flex items-center justify-between border-t border-border bg-background/80 backdrop-blur-sm px-4 py-1.5 text-xs text-text-muted md:px-6 max-md:bottom-14",children:[(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)(bq,{status:a}),(0,d.jsxs)("span",{className:"hidden sm:inline",children:[b," words"]})]}),(0,d.jsxs)("span",{className:"hidden sm:inline",children:["Last edited"," ",(0,d.jsx)("span",{suppressHydrationWarning:!0,children:j})," at"," ",(0,d.jsx)("span",{suppressHydrationWarning:!0,children:i})]}),(0,d.jsx)("span",{className:"sm:hidden",children:(0,d.jsx)(bq,{status:a})})]})});function bu({initialContent:a,meta:b,filePath:c}){let f=(0,h.useRouter)(),{deletePage:g}=(0,bl.M)(),i=(0,bm.W)(a=>a.review),o=(0,bm.W)(a=>a.closeReview),[p,q]=(0,e.useState)(b),[r,s]=(0,e.useState)(a),[t,u]=(0,e.useState)(0),[v,w]=(0,e.useState)(b.icon),[x,y]=(0,e.useState)("idle"),[z,A]=(0,e.useState)(0),[B,C]=(0,e.useState)(b.modified),[D,E]=(0,e.useState)(!1),F=(0,e.useRef)(null),G=(0,e.useRef)(null),H=(0,e.useRef)(b.title),I=(0,e.useRef)("idle"),J=(0,e.useRef)(a),K=(0,e.useRef)(0),L=(0,e.useRef)(null),M=(0,e.useRef)(null);(0,e.useRef)(null);let N=(0,e.useRef)(c),O=(0,e.useCallback)(a=>{G.current&&clearTimeout(G.current),G.current=setTimeout(async()=>{try{let b=await fetch(`/api/files/pages/${encodeURIComponent(c)}`);if(!b.ok)return;let d=await b.json();await fetch(`/api/files/pages/${encodeURIComponent(c)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:d.content,meta:{...a}})});let e=new Date().toISOString();K.current=Date.now(),C(e),q(b=>({...b,...a,modified:e}))}catch(a){console.error("Failed to save meta:",a)}},800)},[c]),P=(0,e.useCallback)(()=>{let a=F.current?.textContent?.trim()||"Untitled";a!==H.current&&(H.current=a,O({title:a,icon:v}))},[v,O]),Q=(0,e.useCallback)(a=>{if("Enter"===a.key){a.preventDefault();let b=document.querySelector(".clawpad-editor .ProseMirror");b?.focus()}},[]),R=(0,e.useCallback)(a=>{w(a);let b=F.current?.textContent?.trim()||H.current||"Untitled";H.current=b,O({title:b,icon:a})},[O]),S=(0,e.useCallback)(a=>{let b=new Date().toISOString();J.current=a,K.current=Date.now(),C(b),q(a=>({...a,modified:b}))},[]),T=(0,e.useCallback)(async()=>{try{await g(c),f.push("/workspace")}catch(a){console.error("Failed to delete page:",a)}},[g,c,f]),U=(0,e.useCallback)((a,b)=>{L.current=null,M.current&&(l.oR.dismiss(M.current),M.current=null),q(b),w(b.icon),C(b.modified),s(a),u(a=>a+1),y("idle"),J.current=a},[]),V=(0,e.useCallback)(async(a=!1)=>{try{let b=await fetch(`/api/files/pages/${encodeURIComponent(N.current)}`);if(!b.ok){404===b.status&&(l.oR.error("This page was deleted."),f.push("/workspace"));return}let c=await b.json(),d=c.content??"",e=c.meta;if(("unsaved"===I.current||"saving"===I.current)&&!a){L.current={content:d,meta:e},M.current||(M.current=(0,l.oR)("This page changed on disk",{action:{label:"Reload",onClick:()=>V(!0)},duration:6e3}));return}if(d===J.current&&!a){q(e),w(e.icon),C(e.modified);return}U(d,e)}catch(a){console.error("Failed to refresh page:",a)}},[U,f]);return i.open&&i.changeSetId&&i.filePath===c?(0,d.jsx)(bn.W,{changeSetId:i.changeSetId,filePath:c,onExit:o}):(0,d.jsxs)("div",{className:"flex min-h-full flex-col max-md:pb-14",children:[(0,d.jsxs)("div",{className:"mx-auto w-full flex-1 px-3 md:px-8",style:{maxWidth:"var(--clawpad-editor-width, 720px)"},children:[(0,d.jsxs)("div",{className:"pt-12 pb-1 md:pt-20",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsx)(bs,{icon:v,onSelect:R}),D?(0,d.jsxs)(bh,{children:[(0,d.jsx)(bi,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",children:[(0,d.jsx)(j,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Page actions"})]})}),(0,d.jsx)(bj,{align:"end",className:"w-44",children:(0,d.jsxs)(bk,{className:"text-destructive focus:text-destructive",onClick:T,children:[(0,d.jsx)(k,{className:"mr-2 h-4 w-4"}),"Delete"]})})]}):(0,d.jsxs)(n.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",disabled:!0,children:[(0,d.jsx)(j,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Page actions"})]})]}),(0,d.jsx)("h1",{ref:F,className:"mt-2 text-2xl font-semibold leading-tight tracking-tight outline-none md:text-[2rem] empty:before:content-['Untitled'] empty:before:text-text-muted",contentEditable:!0,suppressContentEditableWarning:!0,onInput:P,onKeyDown:Q,spellCheck:!1,dir:"auto"}),(0,d.jsx)("div",{className:"mt-2 mb-4 md:mb-6",children:(0,d.jsx)(br,{filePath:c})})]}),(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(m.L,{}),children:(0,d.jsx)(bo,{initialContent:r,filePath:c,onSave:S,onStatusChange:y,onWordCountChange:A,readOnly:!1},`${c}-${t}`)})]}),(0,d.jsx)(bt,{status:x,wordCount:z,modified:B})]})}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,4314,7471,7051,9779,4098,7035,7772,534,2470,3251],()=>b(b.s=24790));module.exports=c})();
2
+ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===M.isDev,q=c||b.writableEnded;if(ai&&ab&&!f&&!J)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(k=(0,v.parseFallbackField)(aj.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(al)&&(!as||an)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!J&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aE&&!q&&!_&&T&&(l||!ak)){if((l||aj)&&k===v.FallbackMode.NOT_FOUND){if(ad.experimental.adapterPath)return await aJ();throw new A.NoFallbackError}if(as&&(ad.cacheComponents?!aw:!ap)){let b=l&&"string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:ah,c=l&&(null==aj?void 0:aj.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null,f=await M.handleResponse({cacheKey:b,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:as,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:J});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ai||g||!av?void 0:av;if(aA&&!J&&m&&aw&&!j){let b=await m.get(aa,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=M.getResponseCache(a);try{await b.revalidate(aa,m,as,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(at&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==aj?void 0:aj.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await M.handleResponse({cacheKey:aD,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil,isMinimalMode:J});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),M.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aD)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;az&&!aw&&(!n||ao)&&(J||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(av)l={revalidate:0,expire:void 0};else if(aw)l={revalidate:0,expire:void 0};else if(!M.isDev)if(_)l={revalidate:0,expire:void 0};else if(az){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];J&&az&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=aA?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(J&&az||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(J&&az&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ap&&as||(b.statusCode=q.status),!J&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),n&&!aw&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ad.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||J||ap)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:m.cacheControl});if(at)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aI)return await aH.withPropagatedContext(a.headers,()=>aH.trace(i.BaseServerSpan.handleRequest,{spanName:`${aG} ${O}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aG,"http.target":a.url}},q));await q(aI)}catch(b){throw b instanceof A.NoFallbackError||await M.onRequestError(a,b,{routerKind:"App Router",routePath:O,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:az,isOnDemandRevalidate:ai})},!1,ac),b}}},25338:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,23318,23)),Promise.resolve().then(c.bind(c,25994)),Promise.resolve().then(c.bind(c,22463))},25994:(a,b,c)=>{"use strict";c.d(b,{PageDiffFallback:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call PageDiffFallback() from the server but PageDiffFallback is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/clawpad/clawpad/src/components/editor/page-diff-fallback.tsx","PageDiffFallback")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},39973:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return e}});let d=c(40399)._(c(80061));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41122:(a,b,c)=>{"use strict";let d;c.r(b),c.d(b,{default:()=>t});var e,f,g=c(5735),h=c(21826),i=c(22463),j=c(94608),k=c(91986);let l=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),m=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,k.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:e="",children:f,iconNode:g,...h},i)=>(0,k.createElement)("svg",{ref:i,...n,width:b,height:b,stroke:a,strokeWidth:d?24*Number(c)/Number(b):c,className:l("lucide",e),...!f&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...g.map(([a,b])=>(0,k.createElement)(a,b)),...Array.isArray(f)?f:[f]])),p=(e="file-question-mark",f=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],(d=(0,k.forwardRef)(({className:a,...b},c)=>(0,k.createElement)(o,{ref:c,iconNode:f,className:l(`lucide-${m(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...b}))).displayName=m(e),d);var q=c(63059),r=c.n(q),s=c(25994);async function t({params:a}){let{path:b}=await a,c=b.map(a=>{try{return decodeURIComponent(a)}catch{return a}}).join("/");try{let a=await (0,h.SP)(c);return(0,g.jsx)(i.PageEditor,{initialContent:a.content,meta:a.meta,filePath:a.meta.path})}catch(a){if(a instanceof j.i&&"NOT_FOUND"===a.code)return(0,g.jsx)(u,{path:c});throw a}}function u({path:a}){let b=a.replace(/\.md$/,"").replace(/[-_]/g," ");return(0,g.jsx)(s.PageDiffFallback,{filePath:a,fallback:(0,g.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,g.jsxs)("div",{className:"text-center max-w-md px-6",children:[(0,g.jsx)("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,g.jsx)(p,{className:"h-8 w-8 text-muted-foreground"})}),(0,g.jsx)("h1",{className:"text-2xl font-semibold tracking-tight mb-2",children:"Page not found"}),(0,g.jsxs)("p",{className:"text-muted-foreground mb-6",children:[(0,g.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-sm",children:b})," ","doesn't exist yet."]}),(0,g.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:(0,g.jsx)(r(),{href:"/workspace",className:"inline-flex items-center justify-center rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",children:"Go to workspace"})})]})})})}},42886:(a,b,c)=>{"use strict";c.d(b,{W:()=>l});var d=c(48249),e=c(67484),f=c(51381);let g=(0,c(47408).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);var h=c(25297),i=c(42893),j=c(90707),k=c(34351);function l({changeSetId:a,filePath:b,onExit:c}){let[i,l]=(0,e.useState)(null),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(!1),r=(0,k.W)(a=>a.loadChangeSets),s=(0,e.useCallback)(async()=>{o(!0);try{let b=await fetch(`/api/changes/${encodeURIComponent(a)}`);if(!b.ok)throw Error("Failed to load diff");let c=await b.json();l(c)}catch(a){j.oR.error("Could not load diff")}finally{o(!1)}},[a]),t=i?.files.find(a=>a.path===b),u=async()=>{q(!0);try{if(!(await fetch("/api/changes/revert",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({changeSetId:a,mode:"file",path:b})})).ok)throw Error("Undo failed");await s(),await r()}catch{j.oR.error("Undo failed")}finally{q(!1)}},v=async c=>{q(!0);try{if(!(await fetch("/api/changes/revert",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({changeSetId:a,mode:"hunk",path:b,hunkId:c})})).ok)throw Error("Undo failed");await s(),await r()}catch{j.oR.error("Could not apply undo")}finally{q(!1)}};return n?(0,d.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"Loading diff…"}):t?(0,d.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,d.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b bg-background/90 px-4 py-2 backdrop-blur",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(h.$,{variant:"ghost",size:"icon",onClick:c,children:(0,d.jsx)(f.A,{className:"h-4 w-4"})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Review changes"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:b})]})]}),(0,d.jsxs)(h.$,{variant:"outline",size:"sm",onClick:u,disabled:p,children:[(0,d.jsx)(g,{className:"mr-2 h-3.5 w-3.5"}),"Undo file"]})]}),(0,d.jsx)("div",{className:"flex-1 px-4 py-6",children:(0,d.jsx)(m,{file:t,onUndoHunk:v,busy:p})})]}):(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,d.jsx)("span",{children:"No diff available for this file."}),(0,d.jsx)(h.$,{variant:"outline",size:"sm",onClick:c,children:"Back to document"})]})}function m({file:a,onUndoHunk:b,busy:c}){if(a.tooLarge)return(0,d.jsx)("div",{className:"rounded-md border border-border p-4 text-sm text-muted-foreground",children:"File is too large to diff."});let e=a.hunks??[];return 0===e.length?(0,d.jsx)("div",{className:"rounded-md border border-border p-4 text-sm text-muted-foreground",children:"No differences found."}):(0,d.jsx)("div",{className:"space-y-4",children:e.map((a,e)=>(0,d.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between bg-muted/60 px-3 py-1.5 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{children:["Hunk ",e+1," \xb7 +",a.adds," −",a.removes]}),(0,d.jsx)(h.$,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>b(a.id),disabled:c,children:"Undo"})]}),(0,d.jsx)("div",{className:"bg-background",children:(0,d.jsx)("pre",{className:"whitespace-pre-wrap px-3 py-2 text-xs leading-relaxed",children:a.lines.map((b,c)=>{let e=b[0],f=b.slice(1);return(0,d.jsxs)("div",{className:(0,i.cn)("rounded-sm px-1","+"===e&&"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","-"===e&&"bg-rose-500/15 text-rose-700 dark:text-rose-300 line-through"),children:[(0,d.jsx)("span",{className:"mr-2 text-muted-foreground/70",children:e}),f]},`${a.id}-${c}`)})})})]},a.id))})}},43531:a=>{"use strict";a.exports=require("gray-matter")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51381:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57075:a=>{"use strict";a.exports=require("node:stream")},62883:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=c(48249),e=c(74429),f=c(29294),g=c(10117),h=c(44217);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let i=(0,h.getDeploymentIdQueryOrEmptyString)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${i}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63059:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(7904),g=c(5735),h=f._(c(23318));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},65506:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,2116,23)),Promise.resolve().then(c.bind(c,4312)),Promise.resolve().then(c.bind(c,87334))},66958:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=c(49306);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},78474:a=>{"use strict";a.exports=require("node:events")},79748:a=>{"use strict";a.exports=require("fs/promises")},80061:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return j}});let d=c(48249),e=c(67484),f=c(66958),g=c(62883);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87334:(a,b,c)=>{"use strict";c.d(b,{PageEditor:()=>bu});var d=c(48249),e=c(67484),f=c(39973),g=c.n(f),h=c(19099),i=c(47408);let j=(0,i.A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),k=(0,i.A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);var l=c(90707),m=c(77745),n=c(25297),o=c(39471),p=c(58221),q=c(50307),r=c(14929),s=c(74429),t=c(43980),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),v=c(87772),w=c(45433),x=c(50352),y=c(57277),z=c(2309),A=c(333),B=c(51435),C=c(44688),D=c(70085),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,t.TL)(`Primitive.${b}`),f=e.forwardRef((a,e)=>{let{asChild:f,...g}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(f?c:b,{...g,ref:e})});return f.displayName=`Primitive.${b}`,{...a,[b]:f}},{}),G=c(76293),H="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},J="RovingFocusGroup",[K,L,M]=(0,v.N)(J),[N,O]=(0,q.A)(J,[M]),[P,Q]=N(J),R=e.forwardRef((a,b)=>(0,d.jsx)(K.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,d.jsx)(K.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,d.jsx)(S,{...a,ref:b})})}));R.displayName=J;var S=e.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,orientation:f,loop:g=!1,dir:h,currentTabStopId:i,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:k,onEntryFocus:l,preventScrollOnEntryFocus:m=!1,...n}=a,q=e.useRef(null),s=(0,p.s)(b,q),t=(0,w.jH)(h),[u,v]=(0,r.i)({prop:i,defaultProp:j??null,onChange:k,caller:J}),[x,y]=e.useState(!1),z=(0,G.c)(l),A=L(c),B=e.useRef(!1),[C,D]=e.useState(0);return e.useEffect(()=>{let a=q.current;if(a)return a.addEventListener(H,z),()=>a.removeEventListener(H,z)},[z]),(0,d.jsx)(P,{scope:c,orientation:f,dir:t,loop:g,currentTabStopId:u,onItemFocus:e.useCallback(a=>v(a),[v]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>D(a=>a+1),[]),onFocusableItemRemove:e.useCallback(()=>D(a=>a-1),[]),children:(0,d.jsx)(F.div,{tabIndex:x||0===C?-1:0,"data-orientation":f,...n,ref:s,style:{outline:"none",...a.style},onMouseDown:(0,o.mK)(a.onMouseDown,()=>{B.current=!0}),onFocus:(0,o.mK)(a.onFocus,a=>{let b=!B.current;if(a.target===a.currentTarget&&b&&!x){let b=new CustomEvent(H,I);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=A().filter(a=>a.focusable);W([a.find(a=>a.active),a.find(a=>a.id===u),...a].filter(Boolean).map(a=>a.ref.current),m)}}B.current=!1}),onBlur:(0,o.mK)(a.onBlur,()=>y(!1))})})}),T="RovingFocusGroupItem",U=e.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,focusable:f=!0,active:g=!1,tabStopId:h,children:i,...j}=a,k=(0,A.B)(),l=h||k,m=Q(T,c),n=m.currentTabStopId===l,p=L(c),{onFocusableItemAdd:q,onFocusableItemRemove:r,currentTabStopId:s}=m;return e.useEffect(()=>{if(f)return q(),()=>r()},[f,q,r]),(0,d.jsx)(K.ItemSlot,{scope:c,id:l,focusable:f,active:g,children:(0,d.jsx)(F.span,{tabIndex:n?0:-1,"data-orientation":m.orientation,...j,ref:b,onMouseDown:(0,o.mK)(a.onMouseDown,a=>{f?m.onItemFocus(l):a.preventDefault()}),onFocus:(0,o.mK)(a.onFocus,()=>m.onItemFocus(l)),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void m.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return V[e]}(a,m.orientation,m.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let e=p().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)e.reverse();else if("prev"===b||"next"===b){var c,d;"prev"===b&&e.reverse();let f=e.indexOf(a.currentTarget);e=m.loop?(c=e,d=f+1,c.map((a,b)=>c[(d+b)%c.length])):e.slice(f+1)}setTimeout(()=>W(e))}}),children:"function"==typeof i?i({isCurrentTabStop:n,hasTabStop:null!=s}):i})})});U.displayName=T;var V={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function W(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}var X=c(14206),Y=c(86709),Z=["Enter"," "],$=["ArrowUp","PageDown","End"],_=["ArrowDown","PageUp","Home",...$],aa={ltr:[...Z,"ArrowRight"],rtl:[...Z,"ArrowLeft"]},ab={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ac="Menu",[ad,ae,af]=(0,v.N)(ac),[ag,ah]=(0,q.A)(ac,[af,B.Bk,O]),ai=(0,B.Bk)(),aj=O(),[ak,al]=ag(ac),[am,an]=ag(ac),ao=a=>{let{__scopeMenu:b,open:c=!1,children:f,dir:g,onOpenChange:h,modal:i=!0}=a,j=ai(b),[k,l]=e.useState(null),m=e.useRef(!1),n=(0,G.c)(h),o=(0,w.jH)(g);return e.useEffect(()=>{let a=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",a,{capture:!0}),()=>{document.removeEventListener("keydown",a,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),(0,d.jsx)(B.bL,{...j,children:(0,d.jsx)(ak,{scope:b,open:c,onOpenChange:n,content:k,onContentChange:l,children:(0,d.jsx)(am,{scope:b,onClose:e.useCallback(()=>n(!1),[n]),isUsingKeyboardRef:m,dir:o,modal:i,children:f})})})};ao.displayName=ac;var ap=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a,f=ai(c);return(0,d.jsx)(B.Mz,{...f,...e,ref:b})});ap.displayName="MenuAnchor";var aq="MenuPortal",[ar,as]=ag(aq,{forceMount:void 0}),at=a=>{let{__scopeMenu:b,forceMount:c,children:e,container:f}=a,g=al(aq,b);return(0,d.jsx)(ar,{scope:b,forceMount:c,children:(0,d.jsx)(D.C,{present:c||g.open,children:(0,d.jsx)(C.Z,{asChild:!0,container:f,children:e})})})};at.displayName=aq;var au="MenuContent",[av,aw]=ag(au),ax=e.forwardRef((a,b)=>{let c=as(au,a.__scopeMenu),{forceMount:e=c.forceMount,...f}=a,g=al(au,a.__scopeMenu),h=an(au,a.__scopeMenu);return(0,d.jsx)(ad.Provider,{scope:a.__scopeMenu,children:(0,d.jsx)(D.C,{present:e||g.open,children:(0,d.jsx)(ad.Slot,{scope:a.__scopeMenu,children:h.modal?(0,d.jsx)(ay,{...f,ref:b}):(0,d.jsx)(az,{...f,ref:b})})})})}),ay=e.forwardRef((a,b)=>{let c=al(au,a.__scopeMenu),f=e.useRef(null),g=(0,p.s)(b,f);return e.useEffect(()=>{let a=f.current;if(a)return(0,X.Eq)(a)},[]),(0,d.jsx)(aB,{...a,ref:g,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})}),az=e.forwardRef((a,b)=>{let c=al(au,a.__scopeMenu);return(0,d.jsx)(aB,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)})}),aA=(0,t.TL)("MenuContent.ScrollLock"),aB=e.forwardRef((a,b)=>{let{__scopeMenu:c,loop:f=!1,trapFocus:g,onOpenAutoFocus:h,onCloseAutoFocus:i,disableOutsidePointerEvents:j,onEntryFocus:k,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:q,onDismiss:r,disableOutsideScroll:s,...t}=a,u=al(au,c),v=an(au,c),w=ai(c),A=aj(c),C=ae(c),[D,E]=e.useState(null),F=e.useRef(null),G=(0,p.s)(b,F,u.onContentChange),H=e.useRef(0),I=e.useRef(""),J=e.useRef(0),K=e.useRef(null),L=e.useRef("right"),M=e.useRef(0),N=s?Y.A:e.Fragment;e.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,y.Oh)();let O=e.useCallback(a=>{var b,c;return L.current===K.current?.side&&(b=a,!!(c=K.current?.area)&&function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;a<b.length;f=a++){let g=b[a],h=b[f],i=g.x,j=g.y,k=h.x,l=h.y;j>d!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}({x:b.clientX,y:b.clientY},c))},[]);return(0,d.jsx)(av,{scope:c,searchRef:I,onItemEnter:e.useCallback(a=>{O(a)&&a.preventDefault()},[O]),onItemLeave:e.useCallback(a=>{O(a)||(F.current?.focus(),E(null))},[O]),onTriggerLeave:e.useCallback(a=>{O(a)&&a.preventDefault()},[O]),pointerGraceTimerRef:J,onPointerGraceIntentChange:e.useCallback(a=>{K.current=a},[]),children:(0,d.jsx)(N,{...s?{as:aA,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(z.n,{asChild:!0,trapped:g,onMountAutoFocus:(0,o.mK)(h,a=>{a.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,d.jsx)(x.qW,{asChild:!0,disableOutsidePointerEvents:j,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:q,onDismiss:r,children:(0,d.jsx)(R,{asChild:!0,...A,dir:v.dir,orientation:"vertical",loop:f,currentTabStopId:D,onCurrentTabStopIdChange:E,onEntryFocus:(0,o.mK)(k,a=>{v.isUsingKeyboardRef.current||a.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(B.UC,{role:"menu","aria-orientation":"vertical","data-state":a_(u.open),"data-radix-menu-content":"",dir:v.dir,...w,...t,ref:G,style:{outline:"none",...t.style},onKeyDown:(0,o.mK)(t.onKeyDown,a=>{let b=a.target.closest("[data-radix-menu-content]")===a.currentTarget,c=a.ctrlKey||a.altKey||a.metaKey,d=1===a.key.length;if(b){var e;let b,f,g,h,i,j;"Tab"===a.key&&a.preventDefault(),!c&&d&&(e=a.key,b=I.current+e,f=C().filter(a=>!a.disabled),g=document.activeElement,h=f.find(a=>a.ref.current===g)?.textValue,i=function(a,b,c){var d;let e=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,f=c?a.indexOf(c):-1,g=(d=Math.max(f,0),a.map((b,c)=>a[(d+c)%a.length]));1===e.length&&(g=g.filter(a=>a!==c));let h=g.find(a=>a.toLowerCase().startsWith(e.toLowerCase()));return h!==c?h:void 0}(f.map(a=>a.textValue),b,h),j=f.find(a=>a.textValue===i)?.ref.current,function a(b){I.current=b,window.clearTimeout(H.current),""!==b&&(H.current=window.setTimeout(()=>a(""),1e3))}(b),j&&setTimeout(()=>j.focus()))}let f=F.current;if(a.target!==f||!_.includes(a.key))return;a.preventDefault();let g=C().filter(a=>!a.disabled).map(a=>a.ref.current);$.includes(a.key)&&g.reverse(),function(a){let b=document.activeElement;for(let c of a)if(c===b||(c.focus(),document.activeElement!==b))return}(g)}),onBlur:(0,o.mK)(a.onBlur,a=>{a.currentTarget.contains(a.target)||(window.clearTimeout(H.current),I.current="")}),onPointerMove:(0,o.mK)(a.onPointerMove,a2(a=>{let b=a.target,c=M.current!==a.clientX;a.currentTarget.contains(b)&&c&&(L.current=a.clientX>M.current?"right":"left",M.current=a.clientX)}))})})})})})})});ax.displayName=au;var aC=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{role:"group",...e,ref:b})});aC.displayName="MenuGroup";var aD=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{...e,ref:b})});aD.displayName="MenuLabel";var aE="MenuItem",aF="menu.itemSelect",aG=e.forwardRef((a,b)=>{let{disabled:c=!1,onSelect:f,...g}=a,h=e.useRef(null),i=an(aE,a.__scopeMenu),j=aw(aE,a.__scopeMenu),k=(0,p.s)(b,h),l=e.useRef(!1);return(0,d.jsx)(aH,{...g,ref:k,disabled:c,onClick:(0,o.mK)(a.onClick,()=>{let a=h.current;if(!c&&a){let b=new CustomEvent(aF,{bubbles:!0,cancelable:!0});a.addEventListener(aF,a=>f?.(a),{once:!0}),a&&s.flushSync(()=>a.dispatchEvent(b)),b.defaultPrevented?l.current=!1:i.onClose()}}),onPointerDown:b=>{a.onPointerDown?.(b),l.current=!0},onPointerUp:(0,o.mK)(a.onPointerUp,a=>{l.current||a.currentTarget?.click()}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{let b=""!==j.searchRef.current;c||b&&" "===a.key||Z.includes(a.key)&&(a.currentTarget.click(),a.preventDefault())})})});aG.displayName=aE;var aH=e.forwardRef((a,b)=>{let{__scopeMenu:c,disabled:f=!1,textValue:g,...h}=a,i=aw(aE,c),j=aj(c),k=e.useRef(null),l=(0,p.s)(b,k),[m,n]=e.useState(!1),[q,r]=e.useState("");return e.useEffect(()=>{let a=k.current;a&&r((a.textContent??"").trim())},[h.children]),(0,d.jsx)(ad.ItemSlot,{scope:c,disabled:f,textValue:g??q,children:(0,d.jsx)(U,{asChild:!0,...j,focusable:!f,children:(0,d.jsx)(E.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":f||void 0,"data-disabled":f?"":void 0,...h,ref:l,onPointerMove:(0,o.mK)(a.onPointerMove,a2(a=>{f?i.onItemLeave(a):(i.onItemEnter(a),a.defaultPrevented||a.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(a.onPointerLeave,a2(a=>i.onItemLeave(a))),onFocus:(0,o.mK)(a.onFocus,()=>n(!0)),onBlur:(0,o.mK)(a.onBlur,()=>n(!1))})})})}),aI=e.forwardRef((a,b)=>{let{checked:c=!1,onCheckedChange:e,...f}=a;return(0,d.jsx)(aQ,{scope:a.__scopeMenu,checked:c,children:(0,d.jsx)(aG,{role:"menuitemcheckbox","aria-checked":a0(c)?"mixed":c,...f,ref:b,"data-state":a1(c),onSelect:(0,o.mK)(f.onSelect,()=>e?.(!!a0(c)||!c),{checkForDefaultPrevented:!1})})})});aI.displayName="MenuCheckboxItem";var aJ="MenuRadioGroup",[aK,aL]=ag(aJ,{value:void 0,onValueChange:()=>{}}),aM=e.forwardRef((a,b)=>{let{value:c,onValueChange:e,...f}=a,g=(0,G.c)(e);return(0,d.jsx)(aK,{scope:a.__scopeMenu,value:c,onValueChange:g,children:(0,d.jsx)(aC,{...f,ref:b})})});aM.displayName=aJ;var aN="MenuRadioItem",aO=e.forwardRef((a,b)=>{let{value:c,...e}=a,f=aL(aN,a.__scopeMenu),g=c===f.value;return(0,d.jsx)(aQ,{scope:a.__scopeMenu,checked:g,children:(0,d.jsx)(aG,{role:"menuitemradio","aria-checked":g,...e,ref:b,"data-state":a1(g),onSelect:(0,o.mK)(e.onSelect,()=>f.onValueChange?.(c),{checkForDefaultPrevented:!1})})})});aO.displayName=aN;var aP="MenuItemIndicator",[aQ,aR]=ag(aP,{checked:!1}),aS=e.forwardRef((a,b)=>{let{__scopeMenu:c,forceMount:e,...f}=a,g=aR(aP,c);return(0,d.jsx)(D.C,{present:e||a0(g.checked)||!0===g.checked,children:(0,d.jsx)(E.span,{...f,ref:b,"data-state":a1(g.checked)})})});aS.displayName=aP;var aT=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a;return(0,d.jsx)(E.div,{role:"separator","aria-orientation":"horizontal",...e,ref:b})});aT.displayName="MenuSeparator";var aU=e.forwardRef((a,b)=>{let{__scopeMenu:c,...e}=a,f=ai(c);return(0,d.jsx)(B.i3,{...f,...e,ref:b})});aU.displayName="MenuArrow";var[aV,aW]=ag("MenuSub"),aX="MenuSubTrigger",aY=e.forwardRef((a,b)=>{let c=al(aX,a.__scopeMenu),f=an(aX,a.__scopeMenu),g=aW(aX,a.__scopeMenu),h=aw(aX,a.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:j,onPointerGraceIntentChange:k}=h,l={__scopeMenu:a.__scopeMenu},m=e.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return e.useEffect(()=>m,[m]),e.useEffect(()=>{let a=j.current;return()=>{window.clearTimeout(a),k(null)}},[j,k]),(0,d.jsx)(ap,{asChild:!0,...l,children:(0,d.jsx)(aH,{id:g.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":g.contentId,"data-state":a_(c.open),...a,ref:(0,p.t)(b,g.onTriggerChange),onClick:b=>{a.onClick?.(b),a.disabled||b.defaultPrevented||(b.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:(0,o.mK)(a.onPointerMove,a2(b=>{h.onItemEnter(b),!b.defaultPrevented&&(a.disabled||c.open||i.current||(h.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{c.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.mK)(a.onPointerLeave,a2(a=>{m();let b=c.content?.getBoundingClientRect();if(b){let d=c.content?.dataset.side,e="right"===d,f=b[e?"left":"right"],g=b[e?"right":"left"];h.onPointerGraceIntentChange({area:[{x:a.clientX+(e?-5:5),y:a.clientY},{x:f,y:b.top},{x:g,y:b.top},{x:g,y:b.bottom},{x:f,y:b.bottom}],side:d}),window.clearTimeout(j.current),j.current=window.setTimeout(()=>h.onPointerGraceIntentChange(null),300)}else{if(h.onTriggerLeave(a),a.defaultPrevented)return;h.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(a.onKeyDown,b=>{let d=""!==h.searchRef.current;a.disabled||d&&" "===b.key||aa[f.dir].includes(b.key)&&(c.onOpenChange(!0),c.content?.focus(),b.preventDefault())})})})});aY.displayName=aX;var aZ="MenuSubContent",a$=e.forwardRef((a,b)=>{let c=as(au,a.__scopeMenu),{forceMount:f=c.forceMount,...g}=a,h=al(au,a.__scopeMenu),i=an(au,a.__scopeMenu),j=aW(aZ,a.__scopeMenu),k=e.useRef(null),l=(0,p.s)(b,k);return(0,d.jsx)(ad.Provider,{scope:a.__scopeMenu,children:(0,d.jsx)(D.C,{present:f||h.open,children:(0,d.jsx)(ad.Slot,{scope:a.__scopeMenu,children:(0,d.jsx)(aB,{id:j.contentId,"aria-labelledby":j.triggerId,...g,ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{i.isUsingKeyboardRef.current&&k.current?.focus(),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:(0,o.mK)(a.onFocusOutside,a=>{a.target!==j.trigger&&h.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(a.onEscapeKeyDown,a=>{i.onClose(),a.preventDefault()}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{let b=a.currentTarget.contains(a.target),c=ab[i.dir].includes(a.key);b&&c&&(h.onOpenChange(!1),j.trigger?.focus(),a.preventDefault())})})})})})});function a_(a){return a?"open":"closed"}function a0(a){return"indeterminate"===a}function a1(a){return a0(a)?"indeterminate":a?"checked":"unchecked"}function a2(a){return b=>"mouse"===b.pointerType?a(b):void 0}a$.displayName=aZ;var a3="DropdownMenu",[a4,a5]=(0,q.A)(a3,[ah]),a6=ah(),[a7,a8]=a4(a3),a9=a=>{let{__scopeDropdownMenu:b,children:c,dir:f,open:g,defaultOpen:h,onOpenChange:i,modal:j=!0}=a,k=a6(b),l=e.useRef(null),[m,n]=(0,r.i)({prop:g,defaultProp:h??!1,onChange:i,caller:a3});return(0,d.jsx)(a7,{scope:b,triggerId:(0,A.B)(),triggerRef:l,contentId:(0,A.B)(),open:m,onOpenChange:n,onOpenToggle:e.useCallback(()=>n(a=>!a),[n]),modal:j,children:(0,d.jsx)(ao,{...k,open:m,onOpenChange:n,dir:f,modal:j,children:c})})};a9.displayName=a3;var ba="DropdownMenuTrigger",bb=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,disabled:e=!1,...f}=a,g=a8(ba,c),h=a6(c);return(0,d.jsx)(ap,{asChild:!0,...h,children:(0,d.jsx)(u.button,{type:"button",id:g.triggerId,"aria-haspopup":"menu","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":g.open?"open":"closed","data-disabled":e?"":void 0,disabled:e,...f,ref:(0,p.t)(b,g.triggerRef),onPointerDown:(0,o.mK)(a.onPointerDown,a=>{!e&&0===a.button&&!1===a.ctrlKey&&(g.onOpenToggle(),g.open||a.preventDefault())}),onKeyDown:(0,o.mK)(a.onKeyDown,a=>{!e&&(["Enter"," "].includes(a.key)&&g.onOpenToggle(),"ArrowDown"===a.key&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});bb.displayName=ba;var bc=a=>{let{__scopeDropdownMenu:b,...c}=a,e=a6(b);return(0,d.jsx)(at,{...e,...c})};bc.displayName="DropdownMenuPortal";var bd="DropdownMenuContent",be=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...f}=a,g=a8(bd,c),h=a6(c),i=e.useRef(!1);return(0,d.jsx)(ax,{id:g.contentId,"aria-labelledby":g.triggerId,...h,...f,ref:b,onCloseAutoFocus:(0,o.mK)(a.onCloseAutoFocus,a=>{i.current||g.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:(0,o.mK)(a.onInteractOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey,d=2===b.button||c;(!g.modal||d)&&(i.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});be.displayName=bd,e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aC,{...f,...e,ref:b})}).displayName="DropdownMenuGroup",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aD,{...f,...e,ref:b})}).displayName="DropdownMenuLabel";var bf=e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aG,{...f,...e,ref:b})});bf.displayName="DropdownMenuItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aI,{...f,...e,ref:b})}).displayName="DropdownMenuCheckboxItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aM,{...f,...e,ref:b})}).displayName="DropdownMenuRadioGroup",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aO,{...f,...e,ref:b})}).displayName="DropdownMenuRadioItem",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aS,{...f,...e,ref:b})}).displayName="DropdownMenuItemIndicator",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aT,{...f,...e,ref:b})}).displayName="DropdownMenuSeparator",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aU,{...f,...e,ref:b})}).displayName="DropdownMenuArrow",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(aY,{...f,...e,ref:b})}).displayName="DropdownMenuSubTrigger",e.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...e}=a,f=a6(c);return(0,d.jsx)(a$,{...f,...e,ref:b,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var bg=c(42893);function bh({...a}){return(0,d.jsx)(a9,{"data-slot":"dropdown-menu",...a})}function bi({...a}){return(0,d.jsx)(bb,{"data-slot":"dropdown-menu-trigger",...a})}function bj({className:a,sideOffset:b=4,...c}){return(0,d.jsx)(bc,{children:(0,d.jsx)(be,{"data-slot":"dropdown-menu-content",sideOffset:b,className:(0,bg.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",a),...c})})}function bk({className:a,inset:b,variant:c="default",...e}){return(0,d.jsx)(bf,{"data-slot":"dropdown-menu-item","data-inset":b,"data-variant":c,className:(0,bg.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...e})}var bl=c(98500),bm=c(34351),bn=c(42886);let bo=g()(async()=>{},{loadableGenerated:{modules:["components/editor/page-editor.tsx -> @/components/editor/editor"]},ssr:!1,loading:()=>(0,d.jsx)(m.L,{})}),bp=["\uD83D\uDCDD","\uD83D\uDCC4","\uD83D\uDCCB","\uD83D\uDCCC","\uD83D\uDCCE","\uD83D\uDCD1","\uD83D\uDCD2","\uD83D\uDCD3","\uD83D\uDCD4","\uD83D\uDCD5","\uD83D\uDCD6","\uD83D\uDCD7","\uD83D\uDCD8","\uD83D\uDCD9","\uD83C\uDFAF","\uD83D\uDE80","\uD83D\uDCA1","\uD83D\uDD25","⚡","\uD83C\uDFA8","\uD83E\uDDE0","\uD83D\uDCBB","\uD83D\uDD27","\uD83D\uDCCA","\uD83D\uDDC2️","✨","\uD83C\uDF1F","\uD83D\uDC4B","\uD83C\uDF99️","\uD83C\uDFB5","\uD83D\uDCF7","\uD83D\uDD2C","\uD83C\uDFD7️","\uD83D\uDDFA️","\uD83E\uDDE9"],bq=(0,e.memo)(function({status:a}){return"idle"===a?null:(0,d.jsx)("span",{className:`text-xs transition-opacity duration-300 ${{idle:"text-text-muted",saved:"text-success",saving:"text-text-muted",unsaved:"text-warning",error:"text-error"}[a]} ${"saved"===a?"animate-fade-out":""}`,children:{idle:"",saved:"Saved",saving:"Saving…",unsaved:"Unsaved changes",error:"Save failed"}[a]})}),br=(0,e.memo)(function({filePath:a}){let b=a.replace(/\.md$/,"").split("/").map(a=>a.replace(/[-_]+/g," ").replace(/\b\w/g,a=>a.toUpperCase()));return(0,d.jsx)("nav",{className:"flex items-center gap-1 text-[13px] text-text-muted",children:b.map((a,c)=>(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[c>0&&(0,d.jsx)("span",{className:"text-text-muted/50",children:"/"}),(0,d.jsx)("span",{className:c===b.length-1?"text-text-secondary":"",children:a})]},c))})});function bs({icon:a,onSelect:b}){let[c,f]=(0,e.useState)(!1),g=(0,e.useRef)(null);return(0,d.jsxs)("div",{ref:g,className:"relative inline-block",children:[(0,d.jsx)("button",{type:"button",onClick:()=>f(!c),className:"text-4xl leading-none hover:bg-surface-hover rounded-lg p-1 transition-colors cursor-pointer md:text-4xl text-3xl",title:"Change icon",children:a||"\uD83D\uDCC4"}),c&&(0,d.jsx)("div",{className:"absolute top-full left-0 z-50 mt-1 grid grid-cols-7 gap-1 rounded-lg border border-border bg-popover p-2 shadow-lg",children:bp.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{b(a),f(!1)},className:"flex items-center justify-center w-8 h-8 rounded hover:bg-surface-hover transition-colors text-lg cursor-pointer min-h-[44px] min-w-[44px] md:min-h-0 md:min-w-0",children:a},a))})]})}let bt=(0,e.memo)(function({status:a,wordCount:b,modified:c}){let[f,g]=(0,e.useState)(!1);(0,e.useEffect)(()=>{g(!0)},[]);let h=new Date(c),i=f?h.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):"",j=f?h.toLocaleDateString(void 0,{month:"short",day:"numeric"}):"";return(0,d.jsxs)("div",{className:"sticky bottom-0 z-10 flex items-center justify-between border-t border-border bg-background/80 backdrop-blur-sm px-4 py-1.5 text-xs text-text-muted md:px-6 max-md:bottom-14",children:[(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)(bq,{status:a}),(0,d.jsxs)("span",{className:"hidden sm:inline",children:[b," words"]})]}),(0,d.jsxs)("span",{className:"hidden sm:inline",children:["Last edited"," ",(0,d.jsx)("span",{suppressHydrationWarning:!0,children:j})," at"," ",(0,d.jsx)("span",{suppressHydrationWarning:!0,children:i})]}),(0,d.jsx)("span",{className:"sm:hidden",children:(0,d.jsx)(bq,{status:a})})]})});function bu({initialContent:a,meta:b,filePath:c}){let f=(0,h.useRouter)(),{deletePage:g}=(0,bl.M)(),i=(0,bm.W)(a=>a.review),o=(0,bm.W)(a=>a.closeReview),[p,q]=(0,e.useState)(b),[r,s]=(0,e.useState)(a),[t,u]=(0,e.useState)(0),[v,w]=(0,e.useState)(b.icon),[x,y]=(0,e.useState)("idle"),[z,A]=(0,e.useState)(0),[B,C]=(0,e.useState)(b.modified),[D,E]=(0,e.useState)(!1),F=(0,e.useRef)(null),G=(0,e.useRef)(null),H=(0,e.useRef)(b.title),I=(0,e.useRef)("idle"),J=(0,e.useRef)(a),K=(0,e.useRef)(0),L=(0,e.useRef)(null),M=(0,e.useRef)(null);(0,e.useRef)(null);let N=(0,e.useRef)(c),O=(0,e.useCallback)(a=>{G.current&&clearTimeout(G.current),G.current=setTimeout(async()=>{try{let b=await fetch(`/api/files/pages/${encodeURIComponent(c)}`);if(!b.ok)return;let d=await b.json();await fetch(`/api/files/pages/${encodeURIComponent(c)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:d.content,meta:{...a}})});let e=new Date().toISOString();K.current=Date.now(),C(e),q(b=>({...b,...a,modified:e}))}catch(a){console.error("Failed to save meta:",a)}},800)},[c]),P=(0,e.useCallback)(()=>{let a=F.current?.textContent?.trim()||"Untitled";a!==H.current&&(H.current=a,O({title:a,icon:v}))},[v,O]),Q=(0,e.useCallback)(a=>{if("Enter"===a.key){a.preventDefault();let b=document.querySelector(".clawpad-editor .ProseMirror");b?.focus()}},[]),R=(0,e.useCallback)(a=>{w(a);let b=F.current?.textContent?.trim()||H.current||"Untitled";H.current=b,O({title:b,icon:a})},[O]),S=(0,e.useCallback)(a=>{let b=new Date().toISOString();J.current=a,K.current=Date.now(),C(b),q(a=>({...a,modified:b}))},[]),T=(0,e.useCallback)(async()=>{try{await g(c),f.push("/workspace")}catch(a){console.error("Failed to delete page:",a)}},[g,c,f]),U=(0,e.useCallback)((a,b)=>{L.current=null,M.current&&(l.oR.dismiss(M.current),M.current=null),q(b),w(b.icon),C(b.modified),s(a),u(a=>a+1),y("idle"),J.current=a},[]),V=(0,e.useCallback)(async(a=!1)=>{try{let b=await fetch(`/api/files/pages/${encodeURIComponent(N.current)}`);if(!b.ok){404===b.status&&(l.oR.error("This page was deleted."),f.push("/workspace"));return}let c=await b.json(),d=c.content??"",e=c.meta;if(("unsaved"===I.current||"saving"===I.current)&&!a){L.current={content:d,meta:e},M.current||(M.current=(0,l.oR)("This page changed on disk",{action:{label:"Reload",onClick:()=>V(!0)},duration:6e3}));return}if(d===J.current&&!a){q(e),w(e.icon),C(e.modified);return}U(d,e)}catch(a){console.error("Failed to refresh page:",a)}},[U,f]);return i.open&&i.changeSetId&&i.filePath===c?(0,d.jsx)(bn.W,{changeSetId:i.changeSetId,filePath:c,onExit:o}):(0,d.jsxs)("div",{className:"flex min-h-full flex-col max-md:pb-14",children:[(0,d.jsxs)("div",{className:"mx-auto w-full flex-1 px-3 md:px-8",style:{maxWidth:"var(--clawpad-editor-width, 720px)"},children:[(0,d.jsxs)("div",{className:"pt-12 pb-1 md:pt-20",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsx)(bs,{icon:v,onSelect:R}),D?(0,d.jsxs)(bh,{children:[(0,d.jsx)(bi,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",children:[(0,d.jsx)(j,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Page actions"})]})}),(0,d.jsx)(bj,{align:"end",className:"w-44",children:(0,d.jsxs)(bk,{className:"text-destructive focus:text-destructive",onClick:T,children:[(0,d.jsx)(k,{className:"mr-2 h-4 w-4"}),"Delete"]})})]}):(0,d.jsxs)(n.$,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",disabled:!0,children:[(0,d.jsx)(j,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Page actions"})]})]}),(0,d.jsx)("h1",{ref:F,className:"mt-2 text-2xl font-semibold leading-tight tracking-tight outline-none md:text-[2rem] empty:before:content-['Untitled'] empty:before:text-text-muted",contentEditable:!0,suppressContentEditableWarning:!0,onInput:P,onKeyDown:Q,spellCheck:!1,dir:"auto"}),(0,d.jsx)("div",{className:"mt-2 mb-4 md:mb-6",children:(0,d.jsx)(br,{filePath:c})})]}),(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(m.L,{}),children:(0,d.jsx)(bo,{initialContent:r,filePath:c,onSave:S,onStatusChange:y,onWordCountChange:A,readOnly:!1},`${c}-${t}`)})]}),(0,d.jsx)(bt,{status:x,wordCount:z,modified:B})]})}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,4314,7471,7051,9779,4098,7035,7772,534,2470,3251],()=>b(b.s=24790));module.exports=c})();