panoma 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/app/BUILD-INFO.json +2 -2
  2. package/app/apps/web/.next-bundle/BUILD_ID +1 -1
  3. package/app/apps/web/.next-bundle/app-build-manifest.json +343 -343
  4. package/app/apps/web/.next-bundle/app-path-routes-manifest.json +42 -42
  5. package/app/apps/web/.next-bundle/build-manifest.json +3 -3
  6. package/app/apps/web/.next-bundle/prerender-manifest.json +9 -9
  7. package/app/apps/web/.next-bundle/required-server-files.json +3 -3
  8. package/app/apps/web/.next-bundle/server/app/(app)/agents/page.js +2 -2
  9. package/app/apps/web/.next-bundle/server/app/(app)/agents/page_client-reference-manifest.js +1 -1
  10. package/app/apps/web/.next-bundle/server/app/(app)/ai/page.js +2 -2
  11. package/app/apps/web/.next-bundle/server/app/(app)/ai/page_client-reference-manifest.js +1 -1
  12. package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page.js +2 -2
  13. package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page_client-reference-manifest.js +1 -1
  14. package/app/apps/web/.next-bundle/server/app/(app)/apps/page.js +2 -2
  15. package/app/apps/web/.next-bundle/server/app/(app)/apps/page_client-reference-manifest.js +1 -1
  16. package/app/apps/web/.next-bundle/server/app/(app)/bridge/page.js +2 -2
  17. package/app/apps/web/.next-bundle/server/app/(app)/bridge/page_client-reference-manifest.js +1 -1
  18. package/app/apps/web/.next-bundle/server/app/(app)/copies/page.js +2 -2
  19. package/app/apps/web/.next-bundle/server/app/(app)/copies/page_client-reference-manifest.js +1 -1
  20. package/app/apps/web/.next-bundle/server/app/(app)/credentials/page.js +2 -2
  21. package/app/apps/web/.next-bundle/server/app/(app)/credentials/page_client-reference-manifest.js +1 -1
  22. package/app/apps/web/.next-bundle/server/app/(app)/disk/page.js +2 -2
  23. package/app/apps/web/.next-bundle/server/app/(app)/disk/page_client-reference-manifest.js +1 -1
  24. package/app/apps/web/.next-bundle/server/app/(app)/handoff/page.js +2 -2
  25. package/app/apps/web/.next-bundle/server/app/(app)/handoff/page_client-reference-manifest.js +1 -1
  26. package/app/apps/web/.next-bundle/server/app/(app)/hidden/page.js +2 -2
  27. package/app/apps/web/.next-bundle/server/app/(app)/hidden/page_client-reference-manifest.js +1 -1
  28. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page.js +2 -2
  29. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page_client-reference-manifest.js +1 -1
  30. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page.js +2 -2
  31. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page_client-reference-manifest.js +1 -1
  32. package/app/apps/web/.next-bundle/server/app/(app)/packages/page.js +2 -2
  33. package/app/apps/web/.next-bundle/server/app/(app)/packages/page_client-reference-manifest.js +1 -1
  34. package/app/apps/web/.next-bundle/server/app/(app)/page.js +2 -2
  35. package/app/apps/web/.next-bundle/server/app/(app)/page_client-reference-manifest.js +1 -1
  36. package/app/apps/web/.next-bundle/server/app/(app)/runs/[id]/page.js +2 -2
  37. package/app/apps/web/.next-bundle/server/app/(app)/runs/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/apps/web/.next-bundle/server/app/(app)/runs/page.js +2 -2
  39. package/app/apps/web/.next-bundle/server/app/(app)/runs/page_client-reference-manifest.js +1 -1
  40. package/app/apps/web/.next-bundle/server/app/(app)/search/page.js +2 -2
  41. package/app/apps/web/.next-bundle/server/app/(app)/search/page_client-reference-manifest.js +1 -1
  42. package/app/apps/web/.next-bundle/server/app/(app)/spend/page.js +2 -2
  43. package/app/apps/web/.next-bundle/server/app/(app)/spend/page_client-reference-manifest.js +1 -1
  44. package/app/apps/web/.next-bundle/server/app/(app)/twin/look/page.js +2 -2
  45. package/app/apps/web/.next-bundle/server/app/(app)/twin/look/page_client-reference-manifest.js +1 -1
  46. package/app/apps/web/.next-bundle/server/app/(app)/twin/page.js +2 -2
  47. package/app/apps/web/.next-bundle/server/app/(app)/twin/page_client-reference-manifest.js +1 -1
  48. package/app/apps/web/.next-bundle/server/app/(app)/unsaved/page.js +2 -2
  49. package/app/apps/web/.next-bundle/server/app/(app)/unsaved/page_client-reference-manifest.js +1 -1
  50. package/app/apps/web/.next-bundle/server/app/_not-found/page.js +2 -2
  51. package/app/apps/web/.next-bundle/server/app/_not-found/page_client-reference-manifest.js +1 -1
  52. package/app/apps/web/.next-bundle/server/app/api/accounts/route.js +1 -1
  53. package/app/apps/web/.next-bundle/server/app/api/accounts/route_client-reference-manifest.js +1 -1
  54. package/app/apps/web/.next-bundle/server/app/api/agent/apps/route.js +1 -1
  55. package/app/apps/web/.next-bundle/server/app/api/agent/apps/route_client-reference-manifest.js +1 -1
  56. package/app/apps/web/.next-bundle/server/app/api/agent/consult/route.js +1 -1
  57. package/app/apps/web/.next-bundle/server/app/api/agent/consult/route_client-reference-manifest.js +1 -1
  58. package/app/apps/web/.next-bundle/server/app/api/agent/context/route.js +1 -1
  59. package/app/apps/web/.next-bundle/server/app/api/agent/context/route_client-reference-manifest.js +1 -1
  60. package/app/apps/web/.next-bundle/server/app/api/agent/conversations/route.js +1 -1
  61. package/app/apps/web/.next-bundle/server/app/api/agent/conversations/route_client-reference-manifest.js +1 -1
  62. package/app/apps/web/.next-bundle/server/app/api/agent/handoff/route.js +1 -1
  63. package/app/apps/web/.next-bundle/server/app/api/agent/handoff/route_client-reference-manifest.js +1 -1
  64. package/app/apps/web/.next-bundle/server/app/api/agent/hello/route.js +1 -1
  65. package/app/apps/web/.next-bundle/server/app/api/agent/hello/route_client-reference-manifest.js +1 -1
  66. package/app/apps/web/.next-bundle/server/app/api/agent/journal/route.js +1 -1
  67. package/app/apps/web/.next-bundle/server/app/api/agent/journal/route_client-reference-manifest.js +1 -1
  68. package/app/apps/web/.next-bundle/server/app/api/agent/keys/route.js +1 -1
  69. package/app/apps/web/.next-bundle/server/app/api/agent/keys/route_client-reference-manifest.js +1 -1
  70. package/app/apps/web/.next-bundle/server/app/api/agent/log/route.js +1 -1
  71. package/app/apps/web/.next-bundle/server/app/api/agent/log/route_client-reference-manifest.js +1 -1
  72. package/app/apps/web/.next-bundle/server/app/api/agent/mcp/route.js +2 -2
  73. package/app/apps/web/.next-bundle/server/app/api/agent/mcp/route_client-reference-manifest.js +1 -1
  74. package/app/apps/web/.next-bundle/server/app/api/agent/notes/route.js +1 -1
  75. package/app/apps/web/.next-bundle/server/app/api/agent/notes/route_client-reference-manifest.js +1 -1
  76. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/[id]/route.js +1 -1
  77. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/[id]/route_client-reference-manifest.js +1 -1
  78. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/route.js +1 -1
  79. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/route_client-reference-manifest.js +1 -1
  80. package/app/apps/web/.next-bundle/server/app/api/agent/video/cancel/route.js +1 -1
  81. package/app/apps/web/.next-bundle/server/app/api/agent/video/cancel/route_client-reference-manifest.js +1 -1
  82. package/app/apps/web/.next-bundle/server/app/api/agent/video/jobs/route.js +1 -1
  83. package/app/apps/web/.next-bundle/server/app/api/agent/video/jobs/route_client-reference-manifest.js +1 -1
  84. package/app/apps/web/.next-bundle/server/app/api/agent/video/route.js +1 -1
  85. package/app/apps/web/.next-bundle/server/app/api/agent/video/route_client-reference-manifest.js +1 -1
  86. package/app/apps/web/.next-bundle/server/app/api/ai/route.js +1 -1
  87. package/app/apps/web/.next-bundle/server/app/api/ai/route_client-reference-manifest.js +1 -1
  88. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/[operation]/route.js +1 -1
  89. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/[operation]/route_client-reference-manifest.js +1 -1
  90. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/credentials/route.js +1 -1
  91. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/credentials/route_client-reference-manifest.js +1 -1
  92. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/jobs/route.js +1 -1
  93. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/jobs/route_client-reference-manifest.js +1 -1
  94. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/legal/route.js +1 -1
  95. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/legal/route_client-reference-manifest.js +1 -1
  96. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/route.js +1 -1
  97. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/route_client-reference-manifest.js +1 -1
  98. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/settings/route.js +1 -1
  99. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/settings/route_client-reference-manifest.js +1 -1
  100. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/artifact/route.js +1 -1
  101. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/artifact/route_client-reference-manifest.js +1 -1
  102. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/cancel/route.js +1 -1
  103. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/cancel/route_client-reference-manifest.js +1 -1
  104. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/route.js +1 -1
  105. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/route_client-reference-manifest.js +1 -1
  106. package/app/apps/web/.next-bundle/server/app/api/apps/route.js +1 -1
  107. package/app/apps/web/.next-bundle/server/app/api/apps/route_client-reference-manifest.js +1 -1
  108. package/app/apps/web/.next-bundle/server/app/api/assets/route.js +1 -1
  109. package/app/apps/web/.next-bundle/server/app/api/assets/route_client-reference-manifest.js +1 -1
  110. package/app/apps/web/.next-bundle/server/app/api/assignments/launch/route.js +2 -2
  111. package/app/apps/web/.next-bundle/server/app/api/assignments/launch/route_client-reference-manifest.js +1 -1
  112. package/app/apps/web/.next-bundle/server/app/api/assignments/route.js +1 -1
  113. package/app/apps/web/.next-bundle/server/app/api/assignments/route_client-reference-manifest.js +1 -1
  114. package/app/apps/web/.next-bundle/server/app/api/catalog/route.js +1 -1
  115. package/app/apps/web/.next-bundle/server/app/api/catalog/route_client-reference-manifest.js +1 -1
  116. package/app/apps/web/.next-bundle/server/app/api/check/route.js +1 -1
  117. package/app/apps/web/.next-bundle/server/app/api/check/route_client-reference-manifest.js +1 -1
  118. package/app/apps/web/.next-bundle/server/app/api/consultations/route.js +1 -1
  119. package/app/apps/web/.next-bundle/server/app/api/consultations/route_client-reference-manifest.js +1 -1
  120. package/app/apps/web/.next-bundle/server/app/api/describe/route.js +2 -2
  121. package/app/apps/web/.next-bundle/server/app/api/describe/route_client-reference-manifest.js +1 -1
  122. package/app/apps/web/.next-bundle/server/app/api/disk/route.js +1 -1
  123. package/app/apps/web/.next-bundle/server/app/api/disk/route_client-reference-manifest.js +1 -1
  124. package/app/apps/web/.next-bundle/server/app/api/enrich/route.js +1 -1
  125. package/app/apps/web/.next-bundle/server/app/api/enrich/route_client-reference-manifest.js +1 -1
  126. package/app/apps/web/.next-bundle/server/app/api/environment/route.js +2 -2
  127. package/app/apps/web/.next-bundle/server/app/api/environment/route_client-reference-manifest.js +1 -1
  128. package/app/apps/web/.next-bundle/server/app/api/handoff/[id]/route.js +1 -1
  129. package/app/apps/web/.next-bundle/server/app/api/handoff/[id]/route_client-reference-manifest.js +1 -1
  130. package/app/apps/web/.next-bundle/server/app/api/handoff/digest/route.js +1 -1
  131. package/app/apps/web/.next-bundle/server/app/api/handoff/digest/route_client-reference-manifest.js +1 -1
  132. package/app/apps/web/.next-bundle/server/app/api/handoff/launch/route.js +1 -1
  133. package/app/apps/web/.next-bundle/server/app/api/handoff/launch/route_client-reference-manifest.js +1 -1
  134. package/app/apps/web/.next-bundle/server/app/api/handoff/record/route.js +1 -1
  135. package/app/apps/web/.next-bundle/server/app/api/handoff/record/route_client-reference-manifest.js +1 -1
  136. package/app/apps/web/.next-bundle/server/app/api/handoff/route.js +1 -1
  137. package/app/apps/web/.next-bundle/server/app/api/handoff/route_client-reference-manifest.js +1 -1
  138. package/app/apps/web/.next-bundle/server/app/api/hooks/route.js +2 -2
  139. package/app/apps/web/.next-bundle/server/app/api/hooks/route_client-reference-manifest.js +1 -1
  140. package/app/apps/web/.next-bundle/server/app/api/ingest/route.js +1 -1
  141. package/app/apps/web/.next-bundle/server/app/api/ingest/route_client-reference-manifest.js +1 -1
  142. package/app/apps/web/.next-bundle/server/app/api/md/apply/route.js +1 -1
  143. package/app/apps/web/.next-bundle/server/app/api/md/apply/route_client-reference-manifest.js +1 -1
  144. package/app/apps/web/.next-bundle/server/app/api/md/context/route.js +1 -1
  145. package/app/apps/web/.next-bundle/server/app/api/md/context/route_client-reference-manifest.js +1 -1
  146. package/app/apps/web/.next-bundle/server/app/api/md/inspect/route.js +1 -1
  147. package/app/apps/web/.next-bundle/server/app/api/md/inspect/route_client-reference-manifest.js +1 -1
  148. package/app/apps/web/.next-bundle/server/app/api/md/repair/route.js +1 -1
  149. package/app/apps/web/.next-bundle/server/app/api/md/repair/route_client-reference-manifest.js +1 -1
  150. package/app/apps/web/.next-bundle/server/app/api/md/review/route.js +2 -2
  151. package/app/apps/web/.next-bundle/server/app/api/md/review/route_client-reference-manifest.js +1 -1
  152. package/app/apps/web/.next-bundle/server/app/api/memory/export/route.js +2 -2
  153. package/app/apps/web/.next-bundle/server/app/api/memory/export/route_client-reference-manifest.js +1 -1
  154. package/app/apps/web/.next-bundle/server/app/api/north/route.js +1 -1
  155. package/app/apps/web/.next-bundle/server/app/api/north/route_client-reference-manifest.js +1 -1
  156. package/app/apps/web/.next-bundle/server/app/api/notes/route.js +1 -1
  157. package/app/apps/web/.next-bundle/server/app/api/notes/route_client-reference-manifest.js +1 -1
  158. package/app/apps/web/.next-bundle/server/app/api/open/all/route.js +1 -1
  159. package/app/apps/web/.next-bundle/server/app/api/open/all/route_client-reference-manifest.js +1 -1
  160. package/app/apps/web/.next-bundle/server/app/api/open/route.js +1 -1
  161. package/app/apps/web/.next-bundle/server/app/api/open/route_client-reference-manifest.js +1 -1
  162. package/app/apps/web/.next-bundle/server/app/api/project/route.js +1 -1
  163. package/app/apps/web/.next-bundle/server/app/api/project/route_client-reference-manifest.js +1 -1
  164. package/app/apps/web/.next-bundle/server/app/api/rescan/route.js +1 -1
  165. package/app/apps/web/.next-bundle/server/app/api/rescan/route_client-reference-manifest.js +1 -1
  166. package/app/apps/web/.next-bundle/server/app/api/roots/route.js +1 -1
  167. package/app/apps/web/.next-bundle/server/app/api/roots/route_client-reference-manifest.js +1 -1
  168. package/app/apps/web/.next-bundle/server/app/api/runs/[id]/route.js +1 -1
  169. package/app/apps/web/.next-bundle/server/app/api/runs/[id]/route_client-reference-manifest.js +1 -1
  170. package/app/apps/web/.next-bundle/server/app/api/runs/route.js +1 -1
  171. package/app/apps/web/.next-bundle/server/app/api/runs/route_client-reference-manifest.js +1 -1
  172. package/app/apps/web/.next-bundle/server/app/api/scale/route.js +1 -1
  173. package/app/apps/web/.next-bundle/server/app/api/scale/route_client-reference-manifest.js +1 -1
  174. package/app/apps/web/.next-bundle/server/app/api/search/route.js +1 -1
  175. package/app/apps/web/.next-bundle/server/app/api/search/route_client-reference-manifest.js +1 -1
  176. package/app/apps/web/.next-bundle/server/app/api/secrets/route.js +1 -1
  177. package/app/apps/web/.next-bundle/server/app/api/secrets/route_client-reference-manifest.js +1 -1
  178. package/app/apps/web/.next-bundle/server/app/api/spend/route.js +1 -1
  179. package/app/apps/web/.next-bundle/server/app/api/spend/route_client-reference-manifest.js +1 -1
  180. package/app/apps/web/.next-bundle/server/app/api/tasks/route.js +1 -1
  181. package/app/apps/web/.next-bundle/server/app/api/tasks/route_client-reference-manifest.js +1 -1
  182. package/app/apps/web/.next-bundle/server/app/api/today/route.js +1 -1
  183. package/app/apps/web/.next-bundle/server/app/api/today/route_client-reference-manifest.js +1 -1
  184. package/app/apps/web/.next-bundle/server/app/api/twin/assign/route.js +1 -1
  185. package/app/apps/web/.next-bundle/server/app/api/twin/assign/route_client-reference-manifest.js +1 -1
  186. package/app/apps/web/.next-bundle/server/app/api/twin/classify/route.js +1 -1
  187. package/app/apps/web/.next-bundle/server/app/api/twin/classify/route_client-reference-manifest.js +1 -1
  188. package/app/apps/web/.next-bundle/server/app/api/twin/critique/route.js +1 -1
  189. package/app/apps/web/.next-bundle/server/app/api/twin/critique/route_client-reference-manifest.js +1 -1
  190. package/app/apps/web/.next-bundle/server/app/api/twin/design/route.js +1 -1
  191. package/app/apps/web/.next-bundle/server/app/api/twin/design/route_client-reference-manifest.js +1 -1
  192. package/app/apps/web/.next-bundle/server/app/api/twin/distill/route.js +1 -1
  193. package/app/apps/web/.next-bundle/server/app/api/twin/distill/route_client-reference-manifest.js +1 -1
  194. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/learn/route.js +1 -1
  195. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/learn/route_client-reference-manifest.js +1 -1
  196. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/route.js +1 -1
  197. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/route_client-reference-manifest.js +1 -1
  198. package/app/apps/web/.next-bundle/server/app/api/twin/look/route.js +1 -1
  199. package/app/apps/web/.next-bundle/server/app/api/twin/look/route_client-reference-manifest.js +1 -1
  200. package/app/apps/web/.next-bundle/server/app/api/twin/mine/route.js +1 -1
  201. package/app/apps/web/.next-bundle/server/app/api/twin/mine/route_client-reference-manifest.js +1 -1
  202. package/app/apps/web/.next-bundle/server/app/api/twin/rehearse/route.js +1 -1
  203. package/app/apps/web/.next-bundle/server/app/api/twin/rehearse/route_client-reference-manifest.js +1 -1
  204. package/app/apps/web/.next-bundle/server/app/api/twin/score/route.js +1 -1
  205. package/app/apps/web/.next-bundle/server/app/api/twin/score/route_client-reference-manifest.js +1 -1
  206. package/app/apps/web/.next-bundle/server/app/api/twin/shot/route.js +1 -1
  207. package/app/apps/web/.next-bundle/server/app/api/twin/shot/route_client-reference-manifest.js +1 -1
  208. package/app/apps/web/.next-bundle/server/app/api/twin/sources/route.js +1 -1
  209. package/app/apps/web/.next-bundle/server/app/api/twin/sources/route_client-reference-manifest.js +1 -1
  210. package/app/apps/web/.next-bundle/server/app/api/twin/synthesize/route.js +1 -1
  211. package/app/apps/web/.next-bundle/server/app/api/twin/synthesize/route_client-reference-manifest.js +1 -1
  212. package/app/apps/web/.next-bundle/server/app/api/twin/taste/route.js +1 -1
  213. package/app/apps/web/.next-bundle/server/app/api/twin/taste/route_client-reference-manifest.js +1 -1
  214. package/app/apps/web/.next-bundle/server/app/api/twin/verdicts/route.js +1 -1
  215. package/app/apps/web/.next-bundle/server/app/api/twin/verdicts/route_client-reference-manifest.js +1 -1
  216. package/app/apps/web/.next-bundle/server/app/api/watch/route.js +1 -1
  217. package/app/apps/web/.next-bundle/server/app/api/watch/route_client-reference-manifest.js +1 -1
  218. package/app/apps/web/.next-bundle/server/app/apple-icon.png/route.js +1 -1
  219. package/app/apps/web/.next-bundle/server/app/icon/[id]/route.js +1 -1
  220. package/app/apps/web/.next-bundle/server/app/icon/[id]/route_client-reference-manifest.js +1 -1
  221. package/app/apps/web/.next-bundle/server/app/icon.png/route.js +1 -1
  222. package/app/apps/web/.next-bundle/server/app-paths-manifest.json +42 -42
  223. package/app/apps/web/.next-bundle/server/chunks/1454.js +2 -0
  224. package/app/apps/web/.next-bundle/server/chunks/1646.js +5 -5
  225. package/app/apps/web/.next-bundle/server/chunks/2791.js +1 -0
  226. package/app/apps/web/.next-bundle/server/chunks/3863.js +1 -1
  227. package/app/apps/web/.next-bundle/server/chunks/6131.js +1 -0
  228. package/app/apps/web/.next-bundle/server/chunks/6206.js +1 -1
  229. package/app/apps/web/.next-bundle/server/chunks/6384.js +1 -1
  230. package/app/apps/web/.next-bundle/server/chunks/7245.js +1 -1
  231. package/app/apps/web/.next-bundle/server/chunks/8463.js +1 -1
  232. package/app/apps/web/.next-bundle/server/chunks/9128.js +1 -1
  233. package/app/apps/web/.next-bundle/server/functions-config-manifest.json +6 -6
  234. package/app/apps/web/.next-bundle/server/middleware-build-manifest.js +1 -1
  235. package/app/apps/web/.next-bundle/server/middleware-manifest.json +5 -5
  236. package/app/apps/web/.next-bundle/server/middleware.js +2 -2
  237. package/app/apps/web/.next-bundle/server/next-font-manifest.js +1 -1
  238. package/app/apps/web/.next-bundle/server/next-font-manifest.json +1 -1
  239. package/app/apps/web/.next-bundle/server/pages/500.html +1 -1
  240. package/app/apps/web/.next-bundle/server/server-reference-manifest.json +1 -1
  241. package/app/apps/web/.next-bundle/static/chunks/{1369-514f421b74ddd546.js → 1369-2c988debdc250f63.js} +1 -1
  242. package/app/apps/web/.next-bundle/static/chunks/2575-61e3c59775a07058.js +1 -0
  243. package/app/apps/web/.next-bundle/static/chunks/2921-abf2bd91adbc76d4.js +1 -0
  244. package/app/apps/web/.next-bundle/static/chunks/2948-e207a4e3dee8fa26.js +1 -0
  245. package/app/apps/web/.next-bundle/static/chunks/7f092448-8ec90a5d5349d5de.js +1 -0
  246. package/app/apps/web/.next-bundle/static/chunks/app/(app)/agents/page-cae57c1555749574.js +1 -0
  247. package/app/apps/web/.next-bundle/static/chunks/app/(app)/ai/{page-beb96e7f7a56ac65.js → page-f63553805baaea0c.js} +1 -1
  248. package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/[id]/{page-7fd561dfea561bee.js → page-da64889cd7413e00.js} +1 -1
  249. package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/{page-ba0da767076b59ee.js → page-3cf7accd30ae08c7.js} +1 -1
  250. package/app/apps/web/.next-bundle/static/chunks/app/(app)/bridge/page-f1661f3e36e93d98.js +1 -0
  251. package/app/apps/web/.next-bundle/static/chunks/app/(app)/copies/page-44ebbc5d00245788.js +1 -0
  252. package/app/apps/web/.next-bundle/static/chunks/app/(app)/credentials/{page-db952949fd680244.js → page-c1d8a21174d6bba2.js} +1 -1
  253. package/app/apps/web/.next-bundle/static/chunks/app/(app)/disk/{page-58dba9a693f3efd1.js → page-79c4c0af255ea5db.js} +1 -1
  254. package/app/apps/web/.next-bundle/static/chunks/app/(app)/{error-2c3f75f2c68c6bab.js → error-bc8b33871ce6ee62.js} +1 -1
  255. package/app/apps/web/.next-bundle/static/chunks/app/(app)/handoff/{page-af0790c554af2371.js → page-41198249f6480477.js} +1 -1
  256. package/app/apps/web/.next-bundle/static/chunks/app/(app)/hidden/page-0eec0c39fae7b922.js +1 -0
  257. package/app/apps/web/.next-bundle/static/chunks/app/(app)/{layout-2f357c79701ed83e.js → layout-f4763a241faa2e25.js} +1 -1
  258. package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/{page-ea0ecbae2d960666.js → page-bf90188e9460900b.js} +1 -1
  259. package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/video/page-8ac2b429692e90c6.js +1 -0
  260. package/app/apps/web/.next-bundle/static/chunks/app/(app)/page-a6579330ff0a1c45.js +1 -0
  261. package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/[id]/page-71e91e2f82fbcd0a.js +1 -0
  262. package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/page-44ebbc5d00245788.js +1 -0
  263. package/app/apps/web/.next-bundle/static/chunks/app/(app)/search/{page-5f61bffc868d47cc.js → page-0788d039d155cdf2.js} +1 -1
  264. package/app/apps/web/.next-bundle/static/chunks/app/(app)/spend/{page-fce603598ab4b457.js → page-9b43a28c5537214d.js} +1 -1
  265. package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/look/{page-e8582a3dd4da47bb.js → page-47bc811a5a4bbed5.js} +1 -1
  266. package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/{page-6e103fc5ed54eabe.js → page-12d36b362fc4d2d2.js} +1 -1
  267. package/app/apps/web/.next-bundle/static/chunks/app/(app)/unsaved/{page-433663c1b9556d04.js → page-4bffe36641979e0c.js} +1 -1
  268. package/app/apps/web/.next-bundle/static/chunks/app/global-not-found-44ebbc5d00245788.js +1 -0
  269. package/app/apps/web/.next-bundle/static/chunks/app/not-found-44ebbc5d00245788.js +1 -0
  270. package/app/apps/web/.next-bundle/static/chunks/{main-app-0bad81d9bc79bc82.js → main-app-ec5cb301dd9fc61e.js} +1 -1
  271. package/app/apps/web/.next-bundle/static/css/b1d2cc9ccd4e30bf.css +1 -0
  272. package/app/apps/web/server.js +1 -1
  273. package/app/node_modules/drizzle-orm/node_modules/.bin/gel +3 -3
  274. package/npm-shrinkwrap.json +2 -2
  275. package/package.json +1 -1
  276. package/app/apps/web/.next-bundle/server/chunks/5839.js +0 -1
  277. package/app/apps/web/.next-bundle/server/chunks/7498.js +0 -2
  278. package/app/apps/web/.next-bundle/static/chunks/2575-e53eff318f43e123.js +0 -1
  279. package/app/apps/web/.next-bundle/static/chunks/2921-92c9a83559025278.js +0 -1
  280. package/app/apps/web/.next-bundle/static/chunks/2948-db3dde2d3c76f184.js +0 -1
  281. package/app/apps/web/.next-bundle/static/chunks/7f092448-875cfd730dc78b44.js +0 -1
  282. package/app/apps/web/.next-bundle/static/chunks/app/(app)/agents/page-be3b13d1301a5855.js +0 -1
  283. package/app/apps/web/.next-bundle/static/chunks/app/(app)/bridge/page-b8cc7ef93c7a01f7.js +0 -1
  284. package/app/apps/web/.next-bundle/static/chunks/app/(app)/copies/page-1c5bac527b81fbfb.js +0 -1
  285. package/app/apps/web/.next-bundle/static/chunks/app/(app)/hidden/page-a2f95d21457cf062.js +0 -1
  286. package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/video/page-51409af610218587.js +0 -1
  287. package/app/apps/web/.next-bundle/static/chunks/app/(app)/page-ad2cd4e236fd2f60.js +0 -1
  288. package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/[id]/page-75c179ccca63a724.js +0 -1
  289. package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/page-1c5bac527b81fbfb.js +0 -1
  290. package/app/apps/web/.next-bundle/static/chunks/app/global-not-found-1c5bac527b81fbfb.js +0 -1
  291. package/app/apps/web/.next-bundle/static/chunks/app/not-found-1c5bac527b81fbfb.js +0 -1
  292. package/app/apps/web/.next-bundle/static/css/5fdcdf46b29ffe26.css +0 -1
  293. /package/app/apps/web/.next-bundle/static/{phRAJdip0Dtgh1L1Yw0jm → w6oDX-SYfedAnhX2GThXZ}/_buildManifest.js +0 -0
  294. /package/app/apps/web/.next-bundle/static/{phRAJdip0Dtgh1L1Yw0jm → w6oDX-SYfedAnhX2GThXZ}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2921],{10354:(e,s,t)=>{var a=t(61990);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},56684:(e,s,t)=>{t.d(s,{k5:()=>p});var a=t(32165),l={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=a.createContext&&a.createContext(l),r=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}function c(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function o(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?c(Object(t),!0).forEach(function(s){var a,l,n;a=e,l=s,n=t[s],(l=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,s||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(l))in a?Object.defineProperty(a,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[l]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function p(e){return s=>a.createElement(d,i({attr:o({},e.attr)},s),function e(s){return s&&s.map((s,t)=>a.createElement(s.tag,o({key:t},s.attr),e(s.child)))}(e.child))}function d(e){var s=s=>{var t,l=e.attr,n=e.size,c=e.title,p=function(e,s){if(null==e)return{};var t,a,l=function(e,s){if(null==e)return{};var t={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==s.indexOf(a))continue;t[a]=e[a]}return t}(e,s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===s.indexOf(t)&&({}).propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,r),d=n||s.size||"1em";return s.className&&(t=s.className),e.className&&(t=(t?t+" ":"")+e.className),a.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,l,p,{className:t,style:o(o({color:e.color||s.color},s.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&a.createElement("title",null,c),e.children)};return void 0!==n?a.createElement(n.Consumer,null,e=>s(e)):s(l)}},57776:(e,s,t)=>{t.d(s,{AppDetail:()=>k,uV:()=>x,jY:()=>w});var a=t(38657),l=t(32165),n=t(3043),r=t(9144),i=t(52948),c=t(97234),o=t(76982),p=t(3953),d=t.n(p),u=t(10354);function m(e){var s,t;let{ready:c,project:o,projects:p,loadError:m=!1,step:x}=e,h=(0,r.kj)(),b=(0,u.useRouter)(),j=(0,l.useId)(),[v,g]=(0,l.useTransition)(),[f,N]=(0,l.useState)(null),y=f&&f.queryProject===o?f.slug:null!=o?o:"",k=p.find(e=>e.slug===y),w=!!(y&&!k),C=new Map;for(let e of p)C.set(e.name,(null!=(s=C.get(e.name))?s:0)+1);return(0,a.jsxs)(i.Zp,{as:"section",id:"app-launch",tabIndex:-1,"aria-labelledby":"".concat(j,"-title"),"aria-busy":v||void 0,className:"scroll-mt-[calc(var(--bar-height)+var(--space-4))]",children:[x,(0,a.jsx)("h2",{id:"".concat(j,"-title"),className:"mt-1 text-base font-semibold text-chalk",children:h("apps.launch.title")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:h("apps.launch.intro")}),m?(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)(i.lZ,{text:h("apps.launch.loadError")}),(0,a.jsx)(i.rA,{tone:"surface",className:"mt-3",type:"button",onClick:function(){g(()=>b.refresh())},busy:v,busyLabel:h("apps.launch.loading"),children:h("apps.retry")})]}):0===p.length?(0,a.jsx)(i.pp,{variant:"bare",className:"mt-4",title:h("apps.launch.empty"),action:(0,a.jsx)(d(),{href:"/",className:"text-xs text-chalk underline underline-offset-4",children:h("apps.launch.catalog")}),children:h("apps.launch.emptyHint")}):(0,a.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,a.jsxs)(i.l6,{label:h("apps.launch.project"),size:"lg",value:null!=(t=null==k?void 0:k.slug)?t:"",disabled:v,"aria-describedby":"".concat(j,"-open-hint").concat(w?" ".concat(j,"-missing"):""),onChange:e=>N({queryProject:o,slug:e.target.value}),children:[(0,a.jsx)("option",{value:"",children:h("apps.launch.choose")}),p.map(e=>{var s;return(0,a.jsx)("option",{value:e.slug,children:(null!=(s=C.get(e.name))?s:0)>1?"".concat(e.name," \xb7 ").concat(e.slug):e.name},e.slug)})]}),w&&(0,a.jsx)("p",{id:"".concat(j,"-missing"),role:"status",className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.missingProject")}),c&&k?(0,a.jsxs)(d(),{href:"/p/".concat(encodeURIComponent(k.slug),"/video"),prefetch:!1,className:"apps-button apps-button-primary gap-2",children:[h("apps.launch.open"),(0,a.jsx)(n.r9I,{className:"size-4","aria-hidden":!0})]}):(0,a.jsxs)(i.rA,{tone:"accent",size:"lg",type:"button",disabled:!0,children:[h("apps.launch.open"),(0,a.jsx)(n.r9I,{className:"size-4","aria-hidden":!0})]}),(0,a.jsx)("p",{id:"".concat(j,"-open-hint"),className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.openHint")})]}),!c&&(0,a.jsxs)("div",{className:"mt-4 border-t border-edge pt-3",children:[(0,a.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.setupHint")}),(0,a.jsx)(d(),{href:"#app-requirements",className:"mt-2 inline-block text-xs text-chalk underline underline-offset-4",children:h("apps.launch.setupLink")})]}),(0,a.jsx)("p",{role:"status",className:"sr-only",children:v?h("apps.launch.loading"):""})]})}function x(e){let{error:s}=e,t=(0,r.kj)();if(!s)return null;let l=(0,c.hz)(s),n=l.stage?{...l.vars,stage:t("apps.jobs.stage.".concat(l.stage))}:l.vars;return(0,a.jsxs)("div",{className:"mt-4 rounded border border-edge bg-raised p-3 text-sm",role:"alert",children:[(0,a.jsx)("p",{className:"text-smoke",children:t(l.key,n)}),l.quote&&(0,a.jsx)("blockquote",{className:"mt-1 break-words",children:l.quote})]})}let h={install:"apps.working.install",update:"apps.working.update",browser:"apps.working.browser",doctor:"apps.working.doctor"};function b(e){var s;let{job:t}=e,l=(0,r.kj)();if(!t)return null;let n=(0,c.xK)(t),i="browser"===t.tool&&void 0!==n?l("apps.working.browserPercent",{n:n}):l(null!=(s=h[t.tool])?s:"apps.working.other");return(0,a.jsxs)("div",{className:"mt-3",role:"status","aria-live":"polite",children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:i}),void 0!==n&&(0,a.jsx)("progress",{className:"mt-2 w-full",max:100,value:n,"aria-label":l("apps.jobs.progress",{n:n})})]})}function j(e){let{n:s,total:t=3}=e,l=(0,r.kj)();return(0,a.jsx)("p",{className:"eyebrow",children:l("apps.stepOf",{n:s,total:t})})}function v(e){var s;let{t,app:l,busy:n,onOperate:r}=e,i=(null==(s=l.npm)?void 0:s.present)===!1;return(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap gap-2",children:[l.version&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"apps-button",disabled:n||i,onClick:()=>r("update"),children:t("apps.update")}),(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r(!1===l.enabled?"enable":"disable"),children:t(!1===l.enabled?"apps.enable":"apps.disable")}),l.previousVersion&&(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r("rollback"),children:t("apps.rollback")})]}),(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r("check"),children:t("apps.check")})]})}function g(e){var s,t,l,n;let{t:r,locale:c,requirement:o,app:p,busy:d,working:u,onOperate:m}=e,x=!0===o.present?"apps.present":!1===o.present?"apps.missing":"apps.unchecked";return(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold",children:r("browser"===o.id?"apps.browser":"apps.ffmpeg")}),(0,a.jsx)(i.vw,{size:"md",tone:o.present?"live":!1===o.present?"idle":"neutral",children:r(x)})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("browser"===o.id?"apps.browserHint":"apps.ffmpegHint")}),"browser"===o.id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("apps.browserOwnCopy")}),!o.present&&(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("apps.browserConsent",{n:null!=(t=o.approxMB)?t:550})}),(0,a.jsx)("a",{className:"mt-2 inline-block text-sm underline",href:null!=(l=o.termsUrl)?l:"https://www.google.com/chrome/terms/",target:"_blank",rel:"noreferrer",children:r("apps.terms")}),!o.present&&(0,a.jsx)("div",{children:(0,a.jsx)("button",{className:"apps-button mt-3",disabled:d||!p.version,onClick:()=>m("browser"),children:r("apps.download")})}),(0,a.jsx)(b,{job:u})]}):!o.present&&(0,a.jsx)("p",{className:"mt-2 break-words text-sm leading-relaxed text-smoke",children:null!=(n=null==(s=o.install)?void 0:s[c])?n:r("apps.ffmpegInstall")})]})}function f(e){var s;let{t,locale:l,app:n,busy:r,working:o,onOperate:p}=e,d=o&&["install","update","doctor"].includes(o.tool)?o:void 0;return(0,a.jsxs)(i.Zp,{as:"section",id:"app-requirements",tabIndex:-1,"aria-labelledby":"app-requirements-title",className:"scroll-mt-[calc(var(--bar-height)+var(--space-4))]",children:[(0,a.jsx)(j,{n:1}),(0,a.jsx)("h2",{id:"app-requirements-title",className:"mt-1 text-base font-semibold",children:t("apps.requirements")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:t("apps.setupIntro")}),!n.version&&(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("button",{className:"apps-button apps-button-primary",disabled:r||(null==(s=n.npm)?void 0:s.present)===!1,onClick:()=>p("install"),children:t("apps.install")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:t("apps.installHint")})]}),n.version&&!1===n.enabled&&(0,a.jsx)("button",{className:"apps-button apps-button-primary mt-4",disabled:r,onClick:()=>p("enable"),children:t("apps.enable")}),n.version&&(0,a.jsx)("button",{className:"apps-button mt-3",disabled:r,onClick:()=>p("doctor"),children:t("apps.refreshRequirements")}),(0,a.jsx)(b,{job:d}),n.requirementsAt&&(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:t("apps.checkedAt",{date:new Date(n.requirementsAt).toLocaleString(l)})}),(0,c.CG)(n).map(e=>(0,a.jsx)(g,{t:t,locale:l,requirement:e,app:n,busy:r,working:(null==o?void 0:o.tool)===e.id?o:void 0,onOperate:p},e.id))]})}function N(e){var s,t,n,r,c;let{t:o,locale:p,app:d,busy:u,onOperate:m}=e,[x,h]=(0,l.useState)(!1),b=null!=(n=null==(s=d.space)?void 0:s.dataBytes)?n:0;return(0,a.jsxs)(i.Zp,{as:"section",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:o("apps.versions")}),(0,a.jsxs)("div",{className:"mt-3 space-y-2 font-mono text-xs",children:[(0,a.jsx)("p",{children:d.pkg}),(0,a.jsx)("p",{children:o("apps.version",{version:null!=(r=d.version)?r:"—"})}),d.previousVersion&&(0,a.jsx)("p",{children:o("apps.previous",{version:d.previousVersion})}),d.latestVersion&&(0,a.jsx)("p",{children:o("apps.available",{version:d.latestVersion})}),d.registryAt&&(0,a.jsx)("p",{children:o("apps.registryAt",{date:new Date(d.registryAt).toLocaleString(p)})}),d.stagedVersion&&(0,a.jsx)("p",{children:o("apps.staged",{version:d.stagedVersion})}),(0,a.jsx)("p",{children:o("apps.packageSpace",{bytes:(0,i.z3)(null!=(c=null==(t=d.space)?void 0:t.packageBytes)?c:0)})}),(0,a.jsx)("p",{children:o("apps.dataSpace",{bytes:(0,i.z3)(b)})})]}),(0,a.jsx)(v,{t:o,app:d,busy:u,onOperate:m}),d.version&&(0,a.jsx)("button",{className:"apps-button mt-4",disabled:u,onClick:()=>m("uninstall"),children:o("apps.uninstall")}),b>0&&(0,a.jsx)("button",{className:"apps-button mt-3",disabled:u,onClick:()=>h(!0),children:o("apps.clean")}),x&&(0,a.jsxs)("div",{className:"mt-3 rounded border border-edge p-3",children:[(0,a.jsx)("p",{className:"text-sm",children:o("apps.cleanConfirm",{bytes:(0,i.z3)(b)})}),(0,a.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,a.jsx)("button",{className:"apps-button",disabled:u,onClick:()=>{h(!1),m("clean")},children:o("apps.confirm")}),(0,a.jsx)("button",{className:"apps-button",onClick:()=>h(!1),children:o("apps.cancel")})]})]})]})}function y(e){let{t:s,app:t}=e;return(0,a.jsxs)(i.Zp,{as:"section",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:s("apps.legal")}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-smoke",children:s("apps.privacy")}),t.version&&(0,a.jsx)("div",{className:"mt-4 flex gap-4 text-sm",children:["license","notices","codecs"].map(e=>(0,a.jsx)("a",{className:"underline",href:"/api/apps/".concat(t.id,"/legal?document=").concat(e),target:"_blank",rel:"noreferrer",children:s("apps.".concat(e))},e))})]})}function k(e){var s,t,p,d,u,h;let{id:b,project:v,projects:g,projectsError:k}=e,C=(0,r.kj)(),S=(0,r.Ym)(),{app:O,error:P,setError:q,reload:A}=function(e){var s,t;let[a,n]=(0,l.useState)(null),[r,i]=(0,l.useState)(null),o=(0,l.useCallback)(async()=>{try{n(await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(e),"?space=1"))),i(null)}catch(e){i(String(e instanceof Error?e.message:e))}},[e]);(0,l.useEffect)(()=>{o()},[o]);let p=null==a||null==(t=a.jobs)||null==(s=t.find(e=>c.Cn.has(e.status)))?void 0:s.id;return(0,l.useEffect)(()=>{if(!p)return;let e=new AbortController;return(0,c.E4)(p,e.signal,e=>{n(s=>{var t;return s?{...s,jobs:null==(t=s.jobs)?void 0:t.map(s=>s.id===e.id?e:s)}:s}),i(null),c.Cn.has(e.status)||o()},i),()=>e.abort()},[p,o]),{app:a,error:r,setError:i,reload:o}}(b),[E,z]=(0,l.useState)(!1),I=(0,l.useCallback)(async e=>{z(!0),q(null);try{await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(b),"/").concat(e),{}),await A()}catch(e){q(e.message)}finally{z(!1)}},[b,A,q]),T=(0,l.useCallback)(e=>{I(e)},[I]);if(!O)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{error:P}),(0,a.jsx)("p",{className:"mt-6 text-smoke",children:C("apps.loading")}),P&&(0,a.jsx)("button",{className:"apps-button mt-3",onClick:()=>void A(),children:C("apps.retry")})]});let R=E||!!(null==(s=O.jobs)?void 0:s.some(e=>c.Cn.has(e.status))),D=(0,c.Qp)(O),L=(0,c.sk)(O);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("header",{className:"mt-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,a.jsx)(n.UW0,{"aria-hidden":!0,className:"h-16 w-16 shrink-0 text-accent"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"eyebrow",children:C("apps.official")}),(0,a.jsx)("h1",{className:"page-shell__title mt-1",children:(0,c.JB)(O,S)})]}),(0,a.jsx)(i.vw,{size:"md",tone:O.ready&&!1!==O.enabled?"live":"strong",children:C((0,c.nN)(O))})]}),(0,a.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-smoke",children:null!=(u=null==(p=O.manifest)||null==(t=p.summary)?void 0:t[S])?u:C("apps.videoSummary")}),(0,a.jsx)("p",{className:"mt-3 text-sm font-semibold text-chalk",children:(0,a.jsx)("a",{className:"underline underline-offset-4",href:"create"===L?"#app-launch":"#app-requirements",children:C("apps.next.".concat(L))})})]}),(0,a.jsx)(x,{error:null!=P?P:O.error}),(null==(d=O.npm)?void 0:d.present)===!1&&(0,a.jsx)("p",{className:"mt-4 text-sm text-smoke",children:C("apps.npmMissing")}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-4 lg:grid lg:grid-cols-2 lg:items-start",children:[(0,a.jsxs)("div",{className:"contents lg:flex lg:flex-col lg:gap-4",children:[(0,a.jsx)("div",{className:"order-1 lg:contents",children:(0,a.jsx)(f,{t:C,locale:S,app:O,busy:R,working:D,onOperate:T})}),(0,a.jsx)("div",{className:"order-3 lg:contents",children:(0,a.jsx)(m,{ready:!!(O.ready&&!1!==O.enabled),project:v,projects:g,loadError:k,step:(0,a.jsx)(j,{n:3})})})]}),(0,a.jsxs)("div",{className:"contents lg:flex lg:flex-col lg:gap-4",children:[(0,a.jsx)("div",{className:"order-2 lg:contents",children:(0,a.jsx)(o.G,{app:O,busy:R,onSave:A,step:(0,a.jsx)(j,{n:2})})}),(0,a.jsx)("div",{className:"order-4 lg:contents",children:(0,a.jsx)(N,{t:C,locale:S,app:O,busy:R,onOperate:T})})]})]}),(0,a.jsx)("div",{className:"mt-4 grid items-start gap-4 lg:grid-cols-2",children:(0,a.jsx)(y,{t:C,app:O})}),(0,a.jsxs)("section",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:C("apps.jobs.title")}),(0,a.jsx)(w,{jobs:null!=(h=O.jobs)?h:[],onCancel:e=>{(0,c.Tl)("/api/apps/jobs/".concat(e.id,"/cancel"),{}).then(A).catch(e=>q(e.message))}})]})]})}function w(e){let{jobs:s,onCancel:t}=e,l=(0,r.kj)(),n=(0,r.Ym)();return(0,a.jsxs)("div",{className:"mt-4 space-y-3",children:[0===s.length&&(0,a.jsx)(i.pp,{variant:"note",title:l("apps.jobs.empty")}),s.map(e=>{var s,r;let i=(0,c.xK)(e),o=c.Cn.has(e.status),p=e.requestedAt?new Date(e.requestedAt).toLocaleString(n):"";return(0,a.jsxs)("div",{className:"rounded border border-edge p-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("p",{className:"text-sm",role:"status",children:[(0,a.jsx)("span",{className:"font-mono",children:e.tool})," \xb7 ",l((0,c.$J)(e.status)),p&&(0,a.jsxs)("span",{className:"text-faint",children:[" \xb7 ",p]}),e.requestedBy&&(0,a.jsxs)("span",{className:"text-faint",children:[" \xb7 ",l("apps.jobs.requestedBy",{name:e.requestedBy})]})]}),t&&o&&(0,a.jsx)("button",{className:"apps-button",disabled:"cancelling"===e.status,onClick:()=>t(e),children:l("apps.jobs.cancel")})]}),o&&(null==(s=e.progress)?void 0:s.message)&&(0,a.jsx)("blockquote",{className:"mt-2 text-sm text-smoke",children:e.progress.message}),o&&void 0!==i&&(0,a.jsx)("progress",{className:"mt-3 w-full",max:100,value:i,"aria-label":l("apps.jobs.progress",{n:i})}),(0,a.jsx)(x,{error:e.error}),!o&&e.error&&(null==(r=e.progress)?void 0:r.message)&&(0,a.jsxs)("details",{className:"mt-2 text-sm",children:[(0,a.jsx)("summary",{className:"text-smoke",children:l("apps.jobs.lastSaid")}),(0,a.jsx)("blockquote",{className:"mt-2 break-words text-smoke",children:e.progress.message})]})]},e.id)})]})}},76982:(e,s,t)=>{t.d(s,{G:()=>u,n:()=>d});var a=t(38657),l=t(3953),n=t.n(l),r=t(32165),i=t(3043),c=t(97234),o=t(9144),p=t(52948);let d=[{value:"claude",label:"Claude Code"},{value:"codex",label:"Codex"},{value:"anthropic",label:"Anthropic API"},{value:"openai",label:"OpenAI API"}];function u(e){var s,t,l,u,x,h,b,j,v,g;let{app:f,busy:N,onSave:y,step:k}=e,w=(0,o.kj)(),C=(0,o.Ym)(),[S,O]=(0,r.useState)(null),[P,q]=(0,r.useState)(null),[A,E]=(0,r.useState)(!1),[z,I]=(0,r.useState)(!1),[T,R]=(0,r.useState)(!1),[D,L]=(0,r.useState)(!1),[Z,H]=(0,r.useState)(null),[V,_]=(0,r.useState)(!1),[B,F]=(0,r.useState)(!0),U=(0,r.useRef)(!1),J=null!=(b=null!=S?S:null==(s=f.settings)?void 0:s.brain)?b:"none",G=null!=(j=null!=P?P:null==(t=f.settings)?void 0:t.voice)&&j,M="none"!==J&&J!==(null!=(v=null==(l=f.settings)?void 0:l.brain)?v:"none")||G&&!(null==(u=f.settings)?void 0:u.voice),Y=G&&!(null==Z?void 0:Z.configured),K=N||z,W="/api/apps/".concat(encodeURIComponent(f.id),"/credentials"),Q=(0,r.useCallback)(async e=>{F(!0),_(!1);try{let s=await (0,c.Tl)(W,void 0,"GET",e);(null==e?void 0:e.aborted)||H(s)}catch(s){(null==e?void 0:e.aborted)||_(!0)}finally{(null==e?void 0:e.aborted)||F(!1)}},[W]);function $(){E(!1),R(!1),L(!1)}async function X(){if(!U.current&&!K&&!Y&&(!M||A)){U.current=!0,I(!0),R(!1),L(!1);try{let e=await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(f.id),"/settings"),{brain:J,voice:G,confirm:A},"PATCH");O(e.settings.brain),q(e.settings.voice),await y(),E(!1),R(!0)}catch(e){L(!0)}finally{U.current=!1,I(!1)}}}return(0,r.useEffect)(()=>{let e=new AbortController;return Q(e.signal),()=>e.abort()},[Q]),(0,a.jsxs)(p.Zp,{as:"section","aria-labelledby":"app-providers-title",children:[k,(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("h2",{id:"app-providers-title",className:"text-base font-semibold",children:w("apps.providers")}),(0,a.jsx)(p.vw,{size:"md",children:w("apps.optional")})]}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:w("apps.providersIntro")}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsxs)(p.l6,{label:w("apps.brain"),value:J,disabled:K,onChange:e=>{O(e.target.value),$()},children:[(0,a.jsx)("option",{value:"none",children:w("apps.none")}),(0,a.jsx)("option",{value:"auto",children:w("apps.auto")}),d.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:w("apps.brainHint")}),(0,a.jsx)(n(),{href:"/ai",className:"mt-2 inline-block text-xs underline underline-offset-4",children:w("apps.configureModel")})]}),(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.INy,{"aria-hidden":!0,className:"h-5 w-5"}),(0,a.jsx)("h3",{className:"text-sm font-semibold",children:w("apps.voice")})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:w("apps.voiceHint")}),B?(0,a.jsx)("p",{role:"status",className:"mt-3 text-xs text-smoke",children:w("apps.key.loading")}):V?(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)(p.lZ,{text:w("apps.key.loadFailed")}),(0,a.jsx)(p.rA,{type:"button",tone:"surface",className:"mt-2",onClick:()=>void Q(),children:w("apps.retry")})]}):Z&&(0,a.jsx)(m,{endpoint:W,status:Z,busy:K,onChanged:e=>{H(e),$()}}),(0,a.jsx)(p.Jl,{size:"lg",className:"mt-4",checked:G,disabled:K||B&&!G||!(null==Z?void 0:Z.configured)&&!G,onChange:e=>{q(e.target.checked),$()},children:w("apps.enableVoice")}),Y&&(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:w("apps.key.required")})]}),M&&(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-4",children:[(0,a.jsx)("div",{className:"space-y-2 text-xs leading-relaxed text-smoke",children:(null!=(g=null==(h=f.manifest)||null==(x=h.providers)?void 0:x.filter(e=>"brain"===e.id?"none"!==J:G))?g:[]).map(e=>(0,a.jsx)("p",{children:e.sends[C]},e.id))}),(0,a.jsx)(p.Jl,{size:"lg",className:"mt-3",checked:A,disabled:K,onChange:e=>E(e.target.checked),children:w("apps.providerConfirm")})]}),(0,a.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3 border-t border-edge pt-4",children:[(0,a.jsx)(p.rA,{type:"button",tone:"accent",busy:z,busyLabel:w("apps.saving"),disabled:K||Y||M&&!A,onClick:()=>void X(),children:w("apps.providerSave")}),(0,a.jsx)("p",{role:"status",className:"text-xs text-smoke",children:T?w("apps.providersSaved"):""})]}),D&&(0,a.jsx)(p.lZ,{text:w("apps.providersFailed"),className:"mt-3"}),(0,a.jsx)(n(),{href:"/spend",className:"mt-3 inline-block text-xs underline underline-offset-4",children:w("apps.spendLink")})]})}function m(e){let{endpoint:s,status:t,busy:l,onChanged:n}=e,d=(0,o.kj)(),[u,m]=(0,r.useState)(""),[x,h]=(0,r.useState)(!1),[b,j]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!1),[f,N]=(0,r.useState)(!1),[y,k]=(0,r.useState)(null),w=(0,r.useRef)(!1),C=l||v,S=(0,r.useRef)(null);async function O(e){if(!w.current&&!C){w.current=!0,g(!0),N(!1),k(null);try{let t=await (0,c.Tl)(s,"POST"===e?{provider:"elevenlabs",key:u.trim()}:{provider:"elevenlabs"},e);m(""),h(!1),j(!1),k("POST"===e?"saved":"removed"),n(t)}catch(e){N(!0)}finally{w.current=!1,g(!1)}}}return(0,r.useEffect)(()=>{var e,s;x&&(null==(s=S.current)||null==(e=s.querySelector("input"))||e.focus())},[x]),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,a.jsx)(i.JPZ,{"aria-hidden":!0,className:"h-4 w-4"}),(0,a.jsx)(p.vw,{size:"md",tone:t.configured?"strong":"neutral",children:d(t.configured?"apps.key.configured":"apps.key.missing")})]}),(!t.configured||x)&&(0,a.jsxs)("form",{ref:S,className:"mt-3",onSubmit:e=>{e.preventDefault(),u.trim()&&O("POST")},children:[(0,a.jsx)(p.D0,{label:d("apps.key.label"),type:"password",autoComplete:"off",spellCheck:!1,required:!0,maxLength:500,value:u,disabled:C,"aria-describedby":"elevenlabs-key-hint",onChange:e=>{m(e.target.value),N(!1),k(null)}}),(0,a.jsx)("p",{id:"elevenlabs-key-hint",className:"mt-2 text-xs leading-relaxed text-smoke",children:d("apps.key.hint")}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,a.jsx)(p.rA,{type:"submit",tone:"surface",busy:v,busyLabel:d("apps.saving"),disabled:C||!u.trim(),children:d("apps.key.save")}),x&&(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>{h(!1),m("")},children:d("apps.cancel")}),(0,a.jsx)("a",{href:"https://elevenlabs.io/app/settings/api-keys",target:"_blank",rel:"noreferrer",className:"text-xs underline underline-offset-4",children:d("apps.key.get")})]})]}),t.configured&&!x&&!b&&(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,a.jsx)(p.rA,{type:"button",tone:"surface",disabled:C,onClick:()=>{h(!0),k(null)},children:d("apps.key.replace")}),(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>j(!0),children:d("apps.key.remove")})]}),b&&(0,a.jsxs)("div",{className:"mt-3 border-l border-edge pl-3",children:[(0,a.jsx)("p",{className:"text-xs leading-relaxed",children:d("apps.key.removeConfirm")}),(0,a.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,a.jsx)(p.rA,{type:"button",tone:"danger",busy:v,disabled:C,onClick:()=>void O("DELETE"),children:d("apps.key.remove")}),(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>j(!1),children:d("apps.cancel")})]})]}),(0,a.jsx)("p",{role:"status",className:"mt-2 text-xs text-smoke",children:y?d("saved"===y?"apps.key.saved":"apps.key.removed"):""}),f&&(0,a.jsx)(p.lZ,{text:d("apps.key.saveFailed"),className:"mt-2"})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2948],{50178:(e,t,n)=>{function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es";if(!e)return"—";let n=Math.floor((Date.now()-new Date(e).getTime())/864e5);if("en"===t){if(n<=0)return"today";if(1===n)return"yesterday";if(n<30)return"".concat(n," d ago");if(n<365){let e=Math.floor(n/30);return"".concat(e," month").concat(1===e?"":"s"," ago")}let e=Math.floor(n/365);return"".concat(e," year").concat(1===e?"":"s"," ago")}if(n<=0)return"hoy";if(1===n)return"ayer";if(n<30)return"hace ".concat(n," d");if(n<365){let e=Math.floor(n/30);return"hace ".concat(e," ").concat(1===e?"mes":"meses")}let a=Math.floor(n/365);return"hace ".concat(a," a\xf1o").concat(1===a?"":"s")}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),c=n-new Date(e).getTime();if(!Number.isFinite(c))return"—";let r="en"===t;if(c<6e4)return r?"just now":"ahora mismo";if(c<36e5){let e=Math.floor(c/6e4);return r?"".concat(e," min ago"):"hace ".concat(e," min")}if(c<1728e5){let e=Math.floor(c/36e5);return r?"".concat(e," h ago"):"hace ".concat(e," h")}return a(e,t)}n.d(t,{K:()=>c,P:()=>a})},52948:(e,t,n)=>{n.d(t,{D0:()=>f,Jl:()=>y,KW:()=>o.K,Pp:()=>o.P,Zp:()=>M,fs:()=>v,hV:()=>i,l6:()=>g,lZ:()=>l,pp:()=>C,rA:()=>h,vw:()=>F,z3:()=>s.z});var a=n(38657),c=n(3043),r=n(2575),o=n(50178),s=n(98194);function i(e){let{name:t,src:n,size:o=56,tone:s="brand",locale:i}=e,l="panoma"===t.toLowerCase(),d="demo-runner"===t.toLowerCase()?"/assets/projects/demo-runner.png":null,x=l?"/assets/brand/panoma.svg":null!=n?n:d;return x?(0,a.jsx)("img",{src:x,loading:"lazy",alt:(0,r.t)(i,"common.iconOf",{name:t}),width:o,height:o,className:"shrink-0 rounded-[22%] border border-edge object-cover shadow-sm",style:{width:o,height:o}}):(0,a.jsx)("span",{"aria-hidden":!0,className:"flex shrink-0 items-center justify-center rounded-[22%] border border-edge ".concat("neutral"===s?"project-icon--neutral":"bg-raised text-accent"),style:{width:o,height:o},children:(0,a.jsx)(c.KQe,{style:{width:.46*o,height:.46*o}})})}function l(e){let{text:t,as:n="p",className:c}=e;return(0,a.jsx)(n,{role:"alert",className:"font-mono text-[11px] text-fail".concat(c?" ".concat(c):""),children:t})}let d="rounded border transition duration-[var(--duration-fast)] disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50",x={raised:"border-edge bg-raised text-smoke hover:border-accent hover:text-accent",surface:"border-edge bg-surface text-smoke hover:border-accent hover:text-accent",plain:"border-edge text-smoke hover:border-chalk",accent:"border-accent bg-accent text-white hover:opacity-85",danger:"border-fail text-fail hover:bg-fail hover:text-white",quiet:"border-transparent text-faint hover:text-smoke"},m={sm:"min-h-[26px] px-2.5 py-1 text-[11px]",md:"min-h-[30px] px-3 py-1.5 text-xs",lg:"min-h-[34px] px-4 py-1.5 text-sm"};function h(e){let{tone:t,size:n="md",busy:c=!1,busyLabel:r,disabled:o,className:s,children:i,...l}=e,h=null!=o?o:c,u=h&&"button"===l.type;return(0,a.jsx)("button",{"aria-busy":c||void 0,...l,...u?{"aria-disabled":!0,onClick:e=>{e.preventDefault()}}:{disabled:h},className:"".concat(d," ").concat("inline-flex items-center justify-center gap-1.5 font-mono"," ").concat(x[t]," ").concat(m[n]).concat(s?" ".concat(s):""),children:c&&void 0!==r?r:i})}let u={sm:"min-h-[30px] px-2.5 py-1.5 text-xs",md:"min-h-[34px] px-3 py-1.5 text-sm",lg:"min-h-[38px] px-3.5 py-2 text-sm"},b="mb-1 block font-mono text-[11px] text-smoke";function p(e,t,n){return"".concat(d," ").concat("w-full bg-raised text-chalk placeholder:text-faint focus:border-accent focus:outline-none"," ").concat(t?"border-fail":"border-edge"," ").concat(u[e]).concat(n?" ".concat(n):"")}function f(e){let{label:t,hideLabel:n=!1,size:c="md",invalid:r=!1,className:o,...s}=e;return(0,a.jsxs)("label",{className:"block".concat(o?" ".concat(o):""),children:[(0,a.jsx)("span",{className:n?"sr-only":b,children:t}),(0,a.jsx)("input",{...s,"aria-invalid":r||void 0,className:p(c,r)})]})}function g(e){let{label:t,hideLabel:n=!1,size:c="md",invalid:r=!1,className:o,children:s,...i}=e;return(0,a.jsxs)("label",{className:"block".concat(o?" ".concat(o):""),children:[(0,a.jsx)("span",{className:n?"sr-only":b,children:t}),(0,a.jsx)("select",{...i,"aria-invalid":r||void 0,className:p(c,r,"cursor-pointer"),children:s})]})}function v(e){let{label:t,hideLabel:n=!1,size:c="md",invalid:r=!1,rows:o=3,className:s,...i}=e;return(0,a.jsxs)("label",{className:"block".concat(s?" ".concat(s):""),children:[(0,a.jsx)("span",{className:n?"sr-only":b,children:t}),(0,a.jsx)("textarea",{...i,rows:o,"aria-invalid":r||void 0,className:p(c,r,"resize-y leading-relaxed")})]})}let j={sm:"min-h-[26px] gap-2 text-xs",md:"min-h-[30px] gap-2 text-sm",lg:"min-h-11 gap-2.5 text-sm"},k={sm:"size-3.5",md:"size-4",lg:"size-[18px]"};function y(e){let{size:t="md",disabled:n,className:c,children:r,...o}=e;return(0,a.jsxs)("label",{className:"inline-flex items-center ".concat(j[t]," ").concat(n?"cursor-not-allowed opacity-50":"cursor-pointer").concat(c?" ".concat(c):""),children:[(0,a.jsx)("input",{...o,type:"checkbox",disabled:n,className:"".concat(k[t]," shrink-0 accent-accent")}),(0,a.jsx)("span",{children:r})]})}let N={surface:"bg-surface",raised:"bg-raised",ground:"bg-ground",plain:"bg-transparent"},w={none:"",sm:"p-3",md:"p-4",lg:"p-6"};function M(e){let{as:t="div",tone:n="surface",pad:c="md",emphatic:r=!1,className:o,children:s,...i}=e,l=w[c];return(0,a.jsx)(t,{...i,className:"rounded-lg border ".concat(r?"border-chalk":"border-edge"," ").concat(N[n]).concat(l?" ".concat(l):"").concat(o?" ".concat(o):""),children:s})}let z={framed:" place-items-center rounded-lg border border-dashed border-edge-bright bg-ground p-8 text-center",bare:"",note:""},D={framed:"text-sm font-semibold text-chalk",bare:"text-sm font-semibold text-chalk",note:"text-sm text-smoke"};function C(e){let{icon:t,title:n,action:c,variant:r="framed",className:o,children:s,...i}=e;return(0,a.jsxs)("div",{...i,className:"grid gap-1".concat(z[r]).concat(o?" ".concat(o):""),children:[t&&(0,a.jsx)("span",{className:"text-smoke","aria-hidden":!0,children:t}),(0,a.jsx)("p",{className:D[r],children:n}),s&&(0,a.jsx)("p",{className:"text-xs text-smoke",children:s}),c&&(0,a.jsx)("div",{className:"mt-3",children:c})]})}let K={neutral:"border-edge bg-raised text-smoke",quiet:"border-edge bg-raised text-faint",strong:"border-edge bg-raised text-chalk",accent:"border-accent/30 bg-accent/10 text-accent",live:"border-live/30 bg-live/10 text-chalk",idle:"border-idle/30 bg-idle/10 text-chalk",fail:"border-fail/30 bg-fail/10 text-fail"},B={sm:"text-[10px]",md:"text-[11px]"},_={center:"items-center gap-1",baseline:"items-baseline gap-1"};function F(e){let{tone:t="neutral",size:n="sm",align:c="center",className:r,children:o,...s}=e;return(0,a.jsx)("span",{...s,className:"".concat("inline-flex rounded border px-1.5 py-0.5 font-mono"," ").concat(_[c]," ").concat(B[n]," ").concat(K[t]).concat(r?" ".concat(r):""),children:o})}},98194:(e,t,n)=>{n.d(t,{z:()=>a});function a(e){return e<1024?"".concat(e," B"):e<1048576?"".concat(Math.round(e/1024)," KB"):e<0x40000000?"".concat((e/1048576).toFixed(1)," MB"):"".concat((e/0x40000000).toFixed(1)," GB")}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6587],{3043:(t,r,e)=>{e.d(r,{$mg:()=>tr,A6:()=>P,AN7:()=>ts,B3U:()=>tu,BgB:()=>F,CU3:()=>T,Dco:()=>X,Dho:()=>tl,ENP:()=>u,EgV:()=>K,F2d:()=>to,G7A:()=>p,INy:()=>A,J7E:()=>m,JJh:()=>w,JPZ:()=>j,Jhl:()=>b,K0m:()=>L,K7t:()=>n,K8V:()=>Y,KQe:()=>D,OvC:()=>ti,UW0:()=>Z,V83:()=>x,XVA:()=>R,XcM:()=>g,Y48:()=>I,YJZ:()=>C,YL0:()=>V,YT$:()=>v,YUE:()=>M,Yzk:()=>c,Zs_:()=>s,ax_:()=>f,bZk:()=>N,bv7:()=>i,d7T:()=>z,dNM:()=>te,efr:()=>tc,f9d:()=>E,fZH:()=>a,gBk:()=>H,gj5:()=>B,hru:()=>$,jXD:()=>th,lPA:()=>G,mUU:()=>W,mmf:()=>S,ngD:()=>y,o7e:()=>q,oNX:()=>d,qRK:()=>tt,r9I:()=>td,sdO:()=>l,tZt:()=>k,vsK:()=>_,wNU:()=>tn,wl$:()=>ta,x5m:()=>Q,yRo:()=>h,z1N:()=>U,zKo:()=>O,zMq:()=>J});var o=e(56684);function n(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"},child:[]}]})(t)}function i(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"},child:[]}]})(t)}function a(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"},child:[]}]})(t)}function d(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function c(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"},child:[]}]})(t)}function h(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"},child:[]}]})(t)}function l(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"},child:[]}]})(t)}function u(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"},child:[]}]})(t)}function s(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"},child:[]}]})(t)}function k(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"},child:[]}]})(t)}function v(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.348 14.652a3.75 3.75 0 0 1 0-5.304m5.304 0a3.75 3.75 0 0 1 0 5.304m-7.425 2.121a6.75 6.75 0 0 1 0-9.546m9.546 0a6.75 6.75 0 0 1 0 9.546M5.106 18.894c-3.808-3.807-3.808-9.98 0-13.788m13.788 0c3.808 3.807 3.808 9.98 0 13.788M12 12h.008v.008H12V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"},child:[]}]})(t)}function g(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"},child:[]}]})(t)}function m(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"},child:[]}]})(t)}function L(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"},child:[]}]})(t)}function f(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"},child:[]}]})(t)}function p(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"},child:[]}]})(t)}function M(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},child:[]}]})(t)}function C(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"},child:[]}]})(t)}function A(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"},child:[]}]})(t)}function w(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"},child:[]}]})(t)}function B(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},child:[]}]})(t)}function j(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"},child:[]}]})(t)}function x(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3.75H6.912a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H15M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859M12 3v8.25m0 0-3-3m3 3 3-3"},child:[]}]})(t)}function W(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"},child:[]}]})(t)}function H(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"},child:[]}]})(t)}function V(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"},child:[]}]})(t)}function Z(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"},child:[]}]})(t)}function N(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},child:[]}]})(t)}function K(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"},child:[]}]})(t)}function U(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"},child:[]}]})(t)}function E(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"},child:[]}]})(t)}function J(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"},child:[]}]})(t)}function R(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"},child:[]}]})(t)}function Y(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"},child:[]}]})(t)}function _(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"},child:[]}]})(t)}function b(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"},child:[]}]})(t)}function z(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"},child:[]}]})(t)}function D(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"},child:[]}]})(t)}function X(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"},child:[]}]})(t)}function P(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"},child:[]}]})(t)}function $(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"},child:[]}]})(t)}function q(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"},child:[]}]})(t)}function y(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},child:[]}]})(t)}function I(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"},child:[]}]})(t)}function O(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},child:[]}]})(t)}function S(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"},child:[]}]})(t)}function T(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function F(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"},child:[]}]})(t)}function G(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 3.75V16.5L12 14.25 7.5 16.5V3.75m9 0H18A2.25 2.25 0 0 1 20.25 6v12A2.25 2.25 0 0 1 18 20.25H6A2.25 2.25 0 0 1 3.75 18V6A2.25 2.25 0 0 1 6 3.75h1.5m9 0h-9"},child:[]}]})(t)}function Q(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"},child:[]}]})(t)}function tt(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"},child:[]}]})(t)}function tr(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"},child:[]}]})(t)}function te(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"},child:[]}]})(t)}function to(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"},child:[]}]})(t)}function tn(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"},child:[]}]})(t)}function ti(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"},child:[]}]})(t)}function ta(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"},child:[]}]})(t)}function td(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"},child:[]}]})(t)}function tc(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"},child:[]}]})(t)}function th(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"},child:[]}]})(t)}function tl(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"},child:[]}]})(t)}function tu(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},child:[]}]})(t)}function ts(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"},child:[]}]})(t)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5130],{9144:(e,t,n)=>{"use strict";n.d(t,{I18nProvider:()=>l,Ym:()=>i,Zs:()=>d,kj:()=>u});var r=n(38657),a=n(32165),s=n(2575);let c=(0,a.createContext)("en"),o=(0,a.createContext)("panoma");function l(e){let{locale:t,cli:n,children:a}=e;return(0,r.jsx)(c.Provider,{value:t,children:(0,r.jsx)(o.Provider,{value:n,children:a})})}function i(){return(0,a.useContext)(c)}function d(){return(0,a.useContext)(o)}function u(){let e=(0,a.useContext)(c),t=(0,a.useContext)(o);return(0,a.useCallback)((n,r)=>(0,s.t)(e,n,{cli:t,...r}),[e,t])}},10354:(e,t,n)=>{"use strict";var r=n(61990);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},13e3:(e,t,n)=>{"use strict";let r;n.d(t,{R:()=>l,b:()=>c});var a=n(32165);let s={remote:!1,editor:null,editors:[],desktopApps:[],agents:[]};function c(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,n]=(0,a.useState)(s);return(0,a.useEffect)(()=>{if(!e)return;null!=r||(r=fetch("/api/open").then(e=>e.json()).catch(()=>s));let t=!0;return r.then(e=>{t&&n(e)}),()=>{t=!1}},[e]),t}let o={cursor:"cursor",code:"vscode",windsurf:"windsurf",zed:"zed"};function l(e,t,n,r){let a=o[null!=e?e:"code"];if(!a)return null;let s=encodeURI("".concat(t.replace(/\/$/,""),"/").concat(n)).replace(/#/g,"%23").replace(/\?/g,"%3F");return"".concat(a,"://file").concat(s.startsWith("/")?"":"/").concat(s,":").concat(r)}},19014:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(32165);function a(){let[e,t]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1);return{copied:e,failed:n,copy:(0,r.useCallback)(async e=>{try{await navigator.clipboard.writeText(e),a(!1),t(!0),setTimeout(()=>t(!1),1600)}catch(e){a(!0)}},[])}}},19964:(e,t,n)=>{"use strict";n.d(t,{DisconnectAgent:()=>l});var r=n(38657),a=n(32165),s=n(10354),c=n(9144),o=n(52948);function l(e){let{id:t,name:n,entries:l}=e,i=(0,c.kj)(),d=(0,s.useRouter)(),[u,m]=(0,a.useState)(!1),[p,x]=(0,a.useState)("ready"),[h,f]=(0,a.useState)(null);async function g(){x("working"),f(null);try{let n=await fetch("/api/agent/keys",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t})}),r=await n.json();if(n.ok&&r.ok)d.refresh();else{var e;f(null!=(e=r.error)?e:String(n.status)),x("ready")}}catch(e){f(i("project.unreachable")),x("ready")}}return u?(0,r.jsxs)("span",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[11px] text-smoke",children:i(l>0?"disconnect.losing":"disconnect.nothingLost",{name:n,n:l})}),(0,r.jsx)(o.rA,{tone:"danger",size:"sm",type:"button",onClick:()=>void g(),busy:"working"===p,busyLabel:i("disconnect.working"),children:i("disconnect.confirm")}),(0,r.jsx)(o.rA,{tone:"quiet",size:"sm",type:"button",onClick:()=>m(!1),children:i("accounts.cancel")}),h&&(0,r.jsx)(o.lZ,{as:"span",text:h})]}):(0,r.jsx)(o.rA,{tone:"quiet",size:"sm",type:"button",onClick:()=>m(!0),children:i("disconnect.do")})}},35261:(e,t,n)=>{"use strict";async function r(e,t,n,r){let a,s;try{a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch(e){return{ok:!1,message:n}}try{s=await a.json()}catch(e){return{ok:!1,message:String(a.status)}}return a.ok&&(null==s?void 0:s.ok)?{ok:!0,data:s}:{ok:!1,message:(null==r?void 0:r(null!=s?s:{}))||(null==s?void 0:s.error)||String(a.status)}}n.d(t,{B:()=>r})},56684:(e,t,n)=>{"use strict";n.d(t,{k5:()=>d});var r=n(32165),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=r.createContext&&r.createContext(a),c=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r,a,s;r=e,a=t,s=n[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e){return t=>r.createElement(u,o({attr:i({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,i({key:n},t.attr),e(t.child)))}(e.child))}function u(e){var t=t=>{var n,a=e.attr,s=e.size,l=e.title,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,c),u=s||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,d,{className:n,style:i(i({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==s?r.createElement(s.Consumer,null,e=>t(e)):t(a)}},71640:(e,t,n)=>{"use strict";n.d(t,{ConnectAgent:()=>m});var r=n(38657),a=n(32165),s=n(3043),c=n(35261),o=n(79126),l=n(13e3),i=n(9144),d=n(19014),u=n(52948);function m(e){let{connected:t,active:n,ephemeral:a}=e,s=(0,i.kj)(),{agents:c,remote:o}=(0,l.b)();if(o)return null;let d=c.filter(e=>!e.broken);return 0===d.length?null:(0,r.jsxs)("section",{className:"mt-10",children:[(0,r.jsx)("h2",{className:"font-display text-xl font-semibold tracking-tight",children:s("connect.title")}),(0,r.jsx)("p",{className:"mt-2 max-w-xl text-sm leading-relaxed text-smoke",children:s("connect.lead")}),(0,r.jsx)("ul",{className:"mt-5 grid gap-3",children:d.map(e=>(0,r.jsx)(p,{id:e.id,name:e.name,already:t.includes(e.id),live:n.includes(e.id),ephemeral:a},e.id))})]})}function p(e){var t,n;let{id:l,name:m,already:p,live:x,ephemeral:h}=e,f=(0,i.kj)(),g=null!=(t=o.L[l])?t:s.tZt,[b,j]=(0,a.useState)("ready"),[v,y]=(0,a.useState)(null),[k,w]=(0,a.useState)(null),{copied:N,copy:O}=(0,d.K)(),[P,C]=(0,a.useState)(null);async function S(){var e;w(null);let t=await (0,c.B)("/api/open",{config:l},f("project.unreachable"));t.ok?C(null!=(e=t.data.with)?e:""):w(t.message)}async function E(){j("working"),w(null);let e=await (0,c.B)("/api/agent/mcp",{agent:l,name:m},f("project.unreachable"));e.ok?y(e.data):w(e.message),j("ready")}let z=p||null!==v;return(0,r.jsxs)("li",{className:"rounded-lg border border-edge bg-surface p-4",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,r.jsx)(g,{"aria-hidden":!0,className:"h-5 w-5 text-smoke"}),(0,r.jsx)("strong",{className:"font-display text-base font-semibold tracking-tight",children:m}),z&&!v&&(0,r.jsxs)("span",{className:"flex items-center gap-1 rounded-full border border-edge px-2 py-0.5 font-mono text-[10px] text-chalk",children:[x?(0,r.jsx)(s.CU3,{"aria-hidden":!0,className:"h-3.5 w-3.5 text-live"}):(0,r.jsx)(s.JPZ,{"aria-hidden":!0,className:"h-3.5 w-3.5 text-idle"}),f(x?"connect.alreadyOn":"connect.keyIssued")]}),(0,r.jsx)(u.rA,{tone:z?"surface":"accent",size:"sm",type:"button",className:"ml-auto",onClick:()=>void E(),busy:"working"===b,busyLabel:f("connect.working"),disabled:"working"===b||h,children:f(z?"connect.again":"connect.do")})]}),h&&(0,r.jsxs)("div",{className:"mt-2 text-xs leading-relaxed text-smoke",children:[(0,r.jsx)("p",{children:f("connect.ephemeral",{name:m})}),(0,r.jsx)("p",{className:"mt-1.5 text-faint",children:f("connect.ephemeralHow")}),(0,r.jsx)("ol",{className:"mt-1.5 grid gap-1.5",children:["npm i -g panoma","panoma down && panoma up"].map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("code",{className:"inline-block rounded border border-edge bg-raised px-2 py-1 font-mono text-[11px] text-chalk",children:e})},e))})]}),z&&x&&!v&&(0,r.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-faint",children:f("connect.againCost")}),z&&!x&&!v&&(0,r.jsx)("p",{className:"mt-2 text-xs font-medium leading-relaxed text-chalk",children:f("connect.neverUsed",{name:m})}),(null==v?void 0:v.wrote)===!0&&(0,r.jsxs)("div",{className:"mt-3 text-xs leading-relaxed text-smoke",children:[(0,r.jsxs)("p",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(s.CU3,{"aria-hidden":!0,className:"h-4 w-4 text-live"}),f(v.replaced?"connect.updated":"connect.written")]}),(0,r.jsx)("code",{className:"mt-1 block font-mono text-[11px] text-faint",children:v.file}),v.coexists.length>0&&(0,r.jsx)("p",{className:"mt-1 text-faint",children:f("connect.coexists",{list:v.coexists.join(", ")})}),v.exposedToGit&&(0,r.jsx)("p",{className:"mt-1 text-chalk",children:f("connect.gitWarning")}),(0,r.jsx)("p",{className:"mt-2 font-medium text-chalk",children:f("connect.restart",{name:m})})]}),(null==v?void 0:v.wrote)===!1&&(0,r.jsxs)("div",{className:"mt-3 text-xs leading-relaxed text-smoke",children:[(0,r.jsx)("p",{children:null!=(n=v.reason)?n:f(v.file?"connect.pasteInto":"connect.pasteSomewhere")}),v.file&&(0,r.jsx)("code",{className:"mt-1 block font-mono text-[11px] text-faint",children:v.file}),(0,r.jsxs)("div",{className:"mt-2 flex items-start gap-2",children:[(0,r.jsx)("pre",{className:"min-w-0 flex-1 overflow-x-auto rounded border border-edge bg-ground p-3 font-mono text-[11px] text-chalk",children:v.snippet}),(0,r.jsx)(u.rA,{tone:"surface",size:"sm",type:"button",onClick:()=>void O(v.snippet),"aria-label":f("connect.copy"),children:N?f("connect.copied"):(0,r.jsx)(s.A6,{"aria-hidden":!0,className:"h-4 w-4"})})]}),v.file&&(0,r.jsx)(u.rA,{tone:"surface",size:"sm",type:"button",className:"mt-2",onClick:()=>void S(),children:f("connect.openFile")}),(0,r.jsx)("p",{className:"mt-2 font-medium text-chalk",children:null!==P?f("connect.opened",{editor:P,name:m}):f("connect.restart",{name:m})})]}),k&&(0,r.jsx)(u.lZ,{text:k,className:"mt-3"})]})}},79126:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(38058),a=n(41162);let s={cursor:r.biF,code:a.$$9,windsurf:r.b4F,subl:r.xL5,webstorm:r.Ewh,idea:r.PHd,zed:r.eDb,"claude-cli":r.phd,"codex-cli":a.vxT,"gemini-cli":r.zR6,"cursor-agent":r.biF,"copilot-cli":r.QWU,opencode:r.u4l,"claude-app":r.phd,"chatgpt-app":a.vxT,"codex-app":a.vxT}},86065:(e,t,n)=>{Promise.resolve().then(n.bind(n,71640)),Promise.resolve().then(n.bind(n,19964)),Promise.resolve().then(n.t.bind(n,3953,23))}},e=>{e.O(0,[6587,3052,2583,3953,2575,2948,1305,6823,7358],()=>e(e.s=86065)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2657],{9144:(e,t,s)=>{"use strict";s.d(t,{I18nProvider:()=>o,Ym:()=>c,Zs:()=>d,kj:()=>u});var r=s(38657),a=s(32165),l=s(2575);let i=(0,a.createContext)("en"),n=(0,a.createContext)("panoma");function o(e){let{locale:t,cli:s,children:a}=e;return(0,r.jsx)(i.Provider,{value:t,children:(0,r.jsx)(n.Provider,{value:s,children:a})})}function c(){return(0,a.useContext)(i)}function d(){return(0,a.useContext)(n)}function u(){let e=(0,a.useContext)(i),t=(0,a.useContext)(n);return(0,a.useCallback)((s,r)=>(0,l.t)(e,s,{cli:t,...r}),[e,t])}},10354:(e,t,s)=>{"use strict";var r=s(61990);s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})},28639:(e,t,s)=>{"use strict";s.d(t,{BridgeSteps:()=>p});var r=s(38657),a=s(32165),l=s(3953),i=s.n(l),n=s(10354),o=s(3043),c=s(9144),d=s(52948);let u={catalog:{title:"bridge.step.catalog.title",detail:"bridge.step.catalog.detail",purpose:"bridge.step.catalog.purpose",icon:o.mUU},model:{title:"bridge.step.model.title",detail:"bridge.step.model.detail",purpose:"bridge.step.model.purpose",icon:o.K8V},agent:{title:"bridge.step.agent.title",detail:"bridge.step.agent.detail",purpose:"bridge.step.agent.purpose",icon:o.Jhl},hooks:{title:"bridge.step.hooks.title",detail:"bridge.step.hooks.detail",purpose:"bridge.step.hooks.purpose",icon:o.efr}};function m(e){let{command:t,label:s}=e,l=(0,c.kj)(),[i,n]=(0,a.useState)(null),u=(0,a.useRef)(null);async function m(){u.current&&clearTimeout(u.current);try{await navigator.clipboard.writeText(t),n("copied"),u.current=setTimeout(()=>n(null),1600)}catch(e){n("failed")}}return(0,a.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-xs text-smoke",children:s}),(0,r.jsxs)(d.Zp,{tone:"raised",pad:"sm",className:"flex flex-wrap items-center justify-between gap-3",children:[(0,r.jsx)("code",{className:"min-w-0 max-w-full break-words font-mono text-xs text-chalk",children:t}),(0,r.jsxs)(d.rA,{tone:"plain",type:"button",onClick:()=>void m(),"aria-label":l("bridge.copyCommand",{command:t}),children:[(0,r.jsx)(o.hru,{className:"size-4","aria-hidden":!0}),l("copied"===i?"bridge.copied":"bridge.copy")]})]}),(0,r.jsx)("p",{role:"status",className:"text-xs text-smoke",children:"failed"===i?l("bridge.copyFailed"):"copied"===i?l("bridge.copied"):null})]})}function p(e){let{report:t,progress:s}=e,l=(0,c.kj)(),p=(0,c.Zs)(),x=(0,n.useRouter)(),[h,g]=(0,a.useState)(!1),[b,f]=(0,a.useState)(null),[j,y]=(0,a.useTransition)(),[v,k]=(0,a.useState)(!1),N=(0,a.useRef)(null),w=(0,a.useRef)(!1);async function O(){if(!h){g(!0),f(null);try{var e,t,s,r,a,i;let n=await fetch("/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),o=await n.json().catch(()=>({}));n.ok?(w.current=!0,f({text:l("bridge.hooksDone",{installed:String(null!=(e=o.installed)?e:0),noRepo:String(null!=(t=o.noRepo)?t:0),foreign:String(null!=(s=o.foreign)?s:0),failed:String(null!=(r=o.failed)?r:0)}),error:(null!=(a=o.failed)?a:0)>0}),y(()=>x.refresh())):f({text:null!=(i=o.error)?i:l("bridge.hooksFailed"),error:!0})}catch(e){f({text:l("bridge.hooksFailed"),error:!0})}finally{g(!1)}}}return(0,a.useEffect)(()=>{if(w.current&&t.hooks.installed>=t.hooks.installable){var e;w.current=!1,null==(e=N.current)||e.focus()}},[t.hooks.installed,t.hooks.installable]),(0,r.jsxs)("section",{className:"min-w-0 space-y-4 xl:col-span-2","aria-labelledby":"bridge-setup-title",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:"bridge-setup-title",className:"text-base font-semibold",children:l("bridge.setup.title")}),(0,r.jsx)("p",{className:"mt-1 text-xs text-smoke",children:l("bridge.setup.progress",{completed:s.completed,total:s.total})})]}),(0,r.jsxs)(d.rA,{tone:"surface",type:"button",onClick:function(){k(!0),y(()=>x.refresh())},busy:j,busyLabel:l("bridge.refreshing"),children:[(0,r.jsx)(o.efr,{className:"size-4","aria-hidden":!0}),l("bridge.refresh")]})]}),(0,r.jsx)("div",{className:"flex gap-1.5","aria-hidden":!0,children:s.setupSteps.map((e,t)=>(0,r.jsx)("span",{className:"h-1 flex-1 rounded-full ".concat(t<s.completed?"bg-accent":"bg-edge")},e.id))}),(0,r.jsx)("p",{role:"status",className:"sr-only",children:v&&!j?l("bridge.refreshed"):null}),s.ready&&(0,r.jsxs)(d.Zp,{tone:"raised",className:"flex items-start gap-3",children:[(0,r.jsx)(o.mmf,{className:"size-5 shrink-0","aria-hidden":!0}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:l("bridge.titleReady")}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-smoke",children:l("bridge.leadReady")})]})]}),(0,r.jsx)("ol",{className:"space-y-3",children:s.setupSteps.map((e,a)=>{var n;let c=u[e.id],x=c.icon,g="next"===e.state,f="done"===e.state;return(0,r.jsx)(d.Zp,{as:"li",emphatic:g,"aria-current":g?"step":void 0,children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-raised text-chalk","aria-hidden":!0,children:(0,r.jsx)(x,{className:"size-5"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsx)("h3",{ref:"hooks"===e.id?N:void 0,tabIndex:"hooks"===e.id?-1:void 0,className:"text-sm font-semibold",children:l(c.title)}),(0,r.jsxs)(d.vw,{tone:g?"accent":"neutral",size:"md",children:[f&&(0,r.jsx)(o.mmf,{className:"size-3","aria-hidden":!0}),l(f?"bridge.state.done":g?"bridge.state.next":"bridge.state.waiting")]})]}),(0,r.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-smoke",children:l(c.purpose,{tool:"panoma_log"})}),(0,r.jsx)("p",{className:"mt-2 font-mono text-xs text-smoke",children:l(c.detail,{count:e.detail.count,total:null!=(n=e.detail.total)?n:0})}),(0,r.jsx)("span",{className:"sr-only",children:l("bridge.setup.step",{n:a+1,total:s.total})}),"catalog"===e.id&&(f?(0,r.jsxs)(i(),{href:"/",className:"mt-3 inline-flex items-center gap-1 text-xs underline underline-offset-4",children:[l("bridge.step.catalog.go")," ",(0,r.jsx)(o.r9I,{className:"size-3","aria-hidden":!0})]}):(0,r.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,r.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:l("bridge.step.catalog.pending")}),(0,r.jsx)(m,{label:l("bridge.terminal"),command:"".concat(p," up ~/Desktop")})]})),"model"===e.id&&(0,r.jsxs)("div",{className:"mt-3 space-y-2",children:[f&&(0,r.jsx)("p",{className:"text-xs text-smoke",children:l("bridge.step.model.detected")}),(0,r.jsxs)(i(),{href:"/ai",className:"apps-button gap-2".concat(g?" apps-button-primary":""),children:[l(f?"bridge.step.model.manage":"bridge.step.model.go"),(0,r.jsx)(o.r9I,{className:"size-4","aria-hidden":!0})]})]}),"agent"===e.id&&(0,r.jsxs)("div",{className:"mt-3 space-y-3",children:[!f&&t.agents.keys>0&&(0,r.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:l("bridge.step.agent.keyUnused")}),f&&(0,r.jsx)("p",{className:"text-xs text-smoke",children:l("bridge.step.agent.seen")}),(0,r.jsxs)(i(),{href:"/agents",className:"apps-button gap-2".concat(g?" apps-button-primary":""),children:[l(f?"bridge.step.agent.manage":"bridge.step.agent.go"),(0,r.jsx)(o.r9I,{className:"size-4","aria-hidden":!0})]}),!f&&(0,r.jsxs)("details",{className:"text-xs text-smoke",children:[(0,r.jsx)("summary",{className:"cursor-pointer py-1.5 underline underline-offset-4",children:l("bridge.step.agent.terminal")}),(0,r.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,r.jsx)(m,{label:l("bridge.terminal"),command:"".concat(p,' agent-key "Claude Code" --install')}),(0,r.jsx)("p",{className:"leading-relaxed",children:l("bridge.restartHint")})]})]})]}),"hooks"===e.id&&(0,r.jsxs)("div",{className:f&&!b?"":"mt-3 space-y-3",children:[t.hooks.installed<t.hooks.installable?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:l("bridge.step.hooks.scope")}),(0,r.jsx)(d.rA,{tone:g?"accent":"surface",size:"lg",type:"button",onClick:()=>void O(),busy:h,busyLabel:l("bridge.step.hooks.installing"),children:l("bridge.step.hooks.install")}),(0,r.jsxs)("details",{className:"text-xs text-smoke",children:[(0,r.jsx)("summary",{className:"cursor-pointer py-1.5 underline underline-offset-4",children:l("bridge.hooksAlt")}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(m,{label:l("bridge.step.hooks.terminal"),command:"".concat(p," hooks --install")})})]}),(0,r.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:l("bridge.restartHint")})]}):0===t.hooks.installable?(0,r.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:l("bridge.step.hooks.noGit")}):null,(0,r.jsxs)("div",{className:"text-xs leading-relaxed",children:[(0,r.jsx)("p",{role:"status",className:"text-smoke",children:b&&!b.error?b.text:null}),(0,r.jsx)("p",{role:"alert",className:"text-fail",children:(null==b?void 0:b.error)?b.text:null})]})]})]})]})},e.id)})})]})}},56684:(e,t,s)=>{"use strict";s.d(t,{k5:()=>d});var r=s(32165),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=r.createContext&&r.createContext(a),i=["attr","size","title"];function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}function o(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?o(Object(s),!0).forEach(function(t){var r,a,l;r=e,a=t,l=s[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var r=s.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function d(e){return t=>r.createElement(u,n({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,s)=>r.createElement(t.tag,c({key:s},t.attr),e(t.child)))}(e.child))}function u(e){var t=t=>{var s,a=e.attr,l=e.size,o=e.title,d=function(e,t){if(null==e)return{};var s,r,a=function(e,t){if(null==e)return{};var s={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;s[r]=e[r]}return s}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)s=l[r],-1===t.indexOf(s)&&({}).propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}(e,i),u=l||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),r.createElement("svg",n({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,d,{className:s,style:c(c({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&r.createElement("title",null,o),e.children)};return void 0!==l?r.createElement(l.Consumer,null,e=>t(e)):t(a)}},61169:(e,t,s)=>{Promise.resolve().then(s.bind(s,28639)),Promise.resolve().then(s.t.bind(s,3953,23))}},e=>{e.O(0,[6587,3953,2575,2948,1305,6823,7358],()=>e(e.s=61169)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2229,2966,4345,4709],{21609:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,3953,23))}},e=>{e.O(0,[3953,1305,6823,7358],()=>e(e.s=21609)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9816],{2779:(e,t,r)=>{Promise.resolve().then(r.bind(r,28860)),Promise.resolve().then(r.t.bind(r,3953,23))},9144:(e,t,r)=>{"use strict";r.d(t,{I18nProvider:()=>u,Ym:()=>l,Zs:()=>c,kj:()=>f});var n=r(38657),a=r(32165),i=r(2575);let o=(0,a.createContext)("en"),s=(0,a.createContext)("panoma");function u(e){let{locale:t,cli:r,children:a}=e;return(0,n.jsx)(o.Provider,{value:t,children:(0,n.jsx)(s.Provider,{value:r,children:a})})}function l(){return(0,a.useContext)(o)}function c(){return(0,a.useContext)(s)}function f(){let e=(0,a.useContext)(o),t=(0,a.useContext)(s);return(0,a.useCallback)((r,n)=>(0,i.t)(e,r,{cli:t,...n}),[e,t])}},10354:(e,t,r)=>{"use strict";var n=r(61990);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},28860:(e,t,r)=>{"use strict";r.d(t,{Readmit:()=>c,Unhide:()=>l});var n=r(38657),a=r(10354),i=r(32165),o=r(9144),s=r(52948);function u(){let e=(0,o.kj)(),t=(0,a.useRouter)(),[r,n]=(0,i.useState)(!1),[s,u]=(0,i.useState)(null);return{busy:r,error:s,send:async function(r){n(!0),u(null);try{var a;let n=await fetch("/api/project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});n.ok?t.refresh():u(null!=(a=(await n.json()).error)?a:e("undo.failed"))}catch(t){u(e("undo.unreachable"))}finally{n(!1)}}}}function l(e){let{projectId:t}=e,r=(0,o.kj)(),{busy:a,error:i,send:l}=u();return(0,n.jsxs)("span",{className:"inline-flex items-center gap-2",children:[i&&(0,n.jsx)(s.lZ,{as:"span",text:i}),(0,n.jsx)(s.rA,{tone:"raised",size:"sm",type:"button",busy:a,busyLabel:"…",onClick:()=>l({action:"mostrar",id:t}),className:"shrink-0",children:r("undo.unhide")})]})}function c(e){let{root:t}=e,r=(0,o.kj)(),{busy:a,error:i,send:l}=u();return(0,n.jsxs)("span",{className:"inline-flex items-center gap-2",children:[i&&(0,n.jsx)(s.lZ,{as:"span",text:i}),(0,n.jsx)(s.rA,{tone:"raised",size:"sm",type:"button",busy:a,busyLabel:"…",onClick:()=>l({action:"readmitir",root:t}),className:"shrink-0",children:r("undo.readmit")})]})}},56684:(e,t,r)=>{"use strict";r.d(t,{k5:()=>c});var n=r(32165),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(a),o=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(f,s({attr:l({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,l({key:r},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var r,a=e.attr,i=e.size,u=e.title,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,o),f=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:r,style:l(l({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&n.createElement("title",null,u),e.children)};return void 0!==i?n.createElement(i.Consumer,null,e=>t(e)):t(a)}}},e=>{e.O(0,[6587,3953,2575,2948,1305,6823,7358],()=>e(e.s=2779)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1080],{4737:(e,s,t)=>{"use strict";t.d(s,{VideoProduction:()=>I});var a=t(38657),l=t(3953),n=t.n(l),o=t(32165),i=t(3043),r=t(9144),d=t(57776),c=t(76982),p=t(52948),m=t(97234);let u=Object.fromEntries(m.t3.map(e=>[e.value,e.ratio])),x={es:"Espa\xf1ol",en:"English"},b="mt-2 block w-full rounded border border-edge bg-surface p-2",j="rounded-xl border border-edge p-5";function h(e){let{width:s,height:t}=e,l=s>=t?22:Math.round(22*s/t),n=t>=s?22:Math.round(22*t/s);return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"size-6 shrink-0",children:(0,a.jsx)("rect",{x:(24-l)/2,y:(24-n)/2,width:l,height:n,rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})})}function v(e){let{value:s,onChange:t,label:l,disabled:n=!1}=e,i=(0,r.kj)(),d=(0,o.useId)();return(0,a.jsxs)("fieldset",{className:"min-w-0 text-sm",disabled:n,children:[(0,a.jsx)("legend",{children:l}),(0,a.jsx)("div",{className:"mt-2 grid grid-cols-3 gap-2",children:m.t3.map(e=>{let l=s===e.value;return(0,a.jsxs)("label",{className:"flex cursor-pointer flex-col items-center gap-1 rounded border px-2 py-2 text-center has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-accent ".concat(l?"border-accent bg-raised text-chalk":"border-edge text-smoke hover:border-edge-bright"),title:i("apps.jobs.formatFor".concat(e.value.toUpperCase())),children:[(0,a.jsx)("input",{type:"radio",name:d,value:e.value,checked:l,onChange:()=>t(e.value),className:"sr-only"}),(0,a.jsx)(h,{width:e.width,height:e.height}),(0,a.jsx)("span",{className:"text-xs font-semibold",children:i(e.key)}),(0,a.jsx)("span",{className:"font-mono text-[10px] text-faint",children:e.ratio}),(0,a.jsx)("span",{className:"sr-only",children:i("apps.jobs.formatFor".concat(e.value.toUpperCase()))})]},e.value)})})]})}function f(e){var s,t,l,o,i;let{t:r,app:d,identity:u,slug:x,credential:b}=e,h=(0,m.CG)(d),v=e=>{let s=h.find(s=>s.id===e);return(null==s?void 0:s.present)===!0?{tone:"live",text:r("apps.present")}:(null==s?void 0:s.present)===!1?{tone:"idle",text:r("apps.missing")}:{tone:"neutral",text:r("apps.unchecked")}},f=null!=(o=null==(s=d.settings)?void 0:s.brain)?o:"none",g="none"===f?r("apps.none"):"auto"===f?r("apps.auto"):null!=(i=null==(t=c.n.find(e=>e.value===f))?void 0:t.label)?i:f,N=!!(null==(l=d.settings)?void 0:l.voice),k=N&&null!==b&&!b.configured,y=N?k?{tone:"idle",text:"".concat(r("apps.jobs.voiceOn")," \xb7 ").concat(r("apps.key.missing"))}:{tone:"live",text:(null==b?void 0:b.configured)?"".concat(r("apps.jobs.voiceOn")," \xb7 ").concat(r("apps.key.configured")):r("apps.jobs.voiceOn")}:{tone:"neutral",text:r("apps.jobs.voiceOff")},w=[{label:r("apps.jobs.beforeApp"),tone:d.version?"live":"idle",text:d.version?"panoma video ".concat(d.version):r("apps.status.absent")},{label:r("apps.browser"),...v("browser")},{label:r("apps.ffmpeg"),...v("ffmpeg")},{label:r("apps.jobs.beforeBrain"),tone:"none"===f?"neutral":"live",text:g},{label:r("apps.jobs.beforeVoice"),...y},{label:r("apps.jobs.beforeProject"),tone:u?"live":"idle",text:u?x:r("apps.jobs.noIdentity")}],C=!!(d.ready&&!1!==d.enabled&&u&&!k);return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),"aria-labelledby":"video-preflight-title",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsx)("h2",{id:"video-preflight-title",className:"font-display text-xl font-semibold",children:r("apps.jobs.beforeTitle")}),(0,a.jsx)(p.vw,{size:"md",tone:C?"live":"idle",children:r(C?"apps.jobs.beforeReady":"apps.jobs.beforeNotReady")})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:r("apps.jobs.beforeIntro")}),(0,a.jsx)("dl",{className:"mt-4 grid gap-x-6 gap-y-2 text-sm sm:grid-cols-2",children:w.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-edge pt-2",children:[(0,a.jsx)("dt",{className:"text-smoke",children:e.label}),(0,a.jsx)("dd",{children:(0,a.jsx)(p.vw,{size:"md",tone:e.tone,children:e.text})})]},e.label))}),(0,a.jsx)(n(),{className:"mt-4 inline-block text-sm underline underline-offset-4",href:"/apps/panoma-video?project=".concat(encodeURIComponent(x)),children:r("apps.jobs.changeInApp")})]})}function g(e){let{value:s,tracks:t,onChange:l,label:n}=e;return(0,a.jsxs)("label",{className:"text-sm",children:[n,(0,a.jsx)("select",{className:b,value:s,onChange:e=>l(e.target.value),children:t.map(e=>(0,a.jsx)("option",{value:e,children:x[e]},e))})]})}function N(e){let{t:s,locked:t,onStart:l}=e,n=(0,r.Ym)(),[i,d]=(0,o.useState)("promo"),[c,p]=(0,o.useState)("v"),[m,u]=(0,o.useState)(n);return(0,a.jsxs)("form",{className:"mt-7 ".concat(j),onSubmit:e=>{e.preventDefault(),l({goal:i,format:c,language:m})},children:[(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-[1fr_auto_1fr]",children:[(0,a.jsxs)("label",{className:"text-sm",children:[s("apps.jobs.goal"),(0,a.jsxs)("select",{className:b,value:i,onChange:e=>d(e.target.value),children:[(0,a.jsx)("option",{value:"promo",children:s("apps.jobs.promo")}),(0,a.jsx)("option",{value:"tutorial",children:s("apps.jobs.tutorial")}),(0,a.jsx)("option",{value:"spotlight",children:s("apps.jobs.spotlight")})]})]}),(0,a.jsx)(v,{value:c,onChange:p,label:s("apps.jobs.format")}),(0,a.jsx)(g,{value:m,tracks:["es","en"],onChange:u,label:s("apps.jobs.language")})]}),(0,a.jsx)("button",{className:"apps-button apps-button-primary mt-5",disabled:t,children:s("apps.jobs.start")})]})}function k(e){let{state:s}=e;return"done"===s?(0,a.jsx)(i.mmf,{"aria-hidden":!0,className:"size-4 shrink-0 text-live"}):"failed"===s?(0,a.jsx)(i.fZH,{"aria-hidden":!0,className:"size-4 shrink-0 text-fail"}):"skipped"===s?(0,a.jsx)(i.YJZ,{"aria-hidden":!0,className:"size-4 shrink-0 text-faint"}):(0,a.jsx)("span",{"aria-hidden":!0,className:"flex size-4 shrink-0 items-center justify-center",children:(0,a.jsx)("span",{className:"size-2 rounded-full ".concat("current"===s?"bg-accent animate-pulse":"border border-edge-bright")})})}function y(e){let{t:s,job:t}=e,{asked:l,others:n}=(0,m.hY)(t);if(!l.length&&!n.length)return null;let o="string"==typeof t.input.goal?t.input.goal:"all",i=e=>{let t=m.i9[e];return t?s(t):e},r=l.length?l:n,d=l.length?n:[];return(0,a.jsxs)("div",{className:"mt-4 rounded border border-edge bg-raised p-3 text-sm",children:[(0,a.jsx)("p",{className:"text-smoke",children:"all"!==o&&l.length?s("apps.jobs.notPlanned",{goal:i(o)}):s("apps.jobs.notPlannedAny")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2",children:r.map(e=>(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{className:"font-semibold",children:i(e.goal)}),(0,a.jsx)("blockquote",{className:"mt-1 break-words",children:e.why})]},e.goal))}),d.length>0&&(0,a.jsxs)("details",{className:"mt-3",children:[(0,a.jsx)("summary",{className:"text-smoke",children:s("apps.jobs.otherGoals")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2",children:d.map(e=>(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{className:"font-semibold",children:i(e.goal)}),(0,a.jsx)("blockquote",{className:"mt-1 break-words text-smoke",children:e.why})]},e.goal))})]})]})}function w(e){var s,t;let{t:l,job:n,locked:i,onCancel:r}=e,c=m.Cn.has(n.status),[u,x]=(0,o.useState)(()=>Date.now());(0,o.useEffect)(()=>{if(!c)return;let e=setInterval(()=>x(Date.now()),1e3);return()=>clearInterval(e)},[c]);let b=(0,m.X0)(n),h=(0,m.p_)(n,u),v=c&&!m.I.includes(null!=(t=null==(s=n.progress)?void 0:s.stage)?t:""),f=b.find(e=>"plan"===e.name&&"failed"===e.state),{asked:g,others:N}=(0,m.hY)(n),w=!!(f&&(g.length||N.length));return(0,a.jsxs)("section",{className:"mt-7 ".concat(j),"aria-labelledby":"video-stages-title","aria-live":c?"polite":void 0,children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsx)("h2",{id:"video-stages-title",className:"font-display text-xl font-semibold",children:l(c?"apps.jobs.stages":"apps.jobs.report")}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[!c&&(0,a.jsx)(p.vw,{size:"md",tone:"done"===n.status?"live":"failed"===n.status?"fail":"neutral",children:l("apps.jobs.".concat("done"===n.status?"done":"failed"===n.status?"failed":"cancelled"))}),c&&r&&(0,a.jsx)("button",{className:"apps-button",disabled:i&&"cancelling"===n.status,onClick:()=>r(n),children:l("apps.jobs.cancel")})]})]}),void 0!==h&&(0,a.jsxs)("p",{className:"mt-2 text-sm text-smoke",children:[l(c?"apps.jobs.elapsed":"apps.jobs.took",{time:h<60?l("apps.jobs.seconds",{s:h}):l("apps.jobs.minutes",{m:Math.floor(h/60),s:h%60})}),n.requestedBy&&(0,a.jsxs)(a.Fragment,{children:[" ",l("apps.jobs.requestedBy",{name:n.requestedBy})]})]}),v&&(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:l("apps.jobs.starting")}),(0,a.jsx)("ol",{className:"mt-4 grid gap-x-6 gap-y-1 sm:grid-cols-2",children:b.map(e=>(0,a.jsxs)("li",{className:"flex gap-2 py-1 text-sm ".concat("pending"===e.state||"skipped"===e.state?"text-faint":"text-chalk"),"aria-current":"current"===e.state?"step":void 0,children:[(0,a.jsx)("span",{className:"mt-0.5",children:(0,a.jsx)(k,{state:e.state})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"current"===e.state?"font-semibold":"",children:[l("apps.jobs.stage.".concat(e.name)),(0,a.jsxs)("span",{className:"sr-only",children:[" \xb7 ",l("apps.jobs.stageState.".concat(e.state))]})]}),e.summary&&!("plan"===e.name&&w)&&(0,a.jsx)("blockquote",{className:"mt-0.5 break-words text-xs text-smoke",children:e.summary})]})]},e.name))}),!c&&n.error&&(0,a.jsx)(d.uV,{error:n.error}),f&&(0,a.jsx)(y,{t:l,job:n}),!c&&"done"===n.status&&(0,a.jsx)("p",{className:"mt-3 text-sm text-smoke",children:l("apps.jobs.reportDone")})]})}function C(e){var s;let{t,job:l,locked:n,onEnqueue:o}=e,i=(0,m.Zp)(l),r=i.find(e=>"video"===e.kind),d=i.find(e=>"image"===e.kind),c=l.result,p=null!=(s=null==c?void 0:c.renders)?s:(null==c?void 0:c.render_id)?[{id:c.render_id,file:""}]:[];return(0,a.jsxs)("section",{className:"mt-7 ".concat(j),children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:t("apps.jobs.preview")}),r&&(0,a.jsx)("video",{controls:!0,preload:"metadata",className:"mt-4 max-h-[540px] w-full rounded bg-raised",src:(0,m.Wk)(l.id,r.path),"aria-label":t("apps.jobs.preview")}),d&&(0,a.jsx)("a",{href:(0,m.Wk)(l.id,d.path),target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{className:"mt-4 max-h-80 w-full rounded object-contain",src:(0,m.Wk)(l.id,d.path),alt:t("apps.jobs.contacts")})}),(0,a.jsx)("h3",{className:"mt-4 text-sm font-semibold",children:t("apps.jobs.artifacts")}),(0,a.jsx)("ul",{className:"mt-2 space-y-1 text-sm",children:i.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:"break-all underline",href:(0,m.Wk)(l.id,e.path),download:e.name,children:e.name})},e.path))}),(0,a.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:p.map(e=>(0,a.jsxs)("button",{className:"apps-button",disabled:n,onClick:()=>o("panoma_video_review",{render_id:e.id}),children:[t("apps.jobs.review"),p.length>1?" \xb7 ".concat(e.id):""]},e.id))})]})}function _(e){var s;let{t,production:l,brief:n,historical:o,current:i,languages:r,format:d,language:c,locked:p,onFormat:b,onLanguage:h,onEnqueue:f,onOpenCurrent:N}=e;if(o)return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:t("apps.jobs.historical")}),i&&(0,a.jsx)("button",{className:"apps-button mt-3",onClick:()=>N(i.id),children:t("apps.jobs.current")})]});let k=n?t("apps.jobs.exportVariant",{format:null!=(s=u[d])?s:d,language:x[c]}):t("apps.jobs.export");return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:t("apps.jobs.savedStory")}),n&&(0,a.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-[auto_1fr]",children:[(0,a.jsx)(v,{value:d,onChange:b,label:t("apps.jobs.format"),disabled:p}),(0,a.jsx)(g,{value:c,tracks:r,onChange:h,label:t("apps.jobs.language")})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-3",children:[(0,a.jsx)("button",{className:"apps-button",disabled:p,onClick:()=>{let e=(0,m.KU)(l,{language:c,format:d});f(e.tool,e.input)},children:k}),n&&(0,a.jsx)("button",{className:"apps-button",disabled:p,onClick:()=>f("panoma_video_story",{brief_id:n}),children:t("apps.jobs.story")})]})]})}function S(e){let{t:s,story:t,brief:l,language:n,format:i,locked:d,onEnqueue:c}=e,p=(0,r.Ym)(),[m,u]=(0,o.useState)(""),[x,h]=(0,o.useState)("");return(0,o.useEffect)(()=>{u(""),h("")},[t.revision,n]),(0,a.jsxs)("section",{className:"mt-7 ".concat(j),children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:s("apps.jobs.revise")}),(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:s("apps.jobs.revisionHelp")}),(0,a.jsxs)("label",{className:"mt-4 block text-sm",children:[s("apps.jobs.scene"),(0,a.jsxs)("select",{className:b,value:m,onChange:e=>{var s;u(e.target.value);let a=t.scenes.find(s=>s.id===e.target.value);h(null!=(s=null==a?void 0:a.text[n])?s:"")},children:[(0,a.jsx)("option",{value:"",children:"—"}),t.scenes.filter(e=>e.editable).map(e=>(0,a.jsxs)("option",{value:e.id,children:[e.id," \xb7 ",e.text[n]]},e.id))]})]}),(0,a.jsxs)("label",{className:"mt-4 block text-sm",children:[s("apps.jobs.revision"),(0,a.jsx)("textarea",{className:"mt-2 block min-h-28 w-full rounded border border-edge bg-surface p-3",value:x,maxLength:1e3,onChange:e=>h(e.target.value)})]}),(0,a.jsx)("button",{className:"apps-button mt-4",disabled:d||!m||!x.trim(),onClick:()=>c("panoma_video_revise",{brief_id:l,expectedRevision:t.revision,edits:[{kind:"text",sceneId:m,lang:n,text:x}]}),children:s("apps.jobs.revise")}),l&&(0,a.jsx)("button",{className:"apps-button ml-3 mt-4",disabled:d,onClick:()=>c("panoma_video_render",{brief_id:l,lang:n,format:i}),children:s("apps.jobs.start")}),t.history&&(0,a.jsxs)("details",{className:"mt-5",children:[(0,a.jsx)("summary",{className:"text-sm",children:s("apps.jobs.history")}),(0,a.jsx)("ul",{className:"mt-3 space-y-3",children:t.history.map(e=>(0,a.jsxs)("li",{className:"rounded border border-edge p-3",children:[(0,a.jsxs)("p",{className:"text-xs text-smoke",children:[new Date(e.at).toLocaleString(p)," \xb7 ",e.number]}),(0,a.jsx)("blockquote",{className:"mt-1 text-sm",children:e.note}),e.revision!==t.revision&&(0,a.jsx)("button",{className:"apps-button mt-2",disabled:d,onClick:()=>c("panoma_video_revise",{brief_id:l,expectedRevision:t.revision,restoreRevision:e.revision}),children:s("apps.jobs.restore")})]},e.revision))})]})]})}function E(e){var s,t;let{t:l,job:n}=e,o=n.result,i=null!=(s=null==o?void 0:o.checks)?s:[];return(0,a.jsxs)("details",{className:"mt-4 rounded border border-edge p-4",children:[(0,a.jsx)("summary",{children:l("apps.jobs.reviewStatus",{status:null!=(t=null==o?void 0:o.status)?t:n.status})}),(0,a.jsx)("h3",{className:"mt-3 text-sm font-semibold",children:l("apps.jobs.reviewChecks")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2 text-sm",children:i.map(e=>{var s;return(0,a.jsxs)("li",{className:"rounded border border-edge p-3",children:[(0,a.jsxs)("p",{className:"font-mono text-xs",children:[e.id," \xb7 ",e.status]}),(0,a.jsx)("blockquote",{className:"mt-1",children:e.summary}),e.threshold&&(0,a.jsx)("p",{className:"mt-1 text-xs text-smoke",children:e.threshold}),(null==(s=e.fix)?void 0:s.hint)&&(0,a.jsx)("blockquote",{className:"mt-1 text-xs text-smoke",children:e.fix.hint})]},e.id)})})]})}function q(e){let{t:s,jobs:t,locked:l,onCancel:n,onEnqueue:o}=e;return(0,a.jsxs)("section",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:s("apps.jobs.title")}),(0,a.jsx)(d.jY,{jobs:t,onCancel:n}),t.filter(e=>"failed"===e.status||"cancelled"===e.status).map(e=>(0,a.jsxs)("button",{className:"apps-button mr-2 mt-3",disabled:l,onClick:()=>o(e.tool,e.input),children:[s("apps.jobs.retry")," \xb7 ",e.tool]},e.id)),t.filter(e=>"panoma_video_review"===e.tool&&e.result).map(e=>(0,a.jsx)(E,{t:s,job:e},e.id))]})}function I(e){var s,t,l;let{projectId:i,identity:c,slug:p}=e,u=(0,r.kj)(),x=(0,r.Ym)(),[j,h]=(0,o.useState)(null),[v,g]=(0,o.useState)([]),[k,y]=(0,o.useState)(null),[E,I]=(0,o.useState)(!1),[z,O]=(0,o.useState)(""),[R,P]=(0,o.useState)(null),[T,Y]=(0,o.useState)(null),[A,D]=(0,o.useState)(null),F=(0,o.useCallback)(async()=>{try{let e=await (0,m.Tl)("/api/apps/panoma-video");if(h(e),c){let e="identity=".concat(encodeURIComponent(c)),s=await (0,m.Tl)("/api/apps/panoma-video/jobs?".concat(e));g(s.jobs)}y(null)}catch(e){y(e.message)}},[c]);(0,o.useEffect)(()=>{F()},[F]);let U=!!(null==j||null==(s=j.settings)?void 0:s.voice);(0,o.useEffect)(()=>{if(!U)return void D(null);let e=new AbortController;return(0,m.Tl)("/api/apps/panoma-video/credentials",void 0,"GET",e.signal).then(s=>{e.signal.aborted||D(s)}).catch(()=>{e.signal.aborted||D(null)}),()=>e.abort()},[U]);let B=v.find(e=>m.Cn.has(e.status)),L=null==B?void 0:B.id;(0,o.useEffect)(()=>{if(!L)return;let e=new AbortController;return(0,m.E4)(L,e.signal,e=>{g(s=>s.map(s=>s.id===e.id?e:s)),y(null),m.Cn.has(e.status)||F()},y),()=>e.abort()},[L,F]);let V=(0,o.useCallback)((e,s)=>{c&&(I(!0),y(null),(0,m.Tl)("/api/apps/panoma-video/jobs",{identity:c,projectId:i,tool:e,input:s}).then(F).catch(e=>y(e.message)).finally(()=>I(!1)))},[c,i,F]),W=v.filter(e=>e.result&&"panoma_video_auto"===e.tool&&"done"===e.status),Z=null!=(t=W.find(e=>e.id===z))?t:W[0],G=v.find(e=>"panoma_video_auto"===e.tool),{brief:H,job:M}=(0,m.Lu)(v,Z),J=null==M?void 0:M.result,K=(0,m.nn)(v,Z),Q=!!(Z&&(null==K?void 0:K.id)!==Z.id),X=(0,m.Ht)(Z,M),$=R&&X.includes(R)?R:X[0],ee=null==Z?void 0:Z.input.format,es=null!=T?T:(0,m.Fv)(ee)?ee:"v";(0,o.useEffect)(()=>{P(null),Y(null)},[null==Z?void 0:Z.id]);let et=E||!!B||!(null==j?void 0:j.ready)||!1===j.enabled||!c,ea=v.filter(e=>"panoma_video_review"!==e.tool&&(0,m.Zp)(e).length>0&&(!Q||e.id===(null==Z?void 0:Z.id))&&("panoma_video_auto"!==e.tool||e.id===(null==Z?void 0:Z.id))),el=e=>{(0,m.Tl)("/api/apps/jobs/".concat(e.id,"/cancel"),{}).then(F).catch(e=>y(e.message))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.uV,{error:k}),!c&&(0,a.jsx)("p",{className:"mt-5 rounded border border-edge p-4 text-sm",children:u("apps.jobs.noIdentity")}),j&&(!j.ready||!1===j.enabled)&&(0,a.jsxs)("div",{className:"mt-5 rounded border border-edge p-4",children:[(0,a.jsx)("p",{className:"text-sm",children:u("apps.needsSetup")}),(0,a.jsx)(n(),{className:"apps-button mt-3 inline-flex",href:"/apps/panoma-video?project=".concat(encodeURIComponent(p)),children:u("apps.open")})]}),j&&(0,a.jsx)(f,{t:u,app:j,identity:c,slug:p,credential:A}),(0,a.jsx)(N,{t:u,locked:et,onStart:e=>V("panoma_video_auto",(0,m.EQ)(e))}),B&&(0,a.jsx)(w,{t:u,job:B,locked:et,onCancel:el}),!B&&G&&"done"!==G.status&&(0,a.jsx)(w,{t:u,job:G,locked:et}),W.length>1&&(0,a.jsxs)("label",{className:"mt-6 block text-sm",children:[u("apps.jobs.chooseProduction"),(0,a.jsx)("select",{className:b,value:null!=(l=null==Z?void 0:Z.id)?l:"",onChange:e=>O(e.target.value),children:W.map(e=>{var s,t;let l=null==(s=e.result.briefs)?void 0:s.map(e=>e.id).join(", "),n=new Date(null!=(t=e.requestedAt)?t:"").toLocaleString(x);return(0,a.jsxs)("option",{value:e.id,children:[n," \xb7 ",null!=l?l:e.id]},e.id)})})]}),ea.map(e=>(0,a.jsx)(C,{t:u,job:e,locked:et,onEnqueue:V},e.id)),Z&&(0,a.jsx)(_,{t:u,production:Z,brief:H,historical:Q,current:K,languages:X,format:es,language:$,locked:et,onFormat:Y,onLanguage:P,onEnqueue:V,onOpenCurrent:O}),!Q&&(null==J?void 0:J.scenes)&&J.revision&&(0,a.jsx)(S,{t:u,story:J,brief:H,language:$,format:es,locked:et,onEnqueue:V}),(0,a.jsx)(q,{t:u,jobs:v,locked:et,onCancel:el,onEnqueue:V})]})}},20243:(e,s,t)=>{Promise.resolve().then(t.bind(t,4737)),Promise.resolve().then(t.t.bind(t,3953,23))}},e=>{e.O(0,[6587,3953,2575,2948,1369,2921,1305,6823,7358],()=>e(e.s=20243)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9415],{10354:(e,t,a)=>{"use strict";var n=a(61990);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},10761:(e,t,a)=>{Promise.resolve().then(a.bind(a,79840)),Promise.resolve().then(a.bind(a,29443)),Promise.resolve().then(a.t.bind(a,3953,23))},29443:(e,t,a)=>{"use strict";a.d(t,{ProjectStore:()=>ei});var n=a(38657),s=a(3953),l=a.n(s),i=a(10354),r=a(32165),o=a(3043),c=a(2575);let d=new Set(["flutter","react native","expo","android","ios","swift","kotlin","dart"]),h=new Set(["next.js","react","vue","nuxt","svelte","sveltekit","angular","astro","remix / react router","solidjs","vite","tailwind css","shadcn/ui","electron","tauri"]),u=new Set(["express","fastify","nestjs","hono","django","flask","fastapi","ruby on rails","laravel","symfony","sinatra","gin","echo","fiber","axum","actix web"]),m=new Set(["mcp"]),p=new Set(["html","css","scss"]),x=new Set(["python","go","rust","ruby","php","java","c#","elixir"]),j=new Set(["dart","swift","kotlin","objective-c"]),f=new Set(["postgresql","mysql","mongodb","redis","mariadb"]),g=new Set(["vercel","netlify","cloudflare workers"]);var b=a(9144),v=a(52948);function y(e){let{id:t,name:a}=e,s=(0,b.kj)(),[l,i]=(0,r.useState)("ready");async function o(){i("opening");try{let e=await fetch("/api/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,tool:"editor"})});i(e.ok?"ready":"error")}catch(e){i("error")}}return(0,n.jsx)(v.rA,{tone:"surface",type:"button",onClick:o,busy:"opening"===l,busyLabel:s("today.opening"),title:s("today.openNamed",{name:a}),className:"shrink-0",children:s("error"===l?"today.openFailed":"today.resume")})}function w(e){var t,a,s,i;let{report:c}=e,d=(0,b.kj)(),h=(0,b.Ym)(),{summary:u}=c,[m,p]=(0,r.useState)(!1),x=(0,r.useId)(),j=c.critic,f=(null!=(a=null==j?void 0:j.lookFindings)?a:0)+(null!=(s=null==j?void 0:j.reviewFindings)?s:0),g=u.commits>0||u.proposals>0||u.born>0||u.touchedProjects>0||f>0,w=c.since?d("today.since",{when:(0,v.KW)(c.since,h)}):d("today.last24h");return g?(0,n.jsxs)("section",{className:"brief","aria-label":d("today.activity"),children:[(0,n.jsxs)("button",{type:"button",className:"brief__line",onClick:()=>p(e=>!e),"aria-expanded":m,"aria-controls":x,children:[(0,n.jsx)(o.efr,{"aria-hidden":!0}),(0,n.jsx)("strong",{children:d("today.activity")}),(0,n.jsxs)("span",{className:"brief__facts",children:[u.proposals>0&&(0,n.jsx)("span",{className:"brief__decision",children:d("today.proposalCount",{n:u.proposals})}),f>0&&(0,n.jsx)("span",{className:"brief__decision",children:d("today.findingCount",{n:f})}),u.commits>0&&(0,n.jsx)("span",{children:d("today.commitCount",{n:u.commits})}),0===u.commits&&u.touchedProjects>0&&(0,n.jsx)("span",{children:d("today.projectCount",{n:u.touchedProjects})}),u.born>0&&(0,n.jsx)("span",{children:d("today.bornCount",{n:u.born})})]}),(0,n.jsx)(o.bv7,{className:"brief__arrow","aria-hidden":!0})]}),(0,n.jsx)("div",{id:x,hidden:!m,children:m&&(0,n.jsxs)("div",{className:"brief__detail",children:[(0,n.jsx)("p",{className:"brief__when",children:w}),c.proposals.length>0&&(0,n.jsxs)("div",{className:"brief__decisions",children:[(0,n.jsx)("p",{className:"brief__label",children:d("proposals.waiting")}),(0,n.jsx)("ul",{children:c.proposals.slice(0,4).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsxs)(l(),{href:"/runs/".concat(e.id),children:[e.pkgName,e.a?" → ".concat(e.a):""]}),(0,n.jsx)("span",{className:"brief__where",children:d("today.inProject",{project:e.project})}),e.repeats>1&&(0,n.jsx)("span",{className:"brief__attempts",children:d("today.attempts",{n:e.repeats})}),(0,n.jsxs)("span",{className:"brief__meta",children:[d(e.verified?"proposals.testsGreen":"proposals.unverified")," \xb7 ",(0,v.KW)(e.when,h)]})]},e.id))})]}),(null!=(i=null==j||null==(t=j.where)?void 0:t.length)?i:0)>0&&(0,n.jsxs)("div",{className:"brief__decisions",children:[(0,n.jsx)("p",{className:"brief__label",children:d("today.criticWhere")}),(0,n.jsx)("ul",{children:j.where.slice(0,4).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)(l(),{href:"/p/".concat(e.slug,"#assignments"),children:e.name}),(0,n.jsx)("span",{className:"brief__meta",children:d(1===e.findings?"today.criticFindingOne":"today.criticFindingMany",{n:e.findings})})]},e.slug))})]}),u.commits>0&&(0,n.jsxs)("p",{className:"brief__meta",children:[d(1===u.touchedProjects?"today.inProjectsOne":"today.inProjectsMany",{c:d(1===u.commits?"today.commitOne":"today.commitMany",{n:u.commits}),n:u.touchedProjects}),u.byAgents>0&&" ".concat(d("today.fromAgents",{n:u.byAgents}))]}),c.projects.length>0&&(0,n.jsx)("ul",{className:"brief__projects",children:c.projects.slice(0,5).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(l(),{href:"/p/".concat(e.slug),children:e.name}),e.commits[0]&&(0,n.jsxs)("p",{className:"brief__subject",children:[e.commits[0].subject,e.commits[0].agent&&(0,n.jsx)("span",{className:"brief__agent",children:e.commits[0].agent})]}),(0,n.jsxs)("p",{className:"brief__meta",children:[e.commits.length>0&&(0,n.jsxs)(n.Fragment,{children:[d(1===e.commits.length?"today.commitOne":"today.commitMany",{n:e.commits.length})," \xb7 ",(0,v.KW)(e.commits[0].at,h)]}),e.agents.length>0&&(0,n.jsxs)(n.Fragment,{children:[e.commits.length>0&&" \xb7 ",e.agents.map(e=>d("today.agentNoted",{name:e.name,n:e.activities})).join(", ")]})]})]}),(0,n.jsx)(y,{id:e.id,name:e.name})]},e.slug))}),c.born.length>0&&(0,n.jsxs)("p",{className:"brief__born",children:[d("today.born")," ",c.born.slice(0,4).map((e,t)=>(0,n.jsxs)("span",{children:[t>0&&", ",(0,n.jsx)(l(),{href:"/p/".concat(e.slug),children:e.name})]},e.slug))]})]})})]}):(0,n.jsxs)("section",{className:"brief brief--quiet","aria-label":d("today.activity"),children:[(0,n.jsx)(o.efr,{"aria-hidden":!0}),(0,n.jsx)("strong",{children:d("today.activity")}),(0,n.jsx)("span",{children:d("today.nothing",{period:w})})]})}var N=a(48804),k=a(79840);function _(e){let{total:t}=e,a=(0,b.kj)(),s=(0,i.useRouter)(),[,l]=(0,r.useTransition)(),[c,d]=(0,r.useState)(null),[h,u]=(0,r.useState)(!1),[m,p]=(0,r.useState)(""),[x,j]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(null),[w,N]=(0,r.useState)(null),k=(0,r.useCallback)(async()=>{try{var e;let t=await fetch("/api/roots"),a=await t.json();d(null!=(e=a.roots)?e:[])}catch(e){d([])}},[]);(0,r.useEffect)(()=>{k()},[k]);let[_,S]=(0,r.useState)(null);async function P(e,t){if(!x&&t.trim()){j(!0),N(null);try{var n,i,r;let o=await fetch("/api/roots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,path:t.trim()})}),c=await o.json().catch(()=>({}));if(!o.ok)return void N({text:null!=(n=c.error)?n:a("sites.failed"),bad:!0});if(p(""),await k(),"add"===e){let e=null!=(i=c.found)?i:0;N({text:a(1===e?"sites.addedOne":"sites.addedMany",{n:e}),bad:!1}),l(()=>s.refresh())}else N({text:a("sites.removed",{n:null!=(r=c.removed)?r:0}),bad:!1}),l(()=>s.refresh())}catch(e){N({text:a("task.unreachable"),bad:!0})}finally{j(!1)}}}async function O(){if(!f&&!x){g(!0),N(null);try{var e,t;let n=await fetch("/api/roots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"search"})}),s=await n.json();y(null!=(e=s.candidates)?e:[]),0===(null!=(t=s.candidates)?t:[]).length&&N({text:a("sites.searchNone"),bad:!1})}catch(e){N({text:a("task.unreachable"),bad:!0})}finally{g(!1)}}}if(!c||0===c.length)return null;let M=c.map(e=>C(e.path));return(0,n.jsxs)("div",{className:"sites",children:[(0,n.jsxs)("button",{type:"button",className:"sites__line",onClick:()=>u(!h),"aria-expanded":h,children:[(0,n.jsx)(o.gBk,{"aria-hidden":!0}),(0,n.jsx)("span",{children:a(1===t?"sites.summaryOne":"sites.summaryMany",{n:t,where:M.slice(0,2).join(", "),extra:M.length>2?" ".concat(a("sites.andMore",{n:M.length-2})):""})}),(0,n.jsx)("span",{className:"sites__action",children:a(h?"sites.close":"sites.manage")})]}),h&&(0,n.jsxs)("div",{className:"sites__detail",children:[(0,n.jsx)("ul",{children:c.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{title:e.path,children:C(e.path)}),(0,n.jsxs)("span",{children:[a(1===e.projects?"sites.countOne":"sites.countMany",{n:e.projects}),!e.exists&&" \xb7 ".concat(a("sites.missing"))]}),_===e.path?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>{S(null),P("remove",e.path)},disabled:x,className:"sites__confirm",children:a("sites.removeConfirm",{n:e.projects})}),(0,n.jsx)("button",{type:"button",onClick:()=>S(null),disabled:x,className:"sites__cancel",children:a("accounts.cancel")})]}):(0,n.jsx)("button",{type:"button",onClick:()=>S(e.path),disabled:x,children:a("sites.remove")})]},e.path))}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),P("add",m)},children:[(0,n.jsx)("input",{value:m,onChange:e=>p(e.target.value),placeholder:a("sites.placeholder"),"aria-label":a("sites.fieldLabel"),spellCheck:!1}),(0,n.jsxs)("button",{type:"submit",disabled:x||!m.trim(),children:[(0,n.jsx)(o.K0m,{"aria-hidden":!0}),a(x?"sites.adding":"sites.add")]})]}),(0,n.jsxs)("div",{className:"sites__search",children:[(0,n.jsxs)("button",{type:"button",onClick:O,disabled:f||x,children:[(0,n.jsx)(o.JJh,{"aria-hidden":!0}),a(f?"sites.searching":"sites.search")]}),(0,n.jsx)("span",{children:a("sites.searchHint")})]}),v&&v.length>0&&(0,n.jsx)("ul",{className:"sites__candidates",children:v.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{title:e.path,children:C(e.path)}),(0,n.jsx)("span",{children:a(1===e.projects?"sites.countOne":"sites.countMany",{n:e.projects})}),(0,n.jsx)("button",{type:"button",onClick:()=>{y(t=>(null!=t?t:[]).filter(t=>t.path!==e.path)),P("add",e.path)},disabled:x,children:a("sites.add")})]},e.path))}),(0,n.jsx)("p",{className:"sites__note",children:a("sites.note")}),w&&(0,n.jsx)("p",{className:w.bad?"sites__error":"sites__note",children:w.text})]})]})}function C(e){return e.replace(/^\/Users\/[^/]+/,"~")}function S(e){let{stats:t,total:a,children:s}=e,l=(0,b.kj)(),i=(0,N.t)(),c=(0,r.useId)(),d=null==i?void 0:i.catalog,h=!d&&(null==i?void 0:i.active)===!1;return(0,n.jsx)("section",{className:"catalog-context","aria-labelledby":c,children:d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{id:c,className:"catalog-context__heading",children:l("watch.catalogDetails")}),(0,n.jsx)(N.K,{failure:d})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"catalog-context__summary",children:[(0,n.jsx)("h2",{id:c,className:"catalog-context__heading",children:l("watch.catalogDetails")}),(0,n.jsx)(k.CatalogSummary,{stats:t})]}),(0,n.jsxs)("div",{className:"catalog-context__folders",children:[(0,n.jsx)("h3",{className:"catalog-context__heading",children:l("watch.catalogFolders")}),(0,n.jsx)(_,{total:a})]}),h&&(0,n.jsxs)("p",{className:"catalog-context__warning",role:"status",children:[(0,n.jsx)(o.z1N,{"aria-hidden":!0}),(0,n.jsx)("span",{children:l("watch.off")})]}),s]})})}function P(e){let{discreet:t,onToggleDiscreet:a,onShare:s}=e,l=(0,b.kj)();return(0,n.jsxs)("div",{className:"catalog-actions",role:"group","aria-label":l("catalog.presentation"),children:[(0,n.jsxs)("button",{type:"button","aria-pressed":t,onClick:a,title:l(t?"store.showNames":"store.hideNames"),children:[t?(0,n.jsx)(o.EgV,{"aria-hidden":!0}):(0,n.jsx)(o.bZk,{"aria-hidden":!0}),(0,n.jsx)("span",{children:l("catalog.discreet")})]}),(0,n.jsxs)("button",{type:"button",onClick:s,children:[(0,n.jsx)(o.XcM,{"aria-hidden":!0}),(0,n.jsx)("span",{children:l("catalog.share")})]})]})}var O=a(67112),M=a(38058),T=a(67923),A=a(1810),E=a(52302),R=a(8901);let D='"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif';function F(e){return String(Math.max(0,Math.trunc(e)))}function I(e){return e>=75?R.fN:e>=50?R.sV:R.kS}function L(e,t,a,n,s,l){e.beginPath(),e.moveTo(t+l,a),e.arcTo(t+n,a,t+n,a+s,l),e.arcTo(t+n,a+s,t,a+s,l),e.arcTo(t,a+s,t,a,l),e.arcTo(t,a,t+n,a,l),e.closePath()}function W(e){return new Promise(t=>{let a=new Image;a.onload=()=>t(a),a.onerror=()=>t(null),a.src=e})}function K(e){let{data:t,discreet:a,onClose:s}=e,l=(0,b.kj)(),i=(0,b.Ym)(),d=(0,r.useRef)(null),h=(0,r.useRef)(null),u=(0,r.useRef)(null);(0,A.y)(h,!0,s),(0,E.r)(h,!0),(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>{var e;return null==(e=u.current)?void 0:e.focus()});return()=>cancelAnimationFrame(e)},[]);let[m,p]=(0,T.F)("share:user","","compartir:usuario"),[x,j]=(0,T.F)("share:language",i,"compartir:idioma"),[f,g]=(0,r.useState)(!a),[v,y]=(0,r.useState)(!1),[w,N]=(0,r.useState)("idle"),[k,_]=(0,r.useState)("idle"),C=(0,r.useCallback)((e,t)=>(0,c.t)(x,e,t),[x]),S=(0,r.useCallback)(async()=>{let e=d.current;if(!e)return;let a=await W("/assets/brand/panoma.svg"),n=function(e,t,a){let n=Math.max(0,Math.trunc(t));if(n<=8&&e.length>=n)return e.slice(0,n);let s=e.slice(0,Math.min(7,n)),l=Math.max(0,n-s.length);return l>0?[...s,a(l)]:s}(f?(await Promise.all(t.featuredProjects.slice(0,8).map(async e=>({...e,loadedIcon:await W(e.icon)})))).flatMap(e=>{let{loadedIcon:t,...a}=e;return t?[{...a,icon:t}]:[]}):t.featuredProjects.slice(0,8).map((e,t)=>({name:C("store.hidden",{n:t+1}),health:e.health,icon:null,concealed:!0})),t.projects,e=>({name:C("share.more",{n:e}),health:0,icon:a,panomaMark:!0,summary:!0}));!function(e,t){var a,n,s;let l=e.getContext("2d");if(!l)return;e.width=1600,e.height=900,l.fillStyle=R.PE,l.fillRect(0,0,1600,900),l.strokeStyle=R.KG,l.lineWidth=2,l.strokeRect(1,1,1598,898),function(e,t,a,n){if(t)try{e.drawImage(t,t.naturalWidth*(280/1024),t.naturalHeight*(222/1024),.515625*t.naturalWidth,t.naturalHeight*(586/1024),82,66,60,66)}catch(e){}e.fillStyle=R.Pg,e.font="650 42px ".concat(D),e.fillText("panoma",a+66+22,n+48)}(l,t.logo,82,66),l.font="500 25px ".concat(D),l.fillStyle=R.ux,l.textAlign="right",l.fillText(t.domain,1518,105),l.textAlign="left",l.fillStyle=R.Pg,function(e,t,a,n){let s=n;for(e.font="650 ".concat(s,"px ").concat(D);s>62&&e.measureText(t).width>1436;)s-=2,e.font="650 ".concat(s,"px ").concat(D)}(l,t.texts.title,1436,t.featuredProjects.length>0?86:102),l.fillText(t.texts.title,82,t.featuredProjects.length>0?278:350),t.featuredProjects.length>0&&function(e,t,a,n,s){let l=t.slice(0,8),i=1436/l.length,r=398,o=Math.min(122,i-28);e.fillStyle=R.ux,e.font="600 18px ".concat(D),e.fillText(s.health.toUpperCase(),a,n),function(e,t,a,n){let s=[[n.healthGood,R.fN],[n.healthReview,R.sV],[n.healthAttention,R.kS]];e.font="550 17px ".concat(D);let l=t-(s.map(t=>{let[a]=t;return 14+e.measureText(a).width}).reduce((e,t)=>e+t,0)+28*(s.length-1));for(let[t,n]of s)e.fillStyle=n,e.beginPath(),e.arc(l+5,a-6,5,0,2*Math.PI),e.fill(),e.fillStyle=R.fi,e.fillText(t,l+16,a),l+=14+e.measureText(t).width+28}(e,1600-a,n,s),l.forEach((t,n)=>{let s=a+i*n+i/2,l=s-37;if(e.save(),L(e,l,r,74,74,18),e.clip(),e.fillStyle=R.PE,e.fill(),t.concealed){var c,d=e,h=l,u=r,m=74,p=n;d.fillStyle=R.gX,d.fillRect(h,u,74,m),d.save(),d.strokeStyle=R.tu,d.lineWidth=1.5;let t=null!=(c=[0,7,-5,12][p%4])?c:0;for(let e=-m;e<2*m;e+=17)d.beginPath(),d.moveTo(h+e+t,u+m),d.lineTo(h+e+m+t,u),d.stroke();d.restore(),d.save(),d.shadowColor=R.Cv,d.shadowBlur=6,d.fillStyle=R.Mw,L(d,h+(m-44)/2,u+(m-10)/2,44,10,6),d.fill(),d.restore(),d.fillStyle=R.yU;for(let e=0;e<4;e+=1)L(d,h+m/2-11+7*e,u+m/2-2,2,4,1),d.fill()}else if(t.icon)try{t.panomaMark&&t.icon instanceof HTMLImageElement?function(e,t,a,n,s,l,i){let r=document.createElement("canvas");r.width=Math.round(88),r.height=Math.round(100);let o=r.getContext("2d");o&&(o.drawImage(t,t.naturalWidth*(280/1024),t.naturalHeight*(222/1024),.515625*t.naturalWidth,t.naturalHeight*(586/1024),0,0,r.width,r.height),o.globalCompositeOperation="source-in",o.fillStyle=i,o.fillRect(0,0,r.width,r.height),e.drawImage(r,a,n,s,l))}(e,t.icon,l+15,r+11,44,50,t.summary?R.Pg:I(t.health)):e.drawImage(t.icon,l,r,74,74)}catch(e){}if(e.restore(),e.strokeStyle=R.KG,e.lineWidth=1.5,L(e,l,r,74,74,18),e.stroke(),e.fillStyle=R.Pg,e.font="600 21px ".concat(D),e.textAlign="center",e.fillText(function(e,t,a){if(e.measureText(t).width<=a)return t;let n=t;for(;n.length>1&&e.measureText("".concat(n,"…")).width>a;)n=n.slice(0,-1);return"".concat(n,"…")}(e,t.name,i-16),s,r+104),t.summary){e.textAlign="left";return}let x=s-o/2,j=r+128;e.fillStyle=R.KG,L(e,x,j,o,10,5),e.fill(),e.fillStyle=I(t.health),L(e,x,j,Math.max(10,o*(Math.min(100,Math.max(0,t.health))/100)),10,5),e.fill(),e.fillStyle=I(t.health),e.font="650 19px ".concat(D),e.fillText("".concat(t.health,"/100"),s,r+171),e.textAlign="left"})}(l,t.featuredProjects,82,348,t.texts);let i=t.featuredProjects.length>0?655:505;a=l,n=82,s=i,a.strokeStyle=R.KG,a.lineWidth=1.5,a.beginPath(),a.moveTo(82,s),a.lineTo(n+1436,s),a.stroke(),function(e,t,a,n){let s=[[F(t.projects),t.texts.projects],[F(t.commits),t.texts.commits],[F(t.technologies),t.texts.technologies]];null!==t.agents&&s.push(["".concat(t.agents,"%"),t.texts.agents]);let l=1436/s.length;s.forEach((t,s)=>{let[i,r]=t,o=a+l*s;s>0&&(e.strokeStyle=R.KG,e.lineWidth=1.5,e.beginPath(),e.moveTo(o-34,n-10),e.lineTo(o-34,n+79),e.stroke()),e.fillStyle=R.Pg,e.font="650 54px ".concat(D),e.fillText(i,o,n+45),e.fillStyle=R.ux,e.font="500 22px ".concat(D),e.fillText(r,o,n+78)})}(l,t,82,i+51),t.user&&(l.fillStyle=R.fi,l.font="550 27px ".concat(D),l.fillText(t.user,82,839)),l.fillStyle=R.ux,l.font="500 23px ".concat(D),l.textAlign="right",l.fillText(t.texts.localFirst,1518,839),l.textAlign="left"}(e,{...t,logo:a,featuredProjects:n,user:m.trim()?m.trim().replace(/^@?/,"@"):void 0,domain:U,texts:{title:C("share.titulo",{n:t.projects}),projects:C("share.proyectos"),technologies:C("share.tecnologias"),commits:C("share.commits"),agents:C("share.agentes"),health:C("share.salud"),healthGood:C("share.saludBien"),healthReview:C("share.saludRevisar"),healthAttention:C("share.saludAtencion"),localFirst:C("share.local")}})},[f,t,C,m]);async function P(){let e=await H(d.current);e&&G(e)}async function K(){try{await navigator.clipboard.writeText(V(t,C)),y(!0),setTimeout(()=>y(!1),1800)}catch(e){}}async function q(){N("preparing");let e=await H(d.current);if(!e)return void N("failed");let a=V(t,C),n=new File([e],z,{type:"image/png"});if(function(e){if("function"!=typeof navigator.share||"function"!=typeof navigator.canShare)return!1;try{return navigator.canShare({files:[e]})}catch(e){return!1}}(n))try{await navigator.share({files:[n],text:a,title:"Panoma"}),N("idle");return}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return void N("idle")}let s=await B(e);s||G(e),N(s?"copied":"downloaded"),window.setTimeout(()=>N("idle"),2600)}async function Z(){_("preparing");let e=function(e){if(!e)return null;try{let t=e.toDataURL("image/png"),a=t.slice(t.indexOf(",")+1),n=window.atob(a),s=new Uint8Array(n.length);for(let e=0;e<n.length;e+=1)s[e]=n.charCodeAt(e);return new Blob([s],{type:"image/png"})}catch(e){return null}}(d.current);if(!e)return void _("failed");let a=B(e);var n=V(t,C);let s=document.createElement("a");s.href="https://x.com/intent/post?text=".concat(encodeURIComponent(n)),s.target="_blank",s.rel="noreferrer noopener",s.click();let l=await a;l||G(e),_(l?"copied":"downloaded"),window.setTimeout(()=>_("idle"),2600)}return(0,r.useEffect)(()=>{S()},[S]),(0,O.createPortal)((0,n.jsxs)("div",{className:"share",role:"dialog","aria-modal":"true","aria-label":l("share.abrir"),children:[(0,n.jsxs)("div",{className:"share__box",ref:h,children:[(0,n.jsxs)("header",{children:[(0,n.jsx)("h2",{children:l("share.abrir")}),(0,n.jsx)("button",{ref:u,type:"button",onClick:s,"aria-label":l("share.cerrar"),children:(0,n.jsx)(o.fZH,{"aria-hidden":!0})})]}),(0,n.jsx)("canvas",{ref:d,className:"share__canvas",width:1600,height:900,role:"img","aria-label":l("share.preview")}),(0,n.jsxs)("div",{className:"share__options",children:[(0,n.jsxs)("div",{className:"share__language",children:[(0,n.jsx)("span",{children:l("share.idioma")}),(0,n.jsxs)("div",{role:"group","aria-label":l("share.idioma"),children:[(0,n.jsx)("button",{type:"button",className:"es"===x?"is-active":void 0,"aria-pressed":"es"===x,onClick:()=>j("es"),children:"Espa\xf1ol"}),(0,n.jsx)("button",{type:"button",className:"en"===x?"is-active":void 0,"aria-pressed":"en"===x,onClick:()=>j("en"),children:"English"})]})]}),(0,n.jsxs)("label",{children:[(0,n.jsx)("span",{children:l("share.usuario")}),(0,n.jsx)("input",{value:m,onChange:e=>p(e.target.value),placeholder:l("share.usuarioVacio"),spellCheck:!1,maxLength:40})]}),(0,n.jsx)("button",{type:"button",className:"share__visibility".concat(f?"":" is-private"),onClick:()=>g(e=>!e),"aria-pressed":!f,"aria-label":l(f?"store.hideNames":"store.showNames"),title:l(f?"store.hideNames":"store.showNames"),children:f?(0,n.jsx)(o.bZk,{"aria-hidden":!0}):(0,n.jsx)(o.EgV,{"aria-hidden":!0})})]}),(0,n.jsx)("p",{className:"share__note",children:l("share.nota")}),(0,n.jsxs)("footer",{children:[(0,n.jsxs)("button",{type:"button",className:"share__primary",onClick:P,children:[(0,n.jsx)(o.Dho,{"aria-hidden":!0}),l("share.descargar")]}),(0,n.jsx)("button",{type:"button",onClick:K,children:l(v?"share.textoCopiado":"share.copiarTexto")}),(0,n.jsxs)("button",{type:"button",onClick:q,disabled:"preparing"===w,children:[(0,n.jsx)(o.XcM,{"aria-hidden":!0}),l("share.image.".concat(w))]}),(0,n.jsxs)("button",{type:"button",onClick:Z,disabled:"preparing"===k,children:[(0,n.jsx)(M.vIh,{"aria-hidden":!0}),l("share.x.".concat(k))]})]})]}),(0,n.jsx)("button",{type:"button",className:"share__backdrop",onClick:s,"aria-label":l("share.cerrar")})]}),document.body)}let U="panoma.ai",z="panoma-projects.png";function H(e){return new Promise(t=>{if(!e)return void t(null);e.toBlob(t,"image/png")})}function G(e){let t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download=z,a.click(),URL.revokeObjectURL(t)}async function B(e){var t;if("undefined"==typeof ClipboardItem||"function"!=typeof(null==(t=navigator.clipboard)?void 0:t.write))return!1;try{return await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),!0}catch(e){return!1}}function V(e,t){return t("share.texto",{n:e.projects,domain:U})}var q=a(5483),Z=a(65330),$=a(41268);let J={anthropic:{icon:M.Njx,color:"#d97757"},typescript:{icon:M.cyb,color:"#3178c6"},nextdotjs:{icon:M.wlC,color:"#111111"},nextjs:{icon:M.wlC,color:"#111111"},"next.js":{icon:M.wlC,color:"#111111"},react:{icon:M.GWR,color:"#149eca"},flutter:{icon:M.FuR,color:"#02569b"},dart:{icon:M.A7B,color:"#0175c2"},nodedotjs:{icon:M.h$$,color:"#5fa04e"},nodejs:{icon:M.h$$,color:"#5fa04e"},"node.js":{icon:M.h$$,color:"#5fa04e"},python:{icon:M.ptC,color:"#3776ab"},rust:{icon:M.xZd,color:"#111111"},go:{icon:M.ZRx,color:"#00add8"},vue:{icon:M.Zmg,color:"#42b883"},"vue.js":{icon:M.Zmg,color:"#42b883"},svelte:{icon:M.Qmm,color:"#ff3e00"},swift:{icon:M.cp,color:"#f05138"},kotlin:{icon:M.sjH,color:"#7f52ff"},ruby:{icon:M.LfU,color:"#cc342d"},php:{icon:M.XeU,color:"#777bb4"},express:{icon:M.t5I,color:"#111111"},tailwind:{icon:M.IR8,color:"#06b6d4"},tailwindcss:{icon:M.IR8,color:"#06b6d4"},docker:{icon:M.tih,color:"#2496ed"},postgresql:{icon:M.$Wy,color:"#4169e1"},drizzle:{icon:M.FkC,color:"#c5f74f"},supabase:{icon:M.lLb,color:"#3ecf8e"},firebase:{icon:M.iWE,color:"#ffca28"}};var Y=a(30953);let X=["all","attention","favorites","not-mine","web","mobile","backend","tools","ai","other"],Q={all:"filter.all",attention:"filter.attention",favorites:"filter.favorites","not-mine":"filter.notMine",web:"filter.web",mobile:"filter.mobile",backend:"filter.backend",tools:"filter.tools",ai:"filter.ai",other:"filter.other"};function ee(e){let{name:t,onOpen:a}=e,s=(0,b.kj)();return(0,n.jsx)("button",{type:"button",className:"open-handle",title:s("catalog.openHandle",{name:t}),"aria-label":s("catalog.openHandle",{name:t}),onClick:e=>{e.stopPropagation(),a()},onDoubleClick:e=>e.stopPropagation(),children:(0,n.jsx)(o.OvC,{"aria-hidden":!0})})}function et(){let e=(0,b.kj)();return(0,n.jsx)("span",{className:"opening-spinner",role:"status","aria-label":e("catalog.opening")})}function ea(e){var t;return null!=(t=e.proposedRuns)?t:0}function en(e){return ea(e)>0||e.risks.length>0||e.vulnCount>0||e.outdatedDeps>0||!!e.depsUnresolved}function es(e){return"A"===e||"B"===e?"good":"C"===e?"warn":"bad"}function el(e){return e.replace(/^\/(?:Users|home)\/[^/]+/,"~")}function ei(e){var t,a,s;let{projects:c,stats:v,report:y}=e,N=(0,i.useRouter)(),k=(0,b.kj)(),{query:_,setQuery:C}=(0,$.S)(),[O,M]=(0,T.F)("filter","all","filtro"),A=X.includes(O)?O:"all",[E,R]=(0,T.F)("sort","recent","orden"),[D,F]=(0,T.F)("view","grid","vista"),[I,L]=(0,T.F)("discreet",!1,"discreto"),[W,U]=(0,r.useState)(!1),[z,H]=(0,T.F)("favorites",[],"favoritos"),G=(0,r.useMemo)(()=>new Set(z),[z]),[B,V]=(0,r.useState)(null!=(s=null==(t=c[0])?void 0:t.id)?s:null),q=(0,r.useRef)(!1),Z=(0,r.useRef)(null),J=(0,r.useRef)(null),[ee,et]=(0,r.useState)(null),[ea,es]=(0,r.useState)(null),el=(0,r.useMemo)(()=>c.filter(en).length,[c]),ei=(0,r.useMemo)(()=>c.filter(e=>G.has(e.id)).length,[G,c]),ed=(0,r.useMemo)(()=>{let e=(0,Y.A)(_.trim());return c.filter(t=>{let a=!e||(0,Y.A)([t.name,t.description,t.primaryLanguage,...t.technologies.flatMap(e=>[e.name,e.version]),...t.agents.map(e=>e.name)].filter(Boolean).join(" ")).includes(e),n="all"===A||("attention"===A?en(t):"favorites"===A?G.has(t.id):"not-mine"===A?"foreign"===t.originKind||"forked"===t.originKind||"template"===t.originKind:(function(e){var t;let a=new Set,n=(null!=(t=e.primaryLanguage)?t:"").toLowerCase();for(let t of e.technologies){let e=t.name.toLowerCase();"model"===t.kind&&a.add("ai"),d.has(e)&&a.add("mobile"),(h.has(e)||g.has(e))&&a.add("web"),(u.has(e)||f.has(e))&&a.add("backend"),m.has(e)&&a.add("tools")}return j.has(n)&&a.add("mobile"),p.has(n)&&a.add("web"),x.has(n)&&a.add("backend"),0===a.size&&/\b(cli|tool|tools|runner|script|scripts|terminal|bot|daemon|agent)\b/.test(e.name.toLowerCase())&&a.add("tools"),0===a.size&&e.technologies.some(e=>"runtime"===e.kind&&["node.js","deno","bun"].includes(e.name.toLowerCase()))&&a.add("backend"),0===a.size&&a.add("other"),a})(t).has(A));return a&&n}).sort((e,t)=>{let a=Number(G.has(t.id))-Number(G.has(e.id));return 0!==a?a:"name"===E?e.name.localeCompare(t.name,"es"):"health"===E?t.healthScore-e.healthScore:(t.lastCommitAt?Date.parse(t.lastCommitAt):0)-(e.lastCommitAt?Date.parse(e.lastCommitAt):0)})},[G,A,c,_,E]),eh=(0,r.useMemo)(()=>ed.findIndex(e=>e.id===B),[ed,B]),eu=-1===eh?null:ed[eh];(0,r.useEffect)(()=>{if(q.current)return;let e=ed[0];e&&e.id!==B&&V(e.id)},[ed,B]);let em=(0,r.useCallback)(e=>{q.current=!0,V(e),et(null)},[]),[ex,ej]=(0,r.useTransition)(),[ef,eg]=(0,r.useState)(null),eb=(0,r.useCallback)(e=>{eg(e.id),ej(()=>N.push("/p/".concat(e.slug)))},[N]),ev=(0,r.useCallback)(()=>{var e;let t=null==(e=Z.current)?void 0:e.querySelectorAll("[data-index]"),a=null==t?void 0:t[0];if(!a)return 1;let n=a.offsetTop,s=0;for(let e of t){if(e.offsetTop!==n)break;s+=1}return Math.max(1,s)},[]);function ey(e){var t,a;if(0===ed.length)return;let n=ed.findIndex(e=>e.id===B),s=-1===n?0:Math.min(ed.length-1,Math.max(0,n+e)),l=ed[s];l&&(em(l.id),null==(a=Z.current)||null==(t=a.querySelector('[data-index="'.concat(s,'"]')))||t.focus())}async function ew(e){var t,a,n;let s;et(null);try{s=await fetch("/api/project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"ocultar",id:e})})}catch(e){et(k("project.unreachable"));return}if(!s.ok)return void et(null!=(a=(await s.json().catch(()=>({}))).error)?a:k("project.actionFailed"));B===e&&em(null),es({id:e,name:null!=(n=null==(t=c.find(t=>t.id===e))?void 0:t.name)?n:""}),N.refresh()}async function eN(e){et(null);try{let a=await fetch("/api/project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"mostrar",id:e})});if(!a.ok){var t;let e=await a.json().catch(()=>({}));et(null!=(t=e.error)?t:k("project.actionFailed"));return}}catch(e){et(k("project.unreachable"));return}es(null),N.refresh()}let ek={all:c.length,attention:el,favorites:ei};function e_(){var e;M("all"),null==(e=J.current)||e.scrollTo({left:0}),C(""),window.location.search&&N.replace("/",{scroll:!1})}return 0===c.length?null:(0,n.jsx)("main",{id:"app-main",tabIndex:-1,className:"app-main catalog-screen",children:(0,n.jsxs)("div",{className:"catalog-screen__inner",children:[ea&&(0,n.jsxs)("p",{className:"brief brief--dismissed",role:"status",children:[(0,n.jsx)(o.EgV,{"aria-hidden":!0}),(0,n.jsx)("span",{children:k("store.justHidden",{name:ea.name})}),(0,n.jsx)("button",{type:"button",onClick:()=>void eN(ea.id),children:k("store.undoHide")}),(0,n.jsx)(l(),{href:"/hidden",children:k("store.seeHidden")})]}),(0,n.jsxs)("header",{className:"catalog-bar",children:[(0,n.jsx)("div",{className:"catalog-bar__heading",children:(0,n.jsxs)("div",{className:"catalog-bar__title",children:[(0,n.jsx)("h1",{children:k("catalog.title")}),(0,n.jsx)("span",{className:"catalog-count",role:"status",children:ed.length===c.length?k(1===c.length?"catalog.countOne":"catalog.count",{n:c.length}):"".concat(ed.length," / ").concat(c.length)})]})}),(0,n.jsx)("div",{className:"catalog-bar__tools",children:(0,n.jsx)(P,{discreet:I,onToggleDiscreet:()=>L(!I),onShare:()=>U(!0)})})]}),(0,n.jsx)(S,{stats:v,total:c.length,children:(0,n.jsxs)("div",{className:"catalog-activity",children:[(0,n.jsx)(w,{report:y}),(null==(a=c[0])?void 0:a.lastCommitAt)&&(0,n.jsx)(er,{project:c[0],discreet:I})]})}),(0,n.jsxs)("div",{className:"catalog-toolbar",children:[(0,n.jsxs)("div",{className:"catalog-toolbar__heading",children:[(0,n.jsx)("span",{children:k("store.filterAria")}),(0,n.jsx)("p",{children:k("catalog.hint")})]}),(0,n.jsx)("div",{ref:J,className:"catalog-filters",role:"group","aria-label":k("store.filterAria"),children:X.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>M(e),className:A===e?"is-active":void 0,"aria-pressed":A===e,children:[k(Q[e]),ek[e]?(0,n.jsx)("span",{children:ek[e]}):null]},e))}),(0,n.jsxs)("div",{className:"catalog-view-tools",children:[(0,n.jsxs)("label",{className:"catalog-sort",children:[(0,n.jsx)("span",{children:k("catalog.sort")}),(0,n.jsxs)("select",{value:E,onChange:e=>R(e.target.value),children:[(0,n.jsx)("option",{value:"recent",children:k("store.sortRecent")}),(0,n.jsx)("option",{value:"name",children:k("store.sortName")}),(0,n.jsx)("option",{value:"health",children:k("store.sortHealth")})]})]}),(0,n.jsxs)("div",{className:"view-switch",role:"group","aria-label":k("store.viewAria"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>F("list"),className:"list"===D?"is-active":void 0,"aria-label":k("store.viewList"),"aria-pressed":"list"===D,title:k("store.viewList"),children:[(0,n.jsx)(o.$mg,{"aria-hidden":!0}),(0,n.jsx)("span",{children:k("catalog.list")})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>F("grid"),className:"grid"===D?"is-active":void 0,"aria-label":k("store.viewGrid"),"aria-pressed":"grid"===D,title:k("store.viewGrid"),children:[(0,n.jsx)(o.ENP,{"aria-hidden":!0}),(0,n.jsx)("span",{children:k("catalog.grid")})]})]})]})]}),("all"!==A||_.trim())&&(0,n.jsxs)("div",{className:"catalog-filter-state",children:[(0,n.jsxs)("p",{children:[k("catalog.filteredBy",{filter:k(Q[A])}),_.trim()&&(0,n.jsxs)("span",{children:[" \xb7 ",_.trim()]})]}),(0,n.jsxs)("button",{type:"button",onClick:e_,children:[(0,n.jsx)(o.fZH,{"aria-hidden":!0}),k("store.clearFilters")]})]}),W&&(0,n.jsx)(K,{data:function(e){let t=e.reduce((e,t)=>{var a;return e+(null!=(a=t.gitCommitCount)?a:0)},0),a=new Set(e.flatMap(e=>e.technologies.map(e=>e.name))),n=e.reduce((e,t)=>e+t.agents.reduce((e,t)=>e+t.commits,0),0);return{projects:e.length,technologies:a.size,commits:t,agents:t>0&&n>0?Math.min(100,Math.round(n/t*100)):null,featuredProjects:e.filter(e=>e.hasIcon).slice(0,8).map(e=>({name:e.name,health:e.healthScore,icon:"/icon/".concat(e.id)}))}}(c),discreet:I,onClose:()=>U(!1)}),(0,n.jsxs)("div",{className:"catalog-split","data-open":eu?"true":"false",children:[(0,n.jsx)("div",{className:"catalog-body",children:ed.length>0?(0,n.jsxs)(n.Fragment,{children:["list"===D&&(0,n.jsxs)("div",{className:"catalog-columns","aria-hidden":!0,children:[(0,n.jsx)("span",{children:k("catalog.colProject")}),(0,n.jsx)("span",{children:k("catalog.colHealth")}),(0,n.jsx)("span",{children:k("catalog.colStack")}),(0,n.jsx)("span",{children:k("catalog.colActivity")})]}),(0,n.jsx)("div",{ref:Z,role:"listbox","aria-label":k("catalog.rowsAria"),className:"catalog-rows catalog-rows--".concat(D),onKeyDown:function(e){let t="grid"===D?ev():1,a={ArrowDown:t,ArrowUp:-t,..."grid"===D?{ArrowRight:1,ArrowLeft:-1}:{}}[e.key];if(void 0!==a){e.preventDefault(),ey(a);return}if("Home"===e.key||"End"===e.key){e.preventDefault(),ey("Home"===e.key?-ed.length:ed.length);return}"Escape"===e.key&&B&&(e.preventDefault(),em(null))},children:ed.map((e,t)=>{let a={project:e,index:t,selected:e.id===B,tabbable:t===(-1===eh?0:eh),favorite:G.has(e.id),opening:ex&&ef===e.id,discreet:I,onSelect:()=>em(e.id),onOpen:()=>eb(e)};return"list"===D?(0,n.jsx)(eo,{...a},e.id):(0,n.jsx)(ec,{...a},e.id)})})]}):(0,n.jsxs)("div",{className:"catalog-empty",role:"status",children:[(0,n.jsx)(o.ENP,{"aria-hidden":!0}),(0,n.jsx)("h2",{children:k("store.noResults")}),(0,n.jsx)("p",{children:k("store.noResultsBody")}),(0,n.jsx)("button",{type:"button",onClick:e_,children:k("store.clearFilters")})]})}),eu&&(0,n.jsx)(ep,{project:eu,discreet:I,index:Math.max(0,ed.findIndex(e=>e.id===eu.id)),favorite:G.has(eu.id),onFavorite:()=>{var e;return e=eu.id,void H(G.has(e)?z.filter(t=>t!==e):[...z,e])},onHide:()=>ew(eu.id),onClose:()=>em(null),error:ee},eu.id)]})]})})}function er(e){let{project:t,discreet:a}=e,s=(0,b.kj)(),i=(0,b.Ym)();return(0,n.jsxs)("section",{className:"catalog-latest","aria-label":s("catalog.latestCommit"),children:[(0,n.jsxs)("div",{className:"catalog-latest__heading",children:[(0,n.jsx)("h2",{children:s("catalog.latestCommit")}),(0,n.jsx)("span",{children:(0,v.Pp)(t.lastCommitAt,i)})]}),(0,n.jsxs)(l(),{href:"/p/".concat(t.slug),children:[a?s("store.hidden",{n:1}):t.name,(0,n.jsx)(o.OvC,{"aria-hidden":!0})]}),!a&&t.lastCommitSubject&&(0,n.jsx)("p",{title:t.lastCommitSubject,children:t.lastCommitSubject})]})}function eo(e){let{project:t,index:a,selected:s,tabbable:l,favorite:i,opening:r,discreet:d,onSelect:h,onOpen:u}=e,m=(0,b.kj)(),p=(0,b.Ym)(),x=ea(t);return(0,n.jsxs)("div",{id:"catalog-".concat(t.id),role:"option","aria-selected":s,"aria-busy":r,tabIndex:l?0:-1,"data-index":a,className:"catalog-row",title:d?m("store.hidden",{n:a+1}):t.root,onClick:h,onDoubleClick:u,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),u())," "===e.key&&(e.preventDefault(),h())},children:[(0,n.jsxs)("span",{className:"catalog-row__identity",children:[d?(0,n.jsx)(ed,{size:"row",variant:a}):(0,n.jsx)(v.hV,{locale:p,name:t.name,src:t.hasIcon?"/icon/".concat(t.id):null,size:40,tone:"neutral"}),(0,n.jsxs)("span",{className:"catalog-row__names",children:[(0,n.jsxs)("span",{className:"catalog-row__name",children:[(0,n.jsx)("span",{children:d?m("store.hidden",{n:a+1}):t.name}),i&&(0,n.jsx)(o.K7t,{className:"catalog-row__star","aria-hidden":!0}),x>0&&(0,n.jsxs)("span",{className:"waiting-badge",title:m(1===x?"store.proposalsWaitingOne":"store.proposalsWaitingMany",{n:x}),children:[(0,n.jsx)("span",{"aria-hidden":!0,children:x}),(0,n.jsx)("span",{className:"sr-only",children:m(1===x?"store.proposalsWaitingOne":"store.proposalsWaitingMany",{n:x})})]}),t.risks.length>0&&(0,n.jsx)(o.Dco,{className:"risk-mark",title:t.risks.map(e=>(0,c.P3)(m,e)).join(" \xb7 ")})]}),!d&&(0,n.jsxs)("span",{className:"catalog-row__path",children:[el(t.root),t.copyCount>0&&(0,n.jsxs)("span",{title:m("store.alsoCopiesTitle"),children:[" ",m("store.alsoCopies",{n:t.copyCount})]})]})]})]}),(0,n.jsx)(eh,{score:t.healthScore,grade:t.healthGrade}),(0,n.jsx)(eu,{technologies:t.technologies}),(0,n.jsxs)("span",{className:"catalog-row__activity",children:[(0,n.jsx)(em,{state:t.state}),(0,v.Pp)(t.lastCommitAt,p)]}),(0,n.jsx)("span",{className:"catalog-row__handle",children:r?(0,n.jsx)(et,{}):(0,n.jsx)(ee,{name:d?m("store.hidden",{n:a+1}):t.name,onOpen:u})})]})}function ec(e){let{project:t,index:a,selected:s,tabbable:l,favorite:i,opening:r,discreet:d,onSelect:h,onOpen:u}=e,m=(0,b.Ym)(),p=(0,b.kj)();return(0,n.jsxs)("div",{id:"catalog-".concat(t.id),role:"option","aria-selected":s,"aria-busy":r,tabIndex:l?0:-1,"data-index":a,className:"catalog-tile",title:d?p("store.hidden",{n:a+1}):t.root,onClick:h,onDoubleClick:u,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),u())," "===e.key&&(e.preventDefault(),h())},children:[(0,n.jsx)(eh,{score:t.healthScore,grade:t.healthGrade}),(0,n.jsx)("span",{className:"catalog-tile__handle",children:r?(0,n.jsx)(et,{}):(0,n.jsx)(ee,{name:d?p("store.hidden",{n:a+1}):t.name,onOpen:u})}),d?(0,n.jsx)(ed,{size:"tile",variant:a}):(0,n.jsx)(v.hV,{locale:m,name:t.name,src:t.hasIcon?"/icon/".concat(t.id):null,size:76,tone:"neutral"}),(0,n.jsxs)("span",{className:"catalog-tile__name",children:[i&&(0,n.jsx)(o.K7t,{"aria-hidden":!0}),(0,n.jsx)("span",{children:d?p("store.hidden",{n:a+1}):t.name}),!d&&t.copyCount>0&&(0,n.jsx)(o.Zs_,{title:p("store.alsoCopiesMark",{n:t.copyCount})})]}),(0,n.jsxs)("span",{className:"catalog-tile__meta",children:[(0,n.jsx)(em,{state:t.state}),(0,v.Pp)(t.lastCommitAt,m),t.risks.length>0&&(0,n.jsx)(o.Dco,{className:"risk-mark",title:t.risks.map(e=>(0,c.P3)(p,e)).join(" \xb7 ")})]})]})}function ed(e){let{size:t,variant:a}=e;return(0,n.jsx)("span",{className:"catalog-private-mark catalog-private-mark--".concat(t),"data-variant":a%4,"aria-hidden":!0,children:(0,n.jsx)("span",{className:"catalog-private-mark__seal"})})}function eh(e){let{score:t,grade:a}=e,s=(0,b.kj)(),l=2*Math.PI*11,i=Math.max(0,Math.min(100,t))/100*l;return(0,n.jsxs)("span",{className:"health-dial health-dial--".concat(es(a)),title:s("catalog.healthOf",{n:t}),children:[(0,n.jsxs)("svg",{viewBox:"0 0 26 26","aria-hidden":!0,children:[(0,n.jsx)("circle",{className:"health-dial__track",cx:"13",cy:"13",r:11}),(0,n.jsx)("circle",{className:"health-dial__arc",cx:"13",cy:"13",r:11,strokeDasharray:"".concat(i," ").concat(l)})]}),(0,n.jsx)("span",{children:t})]})}function eu(e){var t,a;let{technologies:s}=e,l=s.find(e=>"framework"===e.kind||"language"===e.kind);if(!l)return(0,n.jsx)("span",{className:"stack-mark stack-mark--empty",children:"—"});let i=null!=(a=J[(t=l.name).toLowerCase()])?a:J[t.toLowerCase()],r=null==i?void 0:i.icon;return(0,n.jsxs)("span",{className:"stack-mark",children:[r?(0,n.jsx)(r,{"aria-hidden":!0,style:{color:i.color}}):null,(0,n.jsx)("span",{children:l.name})]})}function em(e){let{state:t}=e,a=(0,b.kj)();return(0,n.jsx)("span",{className:"state-dot state-dot--".concat(t),title:a(ex(t)),children:(0,n.jsx)("span",{className:"sr-only",children:a(ex(t))})})}function ep(e){var t,a;let{project:s,discreet:i,index:r,favorite:d,onFavorite:h,onHide:u,onClose:m,error:p}=e,x=(0,b.kj)(),j=(0,b.Ym)(),f=ea(s),g=es(s.healthGrade),y=i?x("store.hidden",{n:r+1}):s.name,w=!1===s.gitVersioned?x("catalog.noGit"):s.gitRemoteUrl?x("catalog.remote"):x("catalog.localOnly"),N="foreign"===s.originKind?x("origin.foreign"):"forked"===s.originKind?x("origin.forked"):"template"===s.originKind?x("origin.template"):null;return(0,n.jsxs)("aside",{className:"detail-panel","aria-label":x("catalog.detailsOf",{name:y}),children:[(0,n.jsxs)("header",{className:"detail-panel__head",children:[i?(0,n.jsx)(ed,{size:"row",variant:r}):(0,n.jsx)(v.hV,{locale:j,name:s.name,src:s.hasIcon?"/icon/".concat(s.id):null,size:38,tone:"neutral"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{children:y}),!i&&(0,n.jsx)("p",{title:s.root,children:el(s.root)})]}),(0,n.jsx)("button",{type:"button",onClick:m,"aria-label":x("catalog.close"),children:(0,n.jsx)(o.fZH,{"aria-hidden":!0})})]}),(0,n.jsxs)("div",{className:"detail-panel__open",children:[(0,n.jsx)(Z.q,{projectId:s.id,path:s.root,locale:j}),(0,n.jsx)(q.w,{projectId:s.id,projectName:s.name,compact:!0})]}),(0,n.jsxs)("section",{className:"detail-health detail-health--".concat(g),children:[(0,n.jsxs)("p",{children:[(0,n.jsx)(em,{state:s.state}),x("catalog.colHealth")]}),(0,n.jsxs)("p",{className:"detail-health__score",children:[(0,n.jsx)("strong",{children:s.healthScore}),(0,n.jsx)("span",{children:"/100"})]}),(0,n.jsx)("span",{className:"detail-health__meter",children:(0,n.jsx)("span",{style:{width:"".concat(Math.max(0,Math.min(100,s.healthScore)),"%")}})})]}),(0,n.jsxs)("dl",{className:"detail-facts",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.colStack")}),(0,n.jsx)("dd",{children:(0,n.jsx)(eu,{technologies:s.technologies})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.colActivity")}),(0,n.jsx)("dd",{children:(0,v.Pp)(s.lastCommitAt,j)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.commits")}),(0,n.jsx)("dd",{children:null!=(t=s.gitCommitCount)?t:"—"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.repository")}),(0,n.jsx)("dd",{children:w})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.size")}),(0,n.jsx)("dd",{children:(0,v.z3)(s.sourceBytes)})]}),N&&(0,n.jsxs)("div",{children:[(0,n.jsx)("dt",{children:x("catalog.origin")}),(0,n.jsx)("dd",{title:null!=(a=s.originStartedBy)?a:void 0,children:N})]})]}),en(s)&&(0,n.jsxs)("section",{className:"detail-review",children:[(0,n.jsx)("h3",{children:x("catalog.needsReview")}),f>0&&(0,n.jsxs)(l(),{href:"/p/".concat(s.slug,"#propuestas"),className:"detail-review__waiting",children:[(0,n.jsx)(o.V83,{"aria-hidden":!0}),(0,n.jsx)("span",{children:x(1===f?"store.proposalsWaitingOne":"store.proposalsWaitingMany",{n:f})})]}),(0,n.jsxs)("ul",{children:[s.risks.map(e=>(0,n.jsx)("li",{className:"is-danger",children:(0,n.jsx)(l(),{href:"/p/".concat(s.slug,"#unsaved"),title:x("catalog.reviewUnsaved"),children:(0,c.P3)(x,e)})},e.code)),s.vulnCount>0&&(0,n.jsx)("li",{className:"is-danger",children:(0,n.jsx)(l(),{href:"/p/".concat(s.slug,"#security"),title:x("catalog.reviewSecurity"),children:1===s.vulnCount?x("store.noticeOne"):x("store.noticesMany",{n:s.vulnCount})})}),s.outdatedDeps>0&&(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/p/".concat(s.slug,"#dependencies"),title:x("catalog.reviewDeps"),children:x("store.depsBehindRatio",{n:s.outdatedDeps,total:s.directDeps||0})})}),s.depsUnresolved&&(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:"/p/".concat(s.slug,"#dependencies"),title:x("project.depsUncheckedWhy",{file:s.depsUnresolved}),children:x("store.depsUnchecked")})})]})]}),p&&(0,n.jsx)("p",{className:"detail-panel__error",role:"alert",children:p}),(0,n.jsxs)("footer",{className:"detail-panel__foot",children:[(0,n.jsxs)(l(),{href:"/p/".concat(s.slug),children:[x("catalog.fullDetail")," ",(0,n.jsx)(o.OvC,{"aria-hidden":!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{type:"button",onClick:h,"aria-label":d?x("store.favoriteRemove",{name:s.name}):x("store.favoriteAdd",{name:s.name}),"aria-pressed":d,children:d?(0,n.jsx)(o.K7t,{"aria-hidden":!0}):(0,n.jsx)(o.sdO,{"aria-hidden":!0})}),(0,n.jsx)("button",{type:"button",onClick:u,"aria-label":x("store.hideNamed",{name:s.name}),children:(0,n.jsx)(o.EgV,{"aria-hidden":!0})})]})]})]})}function ex(e){return"active"===e?"state.active":"paused"===e?"state.paused":"dormant"===e?"state.dormant":"state.no-git"}},30953:(e,t,a)=>{"use strict";function n(e){return(null!=e?e:"").toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"")}a.d(t,{A:()=>n})},41268:(e,t,a)=>{"use strict";a.d(t,{SearchProvider:()=>c,S:()=>o});var n=a(38657),s=a(10354),l=a(32165);function i(e,t){var a;return"/"!==e?"":null!=(a=("string"==typeof t?new URLSearchParams(t):t).get("q"))?a:""}let r=(0,l.createContext)({query:"",setQuery:()=>{}});function o(){return(0,l.useContext)(r)}function c(e){let{children:t}=e,a=(0,s.usePathname)(),o=(0,s.useSearchParams)(),[c,d]=(0,l.useState)(()=>i(a,o));(0,l.useEffect)(()=>{d(i(a,o))},[a,o]);let h=(0,l.useMemo)(()=>({query:c,setQuery:d}),[c]);return(0,n.jsx)(r.Provider,{value:h,children:t})}},48804:(e,t,a)=>{"use strict";a.d(t,{K:()=>o,t:()=>r});var n=a(38657),s=a(32165),l=a(3043),i=a(9144);function r(){let[e,t]=(0,s.useState)();return(0,s.useEffect)(()=>{let e=!0;return fetch("/api/watch").then(e=>e.json()).then(a=>{e&&t(a)}).catch(()=>void 0),()=>{e=!1}},[]),e}function o(e){let{failure:t}=e,a=(0,i.kj)();return(0,n.jsxs)("section",{className:"catalog-down",role:"alert",children:[(0,n.jsxs)("h2",{children:[(0,n.jsx)(l.z1N,{"aria-hidden":!0}),a("catalog.down.title")]}),(0,n.jsx)("p",{children:a("catalog.down.body",{path:t.path})}),(0,n.jsx)("p",{className:"catalog-down__detail",children:(0,n.jsx)("code",{children:a("catalog.down.detail",{detail:t.detail})})})]})}},56684:(e,t,a)=>{"use strict";a.d(t,{k5:()=>d});var n=a(32165),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(s),i=["attr","size","title"];function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach(function(t){var n,s,l;n=e,s=t,l=a[t],(s=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(s))in n?Object.defineProperty(n,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[s]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function d(e){return t=>n.createElement(h,r({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,a)=>n.createElement(t.tag,c({key:a},t.attr),e(t.child)))}(e.child))}function h(e){var t=t=>{var a,s=e.attr,l=e.size,o=e.title,d=function(e,t){if(null==e)return{};var a,n,s=function(e,t){if(null==e)return{};var a={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}(e,i),h=l||t.size||"1em";return t.className&&(a=t.className),e.className&&(a=(a?a+" ":"")+e.className),n.createElement("svg",r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,s,d,{className:a,style:c(c({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==l?n.createElement(l.Consumer,null,e=>t(e)):t(s)}},79840:(e,t,a)=>{"use strict";a.d(t,{CatalogSummary:()=>l});var n=a(38657),s=a(9144);function l(e){let{stats:t}=e,a=(0,s.kj)();return(0,n.jsxs)("div",{className:"catalog-overview",role:"group","aria-label":a("shell.summary"),children:[(0,n.jsxs)("dl",{className:"catalog-overview__states",children:[(0,n.jsx)(i,{label:a("shell.live"),value:t.live,tone:"live"}),(0,n.jsx)(i,{label:a("shell.paused"),value:t.paused,tone:"paused"}),(0,n.jsx)(i,{label:a("shell.dormant"),value:t.dormant}),(0,n.jsx)(i,{label:a("shell.noGit"),value:t.noGit})]}),(0,n.jsxs)("dl",{className:"catalog-overview__aside",children:[(0,n.jsx)(i,{label:a("shell.copies"),value:t.copies}),t.hidden>0&&(0,n.jsx)(i,{label:a("shell.hidden"),value:t.hidden})]})]})}function i(e){let{label:t,value:a,tone:s}=e;return(0,n.jsxs)("div",{className:"catalog-overview__item","data-tone":s,children:[(0,n.jsx)("dt",{children:t}),(0,n.jsx)("dd",{children:a})]})}}},e=>{e.O(0,[6587,3052,2583,3953,2575,2948,1369,2202,1305,6823,7358],()=>e(e.s=10761)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{9144:(e,t,r)=>{"use strict";r.d(t,{I18nProvider:()=>s,Ym:()=>c,Zs:()=>u,kj:()=>d});var n=r(38657),a=r(32165),i=r(2575);let o=(0,a.createContext)("en"),l=(0,a.createContext)("panoma");function s(e){let{locale:t,cli:r,children:a}=e;return(0,n.jsx)(o.Provider,{value:t,children:(0,n.jsx)(l.Provider,{value:r,children:a})})}function c(){return(0,a.useContext)(o)}function u(){return(0,a.useContext)(l)}function d(){let e=(0,a.useContext)(o),t=(0,a.useContext)(l);return(0,a.useCallback)((r,n)=>(0,i.t)(e,r,{cli:t,...n}),[e,t])}},10354:(e,t,r)=>{"use strict";var n=r(61990);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},21248:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(38657);function a(e){let{text:t,slots:r}=e,a=t.split(/\{(\w+)\}/g);return(0,n.jsx)(n.Fragment,{children:a.map((e,t)=>{var a;return t%2==0?e:(0,n.jsx)("span",{children:null!=(a=r[e])?a:"{".concat(e,"}")},t)})})}},47155:(e,t,r)=>{Promise.resolve().then(r.bind(r,98623)),Promise.resolve().then(r.t.bind(r,3953,23))},56684:(e,t,r)=>{"use strict";r.d(t,{k5:()=>u});var n=r(32165),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(a),o=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>n.createElement(d,l({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,a=e.attr,i=e.size,s=e.title,u=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,o),d=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&n.createElement("title",null,s),e.children)};return void 0!==i?n.createElement(i.Consumer,null,e=>t(e)):t(a)}},98623:(e,t,r)=>{"use strict";r.d(t,{RunActions:()=>c});var n=r(38657),a=r(10354),i=r(32165),o=r(9144),l=r(21248),s=r(52948);function c(e){let{runId:t,branch:r}=e,c=(0,o.kj)(),u=(0,a.useRouter)(),[d,f]=(0,i.useState)(null),[p,b]=(0,i.useState)(null);async function m(e){f(e),b(null);try{var r,n;let a=await fetch("/api/runs/".concat(t),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e})}),i=await a.json();b({ok:!!i.ok,detail:null!=(n=null!=(r=i.detail)?r:i.error)?n:c("runActions.noDetail")}),i.ok&&u.refresh()}catch(e){b({ok:!1,detail:c("runActions.unreachable")})}finally{f(null)}}return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)(s.rA,{tone:"accent",size:"lg",onClick:()=>m("aplicar"),busy:"aplicar"===d,busyLabel:c("runActions.merging"),disabled:null!==d,children:c("runActions.apply")}),(0,n.jsx)(s.rA,{tone:"plain",size:"lg",onClick:()=>m("descartar"),busy:"descartar"===d,busyLabel:c("runActions.discarding"),disabled:null!==d,children:c("runActions.discard")})]}),(0,n.jsx)("p",{className:"mt-2 font-mono text-[11px] text-faint",children:(0,n.jsx)(l.h,{text:c("runActions.note"),slots:{branch:(0,n.jsx)("span",{className:"text-smoke",children:r})}})}),p&&(0,n.jsx)("p",{className:"mt-3 rounded border px-3 py-2 text-xs ".concat(p.ok?"border-live/30 bg-live/10 text-live":"border-idle/30 bg-idle/10 text-idle"),children:p.detail})]})}}},e=>{e.O(0,[6587,3953,2575,2948,1305,6823,7358],()=>e(e.s=47155)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2229,2966,4345,4709],{21609:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,3953,23))}},e=>{e.O(0,[3953,1305,6823,7358],()=>e(e.s=21609)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2229,2966,4345,4709],{21609:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,3953,23))}},e=>{e.O(0,[3953,1305,6823,7358],()=>e(e.s=21609)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2229,2966,4345,4709],{21609:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,3953,23))}},e=>{e.O(0,[3953,1305,6823,7358],()=>e(e.s=21609)),_N_E=e.O()}]);