@agent-spaces/server 0.3.62 → 0.3.64

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 (367) hide show
  1. package/dist/adapters/agent-runtime-types.js +12 -0
  2. package/dist/adapters/claude-code-runtime/index.js +3 -0
  3. package/dist/adapters/claude-code-runtime/message-format.js +1 -1
  4. package/dist/adapters/codex-runtime.js +2 -2
  5. package/dist/adapters/git.js +161 -57
  6. package/dist/adapters/langchain-runtime.js +2 -2
  7. package/dist/adapters/open-agent-sdk-runtime.js +2 -2
  8. package/dist/agents/agent-designer.js +66 -12
  9. package/dist/agents/commit-agent.js +1 -0
  10. package/dist/agents/issue-agent-progress.js +4 -2
  11. package/dist/agents/issue-agent-runner.js +5 -5
  12. package/dist/agents/issue-task-controller.js +96 -15
  13. package/dist/app.js +123 -5
  14. package/dist/package.json +1 -1
  15. package/dist/routes/agent-commands.js +72 -0
  16. package/dist/routes/agent-sse.js +10 -2
  17. package/dist/routes/agent.js +15 -1
  18. package/dist/routes/database.js +345 -0
  19. package/dist/routes/git.js +52 -1
  20. package/dist/routes/hooks.js +88 -0
  21. package/dist/routes/issue.js +59 -1
  22. package/dist/routes/kanban.js +39 -0
  23. package/dist/routes/output-style.js +48 -0
  24. package/dist/routes/prompt-template.js +2 -2
  25. package/dist/routes/skill.js +86 -15
  26. package/dist/routes/task.js +13 -1
  27. package/dist/services/agent-commands.js +168 -0
  28. package/dist/services/builtin-tools/command-tools.js +117 -0
  29. package/dist/services/builtin-tools/database-tools.js +578 -0
  30. package/dist/services/builtin-tools/index.js +5 -0
  31. package/dist/services/builtin-tools/input-helpers.js +26 -0
  32. package/dist/services/builtin-tools/issue-tools.js +209 -0
  33. package/dist/services/builtin-tools/kanban-tools.js +277 -0
  34. package/dist/services/database-vector.js +244 -0
  35. package/dist/services/hook-engine.js +118 -0
  36. package/dist/services/issue.js +6 -0
  37. package/dist/services/kanban.js +50 -0
  38. package/dist/services/notification-hub/bot-agent.js +1 -0
  39. package/dist/services/output-style.js +134 -0
  40. package/dist/services/prompt-template.js +2 -2
  41. package/dist/services/skill.js +148 -35
  42. package/dist/storage/database-store.js +365 -0
  43. package/dist/storage/hook-store.js +55 -0
  44. package/dist/storage/kanban-store.js +142 -0
  45. package/dist/web/404.html +1 -1
  46. package/dist/web/__next.__PAGE__.txt +4 -4
  47. package/dist/web/__next._full.txt +26 -30
  48. package/dist/web/__next._head.txt +4 -4
  49. package/dist/web/__next._index.txt +14 -14
  50. package/dist/web/__next._tree.txt +3 -8
  51. package/dist/web/_next/static/chunks/0-9194nbxy_6d.js +1 -0
  52. package/dist/web/_next/static/chunks/0-f~0xmwl__u5.js +1 -0
  53. package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +1 -0
  54. package/dist/web/_next/static/chunks/002_j970b9gdx.js +1 -0
  55. package/dist/web/_next/static/chunks/01iqv28_snwus.js +1 -0
  56. package/dist/web/_next/static/chunks/01~quun6sefgl.js +1 -0
  57. package/dist/web/_next/static/chunks/02mf61htij8g0.js +31 -0
  58. package/dist/web/_next/static/chunks/03scq1-0ykve3.js +1 -0
  59. package/dist/web/_next/static/chunks/04a4vsq2wknm4.js +1 -0
  60. package/dist/web/_next/static/chunks/04dg4l4hv11q2.js +3 -0
  61. package/dist/web/_next/static/chunks/04fxddw-y20~-.js +7 -0
  62. package/dist/web/_next/static/chunks/04w7~5ooz_pwm.js +1 -0
  63. package/dist/web/_next/static/chunks/05oc21sj24wtq.js +1 -0
  64. package/dist/web/_next/static/chunks/{0zd1o3u04~qvo.js → 05psi2gtx~bev.js} +7 -7
  65. package/dist/web/_next/static/chunks/{0-oog4zg4_m~m.css → 062f9zqctzg.b.css} +0 -3
  66. package/dist/web/_next/static/chunks/{12odetnu-lyrr.js → 06whz1~s_7pva.js} +12 -12
  67. package/dist/web/_next/static/chunks/08ckpwmmwlors.js +3 -0
  68. package/dist/web/_next/static/chunks/08k~meqbd8d6v.js +1 -0
  69. package/dist/web/_next/static/chunks/099h96wjsdb25.js +2 -0
  70. package/dist/web/_next/static/chunks/09h23logvq65m.js +1 -0
  71. package/dist/web/_next/static/chunks/{0njy89g5coeyi.js → 0_8dm7bxp18xo.js} +6 -6
  72. package/dist/web/_next/static/chunks/0_mvduwjsm35w.js +1 -0
  73. package/dist/web/_next/static/chunks/0_vi1a~g4wx46.js +3 -0
  74. package/dist/web/_next/static/chunks/0a5y-vhf4i5id.js +3 -0
  75. package/dist/web/_next/static/chunks/0ake2f3x2uan4.js +24 -0
  76. package/dist/web/_next/static/chunks/{0tvd~rxgf0oh_.js → 0bbmx45w_h5np.js} +1 -1
  77. package/dist/web/_next/static/chunks/0ck8dw_9-1cdx.js +1 -0
  78. package/dist/web/_next/static/chunks/{07a0rktf_nr5h.js → 0ctg5qmw7uu.1.js} +2 -2
  79. package/dist/web/_next/static/chunks/0ewceguykiut5.js +1 -0
  80. package/dist/web/_next/static/chunks/0f7cb9li~3jra.js +67 -0
  81. package/dist/web/_next/static/chunks/0fttswpzu69qx.js +1 -0
  82. package/dist/web/_next/static/chunks/0ghs9on7wodrm.js +1 -0
  83. package/dist/web/_next/static/chunks/0ghx3j_.-gdyd.js +1 -0
  84. package/dist/web/_next/static/chunks/{0202ia13sijwb.js → 0h18ej5yf974e.js} +1 -1
  85. package/dist/web/_next/static/chunks/0h9cu-k6z5o08.js +1 -0
  86. package/dist/web/_next/static/chunks/0i39jifmxla7q.js +1 -0
  87. package/dist/web/_next/static/chunks/0iuf30t0rjsjv.js +19 -0
  88. package/dist/web/_next/static/chunks/0jb4~3qqkw2ps.js +1 -0
  89. package/dist/web/_next/static/chunks/0k4zdm72k_bfy.js +1 -0
  90. package/dist/web/_next/static/chunks/{08o-zmr-40r5g.js → 0m11vvph7q94-.js} +1 -1
  91. package/dist/web/_next/static/chunks/0n6_4so_afuwk.js +71 -0
  92. package/dist/web/_next/static/chunks/0nb8.iteznuvx.js +1 -0
  93. package/dist/web/_next/static/chunks/0np.d~hc1-pmh.js +4 -0
  94. package/dist/web/_next/static/chunks/{0qpq0~_58fe9a.js → 0oaq67r7ix.vg.js} +1 -1
  95. package/dist/web/_next/static/chunks/{0d_dp_4ofz0l3.css → 0ojcao3hdm36s.css} +0 -1
  96. package/dist/web/_next/static/chunks/0os58q93stt7j.js +3 -0
  97. package/dist/web/_next/static/chunks/{0gig.k.rq8d0x.js → 0ppr271hz0xoq.js} +1 -1
  98. package/dist/web/_next/static/chunks/0s9lmk8iauou3.js +1 -0
  99. package/dist/web/_next/static/chunks/0sp_zbx~w0am7.js +1 -0
  100. package/dist/web/_next/static/chunks/0tel~zsv4z8l_.js +1 -0
  101. package/dist/web/_next/static/chunks/0twamv4wr_dbv.js +1 -0
  102. package/dist/web/_next/static/chunks/0uhol5wafdbl~.js +1 -0
  103. package/dist/web/_next/static/chunks/0v3a_x4vt42kx.js +5 -0
  104. package/dist/web/_next/static/chunks/{002-dxhags4dj.js → 0v6hte2z-32ca.js} +2 -2
  105. package/dist/web/_next/static/chunks/0v7q4mys.mnm..css +1 -0
  106. package/dist/web/_next/static/chunks/0vbqaynjq8ga..js +3 -0
  107. package/dist/web/_next/static/chunks/0xbaakj0dfc0..js +1 -0
  108. package/dist/web/_next/static/chunks/{0..g0jl-8qup7.js → 0xoo17yef_b8g.js} +1 -1
  109. package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +1 -0
  110. package/dist/web/_next/static/chunks/0za1r07-6az6w.js +1 -0
  111. package/dist/web/_next/static/chunks/0z~vqzbm_q371.js +1 -0
  112. package/dist/web/_next/static/chunks/0~3xm80~j9ddg.js +1 -0
  113. package/dist/web/_next/static/chunks/0~u.5r3-t7179.js +1 -0
  114. package/dist/web/_next/static/chunks/10l-9myrdo3x9.js +1 -0
  115. package/dist/web/_next/static/chunks/11-czmcci_55y.js +1 -0
  116. package/dist/web/_next/static/chunks/11k-.49r~1mfm.js +1 -0
  117. package/dist/web/_next/static/chunks/{0k.8qdk7oi_os.js → 128ugqd34tr_-.js} +1 -1
  118. package/dist/web/_next/static/chunks/12jm4gwmvq-0q.js +90 -0
  119. package/dist/web/_next/static/chunks/{0rke_patcovgr.js → 1442stwa0gbxe.js} +1 -1
  120. package/dist/web/_next/static/chunks/{0jokpgh485~28.js → 14hqmid8q4apf.js} +11 -11
  121. package/dist/web/_next/static/chunks/14s37n6h0_q3x.js +16 -0
  122. package/dist/web/_next/static/chunks/161ik5kfyuwtd.js +1 -0
  123. package/dist/web/_next/static/chunks/16sg-lflc8csx.js +1 -0
  124. package/dist/web/_next/static/chunks/17k~zbv0_4rep.js +1 -0
  125. package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
  126. package/dist/web/_next/static/chunks/{turbopack-0lrdxynxb9-1t.js → turbopack-0ndm2zc_pdptk.js} +1 -1
  127. package/dist/web/_not-found/__next._full.txt +30 -31
  128. package/dist/web/_not-found/__next._head.txt +4 -4
  129. package/dist/web/_not-found/__next._index.txt +14 -14
  130. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  131. package/dist/web/_not-found/__next._not-found.txt +3 -3
  132. package/dist/web/_not-found/__next._tree.txt +3 -3
  133. package/dist/web/_not-found.html +1 -1
  134. package/dist/web/_not-found.txt +30 -31
  135. package/dist/web/index.html +1 -1
  136. package/dist/web/index.txt +26 -30
  137. package/dist/web/login/__next._full.txt +32 -36
  138. package/dist/web/login/__next._head.txt +4 -4
  139. package/dist/web/login/__next._index.txt +14 -14
  140. package/dist/web/login/__next._tree.txt +3 -8
  141. package/dist/web/login/__next.login.__PAGE__.txt +4 -4
  142. package/dist/web/login/__next.login.txt +3 -3
  143. package/dist/web/login.html +1 -1
  144. package/dist/web/login.txt +32 -36
  145. package/dist/web/settings/__next._full.txt +29 -34
  146. package/dist/web/settings/__next._head.txt +4 -4
  147. package/dist/web/settings/__next._index.txt +14 -14
  148. package/dist/web/settings/__next._tree.txt +3 -8
  149. package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
  150. package/dist/web/settings/__next.settings.txt +5 -5
  151. package/dist/web/settings/agents/__next._full.txt +27 -32
  152. package/dist/web/settings/agents/__next._head.txt +4 -4
  153. package/dist/web/settings/agents/__next._index.txt +14 -14
  154. package/dist/web/settings/agents/__next._tree.txt +3 -8
  155. package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
  156. package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
  157. package/dist/web/settings/agents/__next.settings.txt +5 -5
  158. package/dist/web/settings/agents.html +1 -1
  159. package/dist/web/settings/agents.txt +27 -32
  160. package/dist/web/settings/mcps/__next._full.txt +27 -32
  161. package/dist/web/settings/mcps/__next._head.txt +4 -4
  162. package/dist/web/settings/mcps/__next._index.txt +14 -14
  163. package/dist/web/settings/mcps/__next._tree.txt +3 -8
  164. package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
  165. package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
  166. package/dist/web/settings/mcps/__next.settings.txt +5 -5
  167. package/dist/web/settings/mcps.html +1 -1
  168. package/dist/web/settings/mcps.txt +27 -32
  169. package/dist/web/settings/models/__next._full.txt +27 -32
  170. package/dist/web/settings/models/__next._head.txt +4 -4
  171. package/dist/web/settings/models/__next._index.txt +14 -14
  172. package/dist/web/settings/models/__next._tree.txt +3 -8
  173. package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
  174. package/dist/web/settings/models/__next.settings.models.txt +3 -3
  175. package/dist/web/settings/models/__next.settings.txt +5 -5
  176. package/dist/web/settings/models.html +1 -1
  177. package/dist/web/settings/models.txt +27 -32
  178. package/dist/web/settings/output-styles/__next._full.txt +38 -0
  179. package/dist/web/settings/output-styles/__next._head.txt +6 -0
  180. package/dist/web/settings/output-styles/__next._index.txt +15 -0
  181. package/dist/web/settings/output-styles/__next._tree.txt +3 -0
  182. package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +9 -0
  183. package/dist/web/settings/output-styles/__next.settings.output-styles.txt +5 -0
  184. package/dist/web/settings/output-styles/__next.settings.txt +7 -0
  185. package/dist/web/settings/output-styles.html +1 -0
  186. package/dist/web/settings/output-styles.txt +38 -0
  187. package/dist/web/settings/prompts/__next._full.txt +27 -32
  188. package/dist/web/settings/prompts/__next._head.txt +4 -4
  189. package/dist/web/settings/prompts/__next._index.txt +14 -14
  190. package/dist/web/settings/prompts/__next._tree.txt +3 -8
  191. package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
  192. package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
  193. package/dist/web/settings/prompts/__next.settings.txt +5 -5
  194. package/dist/web/settings/prompts.html +1 -1
  195. package/dist/web/settings/prompts.txt +27 -32
  196. package/dist/web/settings/providers/__next._full.txt +27 -32
  197. package/dist/web/settings/providers/__next._head.txt +4 -4
  198. package/dist/web/settings/providers/__next._index.txt +14 -14
  199. package/dist/web/settings/providers/__next._tree.txt +3 -8
  200. package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
  201. package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
  202. package/dist/web/settings/providers/__next.settings.txt +5 -5
  203. package/dist/web/settings/providers.html +1 -1
  204. package/dist/web/settings/providers.txt +27 -32
  205. package/dist/web/settings/skills/__next._full.txt +27 -32
  206. package/dist/web/settings/skills/__next._head.txt +4 -4
  207. package/dist/web/settings/skills/__next._index.txt +14 -14
  208. package/dist/web/settings/skills/__next._tree.txt +3 -8
  209. package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
  210. package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
  211. package/dist/web/settings/skills/__next.settings.txt +5 -5
  212. package/dist/web/settings/skills.html +1 -1
  213. package/dist/web/settings/skills.txt +27 -32
  214. package/dist/web/settings/tools/__next._full.txt +38 -0
  215. package/dist/web/settings/tools/__next._head.txt +6 -0
  216. package/dist/web/settings/tools/__next._index.txt +15 -0
  217. package/dist/web/settings/tools/__next._tree.txt +3 -0
  218. package/dist/web/settings/tools/__next.settings.tools.__PAGE__.txt +9 -0
  219. package/dist/web/settings/tools/__next.settings.tools.txt +5 -0
  220. package/dist/web/settings/tools/__next.settings.txt +7 -0
  221. package/dist/web/settings/tools.html +1 -0
  222. package/dist/web/settings/tools.txt +38 -0
  223. package/dist/web/settings.html +1 -1
  224. package/dist/web/settings.txt +29 -34
  225. package/dist/web/workflows/__next._full.txt +34 -37
  226. package/dist/web/workflows/__next._head.txt +4 -4
  227. package/dist/web/workflows/__next._index.txt +14 -14
  228. package/dist/web/workflows/__next._tree.txt +3 -8
  229. package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
  230. package/dist/web/workflows/__next.workflows.txt +3 -3
  231. package/dist/web/workflows.html +1 -1
  232. package/dist/web/workflows.txt +34 -37
  233. package/dist/web/workspace/_/__next._full.txt +32 -77
  234. package/dist/web/workspace/_/__next._head.txt +4 -4
  235. package/dist/web/workspace/_/__next._index.txt +14 -14
  236. package/dist/web/workspace/_/__next._tree.txt +4 -23
  237. package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -18
  238. package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
  239. package/dist/web/workspace/_/__next.workspace.txt +3 -3
  240. package/dist/web/workspace/_.html +1 -1
  241. package/dist/web/workspace/_.txt +32 -77
  242. package/dist/web/workspaces/__next._full.txt +32 -38
  243. package/dist/web/workspaces/__next._head.txt +4 -4
  244. package/dist/web/workspaces/__next._index.txt +14 -14
  245. package/dist/web/workspaces/__next._tree.txt +3 -8
  246. package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
  247. package/dist/web/workspaces/__next.workspaces.txt +3 -3
  248. package/dist/web/workspaces.html +1 -1
  249. package/dist/web/workspaces.txt +32 -38
  250. package/dist/ws/agent-prompt.js +45 -8
  251. package/dist/ws/agent-runner.js +10 -6
  252. package/package.json +11 -10
  253. package/public/output-styles/carmack-mode.md +381 -0
  254. package/public/output-styles/codex-rigor-mode.md +114 -0
  255. package/public/output-styles/dhh-mode.md +265 -0
  256. package/public/output-styles/evan-you-mode.md +539 -0
  257. package/public/output-styles/index.json +37 -0
  258. package/public/output-styles/jobs-mode.md +369 -0
  259. package/public/output-styles/linus-mode.md +135 -0
  260. package/public/output-styles/uncle-bob-mode.md +221 -0
  261. package/public/prompt/andrej-karpathy-skills.md +65 -0
  262. package/public/prompt/claude-token-efficient-coding.md +35 -0
  263. package/public/prompt/index.json +12 -0
  264. package/public/skills/index.json +92 -0
  265. package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +243 -0
  266. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +44 -0
  267. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +46 -0
  268. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +124 -0
  269. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +124 -0
  270. package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +438 -0
  271. package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +29 -0
  272. package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +40 -0
  273. package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +58 -0
  274. package/public/skills/superpowers/brainstorming/SKILL.md +164 -0
  275. package/public/skills/superpowers/brainstorming/scripts/frame-template.html +214 -0
  276. package/public/skills/superpowers/brainstorming/scripts/helper.js +88 -0
  277. package/public/skills/superpowers/brainstorming/scripts/server.cjs +354 -0
  278. package/public/skills/superpowers/brainstorming/scripts/start-server.sh +148 -0
  279. package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +56 -0
  280. package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
  281. package/public/skills/superpowers/brainstorming/visual-companion.md +287 -0
  282. package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +182 -0
  283. package/public/skills/superpowers/executing-plans/SKILL.md +70 -0
  284. package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +251 -0
  285. package/public/skills/superpowers/receiving-code-review/SKILL.md +213 -0
  286. package/public/skills/superpowers/requesting-code-review/SKILL.md +103 -0
  287. package/public/skills/superpowers/requesting-code-review/code-reviewer.md +168 -0
  288. package/public/skills/superpowers/subagent-driven-development/SKILL.md +279 -0
  289. package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
  290. package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +113 -0
  291. package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  292. package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
  293. package/public/skills/superpowers/systematic-debugging/SKILL.md +296 -0
  294. package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
  295. package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
  296. package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
  297. package/public/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
  298. package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
  299. package/public/skills/superpowers/systematic-debugging/test-academic.md +14 -0
  300. package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
  301. package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
  302. package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
  303. package/public/skills/superpowers/test-driven-development/SKILL.md +371 -0
  304. package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
  305. package/public/skills/superpowers/using-git-worktrees/SKILL.md +215 -0
  306. package/public/skills/superpowers/using-superpowers/SKILL.md +117 -0
  307. package/public/skills/superpowers/using-superpowers/references/codex-tools.md +59 -0
  308. package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +42 -0
  309. package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +51 -0
  310. package/public/skills/superpowers/verification-before-completion/SKILL.md +139 -0
  311. package/public/skills/superpowers/writing-plans/SKILL.md +152 -0
  312. package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
  313. package/public/skills/superpowers/writing-skills/SKILL.md +655 -0
  314. package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
  315. package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  316. package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
  317. package/public/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
  318. package/public/skills/superpowers/writing-skills/render-graphs.js +168 -0
  319. package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
  320. package/dist/web/_next/static/chunks/0-81wi7xr2nd-.js +0 -270
  321. package/dist/web/_next/static/chunks/00lca9lsasdm7.js +0 -1
  322. package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +0 -1
  323. package/dist/web/_next/static/chunks/02shswpmybici.js +0 -1
  324. package/dist/web/_next/static/chunks/05tx6hzdtkgi9.js +0 -2
  325. package/dist/web/_next/static/chunks/07nbyndvzftr1.js +0 -3
  326. package/dist/web/_next/static/chunks/0bn~onkv~9xza.js +0 -1
  327. package/dist/web/_next/static/chunks/0g-0n6glz_z6w.js +0 -1
  328. package/dist/web/_next/static/chunks/0gyede80jpy3n.js +0 -4
  329. package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +0 -1
  330. package/dist/web/_next/static/chunks/0i51q.5s_-.vh.css +0 -1
  331. package/dist/web/_next/static/chunks/0qf163pbrwy4z.js +0 -1
  332. package/dist/web/_next/static/chunks/0rnt-f3pjxb-d.js +0 -5
  333. package/dist/web/_next/static/chunks/0tgbcgsca9mrg.js +0 -1
  334. package/dist/web/_next/static/chunks/0tyhv6.y7~yxd.js +0 -1
  335. package/dist/web/_next/static/chunks/0u7_qd9hzqwac.js +0 -1
  336. package/dist/web/_next/static/chunks/0vuvql8rloda5.js +0 -1
  337. package/dist/web/_next/static/chunks/0wv0h27jafag4.js +0 -1
  338. package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +0 -1
  339. package/dist/web/_next/static/chunks/0xmmk3vebw8xs.js +0 -1
  340. package/dist/web/_next/static/chunks/0xwqf.llmm_u2.js +0 -31
  341. package/dist/web/_next/static/chunks/0yo22_w53mo~5.js +0 -1
  342. package/dist/web/_next/static/chunks/12c0jp0qvlr1t.js +0 -1
  343. package/dist/web/_next/static/chunks/12pg1nn3v~~5k.js +0 -1
  344. package/dist/web/_next/static/chunks/16cyr8ilpx1nn.js +0 -1
  345. package/dist/web/_next/static/media/0a7740363b4d4863-s.1110aazvokzp..woff2 +0 -0
  346. package/dist/web/_next/static/media/0da9c7f357bd9d4d-s.0ek5sshv8wk3m.woff2 +0 -0
  347. package/dist/web/_next/static/media/1b99372b3eaef0c8-s.p.0gx2haw2tmll8.woff2 +0 -0
  348. package/dist/web/_next/static/media/41e95f694c5c4549-s.0r1jrq7neqdsq.woff2 +0 -0
  349. package/dist/web/_next/static/media/5c285b27cdda1fe8-s.p.0yo6-5yoeeudq.woff2 +0 -0
  350. package/dist/web/_next/static/media/5f9d24ebef5d5292-s.0esuu2f5si~v8.woff2 +0 -0
  351. package/dist/web/_next/static/media/6c55a692938ebbbc-s.0g6rbszwfgn9y.woff2 +0 -0
  352. package/dist/web/_next/static/media/8e6fa89aa22d24ec-s.p.0uvzar8hswo3p.woff2 +0 -0
  353. package/dist/web/_next/static/media/a218039a3287bcfd-s.p.17-1enzs_j91b.woff2 +0 -0
  354. package/dist/web/_next/static/media/b2ea385cb5ae8625-s.0kjod.kaq1k69.woff2 +0 -0
  355. package/dist/web/_next/static/media/bdc7e24a509eb931-s.0apt5mko2.qn3.woff2 +0 -0
  356. package/dist/web/_next/static/media/c3cb240f9c892514-s.163v2i5cux7-c.woff2 +0 -0
  357. package/dist/web/_next/static/media/e2334d715941921e-s.p.12skym0rqknxy.woff2 +0 -0
  358. package/public/avatars/1777813826407-bea0ja-minimax.svg +0 -1
  359. package/public/avatars/1777813967088-3xlvd0-minimax.svg +0 -1
  360. package/public/avatars/1777814041714-yp0qeq-minimax.svg +0 -1
  361. package/public/avatars/1777904986095-rg26je-icon.png +0 -0
  362. package/public/avatars/1778953228323-5je54x-user.jpg +0 -0
  363. package/public/avatars/1778954057880-g01q6y-user.jpg +0 -0
  364. /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_buildManifest.js +0 -0
  365. /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_clientMiddlewareManifest.js +0 -0
  366. /package/dist/web/_next/static/{GS3b40oeaeLxm7i9-ibaj → e8w3vd9Eov_LDYWj_0zsE}/_ssgManifest.js +0 -0
  367. /package/public/avatars/{1777815865622-08wp9m-user.jpg → user.jpg} +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,425024,e=>{"use strict";var t=e.i(650289),i=e.i(619122),n=e.i(770326),o=e.i(331139),r=e.i(4160),s=e.i(621826),a=e.i(608326),l=e.i(920374),c=e.i(951971);let d=s.Registry.as(r.Extensions.JSONContribution);class p{static _toSet(e){let t=new a.ExtensionIdentifierSet;for(let i=0,n=e.length;i<n;i++)t.add(e[i].description.identifier);return t}static compute(e,t){if(!e||!e.length)return new p(t,[]);if(!t||!t.length)return new p([],e);let i=this._toSet(e),n=this._toSet(t);return new p(t.filter(e=>!i.has(e.description.identifier)),e.filter(e=>!n.has(e.description.identifier)))}constructor(e,t){this.added=e,this.removed=t}}class u{constructor(e,t,i){this.name=e,this.defaultExtensionKind=t,this.canHandleResolver=i,this._handler=null,this._users=null,this._delta=null}setHandler(e){if(null!==this._handler)throw Error("Handler already set!");return this._handler=e,this._handle(),{dispose:()=>{this._handler=null}}}acceptUsers(e){this._delta=p.compute(this._users,e),this._users=e,this._handle()}_handle(){if(null!==this._handler&&null!==this._users&&null!==this._delta)try{this._handler(this._users,this._delta)}catch(e){(0,i.onUnexpectedError)(e)}}}let h={type:"string",enum:["ui","workspace"],enumDescriptions:[(0,t.localize)(14009,"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),(0,t.localize)(14010,"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")]},g="vscode://schemas/vscode-extensions",f={properties:{engines:{type:"object",description:(0,t.localize)(14011,"Engine compatibility."),properties:{vscode:{type:"string",description:(0,t.localize)(14012,"For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:(0,t.localize)(14013,"The publisher of the VS Code extension."),type:"string"},displayName:{description:(0,t.localize)(14014,"The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:(0,t.localize)(14015,"The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:a.EXTENSION_CATEGORIES},{type:"string",const:"Languages",deprecationMessage:(0,t.localize)(14016,"Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:(0,t.localize)(14017,"Banner used in the VS Code marketplace."),properties:{color:{description:(0,t.localize)(14018,"The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:(0,t.localize)(14019,"The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:(0,t.localize)(14020,"All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:(0,t.localize)(14021,"Sets the extension to be flagged as a Preview in the Marketplace.")},enableProposedApi:{type:"boolean",deprecationMessage:(0,t.localize)(14022,"Use `enabledApiProposals` instead.")},enabledApiProposals:{markdownDescription:(0,t.localize)(14023,"Enable API proposals to try them out. Only valid **during development**. Extensions **cannot be published** with this property. For more details visit: https://code.visualstudio.com/api/advanced-topics/using-proposed-api"),type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals).map(e=>e),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}},api:{markdownDescription:(0,t.localize)(14024,"Describe the API provided by this extension. For more details visit: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions"),type:"string",enum:["none"],enumDescriptions:[(0,t.localize)(14025,"Give up entirely the ability to export any APIs. This allows other extensions that depend on this extension to run in a separate extension host process or in a remote machine.")]},activationEvents:{description:(0,t.localize)(14026,"Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onWebviewPanel",description:(0,t.localize)(14027,"An activation event emmited when a webview is loaded of a certain viewType"),body:"onWebviewPanel:viewType"},{label:"onLanguage",description:(0,t.localize)(14028,"An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:(0,t.localize)(14029,"An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:(0,t.localize)(14030,"An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:(0,t.localize)(14031,'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugDynamicConfigurations",description:(0,t.localize)(14032,'An activation event emitted whenever a list of all debug configurations needs to be created (and all provideDebugConfigurations methods for the "dynamic" scope need to be called).'),body:"onDebugDynamicConfigurations"},{label:"onDebugResolve",description:(0,t.localize)(14033,"An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:(0,t.localize)(14034,"An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:(0,t.localize)(14035,"An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onStartupFinished",description:(0,t.localize)(14036,"An activation event emitted after the start-up finished (after all `*` activated extensions have finished activating)."),body:"onStartupFinished"},{label:"onTaskType",description:(0,t.localize)(14037,"An activation event emitted whenever tasks of a certain type need to be listed or resolved."),body:"onTaskType:${1:taskType}"},{label:"onFileSystem",description:(0,t.localize)(14038,"An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onEditSession",description:(0,t.localize)(14039,"An activation event emitted whenever an edit session is accessed with the given scheme."),body:"onEditSession:${1:scheme}"},{label:"onSearch",description:(0,t.localize)(14040,"An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:(0,t.localize)(14041,"An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:(0,t.localize)(14042,"An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"onOpenExternalUri",body:"onOpenExternalUri",description:(0,t.localize)(14043,"An activation event emitted whenever a external uri (such as an http or https link) is being opened.")},{label:"onCustomEditor",body:"onCustomEditor:${9:viewType}",description:(0,t.localize)(14044,"An activation event emitted whenever the specified custom editor becomes visible.")},{label:"onNotebook",body:"onNotebook:${1:type}",description:(0,t.localize)(14045,"An activation event emitted whenever the specified notebook document is opened.")},{label:"onAuthenticationRequest",body:"onAuthenticationRequest:${11:authenticationProviderId}",description:(0,t.localize)(14046,"An activation event emitted whenever sessions are requested from the specified authentication provider.")},{label:"onRenderer",description:(0,t.localize)(14047,"An activation event emitted whenever a notebook output renderer is used."),body:"onRenderer:${11:rendererId}"},{label:"onTerminalProfile",body:"onTerminalProfile:${1:terminalId}",description:(0,t.localize)(14048,"An activation event emitted when a specific terminal profile is launched.")},{label:"onTerminalQuickFixRequest",body:"onTerminalQuickFixRequest:${1:quickFixId}",description:(0,t.localize)(14049,"An activation event emitted when a command matches the selector associated with this ID")},{label:"onWalkthrough",body:"onWalkthrough:${1:walkthroughID}",description:(0,t.localize)(14050,"An activation event emitted when a specified walkthrough is opened.")},{label:"onIssueReporterOpened",body:"onIssueReporterOpened",description:(0,t.localize)(14051,"An activation event emitted when the issue reporter is opened.")},{label:"onChatParticipant",body:"onChatParticipant:${1:participantId}",description:(0,t.localize)(14052,"An activation event emitted when the specified chat participant is invoked.")},{label:"onLanguageModelChatProvider",body:"onLanguageModelChatProvider:${1:vendor}",description:(0,t.localize)(14053,"An activation event emitted when a chat model provider for the given vendor is requested.")},{label:"onLanguageModelTool",body:"onLanguageModelTool:${1:toolId}",description:(0,t.localize)(14054,"An activation event emitted when the specified language model tool is invoked.")},{label:"onTerminal",body:"onTerminal:{1:shellType}",description:(0,t.localize)(14055,"An activation event emitted when a terminal of the given shell type is opened.")},{label:"onTerminalShellIntegration",body:"onTerminalShellIntegration:${1:shellType}",description:(0,t.localize)(14056,"An activation event emitted when terminal shell integration is activated for the given shell type.")},{label:"onMcpCollection",description:(0,t.localize)(14057,"An activation event emitted whenver a tool from the MCP server is requested."),body:"onMcpCollection:${2:collectionId}"},{label:"*",description:(0,t.localize)(14058,"An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:(0,t.localize)(14059,"Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:(0,t.localize)(14060,"Badge image URL.")},href:{type:"string",description:(0,t.localize)(14061,"Badge link.")},description:{type:"string",description:(0,t.localize)(14062,"Badge description.")}}}},markdown:{type:"string",description:(0,t.localize)(14063,"Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:(0,t.localize)(14064,"Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:(0,t.localize)(14065,"Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:(0,t.localize)(14066,"A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:(0,t.localize)(14067,"Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."),type:"array",items:h,default:["workspace"],defaultSnippets:[{body:["ui"],description:(0,t.localize)(14068,"Define an extension which can run only on the local machine when connected to remote window.")},{body:["workspace"],description:(0,t.localize)(14069,"Define an extension which can run only on the remote machine when connected remote window.")},{body:["ui","workspace"],description:(0,t.localize)(14070,"Define an extension which can run on either side, with a preference towards running on the local machine.")},{body:["workspace","ui"],description:(0,t.localize)(14071,"Define an extension which can run on either side, with a preference towards running on the remote machine.")},{body:[],description:(0,t.localize)(14072,"Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine.")}]},capabilities:{description:(0,t.localize)(14073,"Declare the set of supported capabilities by the extension."),type:"object",properties:{virtualWorkspaces:{description:(0,t.localize)(14074,"Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."),type:["boolean","object"],defaultSnippets:[{label:"limited",body:{supported:"${1:limited}",description:"${2}"}},{label:"false",body:{supported:!1,description:"${2}"}}],default:(!0).valueOf,properties:{supported:{markdownDescription:(0,t.localize)(14075,"Declares the level of support for virtual workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14076,"The extension will be enabled in virtual workspaces with some functionality disabled."),(0,t.localize)(14077,"The extension will be enabled in virtual workspaces with all functionality enabled."),(0,t.localize)(14078,"The extension will not be enabled in virtual workspaces.")]},description:{type:"string",markdownDescription:(0,t.localize)(14079,"A description of how virtual workspaces affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}},untrustedWorkspaces:{description:(0,t.localize)(14080,"Declares how the extension should be handled in untrusted workspaces."),type:"object",required:["supported"],defaultSnippets:[{body:{supported:"${1:limited}",description:"${2}"}}],properties:{supported:{markdownDescription:(0,t.localize)(14081,"Declares the level of support for untrusted workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14082,"The extension will be enabled in untrusted workspaces with some functionality disabled."),(0,t.localize)(14083,"The extension will be enabled in untrusted workspaces with all functionality enabled."),(0,t.localize)(14084,"The extension will not be enabled in untrusted workspaces.")]},restrictedConfigurations:{description:(0,t.localize)(14085,"A list of configuration keys contributed by the extension that should not use workspace values in untrusted workspaces."),type:"array",items:{type:"string"}},description:{type:"string",markdownDescription:(0,t.localize)(14086,"A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}}}},sponsor:{description:(0,t.localize)(14087,"Specify the location from where users can sponsor your extension."),type:"object",defaultSnippets:[{body:{url:"${1:https:}"}}],properties:{url:{description:(0,t.localize)(14088,"URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"),type:"string"}}},scripts:{type:"object",properties:{"vscode:prepublish":{description:(0,t.localize)(14089,"Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:(0,t.localize)(14090,"Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:(0,t.localize)(14091,"The path to a 128x128 pixel icon.")},l10n:{type:"string",description:(0,t.localize)(14092,"The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.")},pricing:{type:"string",markdownDescription:(0,t.localize)(14093,"The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label"),enum:["Free","Trial"],default:"Free"}}},m="ExtensionsRegistry";s.Registry.add(m,new class{constructor(){this._extensionPoints=new Map}registerExtensionPoint(e){if(this._extensionPoints.has(e.extensionPoint))throw Error("Duplicate extension point: "+e.extensionPoint);let t=new u(e.extensionPoint,e.defaultExtensionKind,e.canHandleResolver);return this._extensionPoints.set(e.extensionPoint,t),e.activationEventsGenerator&&l.ImplicitActivationEvents.register(e.extensionPoint,e.activationEventsGenerator),f.properties.contributes.properties[e.extensionPoint]=e.jsonSchema,d.registerSchema(g,f),t}getExtensionPoints(){return Array.from(this._extensionPoints.values())}});let y=s.Registry.as(m);d.registerSchema(g,f),d.registerSchema("vscode://schemas/vscode-product",{properties:{extensionEnabledApiProposals:{description:(0,t.localize)(14094,"API proposals that the respective extensions can freely use."),type:"object",properties:{},additionalProperties:{anyOf:[{type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}}]}}}}),e.s(["ExtensionMessageCollector",0,class{constructor(e,t,i){this._messageHandler=e,this._extension=t,this._extensionPointId=i}_msg(e,t){this._messageHandler({type:e,message:t,extensionId:this._extension.identifier,extensionPointId:this._extensionPointId})}error(e){this._msg(n.default.Error,e)}warn(e){this._msg(n.default.Warning,e)}info(e){this._msg(n.default.Info,e)}},"ExtensionsRegistry",0,y],425024)},888961,e=>{"use strict";var t,i=e.i(621826);(t||(t={})).ExtensionFeaturesRegistry="workbench.registry.extensionFeatures",i.Registry.add(t.ExtensionFeaturesRegistry,new class{constructor(){this.extensionFeatures=new Map}registerExtensionFeature(e){if(this.extensionFeatures.has(e.id))throw Error(`Extension feature with id '${e.id}' already exists`);return this.extensionFeatures.set(e.id,e),{dispose:()=>this.extensionFeatures.delete(e.id)}}getExtensionFeature(e){return this.extensionFeatures.get(e)}getExtensionFeatures(){return Array.from(this.extensionFeatures.values())}}),e.s(["Extensions",0,t])},695519,e=>{"use strict";var t=e.i(281482),i=e.i(650289),n=e.i(642897),o=e.i(693162);e.i(488259);var r=e.i(243431),s=e.i(731931),a=e.i(253642),l=e.i(652731),c=e.i(981399),d=e.i(425024);e.i(157255);var p=e.i(853457),u=e.i(611130),h=e.i(888961),g=e.i(621826),f=e.i(526097),m=e.i(454514),y=e.i(399119),v=e.i(535567);let b=d.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"languages",jsonSchema:{description:(0,i.localize)(14155,"Contributes language declarations."),type:"array",items:{type:"object",defaultSnippets:[{body:{id:"${1:languageId}",aliases:["${2:label}"],extensions:["${3:extension}"],configuration:"./language-configuration.json"}}],properties:{id:{description:(0,i.localize)(14156,"ID of the language."),type:"string"},aliases:{description:(0,i.localize)(14157,"Name aliases for the language."),type:"array",items:{type:"string"}},extensions:{description:(0,i.localize)(14158,"File extensions associated to the language."),default:[".foo"],type:"array",items:{type:"string"}},filenames:{description:(0,i.localize)(14159,"File names associated to the language."),type:"array",items:{type:"string"}},filenamePatterns:{description:(0,i.localize)(14160,"File name glob patterns associated to the language."),type:"array",items:{type:"string"}},mimetypes:{description:(0,i.localize)(14161,"Mime types associated to the language."),type:"array",items:{type:"string"}},firstLine:{description:(0,i.localize)(14162,"A regular expression matching the first line of a file of the language."),type:"string"},configuration:{description:(0,i.localize)(14163,"A relative path to a file containing configuration options for the language."),type:"string",default:"./language-configuration.json"},icon:{type:"object",description:(0,i.localize)(14164,"A icon to use as file icon, if no icon theme provides one for the language."),properties:{light:{description:(0,i.localize)(14165,"Icon path when a light theme is used"),type:"string"},dark:{description:(0,i.localize)(14166,"Icon path when a dark theme is used"),type:"string"}}}}}},activationEventsGenerator:function*(e){for(let t of e)t.id&&t.configuration&&(yield`onLanguage:${t.id}`)}});class E extends u.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.languages}render(e){let t=e.contributes,n=t?.languages||[],o=[];for(let e of n)C(e)&&o.push({id:e.id,name:(e.aliases||[])[0]||e.id,extensions:e.extensions||[],hasGrammar:!1,hasSnippets:!1});let r=(0,m.index)(o,e=>e.id);return((t?.grammars||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasGrammar=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!0,hasSnippets:!1}).id]=t,o.push(t))}),(t?.snippets||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasSnippets=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!1,hasSnippets:!0}).id]=t,o.push(t))}),o.length)?{data:{headers:[(0,i.localize)(14167,"ID"),(0,i.localize)(14168,"Name"),(0,i.localize)(14169,"File Extensions"),(0,i.localize)(14170,"Grammar"),(0,i.localize)(14171,"Snippets")],rows:o.sort((e,t)=>e.id.localeCompare(t.id)).map(e=>[e.id,e.name,new y.MarkdownString().appendMarkdown(`${e.extensions.map(e=>`\`${e}\``).join("&nbsp;")}`),e.hasGrammar?"✔︎":"—",e.hasSnippets?"✔︎":"—"])},dispose:()=>{}}:{data:{headers:[],rows:[]},dispose:()=>{}}}}g.Registry.as(h.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"languages",label:(0,i.localize)(14172,"Programming Languages"),access:{canToggle:!1},renderer:new f.SyncDescriptor(E)});let x=class extends r.LanguageService{constructor(e,t,n,r){super(n.verbose||n.isExtensionDevelopment||!n.isBuilt),this.logService=r,this._configurationService=t,this._extensionService=e,b.setHandler(e=>{let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!Array.isArray(r.value)){r.collector.error((0,i.localize)(14173,"Invalid `contributes.{0}`. Expected an array.",b.name));continue}for(let e=0,i=r.value.length;e<i;e++){let i=r.value[e];if(C(i,r.collector)){let e;i.configuration&&(e=(0,o.joinPath)(r.description.extensionLocation,i.configuration)),t.push({id:i.id,extensions:i.extensions,filenames:i.filenames,filenamePatterns:i.filenamePatterns,firstLine:i.firstLine,aliases:i.aliases,mimetypes:i.mimetypes,configuration:e,icon:i.icon&&{light:(0,o.joinPath)(r.description.extensionLocation,i.icon.light),dark:(0,o.joinPath)(r.description.extensionLocation,i.icon.dark)}})}}}this._registry.setDynamicLanguages(t)}),this.updateMime(),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(l.FILES_ASSOCIATIONS_CONFIG)&&this.updateMime()})),this._extensionService.whenInstalledExtensionsRegistered().then(()=>{this.updateMime()}),this._register(this.onDidRequestRichLanguageFeatures(e=>{this._extensionService.activateByEvent(`onLanguage:${e}`),this._extensionService.activateByEvent("onLanguage")}))}updateMime(){let e=this._configurationService.getValue();(0,n.clearConfiguredLanguageAssociations)(),e.files?.associations&&Object.keys(e.files.associations).forEach(t=>{let i=e.files.associations[t];if("string"!=typeof i)return void this.logService.warn(`Ignoring configured 'files.associations' for '${t}' because its type is not a string but '${typeof i}'`);let o=this.getMimeType(i)||`text/x-${i}`;(0,n.registerConfiguredLanguageAssociation)({id:i,mime:o,filepattern:t})}),this._onDidChange.fire()}};function w(e){return void 0===e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}function C(e,t){return e?"string"!=typeof e.id?(t?.error((0,i.localize)(14175,"property `{0}` is mandatory and must be of type `string`","id")),!1):w(e.extensions)?w(e.filenames)?void 0!==e.firstLine&&"string"!=typeof e.firstLine?(t?.error((0,i.localize)(14178,"property `{0}` can be omitted and must be of type `string`","firstLine")),!1):void 0!==e.configuration&&"string"!=typeof e.configuration?(t?.error((0,i.localize)(14179,"property `{0}` can be omitted and must be of type `string`","configuration")),!1):w(e.aliases)?w(e.mimetypes)?void 0===e.icon||"object"==typeof e.icon&&"string"==typeof e.icon.light&&"string"==typeof e.icon.dark||(t?.error((0,i.localize)(14182,"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`","icon","light","dark")),!1):(t?.error((0,i.localize)(14181,"property `{0}` can be omitted and must be of type `string[]`","mimetypes")),!1):(t?.error((0,i.localize)(14180,"property `{0}` can be omitted and must be of type `string[]`","aliases")),!1):(t?.error((0,i.localize)(14177,"property `{0}` can be omitted and must be of type `string[]`","filenames")),!1):(t?.error((0,i.localize)(14176,"property `{0}` can be omitted and must be of type `string[]`","extensions")),!1):(t?.error((0,i.localize)(14174,"Empty value for `contributes.{0}`",b.name)),!1)}x=(0,t.__decorate)([(0,t.__param)(0,c.IExtensionService),(0,t.__param)(1,s.IConfigurationService),(0,t.__param)(2,a.IEnvironmentService),(0,t.__param)(3,p.ILogService)],x),e.s(["WorkbenchLanguageService",0,x,"languagesExtPoint",0,b])},163731,e=>{"use strict";var t,i,n,o,r,s,a,l,c=e.i(600345);function d(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.ICodeEditor}function p(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.IDiffEditor}function u(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(t=r||(r={}))[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW",(i=s||(s={}))[i.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",i[i.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",i[i.TOP_CENTER=2]="TOP_CENTER",(n=a||(a={}))[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(o=l||(l={}))[o.Idle=0]="Idle",o[o.ComputingDiff=1]="ComputingDiff",o[o.DiffComputed=2]="DiffComputed",e.s(["ContentWidgetPositionPreference",0,r,"MouseTargetType",0,a,"OverlayWidgetPositionPreference",0,s,"getCodeEditor",0,function(e){return d(e)?e:p(e)?e.getModifiedEditor():u(e)&&d(e.activeCodeEditor)?e.activeCodeEditor:null},"getIEditor",0,function(e){return d(e)||p(e)?e:null},"isCodeEditor",0,d,"isCompositeEditor",0,u,"isDiffEditor",0,p])},407791,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("ILanguageFeaturesService");e.s(["ILanguageFeaturesService",0,t])},531452,e=>{"use strict";var t=e.i(611130);e.i(71224);var i=e.i(229081),n=e.i(4680),o=e.i(314122);e.s(["bindContextKey",0,function(e,i,r,s=n.DebugLocation.ofCaller()){let a=e.bindTo(i),l=new t.DisposableStore;return(0,o.derivedOpts)({debugName:()=>`Set Context Key "${e.key}"`},e=>{let t=r(e);return a.set(t),t},s).recomputeInitiallyAndOnChange(l),l},"observableConfigValue",0,function(e,t,o,r=n.DebugLocation.ofCaller()){return(0,i.observableFromEventOpts)({debugName:()=>`Configuration Key "${e}"`},t=>o.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i)}),()=>o.getValue(e)??t,r)}])},454683,e=>{"use strict";e.s(["WebWorkerDescriptor",0,class{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}])},112231,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("textMateTokenizationFeature");e.s(["ITextMateTokenizationService",0,t])},88124,e=>{"use strict";let t="editor.semanticHighlighting";e.s(["SEMANTIC_HIGHLIGHTING_SETTING_ID",0,t,"isSemanticColoringEnabled",0,function(e,i,n){let o=n.getValue(t,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"==typeof o?o:i.getColorTheme().semanticHighlighting}])},561460,e=>{"use strict";var t=e.i(650289),i=e.i(292608);e.s(["getParseErrorMessage",0,function(e){switch(e){case i.ParseErrorCode.InvalidSymbol:return(0,t.localize)(111,"Invalid symbol");case i.ParseErrorCode.InvalidNumberFormat:return(0,t.localize)(112,"Invalid number format");case i.ParseErrorCode.PropertyNameExpected:return(0,t.localize)(113,"Property name expected");case i.ParseErrorCode.ValueExpected:return(0,t.localize)(114,"Value expected");case i.ParseErrorCode.ColonExpected:return(0,t.localize)(115,"Colon expected");case i.ParseErrorCode.CommaExpected:return(0,t.localize)(116,"Comma expected");case i.ParseErrorCode.CloseBraceExpected:return(0,t.localize)(117,"Closing brace expected");case i.ParseErrorCode.CloseBracketExpected:return(0,t.localize)(118,"Closing bracket expected");case i.ParseErrorCode.EndOfFileExpected:return(0,t.localize)(119,"End of file expected");default:return""}}])},455162,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("extensionGalleryService"),n=(0,t.createDecorator)("extensionManagementService"),o=(0,t.createDecorator)("IGlobalExtensionEnablementService"),r=(0,t.createDecorator)("IExtensionTipsService"),s=(0,t.createDecorator)("IAllowedExtensionsService");e.s(["IAllowedExtensionsService",0,s,"IExtensionGalleryService",0,i,"IExtensionManagementService",0,n,"IExtensionTipsService",0,r,"IGlobalExtensionEnablementService",0,o])},542034,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("extensionsWorkbenchService");e.s(["IExtensionsWorkbenchService",0,t])},322544,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataInitializationService");e.s(["IUserDataInitializationService",0,t])},262072,e=>{"use strict";var t=e.i(650289);let i=Object.freeze({View:(0,t.localize2)(1740,"View"),Help:(0,t.localize2)(1741,"Help"),Test:(0,t.localize2)(1742,"Test"),File:(0,t.localize2)(1743,"File"),Preferences:(0,t.localize2)(1744,"Preferences"),Developer:(0,t.localize2)(1745,"Developer")});e.s(["Categories",0,i])},176876,e=>{"use strict";var t=e.i(253642);let i=(0,e.i(488259).refineServiceDecorator)(t.IEnvironmentService);e.s(["IBrowserWorkbenchEnvironmentService",0,i])},633450,e=>{"use strict";var t=e.i(702320),i=e.i(693162),n=e.i(802136),o=e.i(429200),r=e.i(652731),s=e.i(536367);let a=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function l(e){return e.replace(/[\s]/g,"/")}e.s(["fileIconSelectorEscape",0,l,"getIconClasses",0,function(e,c,d,p,u){if(s.ThemeIcon.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(n.URI.isUri(u))return[];let h=p===r.FileKind.ROOT_FOLDER?["rootfolder-icon"]:p===r.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(d){let n;if(d.scheme===t.Schemas.data)n=i.DataUri.parseMetaData(d).get(i.DataUri.META_DATA_LABEL);else{let e=d.path.match(a);e?(n=l(e[2].toLowerCase()),e[1]&&h.push(`${l(e[1].toLowerCase())}-name-dir-icon`)):n=l(d.authority.toLowerCase())}if(p===r.FileKind.ROOT_FOLDER)h.push(`${n}-root-name-folder-icon`);else if(p===r.FileKind.FOLDER)h.push(`${n}-name-folder-icon`);else{if(n){if(h.push(`${n}-name-file-icon`),h.push("name-file-icon"),n.length<=255){let e=n.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,n,r){if(!r)return null;let s=null;if(r.scheme===t.Schemas.data){let e=i.DataUri.parseMetaData(r).get(i.DataUri.META_DATA_MIME);e&&(s=n.getLanguageIdByMimeType(e))}else{let t=e.getModel(r);t&&(s=t.getLanguageId())}return s&&s!==o.PLAINTEXT_LANGUAGE_ID?s:n.guessLanguageIdByFilepathOrFirstLine(r)}(e,c,d);r&&h.push(`${l(r)}-lang-file-icon`)}}return h},"getIconClassesForLanguageId",0,function(e){return["file-icon",`${l(e)}-lang-file-icon`]}])},905192,e=>{"use strict";var t=e.i(488259),i=e.i(970672);let n=(0,t.refineServiceDecorator)(i.IThemeService);e.s(["IWorkbenchThemeService",0,n])},509046,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("preferencesService");e.s(["IPreferencesService",0,t])},317317,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("hostColorSchemeService");e.s(["IHostColorSchemeService",0,t])},184687,e=>{e.q("/_next/static/media/webWorkerExtensionHostIframe.0x2r1o97s.m0m.html")},991307,425761,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataProfilesService");async function i(e){await new Promise(t=>setTimeout(t,e))}e.s(["IUserDataProfilesService",0,t],991307),e.s(["memoizedConstructor",0,function(e){var t;let i;return new Proxy(e,{construct:(t=(t,i)=>Reflect.construct(e,i),i=null,(...e)=>(null==i&&(i=t(...e)),i))})},"throttle",0,function(e,t,n){let o=Promise.resolve(),r=null;return async s=>{null==r?(r=s,o=o.then(async()=>await i(n)).then(async()=>{let t=r;r=null,await e(t)})):r=t(r,s),await o}},"unsupported",0,function(){throw Error("unsupported")}],425761)},13853,e=>{"use strict";var t,i,n=e.i(601293),o=e.i(561295);function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}(t=i||(i={}))[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent",e.s(["AutoClosingPairs",0,class{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}},"IndentAction",0,i,"StandardAutoClosingPairConditional",0,class{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case o.StandardTokenType.Other:return!0;case o.StandardTokenType.Comment:return this._inComment;case o.StandardTokenType.String:return this._inString;case o.StandardTokenType.RegEx:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.Digit0,n.CharCode.Digit9)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.a,n.CharCode.z)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.A,n.CharCode.Z))),this._neutralCharacter}}])},715658,689318,508898,e=>{"use strict";var t=e.i(781808),i=e.i(611130),n=e.i(98342),o=e.i(786091),r=e.i(771275);function s(e,t,i,n,a,l){if(Array.isArray(e)){let o=0;for(let r of e){let e=s(r,t,i,n,a,l);if(10===e)return e;e>o&&(o=e)}return o}if("string"==typeof e)return n?"*"===e?5:10*(e===i):0;if(!e)return 0;{let{language:s,pattern:c,scheme:d,hasAccessToAllModels:p,notebookType:u}=e;if(!n&&!p)return 0;u&&a&&(t=a);let h=0;if(d)if(d===t.scheme)h=10;else{if("*"!==d)return 0;h=5}if(s)if(s===i)h=10;else{if("*"!==s)return 0;h=Math.max(h,5)}if(u)if(u===l)h=10;else{if("*"!==u||void 0===l)return 0;h=Math.max(h,5)}if(c){let e;if(!((e="string"==typeof c?c:{...c,base:(0,r.normalize)(c.base)})===t.fsPath||(0,o.match)(e,t.fsPath)))return 0;h=10}return h}}e.s(["score",0,s,"targetsNotebooks",0,function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.some(e):!!t.notebookType)}],689318);class a{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new t.Emitter}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),o=i?new a(e.uri,e.getLanguageId(),i.uri,i.type,t):new a(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(o)){for(let i of(this._lastCandidate=o,this._entries))if(i._score=s(i.selector,o.uri,o.languageId,(0,n.shouldSynchronizeModel)(e),o.notebookUri,o.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:c(e.selector)&&!c(t.selector)?1:!c(e.selector)&&c(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(c):!!e.isBuiltin)}e.s(["LanguageFeatureRegistry",0,l],715658);let d=(0,e.i(488259).createDecorator)("ILanguageStatusService");e.s(["ILanguageStatusService",0,d],508898)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,425024,e=>{"use strict";var t=e.i(650289),i=e.i(619122),n=e.i(770326),o=e.i(331139),r=e.i(4160),s=e.i(621826),a=e.i(608326),l=e.i(920374),c=e.i(951971);let d=s.Registry.as(r.Extensions.JSONContribution);class p{static _toSet(e){let t=new a.ExtensionIdentifierSet;for(let i=0,n=e.length;i<n;i++)t.add(e[i].description.identifier);return t}static compute(e,t){if(!e||!e.length)return new p(t,[]);if(!t||!t.length)return new p([],e);let i=this._toSet(e),n=this._toSet(t);return new p(t.filter(e=>!i.has(e.description.identifier)),e.filter(e=>!n.has(e.description.identifier)))}constructor(e,t){this.added=e,this.removed=t}}class u{constructor(e,t,i){this.name=e,this.defaultExtensionKind=t,this.canHandleResolver=i,this._handler=null,this._users=null,this._delta=null}setHandler(e){if(null!==this._handler)throw Error("Handler already set!");return this._handler=e,this._handle(),{dispose:()=>{this._handler=null}}}acceptUsers(e){this._delta=p.compute(this._users,e),this._users=e,this._handle()}_handle(){if(null!==this._handler&&null!==this._users&&null!==this._delta)try{this._handler(this._users,this._delta)}catch(e){(0,i.onUnexpectedError)(e)}}}let h={type:"string",enum:["ui","workspace"],enumDescriptions:[(0,t.localize)(14009,"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),(0,t.localize)(14010,"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")]},g="vscode://schemas/vscode-extensions",f={properties:{engines:{type:"object",description:(0,t.localize)(14011,"Engine compatibility."),properties:{vscode:{type:"string",description:(0,t.localize)(14012,"For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:(0,t.localize)(14013,"The publisher of the VS Code extension."),type:"string"},displayName:{description:(0,t.localize)(14014,"The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:(0,t.localize)(14015,"The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:a.EXTENSION_CATEGORIES},{type:"string",const:"Languages",deprecationMessage:(0,t.localize)(14016,"Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:(0,t.localize)(14017,"Banner used in the VS Code marketplace."),properties:{color:{description:(0,t.localize)(14018,"The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:(0,t.localize)(14019,"The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:(0,t.localize)(14020,"All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:(0,t.localize)(14021,"Sets the extension to be flagged as a Preview in the Marketplace.")},enableProposedApi:{type:"boolean",deprecationMessage:(0,t.localize)(14022,"Use `enabledApiProposals` instead.")},enabledApiProposals:{markdownDescription:(0,t.localize)(14023,"Enable API proposals to try them out. Only valid **during development**. Extensions **cannot be published** with this property. For more details visit: https://code.visualstudio.com/api/advanced-topics/using-proposed-api"),type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals).map(e=>e),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}},api:{markdownDescription:(0,t.localize)(14024,"Describe the API provided by this extension. For more details visit: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions"),type:"string",enum:["none"],enumDescriptions:[(0,t.localize)(14025,"Give up entirely the ability to export any APIs. This allows other extensions that depend on this extension to run in a separate extension host process or in a remote machine.")]},activationEvents:{description:(0,t.localize)(14026,"Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onWebviewPanel",description:(0,t.localize)(14027,"An activation event emmited when a webview is loaded of a certain viewType"),body:"onWebviewPanel:viewType"},{label:"onLanguage",description:(0,t.localize)(14028,"An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:(0,t.localize)(14029,"An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:(0,t.localize)(14030,"An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:(0,t.localize)(14031,'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugDynamicConfigurations",description:(0,t.localize)(14032,'An activation event emitted whenever a list of all debug configurations needs to be created (and all provideDebugConfigurations methods for the "dynamic" scope need to be called).'),body:"onDebugDynamicConfigurations"},{label:"onDebugResolve",description:(0,t.localize)(14033,"An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:(0,t.localize)(14034,"An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:(0,t.localize)(14035,"An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onStartupFinished",description:(0,t.localize)(14036,"An activation event emitted after the start-up finished (after all `*` activated extensions have finished activating)."),body:"onStartupFinished"},{label:"onTaskType",description:(0,t.localize)(14037,"An activation event emitted whenever tasks of a certain type need to be listed or resolved."),body:"onTaskType:${1:taskType}"},{label:"onFileSystem",description:(0,t.localize)(14038,"An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onEditSession",description:(0,t.localize)(14039,"An activation event emitted whenever an edit session is accessed with the given scheme."),body:"onEditSession:${1:scheme}"},{label:"onSearch",description:(0,t.localize)(14040,"An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:(0,t.localize)(14041,"An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:(0,t.localize)(14042,"An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"onOpenExternalUri",body:"onOpenExternalUri",description:(0,t.localize)(14043,"An activation event emitted whenever a external uri (such as an http or https link) is being opened.")},{label:"onCustomEditor",body:"onCustomEditor:${9:viewType}",description:(0,t.localize)(14044,"An activation event emitted whenever the specified custom editor becomes visible.")},{label:"onNotebook",body:"onNotebook:${1:type}",description:(0,t.localize)(14045,"An activation event emitted whenever the specified notebook document is opened.")},{label:"onAuthenticationRequest",body:"onAuthenticationRequest:${11:authenticationProviderId}",description:(0,t.localize)(14046,"An activation event emitted whenever sessions are requested from the specified authentication provider.")},{label:"onRenderer",description:(0,t.localize)(14047,"An activation event emitted whenever a notebook output renderer is used."),body:"onRenderer:${11:rendererId}"},{label:"onTerminalProfile",body:"onTerminalProfile:${1:terminalId}",description:(0,t.localize)(14048,"An activation event emitted when a specific terminal profile is launched.")},{label:"onTerminalQuickFixRequest",body:"onTerminalQuickFixRequest:${1:quickFixId}",description:(0,t.localize)(14049,"An activation event emitted when a command matches the selector associated with this ID")},{label:"onWalkthrough",body:"onWalkthrough:${1:walkthroughID}",description:(0,t.localize)(14050,"An activation event emitted when a specified walkthrough is opened.")},{label:"onIssueReporterOpened",body:"onIssueReporterOpened",description:(0,t.localize)(14051,"An activation event emitted when the issue reporter is opened.")},{label:"onChatParticipant",body:"onChatParticipant:${1:participantId}",description:(0,t.localize)(14052,"An activation event emitted when the specified chat participant is invoked.")},{label:"onLanguageModelChatProvider",body:"onLanguageModelChatProvider:${1:vendor}",description:(0,t.localize)(14053,"An activation event emitted when a chat model provider for the given vendor is requested.")},{label:"onLanguageModelTool",body:"onLanguageModelTool:${1:toolId}",description:(0,t.localize)(14054,"An activation event emitted when the specified language model tool is invoked.")},{label:"onTerminal",body:"onTerminal:{1:shellType}",description:(0,t.localize)(14055,"An activation event emitted when a terminal of the given shell type is opened.")},{label:"onTerminalShellIntegration",body:"onTerminalShellIntegration:${1:shellType}",description:(0,t.localize)(14056,"An activation event emitted when terminal shell integration is activated for the given shell type.")},{label:"onMcpCollection",description:(0,t.localize)(14057,"An activation event emitted whenver a tool from the MCP server is requested."),body:"onMcpCollection:${2:collectionId}"},{label:"*",description:(0,t.localize)(14058,"An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:(0,t.localize)(14059,"Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:(0,t.localize)(14060,"Badge image URL.")},href:{type:"string",description:(0,t.localize)(14061,"Badge link.")},description:{type:"string",description:(0,t.localize)(14062,"Badge description.")}}}},markdown:{type:"string",description:(0,t.localize)(14063,"Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:(0,t.localize)(14064,"Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:(0,t.localize)(14065,"Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:(0,t.localize)(14066,"A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:(0,t.localize)(14067,"Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."),type:"array",items:h,default:["workspace"],defaultSnippets:[{body:["ui"],description:(0,t.localize)(14068,"Define an extension which can run only on the local machine when connected to remote window.")},{body:["workspace"],description:(0,t.localize)(14069,"Define an extension which can run only on the remote machine when connected remote window.")},{body:["ui","workspace"],description:(0,t.localize)(14070,"Define an extension which can run on either side, with a preference towards running on the local machine.")},{body:["workspace","ui"],description:(0,t.localize)(14071,"Define an extension which can run on either side, with a preference towards running on the remote machine.")},{body:[],description:(0,t.localize)(14072,"Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine.")}]},capabilities:{description:(0,t.localize)(14073,"Declare the set of supported capabilities by the extension."),type:"object",properties:{virtualWorkspaces:{description:(0,t.localize)(14074,"Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."),type:["boolean","object"],defaultSnippets:[{label:"limited",body:{supported:"${1:limited}",description:"${2}"}},{label:"false",body:{supported:!1,description:"${2}"}}],default:(!0).valueOf,properties:{supported:{markdownDescription:(0,t.localize)(14075,"Declares the level of support for virtual workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14076,"The extension will be enabled in virtual workspaces with some functionality disabled."),(0,t.localize)(14077,"The extension will be enabled in virtual workspaces with all functionality enabled."),(0,t.localize)(14078,"The extension will not be enabled in virtual workspaces.")]},description:{type:"string",markdownDescription:(0,t.localize)(14079,"A description of how virtual workspaces affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}},untrustedWorkspaces:{description:(0,t.localize)(14080,"Declares how the extension should be handled in untrusted workspaces."),type:"object",required:["supported"],defaultSnippets:[{body:{supported:"${1:limited}",description:"${2}"}}],properties:{supported:{markdownDescription:(0,t.localize)(14081,"Declares the level of support for untrusted workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14082,"The extension will be enabled in untrusted workspaces with some functionality disabled."),(0,t.localize)(14083,"The extension will be enabled in untrusted workspaces with all functionality enabled."),(0,t.localize)(14084,"The extension will not be enabled in untrusted workspaces.")]},restrictedConfigurations:{description:(0,t.localize)(14085,"A list of configuration keys contributed by the extension that should not use workspace values in untrusted workspaces."),type:"array",items:{type:"string"}},description:{type:"string",markdownDescription:(0,t.localize)(14086,"A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}}}},sponsor:{description:(0,t.localize)(14087,"Specify the location from where users can sponsor your extension."),type:"object",defaultSnippets:[{body:{url:"${1:https:}"}}],properties:{url:{description:(0,t.localize)(14088,"URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"),type:"string"}}},scripts:{type:"object",properties:{"vscode:prepublish":{description:(0,t.localize)(14089,"Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:(0,t.localize)(14090,"Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:(0,t.localize)(14091,"The path to a 128x128 pixel icon.")},l10n:{type:"string",description:(0,t.localize)(14092,"The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.")},pricing:{type:"string",markdownDescription:(0,t.localize)(14093,"The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label"),enum:["Free","Trial"],default:"Free"}}},m="ExtensionsRegistry";s.Registry.add(m,new class{constructor(){this._extensionPoints=new Map}registerExtensionPoint(e){if(this._extensionPoints.has(e.extensionPoint))throw Error("Duplicate extension point: "+e.extensionPoint);let t=new u(e.extensionPoint,e.defaultExtensionKind,e.canHandleResolver);return this._extensionPoints.set(e.extensionPoint,t),e.activationEventsGenerator&&l.ImplicitActivationEvents.register(e.extensionPoint,e.activationEventsGenerator),f.properties.contributes.properties[e.extensionPoint]=e.jsonSchema,d.registerSchema(g,f),t}getExtensionPoints(){return Array.from(this._extensionPoints.values())}});let y=s.Registry.as(m);d.registerSchema(g,f),d.registerSchema("vscode://schemas/vscode-product",{properties:{extensionEnabledApiProposals:{description:(0,t.localize)(14094,"API proposals that the respective extensions can freely use."),type:"object",properties:{},additionalProperties:{anyOf:[{type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}}]}}}}),e.s(["ExtensionMessageCollector",0,class{constructor(e,t,i){this._messageHandler=e,this._extension=t,this._extensionPointId=i}_msg(e,t){this._messageHandler({type:e,message:t,extensionId:this._extension.identifier,extensionPointId:this._extensionPointId})}error(e){this._msg(n.default.Error,e)}warn(e){this._msg(n.default.Warning,e)}info(e){this._msg(n.default.Info,e)}},"ExtensionsRegistry",0,y],425024)},888961,e=>{"use strict";var t,i=e.i(621826);(t||(t={})).ExtensionFeaturesRegistry="workbench.registry.extensionFeatures",i.Registry.add(t.ExtensionFeaturesRegistry,new class{constructor(){this.extensionFeatures=new Map}registerExtensionFeature(e){if(this.extensionFeatures.has(e.id))throw Error(`Extension feature with id '${e.id}' already exists`);return this.extensionFeatures.set(e.id,e),{dispose:()=>this.extensionFeatures.delete(e.id)}}getExtensionFeature(e){return this.extensionFeatures.get(e)}getExtensionFeatures(){return Array.from(this.extensionFeatures.values())}}),e.s(["Extensions",0,t])},695519,e=>{"use strict";var t=e.i(281482),i=e.i(650289),n=e.i(642897),o=e.i(693162);e.i(488259);var r=e.i(243431),s=e.i(731931),a=e.i(253642),l=e.i(652731),c=e.i(981399),d=e.i(425024);e.i(157255);var p=e.i(853457),u=e.i(611130),h=e.i(888961),g=e.i(621826),f=e.i(526097),m=e.i(454514),y=e.i(399119),v=e.i(535567);let b=d.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"languages",jsonSchema:{description:(0,i.localize)(14155,"Contributes language declarations."),type:"array",items:{type:"object",defaultSnippets:[{body:{id:"${1:languageId}",aliases:["${2:label}"],extensions:["${3:extension}"],configuration:"./language-configuration.json"}}],properties:{id:{description:(0,i.localize)(14156,"ID of the language."),type:"string"},aliases:{description:(0,i.localize)(14157,"Name aliases for the language."),type:"array",items:{type:"string"}},extensions:{description:(0,i.localize)(14158,"File extensions associated to the language."),default:[".foo"],type:"array",items:{type:"string"}},filenames:{description:(0,i.localize)(14159,"File names associated to the language."),type:"array",items:{type:"string"}},filenamePatterns:{description:(0,i.localize)(14160,"File name glob patterns associated to the language."),type:"array",items:{type:"string"}},mimetypes:{description:(0,i.localize)(14161,"Mime types associated to the language."),type:"array",items:{type:"string"}},firstLine:{description:(0,i.localize)(14162,"A regular expression matching the first line of a file of the language."),type:"string"},configuration:{description:(0,i.localize)(14163,"A relative path to a file containing configuration options for the language."),type:"string",default:"./language-configuration.json"},icon:{type:"object",description:(0,i.localize)(14164,"A icon to use as file icon, if no icon theme provides one for the language."),properties:{light:{description:(0,i.localize)(14165,"Icon path when a light theme is used"),type:"string"},dark:{description:(0,i.localize)(14166,"Icon path when a dark theme is used"),type:"string"}}}}}},activationEventsGenerator:function*(e){for(let t of e)t.id&&t.configuration&&(yield`onLanguage:${t.id}`)}});class E extends u.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.languages}render(e){let t=e.contributes,n=t?.languages||[],o=[];for(let e of n)C(e)&&o.push({id:e.id,name:(e.aliases||[])[0]||e.id,extensions:e.extensions||[],hasGrammar:!1,hasSnippets:!1});let r=(0,m.index)(o,e=>e.id);return((t?.grammars||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasGrammar=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!0,hasSnippets:!1}).id]=t,o.push(t))}),(t?.snippets||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasSnippets=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!1,hasSnippets:!0}).id]=t,o.push(t))}),o.length)?{data:{headers:[(0,i.localize)(14167,"ID"),(0,i.localize)(14168,"Name"),(0,i.localize)(14169,"File Extensions"),(0,i.localize)(14170,"Grammar"),(0,i.localize)(14171,"Snippets")],rows:o.sort((e,t)=>e.id.localeCompare(t.id)).map(e=>[e.id,e.name,new y.MarkdownString().appendMarkdown(`${e.extensions.map(e=>`\`${e}\``).join("&nbsp;")}`),e.hasGrammar?"✔︎":"—",e.hasSnippets?"✔︎":"—"])},dispose:()=>{}}:{data:{headers:[],rows:[]},dispose:()=>{}}}}g.Registry.as(h.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"languages",label:(0,i.localize)(14172,"Programming Languages"),access:{canToggle:!1},renderer:new f.SyncDescriptor(E)});let x=class extends r.LanguageService{constructor(e,t,n,r){super(n.verbose||n.isExtensionDevelopment||!n.isBuilt),this.logService=r,this._configurationService=t,this._extensionService=e,b.setHandler(e=>{let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!Array.isArray(r.value)){r.collector.error((0,i.localize)(14173,"Invalid `contributes.{0}`. Expected an array.",b.name));continue}for(let e=0,i=r.value.length;e<i;e++){let i=r.value[e];if(C(i,r.collector)){let e;i.configuration&&(e=(0,o.joinPath)(r.description.extensionLocation,i.configuration)),t.push({id:i.id,extensions:i.extensions,filenames:i.filenames,filenamePatterns:i.filenamePatterns,firstLine:i.firstLine,aliases:i.aliases,mimetypes:i.mimetypes,configuration:e,icon:i.icon&&{light:(0,o.joinPath)(r.description.extensionLocation,i.icon.light),dark:(0,o.joinPath)(r.description.extensionLocation,i.icon.dark)}})}}}this._registry.setDynamicLanguages(t)}),this.updateMime(),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(l.FILES_ASSOCIATIONS_CONFIG)&&this.updateMime()})),this._extensionService.whenInstalledExtensionsRegistered().then(()=>{this.updateMime()}),this._register(this.onDidRequestRichLanguageFeatures(e=>{this._extensionService.activateByEvent(`onLanguage:${e}`),this._extensionService.activateByEvent("onLanguage")}))}updateMime(){let e=this._configurationService.getValue();(0,n.clearConfiguredLanguageAssociations)(),e.files?.associations&&Object.keys(e.files.associations).forEach(t=>{let i=e.files.associations[t];if("string"!=typeof i)return void this.logService.warn(`Ignoring configured 'files.associations' for '${t}' because its type is not a string but '${typeof i}'`);let o=this.getMimeType(i)||`text/x-${i}`;(0,n.registerConfiguredLanguageAssociation)({id:i,mime:o,filepattern:t})}),this._onDidChange.fire()}};function w(e){return void 0===e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}function C(e,t){return e?"string"!=typeof e.id?(t?.error((0,i.localize)(14175,"property `{0}` is mandatory and must be of type `string`","id")),!1):w(e.extensions)?w(e.filenames)?void 0!==e.firstLine&&"string"!=typeof e.firstLine?(t?.error((0,i.localize)(14178,"property `{0}` can be omitted and must be of type `string`","firstLine")),!1):void 0!==e.configuration&&"string"!=typeof e.configuration?(t?.error((0,i.localize)(14179,"property `{0}` can be omitted and must be of type `string`","configuration")),!1):w(e.aliases)?w(e.mimetypes)?void 0===e.icon||"object"==typeof e.icon&&"string"==typeof e.icon.light&&"string"==typeof e.icon.dark||(t?.error((0,i.localize)(14182,"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`","icon","light","dark")),!1):(t?.error((0,i.localize)(14181,"property `{0}` can be omitted and must be of type `string[]`","mimetypes")),!1):(t?.error((0,i.localize)(14180,"property `{0}` can be omitted and must be of type `string[]`","aliases")),!1):(t?.error((0,i.localize)(14177,"property `{0}` can be omitted and must be of type `string[]`","filenames")),!1):(t?.error((0,i.localize)(14176,"property `{0}` can be omitted and must be of type `string[]`","extensions")),!1):(t?.error((0,i.localize)(14174,"Empty value for `contributes.{0}`",b.name)),!1)}x=(0,t.__decorate)([(0,t.__param)(0,c.IExtensionService),(0,t.__param)(1,s.IConfigurationService),(0,t.__param)(2,a.IEnvironmentService),(0,t.__param)(3,p.ILogService)],x),e.s(["WorkbenchLanguageService",0,x,"languagesExtPoint",0,b])},163731,e=>{"use strict";var t,i,n,o,r,s,a,l,c=e.i(600345);function d(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.ICodeEditor}function p(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.IDiffEditor}function u(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(t=r||(r={}))[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW",(i=s||(s={}))[i.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",i[i.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",i[i.TOP_CENTER=2]="TOP_CENTER",(n=a||(a={}))[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(o=l||(l={}))[o.Idle=0]="Idle",o[o.ComputingDiff=1]="ComputingDiff",o[o.DiffComputed=2]="DiffComputed",e.s(["ContentWidgetPositionPreference",0,r,"MouseTargetType",0,a,"OverlayWidgetPositionPreference",0,s,"getCodeEditor",0,function(e){return d(e)?e:p(e)?e.getModifiedEditor():u(e)&&d(e.activeCodeEditor)?e.activeCodeEditor:null},"getIEditor",0,function(e){return d(e)||p(e)?e:null},"isCodeEditor",0,d,"isCompositeEditor",0,u,"isDiffEditor",0,p])},407791,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("ILanguageFeaturesService");e.s(["ILanguageFeaturesService",0,t])},531452,e=>{"use strict";var t=e.i(611130);e.i(71224);var i=e.i(229081),n=e.i(4680),o=e.i(314122);e.s(["bindContextKey",0,function(e,i,r,s=n.DebugLocation.ofCaller()){let a=e.bindTo(i),l=new t.DisposableStore;return(0,o.derivedOpts)({debugName:()=>`Set Context Key "${e.key}"`},e=>{let t=r(e);return a.set(t),t},s).recomputeInitiallyAndOnChange(l),l},"observableConfigValue",0,function(e,t,o,r=n.DebugLocation.ofCaller()){return(0,i.observableFromEventOpts)({debugName:()=>`Configuration Key "${e}"`},t=>o.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i)}),()=>o.getValue(e)??t,r)}])},454683,e=>{"use strict";e.s(["WebWorkerDescriptor",0,class{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}])},112231,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("textMateTokenizationFeature");e.s(["ITextMateTokenizationService",0,t])},88124,e=>{"use strict";let t="editor.semanticHighlighting";e.s(["SEMANTIC_HIGHLIGHTING_SETTING_ID",0,t,"isSemanticColoringEnabled",0,function(e,i,n){let o=n.getValue(t,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"==typeof o?o:i.getColorTheme().semanticHighlighting}])},561460,e=>{"use strict";var t=e.i(650289),i=e.i(292608);e.s(["getParseErrorMessage",0,function(e){switch(e){case i.ParseErrorCode.InvalidSymbol:return(0,t.localize)(111,"Invalid symbol");case i.ParseErrorCode.InvalidNumberFormat:return(0,t.localize)(112,"Invalid number format");case i.ParseErrorCode.PropertyNameExpected:return(0,t.localize)(113,"Property name expected");case i.ParseErrorCode.ValueExpected:return(0,t.localize)(114,"Value expected");case i.ParseErrorCode.ColonExpected:return(0,t.localize)(115,"Colon expected");case i.ParseErrorCode.CommaExpected:return(0,t.localize)(116,"Comma expected");case i.ParseErrorCode.CloseBraceExpected:return(0,t.localize)(117,"Closing brace expected");case i.ParseErrorCode.CloseBracketExpected:return(0,t.localize)(118,"Closing bracket expected");case i.ParseErrorCode.EndOfFileExpected:return(0,t.localize)(119,"End of file expected");default:return""}}])},455162,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("extensionGalleryService"),n=(0,t.createDecorator)("extensionManagementService"),o=(0,t.createDecorator)("IGlobalExtensionEnablementService"),r=(0,t.createDecorator)("IExtensionTipsService"),s=(0,t.createDecorator)("IAllowedExtensionsService");e.s(["IAllowedExtensionsService",0,s,"IExtensionGalleryService",0,i,"IExtensionManagementService",0,n,"IExtensionTipsService",0,r,"IGlobalExtensionEnablementService",0,o])},542034,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("extensionsWorkbenchService");e.s(["IExtensionsWorkbenchService",0,t])},322544,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataInitializationService");e.s(["IUserDataInitializationService",0,t])},262072,e=>{"use strict";var t=e.i(650289);let i=Object.freeze({View:(0,t.localize2)(1740,"View"),Help:(0,t.localize2)(1741,"Help"),Test:(0,t.localize2)(1742,"Test"),File:(0,t.localize2)(1743,"File"),Preferences:(0,t.localize2)(1744,"Preferences"),Developer:(0,t.localize2)(1745,"Developer")});e.s(["Categories",0,i])},176876,e=>{"use strict";var t=e.i(253642);let i=(0,e.i(488259).refineServiceDecorator)(t.IEnvironmentService);e.s(["IBrowserWorkbenchEnvironmentService",0,i])},633450,e=>{"use strict";var t=e.i(702320),i=e.i(693162),n=e.i(802136),o=e.i(429200),r=e.i(652731),s=e.i(536367);let a=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function l(e){return e.replace(/[\s]/g,"/")}e.s(["fileIconSelectorEscape",0,l,"getIconClasses",0,function(e,c,d,p,u){if(s.ThemeIcon.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(n.URI.isUri(u))return[];let h=p===r.FileKind.ROOT_FOLDER?["rootfolder-icon"]:p===r.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(d){let n;if(d.scheme===t.Schemas.data)n=i.DataUri.parseMetaData(d).get(i.DataUri.META_DATA_LABEL);else{let e=d.path.match(a);e?(n=l(e[2].toLowerCase()),e[1]&&h.push(`${l(e[1].toLowerCase())}-name-dir-icon`)):n=l(d.authority.toLowerCase())}if(p===r.FileKind.ROOT_FOLDER)h.push(`${n}-root-name-folder-icon`);else if(p===r.FileKind.FOLDER)h.push(`${n}-name-folder-icon`);else{if(n){if(h.push(`${n}-name-file-icon`),h.push("name-file-icon"),n.length<=255){let e=n.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,n,r){if(!r)return null;let s=null;if(r.scheme===t.Schemas.data){let e=i.DataUri.parseMetaData(r).get(i.DataUri.META_DATA_MIME);e&&(s=n.getLanguageIdByMimeType(e))}else{let t=e.getModel(r);t&&(s=t.getLanguageId())}return s&&s!==o.PLAINTEXT_LANGUAGE_ID?s:n.guessLanguageIdByFilepathOrFirstLine(r)}(e,c,d);r&&h.push(`${l(r)}-lang-file-icon`)}}return h},"getIconClassesForLanguageId",0,function(e){return["file-icon",`${l(e)}-lang-file-icon`]}])},905192,e=>{"use strict";var t=e.i(488259),i=e.i(970672);let n=(0,t.refineServiceDecorator)(i.IThemeService);e.s(["IWorkbenchThemeService",0,n])},509046,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("preferencesService");e.s(["IPreferencesService",0,t])},317317,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("hostColorSchemeService");e.s(["IHostColorSchemeService",0,t])},991307,425761,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataProfilesService");async function i(e){await new Promise(t=>setTimeout(t,e))}e.s(["IUserDataProfilesService",0,t],991307),e.s(["memoizedConstructor",0,function(e){var t;let i;return new Proxy(e,{construct:(t=(t,i)=>Reflect.construct(e,i),i=null,(...e)=>(null==i&&(i=t(...e)),i))})},"throttle",0,function(e,t,n){let o=Promise.resolve(),r=null;return async s=>{null==r?(r=s,o=o.then(async()=>await i(n)).then(async()=>{let t=r;r=null,await e(t)})):r=t(r,s),await o}},"unsupported",0,function(){throw Error("unsupported")}],425761)},13853,e=>{"use strict";var t,i,n=e.i(601293),o=e.i(561295);function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}(t=i||(i={}))[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent",e.s(["AutoClosingPairs",0,class{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}},"IndentAction",0,i,"StandardAutoClosingPairConditional",0,class{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case o.StandardTokenType.Other:return!0;case o.StandardTokenType.Comment:return this._inComment;case o.StandardTokenType.String:return this._inString;case o.StandardTokenType.RegEx:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.Digit0,n.CharCode.Digit9)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.a,n.CharCode.z)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.A,n.CharCode.Z))),this._neutralCharacter}}])},715658,689318,508898,e=>{"use strict";var t=e.i(781808),i=e.i(611130),n=e.i(98342),o=e.i(786091),r=e.i(771275);function s(e,t,i,n,a,l){if(Array.isArray(e)){let o=0;for(let r of e){let e=s(r,t,i,n,a,l);if(10===e)return e;e>o&&(o=e)}return o}if("string"==typeof e)return n?"*"===e?5:10*(e===i):0;if(!e)return 0;{let{language:s,pattern:c,scheme:d,hasAccessToAllModels:p,notebookType:u}=e;if(!n&&!p)return 0;u&&a&&(t=a);let h=0;if(d)if(d===t.scheme)h=10;else{if("*"!==d)return 0;h=5}if(s)if(s===i)h=10;else{if("*"!==s)return 0;h=Math.max(h,5)}if(u)if(u===l)h=10;else{if("*"!==u||void 0===l)return 0;h=Math.max(h,5)}if(c){let e;if(!((e="string"==typeof c?c:{...c,base:(0,r.normalize)(c.base)})===t.fsPath||(0,o.match)(e,t.fsPath)))return 0;h=10}return h}}e.s(["score",0,s,"targetsNotebooks",0,function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.some(e):!!t.notebookType)}],689318);class a{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new t.Emitter}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),o=i?new a(e.uri,e.getLanguageId(),i.uri,i.type,t):new a(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(o)){for(let i of(this._lastCandidate=o,this._entries))if(i._score=s(i.selector,o.uri,o.languageId,(0,n.shouldSynchronizeModel)(e),o.notebookUri,o.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:c(e.selector)&&!c(t.selector)?1:!c(e.selector)&&c(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(c):!!e.isBuiltin)}e.s(["LanguageFeatureRegistry",0,l],715658);let d=(0,e.i(488259).createDecorator)("ILanguageStatusService");e.s(["ILanguageStatusService",0,d],508898)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60293,e=>{"use strict";var t=e.i(816709),a=e.i(437122);let i=(0,t.create)((e,t)=>({favorites:[],loadedWorkspaceId:null,pendingFavorite:null,load:async i=>{let{loadedWorkspaceId:s}=t();if(s!==i)try{let t=await (0,a.fetchWithAuth)(`/api/workspaces/${i}/code-favorites`);if(t.ok){let a=await t.json();e({favorites:a,loadedWorkspaceId:i})}else e({favorites:[],loadedWorkspaceId:i})}catch{e({favorites:[],loadedWorkspaceId:i})}},addFavorite:async i=>{let{loadedWorkspaceId:s}=t();if(s)try{let t=await (0,a.fetchWithAuth)(`/api/workspaces/${s}/code-favorites`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(t.ok){let a=await t.json();e(e=>({favorites:[a,...e.favorites]}))}}catch{}},removeFavorite:async i=>{let{loadedWorkspaceId:s}=t();if(s)try{(await (0,a.fetchWithAuth)(`/api/workspaces/${s}/code-favorites/${encodeURIComponent(i)}`,{method:"DELETE"})).ok&&e(e=>({favorites:e.favorites.filter(e=>e.id!==i)}))}catch{}},clearFavorites:async t=>{try{(await (0,a.fetchWithAuth)(`/api/workspaces/${t}/code-favorites`,{method:"DELETE"})).ok&&e({favorites:[],loadedWorkspaceId:t})}catch{}},setPendingFavorite:t=>e({pendingFavorite:t})}));e.s(["useCodeFavoritesStore",0,i])},822619,e=>{"use strict";var t=e.i(344180),a=e.i(764556),i=e.i(60293),s=e.i(691223),o=e.i(381253),r=e.i(137340);let n=(0,e.i(433721).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);var c=e.i(159619),l=e.i(260218),d=e.i(191118),p=e.i(360112);function h({favorite:e,workspaceId:i,onJump:s,onRemove:d}){let u=(0,a.useCallback)(t=>{t.stopPropagation();let a=`${e.path}:${e.line}:${e.endLine}`;navigator.clipboard.writeText(a).then(()=>{p.toast.success(`已复制: ${a}`)})},[e]);return(0,t.jsxs)("div",{className:"group border rounded-lg p-3 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>{s(i,e.path,e.line,e.column,e.endLine,e.endColumn)},children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)(o.FileCode,{size:14,className:"shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:e.label||e.path})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",children:[(0,t.jsxs)("span",{className:"flex items-center gap-0.5 text-[10px] text-muted-foreground mr-0.5",children:[(0,t.jsx)(n,{size:10}),e.endLine>e.line?`${e.line}-${e.endLine}`:e.line]}),(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:u,title:"复制代码位置",children:(0,t.jsx)(c.Copy,{size:12})}),(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),d(e.id)},children:(0,t.jsx)(r.Trash2,{size:12})})]})]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground truncate mt-1",children:e.path}),e.snippet&&(0,t.jsx)("pre",{className:"text-[11px] text-muted-foreground bg-muted/50 rounded px-2 py-1 mt-1.5 max-h-16 overflow-auto whitespace-pre break-all font-mono",children:e.snippet})]})}e.s(["CodeFavoritesPanel",0,function({workspaceId:e}){let{favorites:r,load:n,removeFavorite:c}=(0,i.useCodeFavoritesStore)(),l=(0,s.useEditorStore)(e=>e.jumpToPosition);return((0,a.useEffect)(()=>{n(e)},[e,n]),0===r.length)?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground text-sm gap-2",children:[(0,t.jsx)(o.FileCode,{size:32,className:"opacity-30"}),(0,t.jsx)("span",{children:"暂无代码收藏"}),(0,t.jsx)("span",{className:"text-xs",children:"在编辑器中右键 → 添加到代码收藏"})]}):(0,t.jsx)(d.ScrollArea,{className:"h-full",children:(0,t.jsx)("div",{className:"grid gap-2 p-2",style:{gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))"},children:r.map(a=>(0,t.jsx)(h,{favorite:a,workspaceId:e,onJump:l,onRemove:c},a.id))})})}],822619)},306649,e=>{e.n(e.i(822619))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,576061,s=>{s.v(t=>Promise.all(["static/chunks/04fk~8rnrvs44.js"].map(t=>s.l(t))).then(()=>t(836670)))},510304,s=>{s.v(t=>Promise.all(["static/chunks/0j00r2f_n-.lx.js"].map(t=>s.l(t))).then(()=>t(193971)))},833255,s=>{s.v(t=>Promise.all(["static/chunks/07xvadmf~8bow.js","static/chunks/0a1rewz7xr-xi.js"].map(t=>s.l(t))).then(()=>t(140976)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,816709,e=>{"use strict";var t=e.i(764556);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>l,subscribe:e=>(r.add(e),()=>r.delete(e))},l=t=e(n,i,a);return a},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i};e.s(["create",0,e=>e?n(e):n],816709)},433721,e=>{"use strict";var t=e.i(764556);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:n,strokeWidth:l,absoluteStrokeWidth:o,className:s="",children:u,iconNode:d,...c},f)=>{let{size:v=24,strokeWidth:p=2,absoluteStrokeWidth:b=!1,color:m="currentColor",className:g=""}=(0,t.useContext)(a)??{},y=o??b?24*Number(l??p)/Number(n??v):l??p;return(0,t.createElement)("svg",{ref:f,...i,width:n??v??i.width,height:n??v??i.height,stroke:e??m,strokeWidth:y,className:r("lucide",g,s),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,i)=>{let a=(0,t.forwardRef)(({className:a,...o},s)=>(0,t.createElement)(l,{ref:s,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...o}));return a.displayName=n(e),a}],433721)},250226,e=>{"use strict";let t=(0,e.i(816709).create)(e=>({activePanel:"channel-list",setActivePanel:t=>e({activePanel:t}),overlays:[],registerOverlay:(t,r,n)=>e(e=>{if(n?.ignoreBack)return e;let i=e.overlays.findIndex(e=>e.id===t);if(-1===i)return{overlays:[...e.overlays,{id:t,close:r}]};let a=[...e.overlays];return a[i]={id:t,close:r},{overlays:a}}),unregisterOverlay:t=>e(e=>({overlays:e.overlays.filter(e=>e.id!==t)})),handleBackAction:()=>{let{overlays:r,activePanel:n}=t.getState(),i=r[r.length-1];return i?(i.close(),!0):"issue-detail"===n?(e({activePanel:"issue-list"}),!0):"chat"===n&&(e({activePanel:"channel-list"}),!0)}}));e.s(["useMobilePanelStore",0,t])},46752,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},370383,e=>{"use strict";var t=e.i(46752);let r={};function n(e){return l(e)?{...o(e,r)}:function(e){let t={...e};for(let e in t){let r=t[e];a(e,r)&&(t[e]=s(r))}return t}(e)}function i(e,r){return l(r)?o(r,e):function(e,r){if(!r)return e;for(let n in r){let i=r[n];switch(n){case"style":e[n]=(0,t.mergeObjects)(e.style,i);break;case"className":e[n]=d(e.className,i);break;default:a(n,i)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(c(n)){u(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:s(t):e}(e[n],i):e[n]=i}}return e}(e,r)}function a(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function l(e){return"function"==typeof e}function o(e,t){return l(e)?e(t):e??r}function s(e){return e?(...t)=>{let r=t[0];return c(r)&&u(r),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function d(e,t){return t?e?t+" "+e:t:e}function c(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,d,"mergeProps",0,function(e,t,r,a,l){if(!r&&!a&&!l&&!e)return n(t);let o=n(e);return t&&(o=i(o,t)),r&&(o=i(o,r)),a&&(o=i(o,a)),l&&(o=i(o,l)),o},"mergePropsN",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=i(t,e[r]);return t}])},267805,e=>{"use strict";let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,t])},549154,e=>{"use strict";var t=e.i(764556);let r={};e.s(["useRefWithInit",0,function(e,n){let i=t.useRef(r);return i.current===r&&(i.current=e(n)),i}])},204133,557576,287997,e=>{"use strict";var t=e.i(549154);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["useMergedRefs",0,function(e,i,a,l){var o,s,u,d,c;let f=(0,t.useRefWithInit)(r).current;return o=f,s=e,u=i,d=a,c=l,(o.refs[0]!==s||o.refs[1]!==u||o.refs[2]!==d||o.refs[3]!==c)&&n(f,[e,i,a,l]),f.callback},"useMergedRefsN",0,function(e){var i,a;let l=(0,t.useRefWithInit)(r).current;return i=l,a=e,(i.refs.length!==a.length||i.refs.some((e,t)=>e!==a[t]))&&n(l,e),l.callback}],204133);var i=e.i(764556);let a=parseInt(i.version,10);function l(e){return a>=e}e.s(["isReactVersionAtLeast",0,l],557576),e.s(["getReactElementRef",0,function(e){if(!i.isValidElement(e))return null;let t=e.props;return(l(19)?t?.ref:e.ref)??null}],287997)},873535,e=>{"use strict";e.s(["warn",0,function(){}])},863728,e=>{"use strict";let t=Object.freeze([]),r=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,r,"NOOP",0,function(){}])},662614,807719,880566,e=>{"use strict";e.s(["getStateAttributesProps",0,function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}],662614),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],807719),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],880566)},969490,e=>{"use strict";var t=e.i(267805),r=e.i(764556),n=e.i(204133),i=e.i(287997),a=e.i(46752);e.i(873535);var l=e.i(863728),o=e.i(662614),s=e.i(807719),u=e.i(880566),d=e.i(370383);let c=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,f,v={}){let p=f.render,b=function(e,t={}){var r;let{className:c,style:f,render:v}=e,{state:p=l.EMPTY_OBJECT,ref:b,props:m,stateAttributesMapping:g,enabled:y=!0}=t,h=y?(0,s.resolveClassName)(c,p):void 0,C=y?(0,u.resolveStyle)(f,p):void 0,E=y?(0,o.getStateAttributesProps)(p,g):l.EMPTY_OBJECT,x=y&&m?Array.isArray(r=m)?(0,d.mergePropsN)(r):(0,d.mergeProps)(void 0,r):void 0,R=y?(0,a.mergeObjects)(E,x)??{}:l.EMPTY_OBJECT;return("u">typeof document&&(y?Array.isArray(b)?R.ref=(0,n.useMergedRefsN)([R.ref,(0,i.getReactElementRef)(v),...b]):R.ref=(0,n.useMergedRefs)(R.ref,(0,i.getReactElementRef)(v),b):(0,n.useMergedRefs)(null,null)),y)?(void 0!==h&&(R.className=(0,d.mergeClassNames)(R.className,h)),void 0!==C&&(R.style=(0,a.mergeObjects)(R.style,C)),R):l.EMPTY_OBJECT}(f,v);return!1===v.enabled?null:function(e,n,i,a){if(n){if("function"==typeof n)return n(i,a);let e=(0,d.mergeProps)(i,n.props);e.ref=i.ref;let t=n;return t?.$$typeof===c&&(t=r.Children.toArray(n)[0]),r.cloneElement(t,e)}if(e&&"string"==typeof e){var l,o;return l=e,o=i,"button"===l?(0,r.createElement)("button",{type:"button",...o,key:o.key}):"img"===l?(0,r.createElement)("img",{alt:"",...o,key:o.key}):r.createElement(l,o)}throw Error((0,t.default)(8))}(e,p,b,v.state??l.EMPTY_OBJECT)}])},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>i=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:l,defaultVariants:o}=t,s=Object.keys(l).map(e=>{let t=null==i?void 0:i[e],n=null==o?void 0:o[e];if(null===t)return null;let a=r(t)||r(n);return l[e][a]}),u=i&&Object.entries(i).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},92615,e=>{"use strict";let t;function r(){return"u">typeof window}function n(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function o(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function c(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,p=e=>!!e&&"none"!==e;function b(e){let t=o(e)?y(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!m()&&(p(t.backdropFilter)||p(t.filter))||f.test(t.willChange||"")||v.test(t.contain||"")}function m(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function g(e){return/^(html|body|#document)$/.test(n(e))}function y(e){return i(e).getComputedStyle(e)}function h(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function C(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,y,"getContainingBlock",0,function(e){let t=h(e);for(;s(t)&&!g(t);){if(b(t))return t;if(c(t))break;t=h(t)}return null},"getDocumentElement",0,a,"getFrameElement",0,C,"getNodeName",0,n,"getNodeScroll",0,function(e){return o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,r,n){var a;void 0===r&&(r=[]),void 0===n&&(n=!0);let l=function e(t){let r=h(t);return g(r)?t.ownerDocument?t.ownerDocument.body:t.body:s(r)&&d(r)?r:e(r)}(t),o=l===(null==(a=t.ownerDocument)?void 0:a.body),u=i(l);if(!o)return r.concat(l,e(l,[],n));{let t=C(u);return r.concat(u,u.visualViewport||[],d(l)?l:[],t&&n?e(t):[])}},"getParentNode",0,h,"getWindow",0,i,"isContainingBlock",0,b,"isElement",0,o,"isHTMLElement",0,s,"isLastTraversableNode",0,g,"isNode",0,l,"isOverflowElement",0,d,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(n(e))},"isTopLayer",0,c,"isWebKit",0,m])},29905,e=>{"use strict";var t=e.i(764556),r=e.i(549154);let n=t[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],i=n&&n!==t.useLayoutEffect?n:e=>e();function a(){let e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){}e.s(["useStableCallback",0,function(e){let t=(0,r.useRefWithInit)(a).current;return t.next=e,i(t.effect),t.trampoline}])},277642,e=>{"use strict";var t=e.i(764556);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,r])},931709,352360,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(92615),n=e.i(29905),i=e.i(277642),a=e.i(370383),l=e.i(267805);let o=t.createContext(void 0);function s(e=!1){let r=t.useContext(o);if(void 0===r&&!e)throw Error((0,l.default)(16));return r}function u(e){return(0,r.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,s],352360),e.s(["useButton",0,function(e={}){let{disabled:r=!1,focusableWhenDisabled:l,tabIndex:o=0,native:d=!0,composite:c}=e,f=t.useRef(null),v=s(!0),p=c??void 0!==v,{props:b}=function(e){let{focusableWhenDisabled:r,disabled:n,composite:i=!1,tabIndex:a=0,isNativeButton:l}=e,o=i&&!1!==r,s=i&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&r&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=a,!l&&n&&(e.tabIndex=r?a:-1)),(l&&(r||o)||!l&&n)&&(e["aria-disabled"]=n),l&&(!r||s)&&(e.disabled=n),e},[i,n,r,o,s,l,a])}}({focusableWhenDisabled:l,disabled:r,composite:p,tabIndex:o,isNativeButton:d}),m=t.useCallback(()=>{let e=f.current;u(e)&&p&&r&&void 0===b.disabled&&e.disabled&&(e.disabled=!1)},[r,b.disabled,p]);return(0,i.useIsoLayoutEffect)(m,[m]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:i,onKeyDown:l,onPointerDown:o,...s}=e,c=d?"button":void 0;return(0,a.mergeProps)({type:c,onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||n?.(e)},onKeyDown(e){var n;if(r||((0,a.makeEventPreventable)(e),l?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,o=e.currentTarget,s=u(o),c=!d&&(n=o,!!(n?.tagName==="A"&&n?.href)),f=i&&(d?s:!c),v="Enter"===e.key,b=" "===e.key,m=o.getAttribute("role"),g=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(i&&p&&b){if(e.defaultPrevented&&g)return;e.preventDefault(),c||d&&s?(o.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!d&&(b||v)&&e.preventDefault(),!d&&v&&t?.(e))},onKeyUp(e){r||(((0,a.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&d&&p&&u(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||p||" "!==e.key||t?.(e)))},onPointerDown(e){r?e.preventDefault():o?.(e)}},d?void 0:{role:"button"},b,s)},[r,b,p,d]),buttonRef:(0,n.useStableCallback)(e=>{f.current=e,m()})}}],931709)},674548,e=>{"use strict";var t=e.i(764556),r=e.i(931709),n=e.i(969490);let i=t.forwardRef(function(e,t){let{render:i,className:a,disabled:l=!1,focusableWhenDisabled:o=!1,nativeButton:s=!0,style:u,...d}=e,{getButtonProps:c,buttonRef:f}=(0,r.useButton)({disabled:l,focusableWhenDisabled:o,native:s});return(0,n.useRenderElement)("button",e,{state:{disabled:l},ref:[t,f],props:[d,c]})});e.s(["Button",0,i])},260218,e=>{"use strict";var t=e.i(344180),r=e.i(674548),n=e.i(294237),i=e.i(465458);let a=(0,n.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:l="default",...o}){return(0,t.jsx)(r.Button,{"data-slot":"button",className:(0,i.cn)(a({variant:n,size:l,className:e})),...o})},"buttonVariants",0,a])},394822,e=>{"use strict";var t=e.i(764556);let r={...t},n=0,i=r.useId;e.s(["useId",0,function(e,r){if(void 0!==i){let t=i();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let[i,a]=t.useState(e),l=e||i;return t.useEffect(()=>{null==i&&(n+=1,a(`${r}-${n}`))},[i,r]),l}(e,r)}],394822)},139236,e=>{"use strict";var t=e.i(394822);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},130522,e=>{"use strict";var t=e.i(764556);let r=[];e.s(["useOnMount",0,function(e){t.useEffect(e,r)}])},232449,e=>{"use strict";var t=e.i(549154),r=e.i(130522);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},410421,e=>{"use strict";var t=e.i(92615);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.isShadowRoot)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},422561,e=>{"use strict";e.s(["addEventListener",0,function(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}])},454889,e=>{"use strict";let t="u">typeof navigator,r=function(){if(!t)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),n=function(){if(!t)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),i=function(){if(!t)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),a="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),l="MacIntel"===r.platform&&r.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(r.platform);t&&/firefox/i.test(i);let o=t&&/apple/i.test(navigator.vendor);t&&/Edg/i.test(i);let s=t&&/android/i.test(n)||/android/i.test(i),u=t&&n.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,d=i.includes("jsdom/");e.s(["isAndroid",0,s,"isIOS",0,l,"isJSDOM",0,d,"isMac",0,u,"isSafari",0,o,"isWebKit",0,a])},636707,e=>{"use strict";e.s([])},125231,438904,e=>{"use strict";e.i(8890);var t,r=e.i(267805),n=e.i(764556),i=e.i(863728);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...o};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,o,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],438904);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:o.touched,setTouched:i.NOOP,dirty:o.dirty,setDirty:i.NOOP,filled:o.filled,setFilled:i.NOOP,focused:o.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],125231)},50891,e=>{"use strict";var t=e.i(267805),r=e.i(764556);let n=r.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});e.s(["useFieldsetRootContext",0,function(e=!1){let i=r.useContext(n);if(!i&&!e)throw Error((0,t.default)(86));return i}])},380414,443124,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(863728);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}],380414);let i=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,i,"useLabelableContext",0,function(){return t.useContext(i)}],443124)},84987,593947,2602,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(29905),n=e.i(125231),i=e.i(438904),a=e.i(50891),l=e.i(380414),o=e.i(549154),s=e.i(370383),u=e.i(139236),d=e.i(443124),c=e.i(344180);let f=function(e){let n=(0,u.useBaseUiId)(),i=void 0===e.controlId?n:e.controlId,[a,l]=t.useState(i),[f,v]=t.useState(e.labelId),[p,b]=t.useState([]),m=(0,o.useRefWithInit)(()=>new Map),{messageIds:g}=(0,d.useLabelableContext)(),y=(0,r.useStableCallback)((e,t)=>{let r=m.current;void 0===t?r.delete(e):(r.set(e,t),l(e=>{let t;if(0!==r.size){for(let n of r.values()){if(void 0!==e&&n===e)return e;void 0===t&&(t=n)}return t}}))}),h=t.useCallback(e=>(0,s.mergeProps)({"aria-describedby":g.concat(p).join(" ")||void 0},e),[g,p]),C=t.useMemo(()=>({controlId:a,registerControlId:y,labelId:f,setLabelId:v,messageIds:p,setMessageIds:b,getDescriptionProps:h}),[a,y,f,v,p,b,h]);return(0,c.jsx)(d.LabelableContext.Provider,{value:C,children:e.children})};e.s(["LabelableProvider",0,f],593947);var v=e.i(969490),p=e.i(863728),b=e.i(232449);function m(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,m],2602);let g=Object.keys(i.DEFAULT_VALIDITY_STATE);var y=e.i(106206),h=e.i(277642);let C=t.forwardRef(function(e,o){let{errors:u,validationMode:f,submitAttemptedRef:C}=(0,l.useFormContext)(),{render:E,className:x,validate:R,validationDebounceTime:T=0,validationMode:k=f,name:I,disabled:S=!1,invalid:w,dirty:P,touched:O,actionsRef:L,style:M,...A}=e,{disabled:D}=(0,a.useFieldsetRootContext)(),N=(0,r.useStableCallback)(R||(()=>null)),F=D||S,[V,j]=t.useState(!1),[B,_]=t.useState(!1),[U,z]=t.useState(!1),[$,W]=t.useState(!1),Y=P??B,H=O??V,J=t.useRef(!1),K=(0,r.useStableCallback)(e=>{void 0===P&&(e&&(J.current=!0),_(e))}),Z=(0,r.useStableCallback)(e=>{void 0===O&&j(e)}),X=(0,r.useStableCallback)(()=>"onChange"===k||"onSubmit"===k&&C.current),q=!!I&&Object.hasOwn(u,I)&&void 0!==u[I],G=!0===w||q,[Q,ee]=t.useState({state:i.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!G&&Q.state.valid,er=t.useMemo(()=>({disabled:F,touched:H,dirty:Y,valid:et,filled:U,focused:$}),[F,H,Y,et,U,$]),en=function(e){let{formRef:n,clearErrors:a}=(0,l.useFormContext)(),{setValidityData:o,validate:u,validityData:c,validationDebounceTime:f,invalid:v,markedDirtyRef:y,state:h,name:C,shouldValidateOnChange:E}=e,{controlId:x,getDescriptionProps:R}=(0,d.useLabelableContext)(),T=(0,b.useTimeout)(),k=t.useRef(null),I=(0,r.useStableCallback)(async(e,t=!1)=>{let r,a=k.current;if(!a)return;if(t){if(!1!==h.valid)return;let t=a.validity;if(!t.valueMissing){let t={value:e,state:{...i.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:c.initialValue};if(a.setCustomValidity(""),x){let e=n.current.fields.get(x);e&&n.current.fields.set(x,{...e,...m(t,!1)})}o(t);return}let r=g.reduce((e,r)=>(e[r]=t[r],e),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let r of g)"valid"!==r&&("valueMissing"===r&&(t=e[r]),e[r]&&(t=!1));return t}(r))return}T.clear();let l=null,s=[],d=function(e){let t=g.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of g)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!y.current&&(t.valid=!0,t.valueMissing=!1),t}(a),f=E();if(a.validationMessage&&!f)r=a.validationMessage,s=[a.validationMessage];else{let t=u(e,Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(l="object"==typeof t&&null!==t&&"then"in t?await t:t)?(d.valid=!1,d.customError=!0,Array.isArray(l)?(s=l,a.setCustomValidity(l.join("\n"))):l&&(s=[l],a.setCustomValidity(l))):f&&(a.setCustomValidity(""),d.customError=!1,a.validationMessage?(r=a.validationMessage,s=[a.validationMessage]):a.validity.valid&&!d.valid&&(d.valid=!0))}let p={value:e,state:d,error:r??(Array.isArray(l)?l[0]:l??""),errors:s,initialValue:c.initialValue};if(x){let e=n.current.fields.get(x);e&&n.current.fields.set(x,{...e,...m(p,v)})}o(p)}),S=t.useCallback((e={})=>(0,s.mergeProps)(R,!1===h.valid?{"aria-invalid":!0}:p.EMPTY_OBJECT,e),[R,h.valid]),w=t.useCallback((e={})=>(0,s.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(a(C),!E())return void I(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?I(t.value):(T.clear(),f?T.start(f,()=>{I(t.value)}):I(t.value))}},S(e)),[S,a,C,T,I,f,E]);return t.useMemo(()=>({getValidationProps:S,getInputValidationProps:w,inputRef:k,commit:I}),[S,w,I])}({setValidityData:ee,validate:N,validityData:Q,validationDebounceTime:T,invalid:G,markedDirtyRef:J,state:er,name:I,shouldValidateOnChange:X}),ei=t.useCallback(()=>{J.current=!0,en.commit(Q.value)},[en,Q]),ea=function(e){let{commit:n,invalid:i,markedDirtyRef:a,name:o,setValidityData:s,validityData:u}=e,{formRef:d}=(0,l.useFormContext)(),c=t.useRef(null),f=t.useRef(null),v=t.useRef(null),p=(0,r.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),b=(0,r.useStableCallback)((e=!0)=>{let t=f.current;if(!t)return;let r=t.value;void 0===r&&(r=p()),a.current=!0,e?y.flushSync(()=>n(r)):n(r)});function g(e=f.current?.id){e&&d.current.fields.delete(e)}return(0,h.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&d.current.fields.set(e.id,{getValue:p,name:o,controlRef:e.controlRef??v,validityData:m(u,i),validate:b})},[d,p,i,o,b,u]),(0,h.useIsoLayoutEffect)(()=>{let e=d.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[d]),(0,r.useStableCallback)((e,t)=>{let r;if(!t){c.current===e&&(c.current=null,g(),f.current=null);return}let n=f.current?.id;c.current=e,f.current=t,n&&n!==t.id&&g(n),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=p()),null===u.initialValue&&null!==t&&s(e=>({...e,initialValue:t}))}(),(r=f.current)&&r.id&&d.current.fields.set(r.id,{getValue:p,name:o,controlRef:r.controlRef??v,validityData:m(u,i),validate:b})})}({commit:en.commit,invalid:G,markedDirtyRef:J,name:I,setValidityData:ee,validityData:Q});t.useImperativeHandle(L,()=>({validate:ei}),[ei]);let el=t.useMemo(()=>({invalid:G,name:I,validityData:Q,setValidityData:ee,disabled:F,touched:H,setTouched:Z,dirty:Y,setDirty:K,filled:U,setFilled:z,focused:$,setFocused:W,validate:N,validationMode:k,validationDebounceTime:T,shouldValidateOnChange:X,state:er,markedDirtyRef:J,registerFieldControl:ea,validation:en}),[G,I,Q,F,H,Z,Y,K,U,z,$,W,N,k,T,X,er,ea,en]),eo=(0,v.useRenderElement)("div",e,{ref:o,state:er,props:A,stateAttributesMapping:i.fieldValidityMapping});return(0,c.jsx)(n.FieldRootContext.Provider,{value:el,children:eo})}),E=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(C,{...e,ref:t})})});e.s(["FieldRoot",0,E],84987)},559713,e=>{"use strict";var t=e.i(277642),r=e.i(139236);e.s(["useRegisteredLabelId",0,function(e,n){let i=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(i),()=>{n(void 0)}),[i,n]),i}])},262407,213700,987854,781406,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(125231),n=e.i(438904),i=e.i(969490),a=e.i(443124),l=e.i(92615),o=e.i(526850),s=e.i(29905),u=e.i(410421),d=e.i(559713);function c(e={}){let{id:t,fallbackControlId:r,native:n=!1,setLabelId:i,focusControl:v}=e,{controlId:p,setLabelId:b}=(0,a.useLabelableContext)(),m=(0,s.useStableCallback)(e=>{b(e),i?.(e)}),g=(0,d.useRegisteredLabelId)(t,m),y=p??r;function h(e){let t=(0,u.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),n||function(e){if(v)return v(e,y);if(!y)return;let t=(0,o.ownerDocument)(e.currentTarget).getElementById(y);(0,l.isHTMLElement)(t)&&f(t)}(e))}return n?{id:g,htmlFor:y??void 0,onMouseDown:h}:{id:g,onClick:h,onPointerDown(e){e.preventDefault()}}}function f(e){e.focus({focusVisible:!0})}e.s(["focusElementWithVisible",0,f,"useLabel",0,c],213700);let v=t.forwardRef(function(e,l){let{render:o,className:s,style:u,id:d,nativeLabel:f=!0,...v}=e,p=(0,r.useFieldRootContext)(!1),{labelId:b}=(0,a.useLabelableContext)(),m=t.useRef(null),g=c({id:b??d,native:f});return(0,i.useRenderElement)("label",e,{ref:[l,m],state:p.state,props:[g,v],stateAttributesMapping:n.fieldValidityMapping})});e.s(["FieldLabel",0,v],262407);var p=e.i(277642),b=e.i(380414),m=e.i(139236),g=e.i(273598),y=e.i(282458),h=e.i(254891),C=e.i(344180);let E={...n.fieldValidityMapping,...y.transitionStatusMapping},x=t.forwardRef(function(e,n){let{render:l,id:o,className:s,match:u,style:d,...c}=e,f=(0,m.useBaseUiId)(o),{validityData:v,state:y,name:x}=(0,r.useFieldRootContext)(!1),{setMessageIds:R}=(0,a.useLabelableContext)(),{errors:T}=(0,b.useFormContext)(),k=x?T[x]:null,I="string"==typeof u,S=!1;S=!0===u||(I?!!v.state[u]:!!k||!1===v.state.valid);let{mounted:w,transitionStatus:P,setMounted:O}=(0,h.useTransitionStatus)(S);(0,p.useIsoLayoutEffect)(()=>{if(S&&f)return R(e=>e.concat(f)),()=>{R(e=>e.filter(e=>e!==f))}},[S,f,R]);let L=t.useRef(null),[M,A]=t.useState(null),[D,N]=t.useState(null),F=v.errors.length>1?(0,C.jsx)("ul",{children:v.errors.map(e=>(0,C.jsx)("li",{children:e},e))}):v.error,V=I?F:k||F,j=v.error;null!=k?j=Array.isArray(k)?JSON.stringify(k):k:v.errors.length>1&&(j=JSON.stringify(v.errors)),S&&j!==D&&(N(j),A(V)),(0,g.useOpenChangeComplete)({open:S,ref:L,onComplete(){S||O(!1)}});let B={...y,transitionStatus:P},_=(0,i.useRenderElement)("div",e,{ref:[n,L],state:B,props:[{id:f,children:S?V:M},c],stateAttributesMapping:E,enabled:w});return w?_:null});e.s(["FieldError",0,x],987854);let R=t.forwardRef(function(e,t){let{render:l,id:o,className:s,style:u,...d}=e,c=(0,m.useBaseUiId)(o),f=(0,r.useFieldRootContext)(!1),{setMessageIds:v}=(0,a.useLabelableContext)();return(0,p.useIsoLayoutEffect)(()=>{if(c)return v(e=>e.concat(c)),()=>{v(e=>e.filter(e=>e!==c))}},[c,v]),(0,i.useRenderElement)("p",e,{ref:t,state:f.state,props:[{id:c},d],stateAttributesMapping:n.fieldValidityMapping})});e.s(["FieldDescription",0,R],781406)},975698,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(125231);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:a=!0,getValue:l,id:o,value:s}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&a)return u(t,{controlRef:e,getValue:l,id:o,value:s}),()=>{u(t,void 0)}},[e,a,l,o,u,s])}])},575665,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(29905),i=e.i(549154),a=e.i(92615),l=e.i(863728),o=e.i(139236),s=e.i(443124);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:v}=(0,s.useLabelableContext)(),p=(0,o.useBaseUiId)(u),b=d?f:void 0,m=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),g=t.useRef(!1),y=t.useRef(null!=u),h=(0,n.useStableCallback)(()=>{g.current&&v!==l.NOOP&&(g.current=!1,v(m.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(v!==l.NOOP){if(d){let t=c?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:b??p}else if(null!=u)y.current=!0,e=u;else{if(!y.current)return void h();e=p}if(void 0===e)return void h();g.current=!0,v(m.current,e)}},[u,c,b,v,d,p,m,h]),t.useEffect(()=>h,[h]),f??p}])},681622,e=>{"use strict";var t=e.i(344180),r=e.i(764556);e.i(8890),e.i(636707);var n=e.i(84987),i=e.i(262407),a=e.i(987854),l=e.i(781406),o=e.i(535270),s=e.i(277642),u=e.i(526850),d=e.i(29905),c=e.i(125231),f=e.i(975698),v=e.i(443124),p=e.i(575665),b=e.i(438904),m=e.i(969490),g=e.i(602453),y=e.i(742665),h=e.i(410421);let C=r.forwardRef(function(e,t){let{render:n,className:i,id:a,name:l,value:C,disabled:E=!1,onValueChange:x,defaultValue:R,autoFocus:T=!1,style:k,...I}=e,{state:S,name:w,disabled:P,setTouched:O,setDirty:L,validityData:M,setFocused:A,setFilled:D,validationMode:N,validation:F}=(0,c.useFieldRootContext)(),V=P||E,j={...S,disabled:V},{labelId:B}=(0,v.useLabelableContext)(),_=(0,p.useLabelableId)({id:a});(0,s.useIsoLayoutEffect)(()=>{let e=null!=C;F.inputRef.current?.value||e&&""!==C?D(!0):e&&""===C&&D(!1)},[F.inputRef,D,C]);let U=r.useRef(null);(0,s.useIsoLayoutEffect)(()=>{T&&U.current===(0,h.activeElement)((0,u.ownerDocument)(U.current))&&A(!0)},[T,A]);let[z]=(0,o.useControlled)({controlled:C,default:R,name:"FieldControl",state:"value"}),$=void 0!==C,W=$?z:void 0,Y=(0,d.useStableCallback)(()=>F.inputRef.current?.value);return(0,f.useRegisterFieldControl)(F.inputRef,{id:_,value:W,getValue:Y}),(0,m.useRenderElement)("input",e,{ref:[t,U],state:j,props:[{id:_,disabled:V,name:w??l,ref:F.inputRef,"aria-labelledby":B,autoFocus:T,...$?{value:W}:{defaultValue:R},onChange(e){let t=e.currentTarget.value;x?.(t,(0,g.createChangeEventDetails)(y.REASONS.none,e.nativeEvent)),L(t!==M.initialValue),D(""!==t)},onFocus(){A(!0)},onBlur(e){O(!0),A(!1),"onBlur"===N&&F.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(O(!0),F.commit(e.currentTarget.value))}},F.getInputValidationProps(),I],stateAttributesMapping:b.fieldValidityMapping})});var E=e.i(2602),x=e.i(254891);let R=r.createContext({disabled:!1});var T=e.i(593947),k=e.i(267805);let I=r.createContext(void 0),S=r.forwardRef(function(e,n){let{render:i,className:a,style:l,disabled:o=!1,...s}=e,{state:u,disabled:d}=(0,c.useFieldRootContext)(!1),f=d||o,v=function(e=!0){let t=r.useContext(I);if(void 0===t&&!e)throw Error((0,k.default)(3));return t}(),p=v?.parent.id,g=v?.allValues!==void 0,y=r.useMemo(()=>({disabled:f}),[f]),h=(0,m.useRenderElement)("div",e,{ref:n,state:u,props:s,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(T.LabelableProvider,{controlId:g?p:void 0,children:(0,t.jsx)(R.Provider,{value:y,children:h})})});e.s(["Control",0,C,"Description",()=>l.FieldDescription,"Error",()=>a.FieldError,"Item",0,S,"Label",()=>i.FieldLabel,"Root",()=>n.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:i,invalid:a}=(0,c.useFieldRootContext)(!1),l=r.useMemo(()=>(0,E.getCombinedFieldValidityData)(i,a),[i,a]),o=!1===l.state.valid,{transitionStatus:s}=(0,x.useTransitionStatus)(o),u=r.useMemo(()=>({...l,validity:l.state,transitionStatus:s}),[l,s]);return(0,t.jsx)(r.Fragment,{children:n(u)})}],906646);var w=e.i(906646),w=w;let P=r.forwardRef(function(e,r){return(0,t.jsx)(w.Control,{ref:r,...e})});var O=e.i(465458);e.s(["Input",0,function({className:e,type:n,onKeyDown:i,...a}){let l=r.useRef(!1),o=r.useCallback(()=>{l.current=!0},[]),s=r.useCallback(()=>{l.current=!1},[]),u=r.useCallback(e=>{if("Enter"===e.key&&l.current){e.preventDefault(),e.stopPropagation();return}i?.(e)},[i]);return(0,t.jsx)(P,{type:n,"data-slot":"input",className:(0,O.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),onCompositionStart:o,onCompositionEnd:s,onKeyDown:u,...a})}],681622)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,144988,e=>{"use strict";let t=(0,e.i(433721).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["default",0,t])},193251,e=>{"use strict";let t=(0,e.i(433721).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],193251)},984178,e=>{"use strict";var t=e.i(144988);e.s(["FileIcon",()=>t.default])},460578,e=>{"use strict";var t=e.i(344180),n=e.i(764556),i=e.i(898822),r=e.i(129981),a=e.i(972846),l=e.i(984178),o=e.i(465458);let s=0;e.s(["FileUpload",0,function({value:e=[],onChange:u,accept:c,maxFiles:d=0,maxSize:f,disabled:p=!1,className:b,placeholder:g}){let[h,v]=(0,n.useState)(null),m=(0,n.useCallback)((t,n)=>{if(v(null),n.length>0){let e=n[0].errors[0]?.message;e&&v(e)}if(0===t.length)return;let i=t.map(e=>{let t={id:`upload-${++s}`,file:e};return e.type.startsWith("image/")&&(t.preview=URL.createObjectURL(e)),t}),r=d>0?[...e,...i].slice(0,d):[...e,...i];u?.(r)},[e,u,d]),x=(0,n.useCallback)(t=>{let n=e.find(e=>e.id===t);n?.preview&&URL.revokeObjectURL(n.preview),u?.(e.filter(e=>e.id!==t))},[e,u]),{getRootProps:y,getInputProps:C,isDragActive:R}=(0,i.useDropzone)({onDrop:m,accept:c,maxFiles:d||void 0,maxSize:f,disabled:p,noClick:!1});return(0,t.jsxs)("div",{className:(0,o.cn)("space-y-3",b),children:[(0,t.jsxs)("div",{...y(),className:(0,o.cn)("relative flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-8 transition-colors cursor-pointer",R?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-accent/50",p&&"pointer-events-none opacity-50"),children:[(0,t.jsx)("input",{...C()}),(0,t.jsx)(r.Upload,{className:"size-8 text-muted-foreground"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:g??(R?"松开即可上传":"拖拽文件到此处,或点击选择")}),!R&&(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["支持多文件",f?`,单文件最大 ${(f/1024/1024).toFixed(0)}MB`:""]})]})]}),h&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:h}),e.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>{var n;return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2 overflow-hidden",children:[e.preview?(0,t.jsx)("img",{src:e.preview,alt:"",className:"size-10 rounded-md object-cover"}):(0,t.jsx)("div",{className:"flex size-10 items-center justify-center rounded-md bg-muted",children:(0,t.jsx)(l.FileIcon,{className:"size-5 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm",children:e.file.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(n=e.file.size)<1024?`${n} B`:n<1048576?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`})]}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),x(e.id)},className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors",children:(0,t.jsx)(a.X,{className:"size-4 text-muted-foreground"})})]},e.id)})})]})}])},790766,e=>{"use strict";e.s([])},257295,619279,415279,439485,e=>{"use strict";var t,n,i=e.i(764556),r=e.i(535270),a=e.i(277642),l=e.i(29905),o=e.i(139236),s=e.i(602453),u=e.i(742665),c=e.i(427708),d=e.i(254891);e.s(["useCollapsibleRoot",0,function(e){let{open:t,defaultOpen:n,onOpenChange:f,disabled:p}=e,b=void 0!==t,[g,h]=(0,r.useControlled)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:v,setMounted:m,transitionStatus:x}=(0,d.useTransitionStatus)(g,!0,!0),[y,C]=i.useState(g),[{height:R,width:S},E]=i.useState({height:void 0,width:void 0}),A=(0,o.useBaseUiId)(),[I,M]=i.useState(),T=I??A,[w,O]=i.useState(!1),[k,D]=i.useState(!1),N=i.useRef(null),L=i.useRef(null),P=i.useRef(null),j=i.useRef(null),W=(0,c.useAnimationsFinished)(j,!1),_=(0,l.useStableCallback)(e=>{let t=!g,n=(0,s.createChangeEventDetails)(u.REASONS.triggerPress,e.nativeEvent);if(f(t,n),n.isCanceled)return;let i=j.current;"css-animation"===L.current&&null!=i&&i.style.removeProperty("animation-name"),w||k||(null!=L.current&&"css-animation"!==L.current&&!v&&t&&m(!0),"css-animation"===L.current&&(!y&&t&&C(!0),!v&&t&&m(!0))),h(t),"none"===L.current&&v&&!t&&m(!1)});return(0,a.useIsoLayoutEffect)(()=>{b&&"none"===L.current&&!g&&m(!1)},[b,g,t,m]),i.useMemo(()=>({abortControllerRef:N,animationTypeRef:L,disabled:p,handleTrigger:_,height:R,mounted:v,open:g,panelId:T,panelRef:j,runOnceAnimationsFinish:W,setDimensions:E,setHiddenUntilFound:O,setKeepMounted:D,setMounted:m,setOpen:h,setPanelIdState:M,setVisible:C,transitionDimensionRef:P,transitionStatus:x,visible:y,width:S}),[N,L,p,_,R,v,g,T,j,W,E,O,D,m,h,C,P,x,y,S])}],257295),e.i(8890);var f=e.i(267805);let p=i.createContext(void 0);e.s(["CollapsibleRootContext",0,p,"useCollapsibleRootContext",0,function(){let e=i.useContext(p);if(void 0===e)throw Error((0,f.default)(15));return e}],619279);var b=e.i(282458);let g=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=b.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=b.TransitionStatusDataAttributes.endingStyle]="endingStyle",t);e.s(["CollapsiblePanelDataAttributes",0,g],415279);let h=((n={}).panelOpen="data-panel-open",n),v={[g.open]:""},m={[g.closed]:""};e.s(["collapsibleOpenStateMapping",0,{open:e=>e?v:m},"triggerOpenStateMapping",0,{open:e=>e?{[h.panelOpen]:""}:null}],439485)},998723,406899,134319,e=>{"use strict";e.i(8890);var t=e.i(764556),n=e.i(29905),i=e.i(969490),r=e.i(257295),a=e.i(619279),l=e.i(439485),o=e.i(282458);let s={...l.collapsibleOpenStateMapping,...o.transitionStatusMapping};e.s(["collapsibleStateAttributesMapping",0,s],406899);var u=e.i(344180);let c=t.forwardRef(function(e,l){let{render:o,className:c,defaultOpen:d=!1,disabled:f=!1,onOpenChange:p,open:b,style:g,...h}=e,v=(0,n.useStableCallback)(p),m=(0,r.useCollapsibleRoot)({open:b,defaultOpen:d,onOpenChange:v,disabled:f}),x=t.useMemo(()=>({open:m.open,disabled:m.disabled,transitionStatus:m.transitionStatus}),[m.open,m.disabled,m.transitionStatus]),y=t.useMemo(()=>({...m,onOpenChange:v,state:x}),[m,v,x]),C=(0,i.useRenderElement)("div",e,{state:x,ref:l,props:h,stateAttributesMapping:s});return(0,u.jsx)(a.CollapsibleRootContext.Provider,{value:y,children:C})});e.s(["CollapsibleRoot",0,c],998723);var d=e.i(931709);let f={...l.triggerOpenStateMapping,...o.transitionStatusMapping},p=t.forwardRef(function(e,n){let{panelId:r,open:l,handleTrigger:o,state:s,disabled:u}=(0,a.useCollapsibleRootContext)(),{className:c,disabled:p=u,id:b,render:g,nativeButton:h=!0,style:v,...m}=e,{getButtonProps:x,buttonRef:y}=(0,d.useButton)({disabled:p,focusableWhenDisabled:!0,native:h}),C=t.useMemo(()=>({"aria-controls":l?r:void 0,"aria-expanded":l,onClick:o}),[r,l,o]);return(0,i.useRenderElement)("button",e,{state:s,ref:[n,y],props:[C,m,x],stateAttributesMapping:f})});e.s(["CollapsibleTrigger",0,p],134319)},18158,e=>{"use strict";e.i(8890);var t,n=e.i(764556),i=e.i(422561),r=e.i(277642),a=e.i(29905),l=e.i(204133),o=e.i(130522),s=e.i(859092),u=e.i(602453),c=e.i(742665),d=e.i(415279);let f=((t={}).disabled="data-disabled",t.orientation="data-orientation",t);e.s(["useCollapsiblePanel",0,function(e){let{abortControllerRef:t,animationTypeRef:p,externalRef:b,height:g,hiddenUntilFound:h,keepMounted:v,id:m,mounted:x,onOpenChange:y,open:C,panelRef:R,runOnceAnimationsFinish:S,setDimensions:E,setMounted:A,setOpen:I,setVisible:M,transitionDimensionRef:T,visible:w,width:O}=e,k=n.useRef(!1),D=n.useRef(null),N=n.useRef(C),L=n.useRef(C),P=(0,s.useAnimationFrame)(),j=n.useMemo(()=>"css-animation"===p.current?!w:!C&&!x,[C,x,w,p]),W=(0,a.useStableCallback)(e=>{if(!e)return;if(null==p.current||null==T.current){let t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,i="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&i||("none"===t.animationName&&"0s"!==t.transitionDuration?p.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?p.current="css-animation":p.current="none"),"horizontal"===e.getAttribute(f.orientation)||t.transitionProperty.indexOf("width")>-1?T.current="width":T.current="height"}if("css-transition"!==p.current)return;(void 0===g||void 0===O)&&(E({height:e.scrollHeight,width:e.scrollWidth}),L.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=s.AnimationFrame.request(()=>{L.current=!1,n=s.AnimationFrame.request(()=>{setTimeout(()=>{e.style.removeProperty("transition-duration")})})}),()=>{s.AnimationFrame.cancel(t),s.AnimationFrame.cancel(n)}}),_=(0,l.useMergedRefs)(b,R,W);return(0,r.useIsoLayoutEffect)(()=>{if("css-transition"!==p.current)return;let e=R.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),C){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")}),L.current||v||e.setAttribute(d.CollapsiblePanelDataAttributes.startingStyle,""),E({height:e.scrollHeight,width:e.scrollWidth}),n=s.AnimationFrame.request(()=>{Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(0===e.scrollHeight&&0===e.scrollWidth)return;E({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let i=n.signal,r=null,a=d.CollapsiblePanelDataAttributes.endingStyle;return(r=new MutationObserver(l=>{l.some(e=>"attributes"===e.type&&e.attributeName===a)&&(r?.disconnect(),r=null,S(()=>{E({height:0,width:0}),e.style.removeProperty("content-visibility"),A(!1),t.current===n&&(t.current=null)},i))})).observe(e,{attributes:!0,attributeFilter:[a]}),()=>{r?.disconnect(),P.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{s.AnimationFrame.cancel(n)}},[t,p,P,h,v,x,C,R,S,E,A]),(0,r.useIsoLayoutEffect)(()=>{if("css-animation"!==p.current)return;let e=R.current;e&&(D.current=e.style.animationName||D.current,e.style.setProperty("animation-name","none"),E({height:e.scrollHeight,width:e.scrollWidth}),N.current||k.current||e.style.removeProperty("animation-name"),C?(null!=t.current&&(t.current.abort(),t.current=null),A(!0),M(!0)):(t.current=new AbortController,S(()=>{A(!1),M(!1),t.current=null},t.current.signal)))},[t,p,C,R,S,E,A,M,w]),(0,o.useOnMount)(()=>{let e=s.AnimationFrame.request(()=>{N.current=!1});return()=>s.AnimationFrame.cancel(e)}),(0,r.useIsoLayoutEffect)(()=>{if(!h)return;let e=R.current;if(!e)return;let t=-1,n=-1;return C&&k.current&&(e.style.transitionDuration="0s",E({height:e.scrollHeight,width:e.scrollWidth}),t=s.AnimationFrame.request(()=>{k.current=!1,n=s.AnimationFrame.request(()=>{setTimeout(()=>{e.style.removeProperty("transition-duration")})})})),()=>{s.AnimationFrame.cancel(t),s.AnimationFrame.cancel(n)}},[h,C,R,E]),(0,r.useIsoLayoutEffect)(()=>{let e=R.current;e&&h&&j&&(e.setAttribute("hidden","until-found"),"css-transition"===p.current&&e.setAttribute(d.CollapsiblePanelDataAttributes.startingStyle,""))},[h,j,p,R]),n.useEffect(function(){let e=R.current;if(e)return(0,i.addEventListener)(e,"beforematch",function(e){k.current=!0,I(!0),y(!0,(0,u.createChangeEventDetails)(c.REASONS.none,e))})},[y,R,I]),n.useMemo(()=>({props:{hidden:j,id:m,ref:_}}),[j,m,_])}],18158)},256186,e=>{"use strict";var t,n=e.i(344180);e.i(790766);var i=e.i(998723),r=e.i(134319);e.i(8890);var a=e.i(764556),l=e.i(277642),o=e.i(969490),s=e.i(619279),u=e.i(406899),c=e.i(18158);let d=((t={}).collapsiblePanelHeight="--collapsible-panel-height",t.collapsiblePanelWidth="--collapsible-panel-width",t);var f=e.i(273598);let p=a.forwardRef(function(e,t){let{className:n,hiddenUntilFound:i,keepMounted:r,render:p,id:b,style:g,...h}=e,{abortControllerRef:v,animationTypeRef:m,height:x,mounted:y,onOpenChange:C,open:R,panelId:S,panelRef:E,runOnceAnimationsFinish:A,setDimensions:I,setHiddenUntilFound:M,setKeepMounted:T,setMounted:w,setPanelIdState:O,setOpen:k,setVisible:D,state:N,transitionDimensionRef:L,visible:P,width:j,transitionStatus:W}=(0,s.useCollapsibleRootContext)(),_=i??!1,z=r??!1;(0,l.useIsoLayoutEffect)(()=>{if(b)return O(b),()=>{O(void 0)}},[b,O]),(0,l.useIsoLayoutEffect)(()=>{M(_)},[M,_]),(0,l.useIsoLayoutEffect)(()=>{T(z)},[T,z]);let{props:F}=(0,c.useCollapsiblePanel)({abortControllerRef:v,animationTypeRef:m,externalRef:t,height:x,hiddenUntilFound:_,id:S,keepMounted:z,mounted:y,onOpenChange:C,open:R,panelRef:E,runOnceAnimationsFinish:A,setDimensions:I,setMounted:w,setOpen:k,setVisible:D,transitionDimensionRef:L,visible:P,width:j});(0,f.useOpenChangeComplete)({open:R&&"idle"===W,ref:E,onComplete(){R&&I({height:void 0,width:void 0})}});let H=a.useMemo(()=>({...N,transitionStatus:W}),[N,W]),B=(0,o.useRenderElement)("div",e,{state:H,ref:[t,E],props:[F,{style:{[d.collapsiblePanelHeight]:void 0===x?"auto":`${x}px`,[d.collapsiblePanelWidth]:void 0===j?"auto":`${j}px`}},h],stateAttributesMapping:u.collapsibleStateAttributesMapping});return z||_||y?B:null});e.s(["Panel",0,p,"Root",()=>i.CollapsibleRoot,"Trigger",()=>r.CollapsibleTrigger],917853);var b=e.i(917853),b=b;e.s(["Collapsible",0,function({...e}){return(0,n.jsx)(b.Root,{"data-slot":"collapsible",...e})},"CollapsibleContent",0,function({...e}){return(0,n.jsx)(b.Panel,{"data-slot":"collapsible-content",...e})},"CollapsibleTrigger",0,function({...e}){return(0,n.jsx)(b.Trigger,{"data-slot":"collapsible-trigger",...e})}],256186)},383171,415955,e=>{"use strict";var t=e.i(220336);e.s(["FolderIcon",()=>t.default],383171);var n=e.i(680422);e.s(["FolderOpenIcon",()=>n.default],415955)},517432,e=>{"use strict";var t=e.i(56032),n=e.i(863728);function i(){return n.NOOP}function r(){return!1}function a(){return!0}e.s(["useIsHydrating",0,function(){return(0,t.useSyncExternalStore)(i,r,a)}])},9174,e=>{"use strict";e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"])},568769,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},972308,e=>{"use strict";var t=e.i(764556),n=e.i(863728),i=e.i(756432),r=e.i(568769),a=e.i(29905),l=e.i(204133),o=e.i(100229),s=e.i(877580),u=e.i(9174),c=e.i(410421);let d=[];var f=e.i(352360),p=e.i(969490),b=e.i(189131),g=e.i(344180);e.s(["CompositeRoot",0,function(e){let{render:h,className:v,style:m,refs:x=n.EMPTY_ARRAY,props:y=n.EMPTY_ARRAY,state:C=n.EMPTY_OBJECT,stateAttributesMapping:R,highlightedIndex:S,onHighlightedIndexChange:E,orientation:A,dense:I,itemSizes:M,loopFocus:T,onLoop:w,cols:O,enableHomeAndEndKeys:k,onMapChange:D,stopEventPropagation:N=!0,rootRef:L,disabledIndices:P,modifierKeys:j,highlightItemOnHover:W=!1,tag:_="div",...z}=e,{props:F,highlightedIndex:H,onHighlightedIndexChange:B,elementsRef:K,onMapChange:V,relayKeyboardEvent:Y}=function(e){let{itemSizes:n,cols:i=1,loopFocus:f=!0,onLoop:p,dense:b=!1,orientation:g="both",direction:h,highlightedIndex:v,onHighlightedIndexChange:m,rootRef:x,enableHomeAndEndKeys:y=!1,stopEventPropagation:C=!1,disabledIndices:R,modifierKeys:S=d}=e,[E,A]=t.useState(0),I=i>1,M=t.useRef(null),T=(0,l.useMergedRefs)(M,x),w=t.useRef([]),O=t.useRef(!1),k=v??E,D=(0,a.useStableCallback)((e,t=!1)=>{if((m??A)(e),t){let t=w.current[e];(0,o.scrollIntoViewIfNeeded)(M.current,t,h,g)}}),N=(0,a.useStableCallback)(e=>{if(0===e.size||O.current)return;O.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(u.ACTIVE_COMPOSITE_ITEM))??null,i=n?t.indexOf(n):-1;-1!==i&&D(i),(0,o.scrollIntoViewIfNeeded)(M.current,n,h,g)}),L=(0,a.useStableCallback)((e,t,n)=>p?p?.(e,t,n,w):n),P=t.useMemo(()=>({"aria-orientation":"both"===g?void 0:g,ref:T,onFocus(e){let t=M.current,n=(0,c.getTarget)(e.nativeEvent);t&&null!=n&&(0,o.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let t=y?o.ALL_KEYS:o.ARROW_KEYS;if(!t.has(e.key)||function(e,t){for(let n of o.MODIFIER_KEYS.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,S)||!M.current)return;let a="rtl"===h,l=a?o.ARROW_LEFT:o.ARROW_RIGHT,u={horizontal:l,vertical:o.ARROW_DOWN,both:l}[g],d=a?o.ARROW_RIGHT:o.ARROW_LEFT,v={horizontal:d,vertical:o.ARROW_UP,both:d}[g],m=(0,c.getTarget)(e.nativeEvent);if(null!=m&&(0,o.isNativeInput)(m)&&!(0,r.isElementDisabled)(m)){let t=m.selectionStart,n=m.selectionEnd,i=m.value??"";if(null==t||e.shiftKey||t!==n||e.key!==v&&t<i.length||e.key!==u&&t>0)return}let x=k,E=(0,s.getMinListIndex)(w,R),A=(0,s.getMaxListIndex)(w,R);if(I){let t=n||Array.from({length:w.current.length},()=>({width:1,height:1})),r=(0,s.createGridCellMap)(t,i,b),l=r.findIndex(e=>null!=e&&!(0,s.isListIndexDisabled)(w.current,e,R)),u=r.reduce((e,t,n)=>null==t||(0,s.isListIndexDisabled)(w.current,t,R)?e:n,-1);x=r[(0,s.getGridNavigatedIndex)(r.map(e=>null!=e?w.current[e]:null),{event:e,orientation:g,loopFocus:f,onLoop:L,cols:i,disabledIndices:(0,s.getGridCellIndices)([...R||w.current.map((e,t)=>(0,s.isListIndexDisabled)(w.current,t)?t:void 0),void 0],r),minIndex:l,maxIndex:u,prevIndex:(0,s.getGridCellIndexOfCorner)(k>A?E:k,t,r,i,e.key===o.ARROW_DOWN?"bl":e.key===o.ARROW_RIGHT?"tr":"tl"),rtl:a})]}let T={horizontal:[l],vertical:[o.ARROW_DOWN],both:[l,o.ARROW_DOWN]}[g],O={horizontal:[d],vertical:[o.ARROW_UP],both:[d,o.ARROW_UP]}[g],N=I?t:({horizontal:y?o.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:o.HORIZONTAL_KEYS,vertical:y?o.VERTICAL_KEYS_WITH_EXTRA_KEYS:o.VERTICAL_KEYS,both:t})[g];y&&(e.key===o.HOME?x=E:e.key===o.END&&(x=A)),x===k&&(T.includes(e.key)||O.includes(e.key))&&(f&&x===A&&T.includes(e.key)?(x=E,p&&(x=p(e,k,x,w))):f&&x===E&&O.includes(e.key)?(x=A,p&&(x=p(e,k,x,w))):x=(0,s.findNonDisabledListIndex)(w.current,{startingIndex:x,decrement:O.includes(e.key),disabledIndices:R})),x===k||(0,s.isIndexOutOfListBounds)(w.current,x)||(C&&e.stopPropagation(),N.has(e.key)&&e.preventDefault(),D(x,!0),queueMicrotask(()=>{w.current[x]?.focus()}))}}),[i,b,h,R,w,y,k,I,n,f,p,L,T,S,D,g,C]);return t.useMemo(()=>({props:P,highlightedIndex:k,onHighlightedIndexChange:D,elementsRef:w,disabledIndices:R,onMapChange:N,relayKeyboardEvent:P.onKeyDown}),[P,k,D,w,R,N])}({itemSizes:M,cols:O,loopFocus:T,onLoop:w,dense:I,orientation:A,highlightedIndex:S,onHighlightedIndexChange:E,rootRef:L,stopEventPropagation:N,enableHomeAndEndKeys:k,direction:(0,b.useDirection)(),disabledIndices:P,modifierKeys:j}),U=(0,p.useRenderElement)(_,e,{state:C,ref:x,props:[F,...y,z],stateAttributesMapping:R}),$=t.useMemo(()=>({highlightedIndex:H,onHighlightedIndexChange:B,highlightItemOnHover:W,relayKeyboardEvent:Y}),[H,B,W,Y]);return(0,g.jsx)(f.CompositeRootContext.Provider,{value:$,children:(0,g.jsx)(i.CompositeList,{elementsRef:K,onMapChange:e=>{D?.(e),V(e)},children:U})})}],972308)},812057,e=>{"use strict";var t,n,i,r=e.i(344180);e.s([],236634),e.i(236634),e.i(8890);var a=e.i(764556),l=e.i(535270),o=e.i(277642),s=e.i(29905),u=e.i(969490),c=e.i(756432),d=e.i(267805);let f=a.createContext(void 0);function p(){let e=a.useContext(f);if(void 0===e)throw Error((0,d.default)(64));return e}let b=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),g={tabActivationDirection:e=>({[b.activationDirection]:e})},h=a.forwardRef(function(e,t){let{className:n,defaultValue:i=0,onValueChange:d,orientation:p="horizontal",render:b,value:h,style:m,...x}=e,y=Object.hasOwn(e,"defaultValue"),C=a.useRef([]),[R,S]=a.useState(()=>new Map),[E,A]=(0,l.useControlled)({controlled:h,default:i,name:"Tabs",state:"value"}),I=void 0!==h,[M,T]=a.useState(()=>new Map),w=a.useCallback(e=>{if(void 0===e)return null;for(let[t,n]of M.entries())if(null!=n&&e===(n.value??n.index))return t;return null},[M]),[O,k]=a.useState(()=>({previousValue:E,tabActivationDirection:"none"})),{previousValue:D,tabActivationDirection:N}=O,L=N,P=!1;D!==E&&(L=v(D,E,p,M),P=null!=D&&null!=E&&null==w(E));let j=P?D:E,W=D!==j||N!==L;(0,o.useIsoLayoutEffect)(()=>{W&&k({previousValue:j,tabActivationDirection:L})},[j,W,L]);let _=(0,s.useStableCallback)((e,t)=>{t.activationDirection=v(E,e,p,M),d?.(e,t),t.isCanceled||A(e)}),z=(0,s.useStableCallback)((e,t)=>{S(n=>{if(n.get(e)===t)return n;let i=new Map(n);return i.set(e,t),i})}),F=(0,s.useStableCallback)((e,t)=>{S(n=>{if(!n.has(e)||n.get(e)!==t)return n;let i=new Map(n);return i.delete(e),i})}),H=a.useCallback(e=>R.get(e),[R]),B=a.useCallback(e=>{for(let t of M.values())if(e===t?.value)return t?.id},[M]),K=a.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:B,getTabPanelIdByValue:H,onValueChange:_,orientation:p,registerMountedTabPanel:z,setTabMap:T,unregisterMountedTabPanel:F,tabActivationDirection:L,value:E}),[w,B,H,_,p,z,T,F,L,E]),V=a.useMemo(()=>{for(let e of M.values())if(null!=e&&e.value===E)return e},[M,E]),Y=a.useMemo(()=>{for(let e of M.values())if(null!=e&&!e.disabled)return e.value},[M]);(0,o.useIsoLayoutEffect)(()=>{if(I||0===M.size)return;let e=V?.disabled,t=null==V&&null!==E;if(y&&e&&E===i||!e&&!t)return;let n=Y??null;E!==n&&(A(n),k(e=>"none"===e.tabActivationDirection?e:{...e,tabActivationDirection:"none"}))},[i,Y,y,I,V,A,M,E]);let U={orientation:p,tabActivationDirection:L},$=(0,u.useRenderElement)("div",e,{state:U,ref:t,props:x,stateAttributesMapping:g});return(0,r.jsx)(f.Provider,{value:K,children:(0,r.jsx)(c.CompositeList,{elementsRef:C,children:$})})});function v(e,t,n,i){if(null==e||null==t)return"none";let r=null,a=null;for(let[n,l]of i.entries()){if(null==l)continue;let i=l.value??l.index;if(e===i&&(r=n),t===i&&(a=n),null!=r&&null!=a)break}if(null==r||null==a)return r!==a&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===n?t>e?"right":"left":t>e?"down":"up":"none";let l=r.getBoundingClientRect(),o=a.getBoundingClientRect();if("horizontal"===n){if(o.left<l.left)return"left";if(o.left>l.left)return"right"}else{if(o.top<l.top)return"up";if(o.top>l.top)return"down"}return"none"}var m=e.i(526850),x=e.i(139236),y=e.i(931709),C=e.i(9174),R=e.i(530909);let S=a.createContext(void 0);function E(){let e=a.useContext(S);if(void 0===e)throw Error((0,d.default)(65));return e}var A=e.i(602453),I=e.i(742665),M=e.i(410421);let T=a.forwardRef(function(e,t){let{className:n,disabled:i=!1,render:r,value:l,id:s,nativeButton:c=!0,style:d,...f}=e,{value:b,getTabPanelIdByValue:g,orientation:h}=p(),{activateOnFocus:v,highlightedTabIndex:S,onTabActivation:T,registerTabResizeObserverElement:w,setHighlightedTabIndex:O,tabsListElement:k}=E(),D=(0,x.useBaseUiId)(s),N=a.useMemo(()=>({disabled:i,id:D,value:l}),[i,D,l]),{compositeProps:L,compositeRef:P,index:j}=(0,R.useCompositeItem)({metadata:N}),W=l===b,_=a.useRef(!1),z=a.useRef(null);a.useEffect(()=>{let e=z.current;if(e)return w(e)},[w]),(0,o.useIsoLayoutEffect)(()=>{if(_.current){_.current=!1;return}if(W&&j>-1&&S!==j){if(null!=k){let e=(0,M.activeElement)((0,m.ownerDocument)(k));if(e&&(0,M.contains)(k,e))return}i||O(j)}},[W,j,S,O,i,k]);let{getButtonProps:F,buttonRef:H}=(0,y.useButton)({disabled:i,native:c,focusableWhenDisabled:!0}),B=g(l),K=a.useRef(!1),V=a.useRef(!1);return(0,u.useRenderElement)("button",e,{state:{disabled:i,active:W,orientation:h},ref:[t,H,P,z],props:[L,{role:"tab","aria-controls":B,"aria-selected":W,id:D,onClick:function(e){W||i||T(l,(0,A.createChangeEventDetails)(I.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){W||(j>-1&&!i&&O(j),!i&&v&&(!K.current||K.current&&V.current)&&T(l,(0,A.createChangeEventDetails)(I.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){W||i||(K.current=!0,e.button&&0!==e.button||(V.current=!0,(0,m.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){K.current=!1,V.current=!1},{once:!0})))},[C.ACTIVE_COMPOSITE_ITEM]:W?"":void 0,onKeyDownCapture(){_.current=!0}},f,F]})});var w=e.i(730774),O=e.i(517432);let k=((n={}).activeTabLeft="--active-tab-left",n.activeTabRight="--active-tab-right",n.activeTabTop="--active-tab-top",n.activeTabBottom="--active-tab-bottom",n.activeTabWidth="--active-tab-width",n.activeTabHeight="--active-tab-height",n);var D=e.i(394394);let N={...g,activeTabPosition:()=>null,activeTabSize:()=>null},L=a.forwardRef(function(e,t){let{className:n,render:i,renderBeforeHydration:l=!1,style:o,...s}=e,{nonce:c}=(0,D.useCSPContext)(),{getTabElementBySelectedValue:d,orientation:f,tabActivationDirection:b,value:g}=p(),{tabsListElement:h,registerIndicatorUpdateListener:v}=E(),m=(0,O.useIsHydrating)(),x=function(){let[,e]=a.useState({});return a.useCallback(()=>{e({})},[])}();a.useEffect(()=>v(x),[v,x]);let y=0,C=0,R=0,S=0,A=0,I=0,M=!1;if(null!=g&&null!=h){let e=d(g);if(M=!0,null!=e){let{width:t,height:n}=(0,w.getCssDimensions)(e),{width:i,height:r}=(0,w.getCssDimensions)(h),a=e.getBoundingClientRect(),l=h.getBoundingClientRect(),o=i>0?l.width/i:1,s=r>0?l.height/r:1;if(Math.abs(o)>Number.EPSILON&&Math.abs(s)>Number.EPSILON){let e=a.left-l.left,t=a.top-l.top;y=e/o+h.scrollLeft-h.clientLeft,R=t/s+h.scrollTop-h.clientTop}else y=e.offsetLeft,R=e.offsetTop;A=t,I=n,C=h.scrollWidth-y-A,S=h.scrollHeight-R-I}}let T=a.useMemo(()=>M?{left:y,right:C,top:R,bottom:S}:null,[y,C,R,S,M]),L=a.useMemo(()=>M?{width:A,height:I}:null,[A,I,M]),P=a.useMemo(()=>{if(M)return{[k.activeTabLeft]:`${y}px`,[k.activeTabRight]:`${C}px`,[k.activeTabTop]:`${R}px`,[k.activeTabBottom]:`${S}px`,[k.activeTabWidth]:`${A}px`,[k.activeTabHeight]:`${I}px`}},[y,C,R,S,A,I,M]),j=M&&A>0&&I>0,W=(0,u.useRenderElement)("span",e,{state:{orientation:f,activeTabPosition:T,activeTabSize:L,tabActivationDirection:b},ref:t,props:[{role:"presentation",style:P,hidden:!j},s,{suppressHydrationWarning:!0}],stateAttributesMapping:N});return null==g?null:(0,r.jsxs)(a.Fragment,{children:[W,m&&l&&(0,r.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});var P=e.i(677822),j=e.i(282458),W=e.i(273598),_=e.i(254891),z=e.i(296615);let F=((i={}).index="data-index",i.activationDirection="data-activation-direction",i.orientation="data-orientation",i.hidden="data-hidden",i[i.startingStyle=j.TransitionStatusDataAttributes.startingStyle]="startingStyle",i[i.endingStyle=j.TransitionStatusDataAttributes.endingStyle]="endingStyle",i),H={...g,...j.transitionStatusMapping},B=a.forwardRef(function(e,t){let{className:n,value:i,render:r,keepMounted:l=!1,style:s,...c}=e,{value:d,getTabIdByPanelValue:f,orientation:b,tabActivationDirection:g,registerMountedTabPanel:h,unregisterMountedTabPanel:v}=p(),m=(0,x.useBaseUiId)(),y=a.useMemo(()=>({id:m,value:i}),[m,i]),{ref:C,index:R}=(0,z.useCompositeListItem)({metadata:y}),S=i===d,{mounted:E,transitionStatus:A,setMounted:I}=(0,_.useTransitionStatus)(S),M=!E,T=f(i),w=a.useRef(null),O=(0,u.useRenderElement)("div",e,{state:{hidden:M,orientation:b,tabActivationDirection:g,transitionStatus:A},ref:[t,C,w],props:[{"aria-labelledby":T,hidden:M,id:m,role:"tabpanel",tabIndex:S?0:-1,inert:(0,P.inertValue)(!S),[F.index]:R},c],stateAttributesMapping:H});return((0,W.useOpenChangeComplete)({open:S,ref:w,onComplete(){S||I(!1)}}),(0,o.useIsoLayoutEffect)(()=>{if((!M||l)&&null!=m)return h(i,m),()=>{v(i,m)}},[M,l,i,m,h,v]),l||E)?O:null});var K=e.i(863728),V=e.i(972308);let Y=a.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:i,loopFocus:l=!0,render:o,style:u,...c}=e,{onValueChange:d,orientation:f,value:b,setTabMap:h,tabActivationDirection:v}=p(),[m,x]=a.useState(0),[y,C]=a.useState(null),R=a.useRef(new Set),E=a.useRef(new Set),A=a.useRef(null),I=(0,s.useStableCallback)(()=>{R.current.forEach(e=>{e()})});a.useEffect(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{R.current.size&&I()});return A.current=e,y&&e.observe(y),E.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),A.current=null}},[y,I]);let M=(0,s.useStableCallback)(e=>(R.current.add(e),()=>{R.current.delete(e)})),T=(0,s.useStableCallback)(e=>(E.current.add(e),A.current?.observe(e),()=>{E.current.delete(e),A.current?.unobserve(e)})),w=(0,s.useStableCallback)((e,t)=>{e!==b&&d(e,t)}),O=a.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:m,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:T,onTabActivation:w,setHighlightedTabIndex:x,tabsListElement:y}),[n,m,M,T,w,x,y]);return(0,r.jsx)(S.Provider,{value:O,children:(0,r.jsx)(V.CompositeRoot,{render:o,className:i,style:u,state:{orientation:f,tabActivationDirection:v},refs:[t,C],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},c],stateAttributesMapping:g,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:l,orientation:f,onHighlightedIndexChange:x,onMapChange:h,disabledIndices:K.EMPTY_ARRAY})})});e.s(["Indicator",0,L,"List",0,Y,"Panel",0,B,"Root",0,h,"Tab",0,T],227146);var U=e.i(227146),U=U,$=e.i(294237),q=e.i(465458);let G=(0,$.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...n}){return(0,r.jsx)(U.Root,{"data-slot":"tabs","data-orientation":t,className:(0,q.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...n})},"TabsContent",0,function({className:e,...t}){return(0,r.jsx)(U.Panel,{"data-slot":"tabs-content",className:(0,q.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...n}){return(0,r.jsx)(U.List,{"data-slot":"tabs-list","data-variant":t,className:(0,q.cn)(G({variant:t}),e),...n})},"TabsTrigger",0,function({className:e,...t}){return(0,r.jsx)(U.Tab,{"data-slot":"tabs-trigger",className:(0,q.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],812057)},551157,e=>{"use strict";let t=(0,e.i(433721).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["default",0,t])},882469,e=>{"use strict";var t=e.i(551157);e.s(["Globe",()=>t.default])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,465458,7284,e=>{"use strict";function r(){for(var e,r,o=0,t="",l=arguments.length;o<l;o++)(e=arguments[o])&&(r=function e(r){var o,t,l="";if("string"==typeof r||"number"==typeof r)l+=r;else if("object"==typeof r)if(Array.isArray(r)){var a=r.length;for(o=0;o<a;o++)r[o]&&(t=e(r[o]))&&(l&&(l+=" "),l+=t)}else for(t in r)r[t]&&(l&&(l+=" "),l+=t);return l}(e))&&(t&&(t+=" "),t+=r);return t}e.s(["clsx",0,r],7284);let o=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),t=[],l=(e,r,o)=>{if(0==e.length-r)return o.classGroupId;let t=e[r],a=o.nextPart.get(t);if(a){let o=l(e,r+1,a);if(o)return o}let n=o.validators;if(null===n)return;let s=0===r?e.join("-"):e.slice(r).join("-"),i=n.length;for(let e=0;e<i;e++){let r=n[e];if(r.validator(s))return r.classGroupId}},a=(e,r)=>{let t=o();for(let o in e)n(e[o],t,o,r);return t},n=(e,r,o,t)=>{let l=e.length;for(let a=0;a<l;a++)s(e[a],r,o,t)},s=(e,r,o,t)=>{"string"==typeof e?i(e,r,o):"function"==typeof e?d(e,r,o,t):c(e,r,o,t)},i=(e,r,o)=>{(""===e?r:m(r,e)).classGroupId=o},d=(e,r,o,t)=>{b(e)?n(e(t),r,o,t):(null===r.validators&&(r.validators=[]),r.validators.push({classGroupId:o,validator:e}))},c=(e,r,o,t)=>{let l=Object.entries(e),a=l.length;for(let e=0;e<a;e++){let[a,s]=l[e];n(s,m(r,a),o,t)}},m=(e,r)=>{let t=e,l=r.split("-"),a=l.length;for(let e=0;e<a;e++){let r=l[e],a=t.nextPart.get(r);a||(a=o(),t.nextPart.set(r,a)),t=a}return t},b=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],u=(e,r,o,t,l)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:l}),f=/\s+/,g=e=>{let r;if("string"==typeof e)return e;let o="";for(let t=0;t<e.length;t++)e[t]&&(r=g(e[t]))&&(o&&(o+=" "),o+=r);return o},h=[],x=e=>{let r=r=>r[e]||h;return r.isThemeGetter=!0,r},k=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,v=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>y.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),T=e=>!!e&&Number.isInteger(Number(e)),I=e=>e.endsWith("%")&&N(e.slice(0,-1)),M=e=>v.test(e),$=()=>!0,A=e=>z.test(e)&&!j.test(e),W=()=>!1,P=e=>C.test(e),S=e=>G.test(e),q=e=>!K(e)&&!J(e),B=e=>er(e,ea,W),K=e=>k.test(e),R=e=>er(e,en,A),U=e=>er(e,es,N),_=e=>er(e,ed,$),E=e=>er(e,ei,W),D=e=>er(e,et,W),F=e=>er(e,el,S),H=e=>er(e,ec,P),J=e=>w.test(e),L=e=>eo(e,en),Q=e=>eo(e,ei),V=e=>eo(e,et),X=e=>eo(e,ea),Y=e=>eo(e,el),Z=e=>eo(e,ec,!0),ee=e=>eo(e,ed,!0),er=(e,r,o)=>{let t=k.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},eo=(e,r,o=!1)=>{let t=w.exec(e);return!!t&&(t[1]?r(t[1]):o)},et=e=>"position"===e||"percentage"===e,el=e=>"image"===e||"url"===e,ea=e=>"length"===e||"size"===e||"bg-size"===e,en=e=>"length"===e,es=e=>"number"===e,ei=e=>"family-name"===e,ed=e=>"number"===e||"weight"===e,ec=e=>"shadow"===e,em=((e,...r)=>{let o,n,s,i,d=e=>{let r=n(e);if(r)return r;let t=((e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:l,sortModifiers:a}=r,n=[],s=e.trim().split(f),i="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:p}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let u=!!p,f=t(u?b.substring(0,p):b);if(!f){if(!u||!(f=t(b))){i=r+(i.length>0?" "+i:i);continue}u=!1}let g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),h=m?g+"!":g,x=h+f;if(n.indexOf(x)>-1)continue;n.push(x);let k=l(f,u);for(let e=0;e<k.length;++e){let r=k[e];n.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return s(e,t),t};return i=c=>{var m;let b;return n=(o={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null),l=(l,a)=>{o[l]=a,++r>e&&(r=0,t=o,o=Object.create(null))};return{get(e){let r=o[e];return void 0!==r?r:void 0!==(r=t[e])?(l(e,r),r):void 0},set(e,r){e in o?o[e]=r:l(e,r)}}})((m=r.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{prefix:r,experimentalParseClassName:o}=e,t=e=>{let r,o=[],t=0,l=0,a=0,n=e.length;for(let s=0;s<n;s++){let n=e[s];if(0===t&&0===l){if(":"===n){o.push(e.slice(a,s)),a=s+1;continue}if("/"===n){r=s;continue}}"["===n?t++:"]"===n?t--:"("===n?l++:")"===n&&l--}let s=0===o.length?e:e.slice(a),i=s,d=!1;return s.endsWith("!")?(i=s.slice(0,-1),d=!0):s.startsWith("!")&&(i=s.slice(1),d=!0),u(o,d,i,r&&r>a?r-a:void 0)};if(r){let e=r+":",o=t;t=r=>r.startsWith(e)?o(r.slice(e.length)):u(p,!1,r,void 0,!0)}if(o){let e=t;t=r=>o({className:r,parseClassName:e})}return t})(m),sortModifiers:(b=new Map,m.orderSensitiveModifiers.forEach((e,r)=>{b.set(e,1e6+r)}),e=>{let r=[],o=[];for(let t=0;t<e.length;t++){let l=e[t],a="["===l[0],n=b.has(l);a||n?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}),...(e=>{let r=(e=>{let{theme:r,classGroups:o}=e;return a(o,r)})(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var o;let r,t,l;return -1===(o=e).slice(1,-1).indexOf(":")?void 0:(t=(r=o.slice(1,-1)).indexOf(":"),(l=r.slice(0,t))?"arbitrary.."+l:void 0)}let t=e.split("-"),a=+(""===t[0]&&t.length>1);return l(t,a,r)},getConflictingClassGroupIds:(e,r)=>{if(r){let r=n[e],l=o[e];if(r){if(l){let e=Array(l.length+r.length);for(let r=0;r<l.length;r++)e[r]=l[r];for(let o=0;o<r.length;o++)e[l.length+o]=r[o];return e}return r}return l||t}return o[e]||t}}})(m)}).cache.get,s=o.cache.set,i=d,d(c)},(...e)=>i(((...e)=>{let r,o,t=0,l="";for(;t<e.length;)(r=e[t++])&&(o=g(r))&&(l&&(l+=" "),l+=o);return l})(...e))})(()=>{let e=x("color"),r=x("font"),o=x("text"),t=x("font-weight"),l=x("tracking"),a=x("leading"),n=x("breakpoint"),s=x("container"),i=x("spacing"),d=x("radius"),c=x("shadow"),m=x("inset-shadow"),b=x("text-shadow"),p=x("drop-shadow"),u=x("blur"),f=x("perspective"),g=x("aspect"),h=x("ease"),k=x("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...y(),J,K],z=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],C=()=>[J,K,i],G=()=>[O,"full","auto",...C()],A=()=>[T,"none","subgrid",J,K],W=()=>["auto",{span:["full",T,J,K]},T,J,K],P=()=>[T,"auto",J,K],S=()=>["auto","min","max","fr",J,K],er=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],eo=()=>["start","end","center","stretch","center-safe","end-safe"],et=()=>["auto",...C()],el=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],ea=()=>[O,"screen","full","dvw","lvw","svw","min","max","fit",...C()],en=()=>[O,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],es=()=>[e,J,K],ei=()=>[...y(),V,D,{position:[J,K]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",X,B,{size:[J,K]}],em=()=>[I,L,R],eb=()=>["","none","full",d,J,K],ep=()=>["",N,L,R],eu=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eg=()=>[N,I,V,D],eh=()=>["","none",u,J,K],ex=()=>["none",N,J,K],ek=()=>["none",N,J,K],ew=()=>[N,J,K],ey=()=>[O,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[$],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[q],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",N],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,K,J,g]}],container:["container"],columns:[{columns:[N,K,J,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[T,"auto",J,K]}],basis:[{basis:[O,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,O,"auto","initial","none",K]}],grow:[{grow:["",N,J,K]}],shrink:[{shrink:["",N,J,K]}],order:[{order:[T,"first","last","none",J,K]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...er(),"normal"]}],"justify-items":[{"justify-items":[...eo(),"normal"]}],"justify-self":[{"justify-self":["auto",...eo()]}],"align-content":[{content:["normal",...er()]}],"align-items":[{items:[...eo(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...eo(),{baseline:["","last"]}]}],"place-content":[{"place-content":er()}],"place-items":[{"place-items":[...eo(),"baseline"]}],"place-self":[{"place-self":["auto",...eo()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:et()}],mx:[{mx:et()}],my:[{my:et()}],ms:[{ms:et()}],me:[{me:et()}],mbs:[{mbs:et()}],mbe:[{mbe:et()}],mt:[{mt:et()}],mr:[{mr:et()}],mb:[{mb:et()}],ml:[{ml:et()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:el()}],"inline-size":[{inline:["auto",...ea()]}],"min-inline-size":[{"min-inline":["auto",...ea()]}],"max-inline-size":[{"max-inline":["none",...ea()]}],"block-size":[{block:["auto",...en()]}],"min-block-size":[{"min-block":["auto",...en()]}],"max-block-size":[{"max-block":["none",...en()]}],w:[{w:[s,"screen",...el()]}],"min-w":[{"min-w":[s,"screen","none",...el()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[n]},...el()]}],h:[{h:["screen","lh",...el()]}],"min-h":[{"min-h":["screen","lh","none",...el()]}],"max-h":[{"max-h":["screen","lh",...el()]}],"font-size":[{text:["base",o,L,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ee,_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",I,K]}],"font-family":[{font:[Q,E,r]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,J,K]}],"line-clamp":[{"line-clamp":[N,"none",J,U]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",J,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:es()}],"text-color":[{text:es()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",J,R]}],"text-decoration-color":[{decoration:es()}],"underline-offset":[{"underline-offset":[N,"auto",J,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ei()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T,J,K],radial:["",J,K],conic:[T,J,K]},Y,F]}],"bg-color":[{bg:es()}],"gradient-from-pos":[{from:em()}],"gradient-via-pos":[{via:em()}],"gradient-to-pos":[{to:em()}],"gradient-from":[{from:es()}],"gradient-via":[{via:es()}],"gradient-to":[{to:es()}],rounded:[{rounded:eb()}],"rounded-s":[{"rounded-s":eb()}],"rounded-e":[{"rounded-e":eb()}],"rounded-t":[{"rounded-t":eb()}],"rounded-r":[{"rounded-r":eb()}],"rounded-b":[{"rounded-b":eb()}],"rounded-l":[{"rounded-l":eb()}],"rounded-ss":[{"rounded-ss":eb()}],"rounded-se":[{"rounded-se":eb()}],"rounded-ee":[{"rounded-ee":eb()}],"rounded-es":[{"rounded-es":eb()}],"rounded-tl":[{"rounded-tl":eb()}],"rounded-tr":[{"rounded-tr":eb()}],"rounded-br":[{"rounded-br":eb()}],"rounded-bl":[{"rounded-bl":eb()}],"border-w":[{border:ep()}],"border-w-x":[{"border-x":ep()}],"border-w-y":[{"border-y":ep()}],"border-w-s":[{"border-s":ep()}],"border-w-e":[{"border-e":ep()}],"border-w-bs":[{"border-bs":ep()}],"border-w-be":[{"border-be":ep()}],"border-w-t":[{"border-t":ep()}],"border-w-r":[{"border-r":ep()}],"border-w-b":[{"border-b":ep()}],"border-w-l":[{"border-l":ep()}],"divide-x":[{"divide-x":ep()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ep()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:es()}],"border-color-x":[{"border-x":es()}],"border-color-y":[{"border-y":es()}],"border-color-s":[{"border-s":es()}],"border-color-e":[{"border-e":es()}],"border-color-bs":[{"border-bs":es()}],"border-color-be":[{"border-be":es()}],"border-color-t":[{"border-t":es()}],"border-color-r":[{"border-r":es()}],"border-color-b":[{"border-b":es()}],"border-color-l":[{"border-l":es()}],"divide-color":[{divide:es()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,J,K]}],"outline-w":[{outline:["",N,L,R]}],"outline-color":[{outline:es()}],shadow:[{shadow:["","none",c,Z,H]}],"shadow-color":[{shadow:es()}],"inset-shadow":[{"inset-shadow":["none",m,Z,H]}],"inset-shadow-color":[{"inset-shadow":es()}],"ring-w":[{ring:ep()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:es()}],"ring-offset-w":[{"ring-offset":[N,R]}],"ring-offset-color":[{"ring-offset":es()}],"inset-ring-w":[{"inset-ring":ep()}],"inset-ring-color":[{"inset-ring":es()}],"text-shadow":[{"text-shadow":["none",b,Z,H]}],"text-shadow-color":[{"text-shadow":es()}],opacity:[{opacity:[N,J,K]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":eg()}],"mask-image-linear-to-pos":[{"mask-linear-to":eg()}],"mask-image-linear-from-color":[{"mask-linear-from":es()}],"mask-image-linear-to-color":[{"mask-linear-to":es()}],"mask-image-t-from-pos":[{"mask-t-from":eg()}],"mask-image-t-to-pos":[{"mask-t-to":eg()}],"mask-image-t-from-color":[{"mask-t-from":es()}],"mask-image-t-to-color":[{"mask-t-to":es()}],"mask-image-r-from-pos":[{"mask-r-from":eg()}],"mask-image-r-to-pos":[{"mask-r-to":eg()}],"mask-image-r-from-color":[{"mask-r-from":es()}],"mask-image-r-to-color":[{"mask-r-to":es()}],"mask-image-b-from-pos":[{"mask-b-from":eg()}],"mask-image-b-to-pos":[{"mask-b-to":eg()}],"mask-image-b-from-color":[{"mask-b-from":es()}],"mask-image-b-to-color":[{"mask-b-to":es()}],"mask-image-l-from-pos":[{"mask-l-from":eg()}],"mask-image-l-to-pos":[{"mask-l-to":eg()}],"mask-image-l-from-color":[{"mask-l-from":es()}],"mask-image-l-to-color":[{"mask-l-to":es()}],"mask-image-x-from-pos":[{"mask-x-from":eg()}],"mask-image-x-to-pos":[{"mask-x-to":eg()}],"mask-image-x-from-color":[{"mask-x-from":es()}],"mask-image-x-to-color":[{"mask-x-to":es()}],"mask-image-y-from-pos":[{"mask-y-from":eg()}],"mask-image-y-to-pos":[{"mask-y-to":eg()}],"mask-image-y-from-color":[{"mask-y-from":es()}],"mask-image-y-to-color":[{"mask-y-to":es()}],"mask-image-radial":[{"mask-radial":[J,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":eg()}],"mask-image-radial-to-pos":[{"mask-radial-to":eg()}],"mask-image-radial-from-color":[{"mask-radial-from":es()}],"mask-image-radial-to-color":[{"mask-radial-to":es()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":eg()}],"mask-image-conic-to-pos":[{"mask-conic-to":eg()}],"mask-image-conic-from-color":[{"mask-conic-from":es()}],"mask-image-conic-to-color":[{"mask-conic-to":es()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ei()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,K]}],filter:[{filter:["","none",J,K]}],blur:[{blur:eh()}],brightness:[{brightness:[N,J,K]}],contrast:[{contrast:[N,J,K]}],"drop-shadow":[{"drop-shadow":["","none",p,Z,H]}],"drop-shadow-color":[{"drop-shadow":es()}],grayscale:[{grayscale:["",N,J,K]}],"hue-rotate":[{"hue-rotate":[N,J,K]}],invert:[{invert:["",N,J,K]}],saturate:[{saturate:[N,J,K]}],sepia:[{sepia:["",N,J,K]}],"backdrop-filter":[{"backdrop-filter":["","none",J,K]}],"backdrop-blur":[{"backdrop-blur":eh()}],"backdrop-brightness":[{"backdrop-brightness":[N,J,K]}],"backdrop-contrast":[{"backdrop-contrast":[N,J,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,J,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,J,K]}],"backdrop-invert":[{"backdrop-invert":["",N,J,K]}],"backdrop-opacity":[{"backdrop-opacity":[N,J,K]}],"backdrop-saturate":[{"backdrop-saturate":[N,J,K]}],"backdrop-sepia":[{"backdrop-sepia":["",N,J,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",J,K]}],ease:[{ease:["linear","initial",h,J,K]}],delay:[{delay:[N,J,K]}],animate:[{animate:["none",k,J,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,J,K]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ex()}],"rotate-x":[{"rotate-x":ex()}],"rotate-y":[{"rotate-y":ex()}],"rotate-z":[{"rotate-z":ex()}],scale:[{scale:ek()}],"scale-x":[{"scale-x":ek()}],"scale-y":[{"scale-y":ek()}],"scale-z":[{"scale-z":ek()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[J,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ey()}],"translate-x":[{"translate-x":ey()}],"translate-y":[{"translate-y":ey()}],"translate-z":[{"translate-z":ey()}],"translate-none":["translate-none"],accent:[{accent:es()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:es()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,K]}],fill:[{fill:["none",...es()]}],"stroke-w":[{stroke:[N,L,R,U]}],stroke:[{stroke:["none",...es()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),eb=["bg-red-500/15 text-red-600 dark:text-red-400","bg-orange-500/15 text-orange-600 dark:text-orange-400","bg-amber-500/15 text-amber-600 dark:text-amber-400","bg-yellow-500/15 text-yellow-600 dark:text-yellow-400","bg-lime-500/15 text-lime-600 dark:text-lime-400","bg-green-500/15 text-green-600 dark:text-green-400","bg-emerald-500/15 text-emerald-600 dark:text-emerald-400","bg-teal-500/15 text-teal-600 dark:text-teal-400","bg-cyan-500/15 text-cyan-600 dark:text-cyan-400","bg-sky-500/15 text-sky-600 dark:text-sky-400","bg-blue-500/15 text-blue-600 dark:text-blue-400","bg-indigo-500/15 text-indigo-600 dark:text-indigo-400","bg-violet-500/15 text-violet-600 dark:text-violet-400","bg-purple-500/15 text-purple-600 dark:text-purple-400","bg-fuchsia-500/15 text-fuchsia-600 dark:text-fuchsia-400","bg-pink-500/15 text-pink-600 dark:text-pink-400","bg-rose-500/15 text-rose-600 dark:text-rose-400"],ep=["#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#10b981","#14b8a6","#06b6d4","#0ea5e9","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e"];function eu(e){let r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o)+((r<<5)-r);return Math.abs(r)}e.s(["cn",0,function(...e){return em(r(e))},"textColorClass",0,function(e){return eb[eu(e)%eb.length]},"textToColor",0,function(e){return ep[eu(e)%ep.length]}],465458)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,191871,e=>{"use strict";var t=e.i(344180),s=e.i(887836),l=e.i(764556),a=e.i(799543),r=e.i(361031),n=e.i(233297);let o=(0,s.default)(()=>e.A(638150).then(e=>e.MobileTabBar),{loadableGenerated:{modules:[404069]},ssr:!1,loading:()=>null}),i=(0,s.default)(()=>e.A(255299).then(e=>e.WorkspaceShell),{loadableGenerated:{modules:[817465]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading..."})});e.s(["WorkspaceClient",0,function(){let e=function(){let e=(0,a.useSearchParams)().get("workspaceId")||"",[t,s]=(0,l.useState)("");return(0,l.useEffect)(()=>{let e=window.location.pathname.match(/\/workspace\/([^/]+)/);s(e?.[1]||"")},[]),(0,l.useMemo)(()=>e||t,[t,e])}(),s=(0,a.useRouter)(),[c,u]=(0,l.useState)(null),[d,h]=(0,l.useState)(null),m=(0,r.useWorkspaceStore)(e=>e.upsertWorkspace);return((0,l.useEffect)(()=>{e&&fetch(`/api/workspaces/${e}`).then(e=>{if(!e.ok)throw Error("Not found");return e.json()}).then(t=>{u(t),m(t),localStorage.setItem("lastWorkspaceId",e)}).catch(e=>h(e.message))},[e,m]),d)?(0,t.jsxs)("div",{className:"h-full flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)("p",{className:"text-destructive",children:d}),(0,t.jsx)("button",{type:"button",onClick:()=>(0,n.tauriNavigate)(s,"/"),className:"text-sm underline",children:"Back to home"})]}):c?(0,t.jsxs)("div",{className:"h-full min-h-0 flex flex-col overflow-hidden",children:[(0,t.jsx)(o,{}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:(0,t.jsx)(i,{workspaceId:c.id,boundDirs:c.boundDirs})})]}):(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading..."})}])},638150,e=>{e.v(t=>Promise.all(["static/chunks/17k~zbv0_4rep.js"].map(t=>e.l(t))).then(()=>t(404069)))},255299,e=>{e.v(t=>Promise.all(["static/chunks/09h23logvq65m.js","static/chunks/0vbqaynjq8ga..js"].map(t=>e.l(t))).then(()=>t(817465)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,769178,e=>{"use strict";var t=e.i(344180),s=e.i(799543),i=e.i(260218),l=e.i(767467);e.s(["SettingsPageLayout",0,function({title:e,children:a}){let n=(0,s.useRouter)();return(0,t.jsxs)("div",{className:"h-full flex flex-col",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2 px-4 py-3 border-b shrink-0",children:[(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",onClick:()=>n.back(),children:(0,t.jsx)(l.ArrowLeft,{className:"size-4"})}),(0,t.jsx)("h1",{className:"text-base font-medium",children:e})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:a})]})}])},41588,e=>{"use strict";var t=e.i(344180),s=e.i(244073),i=e.i(769178),l=e.i(841734);e.s(["default",0,function(){let e=(0,s.useTranslations)("outputStyles");return(0,t.jsx)(i.SettingsPageLayout,{title:e("title"),children:(0,t.jsx)(l.OutputStylesDialog,{open:!0,onOpenChange:()=>{},standalone:!0})})}])}]);