orcasynth 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/api/server.js +14 -5
  2. package/dist/integrations/projectFiles.js +16 -0
  3. package/dist/integrations/usage/claude.js +7 -7
  4. package/dist/integrations/usage/codex.js +5 -7
  5. package/dist/integrations/usage/index.js +2 -8
  6. package/dist/integrations/usage/walk.js +14 -0
  7. package/dist/overseer/stuckDetector.js +4 -10
  8. package/dist/shared/id.js +7 -0
  9. package/dist/shared/time.js +12 -0
  10. package/dist/store/cascade.js +24 -0
  11. package/dist/store/db.js +3 -0
  12. package/dist/store/projectStore.js +8 -6
  13. package/dist/store/schema.sql +1 -1
  14. package/dist/store/taskStore.js +2 -8
  15. package/package.json +1 -1
  16. package/web-dist/.next/BUILD_ID +1 -1
  17. package/web-dist/.next/build-manifest.json +3 -3
  18. package/web-dist/.next/server/app/_global-error.html +1 -1
  19. package/web-dist/.next/server/app/_global-error.rsc +1 -1
  20. package/web-dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  21. package/web-dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  22. package/web-dist/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  23. package/web-dist/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  24. package/web-dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  25. package/web-dist/.next/server/app/_not-found/page.js.nft.json +1 -1
  26. package/web-dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  27. package/web-dist/.next/server/app/_not-found.html +1 -1
  28. package/web-dist/.next/server/app/_not-found.rsc +11 -11
  29. package/web-dist/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  30. package/web-dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  31. package/web-dist/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  32. package/web-dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  33. package/web-dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  34. package/web-dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  35. package/web-dist/.next/server/app/account/page.js.nft.json +1 -1
  36. package/web-dist/.next/server/app/account/page_client-reference-manifest.js +1 -1
  37. package/web-dist/.next/server/app/account.html +1 -1
  38. package/web-dist/.next/server/app/account.rsc +13 -13
  39. package/web-dist/.next/server/app/account.segments/_full.segment.rsc +13 -13
  40. package/web-dist/.next/server/app/account.segments/_head.segment.rsc +4 -4
  41. package/web-dist/.next/server/app/account.segments/_index.segment.rsc +6 -6
  42. package/web-dist/.next/server/app/account.segments/_tree.segment.rsc +2 -2
  43. package/web-dist/.next/server/app/account.segments/account/__PAGE__.segment.rsc +4 -4
  44. package/web-dist/.next/server/app/account.segments/account.segment.rsc +3 -3
  45. package/web-dist/.next/server/app/dash/page.js.nft.json +1 -1
  46. package/web-dist/.next/server/app/dash/page_client-reference-manifest.js +1 -1
  47. package/web-dist/.next/server/app/dash.html +1 -1
  48. package/web-dist/.next/server/app/dash.rsc +13 -13
  49. package/web-dist/.next/server/app/dash.segments/_full.segment.rsc +13 -13
  50. package/web-dist/.next/server/app/dash.segments/_head.segment.rsc +4 -4
  51. package/web-dist/.next/server/app/dash.segments/_index.segment.rsc +6 -6
  52. package/web-dist/.next/server/app/dash.segments/_tree.segment.rsc +2 -2
  53. package/web-dist/.next/server/app/dash.segments/dash/__PAGE__.segment.rsc +4 -4
  54. package/web-dist/.next/server/app/dash.segments/dash.segment.rsc +3 -3
  55. package/web-dist/.next/server/app/escalations/page.js.nft.json +1 -1
  56. package/web-dist/.next/server/app/escalations/page_client-reference-manifest.js +1 -1
  57. package/web-dist/.next/server/app/escalations.html +1 -1
  58. package/web-dist/.next/server/app/escalations.rsc +13 -13
  59. package/web-dist/.next/server/app/escalations.segments/_full.segment.rsc +13 -13
  60. package/web-dist/.next/server/app/escalations.segments/_head.segment.rsc +4 -4
  61. package/web-dist/.next/server/app/escalations.segments/_index.segment.rsc +6 -6
  62. package/web-dist/.next/server/app/escalations.segments/_tree.segment.rsc +2 -2
  63. package/web-dist/.next/server/app/escalations.segments/escalations/__PAGE__.segment.rsc +4 -4
  64. package/web-dist/.next/server/app/escalations.segments/escalations.segment.rsc +3 -3
  65. package/web-dist/.next/server/app/index.html +1 -1
  66. package/web-dist/.next/server/app/index.rsc +13 -13
  67. package/web-dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  68. package/web-dist/.next/server/app/index.segments/_full.segment.rsc +13 -13
  69. package/web-dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
  70. package/web-dist/.next/server/app/index.segments/_index.segment.rsc +6 -6
  71. package/web-dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  72. package/web-dist/.next/server/app/kanban/page.js.nft.json +1 -1
  73. package/web-dist/.next/server/app/kanban/page_client-reference-manifest.js +1 -1
  74. package/web-dist/.next/server/app/kanban.html +1 -1
  75. package/web-dist/.next/server/app/kanban.rsc +13 -13
  76. package/web-dist/.next/server/app/kanban.segments/_full.segment.rsc +13 -13
  77. package/web-dist/.next/server/app/kanban.segments/_head.segment.rsc +4 -4
  78. package/web-dist/.next/server/app/kanban.segments/_index.segment.rsc +6 -6
  79. package/web-dist/.next/server/app/kanban.segments/_tree.segment.rsc +2 -2
  80. package/web-dist/.next/server/app/kanban.segments/kanban/__PAGE__.segment.rsc +4 -4
  81. package/web-dist/.next/server/app/kanban.segments/kanban.segment.rsc +3 -3
  82. package/web-dist/.next/server/app/onboarding/page.js.nft.json +1 -1
  83. package/web-dist/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  84. package/web-dist/.next/server/app/onboarding.html +1 -1
  85. package/web-dist/.next/server/app/onboarding.rsc +13 -13
  86. package/web-dist/.next/server/app/onboarding.segments/_full.segment.rsc +13 -13
  87. package/web-dist/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
  88. package/web-dist/.next/server/app/onboarding.segments/_index.segment.rsc +6 -6
  89. package/web-dist/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  90. package/web-dist/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  91. package/web-dist/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
  92. package/web-dist/.next/server/app/page.js.nft.json +1 -1
  93. package/web-dist/.next/server/app/page_client-reference-manifest.js +1 -1
  94. package/web-dist/.next/server/app/projects/page.js.nft.json +1 -1
  95. package/web-dist/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  96. package/web-dist/.next/server/app/projects.html +1 -1
  97. package/web-dist/.next/server/app/projects.rsc +13 -13
  98. package/web-dist/.next/server/app/projects.segments/_full.segment.rsc +13 -13
  99. package/web-dist/.next/server/app/projects.segments/_head.segment.rsc +4 -4
  100. package/web-dist/.next/server/app/projects.segments/_index.segment.rsc +6 -6
  101. package/web-dist/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  102. package/web-dist/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +4 -4
  103. package/web-dist/.next/server/app/projects.segments/projects.segment.rsc +3 -3
  104. package/web-dist/.next/server/app/sessions/page.js.nft.json +1 -1
  105. package/web-dist/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  106. package/web-dist/.next/server/app/sessions.html +1 -1
  107. package/web-dist/.next/server/app/sessions.rsc +13 -13
  108. package/web-dist/.next/server/app/sessions.segments/_full.segment.rsc +13 -13
  109. package/web-dist/.next/server/app/sessions.segments/_head.segment.rsc +4 -4
  110. package/web-dist/.next/server/app/sessions.segments/_index.segment.rsc +6 -6
  111. package/web-dist/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
  112. package/web-dist/.next/server/app/sessions.segments/sessions/__PAGE__.segment.rsc +4 -4
  113. package/web-dist/.next/server/app/sessions.segments/sessions.segment.rsc +3 -3
  114. package/web-dist/.next/server/app/settings/page.js.nft.json +1 -1
  115. package/web-dist/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  116. package/web-dist/.next/server/app/settings.html +1 -1
  117. package/web-dist/.next/server/app/settings.rsc +13 -13
  118. package/web-dist/.next/server/app/settings.segments/_full.segment.rsc +13 -13
  119. package/web-dist/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  120. package/web-dist/.next/server/app/settings.segments/_index.segment.rsc +6 -6
  121. package/web-dist/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  122. package/web-dist/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  123. package/web-dist/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  124. package/web-dist/.next/server/app/tasks/page.js.nft.json +1 -1
  125. package/web-dist/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  126. package/web-dist/.next/server/app/tasks.html +1 -1
  127. package/web-dist/.next/server/app/tasks.rsc +13 -13
  128. package/web-dist/.next/server/app/tasks.segments/_full.segment.rsc +13 -13
  129. package/web-dist/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  130. package/web-dist/.next/server/app/tasks.segments/_index.segment.rsc +6 -6
  131. package/web-dist/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  132. package/web-dist/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  133. package/web-dist/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  134. package/web-dist/.next/server/app/timeline/page.js.nft.json +1 -1
  135. package/web-dist/.next/server/app/timeline/page_client-reference-manifest.js +1 -1
  136. package/web-dist/.next/server/app/timeline.html +1 -1
  137. package/web-dist/.next/server/app/timeline.rsc +13 -13
  138. package/web-dist/.next/server/app/timeline.segments/_full.segment.rsc +13 -13
  139. package/web-dist/.next/server/app/timeline.segments/_head.segment.rsc +4 -4
  140. package/web-dist/.next/server/app/timeline.segments/_index.segment.rsc +6 -6
  141. package/web-dist/.next/server/app/timeline.segments/_tree.segment.rsc +2 -2
  142. package/web-dist/.next/server/app/timeline.segments/timeline/__PAGE__.segment.rsc +4 -4
  143. package/web-dist/.next/server/app/timeline.segments/timeline.segment.rsc +3 -3
  144. package/web-dist/.next/server/app/users/page.js.nft.json +1 -1
  145. package/web-dist/.next/server/app/users/page_client-reference-manifest.js +1 -1
  146. package/web-dist/.next/server/app/users.html +1 -1
  147. package/web-dist/.next/server/app/users.rsc +13 -13
  148. package/web-dist/.next/server/app/users.segments/_full.segment.rsc +13 -13
  149. package/web-dist/.next/server/app/users.segments/_head.segment.rsc +4 -4
  150. package/web-dist/.next/server/app/users.segments/_index.segment.rsc +6 -6
  151. package/web-dist/.next/server/app/users.segments/_tree.segment.rsc +2 -2
  152. package/web-dist/.next/server/app/users.segments/users/__PAGE__.segment.rsc +4 -4
  153. package/web-dist/.next/server/app/users.segments/users.segment.rsc +3 -3
  154. package/web-dist/.next/server/chunks/[root-of-the-server]__0bvp8h1._.js +1 -1
  155. package/web-dist/.next/server/chunks/[root-of-the-server]__1dgbigm._.js +1 -1
  156. package/web-dist/.next/server/chunks/[root-of-the-server]__1wxxtv8._.js +1 -1
  157. package/web-dist/.next/server/chunks/ssr/{[root-of-the-server]__1tooevx._.js → [root-of-the-server]__0i_7o4p._.js} +2 -2
  158. package/web-dist/.next/server/chunks/ssr/_015zf-4._.js +1 -1
  159. package/web-dist/.next/server/chunks/ssr/_04ezsju._.js +3 -0
  160. package/web-dist/.next/server/chunks/ssr/_04o_q14._.js +1 -1
  161. package/web-dist/.next/server/chunks/ssr/_057a06r._.js +1 -1
  162. package/web-dist/.next/server/chunks/ssr/_085pshu._.js +1 -1
  163. package/web-dist/.next/server/chunks/ssr/_0tc9z5_._.js +1 -1
  164. package/web-dist/.next/server/chunks/ssr/_0tzourm._.js +1 -1
  165. package/web-dist/.next/server/chunks/ssr/_12jhzvy._.js +3 -0
  166. package/web-dist/.next/server/chunks/ssr/_136wthy._.js +3 -0
  167. package/web-dist/.next/server/chunks/ssr/_193-v_i._.js +3 -0
  168. package/web-dist/.next/server/chunks/ssr/_1heytlk._.js +3 -0
  169. package/web-dist/.next/server/chunks/ssr/_1mjzb9s._.js +1 -1
  170. package/web-dist/.next/server/chunks/ssr/_1xwktd-._.js +1 -1
  171. package/web-dist/.next/server/chunks/ssr/_1zscr7t._.js +3 -0
  172. package/web-dist/.next/server/chunks/ssr/app_dash_page_tsx_12v0wx-._.js +1 -1
  173. package/web-dist/.next/server/chunks/ssr/app_kanban_page_tsx_06_8oyf._.js +1 -1
  174. package/web-dist/.next/server/chunks/ssr/app_projects_page_tsx_1w-8z74._.js +3 -3
  175. package/web-dist/.next/server/chunks/ssr/app_tasks_page_tsx_1p6mxbw._.js +1 -1
  176. package/web-dist/.next/server/chunks/ssr/app_timeline_page_tsx_0thxir0._.js +1 -1
  177. package/web-dist/.next/server/chunks/ssr/components_shell_Shell_tsx_1e5c27h._.js +1 -1
  178. package/web-dist/.next/server/middleware-build-manifest.js +3 -3
  179. package/web-dist/.next/server/pages/404.html +1 -1
  180. package/web-dist/.next/server/pages/500.html +1 -1
  181. package/web-dist/.next/static/chunks/0l1t1fcd-_jj9.js +1 -0
  182. package/web-dist/.next/static/chunks/11xbsx12drypd.js +1 -0
  183. package/web-dist/.next/static/chunks/186xbnkxm5iu3.js +1 -0
  184. package/web-dist/.next/static/chunks/1c_1_ca4-vgc7.js +1 -0
  185. package/web-dist/.next/static/chunks/{3wo9m5v__3pi2.js → 1f5f3qgbcjv4u.js} +1 -1
  186. package/web-dist/.next/static/chunks/1t-dast4rat3s.css +2 -0
  187. package/web-dist/.next/static/chunks/1wsag7zex3h4_.js +1 -0
  188. package/web-dist/.next/static/chunks/24unfsl4do--1.js +1 -0
  189. package/web-dist/.next/static/chunks/2bfjq22q8xyfs.js +1 -0
  190. package/web-dist/.next/static/chunks/2kuzf7llj_291.js +1 -0
  191. package/web-dist/.next/static/chunks/2pbhzo7fu4xcs.js +11 -0
  192. package/web-dist/.next/static/chunks/30ztbacooyerd.js +1 -0
  193. package/web-dist/.next/static/chunks/34bew8owm40fg.js +1 -0
  194. package/web-dist/.next/static/chunks/3a7pgnw_6io2v.js +1 -0
  195. package/web-dist/.next/static/chunks/3k-swqzkcvlzm.js +1 -0
  196. package/web-dist/.next/static/chunks/{0xgdqczv5tvu5.js → 3saus_snl5ri7.js} +1 -1
  197. package/web-dist/.next/server/chunks/ssr/_09x5h4x._.js +0 -3
  198. package/web-dist/.next/server/chunks/ssr/_0lctmoh._.js +0 -3
  199. package/web-dist/.next/server/chunks/ssr/_0zho8fx._.js +0 -3
  200. package/web-dist/.next/server/chunks/ssr/_1812xdn._.js +0 -3
  201. package/web-dist/.next/server/chunks/ssr/_1m2qx8p._.js +0 -3
  202. package/web-dist/.next/server/chunks/ssr/_1w24b42._.js +0 -3
  203. package/web-dist/.next/server/chunks/ssr/app_sessions_page_tsx_0r1_4_3._.js +0 -3
  204. package/web-dist/.next/static/chunks/05jfk0-07tiga.js +0 -11
  205. package/web-dist/.next/static/chunks/0x8sf96sz490-.css +0 -2
  206. package/web-dist/.next/static/chunks/201p8-_l1h8w8.js +0 -1
  207. package/web-dist/.next/static/chunks/218i8jnxp91u8.js +0 -1
  208. package/web-dist/.next/static/chunks/2_uoi0tzglv_7.js +0 -1
  209. package/web-dist/.next/static/chunks/2ki5va2_5l6d6.js +0 -1
  210. package/web-dist/.next/static/chunks/2sm_cc2r9sjzp.js +0 -1
  211. package/web-dist/.next/static/chunks/2xur1zqckjlq3.js +0 -1
  212. package/web-dist/.next/static/chunks/35babynx5l240.js +0 -1
  213. package/web-dist/.next/static/chunks/3i0jpc47nxz7y.js +0 -1
  214. package/web-dist/.next/static/chunks/3soklmhd2y9yp.js +0 -1
  215. package/web-dist/.next/static/chunks/3ssnuxdh0r51g.js +0 -1
  216. package/web-dist/.next/static/chunks/3ybvfq13cp-hb.js +0 -1
  217. package/web-dist/.next/static/chunks/3yqt3l54sr5si.js +0 -1
  218. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_buildManifest.js +0 -0
  219. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_clientMiddlewareManifest.js +0 -0
  220. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81418,e=>{"use strict";let t=(0,e.i(75254).default)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],81418)},94321,e=>{"use strict";var t=e.i(43476);e.s(["Field",0,function({label:e,htmlFor:s,children:r,hint:a}){return(0,t.jsxs)("label",{htmlFor:s,className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),r,a?(0,t.jsx)("span",{className:"text-xs text-text-muted",children:a}):null]})}])},16302,e=>{"use strict";let t=[{label:"GLM 5.2",exec:"ollama-cloud/glm-5.2"},{label:"GPT 5.5",exec:"codex:gpt-5.5"},{label:"Claude Sonnet 4.5",exec:"sonnet"},{label:"Claude Opus 4.8",exec:"opus"},{label:"DeepSeek V4 Pro",exec:"ollama-cloud/deepseek-v4-pro"},{label:"Kimi k2.7 Code",exec:"ollama/kimi-k2.7-code"},{label:"MiniMax M3",exec:"ollama-cloud/minimax-m3"},{label:"DeepSeek v4 Flash",exec:"ollama-cloud/deepseek-v4-flash"},{label:"MiniMax M2.7",exec:"ollama-cloud/minimax-m2.7"},{label:"GLM 5.1",exec:"ollama-cloud/glm-5.1"},{label:"QWEN 3.5",exec:"ollama-cloud/qwen3.5"}];e.s(["EXEC_PRESETS",0,t,"allModels",0,function(e=[],s=[]){let r=new Set(e.map(e=>e.exec)),a=new Set(s);return[...t.filter(e=>!r.has(e.exec)&&!a.has(e.exec)),...e]}])},51509,e=>{"use strict";var t=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:s,icon:r,children:a}){return(0,t.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[r?(0,t.jsx)(r,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,t.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==s?(0,t.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:s}):null]}),a?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:a}):null]})}])},26178,e=>{"use strict";var t=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:s}){return(0,t.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:s})}])},44375,e=>{"use strict";var t=e.i(43476),s=e.i(76525);e.i(69530);var r=e.i(2942);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:a}){return(0,t.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[r?(0,t.jsx)(r,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),s&&(0,t.jsx)("p",{className:"text-xs text-text-muted",children:s})]}),a]})},"ErrorState",0,function({message:e,onRetry:a}){let{t:l}=(0,r.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-accent",children:e}),a&&(0,t.jsx)(s.Button,{onClick:a,children:l.common.retry})]})},"LoadingState",0,function({label:e,variant:s="list"}){let{t:a}=(0,r.useTranslation)();return e?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===s?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":a.common.loading,children:[0,1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===s?(0,t.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":a.common.loading,children:[0,1,2,3,4].map(e=>(0,t.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,t.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":a.common.loading,children:[88,72,80,64].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,t.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},s))})}])},89890,e=>{"use strict";var t=e.i(43476);let s={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};e.s(["Badge",0,function({children:e,tone:r="default"}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${s[r]}`,children:e})}])},46040,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(74080);e.i(69530);var a=e.i(2942);let l={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};e.s(["Modal",0,function({title:e,onClose:n,children:i,size:d="lg",icon:o,description:c}){let{t:u}=(0,a.useTranslation)(),[x,m]=(0,s.useState)(!1);return((0,s.useEffect)(()=>m(!0),[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]),x)?(0,r.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:n,children:(0,t.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${l[d]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[o?(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(o,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:e}),c?(0,t.jsx)("p",{className:"truncate text-xs text-text-muted",children:c}):null]}),(0,t.jsx)("button",{type:"button","aria-label":u.common.close,onClick:n,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:i})]})}),document.body):null},"ModalBody",0,function({children:e,gap:s=5}){return(0,t.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===s?"gap-4":6===s?"gap-6":"gap-5"}`,children:e})},"ModalFooter",0,function({children:e}){return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:e})}])},27612,e=>{"use strict";let t=(0,e.i(75254).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,t],27612)},20885,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(74080),a=e.i(27612);e.i(69530);var l=e.i(2942);e.s(["ActionMenu",0,function({items:e,label:n,trigger:i,align:d="right"}){let[o,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),x=(0,s.useRef)(null),m=(0,s.useRef)(null),h=(0,s.useRef)(null),{t:p}=(0,l.useTranslation)(),f=n??p.common.actions,[g,b]=(0,s.useState)(null),[v,j]=(0,s.useState)(!1);(0,s.useEffect)(()=>j(!0),[]);let y=()=>{let e=x.current;if(!e)return;let t=e.getBoundingClientRect();b("right"===d?{top:t.bottom,right:window.innerWidth-t.right}:{top:t.bottom,left:t.left})},w=()=>{h.current&&(clearTimeout(h.current),h.current=null)},k=()=>{w(),h.current=setTimeout(()=>c(!1),160)},N=()=>{w(),y(),c(!0)};return(0,s.useEffect)(()=>{if(!o)return;let e=e=>{u.current?.contains(e.target)||m.current?.contains(e.target)||c(!1)},t=e=>{"Escape"===e.key&&c(!1)},s=()=>y();return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}},[o]),(0,s.useEffect)(()=>()=>w(),[]),(0,t.jsxs)("div",{ref:u,className:"relative",onMouseEnter:N,onMouseLeave:k,children:[(0,t.jsx)("button",{ref:x,type:"button","aria-label":f,"aria-haspopup":"menu","aria-expanded":o,title:f,onClick:()=>o?c(!1):N(),className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-danger/60 text-danger transition-colors hover:bg-danger hover:text-white",style:{transitionDuration:"var(--motion-fast)"},children:i??(0,t.jsx)(a.Trash2,{size:15,"aria-hidden":!0})}),v&&o&&g&&(0,r.createPortal)((0,t.jsx)("div",{ref:m,role:"menu",onMouseEnter:w,onMouseLeave:k,className:"fixed z-[61] min-w-[12rem] overflow-hidden rounded-lg border border-border bg-surface py-1.5",style:{top:g.top,left:g.left,right:g.right,boxShadow:"var(--shadow-raised)"},children:e.map(e=>{let s=e.icon,r="danger"===e.tone;return(0,t.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{c(!1),e.onSelect()},className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left text-sm transition-colors ${r?"text-danger hover:bg-danger hover:text-white":"text-text hover:bg-elevated"}`,style:{transitionDuration:"var(--motion-fast)"},children:[s?(0,t.jsx)(s,{size:15,"aria-hidden":!0}):null,e.label]},e.label)})}),document.body)]})}])},79002,e=>{"use strict";let t=(0,e.i(75254).default)("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,t],79002)},34965,e=>{"use strict";var t=e.i(43476),s=e.i(26178),r=e.i(71645),a=e.i(61911),l=e.i(79002),n=e.i(27612),i=e.i(75254);let d=(0,i.default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),o=(0,i.default)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var c=e.i(81418),u=e.i(90272),x=e.i(66992),m=e.i(51981),h=e.i(4552),p=e.i(16302),f=e.i(92852),g=e.i(80809),b=e.i(1544),v=e.i(89890),j=e.i(76525),y=e.i(1206),w=e.i(94321),k=e.i(46040),N=e.i(20885),S=e.i(89901),E=e.i(51509),M=e.i(44375);e.i(69530);var C=e.i(2942);function P({userId:e,projects:s}){let{t:r}=(0,C.useTranslation)(),a=(0,m.useUserProjects)(e),l=(0,h.useAssignProject)(),n=new Set(a.data??[]);return 0===s.length?null:(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] uppercase tracking-wide text-text-muted",children:[(0,t.jsx)(u.FolderGit2,{size:12,"aria-hidden":!0}),r.users.projects]}),s.map(s=>{let r=n.has(s.id);return(0,t.jsx)("button",{type:"button",onClick:()=>l.mutate({userId:e,projectId:s.id,currentlyAssigned:r}),disabled:l.isPending,className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${r?"border-accent bg-accent/15 text-accent":"border-border text-text-muted hover:bg-elevated"}`,children:s.slug},s.id)})]})}function T({user:e,globalExecs:s,custom:r}){let{t:a}=(0,C.useTranslation)(),l=(0,h.useUpdateUser)(),{toast:n}=(0,g.useToast)(),i=new Set(e.allowed_execs);return 0===s.length?null:(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] uppercase tracking-wide text-text-muted",children:[(0,t.jsx)(x.Cpu,{size:12,"aria-hidden":!0}),a.users.allowedModels]}),s.map(s=>{let d=i.has(s);return(0,t.jsxs)("button",{type:"button",onClick:()=>{let t;(t=new Set(i)).has(s)?t.delete(s):t.add(s),l.mutate({id:e.id,patch:{allowed_execs:[...t]}},{onSuccess:()=>n(a.users.modelsUpdated),onError:e=>n(String(e)||a.users.updateError,"error")})},disabled:l.isPending,className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs transition-colors ${d?"border-accent bg-accent/15 text-accent":"border-border text-text-muted hover:bg-elevated"}`,children:[(0,t.jsx)(S.ModelIcon,{name:s,size:14}),(0,p.allModels)(r).find(e=>e.exec===s)?.label??s]},s)}),0===i.size?(0,t.jsx)("span",{className:"text-[11px] italic text-text-muted",children:a.users.allModelsHint}):null]})}function U(){let e=(0,m.useUsers)(),s=(0,m.useMe)(),i=(0,m.useProjects)(),u=(0,h.useDeleteUser)(),x=(0,h.useCreateUser)(),p=(0,h.useUpdateUser)(),S=(0,h.useLogout)(),U=(0,m.useConfig)(),{toast:z}=(0,g.useToast)(),{t:L,locale:B}=(0,C.useTranslation)(),[F,_]=(0,r.useState)(!1),[A,D]=(0,r.useState)(""),[R,H]=(0,r.useState)(""),$=e.data??[],I=s.data?.user?.is_admin??!1,V=U.data?.allowedExecs??[],G=U.data?.customModels??[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(E.ModuleHeader,{title:L.page.users,count:e.data?.length,icon:a.Users,children:[(0,t.jsx)(j.Button,{variant:"ghost",icon:d,onClick:function(){S.mutate(void 0,{onSuccess:()=>{(0,f.clearToken)(),window.location.reload()},onError:()=>{(0,f.clearToken)(),window.location.reload()}})},disabled:S.isPending,children:L.users.logout}),(0,t.jsx)(j.Button,{variant:"accent",icon:l.UserPlus,onClick:()=>_(!0),children:L.users.newUser})]}),e.isLoading?(0,t.jsx)(M.LoadingState,{}):e.isError?(0,t.jsx)(M.ErrorState,{message:L.users.loadError,onRetry:()=>e.refetch()}):0===$.length?(0,t.jsx)(M.EmptyState,{title:L.users.empty,description:L.users.emptyDescription,icon:a.Users,action:(0,t.jsx)(j.Button,{variant:"accent",icon:l.UserPlus,onClick:()=>_(!0),children:L.users.newUser})}):(0,t.jsx)("ul",{className:"flex flex-col gap-2.5",children:$.map(e=>{var s;let r;return(0,t.jsxs)("li",{className:"card-interactive group flex items-center gap-3.5 rounded-lg border border-border bg-surface p-3.5",children:[(0,t.jsx)(b.Avatar,{user:e,size:48}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate font-semibold text-text",children:e.name||e.username}),e.is_admin?(0,t.jsxs)(v.Badge,{tone:"accent",children:[(0,t.jsx)(c.ShieldCheck,{size:11,className:"mr-1","aria-hidden":!0}),L.users.admin]}):null]}),(0,t.jsxs)("span",{className:"truncate font-mono text-xs text-text-muted",children:["@",e.username," · ",(s=e.created_at,Number.isNaN((r=new Date(s.includes("T")?s:s.replace(" ","T")+"Z")).getTime())?s:r.toLocaleString(B,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}))]}),I?(0,t.jsx)(P,{userId:e.id,projects:i.data??[]}):null,I?(0,t.jsx)(T,{user:e,globalExecs:V,custom:G}):null]}),(0,t.jsx)("div",{className:"shrink-0 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:(0,t.jsx)(N.ActionMenu,{label:L.users.deleteLabel.replace("{username}",e.username),items:[...I?[{label:e.is_admin?L.users.removeAdmin:L.users.makeAdmin,icon:e.is_admin?o:c.ShieldCheck,onSelect:()=>{p.isPending||p.mutate({id:e.id,patch:{is_admin:!e.is_admin}},{onSuccess:()=>z(L.users.roleUpdated),onError:e=>z(String(e)||L.users.updateError,"error")})}}]:[],{label:$.length<=1?L.users.lastUserHint:L.users.delete,icon:n.Trash2,tone:"danger",onSelect:()=>{var t;$.length>1&&!u.isPending&&(t=e.id,u.mutate(t,{onSuccess:()=>z(L.users.userDeleted),onError:e=>z(String(e),"error")}))}}]})})]},e.id)})}),F&&(0,t.jsx)(k.Modal,{title:L.users.addUser,onClose:()=>_(!1),size:"md",icon:l.UserPlus,children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),x.mutate({username:A,password:R},{onSuccess:()=>{z(L.users.userCreated),_(!1),D(""),H("")},onError:e=>z(String(e),"error")})},className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(k.ModalBody,{gap:4,children:[(0,t.jsx)(w.Field,{label:L.users.fieldUsername,children:(0,t.jsx)(y.Input,{type:"text",value:A,onChange:e=>D(e.target.value),placeholder:L.auth.usernamePlaceholder,autoFocus:!0})}),(0,t.jsx)(w.Field,{label:L.auth.passwordPlaceholder,children:(0,t.jsx)(y.Input,{type:"password",value:R,onChange:e=>H(e.target.value),placeholder:L.auth.passwordPlaceholder})})]}),(0,t.jsxs)(k.ModalFooter,{children:[(0,t.jsx)(j.Button,{type:"button",variant:"ghost",onClick:()=>_(!1),children:L.common.cancel}),(0,t.jsx)(j.Button,{type:"submit",variant:"accent",icon:l.UserPlus,disabled:x.isPending||!A.trim()||!R,children:L.users.create})]})]})})]})}e.s(["default",0,function(){return(0,t.jsx)(s.ModuleShell,{moduleId:"users",children:(0,t.jsx)(U,{})})},"dynamic",0,"force-dynamic"],34965)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81418,e=>{"use strict";let t=(0,e.i(75254).default)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],81418)},94321,e=>{"use strict";var t=e.i(43476);e.s(["Field",0,function({label:e,htmlFor:s,children:r,hint:a}){return(0,t.jsxs)("label",{htmlFor:s,className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),r,a?(0,t.jsx)("span",{className:"text-xs text-text-muted",children:a}):null]})}])},16302,e=>{"use strict";let t=[{label:"GLM 5.2",exec:"ollama-cloud/glm-5.2"},{label:"GPT 5.5",exec:"codex:gpt-5.5"},{label:"Claude Sonnet 4.5",exec:"sonnet"},{label:"Claude Opus 4.8",exec:"opus"},{label:"DeepSeek V4 Pro",exec:"ollama-cloud/deepseek-v4-pro"},{label:"Kimi k2.7 Code",exec:"ollama/kimi-k2.7-code"},{label:"MiniMax M3",exec:"ollama-cloud/minimax-m3"},{label:"DeepSeek v4 Flash",exec:"ollama-cloud/deepseek-v4-flash"},{label:"MiniMax M2.7",exec:"ollama-cloud/minimax-m2.7"},{label:"GLM 5.1",exec:"ollama-cloud/glm-5.1"},{label:"QWEN 3.5",exec:"ollama-cloud/qwen3.5"}];e.s(["EXEC_PRESETS",0,t,"allModels",0,function(e=[],s=[]){let r=new Set(e.map(e=>e.exec)),a=new Set(s);return[...t.filter(e=>!r.has(e.exec)&&!a.has(e.exec)),...e]}])},51509,e=>{"use strict";var t=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:s,icon:r,children:a}){return(0,t.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[r?(0,t.jsx)(r,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,t.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==s?(0,t.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:s}):null]}),a?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:a}):null]})}])},26178,e=>{"use strict";var t=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:s}){return(0,t.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:s})}])},44375,e=>{"use strict";var t=e.i(43476),s=e.i(76525);e.i(69530);var r=e.i(2942);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:a}){return(0,t.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[r?(0,t.jsx)(r,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),s&&(0,t.jsx)("p",{className:"text-xs text-text-muted",children:s})]}),a]})},"ErrorState",0,function({message:e,onRetry:a}){let{t:l}=(0,r.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-accent",children:e}),a&&(0,t.jsx)(s.Button,{onClick:a,children:l.common.retry})]})},"LoadingState",0,function({label:e,variant:s="list"}){let{t:a}=(0,r.useTranslation)();return e?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===s?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":a.common.loading,children:[0,1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===s?(0,t.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":a.common.loading,children:[0,1,2,3,4].map(e=>(0,t.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,t.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":a.common.loading,children:[88,72,80,64].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,t.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},s))})}])},89890,e=>{"use strict";var t=e.i(43476);let s={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};e.s(["Badge",0,function({children:e,tone:r="default"}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${s[r]}`,children:e})}])},46040,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(74080);e.i(69530);var a=e.i(2942);let l={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};e.s(["Modal",0,function({title:e,onClose:n,children:i,size:d="lg",icon:o,description:c}){let{t:u}=(0,a.useTranslation)(),[x,m]=(0,s.useState)(!1);return((0,s.useEffect)(()=>m(!0),[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]),x)?(0,r.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:n,children:(0,t.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${l[d]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[o?(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(o,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:e}),c?(0,t.jsx)("p",{className:"truncate text-xs text-text-muted",children:c}):null]}),(0,t.jsx)("button",{type:"button","aria-label":u.common.close,onClick:n,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:i})]})}),document.body):null},"ModalBody",0,function({children:e,gap:s=5}){return(0,t.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===s?"gap-4":6===s?"gap-6":"gap-5"}`,children:e})},"ModalFooter",0,function({children:e}){return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:e})}])},27612,e=>{"use strict";let t=(0,e.i(75254).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,t],27612)},20885,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(74080),a=e.i(27612);e.i(69530);var l=e.i(2942);e.s(["ActionMenu",0,function({items:e,label:n,trigger:i,align:d="right"}){let[o,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),x=(0,s.useRef)(null),m=(0,s.useRef)(null),h=(0,s.useRef)(null),{t:p}=(0,l.useTranslation)(),f=n??p.common.actions,[g,b]=(0,s.useState)(null),[v,j]=(0,s.useState)(!1);(0,s.useEffect)(()=>j(!0),[]);let y=()=>{let e=x.current;if(!e)return;let t=e.getBoundingClientRect();b("right"===d?{top:t.bottom,right:window.innerWidth-t.right}:{top:t.bottom,left:t.left})},w=()=>{h.current&&(clearTimeout(h.current),h.current=null)},k=()=>{w(),h.current=setTimeout(()=>c(!1),160)},N=()=>{w(),y(),c(!0)};return(0,s.useEffect)(()=>{if(!o)return;let e=e=>{u.current?.contains(e.target)||m.current?.contains(e.target)||c(!1)},t=e=>{"Escape"===e.key&&c(!1)},s=()=>y();return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}},[o]),(0,s.useEffect)(()=>()=>w(),[]),(0,t.jsxs)("div",{ref:u,className:"relative",onMouseEnter:N,onMouseLeave:k,children:[(0,t.jsx)("button",{ref:x,type:"button","aria-label":f,"aria-haspopup":"menu","aria-expanded":o,title:f,onClick:()=>o?c(!1):N(),className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-danger/60 text-danger transition-colors hover:bg-danger hover:text-white",style:{transitionDuration:"var(--motion-fast)"},children:i??(0,t.jsx)(a.Trash2,{size:15,"aria-hidden":!0})}),v&&o&&g&&(0,r.createPortal)((0,t.jsx)("div",{ref:m,role:"menu",onMouseEnter:w,onMouseLeave:k,className:"fixed z-[61] min-w-[12rem] overflow-hidden rounded-lg border border-border bg-surface py-1.5",style:{top:g.top,left:g.left,right:g.right,boxShadow:"var(--shadow-raised)"},children:e.map(e=>{let s=e.icon,r="danger"===e.tone;return(0,t.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{c(!1),e.onSelect()},className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left text-sm transition-colors ${r?"text-danger hover:bg-danger hover:text-white":"text-text hover:bg-elevated"}`,style:{transitionDuration:"var(--motion-fast)"},children:[s?(0,t.jsx)(s,{size:15,"aria-hidden":!0}):null,e.label]},e.label)})}),document.body)]})}])},79002,e=>{"use strict";let t=(0,e.i(75254).default)("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,t],79002)},34965,e=>{"use strict";var t=e.i(43476),s=e.i(26178),r=e.i(71645),a=e.i(61911),l=e.i(79002),n=e.i(27612),i=e.i(75254);let d=(0,i.default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),o=(0,i.default)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var c=e.i(81418),u=e.i(90272),x=e.i(66992),m=e.i(51981),h=e.i(4552),p=e.i(16302),f=e.i(92852),g=e.i(80809),b=e.i(1544),v=e.i(89890),j=e.i(76525),y=e.i(1206),w=e.i(94321),k=e.i(46040),N=e.i(20885),S=e.i(89901),E=e.i(51509),M=e.i(44375);e.i(69530);var C=e.i(2942),P=e.i(91392);function U({userId:e,projects:s}){let{t:r}=(0,C.useTranslation)(),a=(0,m.useUserProjects)(e),l=(0,h.useAssignProject)(),n=new Set(a.data??[]);return 0===s.length?null:(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] uppercase tracking-wide text-text-muted",children:[(0,t.jsx)(u.FolderGit2,{size:12,"aria-hidden":!0}),r.users.projects]}),s.map(s=>{let r=n.has(s.id);return(0,t.jsx)("button",{type:"button",onClick:()=>l.mutate({userId:e,projectId:s.id,currentlyAssigned:r}),disabled:l.isPending,className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${r?"border-accent bg-accent/15 text-accent":"border-border text-text-muted hover:bg-elevated"}`,children:s.slug},s.id)})]})}function T({user:e,globalExecs:s,custom:r}){let{t:a}=(0,C.useTranslation)(),l=(0,h.useUpdateUser)(),{toast:n}=(0,g.useToast)(),i=new Set(e.allowed_execs);return 0===s.length?null:(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] uppercase tracking-wide text-text-muted",children:[(0,t.jsx)(x.Cpu,{size:12,"aria-hidden":!0}),a.users.allowedModels]}),s.map(s=>{let d=i.has(s);return(0,t.jsxs)("button",{type:"button",onClick:()=>{let t;(t=new Set(i)).has(s)?t.delete(s):t.add(s),l.mutate({id:e.id,patch:{allowed_execs:[...t]}},{onSuccess:()=>n(a.users.modelsUpdated),onError:e=>n(String(e)||a.users.updateError,"error")})},disabled:l.isPending,className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs transition-colors ${d?"border-accent bg-accent/15 text-accent":"border-border text-text-muted hover:bg-elevated"}`,children:[(0,t.jsx)(S.ModelIcon,{name:s,size:14}),(0,p.allModels)(r).find(e=>e.exec===s)?.label??s]},s)}),0===i.size?(0,t.jsx)("span",{className:"text-[11px] italic text-text-muted",children:a.users.allModelsHint}):null]})}function z(){let e=(0,m.useUsers)(),s=(0,m.useMe)(),i=(0,m.useProjects)(),u=(0,h.useDeleteUser)(),x=(0,h.useCreateUser)(),p=(0,h.useUpdateUser)(),S=(0,h.useLogout)(),z=(0,m.useConfig)(),{toast:L}=(0,g.useToast)(),{t:B,locale:F}=(0,C.useTranslation)(),[_,A]=(0,r.useState)(!1),[D,R]=(0,r.useState)(""),[H,$]=(0,r.useState)(""),I=e.data??[],V=s.data?.user?.is_admin??!1,G=z.data?.allowedExecs??[],O=z.data?.customModels??[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(E.ModuleHeader,{title:B.page.users,count:e.data?.length,icon:a.Users,children:[(0,t.jsx)(j.Button,{variant:"ghost",icon:d,onClick:function(){S.mutate(void 0,{onSuccess:()=>{(0,f.clearToken)(),window.location.reload()},onError:()=>{(0,f.clearToken)(),window.location.reload()}})},disabled:S.isPending,children:B.users.logout}),(0,t.jsx)(j.Button,{variant:"accent",icon:l.UserPlus,onClick:()=>A(!0),children:B.users.newUser})]}),e.isLoading?(0,t.jsx)(M.LoadingState,{}):e.isError?(0,t.jsx)(M.ErrorState,{message:B.users.loadError,onRetry:()=>e.refetch()}):0===I.length?(0,t.jsx)(M.EmptyState,{title:B.users.empty,description:B.users.emptyDescription,icon:a.Users,action:(0,t.jsx)(j.Button,{variant:"accent",icon:l.UserPlus,onClick:()=>A(!0),children:B.users.newUser})}):(0,t.jsx)("ul",{className:"flex flex-col gap-2.5",children:I.map(e=>(0,t.jsxs)("li",{className:"card-interactive group flex items-center gap-3.5 rounded-lg border border-border bg-surface p-3.5",children:[(0,t.jsx)(b.Avatar,{user:e,size:48}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate font-semibold text-text",children:e.name||e.username}),e.is_admin?(0,t.jsxs)(v.Badge,{tone:"accent",children:[(0,t.jsx)(c.ShieldCheck,{size:11,className:"mr-1","aria-hidden":!0}),B.users.admin]}):null]}),(0,t.jsxs)("span",{className:"truncate font-mono text-xs text-text-muted",children:["@",e.username," · ",(0,P.localDateTime)(e.created_at,F,!1)]}),V?(0,t.jsx)(U,{userId:e.id,projects:i.data??[]}):null,V?(0,t.jsx)(T,{user:e,globalExecs:G,custom:O}):null]}),(0,t.jsx)("div",{className:"shrink-0 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:(0,t.jsx)(N.ActionMenu,{label:B.users.deleteLabel.replace("{username}",e.username),items:[...V?[{label:e.is_admin?B.users.removeAdmin:B.users.makeAdmin,icon:e.is_admin?o:c.ShieldCheck,onSelect:()=>{p.isPending||p.mutate({id:e.id,patch:{is_admin:!e.is_admin}},{onSuccess:()=>L(B.users.roleUpdated),onError:e=>L(String(e)||B.users.updateError,"error")})}}]:[],{label:I.length<=1?B.users.lastUserHint:B.users.delete,icon:n.Trash2,tone:"danger",onSelect:()=>{var t;I.length>1&&!u.isPending&&(t=e.id,u.mutate(t,{onSuccess:()=>L(B.users.userDeleted),onError:e=>L(String(e),"error")}))}}]})})]},e.id))}),_&&(0,t.jsx)(k.Modal,{title:B.users.addUser,onClose:()=>A(!1),size:"md",icon:l.UserPlus,children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),x.mutate({username:D,password:H},{onSuccess:()=>{L(B.users.userCreated),A(!1),R(""),$("")},onError:e=>L(String(e),"error")})},className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)(k.ModalBody,{gap:4,children:[(0,t.jsx)(w.Field,{label:B.users.fieldUsername,children:(0,t.jsx)(y.Input,{type:"text",value:D,onChange:e=>R(e.target.value),placeholder:B.auth.usernamePlaceholder,autoFocus:!0})}),(0,t.jsx)(w.Field,{label:B.auth.passwordPlaceholder,children:(0,t.jsx)(y.Input,{type:"password",value:H,onChange:e=>$(e.target.value),placeholder:B.auth.passwordPlaceholder})})]}),(0,t.jsxs)(k.ModalFooter,{children:[(0,t.jsx)(j.Button,{type:"button",variant:"ghost",onClick:()=>A(!1),children:B.common.cancel}),(0,t.jsx)(j.Button,{type:"submit",variant:"accent",icon:l.UserPlus,disabled:x.isPending||!D.trim()||!H,children:B.users.create})]})]})})]})}e.s(["default",0,function(){return(0,t.jsx)(s.ModuleShell,{moduleId:"users",children:(0,t.jsx)(z,{})})},"dynamic",0,"force-dynamic"],34965)}]);
@@ -0,0 +1,2 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--font-mono:var(--font-geist-mono), ui-monospace, "SF Mono", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.375rem;--radius-md:.375rem;--radius-lg:.75rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(.16, 1, .3, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.5rem;--color-bg:#000;--color-surface:#0a0a0a;--color-elevated:#131313;--color-border:#262626;--color-accent:#2584f5;--color-danger:#cc272e;--color-text:#f5f5f5;--color-text-muted:#868686;--color-border-strong:#414245;--text-display:2rem;--text-h1:1.5rem;--text-h2:1.125rem;--text-body:.875rem;--text-caption:.6875rem;--shadow-card:0 1px 2px 0 #0006;--shadow-raised:0 4px 16px -4px #0009;--color-success:#22c55e;--color-warning:#f59e0b;--color-error:#ef4444;--color-info:#3b82f6;--color-approve:#10b981;--color-cancelled:#6b7280;--text-tiny:.5rem;--motion-fast:.12s;--motion-base:.2s;--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}@supports (color:lab(0% 0 0)){:root,:host{--color-border:lab(15.32% 0 0);--color-accent:lab(54.432% 5.07051 -65.5236);--color-danger:lab(45.7636% 63.3818 40.1799);--color-text:lab(96.52% -.0000298023 .0000119209);--color-text-muted:lab(55.92% -.0000298023 0);--color-border-strong:lab(28.0684% -.371203 -1.83902)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.-top-0\.5{top:calc(var(--spacing) * -.5)}.-top-1\.5{top:calc(var(--spacing) * -1.5)}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-6{top:calc(var(--spacing) * 6)}.-right-0\.5{right:calc(var(--spacing) * -.5)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-2{right:calc(var(--spacing) * -2)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-5{right:calc(var(--spacing) * 5)}.-bottom-0\.5{bottom:calc(var(--spacing) * -.5)}.bottom-0{bottom:0}.bottom-5{bottom:calc(var(--spacing) * 5)}.bottom-6{bottom:calc(var(--spacing) * 6)}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[61\]{z-index:61}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.m-1{margin:var(--spacing)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-px{margin-top:1px}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-0\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-5{margin-left:calc(var(--spacing) * 5)}.ml-\[10\.25rem\]{margin-left:10.25rem}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-32{height:calc(var(--spacing) * 32)}.h-52{height:calc(var(--spacing) * 52)}.h-\[70vh\]{height:70vh}.h-\[88vh\]{height:88vh}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[88vh\]{max-height:88vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-\[2\.25rem\]{min-height:2.25rem}.min-h-\[6\.5rem\]{min-height:6.5rem}.min-h-\[8rem\]{min-height:8rem}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/3{width:33.3333%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-20{width:calc(var(--spacing) * 20)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-44{width:calc(var(--spacing) * 44)}.w-64{width:calc(var(--spacing) * 64)}.w-80{width:calc(var(--spacing) * 80)}.w-\[3px\]{width:3px}.w-\[13px\]{width:13px}.w-\[22rem\]{width:22rem}.w-\[80\%\]{width:80%}.w-\[80vw\]{width:80vw}.w-\[92vw\]{width:92vw}.w-\[264px\]{width:264px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-28{max-width:calc(var(--spacing) * 28)}.max-w-32{max-width:calc(var(--spacing) * 32)}.max-w-40{max-width:calc(var(--spacing) * 40)}.max-w-72{max-width:calc(var(--spacing) * 72)}.max-w-\[12rem\]{max-width:12rem}.max-w-\[18rem\]{max-width:18rem}.max-w-\[calc\(100vw-1rem\)\]{max-width:calc(100vw - 1rem)}.max-w-\[calc\(100vw-2\.5rem\)\]{max-width:calc(100vw - 2.5rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:0}.min-w-3\.5{min-width:calc(var(--spacing) * 3.5)}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-44{min-width:calc(var(--spacing) * 44)}.min-w-\[12rem\]{min-width:12rem}.min-w-\[14rem\]{min-width:14rem}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-4{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-50{--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-90{rotate:90deg}.rotate-\[1deg\]{rotate:1deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(84px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-px{gap:1px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[5px\]{border-radius:5px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--color-error\)\]\/30{border-color:#ef44444d}@supports (color:color-mix(in lab, red, red)){.border-\[var\(--color-error\)\]\/30{border-color:color-mix(in oklab, var(--color-error) 30%, transparent)}}.border-\[var\(--color-success\)\]\/30{border-color:#22c55e4d}@supports (color:color-mix(in lab, red, red)){.border-\[var\(--color-success\)\]\/30{border-color:color-mix(in oklab, var(--color-success) 30%, transparent)}}.border-accent{border-color:var(--color-accent)}.border-accent\/20{border-color:#2584f533}@supports (color:color-mix(in lab, red, red)){.border-accent\/20{border-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}.border-accent\/30{border-color:#2584f54d}@supports (color:color-mix(in lab, red, red)){.border-accent\/30{border-color:color-mix(in oklab, var(--color-accent) 30%, transparent)}}.border-accent\/40{border-color:#2584f566}@supports (color:color-mix(in lab, red, red)){.border-accent\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-accent\/50{border-color:#2584f580}@supports (color:color-mix(in lab, red, red)){.border-accent\/50{border-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.border-accent\/60{border-color:#2584f599}@supports (color:color-mix(in lab, red, red)){.border-accent\/60{border-color:color-mix(in oklab, var(--color-accent) 60%, transparent)}}.border-approve\/30{border-color:#10b9814d}@supports (color:color-mix(in lab, red, red)){.border-approve\/30{border-color:color-mix(in oklab, var(--color-approve) 30%, transparent)}}.border-approve\/50{border-color:#10b98180}@supports (color:color-mix(in lab, red, red)){.border-approve\/50{border-color:color-mix(in oklab, var(--color-approve) 50%, transparent)}}.border-border{border-color:var(--color-border)}.border-border-strong{border-color:var(--color-border-strong)}.border-danger{border-color:var(--color-danger)}.border-danger\/30{border-color:#cc272e4d}@supports (color:color-mix(in lab, red, red)){.border-danger\/30{border-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.border-danger\/40{border-color:#cc272e66}@supports (color:color-mix(in lab, red, red)){.border-danger\/40{border-color:color-mix(in oklab, var(--color-danger) 40%, transparent)}}.border-danger\/50{border-color:#cc272e80}@supports (color:color-mix(in lab, red, red)){.border-danger\/50{border-color:color-mix(in oklab, var(--color-danger) 50%, transparent)}}.border-danger\/60{border-color:#cc272e99}@supports (color:color-mix(in lab, red, red)){.border-danger\/60{border-color:color-mix(in oklab, var(--color-danger) 60%, transparent)}}.border-info\/30{border-color:#3b82f64d}@supports (color:color-mix(in lab, red, red)){.border-info\/30{border-color:color-mix(in oklab, var(--color-info) 30%, transparent)}}.border-success\/40{border-color:#22c55e66}@supports (color:color-mix(in lab, red, red)){.border-success\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-surface{border-color:var(--color-surface)}.border-transparent{border-color:#0000}.border-warning\/30{border-color:#f59e0b4d}@supports (color:color-mix(in lab, red, red)){.border-warning\/30{border-color:color-mix(in oklab, var(--color-warning) 30%, transparent)}}.border-warning\/40{border-color:#f59e0b66}@supports (color:color-mix(in lab, red, red)){.border-warning\/40{border-color:color-mix(in oklab, var(--color-warning) 40%, transparent)}}.border-warning\/50{border-color:#f59e0b80}@supports (color:color-mix(in lab, red, red)){.border-warning\/50{border-color:color-mix(in oklab, var(--color-warning) 50%, transparent)}}.border-warning\/60{border-color:#f59e0b99}@supports (color:color-mix(in lab, red, red)){.border-warning\/60{border-color:color-mix(in oklab, var(--color-warning) 60%, transparent)}}.border-t-accent\/40{border-top-color:#2584f566}@supports (color:color-mix(in lab, red, red)){.border-t-accent\/40{border-top-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-l-accent\/40{border-left-color:#2584f566}@supports (color:color-mix(in lab, red, red)){.border-l-accent\/40{border-left-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.bg-\[var\(--color-error\)\]{background-color:var(--color-error)}.bg-\[var\(--color-error\)\]\/10{background-color:#ef44441a}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--color-error\)\]\/10{background-color:color-mix(in oklab, var(--color-error) 10%, transparent)}}.bg-\[var\(--color-success\)\]{background-color:var(--color-success)}.bg-\[var\(--color-success\)\]\/10{background-color:#22c55e1a}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--color-success\)\]\/10{background-color:color-mix(in oklab, var(--color-success) 10%, transparent)}}.bg-\[var\(--color-text-muted\)\]{background-color:var(--color-text-muted)}.bg-accent{background-color:var(--color-accent)}.bg-accent\/10{background-color:#2584f51a}@supports (color:color-mix(in lab, red, red)){.bg-accent\/10{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.bg-accent\/15{background-color:#2584f526}@supports (color:color-mix(in lab, red, red)){.bg-accent\/15{background-color:color-mix(in oklab, var(--color-accent) 15%, transparent)}}.bg-accent\/40{background-color:#2584f566}@supports (color:color-mix(in lab, red, red)){.bg-accent\/40{background-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.bg-accent\/55{background-color:#2584f58c}@supports (color:color-mix(in lab, red, red)){.bg-accent\/55{background-color:color-mix(in oklab, var(--color-accent) 55%, transparent)}}.bg-accent\/60{background-color:#2584f599}@supports (color:color-mix(in lab, red, red)){.bg-accent\/60{background-color:color-mix(in oklab, var(--color-accent) 60%, transparent)}}.bg-accent\/\[0\.04\]{background-color:#2584f50a}@supports (color:color-mix(in lab, red, red)){.bg-accent\/\[0\.04\]{background-color:color-mix(in oklab, var(--color-accent) 4%, transparent)}}.bg-accent\/\[0\.06\]{background-color:#2584f50f}@supports (color:color-mix(in lab, red, red)){.bg-accent\/\[0\.06\]{background-color:color-mix(in oklab, var(--color-accent) 6%, transparent)}}.bg-accent\/\[0\.07\]{background-color:#2584f512}@supports (color:color-mix(in lab, red, red)){.bg-accent\/\[0\.07\]{background-color:color-mix(in oklab, var(--color-accent) 7.0%, transparent)}}.bg-accent\/\[0\.08\]{background-color:#2584f514}@supports (color:color-mix(in lab, red, red)){.bg-accent\/\[0\.08\]{background-color:color-mix(in oklab, var(--color-accent) 8%, transparent)}}.bg-approve\/10{background-color:#10b9811a}@supports (color:color-mix(in lab, red, red)){.bg-approve\/10{background-color:color-mix(in oklab, var(--color-approve) 10%, transparent)}}.bg-bg{background-color:var(--color-bg)}.bg-bg\/30{background-color:#0000004d}@supports (color:color-mix(in lab, red, red)){.bg-bg\/30{background-color:color-mix(in oklab, var(--color-bg) 30%, transparent)}}.bg-bg\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-bg\/40{background-color:color-mix(in oklab, var(--color-bg) 40%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.bg-black\/70{background-color:color-mix(in oklab, var(--color-black) 70%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-border-strong{background-color:var(--color-border-strong)}.bg-border\/40{background-color:#26262666}@supports (color:color-mix(in lab, red, red)){.bg-border\/40{background-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.bg-border\/50{background-color:#26262680}@supports (color:color-mix(in lab, red, red)){.bg-border\/50{background-color:color-mix(in oklab, var(--color-border) 50%, transparent)}}.bg-border\/60{background-color:#26262699}@supports (color:color-mix(in lab, red, red)){.bg-border\/60{background-color:color-mix(in oklab, var(--color-border) 60%, transparent)}}.bg-danger{background-color:var(--color-danger)}.bg-danger\/10{background-color:#cc272e1a}@supports (color:color-mix(in lab, red, red)){.bg-danger\/10{background-color:color-mix(in oklab, var(--color-danger) 10%, transparent)}}.bg-danger\/\[0\.04\]{background-color:#cc272e0a}@supports (color:color-mix(in lab, red, red)){.bg-danger\/\[0\.04\]{background-color:color-mix(in oklab, var(--color-danger) 4%, transparent)}}.bg-elevated{background-color:var(--color-elevated)}.bg-elevated\/40{background-color:#13131366}@supports (color:color-mix(in lab, red, red)){.bg-elevated\/40{background-color:color-mix(in oklab, var(--color-elevated) 40%, transparent)}}.bg-elevated\/60{background-color:#13131399}@supports (color:color-mix(in lab, red, red)){.bg-elevated\/60{background-color:color-mix(in oklab, var(--color-elevated) 60%, transparent)}}.bg-success{background-color:var(--color-success)}.bg-success\/10{background-color:#22c55e1a}@supports (color:color-mix(in lab, red, red)){.bg-success\/10{background-color:color-mix(in oklab, var(--color-success) 10%, transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-surface\/90{background-color:#0a0a0ae6}@supports (color:color-mix(in lab, red, red)){.bg-surface\/90{background-color:color-mix(in oklab, var(--color-surface) 90%, transparent)}}.bg-text-muted{background-color:var(--color-text-muted)}.bg-transparent{background-color:#0000}.bg-warning{background-color:var(--color-warning)}.bg-warning\/10{background-color:#f59e0b1a}@supports (color:color-mix(in lab, red, red)){.bg-warning\/10{background-color:color-mix(in oklab, var(--color-warning) 10%, transparent)}}.bg-warning\/15{background-color:#f59e0b26}@supports (color:color-mix(in lab, red, red)){.bg-warning\/15{background-color:color-mix(in oklab, var(--color-warning) 15%, transparent)}}.bg-warning\/\[0\.05\]{background-color:#f59e0b0d}@supports (color:color-mix(in lab, red, red)){.bg-warning\/\[0\.05\]{background-color:color-mix(in oklab, var(--color-warning) 5%, transparent)}}.bg-warning\/\[0\.06\]{background-color:#f59e0b0f}@supports (color:color-mix(in lab, red, red)){.bg-warning\/\[0\.06\]{background-color:color-mix(in oklab, var(--color-warning) 6%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-7{padding-block:calc(var(--spacing) * 7)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-\[12vh\]{padding-top:12vh}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-14{padding-right:calc(var(--spacing) * 14)}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-\[34px\]{padding-left:34px}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-display{font-size:var(--text-display)}.text-tiny{font-size:var(--text-tiny)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.15em\]{--tw-tracking:.15em;letter-spacing:.15em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[var\(--color-error\)\]{color:var(--color-error)}.text-\[var\(--color-success\)\]{color:var(--color-success)}.text-\[var\(--color-warning\)\]{color:var(--color-warning)}.text-accent{color:var(--color-accent)}.text-approve{color:var(--color-approve)}.text-black{color:var(--color-black)}.text-danger{color:var(--color-danger)}.text-error{color:var(--color-error)}.text-info{color:var(--color-info)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-muted{color:var(--color-text-muted)}.text-text-muted\/40{color:#86868666}@supports (color:color-mix(in lab, red, red)){.text-text-muted\/40{color:color-mix(in oklab, var(--color-text-muted) 40%, transparent)}}.text-text-muted\/50{color:#86868680}@supports (color:color-mix(in lab, red, red)){.text-text-muted\/50{color:color-mix(in oklab, var(--color-text-muted) 50%, transparent)}}.text-text-muted\/60{color:#86868699}@supports (color:color-mix(in lab, red, red)){.text-text-muted\/60{color:color-mix(in oklab, var(--color-text-muted) 60%, transparent)}}.text-text-muted\/70{color:#868686b3}@supports (color:color-mix(in lab, red, red)){.text-text-muted\/70{color:color-mix(in oklab, var(--color-text-muted) 70%, transparent)}}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-\[var\(--shadow-raised\)\]{--tw-shadow:var(--shadow-raised);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-\[color\,background-color\,border-color\,transform\]{transition-property:color,background-color,border-color,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:block:is(:where(.group):hover *){display:block}.group-hover\:hidden:is(:where(.group):hover *){display:none}.group-hover\:h-12:is(:where(.group):hover *){height:calc(var(--spacing) * 12)}.group-hover\:bg-text-muted:is(:where(.group):hover *){background-color:var(--color-text-muted)}.group-hover\:text-accent:is(:where(.group):hover *){color:var(--color-accent)}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/epic\:opacity-100:is(:where(.group\/epic):hover *){opacity:1}}.placeholder\:text-text-muted::placeholder{color:var(--color-text-muted)}.focus-within\:opacity-100:focus-within{opacity:1}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-150:hover{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-accent:hover{border-color:var(--color-accent)}.hover\:border-accent\/50:hover{border-color:#2584f580}@supports (color:color-mix(in lab, red, red)){.hover\:border-accent\/50:hover{border-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\:border-accent\/60:hover{border-color:#2584f599}@supports (color:color-mix(in lab, red, red)){.hover\:border-accent\/60:hover{border-color:color-mix(in oklab, var(--color-accent) 60%, transparent)}}.hover\:border-border-strong:hover{border-color:var(--color-border-strong)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-accent\/10:hover{background-color:#2584f51a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.hover\:bg-accent\/\[0\.06\]:hover{background-color:#2584f50f}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/\[0\.06\]:hover{background-color:color-mix(in oklab, var(--color-accent) 6%, transparent)}}.hover\:bg-approve:hover{background-color:var(--color-approve)}.hover\:bg-bg:hover{background-color:var(--color-bg)}.hover\:bg-danger:hover{background-color:var(--color-danger)}.hover\:bg-danger\/10:hover{background-color:#cc272e1a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-danger\/10:hover{background-color:color-mix(in oklab, var(--color-danger) 10%, transparent)}}.hover\:bg-elevated:hover{background-color:var(--color-elevated)}.hover\:bg-elevated\/80:hover{background-color:#131313cc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-elevated\/80:hover{background-color:color-mix(in oklab, var(--color-elevated) 80%, transparent)}}.hover\:bg-surface:hover{background-color:var(--color-surface)}.hover\:bg-warning\/10:hover{background-color:#f59e0b1a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-warning\/10:hover{background-color:color-mix(in oklab, var(--color-warning) 10%, transparent)}}.hover\:text-accent:hover{color:var(--color-accent)}.hover\:text-bg:hover{color:var(--color-bg)}.hover\:text-text:hover{color:var(--color-text)}.hover\:text-text-muted:hover{color:var(--color-text-muted)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}}.focus\:border-accent:focus{border-color:var(--color-accent)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-accent:focus-visible{--tw-ring-color:var(--color-accent)}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:scale-\[0\.97\]:active{scale:.97}.active\:scale-\[0\.98\]:active{scale:.98}.active\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.enabled\:hover\:text-text:enabled:hover{color:var(--color-text)}}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:active\:scale-100:disabled:active{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media (min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-44{width:calc(var(--spacing) * 44)}.sm\:w-52{width:calc(var(--spacing) * 52)}.sm\:w-auto{width:auto}.sm\:min-w-\[14rem\]{min-width:14rem}.sm\:flex-1{flex:1}.sm\:shrink{flex-shrink:1}.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:pl-0{padding-left:0}}@media (min-width:48rem){.md\:sticky{position:sticky}.md\:top-0{top:0}.md\:top-\[57px\]{top:57px}.md\:mx-0{margin-inline:0}.md\:ml-auto{margin-left:auto}.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-44{width:calc(var(--spacing) * 44)}.md\:w-full{width:100%}.md\:flex-col{flex-direction:column}.md\:flex-row{flex-direction:row}.md\:flex-wrap{flex-wrap:wrap}.md\:items-center{align-items:center}.md\:items-start{align-items:flex-start}.md\:gap-x-3{column-gap:calc(var(--spacing) * 3)}.md\:overflow-visible{overflow:visible}.md\:px-0{padding-inline:0}.md\:pb-0{padding-bottom:0}}@media (min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-16{top:calc(var(--spacing) * 16)}.lg\:mt-0{margin-top:0}.lg\:flex{display:flex}.lg\:max-h-\[calc\(100vh-80px\)\]{max-height:calc(100vh - 80px)}.lg\:w-72{width:calc(var(--spacing) * 72)}.lg\:w-\[42\%\]{width:42%}.lg\:flex-1{flex:1}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1\.3fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:items-start{align-items:flex-start}.lg\:gap-5{gap:calc(var(--spacing) * 5)}.lg\:overflow-y-auto{overflow-y:auto}}@media (min-width:80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}.card-interactive{box-shadow:var(--shadow-card);transition:border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out)}.card-interactive:hover{border-color:var(--color-border-strong);box-shadow:var(--shadow-raised);transform:translateY(-1px)}html{font-size:100%}@media (min-width:768px){html{font-size:125%}}html,body{background:var(--color-bg);height:100%;color:var(--color-text);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-weight:400}body{overscroll-behavior:none;overflow:hidden}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes fade-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes pop-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes skel-pulse{0%,to{opacity:1}50%{opacity:.45}}@keyframes live-ring{0%{box-shadow:0 0 0 0 var(--live-ring,#10b98180)}70%,to{box-shadow:0 0 0 5px #0000}}.animate-fade-up{animation:fade-up .26s var(--ease-out) both}.animate-pop-in{animation:pop-in .18s var(--ease-out) both}@keyframes route-fade{0%{opacity:0}to{opacity:1}}.animate-route{animation:route-fade .2s var(--ease-out) both}@keyframes draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:draw .6s var(--ease-out) forwards}.skeleton{background:var(--color-elevated);border-radius:var(--radius-sm);animation:1.4s ease-in-out infinite skel-pulse}.live-dot{position:relative}.live-dot:after{content:"";border-radius:9999px;animation:2s ease-out infinite live-ring;position:absolute;inset:0}@keyframes flow-dash-v{to{background-position:0 -8px}}@keyframes flow-dash-h{to{background-position:8px 0}}.flow-edge{background-image:repeating-linear-gradient(to bottom, var(--color-border-strong) 0 4px, transparent 4px 8px);background-position:0 0;background-repeat:repeat-y;background-size:1px 8px;animation:.7s linear infinite flow-dash-v}.flow-edge-h{background-image:repeating-linear-gradient(to right, var(--color-border-strong) 0 4px, transparent 4px 8px);background-position:0 0;background-repeat:repeat-x;background-size:8px 1px;animation:.7s linear infinite flow-dash-h}.flow-edge-active{background-image:repeating-linear-gradient(to bottom, var(--color-accent) 0 4px, transparent 4px 8px)}@keyframes flow-pulse{0%,to{box-shadow:0 0 0 0 color-mix(in srgb, var(--color-accent) 0%, transparent)}50%{box-shadow:0 0 0 2px color-mix(in srgb, var(--color-accent) 45%, transparent)}}.flow-active{animation:1.8s ease-in-out infinite flow-pulse}@media (prefers-reduced-motion:reduce){.animate-fade-up,.animate-pop-in,.animate-route,.skeleton,.live-dot:after,.animate-draw,.flow-edge,.flow-edge-h,.flow-active{animation:none!important}.animate-draw{stroke-dashoffset:0}.card-interactive:hover{transform:none}}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[role=switch]:focus-visible,[role=radio]:focus-visible,[role=checkbox]:focus-visible{box-shadow:0 0 0 1px var(--color-accent), inset 0 0 0 1px var(--color-accent);outline:none}*{scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-text-muted)}.xterm-viewport::-webkit-scrollbar-thumb{background:var(--color-border)}.markdown-preview{max-width:52rem}.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4{margin:1.4em 0 .6em;font-weight:600;line-height:1.25}.markdown-preview h1{font-size:1.6em}.markdown-preview h2{font-size:1.35em}.markdown-preview h3{font-size:1.15em}.markdown-preview h1,.markdown-preview h2{border-bottom:1px solid var(--color-border);padding-bottom:.3em}.markdown-preview p,.markdown-preview ul,.markdown-preview ol,.markdown-preview blockquote,.markdown-preview pre,.markdown-preview table{margin:.7em 0}.markdown-preview ul,.markdown-preview ol{padding-left:1.5em}.markdown-preview ul{list-style:outside}.markdown-preview ol{list-style:decimal}.markdown-preview li{margin:.25em 0}.markdown-preview a{color:var(--color-accent);text-decoration:underline}.markdown-preview code{background:var(--color-elevated);font-family:var(--font-mono,monospace);border-radius:4px;padding:.1em .35em;font-size:.9em}.markdown-preview pre{background:var(--color-bg);border:1px solid var(--color-border);border-radius:6px;padding:.9em;overflow:auto}.markdown-preview pre code{background:0 0;padding:0}.markdown-preview blockquote{border-left:3px solid var(--color-border);color:var(--color-text-muted);padding-left:1em}.markdown-preview table{border-collapse:collapse}.markdown-preview th,.markdown-preview td{border:1px solid var(--color-border);padding:.4em .7em}.markdown-preview hr{border:none;border-top:1px solid var(--color-border);margin:1.4em 0}.markdown-preview img{max-width:100%}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
2
+ @font-face{font-family:GeistMono;src:url(../media/GeistMono_Variable.p.3ms9vq719j3f8.woff2)format("woff2");font-display:swap;font-weight:100 900}.geistmono_157ca88a-module__iaM1Ya__className{font-family:GeistMono,ui-monospace,SFMono-Regular,Roboto Mono,Menlo,Monaco,Liberation Mono,DejaVu Sans Mono,Courier New,monospace}.geistmono_157ca88a-module__iaM1Ya__variable{--font-geist-mono:"GeistMono", ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace}
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7835,e=>{"use strict";let t=(0,e.i(75254).default)("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);e.s(["Radio",0,t],7835)},31245,e=>{"use strict";let t=(0,e.i(75254).default)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],31245)},52008,e=>{"use strict";let t=(0,e.i(75254).default)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);e.s(["Layers",0,t],52008)},84375,e=>{"use strict";var t=e.i(43476);e.s(["Segmented",0,function({options:e,value:s,onChange:a}){return(0,t.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:e.map(e=>{let l=e.value===s,n=e.icon;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":l,"aria-label":e.label,onClick:()=>a(e.value),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${l?"border-accent/50 bg-accent/15 text-accent":"border-border bg-elevated text-text-muted hover:border-border-strong hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[n?(0,t.jsx)(n,{size:13,"aria-hidden":!0}):null,e.label]},e.value)})})}])},40310,e=>{"use strict";var t=e.i(71645);e.s(["usePersistentState",0,function(e,s,a){let[l,n]=(0,t.useState)(s);return(0,t.useEffect)(()=>{try{let t=localStorage.getItem(e);if(null===t)return;("function"==typeof a?a(t):a.includes(t))&&n(t)}catch{}},[e]),[l,(0,t.useCallback)(t=>{n(t);try{localStorage.setItem(e,t)}catch{}},[e])]}])},45601,e=>{"use strict";let t=[["codex:","codex"],["opencode:","opencode"],["claude:","claude-code"]];e.s(["buildExec",0,function(e,t){let s=t.trim();return"codex"===e?`codex:${s}`:"opencode"===e?s.includes("/")?s:`opencode:${s}`:s.includes("/")?`claude:${s}`:s},"execModel",0,function(e){for(let[s]of t)if(e.startsWith(s))return e.slice(s.length);return e},"execProvider",0,function(e){for(let[s,a]of t)if(e.startsWith(s))return a;return e.includes("/")?"opencode":"claude-code"}])},51509,e=>{"use strict";var t=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:s,icon:a,children:l}){return(0,t.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[a?(0,t.jsx)(a,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,t.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==s?(0,t.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:s}):null]}),l?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:l}):null]})}])},44375,e=>{"use strict";var t=e.i(43476),s=e.i(76525);e.i(69530);var a=e.i(2942);e.s(["EmptyState",0,function({title:e,description:s,icon:a,action:l}){return(0,t.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[a?(0,t.jsx)(a,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),s&&(0,t.jsx)("p",{className:"text-xs text-text-muted",children:s})]}),l]})},"ErrorState",0,function({message:e,onRetry:l}){let{t:n}=(0,a.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-accent",children:e}),l&&(0,t.jsx)(s.Button,{onClick:l,children:n.common.retry})]})},"LoadingState",0,function({label:e,variant:s="list"}){let{t:l}=(0,a.useTranslation)();return e?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===s?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===s?(0,t.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4].map(e=>(0,t.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,t.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":l.common.loading,children:[88,72,80,64].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,t.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},s))})}])},26178,e=>{"use strict";var t=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:s}){return(0,t.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:s})}])},89890,e=>{"use strict";var t=e.i(43476);let s={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};e.s(["Badge",0,function({children:e,tone:a="default"}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${s[a]}`,children:e})}])},46040,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(74080);e.i(69530);var l=e.i(2942);let n={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};e.s(["Modal",0,function({title:e,onClose:r,children:i,size:d="lg",icon:o,description:c}){let{t:x}=(0,l.useTranslation)(),[u,m]=(0,s.useState)(!1);return((0,s.useEffect)(()=>m(!0),[]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]),u)?(0,a.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:r,children:(0,t.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${n[d]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[o?(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(o,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:e}),c?(0,t.jsx)("p",{className:"truncate text-xs text-text-muted",children:c}):null]}),(0,t.jsx)("button",{type:"button","aria-label":x.common.close,onClick:r,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:i})]})}),document.body):null},"ModalBody",0,function({children:e,gap:s=5}){return(0,t.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===s?"gap-4":6===s?"gap-6":"gap-5"}`,children:e})},"ModalFooter",0,function({children:e}){return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:e})}])},27612,e=>{"use strict";let t=(0,e.i(75254).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,t],27612)},88699,e=>{"use strict";let t=(0,e.i(75254).default)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],88699)},78894,e=>{"use strict";var t=e.i(82458);e.s(["AlertTriangle",()=>t.default])},94321,e=>{"use strict";var t=e.i(43476);e.s(["Field",0,function({label:e,htmlFor:s,children:a,hint:l}){return(0,t.jsxs)("label",{htmlFor:s,className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),a,l?(0,t.jsx)("span",{className:"text-xs text-text-muted",children:l}):null]})}])},16302,e=>{"use strict";let t=[{label:"GLM 5.2",exec:"ollama-cloud/glm-5.2"},{label:"GPT 5.5",exec:"codex:gpt-5.5"},{label:"Claude Sonnet 4.5",exec:"sonnet"},{label:"Claude Opus 4.8",exec:"opus"},{label:"DeepSeek V4 Pro",exec:"ollama-cloud/deepseek-v4-pro"},{label:"Kimi k2.7 Code",exec:"ollama/kimi-k2.7-code"},{label:"MiniMax M3",exec:"ollama-cloud/minimax-m3"},{label:"DeepSeek v4 Flash",exec:"ollama-cloud/deepseek-v4-flash"},{label:"MiniMax M2.7",exec:"ollama-cloud/minimax-m2.7"},{label:"GLM 5.1",exec:"ollama-cloud/glm-5.1"},{label:"QWEN 3.5",exec:"ollama-cloud/qwen3.5"}];e.s(["EXEC_PRESETS",0,t,"allModels",0,function(e=[],s=[]){let a=new Set(e.map(e=>e.exec)),l=new Set(s);return[...t.filter(e=>!a.has(e.exec)&&!l.has(e.exec)),...e]}])},71120,e=>{"use strict";var t=e.i(43476);e.s(["Select",0,function({className:e="",children:s,...a}){let l=e.trim();return(0,t.jsx)("select",{className:`h-9 w-full rounded-md border border-border bg-surface px-3 text-sm text-text transition-colors focus:border-accent focus:outline-none disabled:opacity-40 disabled:cursor-not-allowed${l?` ${l}`:""}`,...a,children:s})}])},58524,e=>{"use strict";let t=(0,e.i(75254).default)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["Link2",0,t],58524)},56156,e=>{"use strict";var t=e.i(43476);e.s(["Toggle",0,function({checked:e,onChange:s,label:a,disabled:l=!1}){return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":a,disabled:l,onClick:()=>!l&&s(!e),className:`inline-flex h-5 w-9 items-center border border-border px-0.5 transition-colors ${e?"bg-accent":"bg-elevated"} ${l?"opacity-40":"cursor-pointer"}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,t.jsx)("span",{className:`block h-3.5 w-3.5 transition-transform ${e?"translate-x-4 bg-bg":"translate-x-0 bg-text-muted"}`,style:{transitionDuration:"var(--motion-base)",transitionTimingFunction:"var(--ease-spring)"}})})}])},29618,e=>{"use strict";var t=e.i(43476),s=e.i(78894),a=e.i(46040),l=e.i(76525);e.i(69530);var n=e.i(2942);e.s(["ConfirmDialog",0,function({open:e,title:r,description:i,confirmLabel:d,onConfirm:o,onClose:c}){let{t:x}=(0,n.useTranslation)();return e?(0,t.jsxs)(a.Modal,{title:r,onClose:c,size:"sm",icon:s.AlertTriangle,children:[(0,t.jsx)(a.ModalBody,{children:i?(0,t.jsx)("p",{className:"text-sm leading-relaxed text-text-muted",children:i}):null}),(0,t.jsxs)(a.ModalFooter,{children:[(0,t.jsx)(l.Button,{variant:"ghost",onClick:c,children:x.common.cancel}),(0,t.jsx)(l.Button,{variant:"danger",onClick:o,children:d??x.common.delete})]})]}):null}])},78583,e=>{"use strict";let t=(0,e.i(75254).default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],78583)},65261,92025,e=>{"use strict";let t=(0,e.i(75254).default)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,t],65261);var s=e.i(43476);e.s(["SettingCard",0,function({title:e,description:t,icon:a,children:l}){return(0,s.jsxs)("div",{className:"card-interactive flex flex-col gap-3.5 rounded-lg border border-border bg-surface p-5",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[a?(0,s.jsx)(a,{size:16,className:"mt-0.5 text-text-muted","aria-hidden":!0}):null,(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text",children:e}),t?(0,s.jsx)("span",{className:"font-mono text-xs text-text-muted",children:t}):null]})]}),(0,s.jsx)("div",{children:l})]})}],92025)},86536,e=>{"use strict";let t=(0,e.i(75254).default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],86536)},56909,e=>{"use strict";let t=(0,e.i(75254).default)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],56909)},84659,85585,e=>{"use strict";var t=e.i(43476);let s=[{id:"claude-code",label:"Claude Code",color:"#d97757",binHint:"claude",argsHint:"--permission-mode acceptEdits",icon:"/providers/anthropic.png"},{id:"opencode",label:"OpenCode",color:"#7c8cff",binHint:"opencode",argsHint:"--pure",icon:"/providers/opencode.png"},{id:"codex",label:"Codex",color:"#ededed",binHint:"codex",argsHint:"--full-auto",icon:"/providers/openai.svg"}],a=e=>s.find(t=>t.id===e);e.s(["PROVIDERS",0,s,"ProviderLogo",0,function({meta:e,alt:s,size:a=36}){return(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border bg-elevated",style:{width:a,height:a},children:(0,t.jsx)("img",{src:e.icon,alt:s??e.label,width:.62*a,height:.62*a,style:{objectFit:"contain"}})})},"ProviderTag",0,function({id:e}){let s=a(e);return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-elevated/60 px-2 py-1 text-[11px] text-text-muted",children:[(0,t.jsx)("img",{src:s.icon,alt:"",width:13,height:13,style:{objectFit:"contain"},"aria-hidden":!0}),s.label]}):null},"providerMeta",0,a],84659);var l=e.i(71645),n=e.i(51981),r=e.i(4552);e.s(["useHermesForm",0,function(){let[e,t]=(0,l.useState)(""),[s,a]=(0,l.useState)(""),[i,d]=(0,l.useState)(""),o=(0,n.useHermesStatus)(e),c=(0,r.useHermesInstall)();return(0,l.useEffect)(()=>{a(window.location.origin)},[]),{home:e,setHome:t,url:s,setUrl:a,token:i,setToken:d,status:o,install:c}}],85585)},32545,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(56909),l=e.i(75254);let n=(0,l.default)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);var r=e.i(31245);let i=(0,l.default)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);var d=e.i(7233),o=e.i(37727),c=e.i(88699);let x=(0,l.default)("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);var u=e.i(7835),m=e.i(66992);let g=(0,l.default)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var h=e.i(52008),p=e.i(58524),b=e.i(65261),f=e.i(78583),v=e.i(86536);let j=(0,l.default)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var y=e.i(27612),N=e.i(84659),k=e.i(89901),S=e.i(71120),w=e.i(46040),M=e.i(76525),C=e.i(1206),E=e.i(94321);e.i(69530);var P=e.i(2942),D=e.i(45601);function L({initial:e,existingExecs:a,activeProviders:l,onClose:n,onSave:r}){let{t:i}=(0,P.useTranslation)(),d=!!e,o=[...l,...e&&!l.includes((0,D.execProvider)(e.exec))?[(0,D.execProvider)(e.exec)]:[],"other"],[c,x]=(0,s.useState)(e?.label??""),[u,g]=(0,s.useState)(e?(0,D.execProvider)(e.exec):l[0]??"other"),[h,p]=(0,s.useState)(e?(0,D.execModel)(e.exec):""),[b,f]=(0,s.useState)(e?.exec??""),v=("other"===u?b:(0,D.buildExec)(u,h)).trim(),j=!!v&&v!==e?.exec&&a.has(v),y=!!c.trim()&&!!v&&!j;return(0,t.jsxs)(w.Modal,{title:d?i.settings.editModelTitle:i.settings.addModelTitle,onClose:n,size:"md",icon:m.Cpu,children:[(0,t.jsxs)(w.ModalBody,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-elevated/40 p-3",children:[(0,t.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border border-border bg-bg",children:(0,t.jsx)(k.ModelIcon,{name:v||h,size:24})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-text",children:c.trim()||i.settings.addModelTitle}),(0,t.jsx)("div",{className:"truncate font-mono text-xs text-text-muted",children:v||"—"})]})]}),(0,t.jsx)(E.Field,{label:i.settings.labelLabel,children:(0,t.jsx)(C.Input,{value:c,onChange:e=>x(e.target.value),placeholder:i.settings.modelPlaceholder,autoFocus:!0})}),(0,t.jsx)(E.Field,{label:i.settings.fieldProvider,hint:i.settings.providerHint,children:(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:o.map(e=>{let s=(0,N.providerMeta)(e),a=u===e;return(0,t.jsxs)("button",{type:"button",onClick:()=>g(e),"aria-pressed":a,className:`flex flex-col items-center gap-1.5 rounded-lg border p-2.5 transition-colors ${a?"border-accent bg-accent/[0.07]":"border-border bg-surface hover:border-border-strong"}`,children:[s?(0,t.jsx)("img",{src:s.icon,alt:"",width:18,height:18,style:{objectFit:"contain"},"aria-hidden":!0}):(0,t.jsx)(m.Cpu,{size:18,className:"text-text-muted","aria-hidden":!0}),(0,t.jsx)("span",{className:"text-[11px] text-text",children:s?.label??i.settings.providerOther})]},e)})})}),"other"===u?(0,t.jsx)(E.Field,{label:i.settings.execLabel,hint:i.settings.execPlaceholder,children:(0,t.jsx)(C.Input,{value:b,onChange:e=>f(e.target.value),placeholder:i.settings.execPlaceholder,className:"font-mono"})}):(0,t.jsx)(E.Field,{label:i.settings.fieldModelId,hint:i.settings.modelIdHint,children:(0,t.jsx)(C.Input,{value:h,onChange:e=>p(e.target.value),placeholder:i.settings.modelIdPlaceholder,className:"font-mono"})}),"other"!==u&&h.trim()?(0,t.jsxs)("p",{className:"-mt-2 text-xs text-text-muted",children:[i.settings.execResolvesTo," ",(0,t.jsx)("code",{className:"font-mono text-text",children:v})]}):null,j?(0,t.jsx)("p",{className:"-mt-2 text-xs text-danger",children:i.settings.execDuplicate}):null]}),(0,t.jsxs)(w.ModalFooter,{children:[(0,t.jsx)(M.Button,{variant:"ghost",onClick:n,children:i.settings.cancel}),(0,t.jsx)(M.Button,{variant:"accent",disabled:!y,onClick:()=>{y&&r({label:c.trim(),exec:v})},children:d?i.settings.save:i.settings.add})]})]})}function T({label:e,exec:a,initial:l,onClose:n,onSave:r}){let{t:i}=(0,P.useTranslation)(),[d,o]=(0,s.useState)(l);return(0,t.jsxs)(w.Modal,{title:i.settings.modelNoteLabel,description:e,onClose:n,size:"md",icon:f.FileText,children:[(0,t.jsx)(w.ModalBody,{children:(0,t.jsx)(E.Field,{label:`${e} \xb7 ${a}`,hint:i.settings.modelNoteHint,children:(0,t.jsx)("textarea",{"aria-label":i.settings.modelNoteLabel,value:d,onChange:e=>o(e.target.value),placeholder:i.settings.modelNotePlaceholder,rows:4,autoFocus:!0,className:"w-full resize-y rounded-lg border border-border bg-surface p-2.5 text-sm text-text outline-none transition-colors focus:border-accent",style:{transitionDuration:"var(--motion-fast)"}})})}),(0,t.jsxs)(w.ModalFooter,{children:[(0,t.jsx)(M.Button,{variant:"ghost",onClick:n,children:i.settings.cancel}),(0,t.jsx)(M.Button,{variant:"accent",onClick:()=>r(d.trim()),children:i.settings.save})]})]})}var z=e.i(51981),H=e.i(4552),F=e.i(40273),I=e.i(85585),B=e.i(16302),R=e.i(40310),$=e.i(80809),V=e.i(51509),O=e.i(89890),A=e.i(56156),K=e.i(84375),U=e.i(92025),q=e.i(29618);let Z=(0,l.default)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function G({children:e,align:a="right"}){let[l,n]=(0,s.useState)(!1),{t:r}=(0,P.useTranslation)();return(0,t.jsxs)("span",{className:"relative inline-flex",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[(0,t.jsx)("button",{type:"button","aria-label":r.common.help,onFocus:()=>n(!0),onBlur:()=>n(!1),className:"inline-flex h-4 w-4 items-center justify-center text-text-muted transition-colors hover:text-text",children:(0,t.jsx)(Z,{size:14,"aria-hidden":!0})}),l&&(0,t.jsx)("span",{role:"tooltip",className:`absolute top-6 z-50 w-64 rounded-md border border-border bg-surface p-3 text-xs leading-relaxed text-text-muted ${"right"===a?"right-0":"left-0"}`,style:{boxShadow:"var(--shadow-raised)"},children:e})]})}var _=e.i(44375),W=e.i(26178);let X="w-full rounded-md border border-border bg-bg px-3 py-2 text-sm text-text placeholder:text-text-muted transition-colors focus:border-accent",J=new Set(B.EXEC_PRESETS.map(e=>e.exec));function Q({value:e,onChange:s,models:a,relayLabel:l,allowRelay:n=!0}){let r=new Set(a.map(e=>e.exec));return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-bg","aria-hidden":!0,children:e?(0,t.jsx)(k.ModelIcon,{name:e,size:16}):(0,t.jsx)(u.Radio,{size:14,className:"text-text-muted"})}),(0,t.jsxs)(S.Select,{value:e,onChange:e=>s(e.target.value),children:[n?(0,t.jsx)("option",{value:"",children:l}):null,e&&!r.has(e)?(0,t.jsx)("option",{value:e,children:e}):null,a.map(e=>(0,t.jsx)("option",{value:e.exec,children:e.label},e.exec))]})]})}function Y({value:e,onChange:s,placeholder:a}){return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-bg","aria-hidden":!0,children:(0,t.jsx)(k.ModelIcon,{name:e,size:16})}),(0,t.jsx)("input",{value:e,onChange:e=>s(e.target.value),className:X,placeholder:a})]})}let ee=["models","autopilot","providers","defaults","hermes","data"];e.s(["default",0,function(){let e=(0,z.useConfig)(),l=(0,H.useUpdateConfig)(),S=(0,H.useCleanupAll)(),w=(0,z.useMe)(),{toast:Z}=(0,$.useToast)(),{t:et}=(0,P.useTranslation)(),[es,ea]=(0,s.useState)(!1),[el,en]=(0,R.usePersistentState)("orca.settings.category","models",ee),[er,ei]=(0,s.useState)([]),[ed,eo]=(0,s.useState)([]),[ec,ex]=(0,s.useState)({}),[eu,em]=(0,s.useState)(null),[eg,eh]=(0,s.useState)(""),[ep,eb]=(0,s.useState)(""),[ef,ev]=(0,s.useState)(""),[ej,ey]=(0,s.useState)(""),[eN,ek]=(0,s.useState)("relay"),[eS,ew]=(0,s.useState)(!1),[eM,eC]=(0,s.useState)(""),[eE,eP]=(0,s.useState)(""),[eD,eL]=(0,s.useState)(""),[eT,ez]=(0,s.useState)(""),[eH,eF]=(0,s.useState)({}),[eI,eB]=(0,s.useState)(""),[eR,e$]=(0,s.useState)(null),[eV,eO]=(0,s.useState)(null),[eA,eK]=(0,s.useState)(!1),eU=(0,z.usePlanJob)(eV),eq=eA||null!==eV,eZ=async()=>{eK(!0);try{let{jobId:e}=await F.orcaClient.planPreview({goal:eI.trim(),prompt:eT});eO(e)}catch(e){e instanceof F.OrcaApiError&&"autopilot_key_missing"===e.code?Z(et.settings.setApiKeyFirst,"error"):Z(String(e),"error")}finally{eK(!1)}};(0,s.useEffect)(()=>{let e=eU.data;e&&eV&&("done"===e.status?(e$(e.phases),eO(null)):"failed"===e.status&&(Z(et.settings.planFailed,"error"),eO(null)))},[eU.data,eV]);let[eG,e_]=(0,s.useState)(""),[eW,eX]=(0,s.useState)(""),[eJ,eQ]=(0,s.useState)(1),[eY,e0]=(0,s.useState)(30),[e1,e2]=(0,s.useState)(!1),[e5,e4]=(0,s.useState)(null),[e3,e6]=(0,s.useState)([]),[e8,e7]=(0,s.useState)(null),{home:e9,setHome:te,url:tt,setUrl:ts,token:ta,setToken:tl,status:tn,install:tr}=(0,I.useHermesForm)(),ti=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{e.data&&!ti.current&&(ti.current=!0,ei(e.data.allowedExecs),eo(e.data.customModels??[]),ex(e.data.modelNotes??{}),e6(e.data.hiddenPresets??[]),eh(e.data.autopilot.model),eb(e.data.autopilot.overseerModel??""),ev(e.data.autopilot.pilotExec??""),ey(e.data.autopilot.overseerExec??""),ew(e.data.autopilot.reviewOnDone??!1),ek(e.data.autopilot.pilotExec||e.data.autopilot.overseerExec?"agents":"relay"),eC(e.data.autopilot.apiUrl),eL(e.data.autopilot.notes),ez(e.data.autopilot.prompt),eF(e.data.providers??{}),e_(e.data.defaults.exec),eX(e.data.defaults.autonomy),eQ(e.data.defaults.maxSessions),e0(e.data.security?.tokenTtlDays??30))},[e.data]),e.isLoading)return(0,t.jsxs)(W.ModuleShell,{moduleId:"settings",children:[(0,t.jsx)(V.ModuleHeader,{title:et.page.settings,icon:i}),(0,t.jsx)(_.LoadingState,{})]});if(e.isError)return(0,t.jsxs)(W.ModuleShell,{moduleId:"settings",children:[(0,t.jsx)(V.ModuleHeader,{title:et.page.settings,icon:i}),(0,t.jsx)(_.ErrorState,{message:et.common.daemonUnreachable,onRetry:()=>e.refetch()})]});if(w.data?.user&&!w.data.user.is_admin)return(0,t.jsxs)(W.ModuleShell,{moduleId:"settings",children:[(0,t.jsx)(V.ModuleHeader,{title:et.page.settings,icon:i}),(0,t.jsx)(_.EmptyState,{title:et.settings.adminOnly,description:et.settings.adminOnlyDesc,icon:j})]});let td=e.data?.autopilot.apiKeySet,to=()=>{e2(!1),e4(null)},tc=(e,t=!1)=>{let s=e.allowed??er,a=e.customModels??ed,n=e.hiddenPresets??e3,r=e.modelNotes??ec;ei(s),eo(a),e6(n),ex(r),l.mutate({allowedExecs:s,customModels:a,hiddenPresets:n,modelNotes:r},{onSuccess:()=>{t||Z(et.settings.modelsSaved)},onError:e=>Z(String(e),"error")})},tx=[{id:"models",icon:n},{id:"autopilot",icon:r.Bot},{id:"providers",icon:x},{id:"defaults",icon:i},{id:"hermes",icon:u.Radio},{id:"data",icon:y.Trash2}],tu={autopilot:{label:et.settings.saveAutopilot,onClick:()=>l.mutate({autopilot:"agents"===eN?{pilotExec:ef,overseerExec:ej,reviewOnDone:eS,notes:eD,prompt:eT}:{model:eg,overseerModel:ep,apiUrl:eM,pilotExec:"",overseerExec:"",notes:eD,prompt:eT,...eE?{apiKey:eE}:{}}},{onSuccess:()=>{Z(et.settings.autopilotSaved),eP("")},onError:e=>Z(String(e),"error")})},providers:{label:et.settings.saveProviders,onClick:()=>l.mutate({providers:eH},{onSuccess:()=>Z(et.settings.providersSaved),onError:e=>Z(String(e),"error")})},defaults:{label:et.settings.saveDefaults,onClick:()=>l.mutate({defaults:{exec:eG,autonomy:eW,maxSessions:eJ},security:{tokenTtlDays:eY}},{onSuccess:()=>Z(et.settings.defaultsSaved),onError:e=>Z(String(e),"error")})}},tm="hermes"===el||"models"===el||"data"===el?null:tu[el],tg=(0,B.allModels)(ed,e3),th=tg.find(e=>e.exec===e8),tp=N.PROVIDERS.filter(e=>""!==(eH[e.id]?.bin??"").trim()).map(e=>e.id);return(0,t.jsxs)(W.ModuleShell,{moduleId:"settings",children:[(0,t.jsx)(V.ModuleHeader,{title:et.page.settings,icon:i,children:tm&&(0,t.jsx)(M.Button,{variant:"accent",icon:a.Save,onClick:tm.onClick,children:tm.label})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-start",children:[(0,t.jsx)("nav",{"aria-label":et.settings.sectionsNav,className:"-mx-1 flex shrink-0 gap-1 overflow-x-auto px-1 pb-1 md:sticky md:top-[57px] md:mx-0 md:w-44 md:flex-col md:overflow-visible md:px-0 md:pb-0",children:tx.map(({id:e,icon:s})=>{let a=el===e;return(0,t.jsxs)("button",{type:"button","aria-pressed":a,onClick:()=>en(e),className:`inline-flex shrink-0 items-center gap-2.5 rounded-lg border px-3 py-2 text-sm font-medium transition-colors active:scale-[0.98] md:w-full ${a?"border-border-strong bg-elevated text-text":"border-transparent text-text-muted hover:bg-surface hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[(0,t.jsx)(s,{size:16,"aria-hidden":!0,className:a?"text-accent":""}),et.settings[e]]},e)})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:["models"===el&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:tg.map(e=>{let s=!J.has(e.exec);return(0,t.jsxs)("div",{className:"card-interactive group relative flex flex-col gap-3.5 rounded-lg border border-border bg-surface p-5",children:[(0,t.jsxs)("div",{className:"absolute right-3 top-3 z-10 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",style:{transitionDuration:"var(--motion-fast)"},children:[(0,t.jsx)("button",{type:"button","aria-label":et.settings.editLabel.replace("{exec}",e.exec),title:et.settings.editLabel.replace("{exec}",e.exec),onClick:()=>{e4(e.exec),e2(!0)},className:"flex h-6 w-6 items-center justify-center rounded-md border border-border bg-surface text-text-muted transition-colors hover:border-border-strong hover:text-text",style:{transitionDuration:"var(--motion-fast)"},children:(0,t.jsx)(c.Pencil,{size:13,"aria-hidden":!0})}),(0,t.jsx)("button",{type:"button","aria-label":et.settings.deleteLabel.replace("{exec}",e.exec),title:et.settings.deleteLabel.replace("{exec}",e.exec),onClick:()=>e7(e.exec),className:"flex h-6 w-6 items-center justify-center rounded-md border border-danger/60 bg-surface text-danger transition-colors hover:bg-danger hover:text-white",style:{transitionDuration:"var(--motion-fast)"},children:(0,t.jsx)(o.X,{size:13,"aria-hidden":!0})})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 pr-14",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(k.ModelIcon,{name:e.exec,size:20})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"truncate text-sm font-medium text-text",children:[e.label,s?null:(0,t.jsx)("span",{className:"ml-1.5 text-tiny uppercase tracking-wide text-text-muted/70",children:et.settings.presetTag})]}),(0,t.jsx)("span",{className:"truncate font-mono text-xs text-text-muted",children:(0,D.execModel)(e.exec)})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>em({label:e.label,exec:e.exec}),title:et.settings.modelNoteEdit,className:`line-clamp-2 min-h-[2.25rem] text-left text-xs ${ec[e.exec]?.trim()?"text-text-muted hover:text-text":"italic text-text-muted/60 hover:text-text-muted"}`,children:ec[e.exec]?.trim()||et.settings.modelNoteAdd}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(A.Toggle,{checked:er.includes(e.exec),onChange:()=>{let t;return t=e.exec,tc({allowed:er.includes(t)?er.filter(e=>e!==t):[...er,t]},!0)},label:e.label}),(0,t.jsx)(N.ProviderTag,{id:(0,D.execProvider)(e.exec)})]})]},e.exec)})}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(M.Button,{variant:"ghost",icon:d.Plus,onClick:()=>{e4(null),e2(!0)},children:et.settings.addModel})})]}),e1&&(0,t.jsx)(L,{initial:e5?tg.find(e=>e.exec===e5)??null:null,existingExecs:new Set(tg.map(e=>e.exec)),activeProviders:tp,onClose:to,onSave:e=>{let t=ed,s=er,a=e3;if(e5)if(J.has(e5)){a=e3.includes(e5)?e3:[...e3,e5],t=[...ed.filter(t=>t.exec!==e.exec),e];let l=er.filter(e=>e!==e5);s=l.includes(e.exec)?l:[...l,e.exec]}else t=ed.some(e=>e.exec===e5)?ed.map(t=>t.exec===e5?e:t):[...ed,e],s=er.map(t=>t===e5?e.exec:t);else t=[...ed,e],s=er.includes(e.exec)?er:[...er,e.exec];tc({allowed:s,customModels:t,hiddenPresets:a}),to()}}),eu&&(0,t.jsx)(T,{label:eu.label,exec:eu.exec,initial:ec[eu.exec]??"",onClose:()=>em(null),onSave:e=>{var t;let s;return t=eu.exec,s={...ec},void(e?s[t]=e:delete s[t],tc({modelNotes:s}),em(null))}}),"autopilot"===el&&(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-surface p-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-text",children:et.settings.backendMode}),(0,t.jsx)(G,{children:et.settings.backendModeHelp})]}),(0,t.jsx)(K.Segmented,{value:eN,onChange:e=>(e=>{if(ek(e),"relay"===e)ev(""),ey("");else{let e=tg[0]?.exec??"";ef||ev(e),ej||ey(e)}})(e),options:[{value:"relay",label:et.settings.modeRelay,icon:u.Radio},{value:"agents",label:et.settings.modeAgents,icon:r.Bot}]}),(0,t.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"relay"===eN?et.settings.modeRelayDesc:et.settings.modeAgentsDesc})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:["relay"===eN?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.SettingCard,{title:et.settings.plannerModel,description:et.settings.plannerModelDesc,icon:r.Bot,children:(0,t.jsx)(Y,{value:eg,onChange:eh,placeholder:et.settings.plannerPlaceholder})}),(0,t.jsx)(U.SettingCard,{title:et.settings.overseerModel,description:et.settings.overseerModelDesc,icon:v.Eye,children:(0,t.jsx)(Y,{value:ep,onChange:eb,placeholder:et.settings.overseerPlaceholder})}),(0,t.jsx)(U.SettingCard,{title:et.settings.apiUrl,description:et.settings.apiUrlDesc,icon:p.Link2,children:(0,t.jsx)("input",{value:eM,onChange:e=>eC(e.target.value),className:X})}),(0,t.jsx)(U.SettingCard,{title:et.settings.apiKey,description:td?et.settings.apiKeyDesc:et.settings.apiKeyNotSetDesc,icon:b.KeyRound,children:(0,t.jsx)("input",{type:"password",value:eE,onChange:e=>eP(e.target.value),placeholder:td?et.settings.apiKeySetPlaceholder:et.settings.apiKeyPlaceholder,className:X})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.SettingCard,{title:et.settings.plannerModel,description:et.settings.plannerModelDesc,icon:r.Bot,children:(0,t.jsx)(Q,{value:ef,onChange:ev,models:tg,relayLabel:et.settings.relayOption,allowRelay:!1})}),(0,t.jsx)(U.SettingCard,{title:et.settings.overseerModel,description:et.settings.overseerModelDesc,icon:v.Eye,children:(0,t.jsx)(Q,{value:ej,onChange:ey,models:tg,relayLabel:et.settings.relayOption,allowRelay:!1})}),(0,t.jsx)(U.SettingCard,{title:et.settings.reviewOnDone,description:et.settings.reviewOnDoneHint,icon:v.Eye,children:(0,t.jsx)(A.Toggle,{checked:eS,onChange:ew,label:et.settings.reviewOnDone})})]}),(0,t.jsx)(U.SettingCard,{title:et.settings.notes,description:et.settings.notesDesc,icon:f.FileText,children:(0,t.jsx)("textarea",{value:eD,onChange:e=>eL(e.target.value),rows:3,className:`${X} resize-none`})}),(0,t.jsxs)("div",{className:"sm:col-span-2 rounded-lg border border-border bg-surface p-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-text",children:et.settings.plannerPrompt}),(0,t.jsx)(G,{children:et.settings.plannerPromptHelp})]}),(0,t.jsx)("textarea",{value:eT,onChange:e=>ez(e.target.value),rows:8,spellCheck:!1,className:`${X} resize-y font-mono text-xs leading-relaxed`}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-2 rounded-md border border-border bg-elevated/40 p-3",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:et.settings.testPlan}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(C.Input,{value:eI,onChange:e=>eB(e.target.value),placeholder:et.settings.sampleGoalPlaceholder}),(0,t.jsx)(M.Button,{variant:"default",disabled:eq||!eI.trim(),onClick:eZ,children:eq?et.settings.planning:et.settings.testPlan})]}),eR&&(0,t.jsx)("ul",{className:"flex flex-col divide-y divide-border rounded-md border border-border",children:eR.map((e,s)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 px-3 py-2 text-sm",children:[(0,t.jsx)("span",{className:"w-4 shrink-0 font-mono text-xs text-text-muted",children:s+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-text",children:e.title}),(0,t.jsx)("span",{className:"shrink-0 rounded border border-border px-1 text-tiny uppercase text-text-muted",children:e.type}),e.agent?(0,t.jsx)("span",{className:"shrink-0 rounded-md border border-accent/40 bg-accent/10 px-1.5 text-tiny text-accent",children:e.agent}):null]}),e.details?(0,t.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:e.details}):null]})]},s))})]})]})]})]}),"providers"===el&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-4 text-sm text-text-muted",children:et.settings.providersDesc}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:N.PROVIDERS.map(e=>{let s=eH[e.id]??{bin:e.binHint,args:""},a=t=>eF(a=>({...a,[e.id]:{...s,...t}}));return(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-surface p-4 sm:flex-row sm:items-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 sm:w-44 sm:shrink-0",children:[(0,t.jsx)(N.ProviderLogo,{meta:e,alt:et.providers[e.id]}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-text",children:et.providers[e.id]}),(0,t.jsx)("div",{className:"font-mono text-[11px] text-text-muted",children:e.id})]})]}),(0,t.jsxs)("div",{className:"grid flex-1 grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,t.jsx)(E.Field,{label:et.settings.binary,children:(0,t.jsx)(C.Input,{value:s.bin,placeholder:e.binHint,onChange:e=>a({bin:e.target.value}),className:"font-mono text-xs"})}),(0,t.jsx)(E.Field,{label:et.settings.extraArgs,children:(0,t.jsx)(C.Input,{value:s.args,placeholder:e.argsHint,onChange:e=>a({args:e.target.value}),className:"font-mono text-xs"})})]})]},e.id)})})]}),"defaults"===el&&(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,t.jsx)(U.SettingCard,{title:et.settings.executor,description:et.settings.executorDesc,icon:m.Cpu,children:(0,t.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:(tg.some(e=>e.exec===eG)?tg:[...tg,{label:eG,exec:eG}]).filter(e=>e.exec).map(e=>{let s=eG===e.exec;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":s,"aria-label":e.label,onClick:()=>e_(e.exec),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${s?"border-accent/50 bg-accent/15 text-accent":"border-border bg-elevated text-text-muted hover:border-border-strong hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[(0,t.jsx)(k.ModelIcon,{name:e.exec,size:15}),e.label]},e.exec)})})}),(0,t.jsxs)(U.SettingCard,{title:et.settings.autonomy,description:et.settings.autonomyDesc,icon:g,children:[(0,t.jsx)(K.Segmented,{options:["L0","L1","L2","L3"].map(e=>({value:e,label:e})),value:eW,onChange:eX}),(0,t.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-text-muted",children:{L0:et.missions.autonomyL0Desc,L1:et.missions.autonomyL1Desc,L2:et.missions.autonomyL2Desc,L3:et.missions.autonomyL3Desc}[eW]})]}),(0,t.jsx)(U.SettingCard,{title:et.settings.maxSessions,description:et.settings.maxSessionsDesc,icon:h.Layers,children:(0,t.jsx)("input",{type:"number",min:1,value:eJ,onChange:e=>eQ(Number(e.target.value)),className:X})}),(0,t.jsx)(U.SettingCard,{title:et.settings.tokenTtl,description:et.settings.tokenTtlDesc,icon:b.KeyRound,children:(0,t.jsx)("input",{type:"number",min:1,value:eY,onChange:e=>e0(Number(e.target.value)),className:X})})]}),"hermes"===el&&(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("img",{src:"/hermes-banner.png",alt:"Hermes",className:"w-full max-w-md self-start rounded-lg border border-border bg-surface object-contain"}),(0,t.jsx)("p",{className:"text-sm text-text-muted",children:et.settings.hermesDesc}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:et.settings.hermesStatusLine}),tn.isLoading?(0,t.jsx)(O.Badge,{tone:"muted",children:et.common.loading}):tn.isError?(0,t.jsx)(O.Badge,{tone:"warning",children:et.settings.hermesStatusError}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.Badge,{tone:tn.data?.pluginInstalled?"success":"danger",children:tn.data?.pluginInstalled?et.settings.hermesStatusInstalled:et.settings.hermesStatusNotInstalled}),(0,t.jsx)(O.Badge,{tone:tn.data?.enabled?"success":"danger",children:tn.data?.enabled?et.settings.hermesStatusEnabled:et.settings.hermesStatusDisabled})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,t.jsx)(E.Field,{label:et.settings.hermesHome,children:(0,t.jsx)(C.Input,{value:e9,onChange:e=>te(e.target.value),className:"font-mono text-xs"})}),(0,t.jsx)(E.Field,{label:et.settings.hermesUrl,children:(0,t.jsx)(C.Input,{value:tt,onChange:e=>ts(e.target.value),className:"font-mono text-xs"})}),(0,t.jsx)(E.Field,{label:et.settings.hermesToken,children:(0,t.jsx)(C.Input,{type:"password",value:ta,onChange:e=>tl(e.target.value),className:"font-mono text-xs"})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(M.Button,{variant:"accent",className:"self-start",disabled:tr.isPending||!tt.trim()||!ta.trim(),onClick:()=>tr.mutate({home:e9.trim()||void 0,url:tt.trim(),token:ta.trim()},{onSuccess:()=>Z(et.settings.hermesInstalled),onError:e=>Z(String(e),"error")}),children:tr.isPending?et.settings.hermesInstalling:et.settings.hermesInstall}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:et.settings.hermesRestartNote})]})]}),"data"===el&&(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsxs)("div",{className:"rounded-lg border border-danger/40 bg-danger/[0.04] p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-danger",children:[(0,t.jsx)(y.Trash2,{size:15,"aria-hidden":!0})," ",et.settings.dangerZone]}),(0,t.jsx)("p",{className:"mt-2 max-w-prose text-sm text-text-muted",children:et.settings.cleanupDesc}),(0,t.jsx)(M.Button,{variant:"danger",icon:y.Trash2,className:"mt-4 self-start",disabled:S.isPending,onClick:()=>ea(!0),children:et.settings.cleanupButton})]})})]})]}),(0,t.jsx)(q.ConfirmDialog,{open:null!==e8,title:et.settings.deleteModel,description:th?et.settings.deleteModelDesc.replace("{label}",th.label).replace("{exec}",th.exec):void 0,confirmLabel:et.common.delete,onConfirm:()=>{let e;e8&&(e={allowed:er.filter(e=>e!==e8)},J.has(e8)?e.hiddenPresets=e3.includes(e8)?e3:[...e3,e8]:e.customModels=ed.filter(e=>e.exec!==e8),tc(e),e5===e8&&to()),e7(null)},onClose:()=>e7(null)}),(0,t.jsx)(q.ConfirmDialog,{open:es,title:et.settings.cleanupConfirmTitle,description:et.settings.cleanupConfirmDesc,confirmLabel:et.settings.cleanupButton,onConfirm:()=>{ea(!1),S.mutate(void 0,{onSuccess:e=>Z(et.settings.cleanupDone.replace("{tasks}",String(e.tasks)).replace("{missions}",String(e.missions))),onError:e=>Z(String(e),"error")})},onClose:()=>ea(!1)})]})},"dynamic",0,"force-dynamic"],32545)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86536,e=>{"use strict";let t=(0,e.i(75254).default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],86536)},56909,e=>{"use strict";let t=(0,e.i(75254).default)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],56909)},93393,e=>{"use strict";let t=(0,e.i(75254).default)("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);e.s(["default",0,t])},25744,e=>{"use strict";var t=e.i(93393);e.s(["GitCommitHorizontal",()=>t.default])},26336,e=>{"use strict";let t=(0,e.i(75254).default)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);e.s(["Minimize2",0,t],26336)},3408,e=>{"use strict";let t=(0,e.i(75254).default)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",0,t])},94008,e=>{"use strict";let t=(0,e.i(75254).default)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);e.s(["File",0,t],94008)},76881,e=>{"use strict";var t=e.i(43476);e.s(["PatchView",0,function({diff:e,empty:r}){return e.trim()?(0,t.jsx)("pre",{className:"h-full overflow-auto bg-bg p-3 font-mono text-xs leading-relaxed",children:e.split("\n").map((e,r)=>{let n=e.startsWith("+")&&!e.startsWith("+++")?"text-success":e.startsWith("-")&&!e.startsWith("---")?"text-danger":e.startsWith("@@")?"text-accent":"text-text-muted";return(0,t.jsx)("div",{className:n,children:e||" "},r)})}):(0,t.jsx)("p",{className:"p-4 text-center text-sm text-text-muted",children:r})}])},88784,83454,e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(r,[].concat(i,n))}}}function l(e){return({}).toString.call(e).includes("Object")}function c(e){return"function"==typeof e}var s,u,d=a(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),f=function(e,t){return l(t)||d("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&d("changeField"),t},m=function(e){c(e)||d("selectorType")},p=function(e){c(e)||l(e)||d("handlerType"),l(e)&&Object.values(e).some(function(e){return!c(e)})&&d("handlersType")},h=function(e){e||d("initialIsRequired"),l(e)||d("initialType"),Object.keys(e).length||d("initialContent")};function g(e,t){return c(t)?t(e.current):t}function x(e,t){return e.current=o(o({},e.current),t),t}function y(e,t,r){return c(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var v={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},b=(s=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return n.length>=s.length?s.apply(this,n):function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(t,[].concat(n,i))}})(v),j=function(e){return(e||b("configIsRequired"),({}).toString.call(e).includes("Object")||b("configType"),e.urls)?(console.warn(v.deprecation),{paths:{vs:e.urls.monacoBase}}):e},w=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},k={type:"cancelation",msg:"operation is manually canceled"};function O(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(k):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var M=["monaco"],P=function(e){if(Array.isArray(e))return e}(u=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(e),p(t);var r={current:e},n=a(y)(r,t),i=a(x)(r),o=a(f)(e),l=a(g)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return m(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,i,o,l)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,o,a=[],l=!0,c=!1;try{i=(t=t.call(e)).next,!1;for(;!(l=(r=i.call(t)).done)&&(a.push(r.value),2!==a.length);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(u)||function(e){if(e){if("string"==typeof e)return t(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,2):void 0}}(u)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),N=P[0],E=P[1];function R(e){return document.body.appendChild(e)}function S(e){var t,r,n=N(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return i.onload=function(){return e()},i.onerror=n.reject,i}function C(){var e=N(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;T(r),e.resolve(r)},function(t){e.reject(t)})}function T(e){N().monaco||E({monaco:e})}var z=new Promise(function(e,t){return E({resolve:e,reject:t})}),_={config:function(e){var t=j(e),r=t.monaco,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,M);E(function(e){return{config:function e(t,r){return Object.keys(r).forEach(function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))}),n(n({},t),r)}(e.config,i),monaco:r}})},init:function(){var e=N(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(E({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),O(z);if(window.monaco&&window.monaco.editor)return T(window.monaco),e.resolve(window.monaco),O(z);w(R,S)(C)}return O(z)},__getMonacoInstance:function(){return N(function(e){return e.monaco})}};e.s(["default",0,_],83454);var I=e.i(71645),L={display:"flex",position:"relative",textAlign:"initial"},V={width:"100%"},A={display:"none"},D={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},F=function({children:e}){return I.default.createElement("div",{style:D},e)},q=(0,I.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:i,className:o,wrapperProps:a}){return I.default.createElement("section",{style:{...L,width:e,height:t},...a},!r&&I.default.createElement(F,null,n),I.default.createElement("div",{ref:i,style:{...V,...!r&&A},className:o}))}),B=function(e){(0,I.useEffect)(e,[])},U=function(e,t,r=!0){let n=(0,I.useRef)(!0);(0,I.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function $(){}function H(e,t,r,n){var i,o,a,l,c,s;return i=e,o=n,i.editor.getModel(W(i,o))||(a=e,l=t,c=r,s=n,a.editor.createModel(l,c,s?W(a,s):void 0))}function W(e,t){return e.Uri.parse(t)}var G=(0,I.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:s="light",loading:u="Loading...",options:d={},height:f="100%",width:m="100%",className:p,wrapperProps:h={},beforeMount:g=$,onMount:x=$}){let[y,v]=(0,I.useState)(!1),[b,j]=(0,I.useState)(!0),w=(0,I.useRef)(null),k=(0,I.useRef)(null),O=(0,I.useRef)(null),M=(0,I.useRef)(x),P=(0,I.useRef)(g),N=(0,I.useRef)(!1);B(()=>{let e=_.init();return e.then(e=>(k.current=e)&&j(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return w.current?(t=w.current?.getModel(),void(l||t?.original?.dispose(),c||t?.modified?.dispose(),w.current?.dispose())):e.cancel()}}),U(()=>{if(w.current&&k.current){let t=w.current.getOriginalEditor(),i=H(k.current,e||"",n||r||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],y),U(()=>{if(w.current&&k.current){let e=w.current.getModifiedEditor(),n=H(k.current,t||"",i||r||"text",a||"");n!==e.getModel()&&e.setModel(n)}},[a],y),U(()=>{let e=w.current.getModifiedEditor();e.getOption(k.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],y),U(()=>{w.current?.getModel()?.original.setValue(e||"")},[e],y),U(()=>{let{original:e,modified:t}=w.current.getModel();k.current.editor.setModelLanguage(e,n||r||"text"),k.current.editor.setModelLanguage(t,i||r||"text")},[r,n,i],y),U(()=>{k.current?.editor.setTheme(s)},[s],y),U(()=>{w.current?.updateOptions(d)},[d],y);let E=(0,I.useCallback)(()=>{if(!k.current)return;P.current(k.current);let l=H(k.current,e||"",n||r||"text",o||""),c=H(k.current,t||"",i||r||"text",a||"");w.current?.setModel({original:l,modified:c})},[r,t,i,e,n,o,a]),R=(0,I.useCallback)(()=>{!N.current&&O.current&&(w.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...d}),E(),k.current?.editor.setTheme(s),v(!0),N.current=!0)},[d,s,E]);return(0,I.useEffect)(()=>{y&&M.current(w.current,k.current)},[y]),(0,I.useEffect)(()=>{b||y||R()},[b,y,R]),I.default.createElement(q,{width:m,height:f,isEditorReady:y,loading:u,_ref:O,className:p,wrapperProps:h})}),K=function(e){let t=(0,I.useRef)();return(0,I.useEffect)(()=>{t.current=e},[e]),t.current},Q=new Map,X=(0,I.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:i,path:o,theme:a="light",line:l,loading:c="Loading...",options:s={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:m="100%",height:p="100%",className:h,wrapperProps:g={},beforeMount:x=$,onMount:y=$,onChange:v,onValidate:b=$}){let[j,w]=(0,I.useState)(!1),[k,O]=(0,I.useState)(!0),M=(0,I.useRef)(null),P=(0,I.useRef)(null),N=(0,I.useRef)(null),E=(0,I.useRef)(y),R=(0,I.useRef)(x),S=(0,I.useRef)(),C=(0,I.useRef)(n),T=K(o),z=(0,I.useRef)(!1),L=(0,I.useRef)(!1);B(()=>{let e=_.init();return e.then(e=>(M.current=e)&&O(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>P.current?void(S.current?.dispose(),f?d&&Q.set(o,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()):e.cancel()}),U(()=>{let a=H(M.current,e||n||"",t||i||"",o||r||"");a!==P.current?.getModel()&&(d&&Q.set(T,P.current?.saveViewState()),P.current?.setModel(a),d&&P.current?.restoreViewState(Q.get(o)))},[o],j),U(()=>{P.current?.updateOptions(s)},[s],j),U(()=>{P.current&&void 0!==n&&(P.current.getOption(M.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(L.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),L.current=!1))},[n],j),U(()=>{let e=P.current?.getModel();e&&i&&M.current?.editor.setModelLanguage(e,i)},[i],j),U(()=>{void 0!==l&&P.current?.revealLine(l)},[l],j),U(()=>{M.current?.editor.setTheme(a)},[a],j);let V=(0,I.useCallback)(()=>{if(!(!N.current||!M.current)&&!z.current){R.current(M.current);let c=o||r,f=H(M.current,n||e||"",t||i||"",c||"");P.current=M.current?.editor.create(N.current,{model:f,automaticLayout:!0,...s},u),d&&P.current.restoreViewState(Q.get(c)),M.current.editor.setTheme(a),void 0!==l&&P.current.revealLine(l),w(!0),z.current=!0}},[e,t,r,n,i,o,s,u,d,a,l]);return(0,I.useEffect)(()=>{j&&E.current(P.current,M.current)},[j]),(0,I.useEffect)(()=>{k||j||V()},[k,j,V]),C.current=n,(0,I.useEffect)(()=>{j&&v&&(S.current?.dispose(),S.current=P.current?.onDidChangeModelContent(e=>{L.current||v(P.current.getValue(),e)}))},[j,v]),(0,I.useEffect)(()=>{if(j){let e=M.current.editor.onDidChangeMarkers(e=>{let t=P.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=M.current.editor.getModelMarkers({resource:t});b?.(e)}});return()=>{e?.dispose()}}return()=>{}},[j,b]),I.default.createElement(q,{width:m,height:p,isEditorReady:j,loading:c,_ref:N,className:h,wrapperProps:g})});e.s(["DiffEditor",0,G,"Editor",0,X,"default",0,X,"useMonaco",0,function(){let[e,t]=(0,I.useState)(_.__getMonacoInstance());return B(()=>{let r;return e||(r=_.init()).then(e=>{t(e)}),()=>r?.cancel()}),e}],88784)},94321,e=>{"use strict";var t=e.i(43476);e.s(["Field",0,function({label:e,htmlFor:r,children:n,hint:i}){return(0,t.jsxs)("label",{htmlFor:r,className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),n,i?(0,t.jsx)("span",{className:"text-xs text-text-muted",children:i}):null]})}])},51509,e=>{"use strict";var t=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:r,icon:n,children:i}){return(0,t.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[n?(0,t.jsx)(n,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,t.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==r?(0,t.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:r}):null]}),i?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:i}):null]})}])},26178,e=>{"use strict";var t=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:r}){return(0,t.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:r})}])},44375,e=>{"use strict";var t=e.i(43476),r=e.i(76525);e.i(69530);var n=e.i(2942);e.s(["EmptyState",0,function({title:e,description:r,icon:n,action:i}){return(0,t.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[n?(0,t.jsx)(n,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),r&&(0,t.jsx)("p",{className:"text-xs text-text-muted",children:r})]}),i]})},"ErrorState",0,function({message:e,onRetry:i}){let{t:o}=(0,n.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-accent",children:e}),i&&(0,t.jsx)(r.Button,{onClick:i,children:o.common.retry})]})},"LoadingState",0,function({label:e,variant:r="list"}){let{t:i}=(0,n.useTranslation)();return e?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===r?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":i.common.loading,children:[0,1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===r?(0,t.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":i.common.loading,children:[0,1,2,3,4].map(e=>(0,t.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,t.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":i.common.loading,children:[88,72,80,64].map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,t.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},r))})}])},89890,e=>{"use strict";var t=e.i(43476);let r={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};e.s(["Badge",0,function({children:e,tone:n="default"}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${r[n]}`,children:e})}])},46040,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(74080);e.i(69530);var i=e.i(2942);let o={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};e.s(["Modal",0,function({title:e,onClose:a,children:l,size:c="lg",icon:s,description:u}){let{t:d}=(0,i.useTranslation)(),[f,m]=(0,r.useState)(!1);return((0,r.useEffect)(()=>m(!0),[]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&a()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a]),f)?(0,n.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:a,children:(0,t.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${o[c]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[s?(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(s,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:e}),u?(0,t.jsx)("p",{className:"truncate text-xs text-text-muted",children:u}):null]}),(0,t.jsx)("button",{type:"button","aria-label":d.common.close,onClick:a,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:l})]})}),document.body):null},"ModalBody",0,function({children:e,gap:r=5}){return(0,t.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===r?"gap-4":6===r?"gap-6":"gap-5"}`,children:e})},"ModalFooter",0,function({children:e}){return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:e})}])},27612,e=>{"use strict";let t=(0,e.i(75254).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,t],27612)},78894,e=>{"use strict";var t=e.i(82458);e.s(["AlertTriangle",()=>t.default])},88699,e=>{"use strict";let t=(0,e.i(75254).default)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],88699)},73141,e=>{"use strict";var t=e.i(43476),r=e.i(66027),n=e.i(90272),i=e.i(40273);e.s(["ProjectIcon",0,function({project:e,size:o=16,className:a=""}){let l=e.icon??"",{data:c}=(0,r.useQuery)({queryKey:["project-icon",e.id,l],enabled:!!l,staleTime:1/0,queryFn:async()=>{let t=await i.orcaClient.projectRawBlob(e.id,l);return await new Promise((e,r)=>{let n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}});return l&&c?(0,t.jsx)("img",{src:c,alt:"","aria-hidden":!0,className:`shrink-0 rounded-sm object-cover ${a}`,style:{width:o,height:o}}):(0,t.jsx)(n.FolderGit2,{size:o,className:`shrink-0 ${a}`,"aria-hidden":!0})}])},98361,e=>{"use strict";let t=(0,e.i(75254).default)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);e.s(["Maximize2",0,t],98361)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(32061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return c}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),a=e.r(9885),l=e.r(43369);function c({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let s=(0,l.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(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(43476),i=e.r(71645),o=e.r(67585),a=e.r(52157);function l(e){return{default:e&&"default"in e?e.default:e}}let c={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},s=function(e){let t={...c,...e},r=(0,i.lazy)(()=>t.loader().then(l)),s=t.loading;function u(e){let l=s?(0,n.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,c=!t.ssr||!!t.loading,u=c?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...c?{fallback:l}:{},children:d})}return u.displayName="LoadableComponent",u}},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(55682)._(e.r(69093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("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)},74886,e=>{"use strict";let t=(0,e.i(75254).default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],74886)},53096,e=>{e.v(t=>Promise.all(["static/chunks/1t_gu3tshssgg.js"].map(t=>e.l(t))).then(()=>t(67211)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26178,e=>{"use strict";var s=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:t}){return(0,s.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:t})}])},44375,e=>{"use strict";var s=e.i(43476),t=e.i(76525);e.i(69530);var a=e.i(2942);e.s(["EmptyState",0,function({title:e,description:t,icon:a,action:l}){return(0,s.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[a?(0,s.jsx)(a,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),t&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:t})]}),l]})},"ErrorState",0,function({message:e,onRetry:l}){let{t:i}=(0,a.useTranslation)();return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-accent",children:e}),l&&(0,s.jsx)(t.Button,{onClick:l,children:i.common.retry})]})},"LoadingState",0,function({label:e,variant:t="list"}){let{t:l}=(0,a.useTranslation)();return e?(0,s.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===t?(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4,5].map(e=>(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,s.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,s.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,s.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===t?(0,s.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4].map(e=>(0,s.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,s.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,s.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,s.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":l.common.loading,children:[88,72,80,64].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,s.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},t))})}])},51509,e=>{"use strict";var s=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:t,icon:a,children:l}){return(0,s.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[a?(0,s.jsx)(a,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,s.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==t?(0,s.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:t}):null]}),l?(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:l}):null]})}])},81418,e=>{"use strict";let s=(0,e.i(75254).default)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,s],81418)},58524,e=>{"use strict";let s=(0,e.i(75254).default)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["Link2",0,s],58524)},31343,e=>{"use strict";let s=(0,e.i(75254).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,s],31343)},3116,e=>{"use strict";let s=(0,e.i(75254).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,s],3116)},67240,e=>{"use strict";let s=(0,e.i(75254).default)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,s],67240)},16116,e=>{"use strict";var s=e.i(43476),t=e.i(26178),a=e.i(51737),l=e.i(81418),i=e.i(9912),r=e.i(31343),n=e.i(67240),d=e.i(58524),c=e.i(3116),o=e.i(51981),x=e.i(4552),m=e.i(40273),u=e.i(91392),h=e.i(51509),p=e.i(76525),f=e.i(44375),g=e.i(80809);e.i(69530);var j=e.i(2942);function b(){let{t:e,locale:t}=(0,j.useTranslation)(),b=(0,o.useEscalations)(),k=(0,x.useSetTaskStatus)(),N=(0,x.useApproveGate)(),v=(0,x.useResumeMission)(),{toast:y}=(0,g.useToast)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.ModuleHeader,{title:e.escalations.title,count:b.length,icon:a.ShieldAlert}),0===b.length?(0,s.jsx)(f.EmptyState,{title:e.escalations.empty,description:e.escalations.emptyDesc,icon:l.ShieldCheck}):(0,s.jsx)("div",{className:"flex flex-col gap-3",children:b.map(l=>{let o=(0,u.formatTaskTime)(l.ts,Date.now(),t);return(0,s.jsxs)("article",{className:"flex flex-col gap-3 rounded-lg border border-warning/40 bg-warning/[0.05] p-4",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-warning/40 bg-warning/10",children:(0,s.jsx)(a.ShieldAlert,{size:20,className:"text-warning","aria-hidden":!0})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:l.title}),(0,s.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 font-mono text-[11px] text-text-muted",children:[l.epicId?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Rocket,{size:11,className:"shrink-0","aria-hidden":!0}),(0,s.jsx)("span",{className:"truncate",children:l.epicId})]}):null,o.label?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"opacity-50",children:"·"}),(0,s.jsx)(c.Clock,{size:11,className:"shrink-0","aria-hidden":!0}),(0,s.jsx)("span",{title:o.title,children:o.label})]}):null]})]})]}),(0,s.jsxs)("div",{className:"rounded-md border border-border bg-elevated p-3",children:[(0,s.jsx)("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:e.escalations.rationale}),(0,s.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-text",children:l.rationale||e.escalations.noReason})]}),l.blocked.length>0?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:e.escalations.blockedBy}),(0,s.jsx)("ul",{className:"flex flex-col gap-1",children:l.blocked.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-2 text-xs text-text",children:[(0,s.jsx)(d.Link2,{size:12,className:"shrink-0 text-text-muted","aria-hidden":!0}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.title})]},e.id))})]}):null,(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,s.jsx)(p.Button,{variant:"ghost",icon:n.RotateCcw,onClick:()=>{k.mutate({id:l.taskId,status:"open"},{onSuccess:()=>{l.epicId&&v.mutate(`m-${l.epicId}`,{onError:()=>{}}),y(e.escalations.rerunning)},onError:s=>y((0,m.apiErrorMessage)(s)||e.escalations.actionError,"error")})},disabled:k.isPending,children:e.escalations.rerun}),(0,s.jsx)(p.Button,{variant:"accent",icon:r.Play,onClick:()=>{0!==l.blocked.length&&N.mutate(l.taskId,{onSuccess:()=>{l.epicId&&v.mutate(`m-${l.epicId}`,{onError:()=>{}}),y(e.escalations.approved)},onError:s=>y((0,m.apiErrorMessage)(s)||e.escalations.actionError,"error")})},disabled:0===l.blocked.length||N.isPending,children:e.escalations.approve})]})]},`${l.taskId}-${l.ts}`)})})]})}e.s(["default",0,function(){return(0,s.jsx)(t.ModuleShell,{moduleId:"escalations",children:(0,s.jsx)(b,{})})},"dynamic",0,"force-dynamic"],16116)}]);