@leanspec/ui 0.2.7-dev.20251127073145 → 0.2.7-dev.20251127082201

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 (68) hide show
  1. package/.next/standalone/packages/ui/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/ui/.next/build-manifest.json +2 -2
  3. package/.next/standalone/packages/ui/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/packages/ui/.next/server/app/_global-error.html +2 -2
  5. package/.next/standalone/packages/ui/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/packages/ui/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/packages/ui/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/packages/ui/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  9. package/.next/standalone/packages/ui/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/.next/standalone/packages/ui/.next/server/app/_not-found/page.js +1 -1
  11. package/.next/standalone/packages/ui/.next/server/app/_not-found/page.js.nft.json +1 -1
  12. package/.next/standalone/packages/ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/ui/.next/server/app/_not-found.html +2 -2
  14. package/.next/standalone/packages/ui/.next/server/app/_not-found.rsc +16 -16
  15. package/.next/standalone/packages/ui/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
  16. package/.next/standalone/packages/ui/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
  17. package/.next/standalone/packages/ui/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  18. package/.next/standalone/packages/ui/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  19. package/.next/standalone/packages/ui/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -4
  20. package/.next/standalone/packages/ui/.next/server/app/page.js +1 -1
  21. package/.next/standalone/packages/ui/.next/server/app/page.js.nft.json +1 -1
  22. package/.next/standalone/packages/ui/.next/server/app/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/page.js +1 -1
  24. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/page.js.nft.json +1 -1
  25. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/page_client-reference-manifest.js +1 -1
  26. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/[specId]/page.js +1 -1
  27. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/[specId]/page.js.nft.json +1 -1
  28. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/[specId]/page_client-reference-manifest.js +1 -1
  29. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/page.js +1 -1
  30. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/page.js.nft.json +1 -1
  31. package/.next/standalone/packages/ui/.next/server/app/projects/[projectId]/specs/page_client-reference-manifest.js +1 -1
  32. package/.next/standalone/packages/ui/.next/server/app/projects/page.js +1 -1
  33. package/.next/standalone/packages/ui/.next/server/app/projects/page.js.nft.json +1 -1
  34. package/.next/standalone/packages/ui/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/packages/ui/.next/server/app/projects.html +2 -2
  36. package/.next/standalone/packages/ui/.next/server/app/projects.rsc +10 -10
  37. package/.next/standalone/packages/ui/.next/server/app/projects.segments/_full.segment.rsc +10 -10
  38. package/.next/standalone/packages/ui/.next/server/app/projects.segments/_index.segment.rsc +8 -8
  39. package/.next/standalone/packages/ui/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
  40. package/.next/standalone/packages/ui/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
  41. package/.next/standalone/packages/ui/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  42. package/.next/standalone/packages/ui/.next/server/app/specs/[id]/page.js +1 -1
  43. package/.next/standalone/packages/ui/.next/server/app/specs/[id]/page.js.nft.json +1 -1
  44. package/.next/standalone/packages/ui/.next/server/app/specs/[id]/page_client-reference-manifest.js +1 -1
  45. package/.next/standalone/packages/ui/.next/server/app/specs/page.js +1 -1
  46. package/.next/standalone/packages/ui/.next/server/app/specs/page.js.nft.json +1 -1
  47. package/.next/standalone/packages/ui/.next/server/app/specs/page_client-reference-manifest.js +1 -1
  48. package/.next/standalone/packages/ui/.next/server/app/stats/page.js +1 -1
  49. package/.next/standalone/packages/ui/.next/server/app/stats/page.js.nft.json +1 -1
  50. package/.next/standalone/packages/ui/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/packages/ui/.next/server/chunks/ssr/{[root-of-the-server]__5382b397._.js → [root-of-the-server]__ead1539c._.js} +2 -2
  52. package/.next/standalone/packages/ui/.next/server/chunks/ssr/{_c2f54661._.js → _28fe1532._.js} +2 -2
  53. package/.next/standalone/packages/ui/.next/server/pages/404.html +2 -2
  54. package/.next/standalone/packages/ui/.next/server/pages/500.html +2 -2
  55. package/.next/standalone/packages/ui/.next/server/server-reference-manifest.js +1 -1
  56. package/.next/standalone/packages/ui/.next/server/server-reference-manifest.json +1 -1
  57. package/.next/{static/chunks/2204c0f16b23ec4c.js → standalone/packages/ui/.next/static/chunks/a803d646487dfc2d.js} +3 -3
  58. package/.next/standalone/packages/ui/package.json +2 -1
  59. package/.next/standalone/packages/ui/src/app/layout.tsx +3 -0
  60. package/.next/standalone/packages/ui/tsconfig.tsbuildinfo +1 -1
  61. package/.next/{standalone/packages/ui/.next/static/chunks/2204c0f16b23ec4c.js → static/chunks/a803d646487dfc2d.js} +3 -3
  62. package/package.json +2 -1
  63. /package/.next/standalone/packages/ui/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_buildManifest.js +0 -0
  64. /package/.next/standalone/packages/ui/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_clientMiddlewareManifest.json +0 -0
  65. /package/.next/standalone/packages/ui/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_ssgManifest.js +0 -0
  66. /package/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_buildManifest.js +0 -0
  67. /package/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_clientMiddlewareManifest.json +0 -0
  68. /package/.next/static/{x40RCBmhscd8vUYBBdXOm → bBQMWlNeMBvjcYkR6qIAu}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--x40RCBmhscd8vUYBBdXOm--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/b8353eb8c6fb895e.js"/><script src="/_next/static/chunks/f0376ba3b56dbf10.js" async=""></script><script src="/_next/static/chunks/1f052e076ca9a3ff.js" async=""></script><script src="/_next/static/chunks/0f108f65249f8820.js" async=""></script><script src="/_next/static/chunks/2a33b9246ea4be03.js" async=""></script><script src="/_next/static/chunks/turbopack-5fa55215af0efb15.js" async=""></script><script src="/_next/static/chunks/6a05a93ec8fa7b83.js" async=""></script><script src="/_next/static/chunks/97bd44afaee5f129.js" async=""></script><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
- @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/b8353eb8c6fb895e.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[824050,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n3:I[570127,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n4:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"ViewportBoundary\"]\n9:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"MetadataBoundary\"]\nb:I[465393,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"x40RCBmhscd8vUYBBdXOm\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"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,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@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\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/97bd44afaee5f129.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$@8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$@a\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:[]\n6:null\n"])</script></body></html>
1
+ <!DOCTYPE html><!--bBQMWlNeMBvjcYkR6qIAu--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/b8353eb8c6fb895e.js"/><script src="/_next/static/chunks/f0376ba3b56dbf10.js" async=""></script><script src="/_next/static/chunks/1f052e076ca9a3ff.js" async=""></script><script src="/_next/static/chunks/0f108f65249f8820.js" async=""></script><script src="/_next/static/chunks/2a33b9246ea4be03.js" async=""></script><script src="/_next/static/chunks/turbopack-5fa55215af0efb15.js" async=""></script><script src="/_next/static/chunks/6a05a93ec8fa7b83.js" async=""></script><script src="/_next/static/chunks/97bd44afaee5f129.js" async=""></script><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
+ @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/b8353eb8c6fb895e.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[824050,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n3:I[570127,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n4:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"ViewportBoundary\"]\n9:I[745442,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"MetadataBoundary\"]\nb:I[465393,[\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"/_next/static/chunks/97bd44afaee5f129.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"bBQMWlNeMBvjcYkR6qIAu\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"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,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@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\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/6a05a93ec8fa7b83.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/97bd44afaee5f129.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$@8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$@a\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:[]\n6:null\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"uRPd9CsN70KeyC+jVPbBgYipFZG0wJtYb4l4fXUMH3E=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"hivAA/gsNFTYO6XHPRGz3Xq7Nd3H0VPPj/yViYHS+5o=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "uRPd9CsN70KeyC+jVPbBgYipFZG0wJtYb4l4fXUMH3E="
4
+ "encryptionKey": "hivAA/gsNFTYO6XHPRGz3Xq7Nd3H0VPPj/yViYHS+5o="
5
5
  }
@@ -1,3 +1,3 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6454,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:i,objectFit:s}){let a=r?40*r:e,l=n?40*n:t,o=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${o}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${o?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},594547,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},550696,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return o}}),e.r(56863);let n=e.r(6454),i=e.r(594547),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function o({src:e,sizes:t,unoptimized:r=!1,priority:o=!1,preload:u=!1,loading:c,className:d,quality:h,width:f,height:p,fill:m=!1,style:g,overrideSrc:x,onLoad:v,onLoadingComplete:y,placeholder:b="empty",blurDataURL:C,fetchPriority:w,decoding:j="async",layout:E,objectFit:A,objectPosition:k,lazyBoundary:S,lazyRoot:_,...N},D){var F;let M,R,P,{imgConf:I,showAltText:B,blurComplete:O,defaultLoader:$}=D,L=I||i.imageConfigDefault;if("allSizes"in L)M=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t),r=L.qualities?.sort((e,t)=>e-t);M={...L,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=N.loader||$;delete N.loader,delete N.srcSet;let T="__next_img_default"in z;if(T){if("custom"===M.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...n}=t;return e(n)}}if(E){"fill"===E&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(g={...g,...e});let r={responsive:"100vw",fill:"100vw"}[E];r&&!t&&(t=r)}let H="",G=l(f),q=l(p);if((F=e)&&"object"==typeof F&&(a(F)||void 0!==F.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(R=t.blurWidth,P=t.blurHeight,C=C||t.blurDataURL,H=t.src,!m)if(G||q){if(G&&!q){let e=G/t.width;q=Math.round(t.height*e)}else if(!G&&q){let e=q/t.height;G=Math.round(t.width*e)}}else G=t.width,q=t.height}let W=!o&&!u&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),M.unoptimized&&(r=!0),T&&!M.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let V=l(h),K=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:k}:{},B?{}:{color:"transparent"},g),U=O||"empty"===b?null:"blur"===b?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:G,heightInt:q,blurWidth:R,blurHeight:P,blurDataURL:C||"",objectFit:K.objectFit})}")`:`url("${b}")`,J=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,X=U?{backgroundSize:J,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:U}:{},Q=function({config:e,src:t,unoptimized:r,width:n,quality:i,sizes:s,loader:a}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:l,kind:o}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,s),u=l.length-1;return{sizes:s||"w"!==o?s:"100vw",srcSet:l.map((r,n)=>`${a({config:e,src:t,quality:i,width:r})} ${"w"===o?r:n+1}${o}`).join(", "),src:a({config:e,src:t,quality:i,width:l[u]})}}({config:M,src:e,unoptimized:r,width:G,quality:V,sizes:t,loader:z}),Y=W?"lazy":c;return{props:{...N,loading:Y,fetchPriority:w,width:G,height:q,decoding:j,className:d,style:{...K,...X},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:r,preload:u||o,placeholder:b,fill:m}}}},29549,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(431231),i="undefined"==typeof window,s=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},582032,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(481258),a=e.r(744066),l=e.r(890022),o=a._(e.r(431231)),u=s._(e.r(29549)),c=e.r(392600);function d(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(56863);let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,i;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=f.length;t<r;t++){let r=f[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?s=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!a)&&n.has(t)?s=!1:(n.add(t),i[r]=n)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,o.useContext)(c.HeadManagerContext);return(0,l.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},111258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(481258)._(e.r(431231)),i=e.r(594547),s=n.default.createContext(i.imageConfigDefault)},394453,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(481258)._(e.r(431231)).default.createContext(null)},781035,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},765774,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(781035);function i({config:e,src:t,width:r,quality:i}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let s=(0,n.findClosestQuality)(i,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${s}${t.startsWith("/_next/static/media/"),""}`}i.__next_img_default=!0;let s=i},881988,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return b}});let n=e.r(481258),i=e.r(744066),s=e.r(890022),a=i._(e.r(431231)),l=n._(e.r(395635)),o=n._(e.r(582032)),u=e.r(550696),c=e.r(594547),d=e.r(111258);e.r(56863);let h=e.r(394453),f=n._(e.r(765774)),p=e.r(266500),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,s,a){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function x(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:l,className:o,style:u,fetchPriority:c,placeholder:d,loading:h,unoptimized:f,fill:m,onLoadRef:v,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:C,sizesInput:w,onLoad:j,onError:E,...A},k)=>{let S=(0,a.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&g(e,d,v,y,b,f,w))},[e,d,v,y,b,E,f,w]),_=(0,p.useMergedRef)(k,S);return(0,s.jsx)("img",{...A,...x(c),loading:h,width:i,height:n,decoding:l,"data-nimg":m?"fill":"1",className:o,style:u,sizes:r,srcSet:t,src:e,ref:_,onLoad:e=>{g(e.currentTarget,d,v,y,b,f,w)},onError:e=>{C(!0),"empty"!==d&&b(!0),E&&E(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,r),null):(0,s.jsx)(o.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(h.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"undefined"==typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:l,onLoadingComplete:o}=e,p=(0,a.useRef)(l);(0,a.useEffect)(()=>{p.current=l},[l]);let g=(0,a.useRef)(o);(0,a.useEffect)(()=>{g.current=o},[o]);let[x,b]=(0,a.useState)(!1),[C,w]=(0,a.useState)(!1),{props:j,meta:E}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:x,showAltText:C});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,sizesInput:e.sizes,ref:t}),E.preload?(0,s.jsx)(y,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},322867,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(481258),a=e.r(550696),l=e.r(881988),o=s._(e.r(765774));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=l.Image},805970,(e,t,r)=>{t.exports=e.r(322867)},694541,e=>{"use strict";var t=e.i(890022),r=e.i(431231),n=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,s=/[\s-]/,a=/[\s-]/g;function l(e){return e.toLowerCase().replace(a," ")}var o=e.i(739065);e.i(395635);var u=e.i(614433),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,u.createSlot)(`Primitive.${n}`),s=r.forwardRef((e,r)=>{let{asChild:s,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(s?i:n,{...a,ref:r})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{}),d=e.i(315599),h=e.i(430406),f='[cmdk-group=""]',p='[cmdk-group-items=""]',m='[cmdk-item=""]',g=`${m}:not([aria-disabled="true"])`,x="cmdk-item-select",v="data-value",y=(e,t,r)=>{var o;return o=e,function e(t,r,l,o,u,c,d){if(c===r.length)return u===t.length?1:.99;var h=`${u},${c}`;if(void 0!==d[h])return d[h];for(var f,p,m,g,x=o.charAt(c),v=l.indexOf(x,u),y=0;v>=0;)(f=e(t,r,l,o,v+1,c+1,d))>y&&(v===u?f*=1:n.test(t.charAt(v-1))?(f*=.8,(m=t.slice(u,v-1).match(i))&&u>0&&(f*=Math.pow(.999,m.length))):s.test(t.charAt(v-1))?(f*=.9,(g=t.slice(u,v-1).match(a))&&u>0&&(f*=Math.pow(.999,g.length))):(f*=.17,u>0&&(f*=Math.pow(.999,v-u))),t.charAt(v)!==r.charAt(c)&&(f*=.9999)),(f<.1&&l.charAt(v-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&l.charAt(v-1)!==o.charAt(c))&&.1*(p=e(t,r,l,o,v+1,c+2,d))>f&&(f=.1*p),f>y&&(y=f),v=l.indexOf(x,v+1);return d[h]=y,y}(o=r&&r.length>0?`${o+" "+r.join(" ")}`:o,t,l(o),l(t),0,0,{})},b=r.createContext(void 0),C=r.createContext(void 0),w=r.createContext(void 0),j=r.forwardRef((e,t)=>{let n=R(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=R(()=>new Set),s=R(()=>new Map),a=R(()=>new Map),l=R(()=>new Set),o=F(e),{label:u,children:h,value:w,onValueChange:j,filter:E,shouldFilter:A,loop:k,disablePointerSelection:S=!1,vimBindings:_=!0,...N}=e,D=(0,d.useId)(),P=(0,d.useId)(),I=(0,d.useId)(),L=r.useRef(null),z=B();M(()=>{if(void 0!==w){let e=w.trim();n.current.value=e,T.emit()}},[w]),M(()=>{z(6,K)},[]);let T=r.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,s,a,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)V(),q(),z(1,W);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(I);e?e.focus():null==(i=document.getElementById(D))||i.focus()}if(z(7,()=>{var e;n.current.selectedItemId=null==(e=U())?void 0:e.id,T.emit()}),r||z(5,K),(null==(s=o.current)?void 0:s.value)!==void 0){null==(l=(a=o.current).onValueChange)||l.call(a,null!=t?t:"");return}}T.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),H=r.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,G(t,r)),z(2,()=>{q(),T.emit()}))},item:(e,t)=>(i.current.add(e),t&&(s.current.has(t)?s.current.get(t).add(e):s.current.set(t,new Set([e]))),z(3,()=>{V(),q(),n.current.value||W(),T.emit()}),()=>{a.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=U();z(4,()=>{V(),(null==t?void 0:t.getAttribute("id"))===e&&W(),T.emit()})}),group:e=>(s.current.has(e)||s.current.set(e,new Set),()=>{a.current.delete(e),s.current.delete(e)}),filter:()=>o.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:D,inputId:I,labelId:P,listInnerRef:L}),[]);function G(e,t){var r,i;let s=null!=(i=null==(r=o.current)?void 0:r.filter)?i:y;return e?s(e,n.current.search,t):0}function q(){if(!n.current.search||!1===o.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=s.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let r=L.current;J().sort((t,r)=>{var n,i;let s=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(i=e.get(s))?i:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest(`${p} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${p} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=L.current)?void 0:t.querySelector(`${f}[${v}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function W(){let e=J().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(v);T.setState("value",t||void 0)}function V(){var e,t,r,l;if(!n.current.search||!1===o.current.shouldFilter){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let u=0;for(let s of i.current){let i=G(null!=(t=null==(e=a.current.get(s))?void 0:e.value)?t:"",null!=(l=null==(r=a.current.get(s))?void 0:r.keywords)?l:[]);n.current.filtered.items.set(s,i),i>0&&u++}for(let[e,t]of s.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function K(){var e,t,r;let n=U();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(f))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function U(){var e;return null==(e=L.current)?void 0:e.querySelector(`${m}[aria-selected="true"]`)}function J(){var e;return Array.from((null==(e=L.current)?void 0:e.querySelectorAll(g))||[])}function X(e){let t=J()[e];t&&T.setState("value",t.getAttribute(v))}function Q(e){var t;let r=U(),n=J(),i=n.findIndex(e=>e===r),s=n[i+e];null!=(t=o.current)&&t.loop&&(s=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),s&&T.setState("value",s.getAttribute(v))}function Y(e){let t=U(),r=null==t?void 0:t.closest(f),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,f):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,f))?void 0:r.querySelector(g);n?T.setState("value",n.getAttribute(v)):Q(e)}let Z=()=>X(J().length-1),ee=e=>{e.preventDefault(),e.metaKey?Z():e.altKey?Y(1):Q(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?Y(-1):Q(-1)};return r.createElement(c.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=N.onKeyDown)||t.call(N,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":_&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":_&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Z();break;case"Enter":{e.preventDefault();let t=U();if(t){let e=new Event(x);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:$},u),O(e,e=>r.createElement(C.Provider,{value:T},r.createElement(b.Provider,{value:H},e))))}),E=r.forwardRef((e,t)=>{var n,i;let s=(0,d.useId)(),a=r.useRef(null),l=r.useContext(w),o=r.useContext(b),u=F(e),f=null!=(i=null==(n=u.current)?void 0:n.forceMount)?i:null==l?void 0:l.forceMount;M(()=>{if(!f)return o.item(s,null==l?void 0:l.id)},[f]);let p=I(s,a,[e.value,e.children,a],e.keywords),m=r.useContext(C),g=P(e=>e.value&&e.value===p.current),v=P(e=>!!f||!1===o.filter()||!e.search||e.filtered.items.get(s)>0);function y(){var e,t;j(),null==(t=(e=u.current).onSelect)||t.call(e,p.current)}function j(){m.setState("value",p.current,!0)}if(r.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(x,y),()=>t.removeEventListener(x,y)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:E,value:A,onSelect:k,forceMount:S,keywords:_,...N}=e;return r.createElement(c.div,{ref:(0,h.composeRefs)(a,t),...N,id:s,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!g,"data-disabled":!!E,"data-selected":!!g,onPointerMove:E||o.getDisablePointerSelection()?void 0:j,onClick:E?void 0:y},e.children)}),A=r.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...a}=e,l=(0,d.useId)(),o=r.useRef(null),u=r.useRef(null),f=(0,d.useId)(),p=r.useContext(b),m=P(e=>!!s||!1===p.filter()||!e.search||e.filtered.groups.has(l));M(()=>p.group(l),[]),I(l,o,[e.value,e.heading,u]);let g=r.useMemo(()=>({id:l,forceMount:s}),[s]);return r.createElement(c.div,{ref:(0,h.composeRefs)(o,t),...a,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&r.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),O(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},r.createElement(w.Provider,{value:g},e))))}),k=r.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,s=r.useRef(null),a=P(e=>!e.search);return n||a?r.createElement(c.div,{ref:(0,h.composeRefs)(s,t),...i,"cmdk-separator":"",role:"separator"}):null}),S=r.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,s=null!=e.value,a=r.useContext(C),l=P(e=>e.search),o=P(e=>e.selectedItemId),u=r.useContext(b);return r.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),r.createElement(c.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":o,id:u.inputId,type:"text",value:s?e.value:l,onChange:e=>{s||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),_=r.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...s}=e,a=r.useRef(null),l=r.useRef(null),o=P(e=>e.selectedItemId),u=r.useContext(b);return r.useEffect(()=>{if(l.current&&a.current){let e=l.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),r.createElement(c.div,{ref:(0,h.composeRefs)(a,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":i,id:u.listId},O(e,e=>r.createElement("div",{ref:(0,h.composeRefs)(l,u.listInnerRef),"cmdk-list-sizer":""},e)))}),N=r.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:s,contentClassName:a,container:l,...u}=e;return r.createElement(o.Root,{open:n,onOpenChange:i},r.createElement(o.Portal,{container:l},r.createElement(o.Overlay,{"cmdk-overlay":"",className:s}),r.createElement(o.Content,{"aria-label":e.label,"cmdk-dialog":"",className:a},r.createElement(j,{ref:t,...u}))))}),D=Object.assign(j,{List:_,Item:E,Input:S,Group:A,Separator:k,Dialog:N,Empty:r.forwardRef((e,t)=>P(e=>0===e.filtered.count)?r.createElement(c.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:n,children:i,label:s="Loading...",...a}=e;return r.createElement(c.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},O(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function F(e){let t=r.useRef(e);return M(()=>{t.current=e}),t}var M="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function R(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function P(e){let t=r.useContext(C),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function I(e,t,n,i=[]){let s=r.useRef(),a=r.useContext(b);return M(()=>{var r;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():s.current}})(),o=i.map(e=>e.trim());a.value(e,l,o),null==(r=t.current)||r.setAttribute(v,l),s.current=l}),s}var B=()=>{let[e,t]=r.useState(),n=R(()=>new Map);return M(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function O({asChild:e,children:t},n){let i;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(i=t.type)?i(t.props):"render"in i?i.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var $={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},L=e.i(300329),z=e.i(632137),T=e.i(439779);let H=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(D,{ref:n,className:(0,z.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...r}));H.displayName=D.displayName;let G=({children:e,...r})=>(0,t.jsx)(T.Dialog,{...r,children:(0,t.jsx)(T.DialogContent,{className:"overflow-hidden p-0 shadow-lg",children:(0,t.jsx)(H,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),q=r.forwardRef(({className:e,...r},n)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(L.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(D.Input,{ref:n,className:(0,z.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...r})]}));q.displayName=D.Input.displayName;let W=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(D.List,{ref:n,className:(0,z.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));W.displayName=D.List.displayName;let V=r.forwardRef((e,r)=>(0,t.jsx)(D.Empty,{ref:r,className:"py-6 text-center text-sm",...e}));V.displayName=D.Empty.displayName;let K=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(D.Group,{ref:n,className:(0,z.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...r}));K.displayName=D.Group.displayName;let U=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(D.Separator,{ref:n,className:(0,z.cn)("-mx-1 h-px bg-border",e),...r}));U.displayName=D.Separator.displayName;let J=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(D.Item,{ref:n,className:(0,z.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...r}));J.displayName=D.Item.displayName,e.s(["Command",()=>H,"CommandDialog",()=>G,"CommandEmpty",()=>V,"CommandGroup",()=>K,"CommandInput",()=>q,"CommandItem",()=>J,"CommandList",()=>W,"CommandSeparator",()=>U],694541)},426160,e=>{"use strict";var t=e.i(890022),r=e.i(987985),n=e.i(805970),i=e.i(230827),s=e.i(525761),a=e.i(122436);let l=(0,a.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),o=(0,a.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var u=e.i(431231);let c=(0,a.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),d=(0,a.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var h=e.i(81795),f=e.i(235893);function p(){let{theme:e,setTheme:r}=(0,h.useTheme)(),[n,i]=u.useState(!1);return(u.useEffect(()=>{i(!0)},[]),n)?(0,t.jsxs)(f.Button,{variant:"ghost",size:"icon",onClick:()=>r("light"===e?"dark":"light"),"aria-label":"Toggle theme",children:[(0,t.jsx)(d,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,t.jsx)(c,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]}):(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",disabled:!0,"aria-label":"Toggle theme",children:(0,t.jsx)(d,{className:"h-5 w-5"})})}var m=e.i(20315),g=e.i(300329),x=e.i(40843);let v=(0,a.default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function y(e){return Array.isArray?Array.isArray(e):"[object Array]"===k(e)}let b=1/0;function C(e){return"string"==typeof e}function w(e){return"number"==typeof e}function j(e){return"object"==typeof e}function E(e){return null!=e}function A(e){return!e.trim().length}function k(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let S=Object.prototype.hasOwnProperty;class _{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=N(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function N(e){let t=null,r=null,n=null,i=1,s=null;if(C(e)||y(e))n=e,t=D(e),r=F(e);else{if(!S.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(n=a,S.call(e,"weight")&&(i=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=D(a),r=F(a),s=e.getFn}return{path:t,id:r,weight:i,src:n,getFn:s}}function D(e){return y(e)?e:e.split(".")}function F(e){return y(e)?e.join("."):e}var M={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],n=!1,i=(e,t,s)=>{if(E(e))if(t[s]){var a,l;let o=e[t[s]];if(!E(o))return;if(s===t.length-1&&(C(o)||w(o)||!0===(a=o)||!1===a||j(l=a)&&null!==l&&"[object Boolean]"==k(a)))r.push(null==o?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-b?"-0":t}(o));else if(y(o)){n=!0;for(let e=0,r=o.length;e<r;e+=1)i(o[e],t,s+1)}else t.length&&i(o,t,s+1)}else r.push(e)};return i(e,C(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let R=/[^ ]+/g;class P{constructor({getFn:e=M.getFn,fieldNormWeight:t=M.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(R).length;if(r.has(i))return r.get(i);let s=parseFloat(Math.round(1/Math.pow(i,.5*e)*n)/n);return r.set(i,s),s},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,C(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();C(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!E(e)||A(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,n)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(E(i)){if(y(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:r,value:n}=t.pop();if(E(n))if(C(n)&&!A(n)){let t={v:n,i:r,n:this.norm.get(n)};e.push(t)}else y(n)&&n.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[n]=e}else if(C(i)&&!A(i)){let e={v:i,n:this.norm.get(i)};r.$[n]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function I(e,t,{getFn:r=M.getFn,fieldNormWeight:n=M.fieldNormWeight}={}){let i=new P({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(N)),i.setSources(t),i.create(),i}function B(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=M.distance,ignoreLocation:s=M.ignoreLocation}={}){let a=t/e.length;if(s)return a;let l=Math.abs(n-r);return i?a+l/i:l?1:a}let O=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class ${constructor(e,{location:t=M.location,threshold:r=M.threshold,distance:n=M.distance,includeMatches:i=M.includeMatches,findAllMatches:s=M.findAllMatches,minMatchCharLength:a=M.minMatchCharLength,isCaseSensitive:l=M.isCaseSensitive,ignoreDiacritics:o=M.ignoreDiacritics,ignoreLocation:u=M.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:o,ignoreLocation:u},e=l?e:e.toLowerCase(),e=o?O(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,r=d-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?O(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:o,ignoreLocation:u}=this.options,c=[],d=0,h=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:f})=>{let{isMatch:p,score:m,indices:g}=function(e,t,r,{location:n=M.location,distance:i=M.distance,threshold:s=M.threshold,findAllMatches:a=M.findAllMatches,minMatchCharLength:l=M.minMatchCharLength,includeMatches:o=M.includeMatches,ignoreLocation:u=M.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let d=t.length,h=e.length,f=Math.max(0,Math.min(n,h)),p=s,m=f,g=l>1||o,x=g?Array(h):[];for(;(c=e.indexOf(t,m))>-1;)if(p=Math.min(B(t,{currentLocation:c,expectedLocation:f,distance:i,ignoreLocation:u}),p),m=c+d,g){let e=0;for(;e<d;)x[c+e]=1,e+=1}m=-1;let v=[],y=1,b=d+h,C=1<<d-1;for(let n=0;n<d;n+=1){let s=0,l=b;for(;s<l;)B(t,{errors:n,currentLocation:f+l,expectedLocation:f,distance:i,ignoreLocation:u})<=p?s=l:b=l,l=Math.floor((b-s)/2+s);b=l;let o=Math.max(1,f-l+1),c=a?h:Math.min(f+l,h)+d,w=Array(c+2);w[c+1]=(1<<n)-1;for(let s=c;s>=o;s-=1){let a=s-1,l=r[e.charAt(a)];if(g&&(x[a]=+!!l),w[s]=(w[s+1]<<1|1)&l,n&&(w[s]|=(v[s+1]|v[s])<<1|1|v[s+1]),w[s]&C&&(y=B(t,{errors:n,currentLocation:a,expectedLocation:f,distance:i,ignoreLocation:u}))<=p){if(p=y,(m=a)<=f)break;o=Math.max(1,2*f-m)}}if(B(t,{errors:n+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:u})>p)break;v=w}let w={isMatch:m>=0,score:Math.max(.001,y)};if(g){let e=function(e=[],t=M.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let a=e.length;s<a;s+=1){let a=e[s];a&&-1===n?n=s:a||-1===n||((i=s-1)-n+1>=t&&r.push([n,i]),n=-1)}return e[s-1]&&s-n>=t&&r.push([n,s-1]),r}(x,l);e.length?o&&(w.indices=e):w.isMatch=!1}return w}(e,t,r,{location:i+f,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:o,includeMatches:n,ignoreLocation:u});p&&(h=!0),d+=m,p&&g&&(c=[...c,...g])});let f={isMatch:h,score:h?d/this.chunks.length:1};return h&&n&&(f.indices=c),f}}class L{constructor(e){this.pattern=e}static isMultiMatch(e){return z(e,this.multiRegex)}static isSingleMatch(e){return z(e,this.singleRegex)}search(){}}function z(e,t){let r=e.match(t);return r?r[1]:null}class T extends L{constructor(e,{location:t=M.location,threshold:r=M.threshold,distance:n=M.distance,includeMatches:i=M.includeMatches,findAllMatches:s=M.findAllMatches,minMatchCharLength:a=M.minMatchCharLength,isCaseSensitive:l=M.isCaseSensitive,ignoreDiacritics:o=M.ignoreDiacritics,ignoreLocation:u=M.ignoreLocation}={}){super(e),this._bitapSearch=new $(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:o,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class H extends L{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let s=!!n.length;return{isMatch:s,score:+!s,indices:n}}}let G=[class extends L{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},H,class extends L{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},T],q=G.length,W=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,V=new Set([T.type,H.type]),K=[];function U(e,t){for(let r=0,n=K.length;r<n;r+=1){let n=K[r];if(n.condition(e,t))return new n(e,t)}return new $(e,t)}let J="$and",X="$path",Q=e=>!!(e[J]||e.$or),Y=e=>({[J]:Object.keys(e).map(t=>({[t]:e[t]}))});function Z(e,t,{auto:r=!0}={}){let n=e=>{let i=Object.keys(e),s=!!e[X];if(!s&&i.length>1&&!Q(e))return n(Y(e));if(!y(e)&&j(e)&&!Q(e)){let n=s?e[X]:i[0],a=s?e.$val:e[n];if(!C(a))throw Error(`Invalid value for key ${n}`);let l={keyId:F(n),pattern:a};return r&&(l.searcher=U(a,t)),l}let a={children:[],operator:i[0]};return i.forEach(t=>{let r=e[t];y(r)&&r.forEach(e=>{a.children.push(n(e))})}),a};return Q(e)||(e=Y(e)),n(e)}function ee(e,t){let r=e.matches;t.matches=[],E(r)&&r.forEach(e=>{if(!E(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function et(e,t){t.score=e.score}class er{constructor(e,t={},r){this.options={...M,...t},this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof P))throw Error("Incorrect 'index' type");this._myIndex=t||I(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){E(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:i,sortFn:s,ignoreFieldNorm:a}=this.options,l=C(e)?C(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=M.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let s=e?e.weight:null;r*=Math.pow(0===i&&s?Number.EPSILON:i,(s||1)*(t?1:n))}),e.score=r})}(l,{ignoreFieldNorm:a}),i&&l.sort(s),w(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:r=M.includeMatches,includeScore:n=M.includeScore}={}){let i=[];return r&&i.push(ee),n&&i.push(et),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(l,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=U(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!E(e))return;let{isMatch:s,score:a,indices:l}=t.searchIn(e);s&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:i,indices:l}]})}),n}_searchLogical(e){let t=Z(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,s=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}let i=[];for(let s=0,a=e.children.length;s<a;s+=1){let a=r(e.children[s],t,n);if(a.length)i.push(...a);else if(e.operator===J)return[]}return i},n=this._myIndex.records,i={},s=[];return n.forEach(({$:e,i:n})=>{if(E(e)){let a=r(t,e,n);a.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},s.push(i[n])),a.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),s}_searchObjectList(e){let t=U(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!E(e))return;let s=[];r.forEach((r,n)=>{s.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),s.length&&i.push({idx:n,item:e,matches:s})}),i}_findMatches({key:e,value:t,searcher:r}){if(!E(t))return[];let n=[];if(y(t))t.forEach(({v:t,i:i,n:s})=>{if(!E(t))return;let{isMatch:a,score:l,indices:o}=r.searchIn(t);a&&n.push({score:l,key:e,value:t,idx:i,norm:s,indices:o})});else{let{v:i,n:s}=t,{isMatch:a,score:l,indices:o}=r.searchIn(i);a&&n.push({score:l,key:e,value:i,norm:s,indices:o})}return n}}er.version="7.1.0",er.createIndex=I,er.parseIndex=function(e,{getFn:t=M.getFn,fieldNormWeight:r=M.fieldNormWeight}={}){let{keys:n,records:i}=e,s=new P({getFn:t,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s},er.config=M,er.parseQuery=Z,function(...e){K.push(...e)}(class{constructor(e,{isCaseSensitive:t=M.isCaseSensitive,ignoreDiacritics:r=M.ignoreDiacritics,includeMatches:n=M.includeMatches,minMatchCharLength:i=M.minMatchCharLength,ignoreLocation:s=M.ignoreLocation,findAllMatches:a=M.findAllMatches,location:l=M.location,threshold:o=M.threshold,distance:u=M.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:s,location:l,threshold:o,distance:u},e=t?e:e.toLowerCase(),e=r?O(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(W).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],s=!1,a=-1;for(;!s&&++a<q;){let e=G[a],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),s=!0)}if(!s)for(a=-1;++a<q;){let e=G[a],r=e.isSingleMatch(i);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?O(e):e;let s=0,a=[],l=0;for(let n=0,i=t.length;n<i;n+=1){let i=t[n];a.length=0,s=0;for(let t=0,n=i.length;t<n;t+=1){let n=i[t],{isMatch:o,indices:u,score:c}=n.search(e);if(o){if(s+=1,l+=c,r){let e=n.constructor.type;V.has(e)?a=[...a,...u]:a.push(u)}}else{l=0,s=0,a.length=0;break}}if(s){let e={isMatch:!0,score:l/s};return r&&(e.indices=a),e}}return{isMatch:!1,score:1}}});var en=e.i(694541),ei=e.i(168497),es=e.i(597705);function ea({specs:e}){let r=(0,i.useRouter)(),[n,s]=u.useState(!1),[a,l]=u.useState(""),[o,c]=u.useState([]);u.useEffect(()=>{let e=localStorage.getItem("leanspec-recent-searches");e&&c(JSON.parse(e))},[]),u.useEffect(()=>{let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),s(e=>!e))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let d=u.useMemo(()=>new er(e,{keys:[{name:"title",weight:2},{name:"specNumber",weight:1.5},{name:"tags",weight:.5}],threshold:.4,includeScore:!0,minMatchCharLength:2}),[e]),h=u.useMemo(()=>a?d.search(a).map(e=>e.item):e.slice(0,8),[a,d,e]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>s(!0),className:"inline-flex items-center gap-2 px-2 sm:px-3 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors border rounded-md hover:border-foreground/20",children:[(0,t.jsx)(g.Search,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Quick search..."}),(0,t.jsxs)("kbd",{className:"hidden md:inline-flex pointer-events-none h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100",children:[(0,t.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]}),(0,t.jsxs)(en.CommandDialog,{open:n,onOpenChange:s,children:[(0,t.jsx)(en.CommandInput,{placeholder:"Search specs by title, number, or tags...",value:a,onValueChange:l}),(0,t.jsxs)(en.CommandList,{children:[(0,t.jsx)(en.CommandEmpty,{children:"No specs found."}),!a&&o.length>0&&(0,t.jsx)(en.CommandGroup,{heading:"Recent Searches",children:o.map(e=>(0,t.jsxs)(en.CommandItem,{value:e,onSelect:()=>{l(e)},children:[(0,t.jsx)(x.Clock,{className:"mr-2 h-4 w-4"}),e]},e))}),(0,t.jsx)(en.CommandGroup,{heading:"Specs",children:h.map(e=>(0,t.jsxs)(en.CommandItem,{value:`${e.specNumber} ${e.title}`,onSelect:()=>{var t,n;let i;return t=e.id,void(c(i=[n=e.title,...o.filter(e=>e!==n)].slice(0,5)),localStorage.setItem("leanspec-recent-searches",JSON.stringify(i)),r.push(`/specs/${t}`),s(!1),l(""))},children:[(0,t.jsx)(m.FileText,{className:"mr-2 h-4 w-4"}),(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"font-medium",children:["#",e.specNumber]}),(0,t.jsx)("span",{className:"truncate",children:e.title})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsx)(ei.StatusBadge,{status:e.status}),(0,t.jsx)(es.PriorityBadge,{priority:e.priority})]})]})]},e.id))}),a&&(0,t.jsx)(en.CommandGroup,{heading:"Filter by Tag",children:Array.from(new Set(e.flatMap(e=>e.tags))).filter(e=>e.toLowerCase().includes(a.toLowerCase())).slice(0,5).map(e=>(0,t.jsxs)(en.CommandItem,{value:e,onSelect:()=>{r.push(`/?tag=${encodeURIComponent(e)}`),s(!1)},children:[(0,t.jsx)(v,{className:"mr-2 h-4 w-4"}),"Filter by: ",(0,t.jsx)("span",{className:"ml-1 font-medium",children:e})]},e))})]})]})]})}var el=e.i(308402);function eo({items:e}){return(0,t.jsx)("nav",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:e.map((e,n)=>(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[n>0&&(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4"}),e.href?(0,t.jsx)(r.default,{href:e.href,className:"hover:text-foreground transition-colors",children:e.label}):(0,t.jsx)("span",{className:"text-foreground",children:e.label})]},n))})}function eu({specs:e}){let s=function(e){if("/"===e)return[{label:"Home"}];if("/stats"===e)return[{label:"Home",href:"/"},{label:"Stats"}];if("/specs"===e||e.startsWith("/specs?")){let t=new URLSearchParams(e.split("?")[1]||"").get("view");return[{label:"Home",href:"/"},{label:`Specs (${"board"===t?"Board View":"List View"})`}]}return e.startsWith("/specs/")?[{label:"Home",href:"/"},{label:"Specs",href:"/specs"},{label:e.split("/")[2]}]:"/board"===e?[{label:"Home",href:"/"},{label:"Board"}]:[{label:"Home",href:"/"}]}((0,i.usePathname)());return(0,t.jsx)("header",{className:"sticky top-0 z-50 w-full h-14 border-b border-border bg-background",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-full px-2 sm:px-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4 min-w-0 flex-1",children:[(0,t.jsxs)(f.Button,{variant:"ghost",size:"icon",onClick:()=>{window.toggleMainSidebar&&window.toggleMainSidebar()},className:"lg:hidden h-9 w-9 shrink-0",children:[(0,t.jsx)(l,{className:"h-5 w-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle menu"})]}),(0,t.jsxs)(r.default,{href:"/",className:"flex items-center space-x-2 shrink-0",children:[(0,t.jsx)(n.default,{src:"/logo-with-bg.svg",alt:"LeanSpec",width:32,height:32,className:"h-7 w-7 sm:h-8 sm:w-8 dark:hidden"}),(0,t.jsx)(n.default,{src:"/logo-dark-bg.svg",alt:"LeanSpec",width:32,height:32,className:"h-7 w-7 sm:h-8 sm:w-8 hidden dark:block"}),(0,t.jsx)("span",{className:"font-bold text-lg sm:text-xl hidden sm:inline",children:"LeanSpec"})]}),(0,t.jsx)("div",{className:"hidden md:block min-w-0",children:(0,t.jsx)(eo,{items:s})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 shrink-0",children:[(0,t.jsx)(ea,{specs:e}),(0,t.jsxs)(el.TooltipProvider,{children:[(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{children:(0,t.jsx)(p,{})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"Toggle theme"})})]}),(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",asChild:!0,className:"h-9 w-9 sm:h-10 sm:w-10",children:(0,t.jsx)("a",{href:"https://www.lean-spec.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",children:(0,t.jsx)(o,{className:"h-5 w-5"})})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"Documentation"})})]}),(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",asChild:!0,className:"h-9 w-9 sm:h-10 sm:w-10",children:(0,t.jsxs)("a",{href:"https://github.com/codervisor/lean-spec",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub repository",children:[(0,t.jsx)(n.default,{src:"/github-mark-white.svg",alt:"GitHub",width:20,height:20,className:"hidden dark:block"}),(0,t.jsx)(n.default,{src:"/github-mark.svg",alt:"GitHub",width:20,height:20,className:"dark:hidden"})]})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"GitHub repository"})})]})]})]})]})})}e.s(["Navigation",()=>eu],426160)},742634,e=>{"use strict";var t=e.i(890022),r=e.i(987985),n=e.i(230827),i=e.i(497332),s=e.i(20315),a=e.i(122436);let l=(0,a.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var o=e.i(158362),u=e.i(525761),c=e.i(644021),d=e.i(431231),h=e.i(686266);let f=(0,a.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);var p=e.i(963781),m=e.i(723882),g=e.i(828964),x=e.i(632137),v=e.i(235893),y=e.i(694541),b=e.i(291967),C=e.i(430406),w=e.i(79014),j=e.i(255235),E=e.i(254440),A=e.i(31007),k=e.i(315599),S=e.i(306839),_=e.i(214260),N=e.i(111052),D=e.i(122925),F=e.i(665489),M=e.i(393136),R=e.i(73772),P=e.i(97496),I="Popover",[B,O]=(0,w.createContextScope)(I,[S.createPopperScope]),$=(0,S.createPopperScope)(),[L,z]=B(I),T=e=>{let{__scopePopover:r,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,o=$(r),u=d.useRef(null),[c,h]=d.useState(!1),[f,p]=(0,M.useControllableState)({prop:i,defaultProp:s??!1,onChange:a,caller:I});return(0,t.jsx)(S.Root,{...o,children:(0,t.jsx)(L,{scope:r,contentId:(0,k.useId)(),triggerRef:u,open:f,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:d.useCallback(()=>h(!0),[]),onCustomAnchorRemove:d.useCallback(()=>h(!1),[]),modal:l,children:n})})};T.displayName=I;var H="PopoverAnchor";d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(H,n),a=$(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:o}=s;return d.useEffect(()=>(l(),()=>o()),[l,o]),(0,t.jsx)(S.Anchor,{...a,...i,ref:r})}).displayName=H;var G="PopoverTrigger",q=d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(G,n),a=$(n),l=(0,C.useComposedRefs)(r,s.triggerRef),o=(0,t.jsx)(D.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":er(s.open),...i,ref:l,onClick:(0,b.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?o:(0,t.jsx)(S.Anchor,{asChild:!0,...a,children:o})});q.displayName=G;var W="PopoverPortal",[V,K]=B(W,{forceMount:void 0}),U=e=>{let{__scopePopover:r,forceMount:n,children:i,container:s}=e,a=z(W,r);return(0,t.jsx)(V,{scope:r,forceMount:n,children:(0,t.jsx)(N.Presence,{present:n||a.open,children:(0,t.jsx)(_.Portal,{asChild:!0,container:s,children:i})})})};U.displayName=W;var J="PopoverContent",X=d.forwardRef((e,r)=>{let n=K(J,e.__scopePopover),{forceMount:i=n.forceMount,...s}=e,a=z(J,e.__scopePopover);return(0,t.jsx)(N.Presence,{present:i||a.open,children:a.modal?(0,t.jsx)(Y,{...s,ref:r}):(0,t.jsx)(Z,{...s,ref:r})})});X.displayName=J;var Q=(0,F.createSlot)("PopoverContent.RemoveScroll"),Y=d.forwardRef((e,r)=>{let n=z(J,e.__scopePopover),i=d.useRef(null),s=(0,C.useComposedRefs)(r,i),a=d.useRef(!1);return d.useEffect(()=>{let e=i.current;if(e)return(0,R.hideOthers)(e)},[]),(0,t.jsx)(P.RemoveScroll,{as:Q,allowPinchZoom:!0,children:(0,t.jsx)(ee,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,b.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,b.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,b.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Z=d.forwardRef((e,r)=>{let n=z(J,e.__scopePopover),i=d.useRef(!1),s=d.useRef(!1);return(0,t.jsx)(ee,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),ee=d.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...h}=e,f=z(J,n),p=$(n);return(0,E.useFocusGuards)(),(0,t.jsx)(A.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,t.jsx)(j.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:(0,t.jsx)(S.Content,{"data-state":er(f.open),role:"dialog",id:f.contentId,...p,...h,ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),et="PopoverClose";function er(e){return e?"open":"closed"}d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(et,n);return(0,t.jsx)(D.Primitive.button,{type:"button",...i,ref:r,onClick:(0,b.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))})}).displayName=et,d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=$(n);return(0,t.jsx)(S.Arrow,{...s,...i,ref:r})}).displayName="PopoverArrow";let en=d.forwardRef(({className:e,align:r="center",sideOffset:n=4,...i},s)=>(0,t.jsx)(U,{children:(0,t.jsx)(X,{ref:s,align:r,sideOffset:n,className:(0,x.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...i})}));en.displayName=X.displayName;var ei=e.i(20648),es=e.i(361877);function ea({collapsed:e}){let{mode:r,currentProject:n,projects:i,switchProject:s}=(0,ei.useProject)(),[a,l]=(0,d.useState)(!1),[o,u]=(0,d.useState)(!1);if("multi-project"!==r)return null;let c=async e=>{await s(e),l(!1)},b=[...i].sort((e,t)=>e.favorite===t.favorite?0:e.favorite?-1:1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(es.CreateProjectDialog,{open:o,onOpenChange:u}),(0,t.jsxs)(T,{open:a,onOpenChange:l,children:[(0,t.jsx)(q,{asChild:!0,children:(0,t.jsx)(v.Button,{variant:"outline",role:"combobox","aria-expanded":a,className:(0,x.cn)("w-full justify-between",e?"h-9 w-9 p-0 justify-center":"px-3"),children:e?(0,t.jsx)(m.FolderOpen,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 truncate",children:[(0,t.jsx)(m.FolderOpen,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:"truncate",children:n?.name||"Select project..."})]}),(0,t.jsx)(f,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})})}),(0,t.jsx)(en,{className:"w-[200px] p-0",align:"start",children:(0,t.jsxs)(y.Command,{children:[(0,t.jsx)(y.CommandInput,{placeholder:"Search projects..."}),(0,t.jsxs)(y.CommandList,{children:[(0,t.jsx)(y.CommandEmpty,{children:"No project found."}),(0,t.jsx)(y.CommandGroup,{heading:"Projects",children:b.map(e=>(0,t.jsx)(y.CommandItem,{onSelect:()=>c(e.id),className:"text-sm",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(h.Check,{className:(0,x.cn)("mr-2 h-4 w-4",n?.id===e.id?"opacity-100":"opacity-0")}),(0,t.jsx)("span",{className:"truncate flex-1",children:e.name}),e.favorite&&(0,t.jsx)(g.Star,{className:"h-3 w-3 fill-yellow-500 text-yellow-500"})]})},e.id))}),(0,t.jsx)(y.CommandSeparator,{}),(0,t.jsx)(y.CommandGroup,{children:(0,t.jsxs)(y.CommandItem,{className:"cursor-pointer",onSelect:()=>{l(!1),u(!0)},children:[(0,t.jsx)(p.Plus,{className:"mr-2 h-4 w-4"}),"Create Project"]})})]})]})})]})]})}function el({href:e,icon:n,children:i,description:s,currentPath:a,isCollapsed:l}){let o=a===e||"/"!==e&&a.startsWith(e);return(0,t.jsxs)(r.default,{href:e,className:(0,x.cn)("flex items-center gap-3 rounded-lg px-3 py-2 transition-colors","hover:bg-accent hover:text-accent-foreground",o&&"bg-accent text-accent-foreground font-medium",l&&"justify-center px-2"),children:[(0,t.jsx)(n,{className:(0,x.cn)("h-5 w-5 shrink-0",o&&"text-primary")}),!l&&(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-sm",children:i}),s&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:s})]})]})}function eo(){let e=(0,n.usePathname)(),[r,a]=d.useState(()=>"true"===localStorage.getItem("main-sidebar-collapsed")),[h,f]=d.useState(!1),[p,m]=d.useState(!1);return d.useEffect(()=>{m(!0)},[]),d.useEffect(()=>{document.documentElement.style.setProperty("--main-sidebar-width",r?"60px":"240px"),localStorage.setItem("main-sidebar-collapsed",String(r))},[r]),d.useEffect(()=>{f(!1)},[e]),d.useEffect(()=>(window.toggleMainSidebar=()=>f(e=>!e),()=>{window.toggleMainSidebar=void 0}),[]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>f(!1)}),(0,t.jsx)("aside",{className:(0,x.cn)("border-r border-border bg-background transition-all duration-300 flex-shrink-0","hidden lg:flex lg:sticky lg:top-14 lg:h-[calc(100vh-3.5rem)]",p&&r?"lg:w-[60px]":"lg:w-[240px]",h&&"fixed inset-y-0 left-0 z-[60] flex w-[280px]"),children:(0,t.jsxs)("div",{className:"flex flex-col h-full w-full",children:[(0,t.jsx)("div",{className:"lg:hidden flex justify-end p-2 border-b border-border",children:(0,t.jsxs)(v.Button,{variant:"ghost",size:"sm",onClick:()=>f(!1),className:"h-8 w-8 p-0",children:[(0,t.jsx)(c.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close menu"})]})}),p&&(0,t.jsxs)("nav",{className:"flex-1 px-2 py-4 space-y-1",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(ea,{collapsed:r&&!h})}),(0,t.jsx)(el,{href:"/",icon:i.Home,currentPath:e,description:!r||h?"Dashboard":void 0,isCollapsed:r&&!h,children:"Home"}),(0,t.jsx)(el,{href:"/specs",icon:s.FileText,currentPath:e,description:!r||h?"All Specifications":void 0,isCollapsed:r&&!h,children:"Specs"}),(0,t.jsx)(el,{href:"/stats",icon:l,currentPath:e,description:!r||h?"Analytics":void 0,isCollapsed:r&&!h,children:"Stats"})]}),(0,t.jsx)("div",{className:"hidden lg:block p-2 border-t border-border",children:(0,t.jsx)(v.Button,{variant:"ghost",size:"sm",onClick:()=>a(!r),className:(0,x.cn)("w-full",p&&r&&"px-2"),children:p&&r?(0,t.jsx)(u.ChevronRight,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ChevronLeft,{className:"h-4 w-4 mr-2"}),(0,t.jsx)("span",{className:"text-xs",children:"Collapse"})]})})})]})})]})}e.s(["MainSidebar",()=>eo],742634)},305215,e=>{"use strict";var t=e.i(890022),r=e.i(81795);function n({children:e,...n}){return(0,t.jsx)(r.ThemeProvider,{...n,children:e})}e.s(["ThemeProvider",()=>n])},474916,e=>{"use strict";var t=e.i(178420),r=e.i(995403);e.s(["Toast",()=>t.Toast,"toast",()=>r.toast])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6454,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:i,objectFit:s}){let a=r?40*r:e,l=n?40*n:t,o=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${o}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${o?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},594547,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},550696,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return o}}),e.r(56863);let n=e.r(6454),i=e.r(594547),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function o({src:e,sizes:t,unoptimized:r=!1,priority:o=!1,preload:u=!1,loading:c,className:d,quality:h,width:f,height:p,fill:m=!1,style:g,overrideSrc:v,onLoad:x,onLoadingComplete:b,placeholder:y="empty",blurDataURL:w,fetchPriority:C,decoding:j="async",layout:E,objectFit:A,objectPosition:k,lazyBoundary:S,lazyRoot:_,...N},P){var R;let F,D,M,{imgConf:I,showAltText:B,blurComplete:O,defaultLoader:$}=P,L=I||i.imageConfigDefault;if("allSizes"in L)F=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t),r=L.qualities?.sort((e,t)=>e-t);F={...L,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=N.loader||$;delete N.loader,delete N.srcSet;let T="__next_img_default"in z;if(T){if("custom"===F.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...n}=t;return e(n)}}if(E){"fill"===E&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(g={...g,...e});let r={responsive:"100vw",fill:"100vw"}[E];r&&!t&&(t=r)}let q="",H=l(f),V=l(p);if((R=e)&&"object"==typeof R&&(a(R)||void 0!==R.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,M=t.blurHeight,w=w||t.blurDataURL,q=t.src,!m)if(H||V){if(H&&!V){let e=H/t.width;V=Math.round(t.height*e)}else if(!H&&V){let e=V/t.height;H=Math.round(t.width*e)}}else H=t.width,V=t.height}let W=!o&&!u&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:q)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),F.unoptimized&&(r=!0),T&&!F.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(h),K=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:k}:{},B?{}:{color:"transparent"},g),U=O||"empty"===y?null:"blur"===y?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:D,blurHeight:M,blurDataURL:w||"",objectFit:K.objectFit})}")`:`url("${y}")`,J=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,X=U?{backgroundSize:J,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:U}:{},Q=function({config:e,src:t,unoptimized:r,width:n,quality:i,sizes:s,loader:a}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:l,kind:o}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,s),u=l.length-1;return{sizes:s||"w"!==o?s:"100vw",srcSet:l.map((r,n)=>`${a({config:e,src:t,quality:i,width:r})} ${"w"===o?r:n+1}${o}`).join(", "),src:a({config:e,src:t,quality:i,width:l[u]})}}({config:F,src:e,unoptimized:r,width:H,quality:G,sizes:t,loader:z}),Y=W?"lazy":c;return{props:{...N,loading:Y,fetchPriority:C,width:H,height:V,decoding:j,className:d,style:{...K,...X},sizes:Q.sizes,srcSet:Q.srcSet,src:v||Q.src},meta:{unoptimized:r,preload:u||o,placeholder:y,fill:m}}}},29549,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(431231),i="undefined"==typeof window,s=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},582032,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(481258),a=e.r(744066),l=e.r(890022),o=a._(e.r(431231)),u=s._(e.r(29549)),c=e.r(392600);function d(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(56863);let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,i;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=f.length;t<r;t++){let r=f[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?s=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!a)&&n.has(t)?s=!1:(n.add(t),i[r]=n)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,o.useContext)(c.HeadManagerContext);return(0,l.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},111258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(481258)._(e.r(431231)),i=e.r(594547),s=n.default.createContext(i.imageConfigDefault)},394453,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(481258)._(e.r(431231)).default.createContext(null)},781035,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},765774,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(781035);function i({config:e,src:t,width:r,quality:i}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3
+ Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let s=(0,n.findClosestQuality)(i,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${s}${t.startsWith("/_next/static/media/"),""}`}i.__next_img_default=!0;let s=i},881988,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let n=e.r(481258),i=e.r(744066),s=e.r(890022),a=i._(e.r(431231)),l=n._(e.r(395635)),o=n._(e.r(582032)),u=e.r(550696),c=e.r(594547),d=e.r(111258);e.r(56863);let h=e.r(394453),f=n._(e.r(765774)),p=e.r(266500),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,s,a){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:l,className:o,style:u,fetchPriority:c,placeholder:d,loading:h,unoptimized:f,fill:m,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:y,setShowAltText:w,sizesInput:C,onLoad:j,onError:E,...A},k)=>{let S=(0,a.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&g(e,d,x,b,y,f,C))},[e,d,x,b,y,E,f,C]),_=(0,p.useMergedRef)(k,S);return(0,s.jsx)("img",{...A,...v(c),loading:h,width:i,height:n,decoding:l,"data-nimg":m?"fill":"1",className:o,style:u,sizes:r,srcSet:t,src:e,ref:_,onLoad:e=>{g(e.currentTarget,d,x,b,y,f,C)},onError:e=>{w(!0),"empty"!==d&&y(!0),E&&E(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,r),null):(0,s.jsx)(o.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(h.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"undefined"==typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:l,onLoadingComplete:o}=e,p=(0,a.useRef)(l);(0,a.useEffect)(()=>{p.current=l},[l]);let g=(0,a.useRef)(o);(0,a.useEffect)(()=>{g.current=o},[o]);let[v,y]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1),{props:j,meta:E}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:v,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:C,sizesInput:e.sizes,ref:t}),E.preload?(0,s.jsx)(b,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},322867,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(481258),a=e.r(550696),l=e.r(881988),o=s._(e.r(765774));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=l.Image},805970,(e,t,r)=>{t.exports=e.r(322867)},694541,e=>{"use strict";var t=e.i(890022),r=e.i(431231),n=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,s=/[\s-]/,a=/[\s-]/g;function l(e){return e.toLowerCase().replace(a," ")}var o=e.i(739065);e.i(395635);var u=e.i(614433),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,u.createSlot)(`Primitive.${n}`),s=r.forwardRef((e,r)=>{let{asChild:s,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(s?i:n,{...a,ref:r})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{}),d=e.i(315599),h=e.i(430406),f='[cmdk-group=""]',p='[cmdk-group-items=""]',m='[cmdk-item=""]',g=`${m}:not([aria-disabled="true"])`,v="cmdk-item-select",x="data-value",b=(e,t,r)=>{var o;return o=e,function e(t,r,l,o,u,c,d){if(c===r.length)return u===t.length?1:.99;var h=`${u},${c}`;if(void 0!==d[h])return d[h];for(var f,p,m,g,v=o.charAt(c),x=l.indexOf(v,u),b=0;x>=0;)(f=e(t,r,l,o,x+1,c+1,d))>b&&(x===u?f*=1:n.test(t.charAt(x-1))?(f*=.8,(m=t.slice(u,x-1).match(i))&&u>0&&(f*=Math.pow(.999,m.length))):s.test(t.charAt(x-1))?(f*=.9,(g=t.slice(u,x-1).match(a))&&u>0&&(f*=Math.pow(.999,g.length))):(f*=.17,u>0&&(f*=Math.pow(.999,x-u))),t.charAt(x)!==r.charAt(c)&&(f*=.9999)),(f<.1&&l.charAt(x-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&l.charAt(x-1)!==o.charAt(c))&&.1*(p=e(t,r,l,o,x+1,c+2,d))>f&&(f=.1*p),f>b&&(b=f),x=l.indexOf(v,x+1);return d[h]=b,b}(o=r&&r.length>0?`${o+" "+r.join(" ")}`:o,t,l(o),l(t),0,0,{})},y=r.createContext(void 0),w=r.createContext(void 0),C=r.createContext(void 0),j=r.forwardRef((e,t)=>{let n=D(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=D(()=>new Set),s=D(()=>new Map),a=D(()=>new Map),l=D(()=>new Set),o=R(e),{label:u,children:h,value:C,onValueChange:j,filter:E,shouldFilter:A,loop:k,disablePointerSelection:S=!1,vimBindings:_=!0,...N}=e,P=(0,d.useId)(),M=(0,d.useId)(),I=(0,d.useId)(),L=r.useRef(null),z=B();F(()=>{if(void 0!==C){let e=C.trim();n.current.value=e,T.emit()}},[C]),F(()=>{z(6,K)},[]);let T=r.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,s,a,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)G(),V(),z(1,W);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(I);e?e.focus():null==(i=document.getElementById(P))||i.focus()}if(z(7,()=>{var e;n.current.selectedItemId=null==(e=U())?void 0:e.id,T.emit()}),r||z(5,K),(null==(s=o.current)?void 0:s.value)!==void 0){null==(l=(a=o.current).onValueChange)||l.call(a,null!=t?t:"");return}}T.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),q=r.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,H(t,r)),z(2,()=>{V(),T.emit()}))},item:(e,t)=>(i.current.add(e),t&&(s.current.has(t)?s.current.get(t).add(e):s.current.set(t,new Set([e]))),z(3,()=>{G(),V(),n.current.value||W(),T.emit()}),()=>{a.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=U();z(4,()=>{G(),(null==t?void 0:t.getAttribute("id"))===e&&W(),T.emit()})}),group:e=>(s.current.has(e)||s.current.set(e,new Set),()=>{a.current.delete(e),s.current.delete(e)}),filter:()=>o.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:P,inputId:I,labelId:M,listInnerRef:L}),[]);function H(e,t){var r,i;let s=null!=(i=null==(r=o.current)?void 0:r.filter)?i:b;return e?s(e,n.current.search,t):0}function V(){if(!n.current.search||!1===o.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=s.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let r=L.current;J().sort((t,r)=>{var n,i;let s=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(i=e.get(s))?i:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest(`${p} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${p} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=L.current)?void 0:t.querySelector(`${f}[${x}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function W(){let e=J().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(x);T.setState("value",t||void 0)}function G(){var e,t,r,l;if(!n.current.search||!1===o.current.shouldFilter){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let u=0;for(let s of i.current){let i=H(null!=(t=null==(e=a.current.get(s))?void 0:e.value)?t:"",null!=(l=null==(r=a.current.get(s))?void 0:r.keywords)?l:[]);n.current.filtered.items.set(s,i),i>0&&u++}for(let[e,t]of s.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function K(){var e,t,r;let n=U();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(f))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function U(){var e;return null==(e=L.current)?void 0:e.querySelector(`${m}[aria-selected="true"]`)}function J(){var e;return Array.from((null==(e=L.current)?void 0:e.querySelectorAll(g))||[])}function X(e){let t=J()[e];t&&T.setState("value",t.getAttribute(x))}function Q(e){var t;let r=U(),n=J(),i=n.findIndex(e=>e===r),s=n[i+e];null!=(t=o.current)&&t.loop&&(s=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),s&&T.setState("value",s.getAttribute(x))}function Y(e){let t=U(),r=null==t?void 0:t.closest(f),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,f):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,f))?void 0:r.querySelector(g);n?T.setState("value",n.getAttribute(x)):Q(e)}let Z=()=>X(J().length-1),ee=e=>{e.preventDefault(),e.metaKey?Z():e.altKey?Y(1):Q(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?Y(-1):Q(-1)};return r.createElement(c.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=N.onKeyDown)||t.call(N,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":_&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":_&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Z();break;case"Enter":{e.preventDefault();let t=U();if(t){let e=new Event(v);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:q.inputId,id:q.labelId,style:$},u),O(e,e=>r.createElement(w.Provider,{value:T},r.createElement(y.Provider,{value:q},e))))}),E=r.forwardRef((e,t)=>{var n,i;let s=(0,d.useId)(),a=r.useRef(null),l=r.useContext(C),o=r.useContext(y),u=R(e),f=null!=(i=null==(n=u.current)?void 0:n.forceMount)?i:null==l?void 0:l.forceMount;F(()=>{if(!f)return o.item(s,null==l?void 0:l.id)},[f]);let p=I(s,a,[e.value,e.children,a],e.keywords),m=r.useContext(w),g=M(e=>e.value&&e.value===p.current),x=M(e=>!!f||!1===o.filter()||!e.search||e.filtered.items.get(s)>0);function b(){var e,t;j(),null==(t=(e=u.current).onSelect)||t.call(e,p.current)}function j(){m.setState("value",p.current,!0)}if(r.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(v,b),()=>t.removeEventListener(v,b)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:E,value:A,onSelect:k,forceMount:S,keywords:_,...N}=e;return r.createElement(c.div,{ref:(0,h.composeRefs)(a,t),...N,id:s,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!g,"data-disabled":!!E,"data-selected":!!g,onPointerMove:E||o.getDisablePointerSelection()?void 0:j,onClick:E?void 0:b},e.children)}),A=r.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...a}=e,l=(0,d.useId)(),o=r.useRef(null),u=r.useRef(null),f=(0,d.useId)(),p=r.useContext(y),m=M(e=>!!s||!1===p.filter()||!e.search||e.filtered.groups.has(l));F(()=>p.group(l),[]),I(l,o,[e.value,e.heading,u]);let g=r.useMemo(()=>({id:l,forceMount:s}),[s]);return r.createElement(c.div,{ref:(0,h.composeRefs)(o,t),...a,"cmdk-group":"",role:"presentation",hidden:!m||void 0},n&&r.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),O(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},r.createElement(C.Provider,{value:g},e))))}),k=r.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,s=r.useRef(null),a=M(e=>!e.search);return n||a?r.createElement(c.div,{ref:(0,h.composeRefs)(s,t),...i,"cmdk-separator":"",role:"separator"}):null}),S=r.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,s=null!=e.value,a=r.useContext(w),l=M(e=>e.search),o=M(e=>e.selectedItemId),u=r.useContext(y);return r.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),r.createElement(c.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":o,id:u.inputId,type:"text",value:s?e.value:l,onChange:e=>{s||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),_=r.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...s}=e,a=r.useRef(null),l=r.useRef(null),o=M(e=>e.selectedItemId),u=r.useContext(y);return r.useEffect(()=>{if(l.current&&a.current){let e=l.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),r.createElement(c.div,{ref:(0,h.composeRefs)(a,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":i,id:u.listId},O(e,e=>r.createElement("div",{ref:(0,h.composeRefs)(l,u.listInnerRef),"cmdk-list-sizer":""},e)))}),N=r.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:s,contentClassName:a,container:l,...u}=e;return r.createElement(o.Root,{open:n,onOpenChange:i},r.createElement(o.Portal,{container:l},r.createElement(o.Overlay,{"cmdk-overlay":"",className:s}),r.createElement(o.Content,{"aria-label":e.label,"cmdk-dialog":"",className:a},r.createElement(j,{ref:t,...u}))))}),P=Object.assign(j,{List:_,Item:E,Input:S,Group:A,Separator:k,Dialog:N,Empty:r.forwardRef((e,t)=>M(e=>0===e.filtered.count)?r.createElement(c.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:n,children:i,label:s="Loading...",...a}=e;return r.createElement(c.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},O(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function R(e){let t=r.useRef(e);return F(()=>{t.current=e}),t}var F="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function D(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){let t=r.useContext(w),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function I(e,t,n,i=[]){let s=r.useRef(),a=r.useContext(y);return F(()=>{var r;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():s.current}})(),o=i.map(e=>e.trim());a.value(e,l,o),null==(r=t.current)||r.setAttribute(x,l),s.current=l}),s}var B=()=>{let[e,t]=r.useState(),n=D(()=>new Map);return F(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function O({asChild:e,children:t},n){let i;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(i=t.type)?i(t.props):"render"in i?i.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var $={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},L=e.i(300329),z=e.i(632137),T=e.i(439779);let q=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(P,{ref:n,className:(0,z.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...r}));q.displayName=P.displayName;let H=({children:e,...r})=>(0,t.jsx)(T.Dialog,{...r,children:(0,t.jsx)(T.DialogContent,{className:"overflow-hidden p-0 shadow-lg",children:(0,t.jsx)(q,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),V=r.forwardRef(({className:e,...r},n)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(L.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(P.Input,{ref:n,className:(0,z.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...r})]}));V.displayName=P.Input.displayName;let W=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(P.List,{ref:n,className:(0,z.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));W.displayName=P.List.displayName;let G=r.forwardRef((e,r)=>(0,t.jsx)(P.Empty,{ref:r,className:"py-6 text-center text-sm",...e}));G.displayName=P.Empty.displayName;let K=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(P.Group,{ref:n,className:(0,z.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...r}));K.displayName=P.Group.displayName;let U=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(P.Separator,{ref:n,className:(0,z.cn)("-mx-1 h-px bg-border",e),...r}));U.displayName=P.Separator.displayName;let J=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(P.Item,{ref:n,className:(0,z.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...r}));J.displayName=P.Item.displayName,e.s(["Command",()=>q,"CommandDialog",()=>H,"CommandEmpty",()=>G,"CommandGroup",()=>K,"CommandInput",()=>V,"CommandItem",()=>J,"CommandList",()=>W,"CommandSeparator",()=>U],694541)},426160,e=>{"use strict";var t=e.i(890022),r=e.i(987985),n=e.i(805970),i=e.i(230827),s=e.i(525761),a=e.i(122436);let l=(0,a.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),o=(0,a.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var u=e.i(431231);let c=(0,a.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),d=(0,a.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var h=e.i(81795),f=e.i(235893);function p(){let{theme:e,setTheme:r}=(0,h.useTheme)(),[n,i]=u.useState(!1);return(u.useEffect(()=>{i(!0)},[]),n)?(0,t.jsxs)(f.Button,{variant:"ghost",size:"icon",onClick:()=>r("light"===e?"dark":"light"),"aria-label":"Toggle theme",children:[(0,t.jsx)(d,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,t.jsx)(c,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]}):(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",disabled:!0,"aria-label":"Toggle theme",children:(0,t.jsx)(d,{className:"h-5 w-5"})})}var m=e.i(20315),g=e.i(300329),v=e.i(40843);let x=(0,a.default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);function b(e){return Array.isArray?Array.isArray(e):"[object Array]"===k(e)}let y=1/0;function w(e){return"string"==typeof e}function C(e){return"number"==typeof e}function j(e){return"object"==typeof e}function E(e){return null!=e}function A(e){return!e.trim().length}function k(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let S=Object.prototype.hasOwnProperty;class _{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=N(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function N(e){let t=null,r=null,n=null,i=1,s=null;if(w(e)||b(e))n=e,t=P(e),r=R(e);else{if(!S.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(n=a,S.call(e,"weight")&&(i=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=P(a),r=R(a),s=e.getFn}return{path:t,id:r,weight:i,src:n,getFn:s}}function P(e){return b(e)?e:e.split(".")}function R(e){return b(e)?e.join("."):e}var F={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],n=!1,i=(e,t,s)=>{if(E(e))if(t[s]){var a,l;let o=e[t[s]];if(!E(o))return;if(s===t.length-1&&(w(o)||C(o)||!0===(a=o)||!1===a||j(l=a)&&null!==l&&"[object Boolean]"==k(a)))r.push(null==o?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-y?"-0":t}(o));else if(b(o)){n=!0;for(let e=0,r=o.length;e<r;e+=1)i(o[e],t,s+1)}else t.length&&i(o,t,s+1)}else r.push(e)};return i(e,w(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let D=/[^ ]+/g;class M{constructor({getFn:e=F.getFn,fieldNormWeight:t=F.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(D).length;if(r.has(i))return r.get(i);let s=parseFloat(Math.round(1/Math.pow(i,.5*e)*n)/n);return r.set(i,s),s},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,w(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();w(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!E(e)||A(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,n)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(E(i)){if(b(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:r,value:n}=t.pop();if(E(n))if(w(n)&&!A(n)){let t={v:n,i:r,n:this.norm.get(n)};e.push(t)}else b(n)&&n.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[n]=e}else if(w(i)&&!A(i)){let e={v:i,n:this.norm.get(i)};r.$[n]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function I(e,t,{getFn:r=F.getFn,fieldNormWeight:n=F.fieldNormWeight}={}){let i=new M({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(N)),i.setSources(t),i.create(),i}function B(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=F.distance,ignoreLocation:s=F.ignoreLocation}={}){let a=t/e.length;if(s)return a;let l=Math.abs(n-r);return i?a+l/i:l?1:a}let O=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class ${constructor(e,{location:t=F.location,threshold:r=F.threshold,distance:n=F.distance,includeMatches:i=F.includeMatches,findAllMatches:s=F.findAllMatches,minMatchCharLength:a=F.minMatchCharLength,isCaseSensitive:l=F.isCaseSensitive,ignoreDiacritics:o=F.ignoreDiacritics,ignoreLocation:u=F.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:o,ignoreLocation:u},e=l?e:e.toLowerCase(),e=o?O(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,r=d-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?O(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:o,ignoreLocation:u}=this.options,c=[],d=0,h=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:f})=>{let{isMatch:p,score:m,indices:g}=function(e,t,r,{location:n=F.location,distance:i=F.distance,threshold:s=F.threshold,findAllMatches:a=F.findAllMatches,minMatchCharLength:l=F.minMatchCharLength,includeMatches:o=F.includeMatches,ignoreLocation:u=F.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let d=t.length,h=e.length,f=Math.max(0,Math.min(n,h)),p=s,m=f,g=l>1||o,v=g?Array(h):[];for(;(c=e.indexOf(t,m))>-1;)if(p=Math.min(B(t,{currentLocation:c,expectedLocation:f,distance:i,ignoreLocation:u}),p),m=c+d,g){let e=0;for(;e<d;)v[c+e]=1,e+=1}m=-1;let x=[],b=1,y=d+h,w=1<<d-1;for(let n=0;n<d;n+=1){let s=0,l=y;for(;s<l;)B(t,{errors:n,currentLocation:f+l,expectedLocation:f,distance:i,ignoreLocation:u})<=p?s=l:y=l,l=Math.floor((y-s)/2+s);y=l;let o=Math.max(1,f-l+1),c=a?h:Math.min(f+l,h)+d,C=Array(c+2);C[c+1]=(1<<n)-1;for(let s=c;s>=o;s-=1){let a=s-1,l=r[e.charAt(a)];if(g&&(v[a]=+!!l),C[s]=(C[s+1]<<1|1)&l,n&&(C[s]|=(x[s+1]|x[s])<<1|1|x[s+1]),C[s]&w&&(b=B(t,{errors:n,currentLocation:a,expectedLocation:f,distance:i,ignoreLocation:u}))<=p){if(p=b,(m=a)<=f)break;o=Math.max(1,2*f-m)}}if(B(t,{errors:n+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:u})>p)break;x=C}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=function(e=[],t=F.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let a=e.length;s<a;s+=1){let a=e[s];a&&-1===n?n=s:a||-1===n||((i=s-1)-n+1>=t&&r.push([n,i]),n=-1)}return e[s-1]&&s-n>=t&&r.push([n,s-1]),r}(v,l);e.length?o&&(C.indices=e):C.isMatch=!1}return C}(e,t,r,{location:i+f,distance:s,threshold:a,findAllMatches:l,minMatchCharLength:o,includeMatches:n,ignoreLocation:u});p&&(h=!0),d+=m,p&&g&&(c=[...c,...g])});let f={isMatch:h,score:h?d/this.chunks.length:1};return h&&n&&(f.indices=c),f}}class L{constructor(e){this.pattern=e}static isMultiMatch(e){return z(e,this.multiRegex)}static isSingleMatch(e){return z(e,this.singleRegex)}search(){}}function z(e,t){let r=e.match(t);return r?r[1]:null}class T extends L{constructor(e,{location:t=F.location,threshold:r=F.threshold,distance:n=F.distance,includeMatches:i=F.includeMatches,findAllMatches:s=F.findAllMatches,minMatchCharLength:a=F.minMatchCharLength,isCaseSensitive:l=F.isCaseSensitive,ignoreDiacritics:o=F.ignoreDiacritics,ignoreLocation:u=F.ignoreLocation}={}){super(e),this._bitapSearch=new $(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:o,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class q extends L{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let s=!!n.length;return{isMatch:s,score:+!s,indices:n}}}let H=[class extends L{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},q,class extends L{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends L{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},T],V=H.length,W=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,G=new Set([T.type,q.type]),K=[];function U(e,t){for(let r=0,n=K.length;r<n;r+=1){let n=K[r];if(n.condition(e,t))return new n(e,t)}return new $(e,t)}let J="$and",X="$path",Q=e=>!!(e[J]||e.$or),Y=e=>({[J]:Object.keys(e).map(t=>({[t]:e[t]}))});function Z(e,t,{auto:r=!0}={}){let n=e=>{let i=Object.keys(e),s=!!e[X];if(!s&&i.length>1&&!Q(e))return n(Y(e));if(!b(e)&&j(e)&&!Q(e)){let n=s?e[X]:i[0],a=s?e.$val:e[n];if(!w(a))throw Error(`Invalid value for key ${n}`);let l={keyId:R(n),pattern:a};return r&&(l.searcher=U(a,t)),l}let a={children:[],operator:i[0]};return i.forEach(t=>{let r=e[t];b(r)&&r.forEach(e=>{a.children.push(n(e))})}),a};return Q(e)||(e=Y(e)),n(e)}function ee(e,t){let r=e.matches;t.matches=[],E(r)&&r.forEach(e=>{if(!E(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function et(e,t){t.score=e.score}class er{constructor(e,t={},r){this.options={...F,...t},this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof M))throw Error("Incorrect 'index' type");this._myIndex=t||I(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){E(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:i,sortFn:s,ignoreFieldNorm:a}=this.options,l=w(e)?w(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=F.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let s=e?e.weight:null;r*=Math.pow(0===i&&s?Number.EPSILON:i,(s||1)*(t?1:n))}),e.score=r})}(l,{ignoreFieldNorm:a}),i&&l.sort(s),C(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:r=F.includeMatches,includeScore:n=F.includeScore}={}){let i=[];return r&&i.push(ee),n&&i.push(et),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(l,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=U(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!E(e))return;let{isMatch:s,score:a,indices:l}=t.searchIn(e);s&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:i,indices:l}]})}),n}_searchLogical(e){let t=Z(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,s=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}let i=[];for(let s=0,a=e.children.length;s<a;s+=1){let a=r(e.children[s],t,n);if(a.length)i.push(...a);else if(e.operator===J)return[]}return i},n=this._myIndex.records,i={},s=[];return n.forEach(({$:e,i:n})=>{if(E(e)){let a=r(t,e,n);a.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},s.push(i[n])),a.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),s}_searchObjectList(e){let t=U(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!E(e))return;let s=[];r.forEach((r,n)=>{s.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),s.length&&i.push({idx:n,item:e,matches:s})}),i}_findMatches({key:e,value:t,searcher:r}){if(!E(t))return[];let n=[];if(b(t))t.forEach(({v:t,i:i,n:s})=>{if(!E(t))return;let{isMatch:a,score:l,indices:o}=r.searchIn(t);a&&n.push({score:l,key:e,value:t,idx:i,norm:s,indices:o})});else{let{v:i,n:s}=t,{isMatch:a,score:l,indices:o}=r.searchIn(i);a&&n.push({score:l,key:e,value:i,norm:s,indices:o})}return n}}er.version="7.1.0",er.createIndex=I,er.parseIndex=function(e,{getFn:t=F.getFn,fieldNormWeight:r=F.fieldNormWeight}={}){let{keys:n,records:i}=e,s=new M({getFn:t,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s},er.config=F,er.parseQuery=Z,function(...e){K.push(...e)}(class{constructor(e,{isCaseSensitive:t=F.isCaseSensitive,ignoreDiacritics:r=F.ignoreDiacritics,includeMatches:n=F.includeMatches,minMatchCharLength:i=F.minMatchCharLength,ignoreLocation:s=F.ignoreLocation,findAllMatches:a=F.findAllMatches,location:l=F.location,threshold:o=F.threshold,distance:u=F.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:s,location:l,threshold:o,distance:u},e=t?e:e.toLowerCase(),e=r?O(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(W).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],s=!1,a=-1;for(;!s&&++a<V;){let e=H[a],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),s=!0)}if(!s)for(a=-1;++a<V;){let e=H[a],r=e.isSingleMatch(i);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?O(e):e;let s=0,a=[],l=0;for(let n=0,i=t.length;n<i;n+=1){let i=t[n];a.length=0,s=0;for(let t=0,n=i.length;t<n;t+=1){let n=i[t],{isMatch:o,indices:u,score:c}=n.search(e);if(o){if(s+=1,l+=c,r){let e=n.constructor.type;G.has(e)?a=[...a,...u]:a.push(u)}}else{l=0,s=0,a.length=0;break}}if(s){let e={isMatch:!0,score:l/s};return r&&(e.indices=a),e}}return{isMatch:!1,score:1}}});var en=e.i(694541),ei=e.i(168497),es=e.i(597705);function ea({specs:e}){let r=(0,i.useRouter)(),[n,s]=u.useState(!1),[a,l]=u.useState(""),[o,c]=u.useState([]);u.useEffect(()=>{let e=localStorage.getItem("leanspec-recent-searches");e&&c(JSON.parse(e))},[]),u.useEffect(()=>{let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),s(e=>!e))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let d=u.useMemo(()=>new er(e,{keys:[{name:"title",weight:2},{name:"specNumber",weight:1.5},{name:"tags",weight:.5}],threshold:.4,includeScore:!0,minMatchCharLength:2}),[e]),h=u.useMemo(()=>a?d.search(a).map(e=>e.item):e.slice(0,8),[a,d,e]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>s(!0),className:"inline-flex items-center gap-2 px-2 sm:px-3 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors border rounded-md hover:border-foreground/20",children:[(0,t.jsx)(g.Search,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Quick search..."}),(0,t.jsxs)("kbd",{className:"hidden md:inline-flex pointer-events-none h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100",children:[(0,t.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]}),(0,t.jsxs)(en.CommandDialog,{open:n,onOpenChange:s,children:[(0,t.jsx)(en.CommandInput,{placeholder:"Search specs by title, number, or tags...",value:a,onValueChange:l}),(0,t.jsxs)(en.CommandList,{children:[(0,t.jsx)(en.CommandEmpty,{children:"No specs found."}),!a&&o.length>0&&(0,t.jsx)(en.CommandGroup,{heading:"Recent Searches",children:o.map(e=>(0,t.jsxs)(en.CommandItem,{value:e,onSelect:()=>{l(e)},children:[(0,t.jsx)(v.Clock,{className:"mr-2 h-4 w-4"}),e]},e))}),(0,t.jsx)(en.CommandGroup,{heading:"Specs",children:h.map(e=>(0,t.jsxs)(en.CommandItem,{value:`${e.specNumber} ${e.title}`,onSelect:()=>{var t,n;let i;return t=e.id,void(c(i=[n=e.title,...o.filter(e=>e!==n)].slice(0,5)),localStorage.setItem("leanspec-recent-searches",JSON.stringify(i)),r.push(`/specs/${t}`),s(!1),l(""))},children:[(0,t.jsx)(m.FileText,{className:"mr-2 h-4 w-4"}),(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"font-medium",children:["#",e.specNumber]}),(0,t.jsx)("span",{className:"truncate",children:e.title})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsx)(ei.StatusBadge,{status:e.status}),(0,t.jsx)(es.PriorityBadge,{priority:e.priority})]})]})]},e.id))}),a&&(0,t.jsx)(en.CommandGroup,{heading:"Filter by Tag",children:Array.from(new Set(e.flatMap(e=>e.tags))).filter(e=>e.toLowerCase().includes(a.toLowerCase())).slice(0,5).map(e=>(0,t.jsxs)(en.CommandItem,{value:e,onSelect:()=>{r.push(`/?tag=${encodeURIComponent(e)}`),s(!1)},children:[(0,t.jsx)(x,{className:"mr-2 h-4 w-4"}),"Filter by: ",(0,t.jsx)("span",{className:"ml-1 font-medium",children:e})]},e))})]})]})]})}var el=e.i(308402);function eo({items:e}){return(0,t.jsx)("nav",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:e.map((e,n)=>(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[n>0&&(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4"}),e.href?(0,t.jsx)(r.default,{href:e.href,className:"hover:text-foreground transition-colors",children:e.label}):(0,t.jsx)("span",{className:"text-foreground",children:e.label})]},n))})}function eu({specs:e}){let s=function(e){if("/"===e)return[{label:"Home"}];if("/stats"===e)return[{label:"Home",href:"/"},{label:"Stats"}];if("/specs"===e||e.startsWith("/specs?")){let t=new URLSearchParams(e.split("?")[1]||"").get("view");return[{label:"Home",href:"/"},{label:`Specs (${"board"===t?"Board View":"List View"})`}]}return e.startsWith("/specs/")?[{label:"Home",href:"/"},{label:"Specs",href:"/specs"},{label:e.split("/")[2]}]:"/board"===e?[{label:"Home",href:"/"},{label:"Board"}]:[{label:"Home",href:"/"}]}((0,i.usePathname)());return(0,t.jsx)("header",{className:"sticky top-0 z-50 w-full h-14 border-b border-border bg-background",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-full px-2 sm:px-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4 min-w-0 flex-1",children:[(0,t.jsxs)(f.Button,{variant:"ghost",size:"icon",onClick:()=>{window.toggleMainSidebar&&window.toggleMainSidebar()},className:"lg:hidden h-9 w-9 shrink-0",children:[(0,t.jsx)(l,{className:"h-5 w-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle menu"})]}),(0,t.jsxs)(r.default,{href:"/",className:"flex items-center space-x-2 shrink-0",children:[(0,t.jsx)(n.default,{src:"/logo-with-bg.svg",alt:"LeanSpec",width:32,height:32,className:"h-7 w-7 sm:h-8 sm:w-8 dark:hidden"}),(0,t.jsx)(n.default,{src:"/logo-dark-bg.svg",alt:"LeanSpec",width:32,height:32,className:"h-7 w-7 sm:h-8 sm:w-8 hidden dark:block"}),(0,t.jsx)("span",{className:"font-bold text-lg sm:text-xl hidden sm:inline",children:"LeanSpec"})]}),(0,t.jsx)("div",{className:"hidden md:block min-w-0",children:(0,t.jsx)(eo,{items:s})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 shrink-0",children:[(0,t.jsx)(ea,{specs:e}),(0,t.jsxs)(el.TooltipProvider,{children:[(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{children:(0,t.jsx)(p,{})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"Toggle theme"})})]}),(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",asChild:!0,className:"h-9 w-9 sm:h-10 sm:w-10",children:(0,t.jsx)("a",{href:"https://www.lean-spec.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",children:(0,t.jsx)(o,{className:"h-5 w-5"})})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"Documentation"})})]}),(0,t.jsxs)(el.Tooltip,{children:[(0,t.jsx)(el.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(f.Button,{variant:"ghost",size:"icon",asChild:!0,className:"h-9 w-9 sm:h-10 sm:w-10",children:(0,t.jsxs)("a",{href:"https://github.com/codervisor/lean-spec",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub repository",children:[(0,t.jsx)(n.default,{src:"/github-mark-white.svg",alt:"GitHub",width:20,height:20,className:"hidden dark:block"}),(0,t.jsx)(n.default,{src:"/github-mark.svg",alt:"GitHub",width:20,height:20,className:"dark:hidden"})]})})}),(0,t.jsx)(el.TooltipContent,{children:(0,t.jsx)("p",{children:"GitHub repository"})})]})]})]})]})})}e.s(["Navigation",()=>eu],426160)},742634,e=>{"use strict";var t=e.i(890022),r=e.i(987985),n=e.i(230827),i=e.i(497332),s=e.i(20315),a=e.i(122436);let l=(0,a.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var o=e.i(158362),u=e.i(525761),c=e.i(644021),d=e.i(431231),h=e.i(686266);let f=(0,a.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);var p=e.i(963781),m=e.i(723882),g=e.i(828964),v=e.i(632137),x=e.i(235893),b=e.i(694541),y=e.i(291967),w=e.i(430406),C=e.i(79014),j=e.i(255235),E=e.i(254440),A=e.i(31007),k=e.i(315599),S=e.i(306839),_=e.i(214260),N=e.i(111052),P=e.i(122925),R=e.i(665489),F=e.i(393136),D=e.i(73772),M=e.i(97496),I="Popover",[B,O]=(0,C.createContextScope)(I,[S.createPopperScope]),$=(0,S.createPopperScope)(),[L,z]=B(I),T=e=>{let{__scopePopover:r,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,o=$(r),u=d.useRef(null),[c,h]=d.useState(!1),[f,p]=(0,F.useControllableState)({prop:i,defaultProp:s??!1,onChange:a,caller:I});return(0,t.jsx)(S.Root,{...o,children:(0,t.jsx)(L,{scope:r,contentId:(0,k.useId)(),triggerRef:u,open:f,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:d.useCallback(()=>h(!0),[]),onCustomAnchorRemove:d.useCallback(()=>h(!1),[]),modal:l,children:n})})};T.displayName=I;var q="PopoverAnchor";d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(q,n),a=$(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:o}=s;return d.useEffect(()=>(l(),()=>o()),[l,o]),(0,t.jsx)(S.Anchor,{...a,...i,ref:r})}).displayName=q;var H="PopoverTrigger",V=d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(H,n),a=$(n),l=(0,w.useComposedRefs)(r,s.triggerRef),o=(0,t.jsx)(P.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":er(s.open),...i,ref:l,onClick:(0,y.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?o:(0,t.jsx)(S.Anchor,{asChild:!0,...a,children:o})});V.displayName=H;var W="PopoverPortal",[G,K]=B(W,{forceMount:void 0}),U=e=>{let{__scopePopover:r,forceMount:n,children:i,container:s}=e,a=z(W,r);return(0,t.jsx)(G,{scope:r,forceMount:n,children:(0,t.jsx)(N.Presence,{present:n||a.open,children:(0,t.jsx)(_.Portal,{asChild:!0,container:s,children:i})})})};U.displayName=W;var J="PopoverContent",X=d.forwardRef((e,r)=>{let n=K(J,e.__scopePopover),{forceMount:i=n.forceMount,...s}=e,a=z(J,e.__scopePopover);return(0,t.jsx)(N.Presence,{present:i||a.open,children:a.modal?(0,t.jsx)(Y,{...s,ref:r}):(0,t.jsx)(Z,{...s,ref:r})})});X.displayName=J;var Q=(0,R.createSlot)("PopoverContent.RemoveScroll"),Y=d.forwardRef((e,r)=>{let n=z(J,e.__scopePopover),i=d.useRef(null),s=(0,w.useComposedRefs)(r,i),a=d.useRef(!1);return d.useEffect(()=>{let e=i.current;if(e)return(0,D.hideOthers)(e)},[]),(0,t.jsx)(M.RemoveScroll,{as:Q,allowPinchZoom:!0,children:(0,t.jsx)(ee,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,y.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,y.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,y.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Z=d.forwardRef((e,r)=>{let n=z(J,e.__scopePopover),i=d.useRef(!1),s=d.useRef(!1);return(0,t.jsx)(ee,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),ee=d.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...h}=e,f=z(J,n),p=$(n);return(0,E.useFocusGuards)(),(0,t.jsx)(A.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,t.jsx)(j.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:(0,t.jsx)(S.Content,{"data-state":er(f.open),role:"dialog",id:f.contentId,...p,...h,ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),et="PopoverClose";function er(e){return e?"open":"closed"}d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=z(et,n);return(0,t.jsx)(P.Primitive.button,{type:"button",...i,ref:r,onClick:(0,y.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))})}).displayName=et,d.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=$(n);return(0,t.jsx)(S.Arrow,{...s,...i,ref:r})}).displayName="PopoverArrow";let en=d.forwardRef(({className:e,align:r="center",sideOffset:n=4,...i},s)=>(0,t.jsx)(U,{children:(0,t.jsx)(X,{ref:s,align:r,sideOffset:n,className:(0,v.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...i})}));en.displayName=X.displayName;var ei=e.i(20648),es=e.i(361877);function ea({collapsed:e}){let{mode:r,currentProject:n,projects:i,switchProject:s}=(0,ei.useProject)(),[a,l]=(0,d.useState)(!1),[o,u]=(0,d.useState)(!1);if("multi-project"!==r)return null;let c=async e=>{await s(e),l(!1)},y=[...i].sort((e,t)=>e.favorite===t.favorite?0:e.favorite?-1:1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(es.CreateProjectDialog,{open:o,onOpenChange:u}),(0,t.jsxs)(T,{open:a,onOpenChange:l,children:[(0,t.jsx)(V,{asChild:!0,children:(0,t.jsx)(x.Button,{variant:"outline",role:"combobox","aria-expanded":a,className:(0,v.cn)("w-full justify-between",e?"h-9 w-9 p-0 justify-center":"px-3"),children:e?(0,t.jsx)(m.FolderOpen,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 truncate",children:[(0,t.jsx)(m.FolderOpen,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:"truncate",children:n?.name||"Select project..."})]}),(0,t.jsx)(f,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})})}),(0,t.jsx)(en,{className:"w-[200px] p-0",align:"start",children:(0,t.jsxs)(b.Command,{children:[(0,t.jsx)(b.CommandInput,{placeholder:"Search projects..."}),(0,t.jsxs)(b.CommandList,{children:[(0,t.jsx)(b.CommandEmpty,{children:"No project found."}),(0,t.jsx)(b.CommandGroup,{heading:"Projects",children:y.map(e=>(0,t.jsx)(b.CommandItem,{onSelect:()=>c(e.id),className:"text-sm",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(h.Check,{className:(0,v.cn)("mr-2 h-4 w-4",n?.id===e.id?"opacity-100":"opacity-0")}),(0,t.jsx)("span",{className:"truncate flex-1",children:e.name}),e.favorite&&(0,t.jsx)(g.Star,{className:"h-3 w-3 fill-yellow-500 text-yellow-500"})]})},e.id))}),(0,t.jsx)(b.CommandSeparator,{}),(0,t.jsx)(b.CommandGroup,{children:(0,t.jsxs)(b.CommandItem,{className:"cursor-pointer",onSelect:()=>{l(!1),u(!0)},children:[(0,t.jsx)(p.Plus,{className:"mr-2 h-4 w-4"}),"Create Project"]})})]})]})})]})]})}function el({href:e,icon:n,children:i,description:s,currentPath:a,isCollapsed:l}){let o=a===e||"/"!==e&&a.startsWith(e);return(0,t.jsxs)(r.default,{href:e,className:(0,v.cn)("flex items-center gap-3 rounded-lg px-3 py-2 transition-colors","hover:bg-accent hover:text-accent-foreground",o&&"bg-accent text-accent-foreground font-medium",l&&"justify-center px-2"),children:[(0,t.jsx)(n,{className:(0,v.cn)("h-5 w-5 shrink-0",o&&"text-primary")}),!l&&(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-sm",children:i}),s&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:s})]})]})}function eo(){let e=(0,n.usePathname)(),[r,a]=d.useState(()=>"true"===localStorage.getItem("main-sidebar-collapsed")),[h,f]=d.useState(!1),[p,m]=d.useState(!1);return d.useEffect(()=>{m(!0)},[]),d.useEffect(()=>{document.documentElement.style.setProperty("--main-sidebar-width",r?"60px":"240px"),localStorage.setItem("main-sidebar-collapsed",String(r))},[r]),d.useEffect(()=>{f(!1)},[e]),d.useEffect(()=>(window.toggleMainSidebar=()=>f(e=>!e),()=>{window.toggleMainSidebar=void 0}),[]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>f(!1)}),(0,t.jsx)("aside",{className:(0,v.cn)("border-r border-border bg-background transition-all duration-300 flex-shrink-0","hidden lg:flex lg:sticky lg:top-14 lg:h-[calc(100vh-3.5rem)]",p&&r?"lg:w-[60px]":"lg:w-[240px]",h&&"fixed inset-y-0 left-0 z-[60] flex w-[280px]"),children:(0,t.jsxs)("div",{className:"flex flex-col h-full w-full",children:[(0,t.jsx)("div",{className:"lg:hidden flex justify-end p-2 border-b border-border",children:(0,t.jsxs)(x.Button,{variant:"ghost",size:"sm",onClick:()=>f(!1),className:"h-8 w-8 p-0",children:[(0,t.jsx)(c.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close menu"})]})}),p&&(0,t.jsxs)("nav",{className:"flex-1 px-2 py-4 space-y-1",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(ea,{collapsed:r&&!h})}),(0,t.jsx)(el,{href:"/",icon:i.Home,currentPath:e,description:!r||h?"Dashboard":void 0,isCollapsed:r&&!h,children:"Home"}),(0,t.jsx)(el,{href:"/specs",icon:s.FileText,currentPath:e,description:!r||h?"All Specifications":void 0,isCollapsed:r&&!h,children:"Specs"}),(0,t.jsx)(el,{href:"/stats",icon:l,currentPath:e,description:!r||h?"Analytics":void 0,isCollapsed:r&&!h,children:"Stats"})]}),(0,t.jsx)("div",{className:"hidden lg:block p-2 border-t border-border",children:(0,t.jsx)(x.Button,{variant:"ghost",size:"sm",onClick:()=>a(!r),className:(0,v.cn)("w-full",p&&r&&"px-2"),children:p&&r?(0,t.jsx)(u.ChevronRight,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ChevronLeft,{className:"h-4 w-4 mr-2"}),(0,t.jsx)("span",{className:"text-xs",children:"Collapse"})]})})})]})})]})}e.s(["MainSidebar",()=>eo],742634)},305215,e=>{"use strict";var t=e.i(890022),r=e.i(81795);function n({children:e,...n}){return(0,t.jsx)(r.ThemeProvider,{...n,children:e})}e.s(["ThemeProvider",()=>n])},474916,e=>{"use strict";var t=e.i(178420),r=e.i(995403);e.s(["Toast",()=>t.Toast,"toast",()=>r.toast])},124636,e=>{"use strict";var t=e.i(959124),r=e.i(431231);function n(){return"undefined"!=typeof window}function i(){return"production"}function s(){return(n()?window.vam:i())||"production"}function a(){return"production"===s()}function l(){return"development"===s()}function o(e,t,r){var i,s;if(!n()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(a())console.warn(e);else throw Error(e);return}if(!t){null==(i=window.va)||i.call(window,"event",{name:e,options:r});return}try{let n=function(e,t){if(!e)return;let r=e,n=[];for(let[i,s]of Object.entries(e))"object"==typeof s&&null!==s&&(t.strip?r=function(e,{[e]:t,...r}){return r}(i,r):n.push(i));if(n.length>0&&!t.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(t,{strip:a()});null==(s=window.va)||s.call(window,"event",{name:e,data:n,options:r})}catch(e){e instanceof Error&&l()&&console.error(e)}}function u(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!n())return;!function(e="auto"){if("auto"===e){window.vam=i();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:l()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let s=document.createElement("script");s.src=r,s.defer=!0,s.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),s.dataset.sdkv="1.5.0",e.disableAutoTrack&&(s.dataset.disableAutoTrack="1"),e.endpoint?s.dataset.endpoint=e.endpoint:e.basePath&&(s.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(s.dataset.dsn=e.dsn),s.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},l()&&!1===e.debug&&(s.dataset.debug="false"),document.head.appendChild(s)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}e.s(["Analytics",()=>u,"track",()=>o])}]);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanspec/ui",
3
- "version": "0.2.7-dev.20251127073145",
3
+ "version": "0.2.7-dev.20251127082201",
4
4
  "description": "LeanSpec web UI launcher for visual spec management",
5
5
  "type": "module",
6
6
  "bin": {
@@ -64,6 +64,7 @@
64
64
  "@radix-ui/react-slot": "^1.2.4",
65
65
  "@radix-ui/react-tabs": "^1.1.13",
66
66
  "@radix-ui/react-tooltip": "^1.2.8",
67
+ "@vercel/analytics": "^1.5.0",
67
68
  "better-sqlite3": "^11.7.0",
68
69
  "chalk": "^5.3.0",
69
70
  "class-variance-authority": "^0.7.1",
@@ -6,6 +6,7 @@ import { ThemeProvider } from "@/components/theme-provider";
6
6
  import { Toast } from "@/components/ui/toast";
7
7
  import { ProjectProvider } from "@/contexts/project-context";
8
8
  import { getSpecs } from "@/lib/db/service-queries";
9
+ import { Analytics } from "@vercel/analytics/react";
9
10
 
10
11
  export const metadata: Metadata = {
11
12
  title: "LeanSpec Web - Interactive Spec Showcase",
@@ -68,6 +69,8 @@ export default async function RootLayout({
68
69
  <Toast />
69
70
  </ProjectProvider>
70
71
  </ThemeProvider>
72
+ {/* Analytics enabled via ENABLE_ANALYTICS env var in Vercel */}
73
+ {process.env.ENABLE_ANALYTICS === 'true' && <Analytics />}
71
74
  </body>
72
75
  </html>
73
76
  );