allyhub 0.5.0 → 0.7.0

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 (632) hide show
  1. package/dist/audio-text.js +1 -1
  2. package/dist/commands/add.js +2 -2
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/dev.js +1 -1
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames/sheet.js +1 -1
  7. package/dist/commands/frames.js +8 -8
  8. package/dist/commands/index.js +1 -1
  9. package/dist/commands/inspect/common.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/render.js +1 -1
  12. package/dist/commands/sheet.js +7 -7
  13. package/dist/commands/site.js +3 -2
  14. package/dist/commands/skills.js +3 -3
  15. package/dist/commands/slides.js +2 -2
  16. package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
  17. package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
  18. package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
  19. package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
  20. package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
  22. package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
  23. package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
  24. package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
  26. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
  27. package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
  28. package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
  29. package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
  30. package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
  31. package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
  32. package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  33. package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
  34. package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
  35. package/dist/node_modules/@allyhub-next/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
  38. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
  39. package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
  41. package/dist/node_modules/@allyhub-next/check/package.json +1 -1
  42. package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
  43. package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
  44. package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
  45. package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
  46. package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
  47. package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
  48. package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
  49. package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
  50. package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
  51. package/dist/node_modules/@allyhub-next/components/package.json +1 -1
  52. package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
  53. package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
  54. package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
  55. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
  56. package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
  57. package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  58. package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  59. package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  60. package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
  61. package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
  62. package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  63. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  64. package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
  65. package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
  66. package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
  67. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
  68. package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
  69. package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
  70. package/dist/node_modules/@allyhub-next/export/package.json +1 -1
  71. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  72. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  73. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  74. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  75. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +248 -18
  76. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  77. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1114 -91
  78. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  79. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  80. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  81. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +4 -0
  82. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  83. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  84. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  85. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  86. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  87. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +625 -30
  88. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  89. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  90. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  91. package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
  92. package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
  93. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  94. package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
  95. package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
  96. package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
  97. package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
  98. package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
  99. package/dist/node_modules/@allyhub-next/media/package.json +1 -1
  100. package/dist/node_modules/@allyhub-next/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  102. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  103. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  104. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  105. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  106. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  107. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  108. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  109. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  110. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  111. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  112. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  113. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  114. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  115. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  116. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  117. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  118. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  119. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  120. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  121. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  122. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  123. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  124. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  125. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  126. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  127. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  128. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  129. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  130. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  131. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  132. package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
  133. package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
  134. package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
  135. package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
  137. package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
  138. package/dist/node_modules/@allyhub-next/project/package.json +1 -1
  139. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  140. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  141. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  142. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  143. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  144. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  145. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  146. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  147. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +89 -5
  148. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  149. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  150. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  151. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  152. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +23 -0
  153. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  154. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  155. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  156. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  157. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  158. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  159. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  160. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  161. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  162. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  163. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  164. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  165. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  166. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  167. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  168. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  169. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  170. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  171. package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
  172. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
  173. package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  174. package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
  175. package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
  176. package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  177. package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
  178. package/dist/node_modules/@allyhub-next/render/package.json +1 -1
  179. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
  180. package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  181. package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
  182. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  183. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  184. package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
  185. package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
  186. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  187. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
  188. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  189. package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  190. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
  191. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
  192. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
  193. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
  194. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
  195. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
  196. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
  197. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  198. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  199. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  200. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  201. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  202. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  203. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  204. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  205. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  206. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  207. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  208. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  209. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  210. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  211. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  212. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  213. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  214. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  215. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  216. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  217. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  218. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  219. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  220. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  221. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  222. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  223. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  224. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  225. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  226. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  227. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  228. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  229. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  230. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  231. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  232. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  233. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  234. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  235. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  236. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  237. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  238. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  239. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  240. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  241. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  242. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  243. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  244. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  245. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  246. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  247. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  248. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  249. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  250. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  251. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  252. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  253. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  254. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  255. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  256. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  257. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  258. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  259. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +12 -1
  261. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  262. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  263. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  264. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  265. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  266. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +6 -1
  267. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +44 -2
  269. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  270. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  271. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  272. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  273. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  274. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  275. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  276. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  277. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  278. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  279. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  280. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +121 -44
  281. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  282. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  283. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +50 -13
  284. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  285. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
  286. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  287. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  288. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  289. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  290. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  291. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +188 -5
  292. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  293. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  294. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  295. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  296. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  297. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -0
  298. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  300. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  301. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  302. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  303. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  304. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +38 -4
  305. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +27 -1
  306. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  307. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +26 -5
  308. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  309. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  310. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  311. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  312. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  313. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  314. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  315. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  316. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  317. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  318. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
  319. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
  320. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
  321. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
  322. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
  323. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
  324. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
  325. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
  326. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
  327. package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
  328. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
  329. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
  330. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
  331. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
  332. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
  333. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
  334. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
  335. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
  336. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
  337. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
  338. package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
  339. package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
  340. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
  341. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
  342. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
  343. package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
  344. package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
  345. package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
  346. package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
  347. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
  348. package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  349. package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
  350. package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
  351. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
  352. package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
  353. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
  354. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
  355. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
  356. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
  357. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
  358. package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
  359. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  360. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  361. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  362. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  363. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  364. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  365. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  366. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  367. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  368. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  369. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  370. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  371. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  372. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  373. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  374. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  375. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  376. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  377. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  378. package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
  379. package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
  380. package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
  381. package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
  382. package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
  383. package/dist/node_modules/@allyhub-next/website/package.json +13 -0
  384. package/dist/text/facts-text.js +4 -4
  385. package/dist/works.js +1 -1
  386. package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
  387. package/editor-web/assets/dist-0emakyZE.js +36 -0
  388. package/editor-web/assets/dist-B3UoDUa5.js +37 -0
  389. package/editor-web/assets/dist-B6KzR3pN.js +10 -0
  390. package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
  391. package/editor-web/assets/dist-CTQIm8Im.js +10 -0
  392. package/editor-web/assets/dist-CiHNHwyq.js +2 -0
  393. package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
  394. package/editor-web/assets/index-CFt3ovRY.js +69 -0
  395. package/editor-web/assets/index-ujKjdu_s.css +2 -0
  396. package/editor-web/assets/minus-BhoPZC5P.js +1 -0
  397. package/editor-web/assets/react-C_-rEEBU.js +101 -0
  398. package/editor-web/assets/tabs-Den4gHrU.js +105 -0
  399. package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
  400. package/editor-web/index.html +5 -5
  401. package/package.json +8 -14
  402. package/dist/astro.d.ts +0 -2
  403. package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
  404. package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
  405. package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
  406. package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
  407. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  408. package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
  409. package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
  410. package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
  411. package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
  412. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  413. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
  414. package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
  415. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
  416. package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
  417. package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
  418. package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
  419. package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
  420. package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
  421. package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
  422. package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
  423. package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
  424. package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
  425. package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
  426. package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
  427. package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
  428. package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
  429. package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
  430. package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
  431. package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
  432. package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
  433. package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
  434. package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
  435. package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
  436. package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
  437. package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
  438. package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
  439. package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
  440. package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
  441. package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
  442. package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
  443. package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
  444. package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
  445. package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
  446. package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
  447. package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
  448. package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
  449. package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
  450. package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
  451. package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
  452. package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
  453. package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
  454. package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
  455. package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
  456. package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
  457. package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
  458. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
  459. package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
  460. package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
  461. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
  462. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
  463. package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
  464. package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
  465. package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
  466. package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
  467. package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
  468. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
  469. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
  470. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
  471. package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
  472. package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
  473. package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
  474. package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
  475. package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
  476. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
  477. package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
  478. package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
  479. package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
  480. package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
  481. package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
  482. package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
  483. package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
  484. package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
  485. package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
  486. package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
  487. package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
  488. package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
  489. package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
  490. package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
  491. package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
  492. package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
  493. package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
  494. package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
  495. package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
  496. package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
  497. package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
  498. package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
  499. package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
  500. package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
  501. package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
  502. package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
  503. package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
  504. package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
  505. package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
  506. package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
  507. package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
  508. package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
  509. package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
  510. package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
  511. package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
  512. package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
  513. package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
  514. package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
  515. package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
  516. package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
  517. package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
  518. package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
  519. package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
  520. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
  521. package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
  522. package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
  523. package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
  524. package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
  525. package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -76
  526. package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
  527. package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
  528. package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
  529. package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
  530. package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
  531. package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
  532. package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -186
  533. package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
  534. package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
  535. package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
  536. package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
  537. package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
  538. package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
  539. package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
  540. package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
  541. package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
  542. package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
  543. package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
  544. package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
  545. package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
  546. package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
  547. package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
  548. package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
  549. package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
  550. package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
  551. package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
  552. package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
  553. package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
  554. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
  555. package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
  556. package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
  557. package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
  558. package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
  559. package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
  560. package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
  561. package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
  562. package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
  563. package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
  564. package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
  565. package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
  566. package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
  567. package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
  568. package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
  569. package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
  570. package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
  571. package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
  572. package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
  573. package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
  574. package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
  575. package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
  576. package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
  577. package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
  578. package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
  579. package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
  580. package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
  581. package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
  582. package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
  583. package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
  584. package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
  585. package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
  586. package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
  587. package/dist/node_modules/@allyhub-next/site/package.json +0 -25
  588. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
  589. package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
  590. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
  591. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
  592. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
  593. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -55
  594. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
  595. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -67
  596. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -21
  597. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
  598. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
  599. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
  600. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -26
  601. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -40
  602. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
  603. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
  604. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
  605. package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
  606. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
  607. package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
  608. package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
  609. package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
  610. package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
  611. package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
  612. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
  613. package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
  614. package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
  615. package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
  616. package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
  617. package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
  618. package/dist/site.d.ts +0 -2
  619. package/editor-web/assets/dist-Cg2PdedY.js +0 -6
  620. package/editor-web/assets/dist-CuW84oPe.js +0 -233
  621. package/editor-web/assets/dist-CxAS_vp7.js +0 -2
  622. package/editor-web/assets/dist-DCVaj9i1.js +0 -4
  623. package/editor-web/assets/dist-DGVUuVPB.js +0 -33
  624. package/editor-web/assets/dist-Yi3sy7Ea.js +0 -1
  625. package/editor-web/assets/index-B7S9RZhL.css +0 -2
  626. package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
  627. package/editor-web/assets/minus-BizJdinJ.js +0 -1
  628. package/editor-web/assets/react-D54s6gwK.js +0 -101
  629. package/editor-web/assets/textarea-CvxipnGW.js +0 -105
  630. package/editor-web/assets/trash-2-Bq1Dt8XG.js +0 -1
  631. package/editor-web/assets/undo-2-Djhvu4xt.js +0 -1
  632. /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
@@ -0,0 +1,10 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$n as t,$t as n,A as r,At as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,Ht as m,I as h,It as g,Kt as _,L as v,Lt as y,Mt as b,Nt as x,O as S,Ot as C,Pt as w,Qn as T,Qt as E,R as D,Rt as O,S as k,Sn as A,St as j,T as ee,Tt as te,Ut as M,Vt as N,Wt as ne,Yt as P,Zt as re,an as F,b as I,bt as L,d as ie,en as ae,fn as oe,h as se,i as ce,j as le,jt as ue,k as de,kt as fe,l as pe,n as me,nn as R,p as he,r as ge,rn as _e,tn as ve,vt as ye,w as be,wt as xe,x as Se,xt as Ce,yt as we,z as Te,zt as z}from"./react-C_-rEEBU.js";var Ee=6,De=.85,Oe=.25,ke=40,Ae=12,je=(e,t,n)=>Math.min(n,Math.max(t,e));function Me(e){let t=e.map(e=>e.x),n=e.map(e=>e.y),r=Math.min(...t),i=Math.min(...n);return{x:r,y:i,width:Math.max(...t)-r,height:Math.max(...n)-i}}function Ne(e){let[t]=e,n=e.at(-1);if(!t||!n)return!1;let{width:r,height:i}=Me(e),a=Math.hypot(r,i);return a>0&&Math.hypot(n.x-t.x,n.y-t.y)<=a*Oe}var Pe=(e,t)=>e.x<t.x+Math.max(t.width,1)&&e.x+Math.max(e.width,1)>t.x&&e.y<t.y+Math.max(t.height,1)&&e.y+Math.max(e.height,1)>t.y;function Fe(e,t){let n=e.width/2||1,r=e.height/2||1,i=e.x+n,a=e.y+r,o=(je(i,t.x,t.x+t.width)-i)/n,s=(je(a,t.y,t.y+t.height)-a)/r;return Math.hypot(o,s)<=De}function Ie(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=0,o=1;for(let[t,s]of[[-r,e.x-n.x],[r,n.x+n.width-e.x],[-i,e.y-n.y],[i,n.y+n.height-e.y]]){if(t===0){if(s<0)return!1}else t<0?a=Math.max(a,s/t):o=Math.min(o,s/t);if(a>o)return!1}return!0}function Le(e,t){switch(e.kind){case`box`:return Pe(e.rect,t);case`round`:return Fe(e.rect,t);case`arrow`:return Pe({x:e.to.x-Ee,y:e.to.y-Ee,width:12,height:12},t);case`line`:return Ne(e.points)?Fe(Me(e.points),t):e.points.some((n,r)=>Ie(e.points[r-1]??n,n,t))}}function Re(e,t){return t.flatMap(n=>t.map(t=>({x:e.x+e.width*t,y:e.y+e.height*n})))}function ze(e){let t=e.map((t,n)=>{let r=e[n-1]??t;return Math.hypot(t.x-r.x,t.y-r.y)}),n=t.reduce((e,t)=>e+t,0),r=je(Math.ceil(n/ke)+1,2,Ae);return Array.from({length:r},(i,a)=>{let o=n*a/(r-1);for(let[n,r]of e.entries()){let i=t[n]??0,a=e[n-1];if(a&&o<=i){let e=i===0?0:o/i;return{x:a.x+(r.x-a.x)*e,y:a.y+(r.y-a.y)*e}}o-=i}return e.at(-1)??{x:0,y:0}})}function Be(e){switch(e.kind){case`box`:return Re(e.rect,[.5,.2,.8]);case`round`:return Re(e.rect,[.5,.3,.7]);case`arrow`:return[e.to];case`line`:return Ne(e.points)?Re(Me(e.points),[.5,.3,.7]):ze(e.points)}}function Ve(e,t){switch(e.kind){case`box`:case`round`:{let n=t(e.rect),r=t({x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height});return{kind:e.kind,rect:{...n,width:r.x-n.x,height:r.y-n.y}}}case`arrow`:return{kind:`arrow`,from:t(e.from),to:t(e.to)};case`line`:return{kind:`line`,points:e.points.map(t)}}}var He=R(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ue=R(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),We=R(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Ge=R(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Ke=R(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),qe=R(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Je=R(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ye=e(T(),1),B=e(t(),1),V=_e(),Xe=Object.defineProperty,Ze=(e,t)=>Xe(e,`name`,{value:t,configurable:!0}),Qe=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),$e=B.forwardRef(Ze(function(e,t){return(0,V.jsx)(M.span,{...e,ref:t,style:{...Qe,...e.style}})},`VisuallyHidden`)),et=Object.defineProperty,H=(e,t)=>et(e,`name`,{value:t,configurable:!0}),tt=`Checkbox`,[nt,rt]=m(tt),[it,at]=nt(tt);function ot(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=O({prop:n,defaultProp:i??!1,onChange:c,caller:tt}),[m,h]=B.useState(null),[g,_]=B.useState(null),v=B.useRef(!1),[y,b]=B.useReducer(e=>e+1,0),x=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!U(i)&&i,isFormControl:x,bubbleInput:g,setBubbleInput:_};return(0,V.jsx)(it,{scope:t,...S,children:mt(d)?d(S):r})}H(ot,`CheckboxProvider`);var st=`CheckboxTrigger`,ct=B.forwardRef(H(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:o,value:s,disabled:c,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:p,onUserInteraction:m,isFormControl:h,bubbleInput:g}=at(st,e),v=_(i,d),y=B.useRef(l);return B.useEffect(()=>{let e=o?.form;if(e){let t=H(()=>f(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[o,f]),(0,V.jsx)(M.button,{type:`button`,role:`checkbox`,"aria-checked":U(l)?`mixed`:l,"aria-required":u,"data-state":ht(l),"data-disabled":c?``:void 0,disabled:c,value:s,...r,ref:v,onKeyDown:a(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:a(n,e=>{m(),f(e=>U(e)?!0:!e),g&&h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})},`CheckboxTrigger`)),lt=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,V.jsx)(ot,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ct,{...d,ref:t,__scopeCheckbox:n}),e&&(0,V.jsx)(pt,{__scopeCheckbox:n})]})})},`Checkbox`)),ut=`CheckboxIndicator`,dt=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=at(ut,n);return(0,V.jsx)(y,{present:r||U(a.checked)||a.checked===!0,children:(0,V.jsx)(M.span,{"data-state":ht(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),ft=`CheckboxBubbleInput`,pt=B.forwardRef(H(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:o,userInteractionCount:s,checked:c,defaultChecked:l,required:u,disabled:d,name:f,value:p,form:m,bubbleInput:h,setBubbleInput:g}=at(ft,e),v=_(r,g),y=ye(i),b=B.useRef(!1),x=B.useRef(c),S=B.useRef(s);B.useEffect(()=>{let e=h;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=s!==S.current;S.current=s;let i=x.current!==c;x.current=c;let a=!(r&&o.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:a});e.indeterminate=U(c),n.call(e,!U(c)&&c),e.dispatchEvent(t),b.current=!1}},[h,c,o,s]);let C=B.useRef(!U(c)&&c);return(0,V.jsx)(M.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:d,name:f,value:p,form:m,...n,tabIndex:-1,ref:v,onClick:a(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function mt(e){return typeof e==`function`}H(mt,`isFunction`);function U(e){return e===`indeterminate`}H(U,`isIndeterminate`);function ht(e){return U(e)?`indeterminate`:e?`checked`:`unchecked`}H(ht,`getState`);var gt=Object.defineProperty,W=(e,t)=>gt(e,`name`,{value:t,configurable:!0}),_t=`ContextMenu`,[vt,yt]=m(_t,[le]),G=le(),[bt,xt]=vt(_t),St=W(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=B.useRef(!1),[c,l]=O({prop:i,defaultProp:!1,onChange:r,caller:_t}),u=G(t);return(0,V.jsx)(bt,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,V.jsx)(k,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),Ct=`ContextMenuTrigger`,wt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,s=xt(Ct,n),c=G(n),[l,u]=B.useState({x:0,y:0}),d=B.useMemo(()=>({current:{getBoundingClientRect:W(()=>DOMRect.fromRect({width:0,height:0,...l}),`getBoundingClientRect`)}}),[l]),f=B.useRef(0),p=B.useCallback(()=>window.clearTimeout(f.current),[]),m=W(e=>{s.hasInteractedRef.current=!0,u({x:e.clientX,y:e.clientY}),s.onOpenChange(!0)},`handleOpen`);return B.useEffect(()=>p,[p]),B.useEffect(()=>void(r&&p()),[r,p]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(o,{...c,virtualRef:d}),(0,V.jsx)(M.span,{"data-state":s.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:a(e.onContextMenu,e=>{p(),m(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:a(e.onPointerDown,Pt(e=>{p(),s.open&&s.onOpenChange(!1),f.current=window.setTimeout(()=>m(e),700)})),onPointerMove:r?e.onPointerMove:a(e.onPointerMove,Pt(p)),onPointerCancel:r?e.onPointerCancel:a(e.onPointerCancel,Pt(p)),onPointerUp:r?e.onPointerUp:a(e.onPointerUp,Pt(p))})]})},`ContextMenuTrigger`)),Tt=W(e=>{let{__scopeContextMenu:t,...n}=e,r=G(t);return(0,V.jsx)(u,{...r,...n})},`ContextMenuPortal`),Et=`ContextMenuContent`,Dt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=xt(Et,n),a=G(n),o=B.useRef(!1);return(0,V.jsx)(be,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Ot=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(ee,{...i,...r,ref:t})},`ContextMenuItem`)),kt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(c,{...i,...r,ref:t})},`ContextMenuSeparator`)),At=`ContextMenuSub`,jt=W(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=G(t),[s,c]=O({prop:i,defaultProp:a??!1,onChange:r,caller:At});return(0,V.jsx)(S,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),Mt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...i}=e,a=G(n);return(0,V.jsx)(r,{...a,...i,ref:t})},`ContextMenuSubTrigger`)),Nt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(de,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function Pt(e){return t=>t.pointerType===`mouse`?void 0:e(t)}W(Pt,`whenTouchOrPen`);var Ft=Object.defineProperty,It=(e,t)=>Ft(e,`name`,{value:t,configurable:!0});function Lt(e){let t=B.useRef({value:e,previous:e});return B.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}It(Lt,`usePrevious`);var Rt=Object.defineProperty,zt=(e,t)=>Rt(e,`name`,{value:t,configurable:!0});function Bt(e,[t,n]){return Math.min(n,Math.max(t,e))}zt(Bt,`clamp`);var Vt=Object.defineProperty,K=(e,t)=>Vt(e,`name`,{value:t,configurable:!0}),Ht=`Popover`,[Ut,Wt]=m(Ht,[Te]),Gt=Te(),[Kt,q]=Ut(Ht),qt=K(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Gt(t),c=B.useRef(null),[l,u]=B.useState(!1),[d,p]=B.useState(0),[m,h]=B.useState(0),[_,v]=O({prop:r,defaultProp:i??!1,onChange:a,caller:Ht});return(0,V.jsx)(f,{...s,children:(0,V.jsx)(Kt,{scope:t,contentId:g(),titleId:g(),descriptionId:g(),titlePresent:d>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:h,triggerRef:c,open:_,onOpenChange:v,onOpenToggle:B.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Jt=`PopoverAnchor`,Yt=B.forwardRef(K(function(e,t){let{__scopePopover:n,...r}=e,i=q(Jt,n),a=Gt(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,V.jsx)(h,{...a,...r,ref:t})},`PopoverAnchor`)),Xt=`PopoverTrigger`,Zt=B.forwardRef(K(function(e,t){let{__scopePopover:n,...r}=e,i=q(Xt,n),o=Gt(n),s=_(t,i.triggerRef),c=(0,V.jsx)(M.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":un(i.open),...r,ref:s,onClick:a(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,V.jsx)(h,{asChild:!0,...o,children:c})},`PopoverTrigger`)),Qt=`PopoverPortal`,[$t,en]=Ut(Qt,{forceMount:void 0}),tn=K(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=q(Qt,t);return(0,V.jsx)($t,{scope:t,forceMount:n,children:(0,V.jsx)(y,{present:n||a.open,children:(0,V.jsx)(C,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),nn=`PopoverContent`,rn=B.forwardRef(K(function(e,t){let n=en(nn,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=q(nn,e.__scopePopover);return(0,V.jsx)(y,{present:r||a.open,children:a.modal?(0,V.jsx)(on,{...i,ref:t}):(0,V.jsx)(sn,{...i,ref:t})})},`PopoverContent`)),an=ne(`PopoverContent.RemoveScroll`),on=B.forwardRef(K(function(e,t){let n=q(nn,e.__scopePopover),r=B.useRef(null),i=_(t,r),o=B.useRef(!1),{nodes:s,registry:c}=b();return B.useEffect(()=>{let e=r.current;if(e)return te(e)},[]),(0,V.jsx)(d,{as:an,allowPinchZoom:!0,shards:B.useMemo(()=>[r,...s.map(e=>({current:e}))],[r,s]),children:(0,V.jsx)(cn,{...e,ref:i,branchNodes:s,branchRegistry:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:a(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),sn=B.forwardRef(K(function(e,t){let n=q(nn,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(cn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),cn=B.forwardRef(K(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,"aria-describedby":p,branchNodes:m,branchRegistry:h,...g}=e,v=q(nn,n),y=Gt(n),[b,S]=B.useState(null),C=_(t,S);return ue(b),l(),(0,V.jsx)(i,{registry:h,children:(0,V.jsx)(fe,{asChild:!0,loop:!0,trapped:r,branches:m,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,V.jsx)(x,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,V.jsx)(D,{"data-state":un(v.open),role:`dialog`,id:v.contentId,"aria-labelledby":v.titlePresent?v.titleId:void 0,"aria-describedby":v.descriptionPresent?dn(p,v.descriptionId):p,...y,...g,ref:C,style:{...g.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`)),ln=B.forwardRef(K(function(e,t){let{__scopePopover:n,...r}=e,i=Gt(n);return(0,V.jsx)(v,{...i,...r,ref:t})},`PopoverArrow`));function un(e){return e?`open`:`closed`}K(un,`getState`);function dn(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}K(dn,`concatAriaDescribedby`);var fn=Object.defineProperty,J=(e,t)=>fn(e,`name`,{value:t,configurable:!0}),pn=`Progress`,mn=100,[hn,gn]=m(pn),[_n,vn]=hn(pn),yn=B.forwardRef(J(function(e,t){let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Sn,...o}=e;(i||i===0)&&!Tn(i)&&console.error(Dn(`${i}`,`Progress`));let s=Tn(i)?i:mn;r!==null&&!En(r,s)&&console.error(On(`${r}`,`Progress`));let c=En(r,s)?r:null,l=wn(c)?a(c,s):void 0;return(0,V.jsx)(_n,{scope:n,value:c,max:s,children:(0,V.jsx)(M.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":wn(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":Cn(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})},`Progress`)),bn=`ProgressIndicator`,xn=B.forwardRef(J(function(e,t){let{__scopeProgress:n,...r}=e,i=vn(bn,n);return(0,V.jsx)(M.div,{"data-state":Cn(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},`ProgressIndicator`));function Sn(e,t){return`${Math.round(e/t*100)}%`}J(Sn,`defaultGetValueLabel`);function Cn(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}J(Cn,`getProgressState`);function wn(e){return typeof e==`number`}J(wn,`isNumber`);function Tn(e){return wn(e)&&!isNaN(e)&&e>0}J(Tn,`isValidMaxNumber`);function En(e,t){return wn(e)&&!isNaN(e)&&e<=t&&e>=0}J(En,`isValidValueNumber`);function Dn(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${mn}\`.`}J(Dn,`getInvalidMaxError`);function On(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or ${mn} if no \`max\` prop is set)
4
+ - \`null\` or \`undefined\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}J(On,`getInvalidValueError`);var kn=Object.defineProperty,Y=(e,t)=>kn(e,`name`,{value:t,configurable:!0}),An={ItemAligned:`item-aligned`,Popper:`popper`},jn={LTR:`ltr`,RTL:`rtl`},Mn=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Nn=[` `,`Enter`],Pn=`Select`,[Fn,In,Ln]=N(Pn),[X,Rn]=m(Pn,[Ln,Te]),zn=Te(),[Bn,Z]=X(Pn),[Vn,Hn]=X(Pn);function Un(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:m,required:h,form:_,internal_do_not_use_render:v}=e,y=zn(t),[b,x]=B.useState(null),[S,C]=B.useState(null),[w,T]=B.useState(!1),E=p(l),[D,k]=O({prop:r,defaultProp:i??!1,onChange:a,caller:Pn}),[A,j]=O({prop:o,defaultProp:s,onChange:c,caller:Pn}),ee=B.useRef(null),te=B.useRef(A);B.useEffect(()=>{let e=_?b?.ownerDocument.getElementById(_):b?.form;if(e instanceof HTMLFormElement){let t=Y(()=>j(te.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[_,b,j]);let M=!b||!!_||!!b.closest(`form`),[N,ne]=B.useState(new Set),P=g(),re=Array.from(N).map(e=>e.props.value).join(`;`),F=B.useCallback(e=>{ne(t=>new Set(t).add(e))},[]),I=B.useCallback(e=>{ne(t=>{let n=new Set(t);return n.delete(e),n})},[]),L={required:h,trigger:b,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:P,value:A,onValueChange:j,open:D,onOpenChange:k,dir:E,triggerPointerDownPosRef:ee,disabled:m,name:u,autoComplete:d,form:_,nativeOptions:N,nativeSelectKey:re,isFormControl:M};return(0,V.jsx)(f,{...y,children:(0,V.jsx)(Bn,{scope:t,...L,children:(0,V.jsx)(Fn.Provider,{scope:t,children:(0,V.jsx)(Vn,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:I,children:kr(v)?v(L):n})})})})}Y(Un,`SelectProvider`);var Wn=Y(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,V.jsx)(Un,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[n,e?(0,V.jsx)(Or,{__scopeSelect:t}):null]})})},`Select`),Gn=`SelectTrigger`,Kn=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,o=zn(n),s=Z(Gn,n),c=s.disabled||r,l=_(t,s.onTriggerChange),u=In(n),d=B.useRef(`touch`),[f,p,m]=jr(e=>{let t=u().filter(e=>!e.disabled),n=Mr(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),g=Y(e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,V.jsx)(h,{asChild:!0,...o,children:(0,V.jsx)(M.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":Ar(s.value)?``:void 0,...i,ref:l,onClick:a(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&g(e)}),onPointerDown:a(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:a(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&Mn.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),qn=`SelectValue`,Jn=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Z(qn,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=_(t,c.onValueNodeChange);z(()=>{l(u)},[l,u]);let f=Ar(c.value);return(0,V.jsx)(M.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,V.jsx)(B.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),Yn=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,V.jsx)(M.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Xn,Zn]=X(`SelectPortal`,{forceMount:void 0}),Qn=Y(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,V.jsx)(Xn,{scope:e.__scopeSelect,forceMount:n,children:(0,V.jsx)(C,{asChild:!0,...r})})},`SelectPortal`),Q=`SelectContent`,$n=B.forwardRef(Y(function(e,t){let n=Zn(Q,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Z(Q,e.__scopeSelect),[o,s]=B.useState();return z(()=>{s(new DocumentFragment)},[]),(0,V.jsx)(y,{present:r||a.open,children:({present:e})=>e?(0,V.jsx)(ir,{...i,ref:t}):(0,V.jsx)(er,{...i,fragment:o})})},`SelectContent`)),er=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Ye.createPortal((0,V.jsx)(tr,{scope:n,children:(0,V.jsx)(Fn.Slot,{scope:n,children:(0,V.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),$=10,[tr,nr]=X(Q),rr=ne(`SelectContent.RemoveScroll`),ir=B.forwardRef(Y(function(e,t){let{__scopeSelect:n}=e,{position:r=An.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:u,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:b,...S}=e,C=Z(Q,n),[w,T]=B.useState(null),[E,D]=B.useState(null),O=_(t,T),[k,A]=B.useState(null),[j,ee]=B.useState(null),M=In(n),[N,ne]=B.useState(!1),P=B.useRef(!1);B.useEffect(()=>{if(w)return te(w)},[w]),l();let re=B.useCallback(e=>{let[t,...n]=M().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&E&&(E.scrollTop=0),n===r&&E&&(E.scrollTop=E.scrollHeight),n?.focus(),document.activeElement!==i))return},[M,E]),F=B.useCallback(()=>re([k,w]),[re,k,w]);B.useEffect(()=>{N&&F()},[N,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=C;B.useEffect(()=>{if(w){let e={x:0,y:0},t=Y(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=Y(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(w)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[w,I,L]),B.useEffect(()=>{let e=Y(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ie,ae]=jr(e=>{let t=M().filter(e=>!e.disabled),n=Mr(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),oe=B.useCallback((e,t,n)=>{let r=!P.current&&!n;(C.value!==void 0&&C.value===t||r)&&(A(e),r&&(P.current=!0))},[C.value]),se=B.useCallback(()=>w?.focus(),[w]),ce=B.useCallback((e,t,n)=>{let r=!P.current&&!n;(C.value!==void 0&&C.value===t||r)&&ee(e)},[C.value]),le=r===An.Popper?or:ar,ue=le===or?{side:c,sideOffset:u,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:b}:{};return(0,V.jsx)(tr,{scope:n,content:w,viewport:E,onViewportChange:D,itemRefCallback:oe,selectedItem:k,onItemLeave:se,itemTextRefCallback:ce,focusSelectedItem:F,selectedItemText:j,position:r,isPositioned:N,searchRef:ie,children:(0,V.jsx)(d,{as:rr,allowPinchZoom:!0,children:(0,V.jsx)(fe,{asChild:!0,trapped:C.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:a(i,e=>{C.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,V.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,V.jsx)(le,{role:`listbox`,id:C.contentId,"data-state":C.open?`open`:`closed`,dir:C.dir,onContextMenu:e=>e.preventDefault(),...S,...ue,onPlaced:()=>ne(!0),ref:O,style:{display:`flex`,flexDirection:`column`,outline:`none`,...S.style},onKeyDown:a(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ae(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>re(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),ar=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Z(Q,n),o=nr(Q,n),[s,c]=B.useState(null),[l,u]=B.useState(null),d=_(t,u),f=In(n),p=B.useRef(!1),m=B.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=B.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==jn.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-$,d=Bt(a,[$,Math.max($,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-$,d=Bt(a,[$,Math.max($,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-$*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-$,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${$}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);z(()=>b(),[b]);let[x,S]=B.useState();z(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=B.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,V.jsx)(sr,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,V.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,V.jsx)(M.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),or=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=$,...a}=e,o=zn(n);return(0,V.jsx)(D,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[sr,cr]=X(Q,{}),lr=`SelectViewport`,ur=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,o=nr(lr,n),s=cr(lr,n),c=_(t,o.onViewportChange),l=B.useRef(0);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,V.jsx)(Fn.Slot,{scope:n,children:(0,V.jsx)(M.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:a(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-$*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})},`SelectViewport`)),[dr,fr]=X(`SelectGroup`),pr=`SelectItem`,[mr,hr]=X(pr),gr=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,c=Z(pr,n),l=nr(pr,n),u=c.value===r,[d,f]=B.useState(o??``),[p,m]=B.useState(!1),h=w(e=>l.itemRefCallback?.(e,r,i)),v=_(t,h),y=g(),b=B.useRef(`touch`),x=Y(()=>{c.onValueChange(r),c.onOpenChange(!1)},`handleSelect`);return(0,V.jsx)(mr,{scope:n,value:r,disabled:i,textId:y,isSelected:u,onItemTextChange:B.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,V.jsx)(Fn.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:(0,V.jsx)(M.div,{role:`option`,"aria-labelledby":y,"data-highlighted":p?``:void 0,"aria-selected":u&&p,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...s,ref:v,onFocus:a(s.onFocus,()=>m(!0)),onBlur:a(s.onBlur,()=>m(!1)),onClick:a(s.onClick,()=>{i||b.current!==`mouse`&&x()}),onPointerUp:a(s.onPointerUp,()=>{i||b.current===`mouse`&&x()}),onPointerDown:a(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:a(s.onPointerMove,e=>{b.current=e.pointerType,i?l.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:a(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:a(s.onKeyDown,e=>{i||e.target!==e.currentTarget||(l.searchRef?.current===``||e.key!==` `)&&(Nn.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),_r=`SelectItemText`,vr=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Z(_r,n),s=nr(_r,n),c=hr(_r,n),l=Hn(_r,n),[u,d]=B.useState(null),f=w(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=_(t,d,c.onItemTextChange,f),m=u?.textContent,h=B.useMemo(()=>(0,V.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return z(()=>(g(h),()=>v(h)),[g,v,h]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(M.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Ar(o.value)?Ye.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),yr=`SelectItemIndicator`,br=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,...r}=e;return hr(yr,n).isSelected?(0,V.jsx)(M.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),xr=`SelectScrollUpButton`,Sr=B.forwardRef(Y(function(e,t){let n=nr(xr,e.__scopeSelect),r=cr(xr,e.__scopeSelect),[i,a]=B.useState(!1),o=_(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Tr,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Cr=`SelectScrollDownButton`,wr=B.forwardRef(Y(function(e,t){let n=nr(Cr,e.__scopeSelect),r=cr(Cr,e.__scopeSelect),[i,a]=B.useState(!1),o=_(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Tr,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Tr=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,o=nr(`SelectScrollButton`,n),s=B.useRef(null),c=In(n),l=B.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return B.useEffect(()=>()=>l(),[l]),z(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,V.jsx)(M.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:a(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:a(i.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:a(i.onPointerLeave,()=>{l()})})},`SelectScrollButtonImpl`)),Er=B.forwardRef(Y(function(e,t){let{__scopeSelect:n,...r}=e;return(0,V.jsx)(M.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Dr=`SelectBubbleInput`,Or=B.forwardRef(Y(function({__scopeSelect:e,...t},n){let r=Z(Dr,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=B.useRef(null),m=_(n,p),h=i??``,g=Lt(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return B.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,V.jsxs)(M.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Qe,...t.style},ref:m,defaultValue:h,children:[Ar(i)&&!v?(0,V.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function kr(e){return typeof e==`function`}Y(kr,`isFunction`);function Ar(e){return e===``||e===void 0}Y(Ar,`shouldShowPlaceholder`);function jr(e){let t=w(e),n=B.useRef(``),r=B.useRef(0),i=B.useCallback(e=>{let i=n.current+e;t(i),Y((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=B.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return B.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Y(jr,`useTypeaheadSearch`);function Mr(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Nr(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Y(Mr,`findNextItem`);function Nr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Y(Nr,`wrapArray`);function Pr({...e}){return(0,V.jsx)(Wn,{"data-slot":`select`,...e})}function Fr({...e}){return(0,V.jsx)(Jn,{"data-slot":`select-value`,...e})}function Ir({className:e,size:t=`default`,children:n,...r}){return(0,V.jsxs)(Kn,{"data-slot":`select-trigger`,"data-size":t,className:P(`flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,V.jsx)(Yn,{asChild:!0,children:(0,V.jsx)(He,{className:`size-4 opacity-50`})})]})}function Lr({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,V.jsx)(Qn,{children:(0,V.jsxs)($n,{"data-slot":`select-content`,className:P(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,V.jsx)(Br,{}),(0,V.jsx)(ur,{className:P(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,V.jsx)(Vr,{})]})})}function Rr({className:e,children:t,...n}){return(0,V.jsxs)(gr,{"data-slot":`select-item`,className:P(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,V.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,V.jsx)(br,{children:(0,V.jsx)(ve,{className:`size-4`})})}),(0,V.jsx)(vr,{children:t})]})}function zr({className:e,...t}){return(0,V.jsx)(Er,{"data-slot":`select-separator`,className:P(`pointer-events-none -mx-1 my-1 h-px bg-border`,e),...t})}function Br({className:e,...t}){return(0,V.jsx)(Sr,{"data-slot":`select-scroll-up-button`,className:P(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(We,{className:`size-4`})})}function Vr({className:e,...t}){return(0,V.jsx)(wr,{"data-slot":`select-scroll-down-button`,className:P(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(He,{className:`size-4`})})}function Hr({className:e,icon:t=!1,...n}){return(0,V.jsx)(Se,{variant:`ghost`,size:t?`icon-sm`:`sm`,"data-bar":``,className:P(`font-normal text-lead hover:bg-stone-2 hover:text-ink aria-expanded:bg-stone-2 aria-expanded:text-ink aria-pressed:bg-here aria-pressed:text-ink aria-pressed:inset-ring aria-pressed:inset-ring-lead-soft`,t?`size-7 [&_svg:not([class*='size-'])]:size-4`:`h-7 gap-1.5 px-2 [&_svg:not([class*='size-'])]:size-3.5`,e),...n})}function Ur({className:e,...t}){return(0,V.jsx)(Ir,{size:`sm`,"data-bar":``,className:P(`gap-1.5 px-2 font-normal text-lead shadow-none data-[size=sm]:h-7 hover:text-ink data-[state=open]:text-ink [&_svg:not([class*='size-'])]:size-3.5`,e),...t})}var Wr=16,Gr=8;function Kr(){return(0,V.jsx)(ln,{asChild:!0,width:Wr,height:Gr,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 ${String(Wr)} ${String(Gr)}`,"aria-hidden":!0,className:`-mt-px block overflow-visible`,children:[(0,V.jsx)(`path`,{d:`M0 -1 L${String(Wr/2)} 7 L${String(Wr)} -1 Z`,className:`fill-popover`}),(0,V.jsx)(`path`,{d:`M0 0 L${String(Wr/2)} 7 L${String(Wr)} 0`,className:`fill-none stroke-border`})]})})}function qr({className:e,...t}){return(0,V.jsx)(lt,{"data-slot":`checkbox`,className:P(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary`,e),...t,children:(0,V.jsx)(dt,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,V.jsx)(ve,{className:`size-3.5`})})})}function Jr({...e}){return(0,V.jsx)(qt,{"data-slot":`popover`,...e})}function Yr({...e}){return(0,V.jsx)(Zt,{"data-slot":`popover-trigger`,...e})}function Xr({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,V.jsx)(tn,{children:(0,V.jsx)(rn,{"data-slot":`popover-content`,align:t,sideOffset:n,className:P(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function Zr({...e}){return(0,V.jsx)(Yt,{"data-slot":`popover-anchor`,...e})}function Qr({className:e,value:t,...n}){return(0,V.jsx)(yn,{"data-slot":`progress`,className:P(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...n,children:(0,V.jsx)(xn,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})})}function $r({...e}){return(0,V.jsx)(we,{"data-slot":`sheet`,...e})}function ei({...e}){return(0,V.jsx)(s,{"data-slot":`sheet-portal`,...e})}function ti({className:e,...t}){return(0,V.jsx)(j,{"data-slot":`sheet-overlay`,className:P(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function ni({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,V.jsxs)(ei,{children:[(0,V.jsx)(ti,{}),(0,V.jsxs)(Ce,{"data-slot":`sheet-content`,className:P(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,V.jsxs)(L,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,V.jsx)(E,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ri({className:e,...t}){return(0,V.jsx)(xe,{"data-slot":`sheet-title`,className:P(`font-semibold text-foreground`,e),...t})}var ii=5;function ai(e,t){return e.filter(e=>e.item===t&&e.state!==`cancelled`).reverse().slice(0,ii)}var oi=e=>e.state===`queued`||e.state===`running`;function si(e,t,n,r={}){let i=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));return oi(e)&&i(e.versions,t)&&i(e.types,n)&&ci(e.options??{},r)}var ci=(e,t)=>Object.keys({...e,...t}).every(n=>e[n]===t[n]);function li(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=n[e.name];return!e.only.includes(t)||r===void 0?[]:e.values?e.values.includes(String(r))?[[e.name,r]]:[]:r===!0?[[e.name,!0]]:[]}))}function ui(e,t){return Math.max(0,e.filter(oi).map(e=>e.id).indexOf(t))}function di(e,t,n,r){if(n.length!==0)return e===`all`?[...n]:e===`some`?n.filter(e=>r.includes(e)):t===void 0?[...n]:[t]}function fi(e,t){let n=e.findLast(oi);if(n)return n.state===`running`?{at:`running`,percent:Math.round(n.progress*100)}:{at:`queued`};let r=e[0];return r===void 0||!t.has(r.id)?{at:`idle`}:r.state===`failed`?{at:`failed`}:{at:`done`}}var pi=e=>e.slice(e.lastIndexOf(`/`)+1),mi=F({en:{saved:{saved:`Saved`,saving:`Saving…`,unsaved:`Not saved yet`,error:`Not saved`},markUp:`Circle to edit`,markUpHint:`Circle what is on show, and AI changes it`,moreTools:`More`,export:`Export`,exported:`Exported`,exportFailed:`Export failed`,format:`Format`,versions:`Languages`,include:`Include`,onShow:`On show`,all:e=>`All ${String(e)} languages`,choose:`Choose…`,chosen:e=>`${String(e)} chosen`,back:`Back`,checking:`Checking…`,blocked:e=>e===1?`1 must-fix problem stops the export`:`${String(e)} must-fix problems stop the export`,start:`Export`,queued:`Waiting`,queuedAhead:e=>`Waiting, ${String(e)} ahead`,running:e=>`Exporting ${String(e)}%`,cancel:`Cancel`,retry:`Try again`,failedHelp:e=>`Try again, or ask ${e} what went wrong.`,partial:`Some files could not be made.`,startFailed:`The export did not start`,nVersions:e=>`${String(e)} versions`,show:`Show in folder`,download:`Download`,option:{pptx:{label:`Slides`,values:{native:`Editable`,picture:`Pictures`}},steps:{label:`Each animation step`}},type:{mov:`MOV (ProRes)`,srt:`Captions`,cover:`Cover image`,pngPages:`PNG pages`,pptx:`PowerPoint`}},"zh-cn":{saved:{saved:`已保存`,saving:`正在保存…`,unsaved:`尚未保存`,error:`没能保存`},markUp:`圈一圈,AI 改`,markUpHint:`在画面上圈出来,AI 帮你改`,moreTools:`更多`,export:`导出`,exported:`已导出`,exportFailed:`导出失败`,format:`格式`,versions:`语言`,include:`附带`,onShow:`当前`,all:e=>`全部 ${String(e)} 种语言`,choose:`选择…`,chosen:e=>`已选 ${String(e)} 个`,back:`返回`,checking:`检查中…`,blocked:e=>`有 ${String(e)} 个必修问题,暂时不能导出`,start:`导出`,queued:`排队中`,queuedAhead:e=>`排队中,前面还有 ${String(e)} 个`,running:e=>`导出中 ${String(e)}%`,cancel:`取消`,retry:`重试`,failedHelp:e=>`请重试,或让 ${e} 看看哪里出了问题。`,partial:`部分文件没能生成。`,startFailed:`导出没有开始`,nVersions:e=>`${String(e)} 个版本`,show:`在文件夹中显示`,download:`下载`,option:{pptx:{label:`幻灯片`,values:{native:`可编辑`,picture:`图片`}},steps:{label:`每个动画步骤`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面图`,pngPages:`PNG 页面`,pptx:`PowerPoint`}},"zh-tw":{saved:{saved:`已儲存`,saving:`正在儲存…`,unsaved:`尚未儲存`,error:`沒能儲存`},markUp:`圈一圈,AI 改`,markUpHint:`在畫面上圈出來,AI 幫你改`,moreTools:`更多`,export:`匯出`,exported:`已匯出`,exportFailed:`匯出失敗`,format:`格式`,versions:`語言`,include:`附帶`,onShow:`目前`,all:e=>`全部 ${String(e)} 種語言`,choose:`選擇…`,chosen:e=>`已選 ${String(e)} 個`,back:`返回`,checking:`檢查中…`,blocked:e=>`有 ${String(e)} 個必須修正的問題,暫時無法匯出`,start:`匯出`,queued:`排隊中`,queuedAhead:e=>`排隊中,前面還有 ${String(e)} 個`,running:e=>`匯出中 ${String(e)}%`,cancel:`取消`,retry:`重試`,failedHelp:e=>`請重試,或讓 ${e} 看看哪裡出了問題。`,partial:`部分檔案沒能產生。`,startFailed:`匯出沒有開始`,nVersions:e=>`${String(e)} 個版本`,show:`在資料夾中顯示`,download:`下載`,option:{pptx:{label:`投影片`,values:{native:`可編輯`,picture:`圖片`}},steps:{label:`每個動畫步驟`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面圖`,pngPages:`PNG 頁面`,pptx:`PowerPoint`}},ja:{saved:{saved:`保存済み`,saving:`保存中…`,unsaved:`未保存`,error:`保存できませんでした`},markUp:`囲んで AI が直す`,markUpHint:`画面で囲むと、AI が直します`,moreTools:`その他`,export:`書き出し`,exported:`書き出し済み`,exportFailed:`書き出しに失敗`,format:`形式`,versions:`言語`,include:`追加`,onShow:`表示中`,all:e=>`全 ${String(e)} 言語`,choose:`選択…`,chosen:e=>`${String(e)} 件選択`,back:`戻る`,checking:`チェック中…`,blocked:e=>`要修正の問題が ${String(e)} 件あるため書き出せません`,start:`書き出す`,queued:`待機中`,queuedAhead:e=>`待機中、前に ${String(e)} 件`,running:e=>`書き出し中 ${String(e)}%`,cancel:`キャンセル`,retry:`再試行`,failedHelp:e=>`もう一度試すか、${e} に原因を確認してください。`,partial:`一部のファイルを作成できませんでした。`,startFailed:`書き出しを開始できませんでした`,nVersions:e=>`${String(e)} 個のバージョン`,show:`フォルダに表示`,download:`ダウンロード`,option:{pptx:{label:`スライド`,values:{native:`編集可能`,picture:`画像`}},steps:{label:`アニメーションの各ステップ`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`カバー画像`,pngPages:`PNG ページ`,pptx:`PowerPoint`}},ko:{saved:{saved:`저장됨`,saving:`저장 중…`,unsaved:`아직 저장되지 않음`,error:`저장되지 않음`},markUp:`동그라미 치면 AI가 수정`,markUpHint:`화면에 동그라미를 치면 AI가 고쳐 줍니다`,moreTools:`더보기`,export:`내보내기`,exported:`내보냄`,exportFailed:`내보내기 실패`,format:`형식`,versions:`언어`,include:`포함`,onShow:`현재`,all:e=>`${String(e)}개 언어 모두`,choose:`선택…`,chosen:e=>`${String(e)}개 선택`,back:`뒤로`,checking:`확인 중…`,blocked:e=>`수정이 필요한 문제 ${String(e)}개 때문에 내보낼 수 없습니다`,start:`내보내기`,queued:`대기 중`,queuedAhead:e=>`대기 중, 앞에 ${String(e)}개`,running:e=>`내보내는 중 ${String(e)}%`,cancel:`취소`,retry:`다시 시도`,failedHelp:e=>`다시 시도하거나 ${e}에게 원인을 물어보세요.`,partial:`일부 파일을 만들지 못했습니다.`,startFailed:`내보내기를 시작하지 못했습니다`,nVersions:e=>`버전 ${String(e)}개`,show:`폴더에서 보기`,download:`다운로드`,option:{pptx:{label:`슬라이드`,values:{native:`편집 가능`,picture:`이미지`}},steps:{label:`애니메이션 단계별로`}},type:{mov:`MOV (ProRes)`,srt:`자막`,cover:`표지 이미지`,pngPages:`PNG 페이지`,pptx:`PowerPoint`}},es:{saved:{saved:`Guardado`,saving:`Guardando…`,unsaved:`Aún sin guardar`,error:`No guardado`},markUp:`Rodea para editar`,markUpHint:`Rodea lo que ves y la IA lo cambia`,moreTools:`Más`,export:`Exportar`,exported:`Exportado`,exportFailed:`Error al exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Actual`,all:e=>`Los ${String(e)} idiomas`,choose:`Elegir…`,chosen:e=>`${String(e)} elegidos`,back:`Atrás`,checking:`Comprobando…`,blocked:e=>`${String(e)} problemas obligatorios detienen la exportación`,start:`Exportar`,queued:`En espera`,queuedAhead:e=>`En espera, ${String(e)} delante`,running:e=>`Exportando ${String(e)} %`,cancel:`Cancelar`,retry:`Reintentar`,failedHelp:e=>`Reinténtalo o pregunta a ${e} qué ha fallado.`,partial:`No se pudieron crear algunos archivos.`,startFailed:`La exportación no empezó`,nVersions:e=>`${String(e)} versiones`,show:`Mostrar en la carpeta`,download:`Descargar`,option:{pptx:{label:`Diapositivas`,values:{native:`Editables`,picture:`Imágenes`}},steps:{label:`Cada paso de animación`}},type:{mov:`MOV (ProRes)`,srt:`Subtítulos`,cover:`Imagen de portada`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},fr:{saved:{saved:`Enregistré`,saving:`Enregistrement…`,unsaved:`Pas encore enregistré`,error:`Non enregistré`},markUp:`Entourer pour modifier`,markUpHint:`Entourez ce qui est affiché, et l'IA le modifie`,moreTools:`Plus`,export:`Exporter`,exported:`Exporté`,exportFailed:`Échec de l’export`,format:`Format`,versions:`Langues`,include:`Inclure`,onShow:`Affichée`,all:e=>`Les ${String(e)} langues`,choose:`Choisir…`,chosen:e=>`${String(e)} choisies`,back:`Retour`,checking:`Vérification…`,blocked:e=>`${String(e)} problèmes à corriger bloquent l’export`,start:`Exporter`,queued:`En attente`,queuedAhead:e=>`En attente, ${String(e)} avant celui-ci`,running:e=>`Export ${String(e)}\u00a0%`,cancel:`Annuler`,retry:`Réessayer`,failedHelp:e=>`Réessayez ou demandez à ${e} ce qui n’a pas marché.`,partial:`Certains fichiers n’ont pas pu être créés.`,startFailed:`L’export n’a pas démarré`,nVersions:e=>`${String(e)} versions`,show:`Afficher dans le dossier`,download:`Télécharger`,option:{pptx:{label:`Diapositives`,values:{native:`Modifiables`,picture:`Images`}},steps:{label:`Chaque étape d'animation`}},type:{mov:`MOV (ProRes)`,srt:`Sous-titres`,cover:`Image de couverture`,pngPages:`Pages PNG`,pptx:`PowerPoint`}},de:{saved:{saved:`Gespeichert`,saving:`Wird gespeichert…`,unsaved:`Noch nicht gespeichert`,error:`Nicht gespeichert`},markUp:`Einkreisen und ändern`,markUpHint:`Kreisen Sie ein, was zu sehen ist, und die KI ändert es`,moreTools:`Mehr`,export:`Exportieren`,exported:`Exportiert`,exportFailed:`Export fehlgeschlagen`,format:`Format`,versions:`Sprachen`,include:`Dazu`,onShow:`Aktuell`,all:e=>`Alle ${String(e)} Sprachen`,choose:`Auswählen…`,chosen:e=>`${String(e)} ausgewählt`,back:`Zurück`,checking:`Wird geprüft…`,blocked:e=>`${String(e)} Probleme verhindern den Export`,start:`Exportieren`,queued:`Wartet`,queuedAhead:e=>`Wartet, ${String(e)} davor`,running:e=>`Export läuft: ${String(e)} %`,cancel:`Abbrechen`,retry:`Erneut versuchen`,failedHelp:e=>`Versuche es erneut oder frage ${e}, was schiefgelaufen ist.`,partial:`Einige Dateien konnten nicht erstellt werden.`,startFailed:`Der Export ist nicht gestartet`,nVersions:e=>`${String(e)} Versionen`,show:`Im Ordner zeigen`,download:`Herunterladen`,option:{pptx:{label:`Folien`,values:{native:`Bearbeitbar`,picture:`Bilder`}},steps:{label:`Jeden Animationsschritt`}},type:{mov:`MOV (ProRes)`,srt:`Untertitel`,cover:`Titelbild`,pngPages:`PNG-Seiten`,pptx:`PowerPoint`}},it:{saved:{saved:`Salvato`,saving:`Salvataggio…`,unsaved:`Non ancora salvato`,error:`Non salvato`},markUp:`Cerchia e modifica`,markUpHint:`Cerchia ciò che vedi e l'IA lo modifica`,moreTools:`Altro`,export:`Esporta`,exported:`Esportato`,exportFailed:`Esportazione non riuscita`,format:`Formato`,versions:`Lingue`,include:`Includi`,onShow:`Attuale`,all:e=>`Tutte le ${String(e)} lingue`,choose:`Scegli…`,chosen:e=>`${String(e)} scelte`,back:`Indietro`,checking:`Controllo…`,blocked:e=>`${String(e)} problemi da correggere bloccano l’esportazione`,start:`Esporta`,queued:`In attesa`,queuedAhead:e=>`In attesa, ${String(e)} prima`,running:e=>`Esportazione ${String(e)}%`,cancel:`Annulla`,retry:`Riprova`,failedHelp:e=>`Riprova o chiedi a ${e} cosa è andato storto.`,partial:`Non è stato possibile creare alcuni file.`,startFailed:`L'esportazione non è partita`,nVersions:e=>`${String(e)} versioni`,show:`Mostra nella cartella`,download:`Scarica`,option:{pptx:{label:`Diapositive`,values:{native:`Modificabili`,picture:`Immagini`}},steps:{label:`Ogni passaggio dell'animazione`}},type:{mov:`MOV (ProRes)`,srt:`Sottotitoli`,cover:`Immagine di copertina`,pngPages:`Pagine PNG`,pptx:`PowerPoint`}},pt:{saved:{saved:`Salvo`,saving:`Salvando…`,unsaved:`Ainda não salvo`,error:`Não salvo`},markUp:`Circule para editar`,markUpHint:`Circule o que vê e a IA altera`,moreTools:`Mais`,export:`Exportar`,exported:`Exportado`,exportFailed:`Falha ao exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Atual`,all:e=>`Todos os ${String(e)} idiomas`,choose:`Escolher…`,chosen:e=>`${String(e)} escolhidos`,back:`Voltar`,checking:`Verificando…`,blocked:e=>`${String(e)} problemas obrigatórios impedem a exportação`,start:`Exportar`,queued:`Aguardando`,queuedAhead:e=>`Aguardando, ${String(e)} na frente`,running:e=>`Exportando ${String(e)}%`,cancel:`Cancelar`,retry:`Tentar novamente`,failedHelp:e=>`Tente novamente ou pergunte a ${e} o que deu errado.`,partial:`Não foi possível criar alguns arquivos.`,startFailed:`A exportação não começou`,nVersions:e=>`${String(e)} versões`,show:`Mostrar na pasta`,download:`Baixar`,option:{pptx:{label:`Slides`,values:{native:`Editáveis`,picture:`Imagens`}},steps:{label:`Cada etapa da animação`}},type:{mov:`MOV (ProRes)`,srt:`Legendas`,cover:`Imagem de capa`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},ru:{saved:{saved:`Сохранено`,saving:`Сохранение…`,unsaved:`Ещё не сохранено`,error:`Не сохранено`},markUp:`Обвести и изменить`,markUpHint:`Обведите на экране, что изменить, и ИИ это сделает`,moreTools:`Ещё`,export:`Экспорт`,exported:`Экспортировано`,exportFailed:`Ошибка экспорта`,format:`Формат`,versions:`Языки`,include:`Добавить`,onShow:`Текущий`,all:e=>`Все языки: ${String(e)}`,choose:`Выбрать…`,chosen:e=>`Выбрано: ${String(e)}`,back:`Назад`,checking:`Проверка…`,blocked:e=>`Экспорт остановлен, обязательных проблем: ${String(e)}`,start:`Экспортировать`,queued:`Ожидание`,queuedAhead:e=>`Ожидание, впереди: ${String(e)}`,running:e=>`Экспорт ${String(e)}%`,cancel:`Отменить`,retry:`Повторить`,failedHelp:e=>`Повторите попытку или спросите ${e}, что пошло не так.`,partial:`Некоторые файлы создать не удалось.`,startFailed:`Экспорт не начался`,nVersions:e=>`Версий: ${String(e)}`,show:`Показать в папке`,download:`Скачать`,option:{pptx:{label:`Слайды`,values:{native:`Редактируемые`,picture:`Картинки`}},steps:{label:`Каждый шаг анимации`}},type:{mov:`MOV (ProRes)`,srt:`Субтитры`,cover:`Обложка`,pngPages:`Страницы PNG`,pptx:`PowerPoint`}},tr:{saved:{saved:`Kaydedildi`,saving:`Kaydediliyor…`,unsaved:`Henüz kaydedilmedi`,error:`Kaydedilmedi`},markUp:`Daire çiz, düzenle`,markUpHint:`Ekranda daire içine alın, yapay zekâ değiştirsin`,moreTools:`Diğer`,export:`Dışa aktar`,exported:`Dışa aktarıldı`,exportFailed:`Dışa aktarılamadı`,format:`Biçim`,versions:`Diller`,include:`Ekle`,onShow:`Geçerli`,all:e=>`${String(e)} dilin tümü`,choose:`Seç…`,chosen:e=>`${String(e)} seçildi`,back:`Geri`,checking:`Denetleniyor…`,blocked:e=>`Düzeltilmesi gereken ${String(e)} sorun dışa aktarmayı durduruyor`,start:`Dışa aktar`,queued:`Bekliyor`,queuedAhead:e=>`Bekliyor, önünde ${String(e)} iş var`,running:e=>`Dışa aktarılıyor %${String(e)}`,cancel:`İptal`,retry:`Yeniden dene`,failedHelp:e=>`Yeniden deneyin ya da sorunu ${e} ile inceleyin.`,partial:`Bazı dosyalar oluşturulamadı.`,startFailed:`Dışa aktarma başlamadı`,nVersions:e=>`${String(e)} sürüm`,show:`Klasörde göster`,download:`İndir`,option:{pptx:{label:`Slaytlar`,values:{native:`Düzenlenebilir`,picture:`Resimler`}},steps:{label:`Her animasyon adımı`}},type:{mov:`MOV (ProRes)`,srt:`Altyazı`,cover:`Kapak görseli`,pngPages:`PNG sayfaları`,pptx:`PowerPoint`}},vi:{saved:{saved:`Đã lưu`,saving:`Đang lưu…`,unsaved:`Chưa lưu`,error:`Không lưu được`},markUp:`Khoanh tròn để sửa`,markUpHint:`Khoanh tròn trên màn hình và AI sẽ sửa`,moreTools:`Thêm`,export:`Xuất`,exported:`Đã xuất`,exportFailed:`Xuất thất bại`,format:`Định dạng`,versions:`Ngôn ngữ`,include:`Kèm theo`,onShow:`Hiện tại`,all:e=>`Cả ${String(e)} ngôn ngữ`,choose:`Chọn…`,chosen:e=>`Đã chọn ${String(e)}`,back:`Quay lại`,checking:`Đang kiểm tra…`,blocked:e=>`${String(e)} vấn đề cần sửa đang chặn việc xuất`,start:`Xuất`,queued:`Đang chờ`,queuedAhead:e=>`Đang chờ, còn ${String(e)} việc phía trước`,running:e=>`Đang xuất ${String(e)}%`,cancel:`Hủy`,retry:`Thử lại`,failedHelp:e=>`Hãy thử lại hoặc hỏi ${e} xem có vấn đề gì.`,partial:`Không tạo được một số tệp.`,startFailed:`Không bắt đầu xuất được`,nVersions:e=>`${String(e)} phiên bản`,show:`Hiện trong thư mục`,download:`Tải xuống`,option:{pptx:{label:`Trang chiếu`,values:{native:`Có thể chỉnh sửa`,picture:`Ảnh`}},steps:{label:`Từng bước hoạt ảnh`}},type:{mov:`MOV (ProRes)`,srt:`Phụ đề`,cover:`Ảnh bìa`,pngPages:`Các trang PNG`,pptx:`PowerPoint`}},th:{saved:{saved:`บันทึกแล้ว`,saving:`กำลังบันทึก…`,unsaved:`ยังไม่ได้บันทึก`,error:`บันทึกไม่ได้`},markUp:`วงเพื่อแก้ไข`,markUpHint:`วงบนหน้าจอ แล้ว AI จะแก้ให้`,moreTools:`เพิ่มเติม`,export:`ส่งออก`,exported:`ส่งออกแล้ว`,exportFailed:`ส่งออกไม่สำเร็จ`,format:`รูปแบบ`,versions:`ภาษา`,include:`รวมด้วย`,onShow:`ปัจจุบัน`,all:e=>`ทั้ง ${String(e)} ภาษา`,choose:`เลือก…`,chosen:e=>`เลือกแล้ว ${String(e)}`,back:`กลับ`,checking:`กำลังตรวจสอบ…`,blocked:e=>`มีปัญหาที่ต้องแก้ ${String(e)} รายการ จึงส่งออกไม่ได้`,start:`ส่งออก`,queued:`กำลังรอ`,queuedAhead:e=>`กำลังรอ มีอีก ${String(e)} งานก่อนหน้า`,running:e=>`กำลังส่งออก ${String(e)}%`,cancel:`ยกเลิก`,retry:`ลองอีกครั้ง`,failedHelp:e=>`ลองอีกครั้ง หรือถาม ${e} ว่าเกิดอะไรขึ้น`,partial:`สร้างบางไฟล์ไม่ได้`,startFailed:`เริ่มส่งออกไม่ได้`,nVersions:e=>`${String(e)} เวอร์ชัน`,show:`แสดงในโฟลเดอร์`,download:`ดาวน์โหลด`,option:{pptx:{label:`สไลด์`,values:{native:`แก้ไขได้`,picture:`รูปภาพ`}},steps:{label:`แต่ละขั้นของภาพเคลื่อนไหว`}},type:{mov:`MOV (ProRes)`,srt:`คำบรรยาย`,cover:`ภาพหน้าปก`,pngPages:`หน้า PNG`,pptx:`PowerPoint`}},hi:{saved:{saved:`सहेजा गया`,saving:`सहेजा जा रहा है…`,unsaved:`अभी सहेजा नहीं गया`,error:`सहेजा नहीं गया`},markUp:`सर्कल करके बदलें`,markUpHint:`स्क्रीन पर सर्कल करें, AI बदल देगा`,moreTools:`और`,export:`एक्सपोर्ट`,exported:`एक्सपोर्ट हो गया`,exportFailed:`एक्सपोर्ट विफल`,format:`फ़ॉर्मैट`,versions:`भाषाएँ`,include:`साथ में`,onShow:`मौजूदा`,all:e=>`सभी ${String(e)} भाषाएँ`,choose:`चुनें…`,chosen:e=>`${String(e)} चुने गए`,back:`वापस`,checking:`जाँच हो रही है…`,blocked:e=>`${String(e)} ज़रूरी समस्याएँ एक्सपोर्ट रोक रही हैं`,start:`एक्सपोर्ट करें`,queued:`प्रतीक्षा में`,queuedAhead:e=>`प्रतीक्षा में, आगे ${String(e)}`,running:e=>`एक्सपोर्ट हो रहा है ${String(e)}%`,cancel:`रद्द करें`,retry:`फिर कोशिश करें`,failedHelp:e=>`फिर कोशिश करें या ${e} से पूछें कि क्या गड़बड़ हुई।`,partial:`कुछ फ़ाइलें नहीं बन सकीं।`,startFailed:`एक्सपोर्ट शुरू नहीं हुआ`,nVersions:e=>`${String(e)} वर्शन`,show:`फ़ोल्डर में दिखाएँ`,download:`डाउनलोड करें`,option:{pptx:{label:`स्लाइड`,values:{native:`संपादन योग्य`,picture:`तस्वीरें`}},steps:{label:`हर एनिमेशन चरण`}},type:{mov:`MOV (ProRes)`,srt:`कैप्शन`,cover:`कवर इमेज`,pngPages:`PNG पेज`,pptx:`PowerPoint`}}}),hi={mp4:`MP4`,gif:`GIF`,pdf:`PDF`,docx:`Word`,md:`Markdown`,xlsx:`Excel`,csv:`CSV`,json:`JSON`,glb:`GLB`},gi=(e,t)=>hi[t]??(t===`png`?e.type.pngPages:t in e.type?e.type[t]:t);function _i(){let[e,t]=(0,B.useState)(()=>window.matchMedia(`(max-width: 479px)`).matches);return(0,B.useEffect)(()=>{let e=window.matchMedia(`(max-width: 479px)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}},[]),e}function vi(e){let t=me(),[n,r]=(0,B.useState)([]),[i,a]=(0,B.useState)(new Set),[o,s]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let e=!0;return oe(t,`export/list`,{}).then(t=>{e&&(r(t.jobs),s(t.reveal))},()=>void 0),()=>{e=!1}},[t]),ce(`export/changed`,({job:t})=>{r(e=>{let n=e.findIndex(e=>e.id===t.id);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}),!oi(t)&&!e&&a(e=>new Set(e).add(t.id))});let[c,l]=(0,B.useState)(e);return c!==e&&(l(e),e&&a(new Set)),{all:n,fresh:i,reveals:o}}function yi(e){let t=me(),n=A[e],r=`item-bar.export.${e}`,[i,a]=(0,B.useState)({type:n?.types[0]??``,extras:[],options:{}});return(0,B.useEffect)(()=>{let e=!0;return t[`storage/get`]({key:r}).then(({value:t})=>{let r=t;if(!e||!n||!r)return;let i=n.types.find(e=>e===r.type);i!==void 0&&a({type:i,extras:n.extras.filter(e=>r.extras?.includes(e)),options:r.options??{}})},()=>void 0),()=>{e=!1}},[t,r,n]),[i,e=>{a(e),t[`storage/set`]({key:r,value:e}).catch(()=>void 0)}]}function bi({percent:e}){return(0,V.jsx)(`span`,{"aria-hidden":!0,className:`relative size-3.5 flex-none rounded-full`,style:{background:`conic-gradient(currentColor ${String(e)}%, var(--allyhub-rule-strong) 0)`},children:(0,V.jsx)(`span`,{className:`bg-background absolute inset-[3px] rounded-full`})})}async function xi(e,t){let{url:n}=await e[`files/url`]({path:t}),r=document.createElement(`a`);r.href=n,r.download=pi(t),r.click()}async function Si(e,t,n){n&&await oe(e,`export/reveal`,{path:t}).then(()=>!0,()=>!1)||await xi(e,t)}function Ci({job:e,versions:t,ahead:r,words:i,reveals:a}){let o=me(),s=ge()?.agent?.name??`AllyHub`,c=Math.round(e.progress*100),l=a?qe:Ge,u=a?i.show:i.download,d=e.versions.length===0?void 0:e.versions.length>2?i.nVersions(e.versions.length):e.versions.map(e=>t.find(t=>t.key===e)?.label??e).join(`, `),f=[e.types.map(e=>gi(i,e)).join(`, `),...t.length>1&&d!==void 0?[d]:[]].join(` · `);return(0,V.jsxs)(`div`,{className:`border-t py-2 pr-2 pl-4`,"data-testid":`export-job`,"data-state":e.state,children:[oi(e)&&(0,V.jsxs)(`div`,{className:`pr-2`,children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,children:f}),(0,V.jsx)(`span`,{className:`text-lead text-xs tabular-nums`,children:e.state===`running`?`${String(c)}%`:r>0?i.queuedAhead(r):i.queued}),(0,V.jsx)(Hr,{icon:!0,"aria-label":i.cancel,title:i.cancel,"data-testid":`export-cancel`,onClick:()=>{oe(o,`export/cancel`,{job:e.id}).catch(()=>void 0)},children:(0,V.jsx)(E,{"aria-hidden":!0})})]}),(0,V.jsx)(Qr,{value:c,className:`mt-1 h-1`})]}),e.state===`failed`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(n,{className:`text-destructive size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsxs)(`span`,{className:`text-dense text-destructive min-w-0 flex-1 truncate`,children:[i.exportFailed,` · `,f]}),(0,V.jsx)(Hr,{icon:!0,"aria-label":i.retry,title:i.retry,"data-testid":`export-retry`,onClick:()=>{oe(o,`export/start`,{item:e.item,versions:e.versions,types:e.types,...e.options?{options:e.options}:{}}).catch(e=>{re.error(i.startFailed,{description:e instanceof Error?e.message:String(e)})})},children:(0,V.jsx)(Je,{"aria-hidden":!0})})]}),(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:i.failedHelp(s)})]}),e.files.map(e=>(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,"data-testid":`export-file`,children:[(0,V.jsx)(ve,{className:`text-success size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,title:e,children:pi(e)}),(0,V.jsx)(Hr,{icon:!0,"aria-label":u,title:u,"data-testid":`export-give`,onClick:()=>{Si(o,e,a)},children:(0,V.jsx)(l,{"aria-hidden":!0})})]},e)),e.state===`done`&&e.error!==void 0&&(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:i.partial})]})}function wi({versions:e,shown:t,picked:n,onPick:r,onBack:i,words:a}){return(0,V.jsxs)(`div`,{"data-testid":`export-choose`,children:[(0,V.jsxs)(`div`,{className:`flex h-11 items-center gap-1 border-b pr-4 pl-2`,children:[(0,V.jsx)(Hr,{icon:!0,"aria-label":a.back,title:a.back,onClick:i,children:(0,V.jsx)(Ue,{"aria-hidden":!0})}),(0,V.jsx)(`span`,{className:`text-sm font-medium`,children:a.versions}),(0,V.jsxs)(`span`,{className:`text-lead ml-auto text-xs tabular-nums`,children:[n.length,`/`,e.length]})]}),(0,V.jsx)(`ul`,{className:`max-h-64 overflow-y-auto p-2`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsxs)(`label`,{className:`hover:bg-accent flex h-8 items-center gap-2 rounded-md px-2 text-sm`,children:[(0,V.jsx)(qr,{checked:n.includes(e.key),"data-version":e.key,onCheckedChange:t=>{r(t===!0?[...n,e.key]:n.filter(t=>t!==e.key))}}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.key===t&&(0,V.jsx)(`span`,{className:`text-lead text-xs`,children:a.onShow})]})},e.key))})]})}function Ti({kind:e,item:t,props:r,jobs:i,all:a,words:o,reveals:s,startRef:c}){let l=me(),u=A[e],d=r.versions??[],f=d.map(e=>e.key),p=d.find(e=>e.key===r.shown)?.label,m=r.unavailable??{},[h,g]=yi(e),[_,v]=(0,B.useState)(`shown`),[y,b]=(0,B.useState)(r.shown===void 0?[]:[r.shown]),[x,S]=(0,B.useState)(!1),[C,w]=(0,B.useState)(!1);if(!u)return null;let T=di(_,r.shown,f,y),E=T?.length??1,D=[h.type,...h.extras.filter(e=>m[e]===void 0)],O=(u.options??[]).filter(e=>e.only.includes(h.type)),k=li(O,h.type,h.options),j=O.filter(e=>e.values===void 0),ee=(e,t)=>{g({...h,options:{...h.options,[e]:t}})},te=r.check?.waiting===!0,M=te?0:r.check?.problems(T)??0,N=i.some(e=>si(e,T??[],D,k)),ne=async()=>{w(!0);try{await oe(l,`export/start`,{item:t,...T?{versions:T}:{},types:D,...Object.keys(k).length>0?{options:k}:{}})}catch(e){re.error(o.startFailed,{description:e instanceof Error?e.message:String(e)})}finally{w(!1)}},F=(0,V.jsxs)(Pr,{value:h.type,onValueChange:e=>{g({...h,type:e})},children:[(0,V.jsx)(Ir,{size:`sm`,"aria-label":o.format,className:`w-full min-w-0`,"data-testid":`export-format`,children:(0,V.jsx)(Fr,{})}),(0,V.jsx)(Lr,{position:`popper`,align:`start`,children:u.types.map(e=>(0,V.jsx)(Rr,{value:e,"data-type":e,children:gi(o,e)},e))})]}),I=(0,V.jsx)(Se,{ref:c,size:`sm`,disabled:te||M>0||C||E===0||N,"data-testid":`export-start`,onClick:()=>{ne()},children:te?o.checking:o.start}),L=f.length<=1&&u.extras.length===0&&O.length===0&&u.types.length>1&&r.facts===void 0&&M===0;return(0,V.jsxs)(`div`,{className:`overflow-hidden rounded-lg text-sm`,"data-testid":`export-panel`,children:[x?(0,V.jsx)(wi,{versions:d,shown:r.shown,picked:y,onPick:b,onBack:()=>{S(!1)},words:o}):L?(0,V.jsxs)(`div`,{className:`flex items-center gap-3 p-4`,children:[(0,V.jsx)(`span`,{className:`text-lead`,children:o.format}),(0,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:F}),I]}):(0,V.jsxs)(V.Fragment,{children:[(u.types.length>1||f.length>1||u.extras.length+O.length>0)&&(0,V.jsxs)(`div`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] items-center gap-x-4 gap-y-2 px-4 pt-4 pb-2`,children:[u.types.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:o.format}),F]}),O.map(e=>e.values?(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:o.option[e.name]?.label}),(0,V.jsxs)(Pr,{value:String(h.options[e.name]??e.values[0]),onValueChange:t=>{ee(e.name,t)},children:[(0,V.jsx)(Ir,{size:`sm`,"aria-label":o.option[e.name]?.label,className:`w-full min-w-0`,"data-testid":`export-option-${e.name}`,children:(0,V.jsx)(Fr,{})}),(0,V.jsx)(Lr,{position:`popper`,align:`start`,children:e.values.map(t=>(0,V.jsx)(Rr,{value:t,"data-value":t,children:o.option[e.name]?.values?.[t]??t},t))})]})]},e.name):null),f.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:o.versions}),(0,V.jsxs)(Pr,{value:_,onValueChange:e=>{v(e),e===`some`&&S(!0)},children:[(0,V.jsx)(Ir,{size:`sm`,"aria-label":o.versions,className:`w-full min-w-0`,"data-testid":`export-scope`,children:(0,V.jsx)(Fr,{})}),(0,V.jsxs)(Lr,{position:`popper`,align:`start`,children:[(0,V.jsx)(Rr,{value:`shown`,children:p??o.onShow}),(0,V.jsx)(Rr,{value:`all`,children:o.all(f.length)}),(0,V.jsx)(zr,{}),(0,V.jsx)(Rr,{value:`some`,onPointerUp:()=>{S(!0)},children:_===`some`?o.chosen(y.length):o.choose})]})]})]}),u.extras.length+j.length>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead self-start`,children:o.include}),(0,V.jsxs)(`div`,{className:`grid gap-1.5`,"data-testid":`export-include`,children:[j.map(e=>(0,V.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(qr,{checked:h.options[e.name]===!0,"data-option":e.name,onCheckedChange:t=>{ee(e.name,t===!0)}}),(0,V.jsx)(`span`,{className:`truncate`,children:o.option[e.name]?.label})]},e.name)),u.extras.map(e=>{let t=m[e];return(0,V.jsxs)(`label`,{title:t,className:P(`flex items-center gap-2`,t!==void 0&&`text-lead-soft`),children:[(0,V.jsx)(qr,{checked:t===void 0&&h.extras.includes(e),disabled:t!==void 0,"data-type":e,onCheckedChange:t=>{g({...h,extras:t===!0?[...h.extras,e]:h.extras.filter(t=>t!==e)})}}),(0,V.jsx)(`span`,{className:`truncate`,children:gi(o,e)})]},e)})]})]})]}),M>0&&(0,V.jsxs)(`p`,{className:`text-dense text-destructive flex items-start gap-1.5 px-4 pt-2`,"data-testid":`export-blocked`,children:[(0,V.jsx)(n,{className:`mt-0.5 size-3.5 flex-none`,"aria-hidden":!0}),o.blocked(M)]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-3 px-4 pt-3 pb-4`,children:[(0,V.jsx)(`span`,{className:`text-lead min-w-0 flex-1 truncate text-xs`,children:r.facts??(u.types.length===1?gi(o,h.type):void 0)}),I]})]}),i.length>0&&(0,V.jsx)(`div`,{className:`max-h-56 overflow-y-auto`,children:i.map(e=>(0,V.jsx)(Ci,{job:e,versions:d,ahead:ui(a,e.id),words:o,reveals:s},e.id))})]})}function Ei(e){let t=/Mac|iPhone|iPad/u.test(navigator.userAgent),n=e.target;return e.code===`KeyE`&&(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.shiftKey&&!e.altKey&&!(n instanceof HTMLElement&&(n.isContentEditable||n.tagName===`INPUT`||n.tagName===`TEXTAREA`))}function Di(e){let t=ge(),r=t?.item.kind,i=t?.item.dir,a=mi.of(t?.locale),o=_i(),s=(0,B.useRef)(null),[c,l]=(0,B.useState)(!1),{all:u,fresh:d,reveals:f}=vi(c);if(ce(`editor/command`,()=>{l(e=>!e)}),(0,B.useEffect)(()=>{let e=e=>{Ei(e)&&(e.preventDefault(),l(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,B.useEffect)(()=>{if(!c||o)return;let e=()=>{l(!1)};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[c,o]),r===void 0||i===void 0||!A[r])return null;let p=ai(u,i),m=fi(p,d),h=m.at===`running`?`${String(m.percent)}%`:m.at===`queued`?a.queued:m.at===`done`?a.exported:m.at===`failed`?a.exportFailed:a.export,g=(0,V.jsxs)(Hr,{"data-testid":`export`,"data-state":m.at,"aria-pressed":c,"aria-label":m.at===`running`?a.running(m.percent):h,title:h,onClick:()=>{o&&l(!0)},children:[m.at===`running`&&(0,V.jsx)(bi,{percent:m.percent}),m.at===`queued`&&(0,V.jsx)(bi,{percent:0}),m.at===`done`&&(0,V.jsx)(ve,{className:`text-success`,"aria-hidden":!0}),m.at===`failed`&&(0,V.jsx)(n,{className:`text-destructive`,"aria-hidden":!0}),m.at===`idle`&&(0,V.jsx)(Ge,{"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`@max-lg/item:hidden`,children:h})]}),_=(0,V.jsx)(Ti,{kind:r,item:i,props:e,jobs:p,all:u,words:a,reveals:f,startRef:s});return o?(0,V.jsxs)(V.Fragment,{children:[g,(0,V.jsx)($r,{open:c,onOpenChange:l,children:(0,V.jsxs)(ni,{side:`bottom`,showCloseButton:!1,className:`gap-0 rounded-t-lg`,children:[(0,V.jsx)(ri,{className:`sr-only`,children:a.export}),_]})})]}):(0,V.jsxs)(Jr,{open:c,onOpenChange:l,children:[(0,V.jsx)(Yr,{asChild:!0,children:g}),(0,V.jsxs)(Xr,{align:`end`,sideOffset:8,className:`w-80 p-0`,onOpenAutoFocus:e=>{s.current&&!s.current.disabled&&(e.preventDefault(),s.current.focus())},children:[(0,V.jsx)(Kr,{}),_]})]})}function Oi({className:e,...t}){return(0,V.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"data-slot":`circle-to-edit`,className:P(`lucide`,e),...t,children:[(0,V.jsx)(`path`,{d:`M17 8.4C15.5 7.2 13.4 6.5 11 6.5 6.6 6.5 3 9.4 3 13s3.6 6.5 8 6.5 8-2.9 8-6.5c0-.8-.2-1.5-.5-2.2`}),(0,V.jsx)(`path`,{d:`M20 1v6`}),(0,V.jsx)(`path`,{d:`M17 4h6`})]})}function ki({...e}){return(0,V.jsx)(St,{"data-slot":`context-menu`,...e})}function Ai({...e}){return(0,V.jsx)(wt,{"data-slot":`context-menu-trigger`,...e})}function ji({...e}){return(0,V.jsx)(jt,{"data-slot":`context-menu-sub`,...e})}function Mi({className:e,inset:t,children:n,...r}){return(0,V.jsxs)(Mt,{"data-slot":`context-menu-sub-trigger`,"data-inset":t,className:P(`flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,V.jsx)(ae,{className:`ml-auto`})]})}function Ni({className:e,...t}){return(0,V.jsx)(Nt,{"data-slot":`context-menu-sub-content`,className:P(`z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})}function Pi({className:e,...t}){return(0,V.jsx)(Tt,{children:(0,V.jsx)(Dt,{"data-slot":`context-menu-content`,className:P(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})})}function Fi({className:e,inset:t,variant:n=`default`,...r}){return(0,V.jsx)(Ot,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:P(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,e),...r})}function Ii({className:e,...t}){return(0,V.jsx)(kt,{"data-slot":`context-menu-separator`,className:P(`-mx-1 my-1 h-px bg-border`,e),...t})}function Li({className:e,...t}){return(0,V.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:P(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t})}var Ri=150;function zi(){let e=me(),t=ge();if(t?.notes!==!0)return;let n=mi.of(t.locale);return{label:n.markUp,hint:n.markUpHint,begin:()=>{e[`note/begin`]({}).catch(()=>void 0)}}}function Bi(){let e=zi();return e?(0,V.jsxs)(Se,{size:`sm`,title:e.hint,"data-testid":`mark-up`,className:`h-7 flex-none gap-1.5 px-2.5 has-[>svg]:px-2.5 [&_svg:not([class*='size-'])]:size-3.5`,onClick:()=>{e.begin()},children:[(0,V.jsx)(Oi,{"aria-hidden":!0}),e.label]}):null}function Vi(){let e=zi();return e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(se,{}),(0,V.jsxs)(he,{title:e.hint,"data-testid":`mark-up-item`,onSelect:()=>{setTimeout(()=>{e.begin()},Ri)},children:[(0,V.jsx)(Oi,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}function Hi(){let e=zi();return e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ii,{}),(0,V.jsxs)(Fi,{title:e.hint,"data-testid":`mark-up-item`,onSelect:()=>{setTimeout(()=>{e.begin()},Ri)},children:[(0,V.jsx)(Oi,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}var Ui=e=>e instanceof Element&&e.closest(`input, textarea`)!==null;function Wi(){let e=zi(),t=e!==void 0,[n,r]=(0,B.useState)();return(0,B.useEffect)(()=>{if(!t)return;let e=e=>{e.defaultPrevented||Ui(e.target)||(e.preventDefault(),r({x:e.clientX,y:e.clientY}))};return document.addEventListener(`contextmenu`,e),()=>{document.removeEventListener(`contextmenu`,e)}},[t]),!e||!n?null:(0,V.jsxs)(pe,{open:!0,onOpenChange:e=>{e||r(void 0)},children:[(0,V.jsx)(I,{asChild:!0,children:(0,V.jsx)(`span`,{style:{position:`fixed`,left:n.x,top:n.y,width:0,height:0}})}),(0,V.jsx)(ie,{align:`start`,className:`text-xs`,children:(0,V.jsxs)(he,{title:e.hint,"data-testid":`mark-up-item`,onSelect:()=>{setTimeout(()=>{e.begin()},Ri)},children:[(0,V.jsx)(Oi,{className:`size-3.5`,"aria-hidden":!0}),e.label]})})]})}var Gi=800;function Ki({saved:e,words:t}){let n=e.state===`saving`||e.state===`unsaved`,[r,i]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{i(!0)},Gi);return()=>{clearTimeout(e),i(!1)}},[n]),e.state===`saved`||n&&!r?null:(0,V.jsx)(`span`,{"data-testid":`save-state`,"data-state":e.state,title:e.message,className:P(`px-1 text-xs`,e.state===`error`?`text-destructive`:`text-lead`),children:t.saved[e.state]})}function qi({start:e,saved:t,exports:n}){let r=ge(),i=mi.of(r?.locale);if(r?.viewer===!0)return e?(0,V.jsx)(`div`,{className:`bg-background flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:e}):null;let a=r!==void 0&&A[r.item.kind]!==void 0;return!e&&!t&&!a?(0,V.jsx)(Wi,{}):(0,V.jsxs)(`div`,{className:`bg-background @container/item flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:[e,(0,V.jsxs)(`div`,{className:`ml-auto flex flex-none items-center gap-1`,children:[t&&(0,V.jsx)(Ki,{saved:t,words:i}),(0,V.jsx)(Bi,{}),(0,V.jsx)(Di,{...n})]}),(0,V.jsx)(Wi,{})]})}var Ji=`group-data-[compact]/bar:hidden`,Yi=32,Xi={compact:!1,out:[],firsts:[],order:{}},Zi=(0,B.createContext)(null),Qi=(e,t)=>e.compact===t.compact&&e.out.join(`
7
+ `)===t.out.join(`
8
+ `)&&e.firsts.join(`
9
+ `)===t.firsts.join(`
10
+ `)&&JSON.stringify(e.order)===JSON.stringify(t.order);function $i({children:e,id:t,priority:n=0,keep:r=!1,ruled:i=!0}){let a=(0,B.useContext)(Zi),o=(0,B.useId)(),s=t??o,c=a?.fit.firsts.includes(s)??!1,l=a?.touch;(0,B.useLayoutEffect)(()=>(l?.(),l),[l]);let u=(0,V.jsx)(`span`,{className:P(`relative flex h-8 flex-none items-center gap-0.5`,!c&&`pl-2`,!c&&i&&`before:bg-rule before:absolute before:top-2 before:bottom-2 before:left-0.75 before:w-px`),children:e});if(!a)return u;let d=a.fit.out.includes(s);return(0,V.jsx)(`span`,{"data-group":s,"data-priority":n,"data-keep":r?``:void 0,className:d?`hidden`:`flex flex-none`,children:d?a.panel?(0,Ye.createPortal)((0,V.jsx)(`span`,{"data-group":s,"data-away":``,className:`flex flex-none`,style:{order:a.fit.order[s]??0},children:u}),a.panel):null:u})}function ea(){return(0,V.jsx)(`span`,{"data-spacer":``,className:`min-w-0 flex-1`})}function ta({testid:e,className:t,children:n,...r}){let i=ge(),a=mi.of(i?.locale),o=(0,B.useRef)(null),[s,c]=(0,B.useState)(null),l=(0,B.useRef)(new Map),[u,d]=(0,B.useState)(Xi),[f,p]=(0,B.useState)(!1),[m,h]=(0,B.useState)(0),g=(0,B.useCallback)(()=>{h(e=>e+1)},[]),_=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{let e=new ResizeObserver(()=>{h(e=>e+1)});return _.current=e,o.current&&e.observe(o.current),()=>{e.disconnect(),_.current=null}},[]),(0,B.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=[],n=new Set,r=!0;for(let i of e.querySelectorAll(`[data-group]:not([data-away]), [data-spacer]`)){if(i.dataset.spacer!==void 0){r=!0;continue}let e=i.dataset.group??``;if(t.push({key:e,priority:Number(i.dataset.priority??0),keep:i.dataset.keep!==void 0,at:t.length}),u.out.includes(e))continue;r&&n.add(e),r=!1,_.current?.observe(i);let a=i.getBoundingClientRect().width;a>0&&l.current.set(`${String(u.compact)}:${e}`,a)}for(let e of s?.querySelectorAll(`[data-away]`)??[]){let t=e.getBoundingClientRect().width;t>0&&l.current.set(`${String(u.compact)}:${e.dataset.group??``}`,t)}let i=e.clientWidth,a=(e,t)=>l.current.get(`${String(e)}:${t.key}`),c=e=>t.every(t=>a(e,t)!==void 0),m=e=>t.reduce((t,n)=>t+(a(e,n)??0),0),h=!1,g=[];if(!c(!1)||m(!1)<=i)h=!1;else if(!c(!0)||m(!0)<=i)h=!0;else{h=!0;let e=t.filter(e=>!e.keep).sort((e,t)=>e.priority-t.priority||t.at-e.at),n=new Set,r=m(!0)+Yi;for(let t of e){if(r<=i)break;n.add(t.key),r-=a(!0,t)??0}g=t.filter(e=>n.has(e.key)).map(e=>e.key)}let v={compact:h,out:g,firsts:[...n],order:Object.fromEntries(t.map(e=>[e.key,e.at]))};Qi(v,u)||d(v),g.length===0&&f&&p(!1)},[u,f,m,s,n]),(0,V.jsx)(Zi.Provider,{value:{fit:u,panel:f?s:null,touch:g},children:(0,V.jsxs)(`div`,{...r,ref:o,role:r.role??`toolbar`,"data-testid":e,"data-compact":u.compact?``:void 0,className:P(`group/bar relative flex h-8 min-w-0 flex-1 items-center overflow-hidden`,t),children:[n,u.out.length>0?(0,V.jsxs)(Jr,{open:f,onOpenChange:p,children:[(0,V.jsx)(Yr,{asChild:!0,children:(0,V.jsx)(Hr,{icon:!0,className:`ml-auto flex-none`,"aria-label":a.moreTools,title:a.moreTools,"data-testid":`${e}-more`,onMouseDown:e=>{e.preventDefault()},children:(0,V.jsx)(Ke,{})})}),(0,V.jsx)(Xr,{align:`end`,role:`toolbar`,"aria-label":a.moreTools,"data-testid":`${e}-panel`,"data-compact":u.compact?``:void 0,onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onInteractOutside:e=>{let t=e.target;t instanceof Element&&t.closest(`[data-radix-popper-content-wrapper]`)&&e.preventDefault()},className:`group/bar w-auto max-w-[calc(100vw-1rem)] overflow-hidden p-1`,children:(0,V.jsx)(`div`,{ref:c,className:`-ml-2 flex flex-wrap items-center`})})]}):null]})})}export{Je as A,Ur as C,Ir as D,Rr as E,Le as F,He as M,Ve as N,Fr as O,Be as P,Hr as S,Lr as T,Jr as _,qi as a,Yr as b,ki as c,Ii as d,Li as f,Ai as g,Mi as h,ta as i,We as j,$e as k,Pi as l,Ni as m,$i as n,Hi as o,ji as p,ea as r,Vi as s,Ji as t,Fi as u,Zr as v,Pr as w,qr as x,Xr as y};
@@ -0,0 +1,2 @@
1
+ import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{$n as n,$t as r,Bt as i,F as a,Gt as o,Ht as s,I as c,It as l,Kt as u,L as d,Lt as f,Nt as p,Ot as m,Qt as h,R as g,Rt as _,Ut as v,Yt as y,a as b,an as x,fn as S,i as C,in as w,n as T,nn as E,on as D,r as O,rn as k,s as ee,x as A,z as te,zt as ne}from"./react-C_-rEEBU.js";import{C as j,E as re,F as ie,M as ae,N as oe,O as se,T as ce,a as le,i as ue,j as de,k as fe,n as pe,w as me}from"./dist-CTQIm8Im.js";import{p as he}from"./index-CFt3ovRY.js";var ge=E(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]),_e=E(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),M=E(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),N=E(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),ve=E(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),P=t(n(),1),F=k(),I=Object.defineProperty,L=(e,t)=>I(e,`name`,{value:t,configurable:!0}),[R,ye]=s(`Tooltip`,[te]),z=te(),be=`TooltipProvider`,B=700,V=`tooltip.open`,[xe,H]=R(be),Se=L(e=>{let{__scopeTooltip:t,delayDuration:n=B,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=P.useRef(!0),s=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,F.jsx)(xe,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:P.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:P.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:P.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),U=`Tooltip`,[Ce,W]=R(U),we=L(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,u=H(U,e.__scopeTooltip),d=z(t),[f,p]=P.useState(null),[m,h]=P.useState(void 0),g=l(),v=P.useRef(0),y=s??u.disableHoverableContent,b=c??u.delayDuration,x=P.useRef(!1),[S,C]=_({prop:r,defaultProp:i??!1,onChange:L(e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(V))):u.onClose(),o?.(e)},`onChange`),caller:U}),w=P.useMemo(()=>S?x.current?`delayed-open`:`instant-open`:`closed`,[S]),T=P.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x.current=!1,C(!0)},[C]),E=P.useCallback(()=>{window.clearTimeout(v.current),v.current=0,C(!1)},[C]),D=P.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,C(!0),v.current=0},b)},[b,C]);P.useEffect(()=>()=>{v.current&&=(window.clearTimeout(v.current),0)},[]);let O=m??g;return(0,F.jsx)(a,{...d,children:(0,F.jsx)(Ce,{scope:t,contentId:O,setContentId:h,open:S,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:P.useCallback(()=>{u.isOpenDelayedRef.current?D():T()},[u.isOpenDelayedRef,D,T]),onTriggerLeave:P.useCallback(()=>{y?E():(window.clearTimeout(v.current),v.current=0)},[E,y]),onOpen:T,onClose:E,disableHoverableContent:y,children:n})})},`Tooltip`),Te=`TooltipTrigger`,Ee=P.forwardRef(L(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...a}=e,o=W(Te,n),s=H(Te,n),l=z(n),d=P.useRef(null),f=u(t,d,o.onTriggerChange),p=P.useRef(!1),m=P.useRef(!1),h=P.useCallback(()=>p.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener(`pointerup`,h),[h]),(0,F.jsx)(c,{asChild:!0,...l,children:(0,F.jsx)(v.button,{"aria-describedby":o.open?Be(r,o.contentId):r,"data-state":o.stateAttribute,...a,ref:f,onPointerMove:i(e.onPointerMove,e=>{e.pointerType!==`touch`&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:i(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:i(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener(`pointerup`,h,{once:!0})}),onFocus:i(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:i(e.onBlur,o.onClose),onClick:i(e.onClick,o.onClose)})})},`TooltipTrigger`)),De=`TooltipPortal`,[Oe,G]=R(De,{forceMount:void 0}),ke=L(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=W(De,t);return(0,F.jsx)(Oe,{scope:t,forceMount:n,children:(0,F.jsx)(f,{present:n||a.open,children:(0,F.jsx)(m,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),K=`TooltipContent`,Ae=P.forwardRef(L(function(e,t){let n=G(K,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=W(K,e.__scopeTooltip);return(0,F.jsx)(f,{present:r||o.open,children:o.disableHoverableContent?(0,F.jsx)(Me,{side:i,...a,ref:t}):(0,F.jsx)(je,{side:i,...a,ref:t})})},`TooltipContent`)),je=P.forwardRef(L(function(e,t){let n=W(K,e.__scopeTooltip),r=H(K,e.__scopeTooltip),i=P.useRef(null),a=u(t,i),[o,s]=P.useState(null),{trigger:c,onClose:l}=n,d=i.current,{onPointerInTransitChange:f}=r,p=P.useCallback(()=>{s(null),f(!1)},[f]),m=P.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Fe(r,Pe(r,n.getBoundingClientRect())),a=Ie(t.getBoundingClientRect()),o=Re([...i,...a]);s(o),f(!0)},[f]);return P.useEffect(()=>()=>p(),[p]),P.useEffect(()=>{if(c&&d){let e=L(e=>m(e,d),`handleTriggerLeave`),t=L(e=>m(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[c,d,m,p]),P.useEffect(()=>{if(o){let e=L(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),i=!Le(n,o);r?p():i&&(p(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,d,o,l,p]),(0,F.jsx)(Me,{...e,ref:a})},`TooltipContentHoverable`)),q=o(`TooltipContent`),Me=P.forwardRef(L(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=W(K,n),u=z(n),{onClose:d}=l;P.useEffect(()=>(document.addEventListener(V,d),()=>document.removeEventListener(V,d)),[d]),P.useEffect(()=>{if(l.trigger){let e=L(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return ne(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,F.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,F.jsxs)(g,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,F.jsx)(q,{children:r}),i?(0,F.jsx)(fe,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Ne=P.forwardRef(L(function(e,t){let{__scopeTooltip:n,...r}=e,i=z(n);return(0,F.jsx)(d,{...i,...r,ref:t})},`TooltipArrow`));function Pe(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}L(Pe,`getExitSideFromRect`);function Fe(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}L(Fe,`getPaddedExitPoints`);function Ie(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}L(Ie,`getPointsFromRect`);function Le(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}L(Le,`isPointInPolygon`);function Re(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),ze(t)}L(Re,`getHull`);function ze(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}L(ze,`getHullPresorted`);function Be(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}L(Be,`concatAriaDescribedby`);function Ve({className:e,...t}){return(0,F.jsx)(`span`,{className:y(`text-muted-foreground font-mono text-micro leading-4 font-normal tracking-label uppercase`,e),...t})}function He({label:e,count:t=4,size:n=10,className:r}){return(0,F.jsx)(`span`,{role:`status`,"aria-label":e,className:y(`inline-flex items-end gap-[3px]`,r),children:Array.from({length:t},(e,t)=>(0,F.jsx)(`span`,{className:`bg-foreground animate-squares-drop block`,style:{width:n,height:n,animationDelay:`${String(t*120)}ms`}},t))})}function Ue({title:e,children:t,action:n,className:r}){return(0,F.jsxs)(`div`,{className:y(`animate-set-in flex flex-col items-center gap-5 px-6 py-16 text-center`,r),children:[(0,F.jsxs)(`div`,{className:`flex max-w-sm flex-col gap-1.5`,children:[(0,F.jsx)(`h2`,{className:`font-serif text-heading font-semibold`,children:e}),t?(0,F.jsx)(`div`,{className:`text-muted-foreground text-sm leading-relaxed`,children:t}):null]}),n]})}var We=e=>Number.isFinite(e)&&e>0?e:0,J=e=>{let t=We(e);return`${String(Math.floor(t/60))}:${String(Math.floor(t%60)).padStart(2,`0`)}`},Y=e=>{let t=We(e);return`${String(Math.floor(t/60))}:${(t%60).toFixed(1).padStart(4,`0`)}`},Ge=(e,t)=>Math.floor(e*t+1e-9)/t,Ke=e=>e.split(/[/\\]/u).at(-1)??e,qe={loading:`Vorschau wird geladen`,loadFailed:`Die Vorschau wurde nicht geladen`,noVideo:`Das ist kein Video`,previewTitle:`Vorschau`,denoising:`Sprache wird entrauscht; Wiedergabe wie aufgenommen`,uncut:e=>`Noch keine Personenmaske für ${e}: Ebenen hinter der Person erscheinen davor`,play:`Abspielen`,pause:`Pause`,seek:`Springen`,prevPage:`Vorherige Seite`,nextPage:`Nächste Seite`,pageOf:(e,t)=>`Seite ${String(e)} von ${String(t)}`,timeOf:(e,t,n)=>`${e} von ${t}${n?`, ${n}`:``}`,hideTimeline:`Zeitleiste ausblenden`,showTimeline:`Zeitleiste einblenden`,rows:{scenes:`Szenen`,voice:`Sprache`,music:`Musik`,sound:`Ton`},noVoice:`Keine Sprache`,noMusic:`Keine Musik`,noCues:`Keine Soundeffekte`,ducked:`unter Sprache abgesenkt`,version:`Sprache`,close:`Schließen`,previewFailed:`Mit diesem Video ist etwas schiefgelaufen.`,previewFailedKept:`Bei der letzten Änderung ist etwas schiefgelaufen. Das ist die letzte Version, die funktioniert hat.`,problemsHere:e=>e===1?`1 Problem in dieser Version`:`${String(e)} Probleme in dieser Version`,levelError:`Muss behoben werden`,levelWarn:`Vorschlag`},Je={loading:`Loading the preview`,loadFailed:`The preview did not load`,noVideo:`This is not a video`,previewTitle:`Preview`,denoising:`Denoising the speech; playing it as recorded`,uncut:e=>`No person matte for ${e} yet: layers behind the person show in front`,play:`Play`,pause:`Pause`,seek:`Seek`,prevPage:`Previous page`,nextPage:`Next page`,pageOf:(e,t)=>`Page ${String(e)} of ${String(t)}`,timeOf:(e,t,n)=>`${e} of ${t}${n?`, ${n}`:``}`,hideTimeline:`Hide timeline`,showTimeline:`Show timeline`,rows:{scenes:`Scenes`,voice:`Speech`,music:`Music`,sound:`Sound`},noVoice:`No speech`,noMusic:`No music`,noCues:`No sound cues`,ducked:`lowered under speech`,version:`Language`,close:`Close`,previewFailed:`Something went wrong with this video.`,previewFailedKept:`Something went wrong with the latest change. This is the last version that worked.`,problemsHere:e=>`${String(e)} problem${e===1?``:`s`} in this version`,levelError:`Must fix`,levelWarn:`Suggestion`},Ye={loading:`Cargando la vista previa`,loadFailed:`La vista previa no se cargó`,noVideo:`Esto no es un video`,previewTitle:`Vista previa`,denoising:`Reduciendo el ruido de la voz; se reproduce tal como se grabó`,uncut:e=>`Aún no hay máscara de persona para ${e}: las capas detrás de la persona se ven delante`,play:`Reproducir`,pause:`Pausa`,seek:`Buscar`,prevPage:`Página anterior`,nextPage:`Página siguiente`,pageOf:(e,t)=>`Página ${String(e)} de ${String(t)}`,timeOf:(e,t,n)=>`${e} de ${t}${n?`, ${n}`:``}`,hideTimeline:`Ocultar la línea de tiempo`,showTimeline:`Mostrar la línea de tiempo`,rows:{scenes:`Escenas`,voice:`Voz`,music:`Música`,sound:`Sonido`},noVoice:`Sin voz`,noMusic:`Sin música`,noCues:`Sin efectos de sonido`,ducked:`bajada bajo la voz`,version:`Idioma`,close:`Cerrar`,previewFailed:`Algo salió mal con este video.`,previewFailedKept:`Algo salió mal con el último cambio. Esta es la última versión que funcionó.`,problemsHere:e=>e===1?`1 problema en esta versión`:`${String(e)} problemas en esta versión`,levelError:`Corregir`,levelWarn:`Sugerencia`},Xe={loading:`Chargement de l’aperçu`,loadFailed:`L’aperçu ne s’est pas chargé`,noVideo:`Ce n’est pas une vidéo`,previewTitle:`Aperçu`,denoising:`Débruitage de la voix\xA0; lecture telle qu’enregistrée`,uncut:e=>`Pas encore de masque de personne pour ${e}\u00a0: les calques derrière la personne passent devant`,play:`Lire`,pause:`Pause`,seek:`Position`,prevPage:`Page précédente`,nextPage:`Page suivante`,pageOf:(e,t)=>`Page ${String(e)} sur ${String(t)}`,timeOf:(e,t,n)=>`${e} sur ${t}${n?`, ${n}`:``}`,hideTimeline:`Masquer la timeline`,showTimeline:`Afficher la timeline`,rows:{scenes:`Scènes`,voice:`Voix`,music:`Musique`,sound:`Son`},noVoice:`Pas de voix`,noMusic:`Pas de musique`,noCues:`Pas d’effets sonores`,ducked:`baissée sous la voix`,version:`Langue`,close:`Fermer`,previewFailed:`Un problème est survenu avec cette vidéo.`,previewFailedKept:`Un problème est survenu avec la dernière modification. Voici la dernière version qui fonctionnait.`,problemsHere:e=>e===1?`1 problème dans cette version`:`${String(e)} problèmes dans cette version`,levelError:`À corriger`,levelWarn:`Suggestion`},Ze=new Intl.PluralRules(`hi`),Qe=(e,t,n)=>`${String(e)} ${Ze.select(e)===`one`?t:n}`,$e={loading:`प्रीव्यू लोड हो रहा है`,loadFailed:`प्रीव्यू लोड नहीं हुआ`,noVideo:`यह वीडियो नहीं है`,previewTitle:`प्रीव्यू`,denoising:`आवाज़ से शोर हटाया जा रहा है; तब तक रिकॉर्डिंग जैसी है वैसी चल रही है`,uncut:e=>`${e} के लिए अभी पर्सन मैट नहीं है: व्यक्ति के पीछे वाली लेयर आगे दिखती हैं`,play:`चलाएँ`,pause:`रोकें`,seek:`आगे-पीछे करें`,prevPage:`पिछला पेज`,nextPage:`अगला पेज`,pageOf:(e,t)=>`पेज ${String(e)} / ${String(t)}`,timeOf:(e,t,n)=>`${t} में से ${e}${n?`, ${n}`:``}`,hideTimeline:`टाइमलाइन छिपाएँ`,showTimeline:`टाइमलाइन दिखाएँ`,rows:{scenes:`सीन`,voice:`आवाज़`,music:`संगीत`,sound:`साउंड`},noVoice:`कोई आवाज़ नहीं`,noMusic:`कोई संगीत नहीं`,noCues:`कोई साउंड इफ़ेक्ट नहीं`,ducked:`बोलते समय धीमा`,version:`भाषा`,close:`बंद करें`,previewFailed:`इस वीडियो में कुछ गड़बड़ हो गई।`,previewFailedKept:`सबसे नए बदलाव में कुछ गड़बड़ हो गई। यह आखिरी चलने वाला वर्शन है।`,problemsHere:e=>`इस वर्शन में ${Qe(e,`समस्या`,`समस्याएँ`)}`,levelError:`ठीक करना ज़रूरी`,levelWarn:`सुझाव`},et={loading:`Caricamento dell'anteprima`,loadFailed:`L'anteprima non si è caricata`,noVideo:`Questo non è un video`,previewTitle:`Anteprima`,denoising:`Riduzione del rumore della voce; riprodotta così come è stata registrata`,uncut:e=>`Ancora nessuna maschera della persona per ${e}: i livelli dietro la persona appaiono davanti`,play:`Riproduci`,pause:`Pausa`,seek:`Vai a`,prevPage:`Pagina precedente`,nextPage:`Pagina successiva`,pageOf:(e,t)=>`Pagina ${String(e)} di ${String(t)}`,timeOf:(e,t,n)=>`${e} di ${t}${n?`, ${n}`:``}`,hideTimeline:`Nascondi la timeline`,showTimeline:`Mostra la timeline`,rows:{scenes:`Scene`,voice:`Voce`,music:`Musica`,sound:`Suono`},noVoice:`Nessuna voce`,noMusic:`Nessuna musica`,noCues:`Nessun effetto sonoro`,ducked:`abbassata sotto la voce`,version:`Lingua`,close:`Chiudi`,previewFailed:`Qualcosa è andato storto con questo video.`,previewFailedKept:`Qualcosa è andato storto con l'ultima modifica. Questa è l'ultima versione che funzionava.`,problemsHere:e=>e===1?`1 problema in questa versione`:`${String(e)} problemi in questa versione`,levelError:`Da correggere`,levelWarn:`Suggerimento`},tt={loading:`プレビューを読み込み中`,loadFailed:`プレビューを読み込めませんでした`,noVideo:`これは動画ではありません`,previewTitle:`プレビュー`,denoising:`音声のノイズを除去中。録音のまま再生しています`,uncut:e=>`${e} の人物マットはまだありません。人物の後ろのレイヤーが前に表示されます`,play:`再生`,pause:`一時停止`,seek:`再生位置`,prevPage:`前のページ`,nextPage:`次のページ`,pageOf:(e,t)=>`${String(e)} / ${String(t)} ページ`,timeOf:(e,t,n)=>`${e} / ${t}${n?`、${n}`:``}`,hideTimeline:`タイムラインを隠す`,showTimeline:`タイムラインを表示`,rows:{scenes:`シーン`,voice:`音声`,music:`音楽`,sound:`効果音`},noVoice:`音声なし`,noMusic:`音楽なし`,noCues:`効果音なし`,ducked:`音声の間は音量を下げる`,version:`言語`,close:`閉じる`,previewFailed:`この動画で問題が起きました。`,previewFailedKept:`最新の変更で問題が起きました。これは最後に正しく動いたバージョンです。`,problemsHere:e=>`このバージョンに ${String(e)} 件の問題`,levelError:`要修正`,levelWarn:`提案`},nt={loading:`미리보기를 불러오는 중`,loadFailed:`미리보기를 불러오지 못했습니다`,noVideo:`동영상이 아닙니다`,previewTitle:`미리보기`,denoising:`음성의 잡음을 제거하는 중입니다. 녹음된 그대로 재생합니다`,uncut:e=>`${e}의 인물 매트가 아직 없습니다. 인물 뒤 레이어가 앞에 보입니다`,play:`재생`,pause:`일시정지`,seek:`재생 위치`,prevPage:`이전 페이지`,nextPage:`다음 페이지`,pageOf:(e,t)=>`${String(t)}페이지 중 ${String(e)}페이지`,timeOf:(e,t,n)=>`${e} / ${t}${n?`, ${n}`:``}`,hideTimeline:`타임라인 숨기기`,showTimeline:`타임라인 보기`,rows:{scenes:`장면`,voice:`음성`,music:`음악`,sound:`사운드`},noVoice:`음성 없음`,noMusic:`음악 없음`,noCues:`효과음 없음`,ducked:`음성 아래로 낮춤`,version:`언어`,close:`닫기`,previewFailed:`이 동영상에 문제가 생겼습니다.`,previewFailedKept:`최근 변경에서 문제가 생겼습니다. 마지막으로 정상 작동한 버전입니다.`,problemsHere:e=>`이 버전의 문제 ${String(e)}개`,levelError:`수정 필요`,levelWarn:`제안`},rt={loading:`Carregando a prévia`,loadFailed:`A prévia não carregou`,noVideo:`Isto não é um vídeo`,previewTitle:`Prévia`,denoising:`Removendo o ruído da fala; tocando como foi gravada`,uncut:e=>`Ainda não há máscara de pessoa para ${e}: as camadas atrás da pessoa aparecem na frente`,play:`Reproduzir`,pause:`Pausar`,seek:`Posição`,prevPage:`Página anterior`,nextPage:`Próxima página`,pageOf:(e,t)=>`Página ${String(e)} de ${String(t)}`,timeOf:(e,t,n)=>`${e} de ${t}${n?`, ${n}`:``}`,hideTimeline:`Ocultar a linha do tempo`,showTimeline:`Mostrar a linha do tempo`,rows:{scenes:`Cenas`,voice:`Fala`,music:`Música`,sound:`Som`},noVoice:`Sem fala`,noMusic:`Sem música`,noCues:`Sem efeitos sonoros`,ducked:`abaixada sob a fala`,version:`Idioma`,close:`Fechar`,previewFailed:`Algo deu errado com este vídeo.`,previewFailedKept:`Algo deu errado com a última alteração. Esta é a última versão que funcionou.`,problemsHere:e=>e===1?`1 problema nesta versão`:`${String(e)} problemas nesta versão`,levelError:`Corrigir`,levelWarn:`Sugestão`},it=new Intl.PluralRules(`ru`),at=(e,t,n,r)=>{let i=it.select(e);return`${String(e)} ${i===`one`?t:i===`many`?r:n}`},ot=x({en:Je,"zh-cn":{loading:`正在加载预览`,loadFailed:`预览没能加载`,noVideo:`这不是视频`,previewTitle:`预览`,denoising:`正在降噪,先播原声`,uncut:e=>`${e} 还没有人像遮罩:人物后面的图层暂时画在人物前面`,play:`播放`,pause:`暂停`,seek:`进度`,prevPage:`上一页`,nextPage:`下一页`,pageOf:(e,t)=>`第 ${String(e)} 页,共 ${String(t)} 页`,timeOf:(e,t,n)=>`${e} / ${t}${n?`,${n}`:``}`,hideTimeline:`收起时间线`,showTimeline:`展开时间线`,rows:{scenes:`分段`,voice:`说话`,music:`音乐`,sound:`音效`},noVoice:`没有人说话`,noMusic:`没有音乐`,noCues:`没有音效`,ducked:`有人说话时压低`,version:`语言`,close:`关闭`,previewFailed:`这个视频出了点问题。`,previewFailedKept:`最新的改动出了点问题,这里是上一版正常的画面。`,problemsHere:e=>`这个版本有 ${String(e)} 个问题`,levelError:`必须改`,levelWarn:`建议`},"zh-tw":{loading:`正在載入預覽`,loadFailed:`預覽未能載入`,noVideo:`這不是影片`,previewTitle:`預覽`,denoising:`正在降噪,先播放原始錄音`,uncut:e=>`${e} 還沒有人像遮罩:人物後方的圖層暫時顯示在人物前面`,play:`播放`,pause:`暫停`,seek:`播放位置`,prevPage:`上一頁`,nextPage:`下一頁`,pageOf:(e,t)=>`第 ${String(e)} 頁,共 ${String(t)} 頁`,timeOf:(e,t,n)=>`${e} / ${t}${n?`,${n}`:``}`,hideTimeline:`收合時間軸`,showTimeline:`展開時間軸`,rows:{scenes:`段落`,voice:`語音`,music:`音樂`,sound:`音效`},noVoice:`沒有語音`,noMusic:`沒有音樂`,noCues:`沒有音效`,ducked:`有語音時降低音量`,version:`語言`,close:`關閉`,previewFailed:`這部影片出了點問題。`,previewFailedKept:`最新的修改出了點問題,這裡是上一個正常的版本。`,problemsHere:e=>`這個版本有 ${String(e)} 個問題`,levelError:`必須修正`,levelWarn:`建議`},ja:tt,ko:nt,es:Ye,fr:Xe,de:qe,it:et,pt:rt,ru:{loading:`Загрузка предпросмотра`,loadFailed:`Предпросмотр не загрузился`,noVideo:`Это не видео`,previewTitle:`Предпросмотр`,denoising:`Шумоподавление речи; пока звучит исходная запись`,uncut:e=>`Для ${e} ещё нет маски человека: слои за человеком показаны перед ним`,play:`Воспроизвести`,pause:`Пауза`,seek:`Перемотка`,prevPage:`Предыдущая страница`,nextPage:`Следующая страница`,pageOf:(e,t)=>`Страница ${String(e)} из ${String(t)}`,timeOf:(e,t,n)=>`${e} из ${t}${n?`, ${n}`:``}`,hideTimeline:`Скрыть таймлайн`,showTimeline:`Показать таймлайн`,rows:{scenes:`Сцены`,voice:`Речь`,music:`Музыка`,sound:`Звук`},noVoice:`Нет речи`,noMusic:`Нет музыки`,noCues:`Нет звуковых эффектов`,ducked:`приглушено под речью`,version:`Язык`,close:`Закрыть`,previewFailed:`С этим видео что-то пошло не так.`,previewFailedKept:`С последним изменением что-то пошло не так. Это последняя рабочая версия.`,problemsHere:e=>`${at(e,`проблема`,`проблемы`,`проблем`)} в этой версии`,levelError:`Нужно исправить`,levelWarn:`Совет`},tr:{loading:`Önizleme yükleniyor`,loadFailed:`Önizleme yüklenmedi`,noVideo:`Bu bir video değil`,previewTitle:`Önizleme`,denoising:`Konuşmadaki gürültü temizleniyor; kaydedildiği gibi çalınıyor`,uncut:e=>`${e} için henüz kişi maskesi yok: kişinin arkasındaki katmanlar önde görünür`,play:`Oynat`,pause:`Duraklat`,seek:`Konum`,prevPage:`Önceki sayfa`,nextPage:`Sonraki sayfa`,pageOf:(e,t)=>`Sayfa ${String(e)} / ${String(t)}`,timeOf:(e,t,n)=>`${e} / ${t}${n?`, ${n}`:``}`,hideTimeline:`Zaman çizelgesini gizle`,showTimeline:`Zaman çizelgesini göster`,rows:{scenes:`Sahneler`,voice:`Konuşma`,music:`Müzik`,sound:`Ses`},noVoice:`Konuşma yok`,noMusic:`Müzik yok`,noCues:`Ses efekti yok`,ducked:`konuşmanın altında kısıldı`,version:`Dil`,close:`Kapat`,previewFailed:`Bu videoda bir şeyler ters gitti.`,previewFailedKept:`Son değişiklikte bir şeyler ters gitti. Bu, çalışan son sürüm.`,problemsHere:e=>`Bu sürümde ${String(e)} sorun var`,levelError:`Düzeltilmeli`,levelWarn:`Öneri`},vi:{loading:`Đang tải bản xem trước`,loadFailed:`Không tải được bản xem trước`,noVideo:`Đây không phải video`,previewTitle:`Xem trước`,denoising:`Đang khử nhiễu giọng nói; tạm phát như bản thu gốc`,uncut:e=>`Chưa có mặt nạ người cho ${e}: các lớp phía sau người hiện ở phía trước`,play:`Phát`,pause:`Tạm dừng`,seek:`Tua`,prevPage:`Trang trước`,nextPage:`Trang sau`,pageOf:(e,t)=>`Trang ${String(e)}/${String(t)}`,timeOf:(e,t,n)=>`${e} / ${t}${n?`, ${n}`:``}`,hideTimeline:`Ẩn dòng thời gian`,showTimeline:`Hiện dòng thời gian`,rows:{scenes:`Cảnh`,voice:`Lời nói`,music:`Nhạc`,sound:`Âm thanh`},noVoice:`Không có lời nói`,noMusic:`Không có nhạc`,noCues:`Không có hiệu ứng âm thanh`,ducked:`giảm âm lượng khi có lời nói`,version:`Ngôn ngữ`,close:`Đóng`,previewFailed:`Video này đã gặp sự cố.`,previewFailedKept:`Thay đổi mới nhất đã gặp sự cố. Đây là phiên bản chạy được gần nhất.`,problemsHere:e=>`${String(e)} vấn đề trong phiên bản này`,levelError:`Cần sửa`,levelWarn:`Gợi ý`},th:{loading:`กำลังโหลดตัวอย่าง`,loadFailed:`โหลดตัวอย่างไม่สำเร็จ`,noVideo:`นี่ไม่ใช่วิดีโอ`,previewTitle:`ตัวอย่าง`,denoising:`กำลังลดเสียงรบกวนของเสียงพูด ระหว่างนี้จะเล่นตามที่บันทึกไว้`,uncut:e=>`ยังไม่มีมาสก์บุคคลสำหรับ ${e}: เลเยอร์ที่อยู่หลังบุคคลจะแสดงอยู่ด้านหน้า`,play:`เล่น`,pause:`หยุดชั่วคราว`,seek:`เลื่อนตำแหน่ง`,prevPage:`หน้าก่อนหน้า`,nextPage:`หน้าถัดไป`,pageOf:(e,t)=>`หน้า ${String(e)} จาก ${String(t)}`,timeOf:(e,t,n)=>`${e} จาก ${t}${n?`, ${n}`:``}`,hideTimeline:`ซ่อนไทม์ไลน์`,showTimeline:`แสดงไทม์ไลน์`,rows:{scenes:`ฉาก`,voice:`เสียงพูด`,music:`เพลง`,sound:`เสียง`},noVoice:`ไม่มีเสียงพูด`,noMusic:`ไม่มีเพลง`,noCues:`ไม่มีเอฟเฟกต์เสียง`,ducked:`ลดเสียงลงขณะมีเสียงพูด`,version:`ภาษา`,close:`ปิด`,previewFailed:`วิดีโอนี้เกิดข้อผิดพลาด`,previewFailedKept:`การเปลี่ยนแปลงล่าสุดเกิดข้อผิดพลาด นี่คือเวอร์ชันล่าสุดที่ใช้ได้`,problemsHere:e=>`มีปัญหา ${String(e)} รายการในเวอร์ชันนี้`,levelError:`ต้องแก้ไข`,levelWarn:`คำแนะนำ`},hi:$e});function X(){return ot.of(O()?.locale)}function st(e,t,n){let r=T(),[i,a]=(0,P.useState)(),o=JSON.stringify([e,t,...n]);return(0,P.useEffect)(()=>{if(t===void 0)return;let n=!0;return S(r,e,t).then(e=>{n&&a({key:o,data:e})},e=>{n&&a({key:o,error:e instanceof Error?e:Error(String(e))})}),()=>{n=!1}},[r,o]),{data:i?.data,error:i?.key===o?i.error:void 0}}function ct(){let[e,t]=(0,P.useState)(0);return C(`project/changed`,e=>{t(e.revision)}),e}function lt(){let e=T(),[t,n]=(0,P.useState)();return(0,P.useEffect)(()=>{let t=!0;return S(e,`check/results`,{}).then(e=>{t&&n(t=>t??e)},()=>void 0),()=>{t=!1}},[e]),C(`check/changed`,n),t}function ut(e,t){let n=T(),[r,i]=(0,P.useState)();(0,P.useEffect)(()=>{let r=!0;return n[`storage/get`]({key:e}).then(n=>{r&&i({key:e,value:n.value===null?t:n.value})},()=>{r&&i({key:e,value:t})}),()=>{r=!1}},[n,e]);let a=(0,P.useCallback)(t=>{i({key:e,value:t}),n[`storage/set`]({key:e,value:t}).catch(()=>void 0)},[n,e]);return[r?.key===e?r.value:void 0,a]}async function dt(e,t){try{return(await e[`files/url`]({path:t})).url}catch{return}}function ft(e,t){return e.versions.find(e=>e.key===t)??e.versions[0]}function pt(e,t,n){return e.filter(e=>e.piece===t&&(e.combo===void 0||n.lang===void 0||e.combo.lang===n.lang))}function mt(e,t){try{return new Intl.DisplayNames([t],{type:`language`}).of(e)??e}catch{return e}}function ht(e){if(typeof e==`object`&&e&&e.allyhub===!0&&typeof e.type==`string`)return e}function gt(e,t){e?.postMessage({allyhub:!0,...t},`*`)}function _t({delayDuration:e=0,...t}){return(0,F.jsx)(Se,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function vt({...e}){return(0,F.jsx)(we,{"data-slot":`tooltip`,...e})}function yt({...e}){return(0,F.jsx)(Ee,{"data-slot":`tooltip-trigger`,...e})}function bt({className:e,sideOffset:t=0,children:n,...r}){return(0,F.jsx)(ke,{children:(0,F.jsxs)(Ae,{"data-slot":`tooltip-content`,sideOffset:t,className:y(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,e),...r,children:[n,(0,F.jsx)(Ne,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}function xt(e,t,n,r=4){let i=e.map(({x:e,width:n},r)=>{let i=e+n>t&&e-n>=0?`before`:`after`;return i===`after`?{i:r,side:i,from:e,to:e+n}:{i:r,side:i,from:e-n,to:e}}),a=[],o=e.map(()=>null);for(let e of[...i].sort((e,t)=>e.from-t.from||e.i-t.i)){let t=0;for(;t<n&&(a[t]??-1/0)+r>e.from;)t++;t!==n&&(a[t]=e.to,o[e.i]={lane:t,side:e.side})}return o}var St=.01,Ct=new Map;async function wt(e){try{let t=await fetch(e);if(!t.ok)return;let n=await t.arrayBuffer(),r=await new OfflineAudioContext(1,1,44100).decodeAudioData(n),i=r.sampleRate/50,a=Math.ceil(r.length/i),o=new Float32Array(a),s=0;for(let e=0;e<r.numberOfChannels;e++){let t=r.getChannelData(e);for(let e=0;e<a;e++){let n=Math.min(t.length,Math.floor((e+1)*i)),r=o[e]??0;for(let a=Math.floor(e*i);a<n;a++){let e=Math.abs(t[a]??0);e>r&&(r=e)}o[e]=r,r>s&&(s=r)}}if(s<St)return;let c=Float32Array.from(o).sort(),l=c[Math.floor(c.length*.95)]??s;return{duration:r.duration,data:o,max:l>0?l:s}}catch{return}}function Tt(e){let t=Ct.get(e);return t||(t=wt(e),Ct.set(e,t)),t}function Et(e){let[t,n]=(0,P.useState)();(0,P.useEffect)(()=>{if(e===void 0)return;let t=!0;return Tt(e).then(r=>{t&&n({url:e,peaks:r})}),()=>{t=!1}},[e]);let r=t?.url===e?t:void 0;return{peaks:r?.peaks,settled:e===void 0||r!==void 0}}function Dt(e,t,n){let r=Math.max(0,Math.floor(t*50)),i=Math.min(e.data.length,Math.max(r+1,Math.ceil(n*50))),a=0;for(let t=r;t<i;t++){let n=e.data[t]??0;n>a&&(a=n)}return a}function Ot(e,t){if(e.length===0)return 0;let n=e[0];if(!n||t<=n.t)return n?.db??0;for(let n=1;n<e.length;n++){let r=e[n-1],i=e[n];if(r&&i&&t<=i.t)return i.t===r.t?i.db:r.db+(i.db-r.db)*(t-r.t)/(i.t-r.t)}return e.at(-1)?.db??0}function kt(e,t,n){let r=new Map(t.map(e=>[e.key,e])),i=e.parts.flatMap(e=>{let t=e.speech;if(!t)return[];let n=r.get(e.key);return[{...n?.speechKey===void 0?{}:{key:n.speechKey},part:e.key,start:t.start,end:t.end,text:n?.spoken??``,file:t.file,from:t.from,speed:t.speed??1,...t.cuts?{cuts:t.cuts}:{}}]}),a=n?.music,o;if(a&&a.segments.length>0){let t=a.segments[0],n=a.segments.at(-1),r=Math.min(e.duration,a.until??(n?n.at+n.dur:e.duration)),i=[];for(let e=1;e<a.duck.length;e++){let t=a.duck[e-1],n=a.duck[e];if(t&&n&&t.db<0&&n.db<0){let e=i.at(-1);e&&Math.abs(e.end-t.t)<1e-9?e.end=n.t:i.push({start:t.t,end:n.t})}}o={file:a.file,start:t?.at??0,end:r,stretches:a.segments.map(e=>({at:e.at,from:e.from,dur:e.dur})),ducked:i,duck:a.duck,fadeIn:a.fadeIn,fadeOut:a.fadeOut}}return{cues:e.cues,speech:i,music:o}}function At(e,t){if(t<e.start||t>=e.end)return;let n=e.start,r=e.from;for(let i of e.cuts??[]){if(i.at>t)break;n=i.at,r=i.from}return r+(t-n)*e.speed}function jt(e,t){for(let n=e.stretches.length-1;n>=0;n--){let r=e.stretches[n];if(r&&t>=r.at&&t<r.at+r.dur)return r.from+(t-r.at)}}function Mt(e,t){let n=10**(Ot(e.duck,t)/20);return e.fadeIn>0&&t-e.start<e.fadeIn&&(n*=Math.max(0,t-e.start)/e.fadeIn),e.fadeOut>0&&e.end-t<e.fadeOut&&(n*=Math.max(0,e.end-t)/e.fadeOut),Math.max(0,n)}function Nt(e){let t=new Set((e.index??[]).filter(e=>e.matte).map(e=>e.file));return e.parts.flatMap(n=>{let r=(e.footage??[]).find(e=>e.part===n.key&&t.has(e.file));return r?[{part:n.key,file:r.file}]:[]})}var Pt={scenes:`text-track-scene`,voice:`text-track-voice`,music:`text-track-music`,sound:`text-track-sound`},Z={ruler:20,scenes:36,voice:40,music:32,sound:28};function Ft(e){return Z.ruler+1+Z.scenes+1+e.reduce((e,t)=>e+Z[t]+1,0)}var It=6;function Lt(e,t){let n=e=>e.join(` `).replace(/\s+([.,!?;:。,!?;:、])/g,`$1`).trim(),[r,...i]=e;if(r===t&&i.length>0){let e=n(i);if(/^[^a-z]/.test(e))return e}return n(e)}function Rt(e){return e<=60?{minor:1,major:5}:e<=180?{minor:1,major:10}:e<=600?{minor:5,major:30}:e<=1800?{minor:10,major:60}:{minor:60,major:300}}var Q=(e,t)=>`${String(e/Math.max(t,1e-6)*100)}%`;function zt({title:e,mono:t=!1,time:n,line:r,children:i}){return(0,F.jsxs)(vt,{children:[(0,F.jsx)(yt,{asChild:!0,children:i}),(0,F.jsx)(bt,{side:`top`,sideOffset:6,className:`max-w-[20rem]`,children:(0,F.jsxs)(`span`,{className:`flex flex-col gap-0.5 text-left`,children:[(0,F.jsx)(`span`,{className:y(t&&`font-mono text-micro`),children:e}),(0,F.jsx)(`span`,{className:`font-mono text-micro tabular-nums opacity-70`,children:n}),r?(0,F.jsx)(`span`,{className:`opacity-80`,children:r}):null]})})]})}function Bt(e){let t=T(),[n,r]=(0,P.useState)();return(0,P.useEffect)(()=>{let n=!0;return dt(t,e).then(t=>{n&&r({file:e,url:t})}),()=>{n=!1}},[t,e]),n?.file===e?n.url:void 0}function Vt({file:e,from:t,to:n,sample:r,alpha:i,className:a}){let o=(0,P.useRef)(null),{peaks:s,settled:c}=Et(Bt(e)),[l,u]=(0,P.useState)(!1);return(0,P.useEffect)(()=>{let e=o.current;if(!e||!s)return;let a=()=>{let a=window.devicePixelRatio||1,o=Math.round(e.clientWidth*a),c=Math.round(e.clientHeight*a);if(!o||!c)return;e.width=o,e.height=c;let l=e.getContext(`2d`);if(!l)return;l.fillStyle=getComputedStyle(e).color,l.globalAlpha=i;let d=1/Math.max(s.max,.05),f=n-t,p=c-2*Math.round(2*a);for(let e=0;e<o;e+=2){let n=r(t+e/o*f);if(!n)continue;let i=Dt(s,n.at,n.at+2/o*f)*d*n.gain,a=Math.max(1,Math.round(Math.min(1,i)**Ht*p));l.fillRect(e,Math.round((c-a)/2),1,a)}u(!0)};a();let c=new ResizeObserver(a);c.observe(e);let l=new MutationObserver(a);return l.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>{c.disconnect(),l.disconnect()}},[s,t,n,r,i]),(0,F.jsx)(`canvas`,{ref:o,"aria-hidden":!0,"data-wave":l?`ready`:c?`none`:`pending`,className:y(`pointer-events-none absolute inset-0 size-full opacity-0 transition-opacity data-[wave=ready]:opacity-100`,a)})}var Ht=.7,Ut=`focus-visible:outline-ring absolute inset-y-1 overflow-hidden rounded-xs border focus-visible:outline-1 focus-visible:outline-solid focus-visible:-outline-offset-1`;function Wt({line:e,duration:t,onSeek:n}){let r=(0,P.useCallback)(t=>{let n=At(e,t);return n===void 0?void 0:{at:n,gain:1}},[e]);return(0,F.jsx)(zt,{title:e.text,time:`${Y(e.start)} – ${Y(e.end)} · ${Ke(e.file)}`,children:(0,F.jsxs)(`button`,{type:`button`,"data-sentence":e.key??e.part,"data-start":e.start.toFixed(4),className:y(Ut,`bg-track-voice/15 border-track-voice/60 hover:bg-track-voice/25 text-left`),style:{left:Q(e.start,t),width:Q(e.end-e.start,t)},onPointerDown:e=>{e.stopPropagation()},onClick:()=>{n(e.start)},children:[(0,F.jsx)(`span`,{className:`absolute inset-x-1.5 top-0 block h-[14px] truncate text-micro leading-[14px]`,children:e.text}),(0,F.jsx)(`span`,{className:`absolute inset-x-0 top-[14px] bottom-0`,children:(0,F.jsx)(Vt,{file:e.file,from:e.start,to:e.end,sample:r,alpha:.7,className:`text-track-voice`})})]})})}var Gt=2,Kt=.75;function qt({parts:e,duration:t}){let n=(0,P.useRef)(null),r=(0,P.useRef)(new Map),[i,a]=(0,P.useState)(0),[o,s]=(0,P.useState)(()=>new Map),c=e.flatMap(e=>(e.anchors??[]).map(t=>({id:`${e.key}@${t.name}`,part:e.key,anchor:t}))),l=c.map(e=>e.id).join(`
2
+ `);(0,P.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=()=>{a(e.clientWidth);let t=new Map;for(let[e,n]of r.current)t.set(e,n.offsetWidth);s(e=>e.size===t.size&&[...t].every(([t,n])=>e.get(t)===n)?e:t)};t();let i=new ResizeObserver(t);i.observe(e);for(let e of r.current.values())i.observe(e);return()=>{i.disconnect()}},[l]);let u=xt(c.map(e=>({x:e.anchor.at/Math.max(t,1e-6)*i,width:o.get(e.id)??0})),i,Gt);return(0,F.jsx)(`div`,{ref:n,className:`pointer-events-none absolute inset-0`,children:c.map((e,n)=>(0,F.jsx)(Jt,{part:e.part,anchor:e.anchor,duration:t,place:u[n]??null,nameRef:t=>(r.current.set(e.id,t),()=>{r.current.delete(e.id)})},e.id))})}function Jt({part:e,anchor:t,duration:n,place:r,nameRef:i}){let{at:a,end:o}=t,s=(a,o)=>(0,F.jsx)(`span`,{"data-anchor":`${e}:${t.name}${a?`:end`:``}`,"data-time":o.toFixed(4),title:t.name,className:`before:bg-foreground/70 absolute inset-y-0 z-10 -ml-1 w-2 before:absolute before:inset-y-0 before:left-1/2 before:w-px`,style:{left:Q(o,n)},children:!a&&(0,F.jsx)(`span`,{ref:i,"data-anchor-lane":r?String(r.lane):void 0,className:y(`bg-background text-muted-foreground absolute rounded-xs px-0.5 font-mono text-micro leading-3 whitespace-nowrap`,r?.side===`before`?`right-1/2 mr-px`:`left-1/2 ml-px`,!r&&`invisible`),style:{bottom:`${String((r?.lane??0)*Kt)}rem`},children:t.name})},a?`end`:`at`);return(0,F.jsxs)(F.Fragment,{children:[o!==void 0&&o>a&&(0,F.jsx)(`span`,{className:`bg-foreground/50 pointer-events-none absolute bottom-0 z-10 h-px`,style:{left:Q(a,n),width:Q(o-a,n)}}),s(!1,a),o!==void 0&&s(!0,o)]})}function Yt({music:e,duration:t,ducked:n}){let{start:r,end:i}=e,a=(0,P.useCallback)(t=>{let n=jt(e,t);return n===void 0?void 0:{at:n,gain:Mt(e,t)}},[e]),o=Ke(e.file);return(0,F.jsx)(zt,{mono:!0,title:o,time:`${Y(r)} – ${Y(i)}`,line:e.ducked.length?n:void 0,children:(0,F.jsxs)(`div`,{"data-music":o,className:y(Ut,`bg-track-music/15 border-track-music/60`),style:{left:Q(r,t),width:Q(i-r,t)},children:[(0,F.jsx)(Vt,{file:e.file,from:r,to:i,sample:a,alpha:.6,className:`text-track-music`}),(0,F.jsx)(`span`,{className:`bg-background/85 text-foreground absolute top-1/2 left-1.5 -translate-y-1/2 rounded-xs px-1 font-mono text-micro leading-[14px]`,children:o})]})})}var Xt=(0,P.memo)(function({timeline:e,texts:t,tracks:n,rows:r,current:i,second:a,onSeek:o}){let s=X(),{duration:c,parts:l}=e,u=e=>(0,F.jsx)(`span`,{className:`text-muted-foreground bg-background pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 px-1 text-xs leading-4`,children:e}),d=n.speech,f=n.music?[n.music]:[],p=n.cues,m=e=>l.find(t=>t.key===e)?.title??e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`div`,{className:`relative border-t`,style:{height:Z.scenes+1},"data-row":`scenes`,children:l.map((e,n)=>{let r=e.key===i,s=e.title??e.key,l=t.find(t=>t.key===e.key),u=l?.spoken??Lt(l?.onScreen??[],s),d=(e.end-e.start)*a<56;return(0,F.jsx)(zt,{title:(0,F.jsx)(`span`,{className:`font-serif text-dense`,children:s}),time:`${Y(e.start)} – ${Y(e.end)}`,line:u||void 0,children:(0,F.jsxs)(`button`,{type:`button`,"data-chapter":e.key,"data-start":e.start.toFixed(4),"aria-current":r?`true`:void 0,className:y(Ut,`flex items-center gap-1.5 px-2 text-left transition-colors`,r?`bg-track-scene/25 border-track-scene`:`bg-track-scene/10 border-track-scene/45 hover:bg-track-scene/20`),style:{left:Q(e.start,c),width:`calc(${Q(e.end-e.start,c)} - 1px)`},onPointerDown:e=>{e.stopPropagation()},onClick:()=>{o(e.start)},children:[(0,F.jsx)(`span`,{className:y(`font-mono text-micro tabular-nums`,r?`text-foreground/70`:`text-muted-foreground`),children:String(n+1)}),d?null:(0,F.jsx)(`span`,{className:y(`min-w-0 truncate font-serif text-xs`,r?`font-semibold`:`text-foreground/80`),children:s})]})},e.key)})}),r.includes(`voice`)?(0,F.jsxs)(`div`,{className:`relative border-t`,style:{height:Z.voice+1},"data-row":`voice`,children:[d.length>0?d.map(e=>(0,F.jsx)(Wt,{line:e,duration:c,onSeek:o},`${e.part}@${String(e.start)}`)):u(s.noVoice),(0,F.jsx)(qt,{parts:l,duration:c})]}):null,r.includes(`music`)?(0,F.jsx)(`div`,{className:`relative border-t`,style:{height:Z.music+1},"data-row":`music`,children:f.length?f.map(e=>(0,F.jsx)(Yt,{music:e,duration:c,ducked:s.ducked},`${e.file}@${String(e.start)}`)):u(s.noMusic)}):null,r.includes(`sound`)?(0,F.jsxs)(`div`,{className:`relative border-t`,style:{height:Z.sound+1},"data-row":`sound`,children:[(0,F.jsx)(`span`,{className:`bg-rule-strong absolute inset-x-0 top-1/2 h-px`}),p.length?p.map((e,t)=>(0,F.jsx)(zt,{mono:!0,title:e.sound,time:`${Y(e.t)} · ${m(e.part)}`,line:e.what,children:(0,F.jsx)(`span`,{"data-cue":e.sound,className:`absolute top-1/2 block size-[7px] -translate-y-1/2`,style:{left:Q(e.t,c)},children:(0,F.jsx)(`span`,{className:y(`bg-track-sound block size-full rotate-45`,e.t*a<5?`translate-x-[2px]`:`-translate-x-1/2`)})})},`${e.sound}@${String(e.t)}#${String(t)}`)):u(s.noCues)]}):null]})});function Zt({timeline:e,texts:t,tracks:n,rows:r,state:i,onSeek:a}){let o=X(),{duration:s,fps:c,parts:l}=e,u=Math.max(0,s-1/c),d=(0,P.useRef)(null),f=(0,P.useRef)(null),[p,m]=(0,P.useState)(0),[h,g]=(0,P.useState)(!1),[_,v]=(0,P.useState)();(0,P.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=()=>{m(e.clientWidth)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let b=p>0&&p/s<It,x=b?Math.ceil(s*It):p,S=x/Math.max(s,1e-6),{t:C,playing:w}=i;(0,P.useEffect)(()=>{let e=f.current;if(!e)return;let t=t=>{let n=Math.min(Math.max(t,0),s)*S;e.style.transform=`translateX(${String(n)}px)`;let r=d.current;b&&w&&r&&(n<r.scrollLeft+24||n>r.scrollLeft+r.clientWidth-24)&&(r.scrollLeft=Math.max(0,n-r.clientWidth*.2))};if(t(C),!w)return;let n=performance.now(),r=requestAnimationFrame(function e(i){t(Math.min(C+(i-n)/1e3,u)),r=requestAnimationFrame(e)});return()=>{cancelAnimationFrame(r)}},[C,w,S,s,u,b]);let T=e=>{let t=e.currentTarget.getBoundingClientRect(),n=Math.min(t.width,Math.max(0,e.clientX-t.left))/Math.max(t.width,1)*s;return Math.min(Math.max(Ge(n,c),0),u)},E=e=>{a(Math.min(Math.max(Ge(e,c),0),u))},D=l.find(e=>i.t>=e.start&&i.t<e.end)??l.at(-1),{minor:O,major:k}=Rt(s),ee=[];for(let e=0;e<=s+1e-6;e+=O)ee.push(e);let A=(e,t)=>(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 overflow-hidden border-t pr-2 pl-3 max-[559px]:justify-center max-[559px]:px-0`,style:{height:Z[e]+1},"data-track":e,children:[(0,F.jsx)(`span`,{role:`img`,"aria-label":o.rows[e],className:y(`shrink-0 [&_svg]:size-3.5`,Pt[e]),children:t}),(0,F.jsx)(Ve,{"aria-hidden":!0,className:`text-micro whitespace-nowrap max-[559px]:hidden`,children:o.rows[e]})]});return(0,F.jsx)(_t,{delayDuration:250,children:(0,F.jsxs)(`div`,{className:`flex border-t`,style:{height:Ft(r)+1},"data-testid":`timeline`,children:[(0,F.jsxs)(`div`,{className:`w-max min-w-20 shrink-0 border-r max-[559px]:w-10 max-[559px]:min-w-10`,children:[(0,F.jsx)(`div`,{style:{height:Z.ruler}}),A(`scenes`,(0,F.jsx)(he,{})),r.includes(`voice`)?A(`voice`,(0,F.jsx)(_e,{})):null,r.includes(`music`)?A(`music`,(0,F.jsx)(M,{})):null,r.includes(`sound`)?A(`sound`,(0,F.jsx)(ge,{})):null]}),(0,F.jsx)(`div`,{ref:d,className:y(`relative min-w-0 flex-1 overflow-y-hidden border-l border-transparent`,b?`overflow-x-auto`:`overflow-x-hidden`),"data-testid":`tracks`,children:(0,F.jsxs)(`div`,{className:`relative h-full cursor-pointer touch-none`,style:{width:x||`100%`},onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),g(!0),a(T(e))},onPointerMove:e=>{let t=T(e);v(t),h&&a(t)},onPointerUp:()=>{g(!1)},onPointerCancel:()=>{g(!1)},onPointerLeave:()=>{v(void 0)},children:[(0,F.jsx)(`div`,{role:`slider`,tabIndex:0,"aria-label":o.seek,"aria-valuemin":0,"aria-valuemax":Math.round(s*100)/100,"aria-valuenow":Math.round(i.t*100)/100,"aria-valuetext":o.timeOf(J(i.t),J(s),D?.title??``),"data-testid":`scrubber`,className:`focus-visible:outline-ring relative outline-none focus-visible:outline-1 focus-visible:outline-solid focus-visible:-outline-offset-1`,style:{height:Z.ruler},onKeyDown:e=>{if(e.key===`ArrowLeft`)E(i.t-1);else if(e.key===`ArrowRight`)E(i.t+1);else if(e.key===`Home`)E(0);else if(e.key===`End`)E(u);else return;e.preventDefault()},children:ee.map(e=>{let t=Math.abs(e/k-Math.round(e/k))<1e-6;return(0,F.jsxs)(`span`,{className:`absolute bottom-0`,style:{left:Q(e,s)},children:[(0,F.jsx)(`span`,{className:y(`absolute bottom-0 left-0 w-px`,t?`bg-lead-soft h-2`:`bg-rule-strong h-1`)}),t&&(s-e)*S>34?(0,F.jsx)(`span`,{className:`text-muted-foreground absolute bottom-[7px] left-1 font-mono text-micro leading-none tabular-nums`,children:J(e)}):null]},e)})}),(0,F.jsx)(Xt,{timeline:e,texts:t,tracks:n,rows:r,current:i.part??D?.key,second:S,onSeek:a}),_===void 0?null:(0,F.jsxs)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 left-0 z-10`,style:{transform:`translateX(${String(_*S)}px)`},"data-testid":`hover-guide`,children:[(0,F.jsx)(`span`,{className:`bg-foreground/25 absolute inset-y-0 left-0 w-px`}),(0,F.jsx)(`span`,{className:`bg-popover text-popover-foreground absolute top-0.5 left-1 rounded-xs border px-1 font-mono text-micro leading-[14px] tabular-nums`,children:J(_)})]}),(0,F.jsxs)(`div`,{ref:f,"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 left-0 z-20 will-change-transform`,"data-testid":`playhead`,children:[(0,F.jsx)(`span`,{className:`bg-foreground absolute inset-y-0 left-0 w-px`}),(0,F.jsx)(`svg`,{viewBox:`0 0 9 9`,className:`text-foreground absolute top-0 -left-1 size-[9px]`,children:(0,F.jsx)(`path`,{d:`M0 0h9v4L4.5 9 0 4z`,fill:`currentColor`})})]})]})})]})})}var Qt=48,$t=[`voice`,`music`,`sound`],en=[`voice`],tn=[],nn=160,rn=560,an=1e3,on=20,sn=1500,cn=15e3,ln=e=>({timeline:e.timeline,texts:e.text,tracks:kt(e.timeline,e.text,e.mix),uncut:Nt(e.timeline)});function un({item:e,version:t,revision:n,width:r,height:i,start:a,overlay:o,onLoaded:s,onError:c,onState:l,ref:u}){let d=X(),f=T(),p=(0,P.useRef)(null),m=(0,P.useRef)(new Map),[h,g]=(0,P.useState)(),[_,v]=(0,P.useState)(),[x,C]=(0,P.useState)(),[w,E]=(0,P.useState)(),[D,k]=(0,P.useState)(!1),[A,te]=(0,P.useState)(),ne=ee(A),[j,re]=(0,P.useState)({t:a?.t??0,part:void 0,playing:!1}),[ae,se]=(0,P.useState)(0),[ce,le]=(0,P.useState)(),[ue=!0,de]=ut(`video-editor.timeline`,!0),fe=(0,P.useRef)(null),[pe,me]=(0,P.useState)(0),he=(0,P.useRef)(1),ge=(0,P.useRef)(void 0),_e=(0,P.useRef)(!1),M=(0,P.useCallback)(e=>{let t=Math.max(0,e);ge.current!==t&&(ge.current=t,f[`editor/place`]({place:{t}}).catch(()=>void 0))},[f]),N=(0,P.useRef)({shown:h,pending:_,play:j,view:x,onLoaded:s,onError:c,onState:l});(0,P.useEffect)(()=>{N.current={shown:h,pending:_,play:j,view:x,onLoaded:s,onError:c,onState:l}});let I=e=>e===void 0?void 0:p.current?.querySelector(`iframe[data-frame="${String(e.id)}"]`)?.contentWindow,L=e=>{gt(I(N.current.shown),e)};(0,P.useImperativeHandle)(u,()=>({seek:e=>{L({type:`seek`,t:e}),M(e)},play:()=>{L({type:`play`})},pause:()=>{L({type:`pause`})}}));let R=n=>S(f,`video/stage`,{item:e,version:t,start:n,chrome:!1}).then(e=>(te(e.probe),e.url)),ye=`${e}\n${t}`,z=(0,P.useRef)(e);(0,P.useEffect)(()=>{let{shown:t,play:n}=N.current,r=z.current===e;z.current=e;let i={t:0},o=t?r?{t:n.t}:i:a??i,s=!0;return R(o).then(e=>{s&&(g({id:he.current++,src:e}),v(void 0),E(void 0))},e=>{if(!s)return;let t=e instanceof Error?e.message:String(e);E(t),N.current.onError?.(t)}),()=>{s=!1}},[ye]);let be=(0,P.useRef)(n);(0,P.useEffect)(()=>{if(n===be.current)return;be.current=n;let{shown:e,play:t,view:r}=N.current;if(!e)return;let i=r?.timeline.parts.find(e=>t.t>=e.start&&t.t<e.end),a=i?{t:t.t,part:i.key,offset:t.t-i.start,dur:i.end-i.start}:{t:t.t},o=!0;return R(a).then(e=>{o&&v({id:he.current++,src:e,from:t.t})},e=>{o&&N.current.onError?.(e instanceof Error?e.message:String(e))}),()=>{o=!1}},[n]),(0,P.useEffect)(()=>{if(!_)return;let e=setTimeout(()=>{v(void 0),N.current.onError?.(d.loadFailed)},cn);return()=>{clearTimeout(e)}},[_,d.loadFailed]),(0,P.useEffect)(()=>{let e=e=>{let t=ht(e.data);if(!t)return;let{shown:n,pending:r}=N.current,i=[n,r].find(t=>t!==void 0&&I(t)===e.source);if(!i)return;let a=i.id===r?.id;if(t.type===`located`)m.current.get(t.id)?.(t.layers),m.current.delete(t.id);else if(t.type===`sound`)i.denoising=t.denoising,a||k(t.denoising);else if(t.type===`loaded`){let e={kind:t.kind,timeline:t.timeline,text:t.text,reads:t.reads,problems:t.problems,mix:t.mix};if(a){i.loaded=e;return}C(ln(e)),E(void 0),N.current.onLoaded?.(e)}else if(t.type===`error`)a?v(void 0):E(t.message),N.current.onError?.(t.message);else if(t.type===`time`){if(a){if(!i.loaded)return;g(i),v(void 0),se(e=>e+1),k(i.denoising===!0),C(ln(i.loaded)),E(void 0),N.current.onLoaded?.(i.loaded);let t=N.current.play.t;if(i.from!==void 0&&Math.abs(t-i.from)>1e-6){gt(e.source,{type:`seek`,t});return}}let n={t:t.t,part:t.part,playing:t.playing};n.playing&&_e.current||M(n.t),_e.current=n.playing,le(i.id),re(n),N.current.onState?.(n)}};return window.addEventListener(`message`,e),()=>{window.removeEventListener(`message`,e)}},[M]);let B=x?.timeline,[V,xe]=B?[B.width,B.height]:[r,i],H=x?.uncut.find(e=>e.part===j.part);(0,P.useLayoutEffect)(()=>{let e=fe.current;if(!e)return;let t=()=>{me(e.clientHeight)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let Se=B!==void 0,U=j.playing;(0,P.useEffect)(()=>{if(!Se)return;let e=e=>{if(e.key!==` `||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;t instanceof HTMLElement&&(t.isContentEditable||t.closest(`input,textarea,select,button,a,[role=slider],[role=menuitem],[role=dialog]`))||(e.preventDefault(),gt(I(N.current.shown),{type:U?`pause`:`play`}))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[Se,U]);let Ce=e=>{L({type:`seek`,t:e}),M(e)},W=(e,t)=>(0,F.jsx)(`iframe`,{"data-frame":e.id,src:e.src,title:d.previewTitle,...ne?{sandbox:`allow-scripts`}:{},allow:`autoplay`,"data-testid":t?`stage-pending`:`stage`,className:y(`absolute -inset-0.5 size-[calc(100%+4px)] border-0`,t&&`pointer-events-none opacity-0`)},e.id),we=B?`bg-background`:`bg-black`,Te=(0,F.jsxs)(F.Fragment,{children:[h&&ne!==void 0?W(h,!1):null,_&&ne!==void 0?W(_,!0):null,B||w!==void 0?null:(0,F.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,F.jsx)(He,{label:d.loading,className:`[&>span]:bg-on-media/80`})}),D?(0,F.jsx)(`span`,{className:`bg-background/90 text-muted-foreground absolute top-2 right-2 rounded-sm px-2 py-0.5 font-mono text-micro`,"data-testid":`denoising`,children:d.denoising}):null,B?(0,F.jsx)(`span`,{"aria-hidden":!0,"data-testid":`play-affordance`,"data-shown":!j.playing&&j.t<.05?``:void 0,className:`bg-foreground/92 text-background pointer-events-none absolute top-1/2 left-1/2 flex size-14 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-md opacity-0 transition-opacity data-[shown]:opacity-100`,children:(0,F.jsx)(ve,{className:`size-6 translate-x-px fill-current`})}):null,H?(0,F.jsx)(`span`,{className:`bg-background/90 text-muted-foreground absolute top-2 left-2 max-w-[calc(100%-1rem)] rounded-sm px-2 py-0.5 font-mono text-micro`,"data-testid":`uncut`,children:d.uncut(H.file)}):null,o]}),Ee=ce!==void 0&&ce===h?.id,De=async()=>{L({type:`pause`});let e=Date.now()+an;for(;N.current.play.playing&&Date.now()<e;)await new Promise(e=>{setTimeout(e,on)})},Oe=e=>{let t=p.current?.getBoundingClientRect();if(!t||t.width===0||t.height===0)return Promise.resolve([]);let n=crypto.randomUUID();return new Promise(r=>{let i=setTimeout(()=>{m.current.delete(n),r([])},sn);m.current.set(n,e=>{clearTimeout(i),r(e)}),L({type:`locate`,id:n,mark:oe(e,({x:e,y:n})=>({x:(e-t.x)/t.width,y:(n-t.y)/t.height}))})})},G=O()?.item.entry;b({freeze:async()=>{await De();let{t:n,part:r}=N.current.play;return{key:`${e}@${t}@${n.toFixed(3)}@${String(N.current.shown?.id??0)}`,what:`The video ${e}, version ${t}, at ${n.toFixed(2)} s${r===void 0?``:`, in the part ${r}`}`,...G===void 0?{}:{source:{path:G}}}},pictures:async()=>{let n=p.current?.getBoundingClientRect();if(!n)return[];let r=await S(f,`video/still`,{item:e,version:t,t:N.current.play.t}).catch(()=>void 0);return r?[{rect:{x:n.x,y:n.y,width:n.width,height:n.height},mime:r.image.mime,data:r.image.data}]:[]},locate:async e=>{let t=p.current?.getBoundingClientRect();return t&&ie(e,t)?(await Oe(e)).map(e=>({name:`${e.name===void 0?`the ${e.layer} layer`:`layer ${JSON.stringify(e.name)}`} of part ${e.part}`,...G===void 0?{}:{source:{path:G}},...e.text===void 0?{}:{text:e.text}})):[...document.querySelectorAll(`[data-row]`)].filter(t=>ie(e,t.getBoundingClientRect())).map(e=>({name:`the ${e.dataset.row??``} row of the timeline`}))}});let ke=e=>pe-Qt-3-Ft(e)-1,K=[$t,en].find(e=>ke(e)>=nn)??tn,Ae=B&&ue?Ft(K)+1:0,je=51+Ae,q=`min(100cqw - 2px, (100cqh - ${String(je)}px) * ${String(V/xe)})`,Me=Ae?`max(${q}, min(100cqw - 2px, ${String(rn)}px))`:q;return(0,F.jsx)(`div`,{className:`flex h-full min-h-0 flex-col gap-2`,"data-testid":`video-preview`,"data-t":j.t.toFixed(4),"data-ready":Ee?``:void 0,"data-swaps":ae,children:(0,F.jsx)(`div`,{ref:fe,className:`flex min-h-0 flex-1 flex-col items-center justify-start [container-type:size]`,children:(0,F.jsxs)(`div`,{className:`box-content overflow-hidden border`,style:{width:Me},"data-testid":`player`,children:[(0,F.jsx)(`div`,{ref:p,className:y(`relative mx-auto overflow-hidden`,we),style:{width:q,height:`calc(${q} * ${String(xe/V)})`},children:Te}),B?(0,F.jsx)(dn,{timeline:B,state:j,open:ue,onOpen:de,onToggle:()=>{L({type:j.playing?`pause`:`play`})},onSeek:Ce}):(0,F.jsx)(`div`,{className:`h-12 border-t`}),B&&ue?(0,F.jsx)(Zt,{timeline:B,texts:x.texts,tracks:x.tracks,rows:K,state:j,onSeek:Ce}):null]})})})}var $=2;function dn({timeline:e,state:t,open:n,onOpen:r,onToggle:i,onSeek:a}){let o=X(),{parts:s}=e,c=Math.max(0,s.findIndex((e,n)=>n===s.length-1||t.t<e.end)),l=s[c];return(0,F.jsxs)(`div`,{className:`relative flex h-12 items-center gap-3 border-t px-3`,"data-testid":`transport`,children:[(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(A,{size:`icon-sm`,className:`rounded-md`,"aria-label":t.playing?o.pause:o.play,"data-testid":`play`,onClick:i,children:t.playing?(0,F.jsx)(N,{className:`fill-current`}):(0,F.jsx)(ve,{className:`translate-x-px fill-current`})}),(0,F.jsxs)(`span`,{className:`shrink-0 font-mono text-xs tabular-nums`,"data-testid":`clock`,children:[J(Math.min(t.t,e.duration)),(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[` / `,J(e.duration)]})]})]}),n?(0,F.jsx)(`span`,{className:`flex min-w-0 flex-1`,children:l?(0,F.jsxs)(`span`,{className:`text-muted-foreground max-w-[40%] truncate font-mono text-micro`,"data-testid":`scene-now`,children:[String(c+1),` · `,l.title??l.key]}):null}):(0,F.jsx)(fn,{timeline:e,state:t,onSeek:a}),(0,F.jsx)(A,{size:`icon-sm`,variant:`ghost`,className:`text-muted-foreground -mr-1`,"aria-label":n?o.hideTimeline:o.showTimeline,title:n?o.hideTimeline:o.showTimeline,"aria-expanded":n,"data-testid":`timeline-toggle`,onClick:()=>{r(!n)},children:n?(0,F.jsx)(ae,{}):(0,F.jsx)(de,{})})]})}function fn({timeline:e,state:t,onSeek:n}){let r=X(),{duration:i,fps:a}=e,o=Math.max(0,i-1/a),s=e.parts.length?e.parts.map((e,t)=>({key:e.key,name:e.title??String(t+1),start:e.start,end:e.end})):[{key:``,name:``,start:0,end:i}],c=(s.length-1)*$,[l,u]=(0,P.useState)(),[d,f]=(0,P.useState)(),p=Math.min(l??t.t,i),m=e=>Math.max(0,s.findIndex((t,n)=>n===s.length-1||e<t.end)),h=s[m(p)],g=e=>{let t=e.currentTarget.getBoundingClientRect(),n=Math.min(t.width,Math.max(0,e.clientX-t.left)),r=Math.max(1,t.width-c),l=0,u=i;for(let e of s){let t=r*(e.end-e.start)/Math.max(i,1e-6);if(n<=l+t+$/2){let r=Math.min(1,Math.max(0,(n-l)/Math.max(t,1)));u=e.start+r*(e.end-e.start);break}l+=t+$}return{x:n,t:Math.min(Math.max(Ge(u,a),0),o)}},_=e=>{n(Math.min(Math.max(Ge(e,a),0),o))},v=d?s[m(d.t)]?.name:void 0;return(0,F.jsxs)(`div`,{role:`slider`,tabIndex:0,"aria-label":r.seek,"aria-valuemin":0,"aria-valuemax":Math.round(i*100)/100,"aria-valuenow":Math.round(p*100)/100,"aria-valuetext":r.timeOf(J(p),J(i),h?.name??``),"data-testid":`scrubber`,className:`group/scrub focus-visible:outline-ring relative h-6 min-w-0 flex-1 cursor-pointer touch-none rounded-sm outline-none focus-visible:outline-1 focus-visible:outline-solid focus-visible:-outline-offset-1`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId);let t=g(e);u(t.t),f(t),n(t.t)},onPointerMove:e=>{let t=g(e);f(t),l!==void 0&&t.t!==l&&(u(t.t),n(t.t))},onPointerUp:()=>{u(void 0)},onPointerCancel:()=>{u(void 0)},onPointerLeave:()=>{f(void 0)},onKeyDown:e=>{if(e.key===`ArrowLeft`)_(t.t-1);else if(e.key===`ArrowRight`)_(t.t+1);else if(e.key===`Home`)_(0);else if(e.key===`End`)_(o);else return;e.preventDefault()},children:[(0,F.jsx)(`div`,{className:`absolute inset-x-0 top-1/2 flex h-1 -translate-y-1/2 transition-[height] duration-100 group-hover/scrub:h-1.5`,style:{gap:$},children:s.map(e=>{let t=Math.max(e.end-e.start,1e-6),n=Math.min(1,Math.max(0,(p-e.start)/t));return(0,F.jsx)(`span`,{"data-chapter":e.key,className:`bg-rule-strong relative min-w-0 overflow-hidden`,style:{flexGrow:t,flexBasis:0},children:(0,F.jsx)(`span`,{className:`bg-foreground absolute inset-y-0 left-0`,style:{width:`${String(n*100)}%`}})},e.key)})}),(0,F.jsx)(`span`,{"aria-hidden":!0,className:`bg-foreground ring-background pointer-events-none absolute top-1/2 h-3 w-[3px] -translate-x-1/2 -translate-y-1/2 ring-1`,style:{left:`calc((100% - ${String(c)}px) * ${String(p/Math.max(i,1e-6))} + ${String(m(p)*$)}px)`}}),d?(0,F.jsxs)(`span`,{role:`tooltip`,"data-testid":`scrub-tip`,className:`bg-popover text-popover-foreground shadow-overlay pointer-events-none absolute bottom-full z-10 mb-1.5 flex max-w-[16rem] -translate-x-1/2 items-baseline gap-2 rounded-sm px-2 py-1 whitespace-nowrap`,style:{left:d.x},children:[v?(0,F.jsx)(`span`,{className:`truncate font-serif text-dense`,children:v}):null,(0,F.jsx)(`span`,{className:`text-muted-foreground font-mono text-micro tabular-nums`,children:J(d.t)})]}):null]})}var pn={error:0,warn:1};function mn(e){let t=new Set;return[...e].sort((e,t)=>pn[e.level]-pn[t.level]).filter(e=>{let n=`${e.code}\u0000${e.message}\u0000${e.where?.file??``}`;return!t.has(n)&&(t.add(n),!0)})}function hn({error:e,problems:t,compact:n}){let i=X(),[a,o]=(0,P.useState)(!1),s=mn(t);return e===void 0?s.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`bg-background/90 text-foreground absolute bottom-2 left-2 z-20 flex items-center gap-1.5 rounded-sm px-2 py-1 font-mono text-micro`,onClick:()=>{o(!a)},"aria-expanded":a,"data-testid":`problems-chip`,children:[(0,F.jsx)(r,{className:y(`size-3.5`,s.some(e=>e.level===`error`)?`text-problem-text`:`text-caution-text`)}),i.problemsHere(s.length)]}),a?(0,F.jsxs)(`div`,{className:`bg-card absolute bottom-10 left-2 z-30 flex max-h-[60%] w-[min(420px,calc(100%-1rem))] flex-col rounded-md border shadow-[var(--allyhub-shadow-overlay)]`,"data-testid":`problems`,children:[(0,F.jsx)(`div`,{className:`flex items-center justify-end border-b px-1 py-1`,children:(0,F.jsx)(A,{size:`icon-xs`,variant:`ghost`,"aria-label":i.close,onClick:()=>{o(!1)},children:(0,F.jsx)(h,{})})}),(0,F.jsx)(`ul`,{className:`divide-y overflow-y-auto`,children:s.map((e,t)=>(0,F.jsxs)(`li`,{"data-code":e.code,className:`px-3 py-2 text-sm leading-relaxed`,children:[(0,F.jsxs)(`span`,{className:`text-muted-foreground mr-2 font-mono text-micro`,children:[e.level===`error`?i.levelError:i.levelWarn,` ·`,` `,e.code]}),e.message]},`${e.code}-${String(t)}`))})]}):null]}):null:(0,F.jsx)(`div`,{className:y(`z-20 overflow-auto text-left`,n?`bg-background/94 absolute inset-x-0 bottom-0 max-h-[45%] border-t px-4 py-3`:`bg-background/96 absolute inset-0 grid content-center justify-items-center p-5 text-center`),"data-testid":`stage-overlay`,"data-compact":n?`true`:void 0,role:`alert`,children:(0,F.jsxs)(`p`,{className:`flex items-center gap-1.5 text-sm`,children:[(0,F.jsx)(r,{className:`text-problem-text size-4`,"aria-hidden":!0}),n?i.previewFailedKept:i.previewFailed]})})}var gn=1200;function _n({item:e,piece:t,version:n,revision:r,start:i,problems:a,stageProblems:o=!0,loaded:s,onLoaded:c}){let[l,u]=(0,P.useState)(),[d,f]=(0,P.useState)();(0,P.useEffect)(()=>{if(l===void 0)return;let e=setTimeout(()=>{f(l)},gn);return()=>{clearTimeout(e)}},[l]);let p=l!==void 0&&d===l?l:void 0,[m,h]=(0,P.useState)(n.key);m!==n.key&&(h(n.key),u(void 0));let g=[...a,...o?s?.problems??[]:[]];return(0,F.jsx)(`div`,{className:`bg-paper size-full p-4 min-[560px]:p-6`,children:(0,F.jsx)(un,{item:e,version:n.key,revision:r,start:i,width:t.width,height:t.height,overlay:(0,F.jsx)(hn,{error:p,problems:g,compact:s!==void 0}),onLoaded:e=>{c(e),u(void 0)},onError:u})})}function vn(e,t,n){let r=t.versions.filter(e=>n?.includes(e.key)!==!1).flatMap(n=>pt(e,t.piece,n)).filter(e=>e.level===`error`).map(e=>`${e.code}: ${e.message}`);return new Set(r).size}function yn(){let e=X(),t=O(),n=t?.item.dir,r=w[D(t?.locale)],i=t?.place,a=ct(),{data:o,error:s}=st(`video/versions`,n===void 0?void 0:{item:n},[a]),[c,l]=ut(`video-editor.version:${n??``}`,``),u=lt(),d=o?ft(o,c):void 0,[f,p]=(0,P.useState)(),m=d&&f?.key===`${n??``}\n${d.key}`?f.loaded:void 0;if(n===void 0||!o&&!s)return(0,F.jsx)(`div`,{className:`flex h-full items-center justify-center`,children:(0,F.jsx)(He,{label:e.loading})});if(!o||!d)return(0,F.jsx)(Ue,{title:e.noVideo,className:`h-full justify-center`,children:s?.message});let h=t?.viewer===!0,g=u&&!h?pt(u.problems,o.piece,d):[],_=e=>e.lang===void 0?e.key:mt(e.lang,r),v=o.kind===`video`?m?.timeline:void 0,y=o.kind===`video`&&m!==void 0&&!m.text.some(e=>e.spoken!==void 0);return(0,F.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,"data-testid":`video-editor`,children:[(0,F.jsx)(le,{start:o.versions.length>1?(0,F.jsx)(ue,{testid:`video-bar`,children:(0,F.jsx)(pe,{id:`language`,children:(0,F.jsxs)(me,{value:d.key,onValueChange:e=>{l(e)},children:[(0,F.jsx)(j,{"aria-label":e.version,className:`max-w-[16rem]`,"data-testid":`version`,children:(0,F.jsx)(se,{})}),(0,F.jsx)(ce,{position:`popper`,align:`start`,children:o.versions.map(e=>(0,F.jsx)(re,{value:e.key,className:`text-xs`,title:e.key,children:_(e)},e.key))})]})})}):void 0,exports:{versions:o.versions.map(e=>({key:e.key,label:_(e)})),shown:d.key,facts:[`${String(o.width)} × ${String(o.height)}`,...v?[`${String(v.fps)} fps`,J(v.duration)]:[]].join(` · `),unavailable:y?{srt:e.noVoice}:{},check:{waiting:u?.status===`waiting`||u?.status===`running`,problems:e=>u?.status===`done`?vn(u.problems,o,e):0}}}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,F.jsx)(_n,{item:n,piece:o,version:d,revision:a,start:i!==void 0&&`t`in i?{t:i.t}:void 0,problems:g,stageProblems:!h,loaded:m,onLoaded:e=>{p({key:`${n}\n${d.key}`,loaded:e})}})})]})}var bn=e({VideoEditor:()=>yn});export{ft as a,ut as c,He as d,ve as f,mt as i,st as l,vn as n,lt as o,N as p,ht as r,ct as s,bn as t,Ue as u};