constellai 0.3.0 → 0.3.2

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 (251) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +1 -1
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/react-loadable-manifest.json +2 -2
  6. package/.next/server/app/(app)/activity/page.js +1 -1
  7. package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  8. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/(app)/agents/[handle]/page.js +2 -2
  10. package/.next/server/app/(app)/agents/[handle]/page.js.nft.json +1 -1
  11. package/.next/server/app/(app)/agents/[handle]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(app)/code/page.js +2 -2
  13. package/.next/server/app/(app)/code/page.js.nft.json +1 -1
  14. package/.next/server/app/(app)/code/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/(app)/config/page.js +2 -2
  16. package/.next/server/app/(app)/config/page.js.nft.json +1 -1
  17. package/.next/server/app/(app)/config/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/(app)/costs/page.js +2 -2
  19. package/.next/server/app/(app)/costs/page.js.nft.json +1 -1
  20. package/.next/server/app/(app)/costs/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/(app)/cron/page.js +2 -2
  22. package/.next/server/app/(app)/cron/page.js.nft.json +1 -1
  23. package/.next/server/app/(app)/cron/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/(app)/dashboard/page.js +2 -2
  25. package/.next/server/app/(app)/dashboard/page.js.nft.json +1 -1
  26. package/.next/server/app/(app)/dashboard/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/(app)/design/page.js +4 -4
  28. package/.next/server/app/(app)/design/page.js.nft.json +1 -1
  29. package/.next/server/app/(app)/design/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/(app)/docs/[id]/page.js +2 -2
  31. package/.next/server/app/(app)/docs/[id]/page.js.nft.json +1 -1
  32. package/.next/server/app/(app)/docs/[id]/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/(app)/docs/page.js +2 -2
  34. package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
  35. package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/(app)/github/page.js +2 -2
  37. package/.next/server/app/(app)/github/page.js.nft.json +1 -1
  38. package/.next/server/app/(app)/github/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/(app)/goals/page.js +2 -2
  40. package/.next/server/app/(app)/goals/page.js.nft.json +1 -1
  41. package/.next/server/app/(app)/goals/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/(app)/inbox/page.js +2 -2
  43. package/.next/server/app/(app)/inbox/page.js.nft.json +1 -1
  44. package/.next/server/app/(app)/inbox/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/(app)/knowledge/page.js +3 -3
  46. package/.next/server/app/(app)/knowledge/page.js.nft.json +1 -1
  47. package/.next/server/app/(app)/knowledge/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/(app)/models/page.js +2 -2
  49. package/.next/server/app/(app)/models/page.js.nft.json +1 -1
  50. package/.next/server/app/(app)/models/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/(app)/notifications/page.js +1 -1
  52. package/.next/server/app/(app)/notifications/page.js.nft.json +1 -1
  53. package/.next/server/app/(app)/notifications/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app/(app)/org/page.js +4 -4
  55. package/.next/server/app/(app)/org/page.js.nft.json +1 -1
  56. package/.next/server/app/(app)/org/page_client-reference-manifest.js +1 -1
  57. package/.next/server/app/(app)/organizations/page.js +2 -2
  58. package/.next/server/app/(app)/organizations/page.js.nft.json +1 -1
  59. package/.next/server/app/(app)/organizations/page_client-reference-manifest.js +1 -1
  60. package/.next/server/app/(app)/page.js +3 -3
  61. package/.next/server/app/(app)/page.js.nft.json +1 -1
  62. package/.next/server/app/(app)/page_client-reference-manifest.js +1 -1
  63. package/.next/server/app/(app)/planner/page.js +2 -2
  64. package/.next/server/app/(app)/planner/page.js.nft.json +1 -1
  65. package/.next/server/app/(app)/planner/page_client-reference-manifest.js +1 -1
  66. package/.next/server/app/(app)/plugins/page.js +2 -2
  67. package/.next/server/app/(app)/plugins/page.js.nft.json +1 -1
  68. package/.next/server/app/(app)/plugins/page_client-reference-manifest.js +1 -1
  69. package/.next/server/app/(app)/pm/page.js +2 -2
  70. package/.next/server/app/(app)/pm/page.js.nft.json +1 -1
  71. package/.next/server/app/(app)/pm/page_client-reference-manifest.js +1 -1
  72. package/.next/server/app/(app)/prepare-deploy/page.js +3 -3
  73. package/.next/server/app/(app)/prepare-deploy/page.js.nft.json +1 -1
  74. package/.next/server/app/(app)/prepare-deploy/page_client-reference-manifest.js +1 -1
  75. package/.next/server/app/(app)/profile/page.js +2 -2
  76. package/.next/server/app/(app)/profile/page.js.nft.json +1 -1
  77. package/.next/server/app/(app)/profile/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/(app)/pulse/page.js +2 -2
  79. package/.next/server/app/(app)/pulse/page.js.nft.json +1 -1
  80. package/.next/server/app/(app)/pulse/page_client-reference-manifest.js +1 -1
  81. package/.next/server/app/(app)/reports/[id]/page.js +2 -2
  82. package/.next/server/app/(app)/reports/[id]/page.js.nft.json +1 -1
  83. package/.next/server/app/(app)/reports/[id]/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/(app)/reports/page.js +3 -3
  85. package/.next/server/app/(app)/reports/page.js.nft.json +1 -1
  86. package/.next/server/app/(app)/reports/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/(app)/routines/page.js +1 -1
  88. package/.next/server/app/(app)/routines/page.js.nft.json +1 -1
  89. package/.next/server/app/(app)/routines/page_client-reference-manifest.js +1 -1
  90. package/.next/server/app/(app)/search/page.js +2 -2
  91. package/.next/server/app/(app)/search/page.js.nft.json +1 -1
  92. package/.next/server/app/(app)/search/page_client-reference-manifest.js +1 -1
  93. package/.next/server/app/(app)/security/page.js +2 -2
  94. package/.next/server/app/(app)/security/page.js.nft.json +1 -1
  95. package/.next/server/app/(app)/security/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/(app)/skills/page.js +2 -2
  97. package/.next/server/app/(app)/skills/page.js.nft.json +1 -1
  98. package/.next/server/app/(app)/skills/page_client-reference-manifest.js +1 -1
  99. package/.next/server/app/(app)/tasks/page.js +2 -2
  100. package/.next/server/app/(app)/tasks/page.js.nft.json +1 -1
  101. package/.next/server/app/(app)/tasks/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app/(app)/test-dev/page.js +2 -2
  103. package/.next/server/app/(app)/test-dev/page.js.nft.json +1 -1
  104. package/.next/server/app/(app)/test-dev/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/(app)/update/page.js +2 -2
  106. package/.next/server/app/(app)/update/page.js.nft.json +1 -1
  107. package/.next/server/app/(app)/update/page_client-reference-manifest.js +1 -1
  108. package/.next/server/app/(auth)/login/page.js +2 -2
  109. package/.next/server/app/(auth)/login/page_client-reference-manifest.js +1 -1
  110. package/.next/server/app/(auth)/onboarding/page.js +1 -1
  111. package/.next/server/app/(auth)/onboarding/page_client-reference-manifest.js +1 -1
  112. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  113. package/.next/server/app/_global-error.html +1 -1
  114. package/.next/server/app/_global-error.rsc +1 -1
  115. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  117. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  118. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  120. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  122. package/.next/server/app/api/cron/tick/route.js +2 -2
  123. package/.next/server/app/api/sync/file/route.js +1 -1
  124. package/.next/server/app/api/telegram/poll/route.js +3 -3
  125. package/.next/server/app/api/v1/[[...path]]/route.js +1 -1
  126. package/.next/server/app-paths-manifest.json +1 -1
  127. package/.next/server/chunks/104.js +1 -0
  128. package/.next/server/chunks/1082.js +1 -0
  129. package/.next/server/chunks/1249.js +6 -6
  130. package/.next/server/chunks/2359.js +1 -0
  131. package/.next/server/chunks/259.js +1 -1
  132. package/.next/server/chunks/2867.js +1 -1
  133. package/.next/server/chunks/2960.js +1 -1
  134. package/.next/server/chunks/{3882.js → 3078.js} +15 -15
  135. package/.next/server/chunks/3234.js +1 -1
  136. package/.next/server/chunks/4979.js +2 -2
  137. package/.next/server/chunks/6431.js +1 -1
  138. package/.next/server/chunks/7589.js +1 -1
  139. package/.next/server/chunks/7970.js +21 -0
  140. package/.next/server/chunks/7989.js +1 -1
  141. package/.next/server/chunks/8071.js +4 -0
  142. package/.next/server/chunks/{2939.js → 8102.js} +2 -2
  143. package/.next/server/chunks/8561.js +1 -1
  144. package/.next/server/chunks/8823.js +1 -1
  145. package/.next/server/chunks/9783.js +1 -1
  146. package/.next/server/middleware-build-manifest.js +1 -1
  147. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  148. package/.next/server/pages/500.html +1 -1
  149. package/.next/server/server-reference-manifest.js +1 -1
  150. package/.next/server/server-reference-manifest.json +1 -1
  151. package/.next/static/chunks/1068-50497be19315ccfb.js +1 -0
  152. package/.next/static/chunks/4991-0306ad0e6cd8cb8a.js +1 -0
  153. package/.next/static/chunks/6061-f3ad54a48323cba0.js +1 -0
  154. package/.next/static/chunks/6121-37930472292e5a6c.js +4 -0
  155. package/.next/static/chunks/{7509.721cd47a931c5518.js → 7509.8d3cbebb5fbe6247.js} +1 -1
  156. package/.next/static/chunks/{8370-db3280cb1ba67bcd.js → 8370-4a29b1affcb7dc68.js} +2 -2
  157. package/.next/static/chunks/app/(app)/activity/{page-f06add40c3785686.js → page-02fbf7cf46282feb.js} +1 -1
  158. package/.next/static/chunks/app/(app)/agents/[handle]/page-e3eda42a3f20e3e5.js +1 -0
  159. package/.next/static/chunks/app/(app)/code/{page-ef9dceeae728b9d1.js → page-8f8ae22136752631.js} +1 -1
  160. package/.next/static/chunks/app/(app)/config/page-84216e49b0b08248.js +1 -0
  161. package/.next/static/chunks/app/(app)/costs/page-aadb60fb329974f3.js +1 -0
  162. package/.next/static/chunks/app/(app)/cron/page-0219c7a0530ad628.js +1 -0
  163. package/.next/static/chunks/app/(app)/dashboard/page-1e7ecb2bdefcdc19.js +1 -0
  164. package/.next/static/chunks/app/(app)/design/{page-e0fd071fb7144c46.js → page-f889489d70e0e839.js} +3 -3
  165. package/.next/static/chunks/app/(app)/docs/[id]/page-f2e1f3d72634fb4b.js +1 -0
  166. package/.next/static/chunks/app/(app)/docs/page-ab10f655b932f175.js +1 -0
  167. package/.next/static/chunks/app/(app)/github/page-0e47c2c1c9c927e4.js +1 -0
  168. package/.next/static/chunks/app/(app)/goals/page-9a68e61bbc392281.js +1 -0
  169. package/.next/static/chunks/app/(app)/inbox/page-6ee42cdd99664d11.js +12 -0
  170. package/.next/static/chunks/app/(app)/knowledge/page-c02936180f61550f.js +1 -0
  171. package/.next/static/chunks/app/(app)/layout-7d2d377b224620c8.js +1 -0
  172. package/.next/static/chunks/app/(app)/models/page-8635495017d696c1.js +1 -0
  173. package/.next/static/chunks/app/(app)/notifications/page-72f15bd4b6289bf1.js +12 -0
  174. package/.next/static/chunks/app/(app)/org/page-30bb71b216cc152e.js +12 -0
  175. package/.next/static/chunks/app/(app)/organizations/page-50c64b60a6850870.js +1 -0
  176. package/.next/static/chunks/app/(app)/page-638517264806ba7e.js +1 -0
  177. package/.next/static/chunks/app/(app)/planner/page-5177b5fd72d529f4.js +1 -0
  178. package/.next/static/chunks/app/(app)/plugins/page-66921b5b398f2c05.js +1 -0
  179. package/.next/static/chunks/app/(app)/pm/page-a1f93d19d3c28627.js +1 -0
  180. package/.next/static/chunks/app/(app)/prepare-deploy/page-de7dc9413e3dbf82.js +1 -0
  181. package/.next/static/chunks/app/(app)/profile/page-e73d191fce633cd7.js +1 -0
  182. package/.next/static/chunks/app/(app)/pulse/page-a0895a89c74c1d4c.js +1 -0
  183. package/.next/static/chunks/app/(app)/reports/[id]/page-0219c7a0530ad628.js +1 -0
  184. package/.next/static/chunks/app/(app)/reports/page-fd0b0d0fa742819e.js +1 -0
  185. package/.next/static/chunks/app/(app)/routines/page-eaba9756a33d98a6.js +1 -0
  186. package/.next/static/chunks/app/(app)/search/page-d975712d07eed70d.js +1 -0
  187. package/.next/static/chunks/app/(app)/security/page-4b126307f9963c2a.js +1 -0
  188. package/.next/static/chunks/app/(app)/skills/page-f1fc99f1d15e26a4.js +1 -0
  189. package/.next/static/chunks/app/(app)/tasks/page-a4b78a8d76fd9432.js +1 -0
  190. package/.next/static/chunks/app/(app)/test-dev/page-55cef74633b3cf4c.js +1 -0
  191. package/.next/static/chunks/app/(app)/update/page-92764fc98b253709.js +1 -0
  192. package/.next/static/chunks/app/(auth)/login/page-3df648bab2319a0b.js +1 -0
  193. package/.next/static/chunks/app/(auth)/onboarding/page-ee09eb3fd38f3365.js +1 -0
  194. package/.next/static/chunks/{main-722e16032e7764d1.js → main-2e2f6e1d0f3b78b1.js} +1 -1
  195. package/.next/static/chunks/webpack-94c9726ec79ee4b4.js +1 -0
  196. package/.next/trace-build +1 -1
  197. package/CHANGELOG.md +19 -0
  198. package/README.md +1 -1
  199. package/README.pt-BR.md +1 -1
  200. package/bin/constella.mjs +7 -6
  201. package/docs/UPDATE.md +1 -1
  202. package/docs/en/TROUBLESHOOTING.md +3 -0
  203. package/docs/pt/TROUBLESHOOTING.md +3 -0
  204. package/package.json +4 -3
  205. package/scripts/vps-install.sh +8 -0
  206. package/.next/server/chunks/3440.js +0 -1
  207. package/.next/server/chunks/5181.js +0 -1
  208. package/.next/server/chunks/7976.js +0 -1
  209. package/.next/server/chunks/834.js +0 -4
  210. package/.next/server/chunks/9459.js +0 -21
  211. package/.next/static/chunks/2237-2a30470119df8616.js +0 -1
  212. package/.next/static/chunks/7268-ac23e9901bf535af.js +0 -4
  213. package/.next/static/chunks/9846-c853e71d4d8fbb80.js +0 -1
  214. package/.next/static/chunks/9950-703805abe4653068.js +0 -1
  215. package/.next/static/chunks/app/(app)/agents/[handle]/page-2ddf1f9908c73eb1.js +0 -1
  216. package/.next/static/chunks/app/(app)/config/page-496e569efd86e75c.js +0 -1
  217. package/.next/static/chunks/app/(app)/costs/page-675f542fdd517bee.js +0 -1
  218. package/.next/static/chunks/app/(app)/cron/page-80a87a05492c0ffe.js +0 -1
  219. package/.next/static/chunks/app/(app)/dashboard/page-4bddca6808a3be40.js +0 -1
  220. package/.next/static/chunks/app/(app)/docs/[id]/page-f05e389793127500.js +0 -1
  221. package/.next/static/chunks/app/(app)/docs/page-f6bbf5c6b9104cbe.js +0 -1
  222. package/.next/static/chunks/app/(app)/github/page-5297c806ce6afa9b.js +0 -1
  223. package/.next/static/chunks/app/(app)/goals/page-3fa53e8541c8e9fc.js +0 -1
  224. package/.next/static/chunks/app/(app)/inbox/page-a2a74b5f6a6c326e.js +0 -12
  225. package/.next/static/chunks/app/(app)/knowledge/page-fb11b2bfa9ecd9a4.js +0 -1
  226. package/.next/static/chunks/app/(app)/layout-b74cd565406964d5.js +0 -1
  227. package/.next/static/chunks/app/(app)/models/page-c8acfc3d353fd9d0.js +0 -1
  228. package/.next/static/chunks/app/(app)/notifications/page-05a094d02d23f455.js +0 -12
  229. package/.next/static/chunks/app/(app)/org/page-883d6aa98b593c6b.js +0 -12
  230. package/.next/static/chunks/app/(app)/organizations/page-4595e8fa86ca3c01.js +0 -1
  231. package/.next/static/chunks/app/(app)/page-21d47e76fe9a6c63.js +0 -1
  232. package/.next/static/chunks/app/(app)/planner/page-1fc32005d05bbe69.js +0 -1
  233. package/.next/static/chunks/app/(app)/plugins/page-454613b9f5cb1d3d.js +0 -1
  234. package/.next/static/chunks/app/(app)/pm/page-8473da305f4c2880.js +0 -1
  235. package/.next/static/chunks/app/(app)/prepare-deploy/page-3ba948f5557dea38.js +0 -1
  236. package/.next/static/chunks/app/(app)/profile/page-05f25516fea20762.js +0 -1
  237. package/.next/static/chunks/app/(app)/pulse/page-540a80dbaf61453d.js +0 -1
  238. package/.next/static/chunks/app/(app)/reports/[id]/page-80a87a05492c0ffe.js +0 -1
  239. package/.next/static/chunks/app/(app)/reports/page-de1e69ca09d7cabb.js +0 -1
  240. package/.next/static/chunks/app/(app)/routines/page-83085c9ba3584ec9.js +0 -1
  241. package/.next/static/chunks/app/(app)/search/page-8769fd9075e21e36.js +0 -1
  242. package/.next/static/chunks/app/(app)/security/page-1baa88dc61c3fab8.js +0 -1
  243. package/.next/static/chunks/app/(app)/skills/page-fa75c290b456c629.js +0 -1
  244. package/.next/static/chunks/app/(app)/tasks/page-1eb62689244c8a79.js +0 -1
  245. package/.next/static/chunks/app/(app)/test-dev/page-c496b31087389906.js +0 -1
  246. package/.next/static/chunks/app/(app)/update/page-5a217e6479bc5289.js +0 -1
  247. package/.next/static/chunks/app/(auth)/login/page-ad50e3112f35f41c.js +0 -1
  248. package/.next/static/chunks/app/(auth)/onboarding/page-ab05f02e868c9eec.js +0 -1
  249. package/.next/static/chunks/webpack-222e3894b78c67db.js +0 -1
  250. /package/.next/static/{T0ETI55t9tc9pi5i_CGOe → N4KMSOY3i-qyXrbfm97sO}/_buildManifest.js +0 -0
  251. /package/.next/static/{T0ETI55t9tc9pi5i_CGOe → N4KMSOY3i-qyXrbfm97sO}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[101],{689:(e,s,a)=>{"use strict";a.d(s,{K:()=>r});var i=a(7814);let r=(0,i.createServerReference)("000092376504dffe42d6d7bbea8971004cfbf59aa1",i.callServer,void 0,i.findSourceMapURL,"disconnectTelegram")},3085:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,8910)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444)),Promise.resolve().then(a.bind(a,5787))},4055:(e,s,a)=>{"use strict";a.d(s,{Jv:()=>l,yK:()=>n});var i=a(5138),r=a(8618);let n=(0,i.M)({baseURL:window.location.origin,plugins:[(0,r.N)()]}),{signIn:l,signUp:t,signOut:c,useSession:o,twoFactor:d}=n},4552:(e,s,a)=>{"use strict";a.d(s,{e:()=>r});var i=a(5076);function r({name:e,color:s,size:a=24,health:n,image:l}){let t=Math.max(6,Math.round(.3*a)),c=Math.round(.28*a),o=l?/^(data:|https?:|\/)/.test(l)?l:`/api/upload?path=${encodeURIComponent(l)}`:null;return(0,i.jsxs)("span",{style:{position:"relative",width:a,height:a,flex:`0 0 ${a}px`,display:"inline-block"},children:[o?(0,i.jsx)("img",{src:o,alt:e,width:a,height:a,style:{width:a,height:a,borderRadius:c,objectFit:"cover",display:"block"}}):(0,i.jsx)("span",{style:{width:a,height:a,borderRadius:c,background:s,color:"#fff",display:"grid",placeItems:"center",fontSize:Math.round(.42*a),fontWeight:700},children:(e[0]||"?").toUpperCase()}),n&&(0,i.jsx)("span",{style:{position:"absolute",right:-1,bottom:-1,width:t,height:t,borderRadius:"50%",background:"alive"===n?"var(--sx-string)":"stale"===n?"var(--sx-number)":"var(--text-faint)",border:"1.5px solid var(--bg-elevated)"}})]})}},7966:(e,s,a)=>{"use strict";a.d(s,{M:()=>r});var i=a(7814);let r=(0,i.createServerReference)("70ab3ef26c7e92e3e1c1e22461b0e2ef3159149053",i.callServer,void 0,i.findSourceMapURL,"connectTelegram")},8006:(e,s,a)=>{"use strict";a.d(s,{n:()=>c});var i=a(5076),r=a(8488),n=a(4552),l=a(8576),t=a(5629);function c({name:e,color:s,image:a,size:o=64,onChange:d}){let m=(0,t.k)(),h=(0,r.useRef)(null),[p,f]=(0,r.useState)(!1),[u,x]=(0,r.useState)(""),[,v]=(0,r.useTransition)();async function j(e){if(e){x(""),f(!0);try{let s=await function(e,s=160){return new Promise((a,i)=>{let r=URL.createObjectURL(e),n=new Image;n.onload=()=>{URL.revokeObjectURL(r);let e=Math.min(1,s/Math.max(n.width,n.height)),l=Math.max(1,Math.round(n.width*e)),t=Math.max(1,Math.round(n.height*e)),c=document.createElement("canvas");c.width=l,c.height=t;let o=c.getContext("2d");if(!o)return void i(Error("canvas unavailable"));o.drawImage(n,0,0,l,t);let d=c.toDataURL("image/webp",.85);d.startsWith("data:image/webp")||(d=c.toDataURL("image/jpeg",.85)),d.length>6e5&&(d=c.toDataURL("image/jpeg",.6)),a(d)},n.onerror=()=>{URL.revokeObjectURL(r),i(Error("invalid image"))},n.src=r})}(e);v(()=>d(s))}catch{x(m("chrome.avatar.processError"))}finally{f(!1),h.current&&(h.current.value="")}}}return(0,i.jsxs)("div",{className:"avatar-upload",children:[(0,i.jsx)(n.e,{name:e,color:s,image:a,size:o}),(0,i.jsxs)("div",{className:"avatar-upload-actions",children:[(0,i.jsxs)("button",{className:"btn-ghost",disabled:p,onClick:()=>h.current?.click(),children:[p?(0,i.jsx)("span",{className:"sync-spin",children:(0,i.jsx)(l.I,{name:"refresh",size:12})}):(0,i.jsx)(l.I,{name:"add",size:12})," ",a?m("chrome.avatar.change"):m("chrome.avatar.upload")]}),u&&(0,i.jsx)("span",{style:{fontSize:11,color:"#e8688f"},children:u}),(0,i.jsx)("input",{ref:h,type:"file",accept:".png,.jpg,.jpeg,.gif,.webp",hidden:!0,onChange:e=>j(e.target.files?.[0])})]})]})}},8910:(e,s,a)=>{"use strict";a.d(s,{Profile:()=>R,ProfileSaveButton:()=>L});var i=a(5076),r=a(8488),n=a(9860),l=a(2320),t=a(4055),c=a(8576),o=a(8006),d=a(6556),m=a(5629),h=a(7814);let p=(0,h.createServerReference)("4061d2fff9149f3df3f6807779c546d43b8913db00",h.callServer,void 0,h.findSourceMapURL,"updateProfile"),f=(0,h.createServerReference)("40c8745e5d6d974d20084fff8a5273a8c2ca0f9c0e",h.callServer,void 0,h.findSourceMapURL,"removePasskey"),u=(0,h.createServerReference)("000a041d002c8ec4af941e0a6d667a3829b48260ce",h.callServer,void 0,h.findSourceMapURL,"revokeOtherSessionsAction"),x=(0,h.createServerReference)("005378c98afb4c20e7152c9d11239ad09757831252",h.callServer,void 0,h.findSourceMapURL,"deleteAccountAction"),v=(0,h.createServerReference)("60b5011b57b25dd9d35c49e5581c26ff1450ffa84d",h.callServer,void 0,h.findSourceMapURL,"createPAT"),j=(0,h.createServerReference)("407efc0bd72272aed2f1d86ee92ec53b31e5797f6a",h.callServer,void 0,h.findSourceMapURL,"revokePAT"),g=(0,h.createServerReference)("40903ff4e8850de2b9b0ec69f26d96d30e134dd37d",h.callServer,void 0,h.findSourceMapURL,"unlinkSocial");var b=a(689),N=a(7966);let k=(0,h.createServerReference)("60b2fea611b43792cdb4ef4bb5ea683665a4c11d10",h.callServer,void 0,h.findSourceMapURL,"setNotifPref"),y=(0,h.createServerReference)("400afad86c243d920cb13488b8274bea36c18c21d3",h.callServer,void 0,h.findSourceMapURL,"setMotionPref"),w=(0,h.createServerReference)("40240213a9ee438876082ca59a072e1d2476d156c9",h.callServer,void 0,h.findSourceMapURL,"revokeSessionAction"),S="constella:profile-save",C=[{id:"account",icon:"account"},{id:"security",icon:"shield"},{id:"connections",icon:"git"},{id:"notifications",icon:"bell"},{id:"sessions",icon:"cpu"}];function R(e){let s=(0,m.k)(),[a,n]=(0,r.useState)("account");return(0,i.jsxs)("div",{className:"settings",children:[(0,i.jsx)("div",{className:"settings-nav",children:C.map(e=>(0,i.jsxs)("button",{className:"sn-item"+(a===e.id?" on":""),onClick:()=>n(e.id),children:[(0,i.jsx)(c.I,{name:e.icon,size:15})," ",s(`profile.tab.${e.id}`)]},e.id))}),(0,i.jsxs)("div",{className:"settings-panel",children:["account"===a&&(0,i.jsx)(P,{account:e.account}),"security"===a&&(0,i.jsx)(U,{account:e.account,passkeys:e.passkeys}),"tokens"===a&&(0,i.jsx)(z,{tokens:e.tokens}),"connections"===a&&(0,i.jsx)(I,{connections:e.connections}),"notifications"===a&&(0,i.jsx)(T,{prefs:e.prefs}),"sessions"===a&&(0,i.jsx)(E,{sessions:e.sessions})]})]})}function L(){let e=(0,m.k)(),[s,a]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{function e(){a(!0),setTimeout(()=>a(!1),1600)}return window.addEventListener(S+":done",e),()=>window.removeEventListener(S+":done",e)},[]),s)?(0,i.jsxs)("span",{className:"oauth-ok",style:{padding:"6px 11px"},children:[(0,i.jsx)(c.I,{name:"check",size:13})," ",e("common.saved")]}):(0,i.jsxs)("button",{className:"btn-accent",onClick:()=>window.dispatchEvent(new CustomEvent(S)),children:[(0,i.jsx)(c.I,{name:"check",size:14})," ",e("profile.saveChanges")]})}function P({account:e}){let s=(0,m.k)(),[a,n]=(0,r.useState)(e.name),[l,t]=(0,r.useState)(e.addressAs),[c,h]=(0,r.useState)(e.lang),[f,u]=(0,r.useState)(e.tz),[,x]=(0,r.useTransition)();(0,r.useEffect)(()=>{function e(){x(async()=>{await p({name:a,addressAs:l,lang:c,tz:f}),window.dispatchEvent(new CustomEvent(S+":done"))})}return window.addEventListener(S,e),()=>window.removeEventListener(S,e)},[a,l,c,f,x]);let[v,j]=(0,r.useState)(e.image??null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"set-card",children:(0,i.jsxs)("div",{className:"set-row",style:{paddingTop:0},children:[(0,i.jsx)(o.n,{name:a||s("profile.operatorFallback"),color:"#9a5cff",image:v,size:64,onChange:e=>{j(e),x(()=>p({image:e}))}}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",style:{fontSize:16,fontWeight:700},children:a}),(0,i.jsxs)("div",{className:"sr-sub",children:[e.email," \xb7 ",s("profile.role.owner")]})]})]})}),(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.account.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.account.desc")}),(0,i.jsxs)("div",{className:"set-grid",children:[(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("common.name")}),(0,i.jsx)("input",{className:"form-input",value:a,onChange:e=>n(e.target.value)})]}),(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.email")}),(0,i.jsx)("input",{className:"form-input",value:e.email,readOnly:!0})]})]})]}),(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.operatorContext.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.operatorContext.desc")}),(0,i.jsxs)("div",{className:"set-grid",children:[(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.addressAs")}),(0,i.jsx)("input",{className:"form-input",value:l,onChange:e=>t(e.target.value)})]}),(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.agentLanguage")}),(0,i.jsxs)("select",{className:"form-input",value:c,onChange:e=>h(e.target.value),children:[(0,i.jsx)("option",{children:"English (US)"}),(0,i.jsx)("option",{children:"Portugu\xeas (BR)"}),(0,i.jsx)("option",{children:"Espa\xf1ol"})]})]}),(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.interfaceLanguage")}),(0,i.jsx)("div",{style:{paddingTop:4},children:(0,i.jsx)(d.LangSwitch,{})})]}),(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.timezone")}),(0,i.jsxs)("select",{className:"form-input",value:f,onChange:e=>u(e.target.value),children:[(0,i.jsx)("option",{children:"UTC"}),(0,i.jsx)("option",{children:"America/Sao_Paulo"}),(0,i.jsx)("option",{children:"America/New_York"}),(0,i.jsx)("option",{children:"Europe/Lisbon"})]})]})]})]})]})}function U({passkeys:e}){let s=(0,m.k)(),a=(0,n.useRouter)(),[o,d]=(0,r.useState)(""),[h,p]=(0,r.useState)(""),[v,j]=(0,r.useState)(""),[g,b]=(0,r.useState)(!1),[N,k]=(0,r.useTransition)(),y=e.length>0;async function w(){b(!0),j("");let e=await t.yK.changePassword({currentPassword:o,newPassword:h,revokeOtherSessions:!0});b(!1),j(e.error?e.error.message??s("profile.msg.failed"):s("profile.msg.passwordUpdated")),e.error||(d(""),p(""))}async function S(){j("");try{let e=await fetch("/api/passkey/register/options",{method:"POST"}).then(e=>e.json());if(e.error)return void j(e.error);let s=await (0,l.Ct)({optionsJSON:e}),i=await fetch("/api/passkey/register/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({response:s,name:"Passkey"})}).then(e=>e.json());if(i.error)return void j(i.error);a.refresh()}catch(e){j(e instanceof Error?e.message:s("profile.msg.passkeyCancelled"))}}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.password.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.password.desc")}),(0,i.jsxs)("div",{className:"set-grid",children:[(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.currentPassword")}),(0,i.jsx)("input",{className:"form-input",type:"password",placeholder:"••••••••",value:o,onChange:e=>d(e.target.value)})]}),(0,i.jsxs)("div",{className:"form-field",children:[(0,i.jsx)("label",{className:"form-label",children:s("profile.field.newPassword")}),(0,i.jsx)("input",{className:"form-input",type:"password",placeholder:"••••••••",value:h,onChange:e=>p(e.target.value)})]})]}),(0,i.jsxs)("button",{className:"btn-ghost",style:{marginTop:12},disabled:g||o.length<8||h.length<8,onClick:w,children:[(0,i.jsx)(c.I,{name:"shield",size:13})," ",s("profile.password.update")]}),v&&(0,i.jsx)("div",{className:"sr-sub",style:{marginTop:8},children:v})]}),(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.auth.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.auth.desc")}),(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"account",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsxs)("div",{className:"sr-title",children:[s("profile.passkey.label")," ",y&&(0,i.jsx)("span",{className:"pill",style:{background:"var(--sx-string)22",color:"var(--sx-string)"},children:e.length})]}),(0,i.jsx)("div",{className:"sr-sub",children:s("profile.passkey.desc")})]}),(0,i.jsxs)("button",{className:"btn-ghost",onClick:S,children:[(0,i.jsx)(c.I,{name:"add",size:13})," ",s("profile.passkey.add")]})]}),e.map(e=>(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"shield",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsxs)("div",{className:"sr-title",children:[e.name," ",e.backedUp&&(0,i.jsx)("span",{className:"pill",style:{background:"var(--sx-string)22",color:"var(--sx-string)"},children:s("profile.passkey.synced")})]}),(0,i.jsx)("div",{className:"sr-sub",children:s("profile.passkey.added",{date:new Date(1e3*e.createdAt).toLocaleDateString()})})]}),(0,i.jsx)("button",{className:"link-btn",style:{color:"var(--sx-keyword)"},disabled:N,onClick:()=>k(()=>f(e.id)),children:s("common.remove")})]},e.id)),!y&&(0,i.jsx)("div",{className:"set-row",children:(0,i.jsx)("div",{className:"sr-main",children:(0,i.jsx)("div",{className:"sr-sub",style:{color:"var(--text-faint)"},children:s("profile.passkey.none")})})}),(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"account",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:s("profile.biometrics.label")}),(0,i.jsx)("div",{className:"sr-sub",children:s("profile.biometrics.desc")})]}),(0,i.jsx)("div",{className:"toggle"+(y?" on":""),style:{opacity:.5,cursor:"default"}})]}),v&&(0,i.jsx)("div",{className:"sr-sub",style:{marginTop:8},children:v})]}),(0,i.jsxs)("div",{className:"set-card danger-card",children:[(0,i.jsx)("h4",{style:{color:"var(--sx-keyword)"},children:s("profile.danger.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.danger.desc")}),(0,i.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,i.jsxs)("button",{className:"btn-danger",disabled:N,onClick:()=>k(()=>u()),children:[(0,i.jsx)(c.I,{name:"close",size:13})," ",s("profile.danger.signOutOthers")]}),(0,i.jsxs)("button",{className:"btn-danger",disabled:N,onClick:()=>{confirm(s("profile.danger.deleteConfirm"))&&k(()=>x())},children:[(0,i.jsx)(c.I,{name:"trash",size:13})," ",s("profile.danger.deleteAccount")]})]})]})]})}function z({tokens:e}){let s=(0,m.k)(),[a,n]=(0,r.useState)(""),[l,t]=(0,r.useState)("read"),[o,d]=(0,r.useState)(null),[h,p]=(0,r.useTransition)();return(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h4",{style:{marginBottom:2},children:s("profile.tokens.title")}),(0,i.jsx)("div",{className:"set-desc",style:{margin:0},children:s("profile.tokens.desc")})]})}),(0,i.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,i.jsx)("input",{className:"form-input",placeholder:s("profile.tokens.namePlaceholder"),value:a,onChange:e=>n(e.target.value)}),(0,i.jsxs)("select",{className:"form-input",value:l,onChange:e=>t(e.target.value),style:{maxWidth:160},children:[(0,i.jsx)("option",{value:"read",children:"read"}),(0,i.jsx)("option",{value:"repo, deploy",children:"repo, deploy"}),(0,i.jsx)("option",{value:"full",children:"full"})]}),(0,i.jsxs)("button",{className:"btn-accent",disabled:h,onClick:function(){p(async()=>{d((await v(a||"New token",l)).token),n("")})},children:[(0,i.jsx)(c.I,{name:"add",size:13})," ",s("profile.tokens.generate")]})]}),o&&(0,i.jsxs)("div",{className:"set-card",style:{background:"var(--bg-app)",marginBottom:12},children:[(0,i.jsx)("div",{className:"set-desc",style:{margin:0},children:s("profile.tokens.copyNow")}),(0,i.jsx)("span",{className:"token-pill",style:{display:"block",padding:8,marginTop:6,wordBreak:"break-all"},children:o})]}),e.map(e=>(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"skill",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:e.name}),(0,i.jsxs)("div",{className:"sr-sub",children:[s("profile.tokens.scope",{scope:e.scope}),e.lastUsed?` \xb7 ${s("profile.tokens.used",{date:new Date(1e3*e.lastUsed).toLocaleDateString()})}`:` \xb7 ${s("profile.tokens.neverUsed")}`]})]}),(0,i.jsxs)("span",{className:"token-pill",children:[e.prefix,"••••"]}),(0,i.jsx)(M,{id:e.id})]},e.id)),0===e.length&&(0,i.jsx)("div",{style:{color:"var(--text-faint)",fontSize:12.5,padding:"8px 0"},children:s("profile.tokens.none")})]})}function M({id:e}){let s=(0,m.k)(),[a,n]=(0,r.useTransition)();return(0,i.jsx)("button",{className:"link-btn",style:{color:"var(--sx-keyword)"},disabled:a,onClick:()=>n(()=>j(e)),children:s("common.revoke")})}function I({connections:e}){let s=(0,m.k)(),a=(0,n.useRouter)(),[l,o]=(0,r.useState)(!1),[d,h]=(0,r.useState)(""),[p,f]=(0,r.useState)(""),[u,x]=(0,r.useState)(""),[v,j]=(0,r.useState)(""),[k,y]=(0,r.useTransition)();async function w(e){await t.yK.linkSocial({provider:e,callbackURL:"/profile"})}return(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.connections.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.connections.desc")}),[{k:"github",name:"GitHub",glyph:"git"},{k:"google",name:"Google",glyph:"account"}].map(a=>{let r=e.providers.includes(a.k),n=e.linked.includes(a.k);return(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:a.glyph,size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:a.name}),(0,i.jsx)("div",{className:"sr-sub",children:s(`profile.provider.${a.k}.sub`)})]}),r?n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"oauth-ok",style:{padding:"4px 9px",fontSize:11.5},children:[(0,i.jsx)(c.I,{name:"check",size:12})," ",s("common.connected")]}),(0,i.jsx)("button",{className:"link-btn",style:{color:"var(--sx-keyword)"},disabled:k,onClick:()=>y(()=>g(a.k)),children:s("common.disconnect")})]}):(0,i.jsx)("button",{className:"btn-ghost",onClick:()=>w(a.k),children:s("common.connect")}):(0,i.jsx)("span",{className:"sr-sub",style:{color:"var(--text-faint)"},children:s("profile.connections.configureCredentials")})]},a.k)}),(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"bell",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:s("profile.telegram.title")}),(0,i.jsx)("div",{className:"sr-sub",children:s("profile.telegram.desc")})]}),e.telegram?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"oauth-ok",style:{padding:"4px 9px",fontSize:11.5},children:[(0,i.jsx)(c.I,{name:"check",size:12})," ",s("common.connected")]}),(0,i.jsx)("button",{className:"link-btn",style:{color:"var(--sx-keyword)"},disabled:k,onClick:()=>y(()=>(0,b.K)()),children:s("common.disconnect")})]}):(0,i.jsx)("button",{className:"btn-ghost",onClick:()=>o(e=>!e),children:s("common.connect")})]}),l&&!e.telegram&&(0,i.jsxs)("div",{className:"set-row",style:{borderBottom:"none",gap:8,flexWrap:"wrap"},children:[(0,i.jsx)("input",{className:"form-input",placeholder:s("profile.telegram.botPlaceholder"),value:d,onChange:e=>h(e.target.value)}),(0,i.jsx)("input",{className:"form-input",placeholder:s("profile.telegram.chatPlaceholder"),value:p,onChange:e=>f(e.target.value),style:{maxWidth:150}}),(0,i.jsx)("input",{className:"form-input",placeholder:s("profile.telegram.namePlaceholder"),value:u,onChange:e=>x(e.target.value),style:{maxWidth:150}}),(0,i.jsx)("button",{className:"btn-accent",disabled:k||!d||!p,onClick:()=>{j(""),y(async()=>{let e=await (0,N.M)(d,p,u);e.ok?(o(!1),h(""),f(""),x(""),a.refresh()):j(e.error??s("profile.msg.failed"))})},children:s("common.save")}),v&&(0,i.jsx)("div",{style:{fontSize:11,color:"#e8688f",width:"100%"},children:v})]})]})}function T({prefs:e}){let s=(0,m.k)(),a=(0,n.useRouter)(),[l,t]=(0,r.useState)(e),[c,o]=(0,r.useTransition)();return(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.notif.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.notif.desc")}),["email","telegram","inapp","weekly"].map(e=>(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:s(`profile.notif.${e}.label`)}),(0,i.jsx)("div",{className:"sr-sub",children:s(`profile.notif.${e}.desc`)})]}),(0,i.jsx)("div",{className:"toggle"+(l[e]?" on":""),onClick:()=>(function(e){if(c)return;let s=!l[e];t(a=>({...a,[e]:s})),o(()=>k(e,s))})(e)})]},e)),(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsx)("div",{className:"sr-title",children:s("profile.notif.reducedMotion.label")}),(0,i.jsx)("div",{className:"sr-sub",children:s("profile.notif.reducedMotion.desc")})]}),(0,i.jsx)("div",{className:"toggle"+(l.reducedMotion?" on":""),onClick:function(){if(c)return;let e=!l.reducedMotion;t(s=>({...s,reducedMotion:e})),o(async()=>{await y(e),a.refresh()})}})]})]})}function E({sessions:e}){let s=(0,m.k)(),[a,n]=(0,r.useTransition)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"set-card",children:[(0,i.jsx)("h4",{children:s("profile.sessions.title")}),(0,i.jsx)("div",{className:"set-desc",children:s("profile.sessions.desc")}),e.map(e=>(0,i.jsxs)("div",{className:"set-row",children:[(0,i.jsx)("div",{className:"brand-ico",children:(0,i.jsx)(c.I,{name:"cpu",size:15})}),(0,i.jsxs)("div",{className:"sr-main",children:[(0,i.jsxs)("div",{className:"sr-title",children:[e.device.slice(0,60)," ",e.current&&(0,i.jsx)("span",{className:"pill",style:{background:"var(--sx-string)22",color:"var(--sx-string)"},children:s("profile.sessions.current")})]}),(0,i.jsxs)("div",{className:"sr-sub",children:[e.ip||s("profile.sessions.local")," \xb7 ",s("profile.sessions.since",{date:new Date(1e3*e.createdAt).toLocaleDateString()})]})]}),!e.current&&(0,i.jsx)("button",{className:"link-btn",style:{color:"var(--sx-keyword)"},disabled:a,onClick:()=>n(()=>w(e.token)),children:s("profile.sessions.end")})]},e.id)),0===e.length&&(0,i.jsx)("div",{style:{color:"var(--text-faint)",fontSize:12.5,padding:"8px 0"},children:s("profile.sessions.none")})]})})}}},e=>{e.O(0,[9219,7555,2320,3219,9950,8370,6646,6834,7358],()=>e(e.s=3085)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5049],{856:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,4456)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444)),Promise.resolve().then(a.bind(a,5787))},4456:(e,s,a)=>{"use strict";a.d(s,{ValidatePanel:()=>o});var n=a(5076),r=a(8488),i=a(8576),l=a(5629),t=a(7814);let d=(0,t.createServerReference)("40b14ea6b63bd60de7088a773af37cab4ad669f37d",t.callServer,void 0,t.findSourceMapURL,"validateWorkspace");function o(){let e=(0,l.k)(),[s,a]=(0,r.useTransition)(),[t,o]=(0,r.useState)(null);return(0,n.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t&&(0,n.jsxs)("span",{className:"pill",style:{background:(t.ok?"var(--sx-string)":"var(--sx-number)")+"22",color:t.ok?"var(--sx-string)":"var(--sx-number)"},children:[t.ok?e("planner.validate.valid"):e("planner.validate.issues",{n:t.issues.length}),t.repaired.length?` \xb7 ${e("planner.validate.repaired",{n:t.repaired.length})}`:""]}),(0,n.jsxs)("button",{className:"btn-ghost",disabled:s,onClick:()=>a(async()=>o(await d())),children:[(0,n.jsx)(i.I,{name:"shield",size:13})," ",e("planner.validate.validate")]}),(0,n.jsxs)("button",{className:"btn-accent",disabled:s,onClick:()=>a(async()=>o(await d({repair:!0}))),children:[(0,n.jsx)(i.I,{name:"refresh",size:13,className:s?"sync-spin":""})," ",e("planner.validate.repair")]})]})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=856)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[148,3719],{5403:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3283,23)),Promise.resolve().then(n.bind(n,235)),Promise.resolve().then(n.bind(n,6588)),Promise.resolve().then(n.bind(n,4414)),Promise.resolve().then(n.bind(n,6556)),Promise.resolve().then(n.bind(n,4942)),Promise.resolve().then(n.bind(n,2444)),Promise.resolve().then(n.bind(n,5787))}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=5403)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4639],{7234:(e,r,s)=>{"use strict";s.d(r,{GenerateReportButton:()=>c});var n=s(5076),t=s(8488),i=s(9860),o=s(8576),a=s(7814);let d=(0,a.createServerReference)("008582154e06ad75d39b78d7feca57599cfe2ad541",a.callServer,void 0,a.findSourceMapURL,"generateReport");var l=s(5629);function c(){let e=(0,l.k)(),[r,s]=(0,t.useTransition)(),a=(0,i.useRouter)();return(0,n.jsxs)("button",{className:"btn-accent",disabled:r,onClick:()=>s(async()=>{let e=await d();e.ok&&e.id?a.push(`/reports/${e.id}`):a.refresh()}),children:[(0,n.jsx)(o.I,{name:"doc",size:14,className:r?"sync-spin":""})," ",e(r?"reports.generating":"reports.generate")]})}},9166:(e,r,s)=>{Promise.resolve().then(s.t.bind(s,3283,23)),Promise.resolve().then(s.bind(s,7234)),Promise.resolve().then(s.bind(s,235)),Promise.resolve().then(s.bind(s,6588)),Promise.resolve().then(s.bind(s,4414)),Promise.resolve().then(s.bind(s,6556)),Promise.resolve().then(s.bind(s,4942)),Promise.resolve().then(s.bind(s,2444)),Promise.resolve().then(s.bind(s,5787))}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=9166)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{3017:(e,n,a)=>{"use strict";a.d(n,{DeleteRoutineButton:()=>p,NewRoutineButton:()=>f});var i=a(5076),o=a(8488),t=a(9860),l=a(8576),s=a(3728),r=a(5629),c=a(7814);let d=(0,c.createServerReference)("40ddbf7e3d2270455bf3beb66604ddf5ddfedddf36",c.callServer,void 0,c.findSourceMapURL,"createRoutine"),u=(0,c.createServerReference)("407b05843d34268cb4427338a3999bc6b7f3cdf833",c.callServer,void 0,c.findSourceMapURL,"deleteRoutine"),m=["Hourly","Daily","Weekly","Monthly"];function f({agents:e}){let n=(0,r.k)(),[a,c]=(0,o.useState)(!1),[u,p]=(0,o.useState)(""),[b,h]=(0,o.useState)(""),[v,g]=(0,o.useState)("Daily"),[x,y]=(0,o.useState)(""),[j,w]=(0,o.useState)(""),[k,N]=(0,o.useTransition)(),S=(0,t.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{className:"btn-accent",onClick:()=>c(!0),children:[(0,i.jsx)(l.I,{name:"add",size:14})," ",n("routines.new.button")]}),a&&(0,i.jsx)("div",{className:"modal-overlay",onMouseDown:()=>!k&&c(!1),children:(0,i.jsxs)("div",{className:"modal",style:{padding:"20px 22px",width:460,maxWidth:"94vw"},onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsx)("div",{style:{fontSize:15,fontWeight:800,marginBottom:4},children:n("routines.new.title")}),(0,i.jsx)("div",{style:{fontSize:12,color:"var(--text-dim)",marginBottom:12},children:n("routines.new.desc")}),(0,i.jsxs)("label",{className:"form-label",children:[n("common.name")," ",(0,i.jsx)("span",{className:"req",children:"*"})]}),(0,i.jsx)("input",{className:"form-input",autoFocus:!0,value:u,onChange:e=>p(e.target.value),placeholder:n("routines.new.namePh")}),(0,i.jsx)("label",{className:"form-label",children:n("routines.new.command")}),(0,i.jsx)("input",{className:"form-input mono",value:b,onChange:e=>h(e.target.value),placeholder:n("routines.new.commandPh")}),(0,i.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("label",{className:"form-label",children:n("routines.new.frequency")}),(0,i.jsx)(s.m,{value:v,options:m.map(e=>({value:e,label:n(`routines.freq.${e}`)})),onChange:g})]}),(0,i.jsxs)("div",{style:{flex:1},children:[(0,i.jsx)("label",{className:"form-label",children:n("routines.new.ownerAgent")}),(0,i.jsx)(s.m,{value:x,placeholder:n("routines.new.unassigned"),options:[{value:"",label:n("routines.new.unassigned")},...e.map(e=>({value:e.id,label:e.name}))],onChange:y})]})]}),j&&(0,i.jsx)("div",{style:{color:"#e8688f",fontSize:12,marginTop:8},children:j}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[(0,i.jsx)("button",{className:"btn-ghost",disabled:k,onClick:()=>c(!1),children:n("common.cancel")}),(0,i.jsx)("button",{className:"btn-accent",disabled:k||!u.trim(),onClick:function(){w(""),N(async()=>{let e=await d({name:u,cmd:b,freq:v,agentId:x||void 0});e.ok?(c(!1),p(""),h(""),g("Daily"),y(""),S.refresh()):w(e.error??n("routines.new.failed"))})},children:k?n("routines.new.creating"):n("routines.new.create")})]})]})})]})}function p({id:e}){let n=(0,r.k)(),[a,s]=(0,o.useTransition)(),c=(0,t.useRouter)();return(0,i.jsx)("button",{className:"iact danger",title:n("routines.delete.title"),disabled:a,onClick:()=>{confirm(n("routines.delete.confirm"))&&s(async()=>{await u(e),c.refresh()})},children:(0,i.jsx)(l.I,{name:"trash",size:14})})}},3728:(e,n,a)=>{"use strict";a.d(n,{m:()=>r});var i=a(5076),o=a(8488),t=a(8576),l=a(9265),s=a(5629);function r({value:e,options:n,onChange:a,placeholder:c,mono:d,glyph:u,disabled:m,searchable:f}){let p=(0,s.k)(),[b,h]=(0,o.useState)(!1),[v,g]=(0,o.useState)(""),x=(0,o.useRef)(null),y=(0,o.useRef)(null),j=(0,o.useMemo)(()=>(n||[]).map(e=>"string"==typeof e?{value:e,label:e}:e),[n]),w=j.find(n=>n.value===e),k=(f??j.length>8)&&!m,N=v.trim().toLowerCase(),S=k&&N?j.filter(e=>(e.label+" "+e.value+" "+(e.sub||"")).toLowerCase().includes(N)):j;return(0,o.useEffect)(()=>{if(!b)return void g("");function e(e){x.current&&!x.current.contains(e.target)&&h(!1)}function n(e){"Escape"===e.key&&h(!1)}return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),k&&requestAnimationFrame(()=>y.current?.focus()),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}},[b,k]),(0,i.jsxs)("div",{className:"dd"+(b?" open":"")+(m?" disabled":""),ref:x,children:[(0,i.jsxs)("button",{type:"button",className:"dd-btn"+(d?" mono":""),onClick:()=>!m&&h(e=>!e),children:[u&&w&&(0,i.jsx)(l.W,{id:w.glyphId||w.value,size:20}),(0,i.jsx)("span",{className:"dd-val",children:w?w.label:(0,i.jsx)("span",{className:"dd-ph",children:c||p("common.selectEllipsis")})}),(0,i.jsx)(t.I,{name:"chevronDown",size:14})]}),b&&(0,i.jsxs)("div",{className:"dd-menu scroll",children:[k&&(0,i.jsxs)("div",{style:{position:"sticky",top:0,zIndex:1,display:"flex",alignItems:"center",gap:6,padding:"6px 8px",margin:"-4px -4px 4px",background:"var(--bg-elev, var(--bg-active))",borderBottom:"1px solid var(--border)"},children:[(0,i.jsx)(t.I,{name:"search",size:13}),(0,i.jsx)("input",{ref:y,value:v,placeholder:p("common.searchEllipsis"),onChange:e=>g(e.target.value),onKeyDown:e=>{"Enter"===e.key&&S[0]?(a(S[0].value),h(!1)):"Escape"===e.key&&v&&(e.stopPropagation(),g(""))},className:d?"mono":void 0,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text)",fontSize:12.5,fontFamily:d?"var(--mono-font)":"inherit"}}),v&&(0,i.jsx)("button",{type:"button",title:p("common.clear"),onClick:()=>{g(""),y.current?.focus()},style:{background:"none",border:"none",color:"var(--text-dim)",cursor:"pointer",display:"flex",padding:0},children:(0,i.jsx)(t.I,{name:"close",size:12})})]}),0===j.length&&(0,i.jsx)("div",{className:"dd-empty",children:p("common.noOptions")}),j.length>0&&0===S.length&&(0,i.jsx)("div",{className:"dd-empty",children:p("dropdown.noMatch",{q:v})}),S.map(n=>(0,i.jsxs)("button",{type:"button",className:"dd-opt"+(n.value===e?" on":""),onClick:()=>{a(n.value),h(!1)},children:[u&&(0,i.jsx)(l.W,{id:n.glyphId||n.value,size:22}),(0,i.jsxs)("span",{className:"dd-opt-main",children:[(0,i.jsx)("span",{className:"dd-opt-label"+(d?" mono":""),children:n.label}),n.sub&&(0,i.jsx)("span",{className:"dd-opt-sub",children:n.sub})]}),n.tag&&(0,i.jsx)("span",{className:"dd-opt-tag",children:n.tag}),n.value===e&&(0,i.jsx)(t.I,{name:"check",size:13})]},n.value))]})]})}},8755:(e,n,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,9660)),Promise.resolve().then(a.bind(a,3017)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444)),Promise.resolve().then(a.bind(a,5787))},9265:(e,n,a)=>{"use strict";a.d(n,{W:()=>s});var i=a(5076),o=a(8488);let t={anthropic:"anthropic",claude_code:"claude",openai:"openai",codex_cli:"openai",google:"google",google_gemini:"gemini",gemini_cli:"gemini",vertex_ai:"vertexai",mistral:"mistral",deepseek:"deepseek",cohere:"cohere",perplexity:"perplexity",xai_grok:"grok",groq:"groq",ai21:"ai21",nvidia_nim:"nvidia",huggingface:"huggingface",replicate:"replicate",azure_openai:"azure",aws_bedrock:"bedrock",cloudflare:"cloudflare",dashscope:"qwen",zhipu:"zhipu",moonshot:"moonshot",minimax:"minimax",together:"together",openrouter:"openrouter",fireworks:"fireworks",cerebras:"cerebras",ollama:"ollama",ollama_cli:"ollama",lmstudio:"lmstudio",vllm:"vllm",localai:"localai",elevenlabs:"elevenlabs",stability:"stability",jina:"jina",voyage:"voyage"},l={anthropic:["#d97757","An"],openai:["#10a37f","AI"],google_gemini:["#4285f4","G"],google:["#4285f4","G"],mistral:["#fa520f","Mi"],xai_grok:["#1a1a1a","X"],deepseek:["#4d6bfe","DS"],cohere:["#39594d","Co"],ai21:["#e8488a","A2"],perplexity:["#20808d","Px"],groq:["#f55036","Gq"],nvidia_nim:["#76b900","NV"],together:["#0f6fff","To"],fireworks:["#5019c5","Fw"],cerebras:["#f25733","Cb"],huggingface:["#ff9d00","HF"],replicate:["#1a1a1a","Rp"],openrouter:["#6566f1","OR"],litellm:["#00b8a3","LL"],portkey:["#3b5bdb","Pk"],azure_openai:["#0078d4","Az"],aws_bedrock:["#ff9900","Br"],vertex_ai:["#4285f4","Vx"],cloudflare:["#f38020","Cf"],dashscope:["#ff6a00","Qw"],zhipu:["#3859ff","GL"],moonshot:["#16162a","Ki"],minimax:["#e1342c","MM"],ollama:["#0c0c0c","Ol"],llamacpp:["#7a4ddb","Lc"],lmstudio:["#4a5cff","LM"],vllm:["#1668dc","vL"],localai:["#2e7d32","La"],gpt4all:["#5b6cff","G4"],jan:["#1a1a1a","Jn"],claude_code:["#d97757","CC"],codex_cli:["#10a37f","Cx"],gemini_cli:["#4285f4","Gc"],aider:["#14b8a6","Ad"],ollama_cli:["#0c0c0c","Oc"],openclaw:["#e8590c","OC"],hermes_cli:["#6d28d9","Hm"],opencode:["#1a1a1a","Oc"],copilot_cli:["#1f2328","Co"],cursor_cli:["#1a1a1a","Cu"],cline_cli:["#2563eb","Cl"],kilo_code:["#7c3aed","Ki"],voyage:["#5b21b6","Vo"],jina:["#ec4899","Ji"],stability:["#a855f7","St"],elevenlabs:["#1a1a1a","El"]};function s({id:e,size:n=34,radius:a}){let r,c=l[e],d=c?c[0]:"#5b6378",u=c?c[1]:(e||"?").slice(0,2).replace(/[^a-z0-9]/gi,"").toUpperCase(),m=(r=t[e])?`https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg/icons/${r}.svg`:null,[f,p]=(0,o.useState)(!1),b=null!=a?a:Math.round(.28*n),h=m&&!f,v=Math.round(.66*n);return(0,i.jsx)("span",{className:"prov-glyph",style:{width:n,height:n,flex:"0 0 "+n+"px",borderRadius:b,background:h?"#fff":"linear-gradient(150deg, "+d+", color-mix(in srgb, "+d+" 70%, #000))",color:"#fff",display:"grid",placeItems:"center",overflow:"hidden",fontSize:Math.round(.4*n),fontWeight:800,letterSpacing:"-.5px",boxShadow:h?"inset 0 0 0 1px rgba(0,0,0,.08)":"inset 0 1px 0 rgba(255,255,255,.18)"},children:h?(0,i.jsx)("img",{src:m,alt:"",width:v,height:v,loading:"lazy",onError:()=>p(!0),style:{width:v,height:v,objectFit:"contain",display:"block"}}):u})}},9660:(e,n,a)=>{"use strict";a.d(n,{FixButton:()=>f,RunReviewButton:()=>p,Toggle:()=>m});var i=a(5076),o=a(8488),t=a(7814);let l=(0,t.createServerReference)("60dccbcd297b7188125f90cb3ce0fe028ae56f496a",t.callServer,void 0,t.findSourceMapURL,"toggleRoutine"),s=(0,t.createServerReference)("60b28e4da33b50b8648338a501ffdc93404dbe9967",t.callServer,void 0,t.findSourceMapURL,"togglePlugin"),r=(0,t.createServerReference)("403343bf523d7a6db1badd67fdb38e37203128bf13",t.callServer,void 0,t.findSourceMapURL,"fixFinding"),c=(0,t.createServerReference)("008ea2654697a5afa8e73caa0804e4bf4857be09f9",t.callServer,void 0,t.findSourceMapURL,"runReview");var d=a(8576),u=a(5629);function m({kind:e,id:n,on:a}){let[t,r]=(0,o.useTransition)(),c="routine"===e?l:s;return(0,i.jsx)("div",{className:"toggle"+(a?" on":""),"aria-disabled":t,role:"switch","aria-checked":a,onClick:()=>!t&&r(()=>c(n,!a))})}function f({id:e}){let n=(0,u.k)(),[a,t]=(0,o.useTransition)();return(0,i.jsxs)("button",{className:"sc2-btn",disabled:a,onClick:()=>t(()=>r(e)),children:[(0,i.jsx)(d.I,{name:"bot",size:12})," ",n("security.letAgentFix")]})}function p(){let e=(0,u.k)(),[n,a]=(0,o.useTransition)();return(0,i.jsxs)("button",{className:"btn-accent",disabled:n,onClick:()=>{window.dispatchEvent(new CustomEvent("constella:agent-run",{detail:{channel:"security"}})),a(async()=>{await c()})},children:[(0,i.jsx)(d.I,{name:"refresh",size:14,className:n?"sync-spin":""})," ",e(n?"security.reviewing":"security.runReview")]})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=8755)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7712],{1716:(e,s,t)=>{"use strict";t.d(s,{R:()=>a});var r=t(5076);function a({name:e}){let s={ts:{t:"TS",c:"#3178c6"},tsx:{t:"TS",c:"#3178c6"},js:{t:"JS",c:"#f0c000"},jsx:{t:"JS",c:"#f0c000"},json:{t:"{}",c:"#cbab35"},md:{t:"M↓",c:"#7d8590"},css:{t:"#",c:"#42a5f5"}}[e.split(".").pop()??""]||{t:"\xb7",c:"#7d8590"};return(0,r.jsx)("span",{style:{fontSize:9,fontWeight:700,fontFamily:"var(--mono-font, monospace)",color:s.c,lineHeight:1,letterSpacing:"-.5px"},children:s.t})}},7646:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,3283,23)),Promise.resolve().then(t.bind(t,8526)),Promise.resolve().then(t.bind(t,235)),Promise.resolve().then(t.bind(t,6588)),Promise.resolve().then(t.bind(t,4414)),Promise.resolve().then(t.bind(t,6556)),Promise.resolve().then(t.bind(t,4942)),Promise.resolve().then(t.bind(t,2444)),Promise.resolve().then(t.bind(t,5787))},8526:(e,s,t)=>{"use strict";t.d(s,{SearchPalette:()=>i});var r=t(5076),a=t(8488),l=t(9860),c=t(1716),n=t(5629);function i({index:e,empty:s}){let t=(0,l.useRouter)(),h=(0,n.k)(),[o,d]=(0,a.useState)(""),[m,u]=(0,a.useState)(!1),[x,p]=(0,a.useState)(!1),[v,g]=(0,a.useState)(!1),j=(0,a.useMemo)(()=>{if(!o.trim())return[];let s=null;try{let e=v?o:o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");x&&(e=`\\b(?:${e})\\b`),s=new RegExp(e,m?"g":"gi")}catch{s=null}if(!s)return[];let t=[];for(let r of e){let e=[];r.lines.forEach((t,r)=>{s.lastIndex=0;let a=s.exec(t);a&&a[0].length>0&&e.push({line:r,text:t,idx:a.index,len:a[0].length})}),e.length&&t.push({...r,matches:e})}return t},[o,m,x,v,e]),f=j.reduce((e,s)=>e+s.matches.length,0),b=v&&""!==o.trim()&&(()=>{try{return new RegExp(o),!1}catch{return!0}})();return(0,r.jsxs)("div",{className:"search-panel",children:[(0,r.jsx)("div",{className:"search-input-wrap",children:(0,r.jsx)("input",{className:"search-input",placeholder:h("common.search"),value:o,autoFocus:!0,onChange:e=>d(e.target.value)})}),(0,r.jsx)("input",{className:"replace-input",placeholder:h("search.replace"),disabled:!0}),(0,r.jsxs)("div",{className:"search-toolbar",children:[(0,r.jsx)("button",{className:"search-toggle"+(m?" on":""),title:h("search.matchCase"),onClick:()=>u(e=>!e),children:"Aa"}),(0,r.jsx)("button",{className:"search-toggle"+(x?" on":""),title:h("search.matchWholeWord"),onClick:()=>p(e=>!e),children:"ab"}),(0,r.jsx)("button",{className:"search-toggle"+(v?" on":""),title:h("search.useRegex"),onClick:()=>g(e=>!e),children:".*"})]}),o.trim()&&!b&&(0,r.jsx)("div",{className:"search-summary",children:h("search.summary",{results:f,files:j.length})}),o.trim()&&b&&(0,r.jsx)("div",{className:"search-summary",children:h("search.invalidRegex")}),!o.trim()&&s&&(0,r.jsx)("div",{className:"search-summary",children:h("search.emptyWorkspace")}),o.trim()&&!b&&0===j.length&&(0,r.jsx)("div",{className:"search-summary",children:h("search.noResultsFor",{q:o})}),(0,r.jsx)("div",{children:j.map(e=>(0,r.jsxs)("div",{className:"search-result-file",children:[(0,r.jsxs)("div",{className:"search-file-row",onClick:()=>{var s;return s=e.href,void t.push(s)},children:[(0,r.jsx)(c.R,{name:`x.${e.ext}`}),(0,r.jsx)("span",{children:e.name}),(0,r.jsx)("span",{style:{color:"var(--text-faint)",fontSize:11},children:e.path}),(0,r.jsx)("span",{className:"count",children:e.matches.length})]}),e.matches.slice(0,6).map((s,a)=>{let l,c,n;return(0,r.jsx)("div",{className:"search-match",onClick:()=>{var s;return s=e.href,void t.push(s)},children:(l=s.text.slice(0,s.idx),c=s.text.slice(s.idx,s.idx+s.len),n=s.text.slice(s.idx+s.len),(0,r.jsxs)(r.Fragment,{children:[l,(0,r.jsx)("mark",{children:c}),n]}))},a)})]},e.group+"/"+e.path))})]})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=7646)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3746],{2003:(e,n,t)=>{Promise.resolve().then(t.t.bind(t,3283,23)),Promise.resolve().then(t.bind(t,2978)),Promise.resolve().then(t.bind(t,9660)),Promise.resolve().then(t.bind(t,235)),Promise.resolve().then(t.bind(t,6588)),Promise.resolve().then(t.bind(t,4414)),Promise.resolve().then(t.bind(t,6556)),Promise.resolve().then(t.bind(t,4942)),Promise.resolve().then(t.bind(t,2444)),Promise.resolve().then(t.bind(t,5787))},2978:(e,n,t)=>{"use strict";t.d(n,{AgentRunLive:()=>o});var r=t(5076),s=t(8488),i=t(9860),a=t(8576),l=t(5115),c=t(5629);let d=["read","create","edit","run","search","thinking","done","error"];function o({channel:e,resume:n=!1,sinceSeq:t=0,onFinish:u}){let f=(0,c.k)(),h=(0,i.useRouter)(),[v,g]=(0,s.useState)(n),[m,k]=(0,s.useState)([]),[b,p]=(0,s.useState)(0),x=(0,s.useRef)(n?t:0),w=(0,s.useRef)(!1),S=(0,s.useRef)(0);if((0,s.useEffect)(()=>{n&&(x.current=t,w.current=!1,S.current=t>0?t:Date.now(),k([]),p(Math.max(0,Math.floor((Date.now()-S.current)/1e3))),g(!0))},[n,t]),(0,s.useEffect)(()=>{function n(n){let t=n.detail;t?.channel===e&&(x.current=Date.now()-1,w.current=!1,S.current=Date.now(),k([]),p(0),g(!0))}return window.addEventListener("constella:agent-run",n),()=>window.removeEventListener("constella:agent-run",n)},[e]),(0,s.useEffect)(()=>{if(!v)return;S.current||(S.current=Date.now());let e=setInterval(()=>p(Math.floor((Date.now()-S.current)/1e3)),1e3);return()=>clearInterval(e)},[v]),(0,s.useEffect)(()=>{if(!v)return;let n=!0,t=Date.now();async function r(){let r=await (0,l.k)(e,x.current);n&&(r.length&&(x.current=Math.max(x.current,...r.map(e=>e.seq)),k(e=>{let n=new Set(e.map(e=>e.id));return[...e,...r.filter(e=>!n.has(e.id))]}),r.some(e=>"done"===e.kind||"error"===e.kind)&&(w.current||(w.current=!0,h.refresh(),u?.()),setTimeout(()=>{n&&g(!1)},2500))),Date.now()-t>96e4&&g(!1))}r();let s=setInterval(r,700);return()=>{n=!1,clearInterval(s)}},[v,e,h,u]),!v&&0===m.length)return null;let j=function(e){let n=[];for(let t of e)if("text"===t.kind){let e=(t.detail||"").replace(/\s+/g," ").trim();if(!e)continue;let r=n[n.length-1];r&&"text"===r.kind?r.content=(r.content+" "+e).slice(-600):n.push({id:t.id,kind:"text",content:e})}else if("thinking"===t.kind){let e=(t.detail||t.target||"").replace(/\s+/g," ").trim();e&&n.push({id:t.id,kind:"thinking",content:e})}else n.push({id:t.id,kind:t.kind,content:function(e){if(!e)return"";let n=e.split(/[\\/]/);return n.length>1?n.slice(-2).join("/"):e}(t.target)||t.detail||""});return n}(m),R=j.slice(-5),N=j.length-R.length,y=m.some(e=>"done"===e.kind||"error"===e.kind),E=m.some(e=>"error"===e.kind),P=String(Math.floor(b/60)).padStart(2,"0"),I=String(b%60).padStart(2,"0");return(0,r.jsxs)("div",{className:"card live-stream",style:{marginBottom:16,borderColor:E?"var(--sx-keyword)":"var(--accent)"},children:[(0,r.jsxs)("div",{className:"set-desc",style:{marginBottom:8,display:"flex",alignItems:"center",gap:7},children:[v&&!y?(0,r.jsx)("span",{className:"dotpulse"}):(0,r.jsx)(a.I,{name:E?"close":"check",size:13,style:{color:E?"var(--sx-keyword)":"var(--sx-string)"}}),v&&!y?f("agent.run.working"):E?f("agent.run.failed"):f("agent.run.finished"),j.length>0&&(0,r.jsxs)("span",{style:{color:"var(--text-faint)"},children:["\xb7 ",f(1===j.length?"agent.run.steps.one":"agent.run.steps.other",{n:j.length})]}),(0,r.jsxs)("span",{className:"live-elapsed",style:{marginLeft:"auto"},children:[P,":",I]})]}),0===R.length?(0,r.jsxs)("div",{className:"muted",style:{fontSize:12,display:"flex",alignItems:"center",gap:7},children:[(0,r.jsx)("span",{className:"sync-spin",children:(0,r.jsx)(a.I,{name:"refresh",size:12})})," ",f("agent.run.reading")]}):(0,r.jsxs)(r.Fragment,{children:[N>0&&(0,r.jsx)("div",{className:"live-more",children:f(1===N?"agent.run.earlier.one":"agent.run.earlier.other",{n:N})}),(0,r.jsx)("div",{className:"live-stream-lines",children:R.map(e=>(0,r.jsxs)("div",{className:"live-line "+e.kind,children:["text"!==e.kind&&(0,r.jsx)("span",{className:"ll-k",children:d.includes(e.kind)?f(`agent.verb.${e.kind}`):e.kind}),(0,r.jsxs)("span",{className:"ll-c",children:[e.content,!y&&e===R[R.length-1]&&"text"===e.kind&&(0,r.jsx)("span",{className:"ll-caret"})]})]},e.id))})]})]})}},5115:(e,n,t)=>{"use strict";t.d(n,{k:()=>s});var r=t(7814);let s=(0,r.createServerReference)("60bd7f16418dc50dc8405ee52f569d6b76466e42c2",r.callServer,void 0,r.findSourceMapURL,"getEvents")},9660:(e,n,t)=>{"use strict";t.d(n,{FixButton:()=>h,RunReviewButton:()=>v,Toggle:()=>f});var r=t(5076),s=t(8488),i=t(7814);let a=(0,i.createServerReference)("60dccbcd297b7188125f90cb3ce0fe028ae56f496a",i.callServer,void 0,i.findSourceMapURL,"toggleRoutine"),l=(0,i.createServerReference)("60b28e4da33b50b8648338a501ffdc93404dbe9967",i.callServer,void 0,i.findSourceMapURL,"togglePlugin"),c=(0,i.createServerReference)("403343bf523d7a6db1badd67fdb38e37203128bf13",i.callServer,void 0,i.findSourceMapURL,"fixFinding"),d=(0,i.createServerReference)("008ea2654697a5afa8e73caa0804e4bf4857be09f9",i.callServer,void 0,i.findSourceMapURL,"runReview");var o=t(8576),u=t(5629);function f({kind:e,id:n,on:t}){let[i,c]=(0,s.useTransition)(),d="routine"===e?a:l;return(0,r.jsx)("div",{className:"toggle"+(t?" on":""),"aria-disabled":i,role:"switch","aria-checked":t,onClick:()=>!i&&c(()=>d(n,!t))})}function h({id:e}){let n=(0,u.k)(),[t,i]=(0,s.useTransition)();return(0,r.jsxs)("button",{className:"sc2-btn",disabled:t,onClick:()=>i(()=>c(e)),children:[(0,r.jsx)(o.I,{name:"bot",size:12})," ",n("security.letAgentFix")]})}function v(){let e=(0,u.k)(),[n,t]=(0,s.useTransition)();return(0,r.jsxs)("button",{className:"btn-accent",disabled:n,onClick:()=>{window.dispatchEvent(new CustomEvent("constella:agent-run",{detail:{channel:"security"}})),t(async()=>{await d()})},children:[(0,r.jsx)(o.I,{name:"refresh",size:14,className:n?"sync-spin":""})," ",e(n?"security.reviewing":"security.runReview")]})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=2003)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4262],{3728:(e,s,a)=>{"use strict";a.d(s,{m:()=>c});var l=a(5076),i=a(8488),n=a(8576),t=a(9265),r=a(5629);function c({value:e,options:s,onChange:a,placeholder:o,mono:d,glyph:m,disabled:u,searchable:h}){let p=(0,r.k)(),[x,g]=(0,i.useState)(!1),[v,b]=(0,i.useState)(""),f=(0,i.useRef)(null),j=(0,i.useRef)(null),k=(0,i.useMemo)(()=>(s||[]).map(e=>"string"==typeof e?{value:e,label:e}:e),[s]),y=k.find(s=>s.value===e),N=(h??k.length>8)&&!u,C=v.trim().toLowerCase(),S=N&&C?k.filter(e=>(e.label+" "+e.value+" "+(e.sub||"")).toLowerCase().includes(C)):k;return(0,i.useEffect)(()=>{if(!x)return void b("");function e(e){f.current&&!f.current.contains(e.target)&&g(!1)}function s(e){"Escape"===e.key&&g(!1)}return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),N&&requestAnimationFrame(()=>j.current?.focus()),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)}},[x,N]),(0,l.jsxs)("div",{className:"dd"+(x?" open":"")+(u?" disabled":""),ref:f,children:[(0,l.jsxs)("button",{type:"button",className:"dd-btn"+(d?" mono":""),onClick:()=>!u&&g(e=>!e),children:[m&&y&&(0,l.jsx)(t.W,{id:y.glyphId||y.value,size:20}),(0,l.jsx)("span",{className:"dd-val",children:y?y.label:(0,l.jsx)("span",{className:"dd-ph",children:o||p("common.selectEllipsis")})}),(0,l.jsx)(n.I,{name:"chevronDown",size:14})]}),x&&(0,l.jsxs)("div",{className:"dd-menu scroll",children:[N&&(0,l.jsxs)("div",{style:{position:"sticky",top:0,zIndex:1,display:"flex",alignItems:"center",gap:6,padding:"6px 8px",margin:"-4px -4px 4px",background:"var(--bg-elev, var(--bg-active))",borderBottom:"1px solid var(--border)"},children:[(0,l.jsx)(n.I,{name:"search",size:13}),(0,l.jsx)("input",{ref:j,value:v,placeholder:p("common.searchEllipsis"),onChange:e=>b(e.target.value),onKeyDown:e=>{"Enter"===e.key&&S[0]?(a(S[0].value),g(!1)):"Escape"===e.key&&v&&(e.stopPropagation(),b(""))},className:d?"mono":void 0,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text)",fontSize:12.5,fontFamily:d?"var(--mono-font)":"inherit"}}),v&&(0,l.jsx)("button",{type:"button",title:p("common.clear"),onClick:()=>{b(""),j.current?.focus()},style:{background:"none",border:"none",color:"var(--text-dim)",cursor:"pointer",display:"flex",padding:0},children:(0,l.jsx)(n.I,{name:"close",size:12})})]}),0===k.length&&(0,l.jsx)("div",{className:"dd-empty",children:p("common.noOptions")}),k.length>0&&0===S.length&&(0,l.jsx)("div",{className:"dd-empty",children:p("dropdown.noMatch",{q:v})}),S.map(s=>(0,l.jsxs)("button",{type:"button",className:"dd-opt"+(s.value===e?" on":""),onClick:()=>{a(s.value),g(!1)},children:[m&&(0,l.jsx)(t.W,{id:s.glyphId||s.value,size:22}),(0,l.jsxs)("span",{className:"dd-opt-main",children:[(0,l.jsx)("span",{className:"dd-opt-label"+(d?" mono":""),children:s.label}),s.sub&&(0,l.jsx)("span",{className:"dd-opt-sub",children:s.sub})]}),s.tag&&(0,l.jsx)("span",{className:"dd-opt-tag",children:s.tag}),s.value===e&&(0,l.jsx)(n.I,{name:"check",size:13})]},s.value))]})]})}},3911:(e,s,a)=>{"use strict";a.d(s,{SkillsClient:()=>v});var l=a(5076),i=a(8488),n=a(5787),t=a(8576),r=a(4552),c=a(3728),o=a(5629),d=a(7814);let m=(0,d.createServerReference)("60d35e08afe2004099827654c91e5340a501853d14",d.callServer,void 0,d.findSourceMapURL,"saveSkillInstructions"),u=(0,d.createServerReference)("4095e89a7a89d0292a5d0eb21721ad248cb879cf5c",d.callServer,void 0,d.findSourceMapURL,"approveProvisional"),h=(0,d.createServerReference)("00bcd66a486ff34dcf16862380b9c820e05fec858c",d.callServer,void 0,d.findSourceMapURL,"suggestSkillsFromLearnings"),p=(0,d.createServerReference)("40d928f2b3a0fee8866c28d05d776773e84c70fe93",d.callServer,void 0,d.findSourceMapURL,"deleteSkill"),x=(0,d.createServerReference)("4019a918c974459445f3961103c4e907e8b6cf4cdd",d.callServer,void 0,d.findSourceMapURL,"createSkill"),g=(0,d.createServerReference)("40590b1b90e0936bf71fcd7c72cf64a82f98fb6e75",d.callServer,void 0,d.findSourceMapURL,"generateSkill");function v({skills:e,agents:s}){let a=(0,o.k)(),[c,d]=(0,i.useState)(null),[h,p]=(0,i.useState)(!1),[x,g]=(0,i.useState)(""),[y,N]=(0,i.useState)(null),[C,S]=(0,i.useTransition)(),[w,z]=(0,i.useState)(""),[I,_]=(0,i.useState)("all"),L=["all",...Array.from(new Set(e.map(e=>e.category))).sort()],M=w.trim().toLowerCase(),P=e.filter(e=>("all"===I||e.category===I)&&(!M||e.name.toLowerCase().includes(M)||e.summary.toLowerCase().includes(M)));function R(e,s){d(e),p(s),g(e.instructions)}if(c){let e=(c.instructions||"").split("\n").map(e=>e.replace(/^\d+[.)]\s*/,"").trim()).filter(Boolean),s=e.length?e:[a("skills.detail.followInstructions",{file:c.file})];return(0,l.jsxs)(n.ViewChrome,{title:c.name,sub:`${c.file} \xb7 ${a("skills.detail.triggered")}: ${c.trigger}`,right:h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{className:"btn-ghost",onClick:()=>p(!1),children:[(0,l.jsx)(t.I,{name:"close",size:13})," ",a("common.cancel")]}),(0,l.jsxs)("button",{className:"btn-accent",disabled:C,onClick:function(){c&&S(async()=>{await m(c.id,x),p(!1)})},children:[(0,l.jsx)(t.I,{name:"check",size:13})," ",C?a("common.saving"):a("skills.detail.saveMd")]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{className:"btn-ghost",onClick:()=>R(c,!0),children:[(0,l.jsx)(t.I,{name:"command",size:13})," ",a("skills.detail.editMd")]}),(0,l.jsxs)("button",{className:"btn-ghost",onClick:()=>{d(null),p(!1)},children:[(0,l.jsx)(t.I,{name:"chevronLeft",size:14})," ",a("common.back")]})]}),children:[c.provisional&&(0,l.jsxs)("div",{className:"card",style:{marginBottom:14,borderColor:"var(--sx-number)",background:"var(--sx-number)14",display:"flex",alignItems:"center",gap:12},children:[(0,l.jsxs)("span",{style:{color:"var(--sx-number)",fontSize:12.5,flex:1},children:["⚠ ",a("skills.detail.provisionalWarn")]}),(0,l.jsxs)("button",{className:"btn-accent",disabled:C,onClick:()=>S(async()=>{await u(c.id),d({...c,provisional:!1})}),children:[(0,l.jsx)(t.I,{name:"check",size:13})," ",a("skills.detail.approve")]})]}),h?(0,l.jsx)("textarea",{className:"persona-ta mono",style:{minHeight:360,maxWidth:820},value:x,onChange:e=>g(e.target.value)}):(0,l.jsxs)("div",{className:"card",style:{maxWidth:820},children:[(0,l.jsx)("div",{className:"detail-label",children:a("skills.detail.procedure")}),s.map((e,s)=>(0,l.jsxs)("div",{className:"live-step",children:[(0,l.jsx)("span",{className:"ls-ico",style:{color:"var(--accent)",fontFamily:"var(--mono-font)"},children:s+1}),e]},s)),c.users.length>0&&(0,l.jsxs)("div",{style:{fontSize:11.5,color:"var(--text-faint)",marginTop:12},children:[a("skills.detail.usedBy"),": ",c.users.map(e=>e.name).join(", ")]})]})]})}return(0,l.jsxs)(n.ViewChrome,{title:"Skills",sub:a("skills.list.sub"),right:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b,{}),(0,l.jsxs)("button",{className:"btn-ghost",onClick:()=>N("ai"),children:[(0,l.jsx)(t.I,{name:"bot",size:14})," ",a("skills.list.generateAi")]}),(0,l.jsxs)("button",{className:"btn-accent",onClick:()=>N("manual"),children:[(0,l.jsx)(t.I,{name:"add",size:14})," ",a("skills.list.addSkill")]})]}),children:[0===e.length&&(0,l.jsx)("div",{className:"card",children:(0,l.jsx)("div",{className:"muted",children:a("skills.list.empty")})}),e.length>0&&(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap",marginBottom:12},children:[(0,l.jsxs)("div",{className:"stack-search",style:{flex:"0 0 240px",maxWidth:240},children:[(0,l.jsx)(t.I,{name:"search",size:14}),(0,l.jsx)("input",{placeholder:"Filter skills…",value:w,onChange:e=>z(e.target.value)}),w&&(0,l.jsx)("button",{className:"ss-clear",onClick:()=>z(""),children:(0,l.jsx)(t.I,{name:"close",size:12})})]}),(0,l.jsx)("div",{style:{display:"flex",gap:5,flexWrap:"wrap"},children:L.map(e=>(0,l.jsx)("button",{className:"chip-sm",style:I===e?{background:"var(--accent)",color:"var(--accent-fg)"}:void 0,onClick:()=>_(e),children:"all"===e?"All":e[0].toUpperCase()+e.slice(1)},e))})]}),e.length>0&&0===P.length&&(0,l.jsx)("div",{className:"card",children:(0,l.jsx)("div",{className:"muted",children:"No skills match this filter."})}),(0,l.jsx)("div",{className:"skill-grid",children:P.map(e=>{let s=e.users;return(0,l.jsxs)("div",{className:"skill-card2",children:[(0,l.jsxs)("div",{className:"sc2-top",children:[(0,l.jsx)("span",{className:"sc2-ico",children:(0,l.jsx)(t.I,{name:"skill",size:15})}),(0,l.jsxs)("span",{className:"sc2-name",children:[e.name,(0,l.jsx)("span",{className:"sc2-ext",children:".md"})]}),(0,l.jsxs)("span",{className:"sc2-index "+("indexed"===e.indexed?"ok":"pending"),children:[(0,l.jsx)(t.I,{name:"indexed"===e.indexed?"check":"refresh",size:10})," ","indexed"===e.indexed?a("skills.card.indexed"):a("skills.card.indexing")]})]}),(0,l.jsx)("div",{className:"sc2-summary",children:e.summary}),(0,l.jsxs)("div",{className:"sc2-meta",children:[(0,l.jsx)("span",{className:"sc2-kind",children:a("skills.card.kind")}),e.native&&(0,l.jsx)("span",{className:"pill",style:{background:"var(--bg-active)",color:"var(--text-dim)"},children:a("skills.card.native")}),e.provisional&&(0,l.jsx)("span",{className:"pill",style:{background:"var(--sx-number)22",color:"var(--sx-number)"},children:a("skills.card.provisional")}),e.usedCount>0&&(0,l.jsxs)("span",{className:"pill",style:{background:"var(--accent)1f",color:"var(--accent)",display:"inline-flex",alignItems:"center",gap:4},title:e.lastBy?`An agent read this skill during a task — last: ${e.lastBy}`:"Consulted by an agent during a task",children:[(0,l.jsx)(t.I,{name:"pulse",size:10})," Consulted ",e.usedCount,"\xd7"]}),(0,l.jsxs)("span",{className:"sc2-trigger",children:["\xb7 ",e.trigger]})]}),(0,l.jsxs)("div",{className:"sc2-actions",children:[(0,l.jsxs)("button",{className:"sc2-btn",onClick:()=>R(e,!1),children:[(0,l.jsx)(t.I,{name:"goto",size:12})," ",a("skills.card.open")]}),(0,l.jsxs)("button",{className:"sc2-btn",onClick:()=>R(e,!0),children:[(0,l.jsx)(t.I,{name:"command",size:12})," ",a("common.edit")]}),!e.native&&(0,l.jsx)(f,{id:e.id}),(0,l.jsxs)("div",{className:"sc2-users",title:s.length?a("skills.card.usedByTip",{names:s.map(e=>e.name).join(", ")}):a("skills.card.unusedTip"),children:[s.slice(0,4).map(e=>(0,l.jsx)("span",{className:"sc2-user",children:(0,l.jsx)(r.e,{name:e.name,color:e.color,size:20})},e.id)),s.length>4&&(0,l.jsxs)("span",{className:"sc2-user-more",children:["+",s.length-4]}),0===s.length&&(0,l.jsx)("span",{className:"sc2-nouser",children:a("skills.card.unused")})]})]})]},e.id)})}),"manual"===y&&(0,l.jsx)(j,{agents:s,onClose:()=>N(null)}),"ai"===y&&(0,l.jsx)(k,{onClose:()=>N(null)})]})}function b(){let e=(0,o.k)(),[s,a]=(0,i.useTransition)(),[n,r]=(0,i.useState)(null);return(0,l.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[n&&(0,l.jsx)("span",{style:{fontSize:11.5,color:"var(--text-dim)"},children:n}),(0,l.jsxs)("button",{className:"btn-ghost",disabled:s,onClick:function(){r(null),a(async()=>{let s=await h();r(s.ok&&s.proposed>0?e("skills.list.suggested",{n:s.proposed}):e("skills.list.suggestNone"))})},title:e("skills.list.suggestDesc"),children:[s?(0,l.jsx)("span",{className:"sync-spin",children:(0,l.jsx)(t.I,{name:"refresh",size:13})}):(0,l.jsx)(t.I,{name:"branch",size:14})," ",s?e("skills.list.suggesting"):e("skills.list.suggest")]})]})}function f({id:e}){let s=(0,o.k)(),[a,n]=(0,i.useTransition)();return(0,l.jsxs)("button",{className:"sc2-btn danger",disabled:a,onClick:()=>n(()=>p(e)),children:[(0,l.jsx)(t.I,{name:"trash",size:12})," ",s("common.delete")]})}function j({agents:e,onClose:s}){let a=(0,o.k)(),[n,r]=(0,i.useState)(""),[d,m]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(e[0]?.id??""),[v,b]=(0,i.useTransition)(),f=(n||"name").toLowerCase().replace(/\s+/g,"-");return(0,l.jsx)("div",{className:"modal-overlay",onClick:s,children:(0,l.jsxs)("div",{className:"modal",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{className:"modal-head",children:(0,l.jsxs)("div",{className:"modal-title",children:[(0,l.jsx)(t.I,{name:"add",size:15})," ",a("skills.manual.title")]})}),(0,l.jsxs)("div",{className:"modal-body",children:[(0,l.jsx)("label",{className:"form-label",children:a("skills.manual.nameLabel")}),(0,l.jsx)("input",{className:"form-input mono",autoFocus:!0,placeholder:a("skills.manual.namePlaceholder"),value:n,onChange:e=>r(e.target.value)}),(0,l.jsx)("label",{className:"form-label",style:{marginTop:10},children:a("common.description")}),(0,l.jsx)("textarea",{className:"persona-ta",placeholder:a("skills.manual.descPlaceholder"),value:d,onChange:e=>m(e.target.value)}),(0,l.jsx)("label",{className:"form-label",style:{marginTop:10},children:a("skills.manual.instructionsLabel")}),(0,l.jsx)("textarea",{className:"persona-ta mono",style:{minHeight:120},placeholder:a("skills.manual.instructionsPlaceholder"),value:u,onChange:e=>h(e.target.value)}),(0,l.jsx)("label",{className:"form-label",style:{marginTop:10},children:a("skills.manual.usedByAgent")}),(0,l.jsx)(c.m,{value:p,options:e.map(e=>({value:e.id,label:e.name+" \xb7 "+e.role})),onChange:g}),(0,l.jsxs)("div",{className:"modal-hint",children:[a("skills.manual.hintPrefix")," ",(0,l.jsxs)("b",{children:["skills/",f,".md"]}),a("skills.manual.hintSuffix")]})]}),(0,l.jsxs)("div",{className:"modal-foot",children:[(0,l.jsx)("button",{className:"btn-ghost",onClick:s,children:a("common.cancel")}),(0,l.jsx)("button",{className:"btn-accent",disabled:!n.trim()||v,onClick:function(){n.trim()&&b(async()=>{await x({name:n,summary:d,instructions:u,agentId:p}),s()})},children:a(v?"skills.manual.creating":"skills.manual.create")})]})]})})}function k({onClose:e}){let s=(0,o.k)(),[a,n]=(0,i.useState)(""),[r,c]=(0,i.useTransition)();return(0,l.jsx)("div",{className:"modal-overlay",onClick:e,children:(0,l.jsxs)("div",{className:"modal",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{className:"modal-head",children:(0,l.jsxs)("div",{className:"modal-title",children:[(0,l.jsx)(t.I,{name:"bot",size:15})," ",s("skills.ai.title")]})}),(0,l.jsxs)("div",{className:"modal-body",children:[(0,l.jsx)("label",{className:"form-label",children:s("skills.ai.describeLabel")}),(0,l.jsx)("textarea",{className:"persona-ta",autoFocus:!0,placeholder:s("skills.ai.describePlaceholder"),value:a,onChange:e=>n(e.target.value)}),(0,l.jsxs)("div",{className:"modal-hint",children:[(0,l.jsx)(t.I,{name:"bot",size:12})," ",s("skills.ai.hintPrefix")," ",(0,l.jsx)("b",{children:s("skills.ai.hintProvisional")})," ",s("skills.ai.hintSuffix")]})]}),(0,l.jsxs)("div",{className:"modal-foot",children:[(0,l.jsx)("button",{className:"btn-ghost",onClick:e,children:s("common.cancel")}),(0,l.jsx)("button",{className:"btn-accent",disabled:!a.trim()||r,onClick:function(){a.trim()&&c(async()=>{await g(a),e()})},children:s(r?"skills.ai.drafting":"common.generate")})]})]})})}},4552:(e,s,a)=>{"use strict";a.d(s,{e:()=>i});var l=a(5076);function i({name:e,color:s,size:a=24,health:n,image:t}){let r=Math.max(6,Math.round(.3*a)),c=Math.round(.28*a),o=t?/^(data:|https?:|\/)/.test(t)?t:`/api/upload?path=${encodeURIComponent(t)}`:null;return(0,l.jsxs)("span",{style:{position:"relative",width:a,height:a,flex:`0 0 ${a}px`,display:"inline-block"},children:[o?(0,l.jsx)("img",{src:o,alt:e,width:a,height:a,style:{width:a,height:a,borderRadius:c,objectFit:"cover",display:"block"}}):(0,l.jsx)("span",{style:{width:a,height:a,borderRadius:c,background:s,color:"#fff",display:"grid",placeItems:"center",fontSize:Math.round(.42*a),fontWeight:700},children:(e[0]||"?").toUpperCase()}),n&&(0,l.jsx)("span",{style:{position:"absolute",right:-1,bottom:-1,width:r,height:r,borderRadius:"50%",background:"alive"===n?"var(--sx-string)":"stale"===n?"var(--sx-number)":"var(--text-faint)",border:"1.5px solid var(--bg-elevated)"}})]})}},7928:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,3911)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444))},9265:(e,s,a)=>{"use strict";a.d(s,{W:()=>r});var l=a(5076),i=a(8488);let n={anthropic:"anthropic",claude_code:"claude",openai:"openai",codex_cli:"openai",google:"google",google_gemini:"gemini",gemini_cli:"gemini",vertex_ai:"vertexai",mistral:"mistral",deepseek:"deepseek",cohere:"cohere",perplexity:"perplexity",xai_grok:"grok",groq:"groq",ai21:"ai21",nvidia_nim:"nvidia",huggingface:"huggingface",replicate:"replicate",azure_openai:"azure",aws_bedrock:"bedrock",cloudflare:"cloudflare",dashscope:"qwen",zhipu:"zhipu",moonshot:"moonshot",minimax:"minimax",together:"together",openrouter:"openrouter",fireworks:"fireworks",cerebras:"cerebras",ollama:"ollama",ollama_cli:"ollama",lmstudio:"lmstudio",vllm:"vllm",localai:"localai",elevenlabs:"elevenlabs",stability:"stability",jina:"jina",voyage:"voyage"},t={anthropic:["#d97757","An"],openai:["#10a37f","AI"],google_gemini:["#4285f4","G"],google:["#4285f4","G"],mistral:["#fa520f","Mi"],xai_grok:["#1a1a1a","X"],deepseek:["#4d6bfe","DS"],cohere:["#39594d","Co"],ai21:["#e8488a","A2"],perplexity:["#20808d","Px"],groq:["#f55036","Gq"],nvidia_nim:["#76b900","NV"],together:["#0f6fff","To"],fireworks:["#5019c5","Fw"],cerebras:["#f25733","Cb"],huggingface:["#ff9d00","HF"],replicate:["#1a1a1a","Rp"],openrouter:["#6566f1","OR"],litellm:["#00b8a3","LL"],portkey:["#3b5bdb","Pk"],azure_openai:["#0078d4","Az"],aws_bedrock:["#ff9900","Br"],vertex_ai:["#4285f4","Vx"],cloudflare:["#f38020","Cf"],dashscope:["#ff6a00","Qw"],zhipu:["#3859ff","GL"],moonshot:["#16162a","Ki"],minimax:["#e1342c","MM"],ollama:["#0c0c0c","Ol"],llamacpp:["#7a4ddb","Lc"],lmstudio:["#4a5cff","LM"],vllm:["#1668dc","vL"],localai:["#2e7d32","La"],gpt4all:["#5b6cff","G4"],jan:["#1a1a1a","Jn"],claude_code:["#d97757","CC"],codex_cli:["#10a37f","Cx"],gemini_cli:["#4285f4","Gc"],aider:["#14b8a6","Ad"],ollama_cli:["#0c0c0c","Oc"],openclaw:["#e8590c","OC"],hermes_cli:["#6d28d9","Hm"],opencode:["#1a1a1a","Oc"],copilot_cli:["#1f2328","Co"],cursor_cli:["#1a1a1a","Cu"],cline_cli:["#2563eb","Cl"],kilo_code:["#7c3aed","Ki"],voyage:["#5b21b6","Vo"],jina:["#ec4899","Ji"],stability:["#a855f7","St"],elevenlabs:["#1a1a1a","El"]};function r({id:e,size:s=34,radius:a}){let c,o=t[e],d=o?o[0]:"#5b6378",m=o?o[1]:(e||"?").slice(0,2).replace(/[^a-z0-9]/gi,"").toUpperCase(),u=(c=n[e])?`https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg/icons/${c}.svg`:null,[h,p]=(0,i.useState)(!1),x=null!=a?a:Math.round(.28*s),g=u&&!h,v=Math.round(.66*s);return(0,l.jsx)("span",{className:"prov-glyph",style:{width:s,height:s,flex:"0 0 "+s+"px",borderRadius:x,background:g?"#fff":"linear-gradient(150deg, "+d+", color-mix(in srgb, "+d+" 70%, #000))",color:"#fff",display:"grid",placeItems:"center",overflow:"hidden",fontSize:Math.round(.4*s),fontWeight:800,letterSpacing:"-.5px",boxShadow:g?"inset 0 0 0 1px rgba(0,0,0,.08)":"inset 0 1px 0 rgba(255,255,255,.18)"},children:g?(0,l.jsx)("img",{src:u,alt:"",width:v,height:v,loading:"lazy",onError:()=>p(!0),style:{width:v,height:v,objectFit:"contain",display:"block"}}):m})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=7928)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2738],{1582:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,4011)),Promise.resolve().then(a.bind(a,4123)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444)),Promise.resolve().then(a.bind(a,5787))},4011:(e,s,a)=>{"use strict";a.d(s,{NewTaskButton:()=>m,X:()=>u});var i=a(5076),l=a(8488),n=a(5629),t=a(7814);let c=(0,t.createServerReference)("401e6c9bb8357236dd43c064ee18138dd3950796ef",t.callServer,void 0,t.findSourceMapURL,"createTask"),r=(0,t.createServerReference)("4023f555bc447f830de51aaee87a82067770ab76a4",t.callServer,void 0,t.findSourceMapURL,"unblockTask"),d=(0,t.createServerReference)("60869a95582a27c4e6aa6812fcd09cc8847c5ece48",t.callServer,void 0,t.findSourceMapURL,"moveTask"),o=(0,t.createServerReference)("40ad465268d76f7792596cfc48d9d998c9820a3763",t.callServer,void 0,t.findSourceMapURL,"blockTask"),h=(0,t.createServerReference)("40b7335eaa99e18a8e3c2e7e5f9c75c107af1b82da",t.callServer,void 0,t.findSourceMapURL,"deleteTask");function m({agents:e}){let s=(0,n.k)(),[a,t]=(0,l.useState)(!1),[r,d]=(0,l.useState)(""),[o,h]=(0,l.useState)(e[0]?.id??""),[p,u]=(0,l.useState)("med"),[v,x]=(0,l.useTransition)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{className:"btn-accent",onClick:()=>t(!0),children:["+ ",s("tasks.newCard")]}),a&&(0,i.jsx)("div",{className:"modal-overlay",onMouseDown:()=>t(!1),children:(0,i.jsxs)("div",{className:"modal",style:{padding:"20px 22px",width:440,maxWidth:"94vw"},onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsx)("div",{style:{fontSize:15,fontWeight:800,marginBottom:10},children:s("tasks.newTask")}),(0,i.jsx)("label",{className:"form-label",children:s("pm.field.title")}),(0,i.jsx)("input",{className:"form-input",autoFocus:!0,value:r,onChange:e=>d(e.target.value),placeholder:s("tasks.descPlaceholder")}),(0,i.jsx)("label",{className:"form-label",children:s("tasks.assignee")}),(0,i.jsx)("select",{className:"form-input",value:o,onChange:e=>h(e.target.value),children:e.map(e=>(0,i.jsx)("option",{value:e.id,children:e.name},e.id))}),(0,i.jsx)("label",{className:"form-label",children:s("tasks.priority")}),(0,i.jsxs)("select",{className:"form-input",value:p,onChange:e=>u(e.target.value),children:[(0,i.jsx)("option",{value:"low",children:s("tasks.prio.low")}),(0,i.jsx)("option",{value:"med",children:s("tasks.prio.med")}),(0,i.jsx)("option",{value:"high",children:s("tasks.prio.high")})]}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:16},children:[(0,i.jsx)("button",{className:"btn-ghost",onClick:()=>t(!1),children:s("common.cancel")}),(0,i.jsx)("button",{className:"btn-accent",disabled:!r.trim()||v,onClick:function(){x(async()=>{await c({title:r,assigneeId:o,prio:p}),t(!1),d("")})},children:s(v?"tasks.creating":"common.create")})]})]})})]})}let p={triage:"todo",todo:"doing",doing:"review",blocked:"doing",review:"done",done:"done"};function u({id:e,col:s}){let a=(0,n.k)(),[t,c]=(0,l.useTransition)();return(0,i.jsxs)("span",{style:{display:"inline-flex",gap:4},children:["blocked"===s?(0,i.jsx)("button",{className:"mini",disabled:t,title:a("pm.action.unblock"),style:{color:"var(--sx-string)"},onClick:()=>c(()=>r(e)),children:"▶"}):"done"!==s&&(0,i.jsx)("button",{className:"mini",disabled:t,title:a("tasks.advance"),onClick:()=>c(()=>d(e,p[s])),children:"→"}),"done"!==s&&"blocked"!==s&&(0,i.jsx)("button",{className:"mini",disabled:t,title:a("pm.action.block"),style:{color:"#e8688f"},onClick:()=>c(()=>o(e)),children:"⊘"}),(0,i.jsx)("button",{className:"mini",disabled:t,title:a("common.delete"),onClick:()=>c(()=>h(e)),children:"✕"})]})}},4123:(e,s,a)=>{"use strict";a.d(s,{TaskBoard:()=>f});var i=a(5076),l=a(8488),n=a(8576),t=a(4552),c=a(5629),r=a(4011),d=a(7814);let o=(0,d.createServerReference)("60542a61f2eef4ab05cce6527f89dc2d78762ab547",d.callServer,void 0,d.findSourceMapURL,"updateTaskDescription"),h=(0,d.createServerReference)("60492a19e07e16a9d3bfe9c4c28d53513bcf58cf90",d.callServer,void 0,d.findSourceMapURL,"toggleTaskStep"),m=(0,d.createServerReference)("4072acd7b1d904f6a22abea659592a4407f2736a4e",d.callServer,void 0,d.findSourceMapURL,"deleteTaskStep"),p=(0,d.createServerReference)("603fb7e6fe5f0a8c1c39c5f1f0faeb105d84048140",d.callServer,void 0,d.findSourceMapURL,"addTaskStep"),u=[{id:"triage",c:"#6cc7e0"},{id:"todo",c:"#84aef5"},{id:"doing",c:"#e0a44e"},{id:"blocked",c:"#e8688f"},{id:"review",c:"#c4a0ff"},{id:"done",c:"#b3d97a"}],v={high:"#e8688f",med:"#f0a35e",low:"#6cc7e0"};function x({task:e,agent:s,onClose:a}){let r=(0,c.k)(),[d,f]=(0,l.useState)(e.description),[k,b]=(0,l.useState)(""),[,j]=(0,l.useTransition)(),g=u.find(s=>s.id===e.col);return(0,i.jsx)("div",{className:"detail-overlay",onMouseDown:a,children:(0,i.jsxs)("div",{className:"detail-panel",onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)("div",{className:"detail-head",children:[(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)("span",{className:"kk-id",style:{fontSize:12},children:e.key}),(0,i.jsx)("button",{className:"dock-tool",onClick:a,children:(0,i.jsx)(n.I,{name:"close",size:15})})]}),(0,i.jsx)("div",{className:"view-title",style:{fontSize:17,marginTop:6},children:e.title}),(0,i.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,alignItems:"center"},children:[s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.e,{name:s.name,color:s.color,size:22}),(0,i.jsx)("span",{style:{fontSize:12.5,color:"var(--text)"},children:s.name})]}),(0,i.jsx)("span",{className:"pill",style:{marginLeft:6,background:v[e.prio]+"22",color:v[e.prio]},children:r(`tasks.prio.${e.prio}`)}),g&&(0,i.jsx)("span",{className:"chip-sm",children:r(`tasks.col.${g.id}`)})]})]}),(0,i.jsxs)("div",{className:"detail-body",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"detail-label",children:r("common.description")}),(0,i.jsx)("textarea",{className:"persona-ta",value:d,onChange:e=>f(e.target.value),onBlur:()=>{d!==e.description&&j(()=>o(e.id,d))},placeholder:r("tasks.descPlaceholder")})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"detail-label",children:r("tasks.liveProgress")}),0===e.steps.length&&(0,i.jsx)("div",{style:{fontSize:12,color:"var(--text-faint)"},children:r("tasks.noSteps",{who:s?s.name:r("tasks.theAgent")})}),e.steps.map(e=>(0,i.jsxs)("div",{className:"live-step "+(e.done?"done":e.active?"active":""),children:[(0,i.jsx)("span",{className:"ls-ico",style:{cursor:"pointer"},onClick:()=>j(()=>h(e.id,!e.done)),children:e.done?(0,i.jsx)(n.I,{name:"check",size:14}):e.active?(0,i.jsx)("span",{className:"spin",children:(0,i.jsx)(n.I,{name:"refresh",size:13})}):(0,i.jsx)(n.I,{name:"dot",size:8})}),(0,i.jsx)("span",{style:{flex:1},children:e.text}),(0,i.jsx)("button",{className:"iact danger",title:r("tasks.removeStep"),onClick:()=>j(()=>m(e.id)),children:(0,i.jsx)(n.I,{name:"close",size:12})})]},e.id)),(0,i.jsxs)("div",{style:{display:"flex",gap:6,marginTop:8},children:[(0,i.jsx)("input",{className:"form-input",style:{height:30,fontSize:12},placeholder:r("tasks.addStepPlaceholder"),value:k,onChange:e=>b(e.target.value),onKeyDown:s=>{"Enter"===s.key&&k.trim()&&(j(()=>p(e.id,k)),b(""))}}),(0,i.jsx)("button",{className:"btn-ghost",style:{padding:"4px 10px"},disabled:!k.trim(),onClick:()=>{j(()=>p(e.id,k)),b("")},children:(0,i.jsx)(n.I,{name:"add",size:12})})]})]})]})]})})}function f({tasks:e,agents:s}){let a=(0,c.k)(),n=Object.fromEntries(s.map(e=>[e.id,e])),[d,o]=(0,l.useState)(null),h=d?e.find(e=>e.id===d)??null:null;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"kanban",children:u.map(s=>{let l=e.filter(e=>e.col===s.id);return(0,i.jsxs)("div",{className:"kan-col",children:[(0,i.jsxs)("div",{className:"kan-col-head",children:[(0,i.jsx)("span",{className:"kc-dot",style:{background:s.c}}),a(`tasks.col.${s.id}`),(0,i.jsx)("span",{className:"kc-count",children:l.length})]}),(0,i.jsxs)("div",{className:"kan-cards scroll",children:[l.map(e=>{let s=e.assigneeId?n[e.assigneeId]:null,l=e.steps.filter(e=>e.done).length;return(0,i.jsxs)("div",{className:"kan-card",style:{cursor:"pointer"},onClick:()=>o(e.id),children:[(0,i.jsx)("div",{className:"kk-id",children:e.key}),(0,i.jsx)("div",{className:"kk-title",children:e.title}),(0,i.jsxs)("div",{className:"kk-foot",children:[(0,i.jsx)("span",{className:"kk-prio",style:{background:v[e.prio]},title:a(`tasks.prio.${e.prio}`)}),e.steps.length>0&&(0,i.jsxs)("span",{className:"chip-sm",title:a("tasks.stepsDone"),children:[l,"/",e.steps.length]}),s&&(0,i.jsx)(t.e,{name:s.name,color:s.color,size:20}),(0,i.jsx)("span",{style:{marginLeft:"auto"},onClick:e=>e.stopPropagation(),children:(0,i.jsx)(r.X,{id:e.id,col:e.col})})]})]},e.id)}),0===l.length&&(0,i.jsx)("div",{className:"muted",style:{fontSize:11.5,padding:"2px 1px"},children:a("tasks.noCards")})]})]},s.id)})}),h&&(0,i.jsx)(x,{task:h,agent:h.assigneeId?n[h.assigneeId]:null,onClose:()=>o(null)})]})}},4552:(e,s,a)=>{"use strict";a.d(s,{e:()=>l});var i=a(5076);function l({name:e,color:s,size:a=24,health:n,image:t}){let c=Math.max(6,Math.round(.3*a)),r=Math.round(.28*a),d=t?/^(data:|https?:|\/)/.test(t)?t:`/api/upload?path=${encodeURIComponent(t)}`:null;return(0,i.jsxs)("span",{style:{position:"relative",width:a,height:a,flex:`0 0 ${a}px`,display:"inline-block"},children:[d?(0,i.jsx)("img",{src:d,alt:e,width:a,height:a,style:{width:a,height:a,borderRadius:r,objectFit:"cover",display:"block"}}):(0,i.jsx)("span",{style:{width:a,height:a,borderRadius:r,background:s,color:"#fff",display:"grid",placeItems:"center",fontSize:Math.round(.42*a),fontWeight:700},children:(e[0]||"?").toUpperCase()}),n&&(0,i.jsx)("span",{style:{position:"absolute",right:-1,bottom:-1,width:c,height:c,borderRadius:"50%",background:"alive"===n?"var(--sx-string)":"stale"===n?"var(--sx-number)":"var(--text-faint)",border:"1.5px solid var(--bg-elevated)"}})]})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=1582)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5210],{275:(e,s,t)=>{"use strict";t.d(s,{K:()=>i});var a=t(7814);let i=(0,a.createServerReference)("409d4cbe6ec07ab8ba3752b7baf907850f79f1584c",a.callServer,void 0,a.findSourceMapURL,"previewFrameableAction")},3728:(e,s,t)=>{"use strict";t.d(s,{m:()=>d});var a=t(5076),i=t(8488),r=t(8576),n=t(9265),l=t(5629);function d({value:e,options:s,onChange:t,placeholder:c,mono:o,glyph:m,disabled:v,searchable:h}){let p=(0,l.k)(),[u,x]=(0,i.useState)(!1),[g,f]=(0,i.useState)(""),b=(0,i.useRef)(null),j=(0,i.useRef)(null),y=(0,i.useMemo)(()=>(s||[]).map(e=>"string"==typeof e?{value:e,label:e}:e),[s]),w=y.find(s=>s.value===e),N=(h??y.length>8)&&!v,k=g.trim().toLowerCase(),S=N&&k?y.filter(e=>(e.label+" "+e.value+" "+(e.sub||"")).toLowerCase().includes(k)):y;return(0,i.useEffect)(()=>{if(!u)return void f("");function e(e){b.current&&!b.current.contains(e.target)&&x(!1)}function s(e){"Escape"===e.key&&x(!1)}return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),N&&requestAnimationFrame(()=>j.current?.focus()),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)}},[u,N]),(0,a.jsxs)("div",{className:"dd"+(u?" open":"")+(v?" disabled":""),ref:b,children:[(0,a.jsxs)("button",{type:"button",className:"dd-btn"+(o?" mono":""),onClick:()=>!v&&x(e=>!e),children:[m&&w&&(0,a.jsx)(n.W,{id:w.glyphId||w.value,size:20}),(0,a.jsx)("span",{className:"dd-val",children:w?w.label:(0,a.jsx)("span",{className:"dd-ph",children:c||p("common.selectEllipsis")})}),(0,a.jsx)(r.I,{name:"chevronDown",size:14})]}),u&&(0,a.jsxs)("div",{className:"dd-menu scroll",children:[N&&(0,a.jsxs)("div",{style:{position:"sticky",top:0,zIndex:1,display:"flex",alignItems:"center",gap:6,padding:"6px 8px",margin:"-4px -4px 4px",background:"var(--bg-elev, var(--bg-active))",borderBottom:"1px solid var(--border)"},children:[(0,a.jsx)(r.I,{name:"search",size:13}),(0,a.jsx)("input",{ref:j,value:g,placeholder:p("common.searchEllipsis"),onChange:e=>f(e.target.value),onKeyDown:e=>{"Enter"===e.key&&S[0]?(t(S[0].value),x(!1)):"Escape"===e.key&&g&&(e.stopPropagation(),f(""))},className:o?"mono":void 0,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text)",fontSize:12.5,fontFamily:o?"var(--mono-font)":"inherit"}}),g&&(0,a.jsx)("button",{type:"button",title:p("common.clear"),onClick:()=>{f(""),j.current?.focus()},style:{background:"none",border:"none",color:"var(--text-dim)",cursor:"pointer",display:"flex",padding:0},children:(0,a.jsx)(r.I,{name:"close",size:12})})]}),0===y.length&&(0,a.jsx)("div",{className:"dd-empty",children:p("common.noOptions")}),y.length>0&&0===S.length&&(0,a.jsx)("div",{className:"dd-empty",children:p("dropdown.noMatch",{q:g})}),S.map(s=>(0,a.jsxs)("button",{type:"button",className:"dd-opt"+(s.value===e?" on":""),onClick:()=>{t(s.value),x(!1)},children:[m&&(0,a.jsx)(n.W,{id:s.glyphId||s.value,size:22}),(0,a.jsxs)("span",{className:"dd-opt-main",children:[(0,a.jsx)("span",{className:"dd-opt-label"+(o?" mono":""),children:s.label}),s.sub&&(0,a.jsx)("span",{className:"dd-opt-sub",children:s.sub})]}),s.tag&&(0,a.jsx)("span",{className:"dd-opt-tag",children:s.tag}),s.value===e&&(0,a.jsx)(r.I,{name:"check",size:13})]},s.value))]})]})}},5232:(e,s,t)=>{"use strict";t.d(s,{R:()=>i});var a=t(7814);let i=(0,a.createServerReference)("009513f8ddea5c0533a4b07002daa235220c6fcac6",a.callServer,void 0,a.findSourceMapURL,"startDevServerAction")},5695:(e,s,t)=>{"use strict";function a(e){if(null==e)return"";let s=e instanceof Date?e:new Date(e);if(isNaN(s.getTime()))return"";let t=s.toLocaleDateString([],{day:"2-digit",month:"short"}),a=s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return`${t}, ${a}`}t.d(s,{F:()=>a})},8593:(e,s,t)=>{"use strict";t.d(s,{TestDevScreen:()=>b});var a=t(5076),i=t(8488),r=t(8576),n=t(3728),l=t(5695),d=t(5629),c=t(275),o=t(7814);let m=(0,o.createServerReference)("0050116e1f2e9cd52a5bc7fd172d161f41f8803bc6",o.callServer,void 0,o.findSourceMapURL,"stopDevServerAction");var v=t(5232),h=t(9130);let p=(0,o.createServerReference)("406c88351d7da2900b007aeecb66633dd07a201621",o.callServer,void 0,o.findSourceMapURL,"runTestDevAction"),u={pass:"var(--sx-string)",fail:"#e8688f",inconclusive:"#d98a2b",running:"var(--accent)"},x={high:"#e8688f",med:"#d98a2b",low:"var(--text-dim)"},g=[{id:"desktop",w:"100%"},{id:"tablet",w:"768px"},{id:"mobile",w:"390px"}];function f({status:e,onStart:s,starting:t}){let n=(0,d.k)(),l=e.url??"",o="running"===e.status&&!!l,[m,v]=(0,i.useState)(l),[h,p]=(0,i.useState)(l),[u,x]=(0,i.useState)(0),[b,j]=(0,i.useState)("desktop"),[y,w]=(0,i.useState)(!0),N=g.find(e=>e.id===b)?.w??"100%";return(0,i.useEffect)(()=>{l?(v(e=>e||l),p(e=>e||l)):(v(""),p(""))},[l]),(0,i.useEffect)(()=>{if(!o||!h)return void w(!0);let e=!0;return(0,c.K)(h).then(s=>{e&&w(s.frameable)}).catch(()=>{}),()=>{e=!1}},[o,h,u]),(0,a.jsxs)("div",{className:"hw-card tdb-card",children:[(0,a.jsxs)("div",{className:"hw-head",children:[(0,a.jsx)("span",{className:"hw-ic",children:(0,a.jsx)(r.I,{name:"goto",size:19})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)("div",{className:"hw-t",children:n("testdev.preview.title")}),(0,a.jsx)("div",{className:"hw-s",children:n("testdev.preview.sub")})]}),(0,a.jsx)("div",{className:"tdb-vp",children:g.map(e=>(0,a.jsx)("button",{className:"tdb-vp-btn"+(b===e.id?" on":""),disabled:!o,onClick:()=>j(e.id),children:n(`testdev.viewport.${e.id}`)},e.id))})]}),(0,a.jsxs)("div",{className:"tdb-bar",children:[(0,a.jsxs)("div",{className:"tdb-dots",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),(0,a.jsx)("button",{className:"tdb-ico",title:n("testdev.preview.reload"),disabled:!o,onClick:function(){x(e=>e+1)},children:(0,a.jsx)(r.I,{name:"refresh",size:14})}),(0,a.jsxs)("form",{className:"tdb-addr",onSubmit:function(e){let s;e?.preventDefault();let t=(s=m.trim())?/^https?:\/\//i.test(s)?s:l.replace(/\/$/,"")+(s.startsWith("/")?s:"/"+s):l;p(t),v(t),x(e=>e+1)},children:[(0,a.jsx)(r.I,{name:o?"shield":"goto",size:12}),(0,a.jsx)("input",{value:m,placeholder:l||n("testdev.preview.addrPlaceholder"),disabled:!o,onChange:e=>v(e.target.value),spellCheck:!1})]}),o?(0,a.jsx)("a",{className:"tdb-ico",title:n("testdev.preview.openNewTab"),href:h,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(r.I,{name:"goto",size:14})}):(0,a.jsx)("span",{className:"tdb-ico off",children:(0,a.jsx)(r.I,{name:"goto",size:14})})]}),(0,a.jsx)("div",{className:"tdb-stage",children:o&&!y?(0,a.jsxs)("div",{className:"tdb-empty",children:[(0,a.jsx)("span",{className:"tdb-empty-ic",children:(0,a.jsx)(r.I,{name:"shield",size:26})}),(0,a.jsx)("div",{className:"tdb-empty-t",children:n("testdev.preview.blocked.title")}),(0,a.jsx)("div",{className:"tdb-empty-s",children:n("testdev.preview.blocked.sub")}),(0,a.jsxs)("a",{className:"btn-accent",style:{marginTop:10},href:h,target:"_blank",rel:"noreferrer",children:[(0,a.jsx)(r.I,{name:"goto",size:13})," ",n("testdev.preview.openNewTabBtn")]})]}):o?(0,a.jsx)("iframe",{className:"tdb-frame",src:h,style:{width:N,maxWidth:"100%"},title:n("testdev.preview.frameTitle"),sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-downloads"},u):(0,a.jsxs)("div",{className:"tdb-empty",children:[(0,a.jsx)("span",{className:"tdb-empty-ic"+(t||"starting"===e.status?" spin":""),children:(0,a.jsx)(r.I,{name:t||"starting"===e.status?"refresh":"goto",size:26})}),(0,a.jsx)("div",{className:"tdb-empty-t",children:"error"===e.status?n("testdev.preview.empty.errorTitle"):t||"starting"===e.status?n("testdev.preview.empty.startingTitle"):n("testdev.preview.empty.idleTitle")}),(0,a.jsx)("div",{className:"tdb-empty-s",children:"error"===e.status?n("testdev.preview.empty.errorSub"):n("testdev.preview.empty.idleSub")}),"running"!==e.status&&"starting"!==e.status&&!t&&(0,a.jsxs)("button",{className:"btn-accent",style:{marginTop:10},onClick:s,children:[(0,a.jsx)(r.I,{name:"goto",size:13})," ",n("testdev.server.start")]})]})})]})}function b({status:e,runs:s,goals:t}){let c=(0,d.k)(),[o,g]=(0,i.useState)(e),[j,y]=(0,i.useState)(""),[w,N]=(0,i.useState)(null),[k,S]=(0,i.useState)(""),[,z]=(0,i.useTransition)();function _(){S("server"),z(async()=>{g(o.running?await m():await (0,v.R)()),S("")})}let C="running"===o.status?"run":"starting"===o.status?"boot":"stop",I="running"===o.status?c("testdev.state.running"):"starting"===o.status?c("testdev.state.starting"):"error"===o.status?c("testdev.state.error"):"none"===o.status?c("testdev.state.notStarted"):c("testdev.state.stopped");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lr-grid",children:[(0,a.jsxs)("div",{className:"hw-card",children:[(0,a.jsxs)("div",{className:"hw-head",children:[(0,a.jsx)("span",{className:"hw-ic",children:(0,a.jsx)(r.I,{name:"terminal",size:19})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)("div",{className:"hw-t",children:c("testdev.server.title")}),(0,a.jsx)("div",{className:"hw-s",children:o.project??c("testdev.server.defaultProject")})]}),(0,a.jsx)("button",{className:"iact",title:c("common.refresh"),onClick:function(){z(async()=>{g(await (0,h.j)())})},children:(0,a.jsx)(r.I,{name:"refresh",size:15})})]}),(0,a.jsxs)("div",{className:"srv-status",children:[(0,a.jsx)("span",{className:"srv-dot "+C}),(0,a.jsxs)("div",{className:"srv-meta",children:[(0,a.jsx)("div",{className:"sm-t",children:I}),(0,a.jsx)("div",{className:"sm-s",children:o.url??c("testdev.server.noServer")})]}),(0,a.jsxs)("button",{className:o.running?"btn-ghost":"btn-accent",onClick:_,disabled:"server"===k,children:["server"===k?(0,a.jsx)("span",{className:"sync-spin",children:(0,a.jsx)(r.I,{name:"refresh",size:13})}):(0,a.jsx)(r.I,{name:o.running?"close":"goto",size:13}),o.running?c("testdev.server.stop"):"server"===k?c("testdev.server.working"):c("testdev.server.start")]})]}),(0,a.jsxs)("div",{className:"srv-log scroll",style:{maxHeight:220},children:[0===o.logs.length&&(0,a.jsx)("div",{className:"lg-dim",children:c("testdev.server.noOutput")}),o.logs.map((e,s)=>(0,a.jsx)("div",{className:"err"===e.c?"lg-warn":"info"===e.c?"lg-dim":"lg-ok",children:e.t},s))]})]}),(0,a.jsxs)("div",{className:"hw-card",children:[(0,a.jsxs)("div",{className:"hw-head",children:[(0,a.jsx)("span",{className:"hw-ic",children:(0,a.jsx)(r.I,{name:"pulse",size:19})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)("div",{className:"hw-t",children:c("testdev.tests.title")}),(0,a.jsx)("div",{className:"hw-s",children:c("testdev.tests.sub")})]})]}),(0,a.jsxs)("div",{style:{marginBottom:10},children:[(0,a.jsx)("div",{className:"pa-flabel",style:{marginBottom:4},children:c("testdev.tests.scope")}),(0,a.jsx)(n.m,{value:j,placeholder:c("testdev.tests.wholeApp"),options:[{value:"",label:c("testdev.tests.wholeApp")},...t.map(e=>({value:e.id,label:e.title.slice(0,40)}))],onChange:y})]}),(0,a.jsx)("button",{className:"btn-accent",style:{width:"100%",justifyContent:"center"},onClick:function(){S("test"),N(null),z(async()=>{let e=await p(j?{goalId:j}:void 0);N({status:e.status,summary:e.summary,findings:e.findings}),g(await (0,h.j)()),S("")})},disabled:"test"===k,children:"test"===k?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"sync-spin",children:(0,a.jsx)(r.I,{name:"refresh",size:13})})," ",c("testdev.tests.testing")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.I,{name:"play",size:13})," ",c("testdev.tests.run")]})}),w&&(0,a.jsxs)("div",{style:{marginTop:12},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,a.jsx)("span",{className:"pill",style:{background:u[w.status]+"22",color:u[w.status]},children:c(`testdev.verdict.${w.status}`)}),(0,a.jsx)("span",{style:{fontSize:12.5,color:"var(--text-dim)"},children:w.summary})]}),w.findings.length>0&&(0,a.jsx)("div",{className:"srv-log scroll",style:{maxHeight:160},children:w.findings.map((e,s)=>(0,a.jsxs)("div",{style:{display:"flex",gap:6,padding:"2px 0"},children:[(0,a.jsx)("span",{style:{color:x[e.severity],fontWeight:700,fontSize:10},children:c(`testdev.severity.${e.severity}`).toUpperCase()}),(0,a.jsxs)("span",{style:{color:"var(--text-faint)",fontSize:11},children:[e.kind,"@",e.route]}),(0,a.jsx)("span",{style:{fontSize:11,color:"var(--text-dim)",flex:1},children:e.message})]},s))})]})]})]}),(0,a.jsx)(f,{status:o,onStart:_,starting:"server"===k}),(0,a.jsx)("div",{className:"view-section-title",children:c("testdev.recent.title")}),(0,a.jsx)("div",{className:"tbl-wrap",children:(0,a.jsxs)("table",{className:"tbl",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:c("testdev.col.verdict")}),(0,a.jsx)("th",{children:c("testdev.col.summary")}),(0,a.jsx)("th",{children:c("testdev.col.findings")}),(0,a.jsx)("th",{children:c("testdev.col.by")}),(0,a.jsx)("th",{children:c("testdev.col.when")})]})}),(0,a.jsxs)("tbody",{children:[0===s.length&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:5,style:{textAlign:"center",color:"var(--text-faint)",padding:18},children:c("testdev.recent.empty")})}),s.map(e=>{let s=0;try{s=JSON.parse(e.findings).length}catch{}return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("span",{className:"pill",style:{background:u[e.status]+"22",color:u[e.status]},children:c(`testdev.verdict.${e.status}`)})}),(0,a.jsx)("td",{style:{fontSize:12.5},children:e.summary||"—"}),(0,a.jsx)("td",{style:{color:"var(--text-dim)"},children:s}),(0,a.jsx)("td",{style:{color:"var(--text-dim)"},children:e.by}),(0,a.jsx)("td",{style:{color:"var(--text-faint)",fontSize:11},children:e.startedAt?(0,l.F)(e.startedAt):"—"})]},e.id)})]})]})})]})}},8771:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,3283,23)),Promise.resolve().then(t.bind(t,8593)),Promise.resolve().then(t.bind(t,235)),Promise.resolve().then(t.bind(t,6588)),Promise.resolve().then(t.bind(t,4414)),Promise.resolve().then(t.bind(t,6556)),Promise.resolve().then(t.bind(t,4942)),Promise.resolve().then(t.bind(t,2444)),Promise.resolve().then(t.bind(t,5787))},9130:(e,s,t)=>{"use strict";t.d(s,{j:()=>i});var a=t(7814);let i=(0,a.createServerReference)("00489557c06166ea2ca69911c0a571a148ac5bf6f3",a.callServer,void 0,a.findSourceMapURL,"devServerStatusAction")},9265:(e,s,t)=>{"use strict";t.d(s,{W:()=>l});var a=t(5076),i=t(8488);let r={anthropic:"anthropic",claude_code:"claude",openai:"openai",codex_cli:"openai",google:"google",google_gemini:"gemini",gemini_cli:"gemini",vertex_ai:"vertexai",mistral:"mistral",deepseek:"deepseek",cohere:"cohere",perplexity:"perplexity",xai_grok:"grok",groq:"groq",ai21:"ai21",nvidia_nim:"nvidia",huggingface:"huggingface",replicate:"replicate",azure_openai:"azure",aws_bedrock:"bedrock",cloudflare:"cloudflare",dashscope:"qwen",zhipu:"zhipu",moonshot:"moonshot",minimax:"minimax",together:"together",openrouter:"openrouter",fireworks:"fireworks",cerebras:"cerebras",ollama:"ollama",ollama_cli:"ollama",lmstudio:"lmstudio",vllm:"vllm",localai:"localai",elevenlabs:"elevenlabs",stability:"stability",jina:"jina",voyage:"voyage"},n={anthropic:["#d97757","An"],openai:["#10a37f","AI"],google_gemini:["#4285f4","G"],google:["#4285f4","G"],mistral:["#fa520f","Mi"],xai_grok:["#1a1a1a","X"],deepseek:["#4d6bfe","DS"],cohere:["#39594d","Co"],ai21:["#e8488a","A2"],perplexity:["#20808d","Px"],groq:["#f55036","Gq"],nvidia_nim:["#76b900","NV"],together:["#0f6fff","To"],fireworks:["#5019c5","Fw"],cerebras:["#f25733","Cb"],huggingface:["#ff9d00","HF"],replicate:["#1a1a1a","Rp"],openrouter:["#6566f1","OR"],litellm:["#00b8a3","LL"],portkey:["#3b5bdb","Pk"],azure_openai:["#0078d4","Az"],aws_bedrock:["#ff9900","Br"],vertex_ai:["#4285f4","Vx"],cloudflare:["#f38020","Cf"],dashscope:["#ff6a00","Qw"],zhipu:["#3859ff","GL"],moonshot:["#16162a","Ki"],minimax:["#e1342c","MM"],ollama:["#0c0c0c","Ol"],llamacpp:["#7a4ddb","Lc"],lmstudio:["#4a5cff","LM"],vllm:["#1668dc","vL"],localai:["#2e7d32","La"],gpt4all:["#5b6cff","G4"],jan:["#1a1a1a","Jn"],claude_code:["#d97757","CC"],codex_cli:["#10a37f","Cx"],gemini_cli:["#4285f4","Gc"],aider:["#14b8a6","Ad"],ollama_cli:["#0c0c0c","Oc"],openclaw:["#e8590c","OC"],hermes_cli:["#6d28d9","Hm"],opencode:["#1a1a1a","Oc"],copilot_cli:["#1f2328","Co"],cursor_cli:["#1a1a1a","Cu"],cline_cli:["#2563eb","Cl"],kilo_code:["#7c3aed","Ki"],voyage:["#5b21b6","Vo"],jina:["#ec4899","Ji"],stability:["#a855f7","St"],elevenlabs:["#1a1a1a","El"]};function l({id:e,size:s=34,radius:t}){let d,c=n[e],o=c?c[0]:"#5b6378",m=c?c[1]:(e||"?").slice(0,2).replace(/[^a-z0-9]/gi,"").toUpperCase(),v=(d=r[e])?`https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg/icons/${d}.svg`:null,[h,p]=(0,i.useState)(!1),u=null!=t?t:Math.round(.28*s),x=v&&!h,g=Math.round(.66*s);return(0,a.jsx)("span",{className:"prov-glyph",style:{width:s,height:s,flex:"0 0 "+s+"px",borderRadius:u,background:x?"#fff":"linear-gradient(150deg, "+o+", color-mix(in srgb, "+o+" 70%, #000))",color:"#fff",display:"grid",placeItems:"center",overflow:"hidden",fontSize:Math.round(.4*s),fontWeight:800,letterSpacing:"-.5px",boxShadow:x?"inset 0 0 0 1px rgba(0,0,0,.08)":"inset 0 1px 0 rgba(255,255,255,.18)"},children:x?(0,a.jsx)("img",{src:v,alt:"",width:g,height:g,loading:"lazy",onError:()=>p(!0),style:{width:g,height:g,objectFit:"contain",display:"block"}}):m})}}},e=>{e.O(0,[9219,3219,9950,8370,6646,6834,7358],()=>e(e.s=8771)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2849],{2162:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,3283,23)),Promise.resolve().then(a.bind(a,4224)),Promise.resolve().then(a.bind(a,235)),Promise.resolve().then(a.bind(a,6588)),Promise.resolve().then(a.bind(a,4414)),Promise.resolve().then(a.bind(a,6556)),Promise.resolve().then(a.bind(a,4942)),Promise.resolve().then(a.bind(a,2444)),Promise.resolve().then(a.bind(a,5787))},4224:(e,s,a)=>{"use strict";a.d(s,{UpdateScreen:()=>p});var t=a(5076),l=a(8488),n=a(4302),i=a(5393),r=a(8576),d=a(9964),c=a(9564),o=a(5931),u=a(5629);function p(e){let s=(0,u.k)(),[a,p]=(0,l.useState)(!1),[h,m]=(0,l.useState)(null),[v,x]=(0,l.useState)(""),[b,g]=(0,l.useState)({latest:e.latest,updateAvailable:e.updateAvailable,type:e.type,changelog:e.changelog}),[j,y]=(0,l.useState)(!1),[f,N]=(0,l.useState)(!1);async function k(){if(!f){N(!0);try{let e=await (0,d.l)(!0);g({latest:e.info.latest,updateAvailable:e.info.updateAvailable,type:e.info.type,changelog:e.info.changelog}),y(e.busy)}catch{}finally{N(!1)}}}async function w(){if(j)return;p(!0),x("");let e=await (0,c.P)();if(m(e),e.blocked){p(!1),y(!0);return}if(e.started){let e=setInterval(async()=>{let s=await (0,o.e)().catch(()=>null);s&&(x(s.status),"done"===s.status?(clearInterval(e),window.location.reload()):"error"===s.status&&(clearInterval(e),p(!1)))},3e3)}else p(!1)}return(0,l.useEffect)(()=>{let e=!1,s=async()=>{try{let s=await (0,d.l)(!1);e||y(s.busy)}catch{}};s();let a=setInterval(s,12e3);return()=>{e=!0,clearInterval(a)}},[]),(0,t.jsxs)("div",{className:"pd-grid",children:[(0,t.jsxs)("div",{className:"hw-card",children:[(0,t.jsxs)("div",{className:"upd-versions",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"upd-k",children:s("update.installed")}),(0,t.jsxs)("div",{className:"upd-v",children:["v",e.current]})]}),(0,t.jsx)(r.I,{name:"goto",size:16,style:{color:"var(--text-faint)"}}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"upd-k",children:s("update.latest")}),(0,t.jsx)("div",{className:"upd-v",style:{color:"var(--accent)"},children:b.latest?"v"+b.latest:"—"})]}),b.type&&(0,t.jsx)("span",{className:"pill",style:{marginLeft:"auto",background:"var(--bg-active)",color:"var(--text-dim)"},children:b.type})]}),(0,t.jsxs)("div",{className:"set-desc",style:{marginTop:10},children:[(0,t.jsx)(r.I,{name:"cpu",size:12})," ",s(`update.ctx.${e.context}`)]}),(0,t.jsxs)("div",{style:{marginTop:14,display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[b.updateAvailable&&(0,t.jsx)("button",{className:"btn-accent",disabled:a||j,onClick:w,title:j?s("update.busy"):void 0,children:a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sync-spin",children:(0,t.jsx)(r.I,{name:"refresh",size:13})})," ",s("update.updating")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.I,{name:"goto",size:13})," ",s("update.updateNow")]})}),(0,t.jsxs)("button",{className:"btn-ghost",disabled:f,onClick:k,children:[(0,t.jsx)("span",{className:f?"sync-spin":"",style:{display:"inline-flex"},children:(0,t.jsx)(r.I,{name:"sync",size:13})})," ",s("update.checkNow")]}),b.updateAvailable&&(0,t.jsx)("button",{className:"btn-ghost",onClick:()=>history.back(),children:s("update.defer")}),(0,t.jsxs)("a",{className:"btn-ghost",href:"https://github.com/gabriel7silva/constella/blob/main/docs/UPDATE.md",target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(r.I,{name:"doc",size:13})," ",s("update.docs")]})]}),!b.updateAvailable&&(0,t.jsxs)("div",{className:"muted",style:{marginTop:12,fontSize:13},children:[(0,t.jsx)(r.I,{name:"check",size:14})," ",s("update.onLatest")]}),j&&(0,t.jsxs)("div",{className:"form-hint",style:{marginTop:10},children:[(0,t.jsx)(r.I,{name:"pulse",size:13})," ",s("update.busy")]}),h&&(0,t.jsxs)("div",{className:"pd-result",style:{marginTop:14},children:[(0,t.jsx)("div",{style:{fontSize:12.5,color:h.ok?"var(--sx-string)":"var(--text-dim)"},children:h.message}),h.started&&(0,t.jsxs)("div",{className:"muted",style:{fontSize:11.5,marginTop:6},children:[s("update.updaterLabel"),": ",v||s("update.poll.running"),"…","done"===v&&(0,t.jsxs)("b",{style:{color:"var(--sx-string)"},children:[" ✓ ",s("update.poll.done")]}),"error"===v&&(0,t.jsxs)("b",{style:{color:"#e8688f"},children:[" ✖ ",s("update.poll.error")]})]}),h.command&&(0,t.jsx)("pre",{className:"pd-log",style:{marginTop:8},children:h.command}),h.backupDir&&(0,t.jsxs)("div",{className:"muted",style:{fontSize:11},children:[s("update.backupSaved"),": ",h.backupDir]}),"error"===v&&(0,t.jsxs)("div",{className:"form-hint",style:{marginTop:6},children:[s("update.rollback"),": ",(0,t.jsxs)("span",{className:"mono",children:["npm i -g constellai@",e.current]}),", ",s("update.rollbackThen")]})]})]}),b.changelog&&(0,t.jsxs)("div",{className:"hw-card",children:[(0,t.jsx)("h4",{style:{marginTop:0},children:s("update.whatsNew",{version:b.latest??""})}),(0,t.jsx)("div",{className:"upd-changelog",children:(0,t.jsx)(n.oz,{remarkPlugins:[i.A],children:b.changelog})})]})]})}}},e=>{e.O(0,[9219,9690,3219,9950,8370,6646,6834,7358],()=>e(e.s=2162)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{56:(e,n,t)=>{"use strict";t.d(n,{LoginForm:()=>f});var a=t(5076),r=t(8488),i=t(9860),s=t(2320),l=t(4055),o=t(7814);let c=(0,o.createServerReference)("402a7c622b033297f5c1a31ea460ca9f60f9064389",o.callServer,void 0,o.findSourceMapURL,"signupAction");var d=t(6816),u=t(8576),g=t(235),p=t(6556),h=t(5629);function f({screen:e,operatorEmail:n}){let t=(0,i.useRouter)(),o=(0,h.k)(),[m,y]=(0,r.useState)(e),[x,v]=(0,r.useState)(n),[j,b]=(0,r.useState)(""),[w,S]=(0,r.useState)(""),[k,N]=(0,r.useState)(""),[C,L]=(0,r.useState)(!1),[R,T]=(0,r.useState)(""),[z,E]=(0,r.useState)(""),[M,O]=(0,r.useState)(!1),[F,P]=(0,r.useState)("");function J(e){e?.twoFactorRedirect?O(!0):t.push("/")}async function _(){L(!0),T("");let e=await l.Jv.email({email:x,password:w});if(e.error){L(!1),T(o("login.invalidCredentials"));return}J(e.data),L(!1)}async function I(){if(T(""),w!==k)return void T(o("login.passwordMismatch"));L(!0);let e=await c({email:x,name:j,password:w});if(!e.ok){if(L(!1),"alreadyConfigured"===e.error){y("signin"),S(""),N(""),E(o("login.alreadyConfigured"));return}T(o("login.failed"));return}let n=await l.Jv.email({email:e.email,password:w});if(n.error){L(!1),T(o("login.failed"));return}J(n.data),L(!1)}async function B(){L(!0),T("");let e=await l.yK.twoFactor.verifyTotp({code:F});(L(!1),e.error)?T(e.error.message??o("login.invalidCode")):t.push("/")}async function K(){L(!0),T("");try{let e=await fetch("/api/passkey/authenticate/options",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:x})}).then(e=>e.json());if(e.error)throw Error(e.error);let n=await (0,s.HS)({optionsJSON:e}),a=await fetch("/api/passkey/authenticate/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({response:n})}).then(e=>e.json());if(!a.ok)throw Error(a.error??o("login.passkeyFailed"));t.push("/")}catch(e){L(!1),T(e instanceof Error?e.message:o("login.passkeyFailed"))}}let W="signup"===m?o("login.signup.title"):o("login.title"),U="signup"===m?o("login.signup.sub"):o("login.sub.continue");return(0,a.jsxs)("div",{className:"login-wrap",children:[(0,a.jsx)("div",{className:"login-aurora","aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:-1,pointerEvents:"none",background:"radial-gradient(60% 50% at 70% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), radial-gradient(50% 40% at 20% 80%, color-mix(in srgb, #7c5cff 16%, transparent), transparent 70%)"}}),(0,a.jsxs)("div",{className:"login-card",children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,a.jsx)(d.J,{size:46,rx:13}),(0,a.jsx)("span",{style:{fontSize:18,fontWeight:800},children:"Constella"}),(0,a.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:8,alignItems:"center"},children:[(0,a.jsx)(p.LangSwitch,{}),(0,a.jsx)(g.AnimToggle,{})]})]}),(0,a.jsx)("h1",{style:{fontSize:24,fontWeight:800,marginBottom:6},children:W}),(0,a.jsx)("p",{className:"muted",style:{fontSize:13,marginBottom:16},children:U}),z&&(0,a.jsx)("p",{style:{color:"var(--accent)",fontSize:12.5,marginBottom:10},children:z}),M?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:"form-label",children:o("login.authCode")}),(0,a.jsx)("input",{className:"form-input",placeholder:"123456",autoFocus:!0,value:F,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key&&F.length>=6&&B()}}),R&&(0,a.jsx)("p",{style:{color:"var(--sx-keyword)",fontSize:12.5,marginTop:8},children:R}),(0,a.jsx)("button",{className:"btn-accent",style:{width:"100%",justifyContent:"center",marginTop:16,padding:11},disabled:C||F.length<6,onClick:B,children:C?o("login.verifying"):o("login.verify")})]}):"signup"===m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:"form-label",children:o("login.name")}),(0,a.jsx)("input",{className:"form-input",value:j,onChange:e=>b(e.target.value),placeholder:"Operator"}),(0,a.jsx)("label",{className:"form-label",children:o("login.email")}),(0,a.jsx)("input",{className:"form-input",value:x,onChange:e=>v(e.target.value)}),(0,a.jsx)("label",{className:"form-label",children:o("login.password")}),(0,a.jsx)("input",{className:"form-input",type:"password",value:w,onChange:e=>S(e.target.value),placeholder:"••••••••"}),(0,a.jsx)("label",{className:"form-label",children:o("login.confirmPassword")}),(0,a.jsx)("input",{className:"form-input",type:"password",value:k,onChange:e=>N(e.target.value),placeholder:"••••••••",onKeyDown:e=>{"Enter"===e.key&&w.length>=8&&k.length>=8&&I()}}),R&&(0,a.jsx)("p",{style:{color:"var(--sx-keyword)",fontSize:12.5,marginTop:8},children:R}),(0,a.jsx)("button",{className:"btn-accent",style:{width:"100%",justifyContent:"center",marginTop:12,padding:11},disabled:C||w.length<8||k.length<8,onClick:I,children:C?o("login.signingIn"):o("login.signup.button")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:"form-label",children:o("login.email")}),(0,a.jsx)("input",{className:"form-input",value:x,onChange:e=>v(e.target.value)}),(0,a.jsx)("label",{className:"form-label",children:o("login.password")}),(0,a.jsx)("input",{className:"form-input",type:"password",value:w,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&w.length>=8&&_()}}),R&&(0,a.jsx)("p",{style:{color:"var(--sx-keyword)",fontSize:12.5,marginTop:8},children:R}),(0,a.jsx)("button",{className:"btn-accent",style:{width:"100%",justifyContent:"center",marginTop:12,padding:11},disabled:C||w.length<8,onClick:_,children:C?o("login.signingIn"):o("login.signin")}),(0,a.jsx)("button",{className:"btn-ghost",style:{width:"100%",justifyContent:"center",marginTop:8,padding:10},disabled:C,onClick:K,type:"button",children:o("login.passkey")})]}),(0,a.jsxs)("div",{className:"login-note",style:{display:"flex",alignItems:"center",gap:8,marginTop:16,fontSize:11.5,color:"var(--text-faint)"},children:[(0,a.jsx)(u.I,{name:"shield",size:13})," ",o("login.note")]})]})]})}},1171:(e,n,t)=>{Promise.resolve().then(t.bind(t,56))},4055:(e,n,t)=>{"use strict";t.d(n,{Jv:()=>s,yK:()=>i});var a=t(5138),r=t(8618);let i=(0,a.M)({baseURL:window.location.origin,plugins:[(0,r.N)()]}),{signIn:s,signUp:l,signOut:o,useSession:c,twoFactor:d}=i},6816:(e,n,t)=>{"use strict";t.d(n,{J:()=>r});var a=t(5076);function r({size:e=34,rx:n=9}){return(0,a.jsxs)("svg",{width:e,height:e,viewBox:"0 0 100 100",style:{display:"block",flex:`0 0 ${e}px`},"aria-label":"Constella",children:[(0,a.jsx)("rect",{x:"1",y:"1",width:"98",height:"98",rx:n,fill:"var(--cs-bg)",stroke:"var(--cs-border)",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M66.06 27.06 L42.75 22.95 L24.62 38.17 L24.62 61.83 L42.75 77.05 L66.06 72.94",fill:"none",stroke:"var(--cs-line)",strokeWidth:"2.1",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M48 50 L42.75 22.95 M48 50 L24.62 50 M48 50 L42.75 77.05",fill:"none",stroke:"var(--cs-line)",strokeWidth:"1.2",strokeLinecap:"round",opacity:"0.55"}),[[66.06,27.06],[42.75,22.95],[24.62,38.17],[24.62,61.83],[42.75,77.05],[66.06,72.94]].map((e,n)=>(0,a.jsx)("circle",{cx:e[0],cy:e[1],r:"3.1",fill:"var(--cs-node)"},n)),(0,a.jsx)("circle",{cx:"48",cy:"50",r:"8.5",fill:"var(--cs-glow)",opacity:"0.4"}),(0,a.jsx)("circle",{cx:"48",cy:"50",r:"4.3",fill:"var(--cs-core)"})]})}},7814:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={callServer:function(){return i.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in a)Object.defineProperty(n,r,{enumerable:!0,get:a[r]});let i=t(3825),s=t(2617),l=t(5986)},9860:(e,n,t)=>{"use strict";var a=t(2004);t.o(a,"usePathname")&&t.d(n,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(n,{useRouter:function(){return a.useRouter}})}},e=>{e.O(0,[7555,2320,3219,9950,6646,6834,7358],()=>e(e.s=1171)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5134],{5629:(e,s,a)=>{"use strict";a.d(s,{LangProvider:()=>i,k:()=>c});var r=a(5076),t=a(8488),n=a(3219);let l=(0,t.createContext)("en");function i({lang:e,children:s}){return(0,r.jsx)(l.Provider,{value:e,children:s})}function c(){let e=(0,t.useContext)(l);return(s,a)=>(0,n.t)(e,s,a)}},6396:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>I});var r=a(5076),t=a(8488),n=a(9860),l=a(7814);let i=(0,l.createServerReference)("002fb89ed449052de8a5ae82661c8c25a9b4ea144d",l.callServer,void 0,l.findSourceMapURL,"operatorHasOrg"),c=(0,l.createServerReference)("402419708a878b3b9559d77672c039d835c53ecefa",l.callServer,void 0,l.findSourceMapURL,"completeOnboarding"),o=new Set(["node_modules",".git",".next",".turbo","dist","build","out","coverage",".cache",".pnpm-store",".vercel","vendor",".parcel-cache",".svelte-kit",".nuxt",".astro",".angular",".venv","venv","env","__pycache__",".mypy_cache",".pytest_cache",".ruff_cache",".tox",".nox","htmlcov","site-packages",".eggs",".ipynb_checkpoints","target",".gradle","bin","obj","Pods",".cargo","Carthage",".cxx","DerivedData",".idea",".vscode",".svn",".hg",".vs",".fleet","logs","tmp","temp",".terraform","archives",".testdev"]),d=/\.(py|pyi|pyw|js|jsx|ts|tsx|mjs|cjs|mts|cts|json|jsonc|html?|css|scss|sass|less|styl|md|markdown|mdx|txt|rst|yml|yaml|toml|ini|cfg|conf|env|example|sample|sh|bash|zsh|bat|cmd|ps1|sql|graphql|gql|prisma|xml|svg|vue|svelte|astro|go|rs|java|kt|kts|scala|clj|rb|erb|php|blade|c|h|cpp|cc|hpp|cs|fs|swift|m|mm|dart|lua|r|ex|exs|erl|hrl|gradle|properties|lock|proto|tf|tfvars|dockerfile|dockerignore|gitignore|gitattributes|editorconfig|prettierrc|eslintrc|babelrc|npmrc|nvmrc|browserslistrc)$/i,h=new Set(["dockerfile","makefile","procfile","rakefile","gemfile","brewfile","vagrantfile","license","licence","readme","changelog","authors","contributors","notice","codeowners"]),g=(0,l.createServerReference)("40b0d489887ec87dcd0af108eff7a37cc4e9b1a6c4",l.callServer,void 0,l.findSourceMapURL,"githubReposForToken"),x=(0,l.createServerReference)("0061832be7057b06f1bf3ea124e4c09553fdf43622",l.callServer,void 0,l.findSourceMapURL,"checkSetupEnv"),u=(0,l.createServerReference)("4094ef070b2578f8bf9c71e1e1c900601ec7dc6518",l.callServer,void 0,l.findSourceMapURL,"checkAdapter"),m=(0,l.createServerReference)("40c4e0b2acb637764ce8c6777a31442299ed99a6c8",l.callServer,void 0,l.findSourceMapURL,"testConnection"),p=(0,l.createServerReference)("60d9d16962fd6ba718219c2cae2d4e069511eb42d2",l.callServer,void 0,l.findSourceMapURL,"probeModel"),j=(0,l.createServerReference)("001d5720de4d6e622504351aaa72496391f6df093f",l.callServer,void 0,l.findSourceMapURL,"detectProviders");var b=a(8088),v=a(3730);let f={TypeScript:{slug:"typescript"},JavaScript:{slug:"javascript"},Python:{slug:"python"},Go:{slug:"go",variant:"original-wordmark"},Rust:{slug:"rust"},Java:{slug:"java"},Kotlin:{slug:"kotlin"},"C#":{slug:"csharp"},Ruby:{slug:"ruby"},PHP:{slug:"php"},Elixir:{slug:"elixir"},Swift:{slug:"swift"},"C++":{slug:"cplusplus"},Scala:{slug:"scala"},Dart:{slug:"dart"},C:{slug:"c"},Clojure:{slug:"clojure"},Haskell:{slug:"haskell"},Lua:{slug:"lua"},R:{slug:"r"},"Objective-C":{slug:"objectivec"},Erlang:{slug:"erlang",variant:"plain"},"Node.js":{slug:"nodejs"},Bun:{slug:"bun"},Deno:{slug:"denojs"},"Python 3":{slug:"python"},JVM:{slug:"java"},".NET":{slug:"dotnetcore"},"BEAM (Erlang VM)":{slug:"erlang",variant:"plain"},React:{slug:"react"},Vue:{slug:"vuejs"},Svelte:{slug:"svelte"},Angular:{slug:"angular"},SolidJS:{slug:"solidjs"},"Alpine.js":{slug:"alpinejs"},Ember:{slug:"ember"},Backbone:{slug:"backbonejs"},"HTML/CSS":{slug:"html5"},"Vanilla JS":{slug:"javascript"},"Plain CSS":{slug:"css3"},"Next.js":{slug:"nextjs"},Nuxt:{slug:"nuxtjs"},Remix:{slug:"remix"},SvelteKit:{slug:"svelte"},Astro:{slug:"astro"},Gatsby:{slug:"gatsby"},"Vite (SPA)":{slug:"vitejs"},Hugo:{slug:"hugo"},Jekyll:{slug:"jekyll",variant:"original-wordmark"},NestJS:{slug:"nestjs"},Fastify:{slug:"fastify"},Express:{slug:"express"},Koa:{slug:"koa"},Django:{slug:"django",variant:"plain"},Flask:{slug:"flask"},FastAPI:{slug:"fastapi"},"Spring Boot":{slug:"spring"},Spring:{slug:"spring"},Laravel:{slug:"laravel"},"Ruby on Rails":{slug:"rails"},Gin:{slug:"go",variant:"original-wordmark"},Phoenix:{slug:"phoenix"},"ASP.NET Core":{slug:"dotnetcore"},Nginx:{slug:"nginx"},GraphQL:{slug:"graphql"},Symfony:{slug:"symfony"},CodeIgniter:{slug:"codeigniter"},PostgreSQL:{slug:"postgresql"},MySQL:{slug:"mysql"},MariaDB:{slug:"mariadb"},SQLite:{slug:"sqlite"},MongoDB:{slug:"mongodb"},Redis:{slug:"redis"},Cassandra:{slug:"cassandra"},DynamoDB:{slug:"dynamodb"},Supabase:{slug:"supabase"},Prisma:{slug:"prisma"},Sequelize:{slug:"sequelize"},SQLAlchemy:{slug:"sqlalchemy"},"Tailwind CSS":{slug:"tailwindcss"},"CSS Modules":{slug:"css3"},Sass:{slug:"sass"},MUI:{slug:"materialui"},Bootstrap:{slug:"bootstrap"},Bulma:{slug:"bulma"},Vuetify:{slug:"vuetify"},Docker:{slug:"docker"},Podman:{slug:"podman"},Vercel:{slug:"vercel"},Netlify:{slug:"netlify"},AWS:{slug:"amazonwebservices",variant:"original-wordmark"},GCP:{slug:"googlecloud"},Kubernetes:{slug:"kubernetes"},Azure:{slug:"azure"},Jenkins:{slug:"jenkins"},CircleCI:{slug:"circleci",variant:"plain"},Terraform:{slug:"terraform"},Ansible:{slug:"ansible"},Vagrant:{slug:"vagrant"},RabbitMQ:{slug:"rabbitmq"},Kafka:{slug:"apachekafka"},Auth0:{slug:"auth0",variant:"plain"},Keycloak:{slug:"keycloak"},"React Native":{slug:"react"},Flutter:{slug:"flutter"},Android:{slug:"android"},Ionic:{slug:"ionic"},Xamarin:{slug:"xamarin"},NativeScript:{slug:"nativescript"},TensorFlow:{slug:"tensorflow"},PyTorch:{slug:"pytorch"},"scikit-learn":{slug:"scikitlearn"},Pandas:{slug:"pandas"},NumPy:{slug:"numpy"},Jupyter:{slug:"jupyter"},Jest:{slug:"jest"},Vitest:{slug:"vitest"},Cypress:{slug:"cypressio"},Playwright:{slug:"playwright"},Selenium:{slug:"selenium"},Mocha:{slug:"mocha"},Jasmine:{slug:"jasmine"},Puppeteer:{slug:"puppeteer"},D3:{slug:"d3js"},Grafana:{slug:"grafana"},Firebase:{slug:"firebase"},Appwrite:{slug:"appwrite"},Heroku:{slug:"heroku"}};var y=a(9562),k=a(973),M=a(6816),N=a(8576),S=a(3728),w=a(9265),C=a(5629);let z=["company","ceoModel","connection","stack","brief"];function L({name:e}){let s,a=(s=f[e])?`https://cdn.jsdelivr.net/gh/devicons/devicon/icons/${s.slug}/${s.slug}-${s.variant??"original"}.svg`:null,[n,l]=(0,t.useState)(!1);return!a||n?(0,r.jsx)("span",{className:"sc-mono",children:e.replace(/[^A-Za-z0-9]/g,"").slice(0,2)}):(0,r.jsx)("img",{className:"sc-ico",src:a,alt:"",loading:"lazy",onError:()=>l(!0)})}function F({stack:e,onPick:s,query:a,setQuery:t}){let n=(0,C.k)(),l=a.trim().toLowerCase(),i=l?v.z.flatMap(s=>s.opts.filter(e=>"None"!==e&&(e.toLowerCase().includes(l)||s.label.toLowerCase().includes(l))).map(a=>({cat:s,o:a,bad:(0,y.YL)(e,s.key,a)}))).slice(0,16):[];return(0,r.jsxs)("div",{className:"stack-search-wrap",children:[(0,r.jsxs)("div",{className:"stack-search",children:[(0,r.jsx)(N.I,{name:"search",size:15}),(0,r.jsx)("input",{placeholder:n("onboarding.stackSearchPh"),value:a,onChange:e=>t(e.target.value)}),a&&(0,r.jsx)("button",{className:"ss-clear",onClick:()=>t(""),children:(0,r.jsx)(N.I,{name:"close",size:13})})]}),l&&i.length>0&&(0,r.jsx)("div",{className:"stack-find scroll",children:i.map(({cat:a,o:t,bad:n})=>(0,r.jsxs)("button",{type:"button",className:"stack-find-row"+(n?" disabled":""),disabled:!!n,title:n||(0,v.f)(a.key,t),onClick:()=>{n||s(a.key,t)},children:[(0,r.jsx)(L,{name:t}),(0,r.jsx)("span",{className:"sf-name",children:t}),(0,r.jsx)("span",{className:"sf-cat",children:a.label}),(0,k.Hn)(e[a.key],t)&&(0,r.jsx)(N.I,{name:"check",size:13})]},a.key+t))}),l&&0===i.length&&(0,r.jsx)("div",{className:"stack-find sf-empty",children:n("onboarding.stackNoMatch",{query:a})})]})}function P({step:e}){let s=(0,C.k)();return(0,r.jsx)("div",{className:"onb-steps",children:z.map((a,t)=>(0,r.jsxs)("span",{style:{display:"contents"},children:[t>0&&(0,r.jsx)("span",{className:"onb-sep"}),(0,r.jsxs)("div",{className:"onb-stepdot"+(e===t?" on":e>t?" done":""),children:[(0,r.jsx)("span",{className:"num",children:e>t?"✓":t+1}),(0,r.jsx)("span",{children:s(`onboarding.step.${a}`)})]})]},a))})}function R({adapter:e,model:s,cached:a,onDone:n}){let l=(0,C.k)(),i=[{t:l("onboarding.test.prepare"),d:l("onboarding.test.prepareDesc")},{t:l("onboarding.test.adapter"),d:l("onboarding.test.adapterDesc",{adapter:e})},{t:l("onboarding.test.connection"),d:l("onboarding.test.connectionDesc")},{t:l("onboarding.test.model",{model:s}),d:l("onboarding.test.modelDesc")},{t:l("onboarding.test.ready"),d:l("onboarding.test.readyDesc")}],[c,o]=(0,t.useState)(a?i.length:0),[d,h]=(0,t.useState)(null),[g,j]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(a)return void o(i.length);let r=!0;return h(null),j(null),(async()=>{let a=[()=>x(),()=>u(e),()=>m(e),()=>p(e,s)];for(let e=0;e<a.length;e++){if(!r)return;o(e);let s=await a[e]();if(!r)return;if(!s.ok){h(e),j(s.error??l("onboarding.test.failed")),n(!1);return}o(e+1)}r&&(o(i.length),n(!0))})(),()=>{r=!1}},[a]),(0,r.jsx)("div",{className:"track",children:i.map((e,s)=>{let a=d===s,t=a?"":s<c?"done":s===c?"on":"todo";return(0,r.jsxs)("div",{className:"track-step "+t,children:[(0,r.jsx)("div",{className:"track-ico",children:a?(0,r.jsx)(N.I,{name:"close",size:15}):"done"===t?(0,r.jsx)(N.I,{name:"check",size:16}):"on"===t?(0,r.jsx)("span",{className:"spin",children:(0,r.jsx)(N.I,{name:"refresh",size:15})}):(0,r.jsx)(N.I,{name:"dot",size:8})}),(0,r.jsxs)("div",{className:"track-main",children:[(0,r.jsx)("div",{className:"track-t",children:e.t}),(0,r.jsx)("div",{className:"track-d",children:a?g:e.d})]})]},s)})})}function I(){let e=(0,n.useRouter)(),s=(0,C.k)(),[a,l]=(0,t.useState)(0),[x,u]=(0,t.useState)(!1);(0,t.useEffect)(()=>{i().then(u).catch(()=>{})},[]);let[m,p]=(0,t.useState)(""),[f,z]=(0,t.useState)(""),[I,H]=(0,t.useState)(""),[A,V]=(0,t.useState)([]),[T,D]=(0,t.useState)(""),[$,q]=(0,t.useState)(""),[_,E]=(0,t.useState)({}),[J,U]=(0,t.useState)(""),[B,W]=(0,t.useState)(""),[O,Q]=(0,t.useState)("You are Ada, the CEO of this company. Plan before building: analyse the brief, design the architecture and rituals, then organise the team."),[K,G]=(0,t.useState)(""),[Y,X]=(0,t.useState)(""),[Z,ee]=(0,t.useState)([]),[es,ea]=(0,t.useState)(!1),[er,et]=(0,t.useState)(""),[en,el]=(0,t.useState)("new"),[ei,ec]=(0,t.useState)(""),[eo,ed]=(0,t.useState)(""),[eh,eg]=(0,t.useState)([]),[ex,eu]=(0,t.useState)(""),[em,ep]=(0,t.useState)(!1),[ej,eb]=(0,t.useState)(""),[ev,ef]=(0,t.useState)([]),[ey,ek]=(0,t.useState)(""),[eM,eN]=(0,t.useState)(""),[eS,ew]=(0,t.useState)(!1),[eC,ez]=(0,t.useState)(0),[eL,eF]=(0,t.useState)(0),[eP,eR]=(0,t.useState)("");async function eI(){ep(!0),eb("");try{let e=await g(ei);if(!e.ok){eb(e.error??s("onboarding.src.listReposFailed")),eg([]);return}ed(e.login??""),eg(e.repos??[]),e.repos?.[0]&&eu(e.repos[0].full)}finally{ep(!1)}}async function eH(e){var a;let r;if(!e||!e.length)return;ew(!0),ez(0),eb(""),ef([]),eN("");let t=Array.from(e),n=(t[0].webkitRelativePath||t[0].name).split("/")[0]||"project",l=t.filter(e=>{var s;let a=(e.webkitRelativePath||e.name).split("/");for(let e=1;e<a.length-1;e++)if(s=a[e],o.has(s))return!1;let r=a[a.length-1];return!/^\.env(\.local|\.development|\.production)?$/i.test(r)&&".DS_Store"!==r&&!!(d.test(r)||h.has(r.toLowerCase()))&&!(e.size>524288)});if(!l.length){ew(!1),eb(s("onboarding.src.noFiles"));return}let i=[];for(let e=0;e<l.length;e++){let s=l[e],a=(s.webkitRelativePath||s.name).split("/").slice(1).join("/");if(a)try{i.push({path:a,content:await s.text()})}catch{}(e%5==0||e===l.length-1)&&ez(Math.round((e+1)/l.length*100))}ef(i),ek(n),eN((a=i.map(e=>e.path),(r=e=>a.some(s=>e.test(s)))(/(^|\/)manage\.py$/)?"Django (Python)":r(/(^|\/)next\.config\.(js|mjs|ts)$/)?"Next.js":r(/\.vue$/)?"Vue":r(/(^|\/)go\.mod$/)?"Go":r(/(^|\/)Cargo\.toml$/i)?"Rust":r(/(^|\/)pom\.xml$/)||r(/(^|\/)build\.gradle/)?"JVM":r(/(^|\/)composer\.json$/)?"PHP":r(/\.py$/)?"Python":r(/(^|\/)package\.json$/)?"Node":"")),ew(!1)}let eA="new"===en||"github"===en&&!!ex||"local"===en&&ev.length>0;async function eV(e){if(!e)return;let s=/\.(html?|css|jsx?|tsx?|md|txt|json|svg)$/i,a=[];for(let r of Array.from(e).slice(0,120)){let e=(r.webkitRelativePath||r.name).replace(/^\/+/,"");if(s.test(e)&&!(r.size>262144))try{a.push({path:e,content:await r.text()})}catch{}}ee(a)}let[eT,eD]=(0,t.useState)(!1),[e$,eq]=(0,t.useState)(""),[e_,eE]=(0,t.useState)(""),[eJ,eU]=(0,t.useState)(""),[eB,eW]=(0,t.useTransition)();(0,t.useEffect)(()=>{j().then(({detected:e})=>{V(e),e[0]&&(D(e[0].id),q(e[0].models[0]??""))})},[]),(0,t.useEffect)(()=>{if(!eB)return void eF(0);eF(8);let e=setInterval(()=>eF(e=>e<92?e+Math.max(1,Math.round((92-e)/12)):e),400);return()=>clearInterval(e)},[eB]);let eO=A.find(e=>e.id===T),eQ=eO?.adapter??"",eK=eQ+":"+$,eG=es&&er===eK,eY=(0,y.hP)(_);function eX(e,s){let a=(0,y.T1)({..._,[e]:(0,k.P_)(_[e],s)});E(a.stack),W(a.removed.map(e=>`${e.opt} was unselected automatically — ${e.reason}.`).join(" "))}return(0,r.jsxs)("div",{className:"onb",children:[(0,r.jsxs)("div",{className:"onb-top",children:[(0,r.jsxs)("div",{className:"onb-brand",children:[(0,r.jsx)(M.J,{size:34,rx:9}),(0,r.jsx)("div",{className:"bw",children:"Constella"})]}),(0,r.jsx)(P,{step:a}),x&&(0,r.jsx)("button",{className:"onb-close",title:s("onboarding.closeSetup"),"aria-label":s("onboarding.closeSetup"),onClick:()=>e.push("/"),children:(0,r.jsx)(N.I,{name:"close",size:16})})]}),(0,r.jsx)("div",{className:"onb-body",children:(0,r.jsxs)("div",{className:"onb-card"+(3===a?" onb-card-wide":""),children:[0===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"onb-h",children:s("onboarding.company.h")}),(0,r.jsx)("div",{className:"onb-sub",style:{marginBottom:14},children:s("onboarding.company.sub")}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.company.nameLabel")," ",(0,r.jsx)("span",{className:"req",children:"*"})]}),(0,r.jsx)("input",{className:"form-input",required:!0,autoFocus:!0,value:m,onChange:e=>p(e.target.value),placeholder:s("onboarding.company.namePh")})]}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.company.missionLabel")," ",(0,r.jsx)("span",{className:"req",children:"*"})]}),(0,r.jsx)("textarea",{className:"persona-ta",required:!0,value:f,onChange:e=>z(e.target.value),placeholder:s("onboarding.company.missionPh")})]}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.company.objectiveLabel")," ",(0,r.jsx)("span",{className:"req",children:"*"})]}),(0,r.jsx)("textarea",{className:"persona-ta",required:!0,value:I,onChange:e=>H(e.target.value),placeholder:s("onboarding.company.objectivePh")})]}),(0,r.jsx)("div",{className:"onb-foot",children:(0,r.jsxs)("button",{className:"btn-accent",disabled:!m.trim()||!f.trim()||!I.trim(),onClick:()=>l(1),children:[s("common.next")," ",(0,r.jsx)(N.I,{name:"chevronRight",size:13})]})})]}),1===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"onb-h",children:s("onboarding.brain.h")}),(0,r.jsx)("div",{className:"onb-sub",children:s("onboarding.brain.sub")}),(0,r.jsxs)("div",{className:"onb-secrow",children:[(0,r.jsx)("span",{className:"osr-t",children:s("onboarding.brain.detected")}),(0,r.jsx)("span",{className:"osr-line"})]}),(0,r.jsxs)("div",{className:"prov-cards",children:[A.map(e=>(0,r.jsxs)("div",{className:"prov-card "+("local"===e.kind?"local-card":"cloud-card")+(T===e.id?" on":""),onClick:()=>{D(e.id),q(e.models[0]??"")},children:[(0,r.jsx)("span",{className:"pc-badge",children:s(`onboarding.kind.${e.kind}`)}),(0,r.jsx)(w.W,{id:e.id,size:42}),(0,r.jsx)("div",{className:"pc-name",children:e.name}),(0,r.jsx)("div",{className:"pc-sub",children:e.adapter})]},e.id)),0===A.length&&(0,r.jsx)("div",{className:"muted",style:{fontSize:12.5,padding:12},children:s("onboarding.brain.detecting")})]}),(0,r.jsxs)("button",{className:"btn-ghost",style:{marginTop:10},onClick:()=>eD(e=>!e),children:[(0,r.jsx)(N.I,{name:"add",size:13})," ",s("onboarding.brain.registerToggle")]}),eT&&(0,r.jsxs)("div",{className:"card",style:{marginTop:10},children:[(0,r.jsx)("div",{className:"detail-label",children:s("onboarding.brain.registerTitle")}),(0,r.jsx)(S.m,{value:e$,placeholder:s("onboarding.brain.chooseProvider"),options:b.WQ.filter(e=>"unsupported"!==e.status).map(e=>({value:e.id,label:e.displayName,glyphId:e.id})),onChange:eq,glyph:!0}),(0,r.jsxs)("div",{className:"set-grid",style:{marginTop:8},children:[(0,r.jsx)("input",{className:"form-input mono",placeholder:s("onboarding.brain.modelIdPh"),value:eJ,onChange:e=>eU(e.target.value)}),(0,r.jsx)("input",{className:"form-input mono",type:"password",placeholder:s("onboarding.brain.apiKeyPh"),value:e_,onChange:e=>eE(e.target.value)})]}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:10},children:[(0,r.jsx)("button",{className:"btn-ghost",onClick:()=>eD(!1),children:s("common.cancel")}),(0,r.jsxs)("button",{className:"btn-accent",disabled:!e$,onClick:function(){let e=b.WQ.find(e=>e.id===e$);if(!e)return;let s={id:e.id,name:e.displayName,adapter:e.defaultAdapter,kind:"cli"===e.category?"cli":"local_runtime"===e.category?"local":"cloud",models:eJ.trim()?[eJ.trim()]:[]};V(e=>e.find(e=>e.id===s.id)?e:[...e,s]),D(s.id),q(eJ.trim()||""),eD(!1)},children:[(0,r.jsx)(N.I,{name:"check",size:13})," ",s("onboarding.brain.addSelect")]})]})]}),eO&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"onb-secrow",children:[(0,r.jsx)("span",{className:"osr-t",children:s("onboarding.brain.modelFor",{name:eO.name})}),(0,r.jsx)("span",{className:"osr-line"})]}),(0,r.jsx)(S.m,{mono:!0,value:$,options:eO.models.map(e=>({value:e,label:e})),onChange:q})]}),(0,r.jsxs)("div",{className:"onb-foot",children:[(0,r.jsxs)("button",{className:"btn-ghost",onClick:()=>l(0),children:[(0,r.jsx)(N.I,{name:"chevronLeft",size:13})," ",s("common.back")]}),(0,r.jsxs)("button",{className:"btn-accent",disabled:!eO||!$,onClick:()=>l(2),children:[s("common.next")," ",(0,r.jsx)(N.I,{name:"chevronRight",size:13})]})]})]}),2===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"onb-h",children:s("onboarding.setup.h")}),(0,r.jsxs)("div",{className:"onb-sub",children:[s("onboarding.setup.sub")," ",(0,r.jsx)("b",{style:{color:"var(--text)"},children:eQ})," \xb7 ",(0,r.jsx)("b",{style:{color:"var(--text)"},children:$}),"."]}),(0,r.jsx)(R,{adapter:eQ,model:$,cached:eG,onDone:e=>{ea(e),et(eK)}}),(0,r.jsxs)("div",{className:"onb-foot",children:[(0,r.jsxs)("button",{className:"btn-ghost",onClick:()=>l(1),children:[(0,r.jsx)(N.I,{name:"chevronLeft",size:13})," ",s("common.back")]}),(0,r.jsx)("button",{className:"btn-accent",disabled:!eG,onClick:()=>l(3),children:eG?(0,r.jsxs)(r.Fragment,{children:[s("onboarding.setup.continue")," ",(0,r.jsx)(N.I,{name:"chevronRight",size:13})]}):s("onboarding.setup.testing")})]})]}),3===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"onb-h",children:s("onboarding.stack.h")}),(0,r.jsx)("div",{className:"onb-sub",children:s("onboarding.stack.sub")}),eY&&(0,r.jsxs)("div",{className:"modal-hint",style:{color:"var(--sx-number)"},children:[(0,r.jsx)(N.I,{name:"pulse",size:12})," ",eY]}),B&&(0,r.jsxs)("div",{className:"modal-hint",style:{color:"var(--sx-keyword)"},children:[(0,r.jsx)(N.I,{name:"warn",size:12})," ",B]}),(0,r.jsx)(F,{stack:_,onPick:eX,query:J,setQuery:U}),v.z.map(e=>(0,r.jsxs)("div",{className:"stack-cat",children:[(0,r.jsxs)("div",{className:"onb-secrow",children:[(0,r.jsx)("span",{className:"osr-t",children:e.label}),(0,r.jsx)("span",{className:"osr-pick",children:_[e.key]||"—"}),(0,r.jsx)("span",{className:"osr-line"})]}),(0,r.jsx)("div",{className:"stack-cards",children:e.opts.map(s=>{let a=(0,y.YL)(_,e.key,s),t=(0,k.Hn)(_[e.key],s);return(0,r.jsxs)("button",{className:"stack-card"+(t?" on":"")+(a?" disabled":""),disabled:!!a&&!t,title:a||(0,v.f)(e.key,s),onClick:()=>!a&&eX(e.key,s),children:[(0,r.jsx)(L,{name:s}),(0,r.jsx)("span",{className:"sc-name",children:s}),t&&(0,r.jsx)("span",{className:"sc-check",children:(0,r.jsx)(N.I,{name:"check",size:12})})]},s)})})]},e.key)),(0,r.jsxs)("div",{className:"onb-foot",children:[(0,r.jsxs)("button",{className:"btn-ghost",onClick:()=>l(2),children:[(0,r.jsx)(N.I,{name:"chevronLeft",size:13})," ",s("common.back")]}),(0,r.jsxs)("button",{className:"btn-accent",onClick:()=>l(4),children:[s("common.next")," ",(0,r.jsx)(N.I,{name:"chevronRight",size:13})]})]})]}),4===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"onb-h",children:s("onboarding.brief.h")}),(0,r.jsx)("div",{className:"onb-sub",children:s("onboarding.brief.sub")}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsx)("label",{className:"form-label",children:s("onboarding.brief.sourceLabel")}),(0,r.jsx)("div",{className:"src-cards",children:["new","github","local"].map(e=>(0,r.jsxs)("button",{type:"button",className:"src-card"+(en===e?" on":""),onClick:()=>{el(e),eb("")},children:[(0,r.jsx)(N.I,{name:"new"===e?"add":"github"===e?"git":"files",size:18}),(0,r.jsx)("div",{className:"src-t",children:s(`onboarding.src.${e}.t`)}),(0,r.jsx)("div",{className:"src-d",children:s(`onboarding.src.${e}.d`)})]},e))}),"github"===en&&(0,r.jsxs)("div",{className:"card",style:{marginTop:10,display:"grid",gap:8},children:[(0,r.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,r.jsx)("input",{className:"form-input mono",type:"password",placeholder:s("onboarding.src.tokenPh"),value:ei,onChange:e=>ec(e.target.value)}),(0,r.jsx)("button",{className:"btn-ghost",disabled:em||ei.trim().length<7,onClick:eI,children:em?"…":s("onboarding.src.listRepos")})]}),eh.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"form-hint",children:[eo&&(0,r.jsxs)(r.Fragment,{children:[s("onboarding.src.signedInAs")," ",(0,r.jsx)("b",{children:eo})," \xb7 "]}),s("onboarding.src.pickRepo")]}),(0,r.jsx)(S.m,{value:ex,options:eh.map(e=>({value:e.full,label:e.full,tag:e.private?s("onboarding.src.private"):s("onboarding.src.public")})),onChange:eu})]})]}),"local"===en&&(0,r.jsxs)("div",{className:"card",style:{marginTop:10,display:"grid",gap:8},children:[(0,r.jsxs)("label",{className:"btn-ghost",style:{cursor:eS?"default":"pointer",justifyContent:"center"},children:[(0,r.jsx)(N.I,{name:"grid",size:14})," ",eS?s("onboarding.src.reading"):ev.length>0?s("onboarding.src.chooseAnother"):s("onboarding.src.chooseFolder"),(0,r.jsx)("input",{type:"file",hidden:!0,webkitdirectory:"",directory:"",multiple:!0,disabled:eS,onChange:e=>eH(e.target.files)})]}),eS&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{height:6,borderRadius:999,background:"var(--bg-active)",overflow:"hidden"},children:(0,r.jsx)("div",{style:{height:"100%",width:eC+"%",background:"var(--accent)",transition:"width .2s"}})}),(0,r.jsx)("div",{className:"form-hint",children:s("onboarding.src.readingPct",{pct:eC})})]}),!eS&&ev.length>0&&(0,r.jsxs)("div",{className:"form-hint",style:{color:"var(--sx-string)"},children:[(0,r.jsx)(N.I,{name:"check",size:12})," ",s(1===ev.length?"onboarding.src.imported.one":"onboarding.src.imported.other",{n:ev.length,name:ey}),eM&&(0,r.jsxs)(r.Fragment,{children:[" \xb7 ",(0,r.jsx)("b",{style:{color:"var(--text)"},children:eM})]})]})]}),ej&&(0,r.jsx)("div",{style:{fontSize:11.5,color:"#e8688f",marginTop:6},children:ej}),(0,r.jsxs)("div",{className:"form-hint",children:[(0,r.jsx)(N.I,{name:"bot",size:12})," ",s("onboarding.src.analyseHint")]})]}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.brief.systemPrompt")," ",(0,r.jsx)("span",{className:"req",children:"*"})]}),(0,r.jsx)("textarea",{className:"persona-ta mono",required:!0,value:O,onChange:e=>Q(e.target.value)})]}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.brief.projectBrief")," ",(0,r.jsxs)("span",{style:{color:"var(--text-faint)",fontWeight:400},children:["\xb7 ",s("onboarding.brief.optional")]})]}),(0,r.jsx)("textarea",{className:"persona-ta mono",style:{minHeight:110},placeholder:s("onboarding.brief.briefPh"),value:Y,onChange:e=>{X(e.target.value),!K&&e.target.value&&G("project-brief.md")}})]}),(0,r.jsxs)("div",{className:"persona-field",children:[(0,r.jsxs)("label",{className:"form-label",children:[s("onboarding.brief.attachMock")," ",(0,r.jsxs)("span",{style:{color:"var(--text-faint)",fontWeight:400},children:["\xb7 ",s("onboarding.brief.optional")," \xb7 HTML, CSS, JS, MD"]})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[(0,r.jsxs)("label",{className:"btn-ghost",style:{cursor:"pointer"},children:[(0,r.jsx)(N.I,{name:"doc",size:13})," ",s("onboarding.brief.files"),(0,r.jsx)("input",{type:"file",multiple:!0,hidden:!0,onChange:e=>eV(e.target.files)})]}),(0,r.jsxs)("label",{className:"btn-ghost",style:{cursor:"pointer"},children:[(0,r.jsx)(N.I,{name:"grid",size:13})," ",s("onboarding.brief.folder"),(0,r.jsx)("input",{type:"file",hidden:!0,webkitdirectory:"",directory:"",multiple:!0,onChange:e=>eV(e.target.files)})]}),Z.length>0&&(0,r.jsxs)("span",{className:"chip-sm",style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,r.jsx)(N.I,{name:"check",size:12})," ",s(1===Z.length?"onboarding.brief.filesAttached.one":"onboarding.brief.filesAttached.other",{n:Z.length}),(0,r.jsx)("button",{className:"link-btn",style:{marginLeft:4},onClick:()=>ee([]),children:(0,r.jsx)(N.I,{name:"close",size:11})})]})]}),(0,r.jsxs)("div",{className:"form-hint",children:[(0,r.jsx)(N.I,{name:"bot",size:12})," ",s("onboarding.brief.mockHintPre")," ",(0,r.jsx)("span",{className:"mono",children:"mock/"})," ",s("onboarding.brief.mockHintPost")]})]}),eB&&(0,r.jsxs)("div",{style:{marginTop:12},children:[(0,r.jsx)("div",{style:{height:6,borderRadius:999,background:"var(--bg-active)",overflow:"hidden"},children:(0,r.jsx)("div",{style:{height:"100%",width:eL+"%",background:"var(--accent)",transition:"width .3s"}})}),(0,r.jsxs)("div",{className:"form-hint",children:[s("onboarding.src.settingUp")," ",eL,"%"]})]}),eP&&(0,r.jsxs)("div",{className:"form-hint",style:{color:"var(--sx-keyword)",marginTop:10},children:[(0,r.jsx)(N.I,{name:"close",size:12})," ",eP]}),(0,r.jsxs)("div",{className:"onb-foot",children:[(0,r.jsxs)("button",{className:"btn-ghost",disabled:eB,onClick:()=>l(3),children:[(0,r.jsx)(N.I,{name:"chevronLeft",size:13})," ",s("common.back")]}),(0,r.jsxs)("button",{className:"btn-accent",disabled:eB||!O.trim()||!eA,onClick:function(){let s="github"===en?{type:"github",pat:ei,repoFull:ex,branch:eh.find(e=>e.full===ex)?.branch,login:eo||void 0}:"local"===en?{type:"local",rootName:ey,files:ev}:{type:"new"};eR(""),eW(async()=>{try{let a=await c({company:m,mission:f,objective:I,stack:_,provider:eQ,model:$,systemPrompt:O,briefText:Y,briefName:K,mockFiles:Z,source:s,providerCatalogId:T||void 0,providerKey:e$&&e$===T&&e_?e_:void 0});if(a&&!a.ok)return void eR(a.error||"Setup didn't complete — please try again.");eF(100),e.push("/planner"),e.refresh()}catch{eR("Setup didn't complete — please try again. If it keeps failing, reload the page.")}})},children:[(0,r.jsx)(N.I,{name:"bot",size:14})," ",eB?s("onboarding.brief.settingUp"):s("onboarding.brief.handOff")]})]})]})]})})]})}},6816:(e,s,a)=>{"use strict";a.d(s,{J:()=>t});var r=a(5076);function t({size:e=34,rx:s=9}){return(0,r.jsxs)("svg",{width:e,height:e,viewBox:"0 0 100 100",style:{display:"block",flex:`0 0 ${e}px`},"aria-label":"Constella",children:[(0,r.jsx)("rect",{x:"1",y:"1",width:"98",height:"98",rx:s,fill:"var(--cs-bg)",stroke:"var(--cs-border)",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M66.06 27.06 L42.75 22.95 L24.62 38.17 L24.62 61.83 L42.75 77.05 L66.06 72.94",fill:"none",stroke:"var(--cs-line)",strokeWidth:"2.1",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M48 50 L42.75 22.95 M48 50 L24.62 50 M48 50 L42.75 77.05",fill:"none",stroke:"var(--cs-line)",strokeWidth:"1.2",strokeLinecap:"round",opacity:"0.55"}),[[66.06,27.06],[42.75,22.95],[24.62,38.17],[24.62,61.83],[42.75,77.05],[66.06,72.94]].map((e,s)=>(0,r.jsx)("circle",{cx:e[0],cy:e[1],r:"3.1",fill:"var(--cs-node)"},s)),(0,r.jsx)("circle",{cx:"48",cy:"50",r:"8.5",fill:"var(--cs-glow)",opacity:"0.4"}),(0,r.jsx)("circle",{cx:"48",cy:"50",r:"4.3",fill:"var(--cs-core)"})]})}},7814:(e,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var t in r)Object.defineProperty(s,t,{enumerable:!0,get:r[t]});let n=a(3825),l=a(2617),i=a(5986)},8576:(e,s,a)=>{"use strict";a.d(s,{I:()=>n});var r=a(5076);let t={files:(0,r.jsx)("path",{d:"M3 3.5h5l1.5 2H13a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.5a1 1 0 0 1 1-1z"}),search:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"4.2"}),(0,r.jsx)("path",{d:"M10.2 10.2 14 14"})]}),git:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"4",cy:"4",r:"1.8"}),(0,r.jsx)("circle",{cx:"4",cy:"12",r:"1.8"}),(0,r.jsx)("circle",{cx:"12",cy:"9.5",r:"1.8"}),(0,r.jsx)("path",{d:"M4 5.8v4.4M5.8 4H9a2 2 0 0 1 2 2v1.6"})]}),debug:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8.5",r:"3.5"}),(0,r.jsx)("path",{d:"M8 5V3M4.5 8.5H2m12 0h-2.5M4.8 11.8 3.4 13M11.2 11.8l1.4 1.2M5.2 5 3.8 3.6M10.8 5l1.4-1.4"})]}),ext:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2.5",y:"2.5",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("rect",{x:"9",y:"2.5",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("rect",{x:"2.5",y:"9",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("path",{d:"M9 11.2h4.5M11.2 9v4.5"})]}),settings:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"2.2"}),(0,r.jsx)("path",{d:"M8 1.5v2M8 12.5v2M14.5 8h-2M3.5 8h-2M12.6 3.4l-1.4 1.4M4.8 11.2l-1.4 1.4M12.6 12.6l-1.4-1.4M4.8 4.8 3.4 3.4"})]}),account:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"5.5",r:"2.8"}),(0,r.jsx)("path",{d:"M2.8 14c0-2.8 2.3-4.5 5.2-4.5s5.2 1.7 5.2 4.5"})]}),chevronRight:(0,r.jsx)("path",{d:"M6 4l4 4-4 4"}),chevronDown:(0,r.jsx)("path",{d:"M4 6l4 4 4-4"}),chevronUp:(0,r.jsx)("path",{d:"M4 10l4-4 4 4"}),close:(0,r.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"}),add:(0,r.jsx)("path",{d:"M8 3v10M3 8h10"}),newFile:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M9 2H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6L9 2z"}),(0,r.jsx)("path",{d:"M9 2v4h4M8 8v4M6 10h4"})]}),newFolder:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M2 5.5a1 1 0 0 1 1-1h3l1.2 1.5H13a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5.5z"}),(0,r.jsx)("path",{d:"M8 8v3M6.5 9.5h3"})]}),refresh:(0,r.jsx)("path",{d:"M13 8a5 5 0 1 1-1.5-3.5M13 2.5V5h-2.5"}),collapse:(0,r.jsx)("path",{d:"M3 5h6M3 8h6M3 11h6M12 6l-1.5 1.5L12 9"}),more:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"3.5",cy:"8",r:"1"}),(0,r.jsx)("circle",{cx:"8",cy:"8",r:"1"}),(0,r.jsx)("circle",{cx:"12.5",cy:"8",r:"1"})]}),split:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1"}),(0,r.jsx)("path",{d:"M8 3v10"})]}),terminal:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M4.5 6.5 6.5 8l-2 1.5M8 10h3.5"})]}),panelBottom:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M2 10h12"})]}),sidebarIcon:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M6 3v10"})]}),bell:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 2a3.5 3.5 0 0 0-3.5 3.5c0 3-1.3 4-1.3 4h9.6s-1.3-1-1.3-4A3.5 3.5 0 0 0 8 2z"}),(0,r.jsx)("path",{d:"M6.7 12a1.4 1.4 0 0 0 2.6 0"})]}),check:(0,r.jsx)("path",{d:"M3 8.5 6.5 12 13 4"}),error:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,r.jsx)("path",{d:"M8 5v4M8 11h.01"})]}),warn:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 2.5 14.5 13.5h-13z"}),(0,r.jsx)("path",{d:"M8 7v3M8 12h.01"})]}),branch:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"4",cy:"4",r:"1.6"}),(0,r.jsx)("circle",{cx:"4",cy:"12",r:"1.6"}),(0,r.jsx)("circle",{cx:"12",cy:"9",r:"1.6"}),(0,r.jsx)("path",{d:"M4 5.6v4.8M5.6 4H9a1.8 1.8 0 0 1 1.8 1.8v1.6"})]}),sync:(0,r.jsx)("path",{d:"M3 6a5 5 0 0 1 8.5-2M13 10a5 5 0 0 1-8.5 2M11.5 2.5V4h-1.5M4.5 13.5V12h1.5"}),command:(0,r.jsx)("path",{d:"M5.5 3.5A1.5 1.5 0 1 1 4 5h8a1.5 1.5 0 1 1-1.5 1.5v3A1.5 1.5 0 1 1 12 11H4a1.5 1.5 0 1 1 1.5-1.5v-3z"}),goto:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M3 8h8M7.5 4.5 11 8l-3.5 3.5"}),(0,r.jsx)("path",{d:"M13 3v10"})]}),sun:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"3"}),(0,r.jsx)("path",{d:"M8 1.5v1.5M8 13v1.5M14.5 8H13M3 8H1.5M12.6 3.4l-1 1M4.4 11.6l-1 1M12.6 12.6l-1-1M4.4 4.4l-1-1"})]}),moon:(0,r.jsx)("path",{d:"M13 9.2A5.5 5.5 0 0 1 6.8 3 5.5 5.5 0 1 0 13 9.2z"}),play:(0,r.jsx)("path",{d:"M5 3.5v9l7-4.5z"}),trash:(0,r.jsx)("path",{d:"M3.5 4.5h9M6 4.5V3h4v1.5M5 4.5l.5 8.5h5l.5-8.5"}),dot:(0,r.jsx)("circle",{cx:"8",cy:"8",r:"3"}),fileTs:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M9 2H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6L9 2z"}),(0,r.jsx)("path",{d:"M9 2v4h4"})]}),arrowUp:(0,r.jsx)("path",{d:"M8 13V3M4 7l4-4 4 4"}),arrowDown:(0,r.jsx)("path",{d:"M8 3v10M4 9l4 4 4-4"}),agents:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"5.5",cy:"6",r:"2.2"}),(0,r.jsx)("circle",{cx:"11",cy:"6.5",r:"1.8"}),(0,r.jsx)("path",{d:"M2 13c0-2 1.6-3.2 3.5-3.2S9 11 9 13M9.5 12.5c.2-1.6 1.3-2.5 2.8-2.5 1.3 0 2.4.8 2.4 2.3"})]}),bot:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"7",rx:"2"}),(0,r.jsx)("path",{d:"M8 3v2.5M5.8 9h.01M10.2 9h.01M6 12h4"}),(0,r.jsx)("circle",{cx:"8",cy:"3",r:"1"})]}),send:(0,r.jsx)("path",{d:"M14 2 7 9M14 2l-4.5 12-2.5-5L2 6.5z"}),at:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"3"}),(0,r.jsx)("path",{d:"M11 8v1.2a1.8 1.8 0 0 0 3.5.6A6.5 6.5 0 1 0 11 13.2"})]}),chevronLeft:(0,r.jsx)("path",{d:"M10 4 6 8l4 4"}),dockRight:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M10 3v10"}),(0,r.jsx)("rect",{x:"10.5",y:"3.5",width:"3",height:"9",rx:"1",fill:"currentColor",stroke:"none",opacity:"0.25"})]}),dockLeft:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"12",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M6 3v10"}),(0,r.jsx)("rect",{x:"2.5",y:"3.5",width:"3",height:"9",rx:"1",fill:"currentColor",stroke:"none",opacity:"0.25"})]}),chat:(0,r.jsx)("path",{d:"M3 4.5h10a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7l-3 2.5V11.5H3a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1z"}),grid:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2.5",y:"2.5",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("rect",{x:"9",y:"2.5",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("rect",{x:"2.5",y:"9",width:"4.5",height:"4.5",rx:"1"}),(0,r.jsx)("rect",{x:"9",y:"9",width:"4.5",height:"4.5",rx:"1"})]}),inbox:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M2 9h3l1 2h4l1-2h3"}),(0,r.jsx)("path",{d:"M2.5 9 4 3.5h8L13.5 9v3.5a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1z"})]}),calendar:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2.5",y:"3.5",width:"11",height:"10",rx:"1.5"}),(0,r.jsx)("path",{d:"M2.5 6.5h11M5.5 2v3M10.5 2v3"})]}),repeat:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M3 6a4 4 0 0 1 7-2.5L12 5M13 10a4 4 0 0 1-7 2.5L4 11"}),(0,r.jsx)("path",{d:"M12 2v3H9M4 14v-3h3"})]}),doc:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M9 2H4.5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V5.5L9 2z"}),(0,r.jsx)("path",{d:"M9 2v3.5h3.5M6 8.5h4M6 11h4"})]}),skill:(0,r.jsx)("path",{d:"M8 2.5l1.4 3.1 3.4.4-2.5 2.3.7 3.3L8 9.9 5 11.6l.7-3.3L3.2 6l3.4-.4z"}),pulse:(0,r.jsx)("path",{d:"M2 8h3l1.5-4 2.5 8 1.5-4H14"}),coins:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ellipse",{cx:"6",cy:"4.5",rx:"3.5",ry:"1.8"}),(0,r.jsx)("path",{d:"M2.5 4.5v3c0 1 1.6 1.8 3.5 1.8s3.5-.8 3.5-1.8v-3"}),(0,r.jsx)("ellipse",{cx:"10",cy:"9.5",rx:"3.5",ry:"1.8"}),(0,r.jsx)("path",{d:"M6.5 9.5c.4.9 1.8 1.5 3.5 1.5s3.5-.8 3.5-1.8v-1.2"})]}),cpu:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"4",y:"4",width:"8",height:"8",rx:"1.5"}),(0,r.jsx)("rect",{x:"6.3",y:"6.3",width:"3.4",height:"3.4",rx:".5"}),(0,r.jsx)("path",{d:"M6 2v2M10 2v2M6 12v2M10 12v2M2 6h2M2 10h2M12 6h2M12 10h2"})]}),shield:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 2 3 4v4c0 3 2.2 5 5 6 2.8-1 5-3 5-6V4z"}),(0,r.jsx)("path",{d:"M5.8 8 7.3 9.5 10.4 6.3"})]}),target:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"5.5"}),(0,r.jsx)("circle",{cx:"8",cy:"8",r:"2.4"})]}),selectParent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"2",y:"2.5",width:"12",height:"11",rx:"1.5"}),(0,r.jsx)("path",{d:"M8 11V6.5M5.5 9 8 6.5l2.5 2.5"})]})};function n({name:e,size:s=16,className:a="",strokeWidth:l=1.4,style:i}){let c=t[e];return c?(0,r.jsx)("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:l,strokeLinecap:"round",strokeLinejoin:"round",className:a,style:i,children:"play"===e||"dot"===e?(0,r.jsx)("g",{fill:"currentColor",stroke:"none",children:c}):c}):null}},9177:(e,s,a)=>{Promise.resolve().then(a.bind(a,6396))},9860:(e,s,a)=>{"use strict";var r=a(2004);a.o(r,"usePathname")&&a.d(s,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(s,{useRouter:function(){return r.useRouter}})}},e=>{e.O(0,[3219,4263,9562,6646,6834,7358],()=>e(e.s=9177)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e,t,r,o,n,a,i,u,l={},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},o=!0;try{l[e].call(r.exports,r,r.exports,c),o=!1}finally{o&&delete s[e]}return r.exports}c.m=l,e=[],c.O=(t,r,o,n)=>{if(r){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[r,o,n];return}for(var i=1/0,a=0;a<e.length;a++){for(var[r,o,n]=e[a],u=!0,l=0;l<r.length;l++)(!1&n||i>=n)&&Object.keys(c.O).every(e=>c.O[e](r[l]))?r.splice(l--,1):(u=!1,n<i&&(i=n));if(u){e.splice(a--,1);var s=o();void 0!==s&&(t=s)}}return t},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);c.r(n);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,c.d(n,a),n},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,r)=>(c.f[r](e,t),t),[])),c.u=e=>"static/chunks/"+e+"."+({5920:"6451a68b63918988",7509:"721cd47a931c5518"})[e]+".js",c.miniCssF=e=>{},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},c.l=(e,t,r,n)=>{if(o[e])return void o[e].push(t);if(void 0!==r)for(var a,i,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var s=u[l];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")=="_N_E:"+r){a=s;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack","_N_E:"+r),a.src=c.tu(e)),o[e]=[t];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(f);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(r)),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),i&&document.head.appendChild(a)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.tt=()=>(void 0===n&&(n={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(n=trustedTypes.createPolicy("nextjs#bundler",n))),n),c.tu=e=>c.tt().createScriptURL(e),c.p="/_next/",a={8068:0,6826:0},c.f.j=(e,t)=>{var r=c.o(a,e)?a[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(6826|8068)$/.test(e))a[e]=0;else{var o=new Promise((t,o)=>r=a[e]=[t,o]);t.push(r[2]=o);var n=c.p+c.u(e),i=Error();c.l(n,t=>{if(c.o(a,e)&&(0!==(r=a[e])&&(a[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+n+")",i.name="ChunkLoadError",i.type=o,i.request=n,r[1](i)}},"chunk-"+e,e)}},c.O.j=e=>0===a[e],i=(e,t)=>{var r,o,[n,i,u]=t,l=0;if(n.some(e=>0!==a[e])){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(u)var s=u(c)}for(e&&e(t);l<n.length;l++)o=n[l],c.o(a,o)&&a[o]&&a[o][0](),a[o]=0;return c.O(s)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(i.bind(null,0)),u.push=i.bind(null,u.push.bind(u))})();