hyperframes 0.8.221 → 0.8.223

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 (262) hide show
  1. package/dist/{add-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
  2. package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
  3. package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
  4. package/dist/api.d.ts +5 -3
  5. package/dist/api.js +38 -26
  6. package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
  7. package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
  8. package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
  9. package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
  10. package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
  11. package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
  14. package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
  15. package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
  16. package/dist/billing-VGKY3FMX.js +86 -0
  17. package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
  18. package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
  19. package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
  20. package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
  21. package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
  22. package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
  23. package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
  24. package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
  25. package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
  26. package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
  27. package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
  28. package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
  29. package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
  30. package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
  31. package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
  32. package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
  33. package/dist/chunk-4JRFMRCQ.js +288 -0
  34. package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
  35. package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
  36. package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
  37. package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
  38. package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
  39. package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
  40. package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
  41. package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
  42. package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
  43. package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
  44. package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
  45. package/dist/chunk-AW7UW2Z7.js +312 -0
  46. package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
  47. package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
  48. package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
  49. package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
  50. package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
  51. package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
  52. package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
  53. package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
  54. package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
  55. package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
  56. package/dist/chunk-DY7PQLIE.js +248 -0
  57. package/dist/chunk-EF735J3K.js +59 -0
  58. package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
  59. package/dist/chunk-EJOFIHX4.js +46 -0
  60. package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
  61. package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
  62. package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
  63. package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
  64. package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
  65. package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
  66. package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
  67. package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
  68. package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
  69. package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
  70. package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
  71. package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
  72. package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
  73. package/dist/chunk-JTZHDD63.js +70 -0
  74. package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
  75. package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
  76. package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
  77. package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
  78. package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
  79. package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
  80. package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
  81. package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
  82. package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
  83. package/dist/chunk-MEJH7VEA.js +63 -0
  84. package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
  85. package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
  86. package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
  87. package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
  88. package/dist/chunk-NZZQCWUC.js +205 -0
  89. package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
  90. package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
  91. package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
  92. package/dist/chunk-OZM6VLD7.js +71 -0
  93. package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
  94. package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
  95. package/dist/chunk-PHEPL7OX.js +1048 -0
  96. package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
  97. package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
  98. package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
  99. package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
  100. package/dist/chunk-QZGKKQ77.js +570 -0
  101. package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
  102. package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
  103. package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
  104. package/dist/chunk-RZ6CXJ56.js +24 -0
  105. package/dist/chunk-SDBVVDBW.js +113 -0
  106. package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
  107. package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
  108. package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
  109. package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
  110. package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
  111. package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
  112. package/dist/chunk-UQECNXFA.js +5013 -0
  113. package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
  114. package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
  115. package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
  116. package/dist/chunk-VJM6NX54.js +250 -0
  117. package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
  118. package/dist/chunk-WGOIJN57.js +95 -0
  119. package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
  120. package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
  121. package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
  122. package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
  123. package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
  124. package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
  125. package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
  126. package/dist/cli.js +59 -56
  127. package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
  128. package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
  129. package/dist/commands/layout-audit.browser.js +19 -3
  130. package/dist/commands/motion-signature.browser.js +8 -4
  131. package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
  132. package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
  133. package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
  134. package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
  135. package/dist/curve-ID3Z522S.js +329 -0
  136. package/dist/cuts-MWHQSE2Z.js +123 -0
  137. package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
  138. package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
  139. package/dist/describeProject-WWREIVQV.js +56 -0
  140. package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
  141. package/dist/diff-GH4KCQGQ.js +1825 -0
  142. package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
  143. package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
  144. package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
  145. package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
  146. package/dist/energy-2C65KXBH.js +134 -0
  147. package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
  148. package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
  149. package/dist/events-QO5G2VCC.js +221 -0
  150. package/dist/extract-Z6TLBM5B.js +309 -0
  151. package/dist/face-WI6BPPUG.js +171 -0
  152. package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
  153. package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
  154. package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
  155. package/dist/fontLocalizeCli.js +16 -15
  156. package/dist/frames-WUTLVZIR.js +352 -0
  157. package/dist/generate-3CJREF5U.js +74 -0
  158. package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
  159. package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
  160. package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
  161. package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
  162. package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
  163. package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
  164. package/dist/hyperframe.manifest.json +1 -1
  165. package/dist/hyperframe.runtime.iife.js +72 -72
  166. package/dist/hyperframes-player.global.js +3 -3
  167. package/dist/hyperframes-slideshow.global.js +8 -8
  168. package/dist/index-gen-OPMQ5WSN.js +61 -0
  169. package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
  170. package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
  171. package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
  172. package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
  173. package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
  174. package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
  175. package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
  176. package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
  177. package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
  178. package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
  179. package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
  180. package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
  181. package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
  182. package/dist/look-ZWVE6JO3.js +180 -0
  183. package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
  184. package/dist/manifest-QSJYVERU.js +49 -0
  185. package/dist/measure-Q74BJTRQ.js +46 -0
  186. package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
  187. package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
  188. package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
  189. package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
  190. package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
  191. package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
  192. package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
  193. package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
  194. package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
  195. package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
  196. package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
  197. package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
  198. package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
  199. package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
  200. package/dist/probe-JVW2MPY3.js +178 -0
  201. package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
  202. package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
  203. package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
  204. package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
  205. package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
  206. package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
  207. package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
  208. package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
  209. package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
  210. package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
  211. package/dist/renderSetupWorker.js +6 -6
  212. package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
  213. package/dist/run-67OPNJGD.js +31 -0
  214. package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
  215. package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
  216. package/dist/skills/hyperframes-cli/references/beats.md +1 -1
  217. package/dist/skills/media-use/SKILL.md +20 -21
  218. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
  219. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
  220. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
  221. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
  222. package/dist/skills/media-use/references/heygen.md +58 -0
  223. package/dist/skills/media-use/references/operations.md +9 -6
  224. package/dist/skills/media-use/references/setup-providers.md +11 -12
  225. package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
  226. package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
  227. package/dist/{skills-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
  228. package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
  229. package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
  230. package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
  231. package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
  232. package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
  233. package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
  234. package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
  235. package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
  236. package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
  237. package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
  238. package/dist/studio/index.html +1 -1
  239. package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
  240. package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
  241. package/dist/sync-Q5SRIL7V.js +115 -0
  242. package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
  243. package/dist/templates/blank/index.html +1 -1
  244. package/dist/templates/from-file/index.html +1 -1
  245. package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
  246. package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
  247. package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
  248. package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
  249. package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
  250. package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
  251. package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
  252. package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
  253. package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
  254. package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
  255. package/dist/warmCheck.js +47 -45
  256. package/package.json +1 -1
  257. package/dist/chunk-Q3PPGPEA.js +0 -5061
  258. package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
  259. package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
  260. package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
  261. package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
  262. package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-YISDQ7YP.js";
13
+ } from "./chunk-FORV75JT.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateCheckDisabled
9
- } from "./chunk-YSZ4VMXI.js";
9
+ } from "./chunk-K5GMPWMG.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-BR2JQQC5.js";
@@ -11,7 +11,7 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-QYUXDFJY.js";
14
+ } from "./chunk-WWOHLNFO.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
@@ -26,7 +26,7 @@ import {
26
26
  FFMPEG_PATH_ENV,
27
27
  FFPROBE_PATH_ENV,
28
28
  findFfBinary
29
- } from "./chunk-BIROA7JM.js";
29
+ } from "./chunk-HYRPH6LL.js";
30
30
  import {
31
31
  normalizeErrorMessage
32
32
  } from "./chunk-E63BDV4Z.js";
@@ -122,8 +122,9 @@ function splitUrlSuffix(urlValue) {
122
122
  function encodeUrlPath(path) {
123
123
  return encodeURIComponent(path).replace(/%2F/g, "/").replace(/['()]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
124
124
  }
125
+ var URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE = /^[a-z][a-z0-9+.-]+:/i;
125
126
  function isNonRelativeUrl(val) {
126
- return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/");
127
+ return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/") || URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE.test(val);
127
128
  }
128
129
  var { join, resolve: resolve2, dirname } = posix;
129
130
  var isAbsoluteOrSpecial = isNonRelativeUrl;
@@ -8,11 +8,11 @@ import {
8
8
  normalizeRelPath,
9
9
  resolveLocalImageSourcePath,
10
10
  splitUrlSuffix
11
- } from "./chunk-YV2QQUTL.js";
11
+ } from "./chunk-JNQCM6CR.js";
12
12
  import {
13
13
  runFfmpeg,
14
14
  runFfprobe
15
- } from "./chunk-M2F6VGCP.js";
15
+ } from "./chunk-4XQQQ4KN.js";
16
16
  import {
17
17
  renameWithRetry
18
18
  } from "./chunk-YWRUQ7XZ.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readMediaOffsetSeconds
9
- } from "./chunk-KSC4O2RY.js";
9
+ } from "./chunk-C2KEGBR3.js";
10
10
 
11
11
  // ../core/dist/mediaLink.js
12
12
  var MEDIA_LINK_ATTR = "data-link";
@@ -0,0 +1,312 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ findCuts
9
+ } from "./chunk-OZM6VLD7.js";
10
+ import {
11
+ grey,
12
+ readClip,
13
+ round,
14
+ videoClip,
15
+ writeImage
16
+ } from "./chunk-VJM6NX54.js";
17
+
18
+ // src/measure/events.ts
19
+ var EVENT_W = 160;
20
+ var CUT_SHARE = 0.7;
21
+ var CUT_GRID = 4;
22
+ var HOLD_S = 0.3;
23
+ var STEP_MAX_S = 0.5;
24
+ var FLASH_FRAMES = 2;
25
+ var STRIP_MAX = 24;
26
+ var STRIP_W = 1200;
27
+ var WINDOW_GAP_S = 0.25;
28
+ var WINDOW_MAX_S = 1.5;
29
+ function cells(cols, rows, w, h) {
30
+ return Array.from({ length: rows * cols }, (_, i) => {
31
+ const [r, c] = [Math.floor(i / cols), i % cols];
32
+ return {
33
+ name: `r${r}c${c}`,
34
+ rect: [
35
+ Math.floor(c * w / cols),
36
+ Math.floor(r * h / rows),
37
+ Math.floor((c + 1) * w / cols),
38
+ Math.floor((r + 1) * h / rows)
39
+ ]
40
+ };
41
+ });
42
+ }
43
+ function diff(a, b, w, [x0, y0, x1, y1]) {
44
+ let s = 0;
45
+ for (let y = y0; y < y1; y++)
46
+ for (let x = x0; x < x1; x++) s += Math.abs(a[y * w + x] - b[y * w + x]);
47
+ return s / Math.max(1, (x1 - x0) * (y1 - y0));
48
+ }
49
+ function level(f, w, [x0, y0, x1, y1]) {
50
+ let [s, s2] = [0, 0];
51
+ for (let y = y0; y < y1; y++)
52
+ for (let x = x0; x < x1; x++) {
53
+ s += f[y * w + x];
54
+ s2 += f[y * w + x] ** 2;
55
+ }
56
+ const n = Math.max(1, (x1 - x0) * (y1 - y0));
57
+ return { mean: s / n, std: Math.sqrt(Math.max(0, s2 / n - (s / n) ** 2)) };
58
+ }
59
+ var changes = (g, w, rect) => g.map((f, i) => i ? diff(f, g[i - 1], w, rect) : 0);
60
+ function bursts(d) {
61
+ const q = d.slice(1).sort((a, b) => a - b);
62
+ const act = Math.max(2, 2 * (q[Math.floor(q.length / 4)] ?? 0));
63
+ const out = [];
64
+ for (let i = 1; i < d.length; i++) {
65
+ if (d[i] <= act) continue;
66
+ const last = out.at(-1);
67
+ if (last && i - last[1] <= 2) last[1] = i;
68
+ else out.push([i, i]);
69
+ }
70
+ return out;
71
+ }
72
+ function stills(d, fps) {
73
+ const q = d.slice(1).sort((a, b) => a - b);
74
+ const floor = Math.min(1.5, Math.max(0.5, 2 * (q[Math.floor(q.length / 10)] ?? 0)));
75
+ const out = [];
76
+ for (let i = 1, run = 0; i <= d.length; i++) {
77
+ if (i < d.length && d[i] <= floor) run++;
78
+ else {
79
+ if (run + 1 >= HOLD_S * fps) out.push([i - run - 1, run + 1]);
80
+ run = 0;
81
+ }
82
+ }
83
+ return out;
84
+ }
85
+ function groups(items, near) {
86
+ const root = items.map((_, i) => i);
87
+ const find = (i) => root[i] === i ? i : root[i] = find(root[i]);
88
+ for (let i = 0; i < items.length; i++)
89
+ for (let j = i + 1; j < items.length; j++)
90
+ if (near(items[i], items[j])) root[find(i)] = find(j);
91
+ const out = /* @__PURE__ */ new Map();
92
+ items.forEach((it, i) => out.set(find(i), [...out.get(find(i)) ?? [], it]));
93
+ return [...out.values()];
94
+ }
95
+ function cutFrames(g, w, cutCells, thr) {
96
+ const d = cutCells.map((c) => changes(g, w, c.rect));
97
+ const hits = g.map((_, i) => i).filter((i) => i > 0 && d.filter((x) => x[i] >= thr).length >= CUT_SHARE * cutCells.length);
98
+ const cuts = [];
99
+ const flashes = [];
100
+ for (let k = 0; k < hits.length; k++) {
101
+ const [i, j] = [hits[k], hits[k + 1]];
102
+ const last = cuts.at(-1);
103
+ if (j !== void 0 && j - i <= FLASH_FRAMES && diff(g[j], g[i - 1], w, [0, 0, w, g[0].length / w]) < thr) {
104
+ flashes.push([i, j - 1]);
105
+ k++;
106
+ } else if (last && i === last[1] + 1)
107
+ last[1] = i;
108
+ else cuts.push([i, i]);
109
+ }
110
+ return { cuts, flashes, d };
111
+ }
112
+ function bursting(g, w, regions, skip, thr, fps) {
113
+ const settle = Math.round(HOLD_S * fps);
114
+ const steps = [];
115
+ const flashes = [];
116
+ const moves = [];
117
+ for (const [ci, c] of regions.entries()) {
118
+ const d = changes(g, w, c.rect);
119
+ for (const [a, b] of bursts(d)) {
120
+ if (skip(a, b)) continue;
121
+ const net = diff(g[b], g[a - 1], w, c.rect);
122
+ const peak = Math.max(...d.slice(a, b + 1));
123
+ const burst = { ci, c, a, b, net, peak };
124
+ if (b - a + 1 <= FLASH_FRAMES && peak >= 2 * thr && b + 1 < g.length && diff(g[b + 1], g[a - 1], w, c.rect) < thr) {
125
+ flashes.push(burst);
126
+ continue;
127
+ }
128
+ const was = diff(g[a - 1], g[Math.max(0, a - 1 - settle)], w, c.rect);
129
+ const now = diff(g[b], g[Math.min(g.length - 1, b + settle)], w, c.rect);
130
+ const step = net >= thr && b - a + 1 <= STEP_MAX_S * fps && Math.max(was, now) <= net / 3;
131
+ (step ? steps : moves).push(burst);
132
+ }
133
+ }
134
+ return { steps, flashes, moves };
135
+ }
136
+ function detectEvents(opts) {
137
+ const { info, start, end, roi, grid } = opts;
138
+ const thr = opts.thr ?? 5;
139
+ const fps = info.fps;
140
+ const whole = [0, 0, info.width, info.height];
141
+ const sameAsWhole = roi.every((v, i) => v === whole[i]);
142
+ const clip = videoClip(info.path, start, end - start, info);
143
+ const { frames: rgb, w, h } = readClip(clip, { roi, width: EVENT_W });
144
+ const g = rgb.map(grey);
145
+ const wholeG = sameAsWhole ? g : readClip(clip, { width: EVENT_W, gray: true }).frames;
146
+ const wholeH = wholeG[0] ? wholeG[0].length / EVENT_W : h;
147
+ const f0 = Math.ceil(start * fps - 1e-6);
148
+ const at = (i) => ({ frame: f0 + i, t: round((f0 + i) / fps, 3) });
149
+ if (g.length < 3) return { fps, frames: g.length, events: [], rgb, w, h, shown: [] };
150
+ const cutCells = cells(grid?.cols ?? CUT_GRID, grid?.rows ?? CUT_GRID, EVENT_W, wholeH);
151
+ const cut = cutFrames(wholeG, EVENT_W, cutCells, thr);
152
+ const real = new Set(
153
+ findCuts(wholeG).flatMap((c) => Array.from({ length: c.frames }, (_, i) => c.frame + i))
154
+ );
155
+ const alone = ([i, j]) => j === i && cut.cuts.every(([a, b]) => a === i && b === j || b < i - 3 || a > j + 3);
156
+ cut.cuts = cut.cuts.filter((c) => real.has(c[0]) || alone(c));
157
+ const single = { name: "roi", rect: [0, 0, w, h] };
158
+ const regions = grid ? cells(grid.cols, grid.rows, w, h) : [single];
159
+ const covered = (a, b) => [...cut.cuts, ...cut.flashes].some(([x, y]) => x <= b && a <= y);
160
+ const { steps, flashes, moves } = bursting(g, w, regions, covered, thr, fps);
161
+ const cols = grid?.cols ?? 1;
162
+ const touching = (s, o) => Math.abs(Math.floor(s.ci / cols) - Math.floor(o.ci / cols)) <= 1 && Math.abs(s.ci % cols - o.ci % cols) <= 1;
163
+ const overlap = (s, o) => s.a <= o.b + 2 && o.a <= s.b + 2;
164
+ const [kx, ky] = [roi[2] / w, roi[3] / h];
165
+ const event = (grp, type, size) => {
166
+ const [a, b] = [Math.min(...grp.map((s) => s.a)), Math.max(...grp.map((s) => s.b))];
167
+ const rect = [0, 1, 2, 3].map(
168
+ (k) => (k < 2 ? Math.min : Math.max)(...grp.map((s) => s.c.rect[k]))
169
+ );
170
+ const where = grid ? {
171
+ cells: [...new Set(grp.map((s) => s.c.name))].sort(),
172
+ roi: [
173
+ rect[0] * kx + roi[0],
174
+ rect[1] * ky + roi[1],
175
+ (rect[2] - rect[0]) * kx,
176
+ (rect[3] - rect[1]) * ky
177
+ ].map(Math.round)
178
+ } : {};
179
+ return {
180
+ type,
181
+ ...at(a),
182
+ frames: b - a + 1,
183
+ ...where,
184
+ magnitude: round(size, 1),
185
+ before: a - 1,
186
+ after: b,
187
+ rect: grid ? rect : null
188
+ };
189
+ };
190
+ const stepEvents = groups(steps, (s, o) => overlap(s, o) && touching(s, o)).map((grp) => {
191
+ const e = event(grp, "change", grp.reduce((m, s) => m + s.net, 0) / grp.length);
192
+ const box = e.rect ?? [0, 0, w, h];
193
+ const [was, now] = [level(g[e.before], w, box), level(g[e.after], w, box)];
194
+ const up = Math.abs(now.std - was.std) >= 2 ? now.std > was.std : now.mean > was.mean;
195
+ return { ...e, type: up ? "appear" : "disappear" };
196
+ });
197
+ const flashEvents = [
198
+ ...groups(flashes, (s, o) => overlap(s, o) && touching(s, o)).map(
199
+ (grp) => event(grp, "flash", Math.max(...grp.map((s) => s.peak)))
200
+ ),
201
+ ...cut.flashes.map(([i, j]) => ({
202
+ type: "flash",
203
+ ...at(i),
204
+ frames: j - i + 1,
205
+ magnitude: round(cut.d.reduce((m, d) => m + d[i], 0) / cut.d.length, 1),
206
+ before: i - 1,
207
+ after: i,
208
+ rect: null
209
+ }))
210
+ ];
211
+ const moveEvents = groups(moves, overlap).map(
212
+ (grp) => event(grp, "change", Math.max(...grp.map((s) => s.peak)))
213
+ );
214
+ const cutEvents = cut.cuts.map(([i, j]) => ({
215
+ type: "cut",
216
+ ...at(i),
217
+ ...j > i ? { frames: j - i + 1 } : {},
218
+ magnitude: round(cut.d.reduce((m, d) => m + d[i], 0) / cut.d.length, 1),
219
+ before: i - 1,
220
+ after: j,
221
+ rect: null
222
+ }));
223
+ const still = changes(grid ? wholeG : g, EVENT_W, [0, 0, EVENT_W, grid ? wholeH : h]);
224
+ const held = stills(still, fps).map(([i, n]) => ({
225
+ type: "hold",
226
+ ...at(i),
227
+ seconds: round(n / fps, 2)
228
+ }));
229
+ const weight = (e) => (e.cells?.length ?? 1) * (e.magnitude ?? 0);
230
+ const order = (x, y) => x.frame - y.frame;
231
+ const shown = [
232
+ ...cutEvents,
233
+ ...flashEvents,
234
+ ...[...stepEvents].sort((x, y) => weight(y) - weight(x)),
235
+ ...[...moveEvents].sort((x, y) => (y.magnitude ?? 0) - (x.magnitude ?? 0))
236
+ ].slice(0, STRIP_MAX).sort(order);
237
+ const plain = ({ before: _b, after: _a, rect: _r, ...e }) => e;
238
+ const events = [...cutEvents, ...flashEvents, ...stepEvents, ...moveEvents].map(plain);
239
+ return { fps, frames: g.length, events: [...events, ...held].sort(order), rgb, w, h, shown };
240
+ }
241
+ function drawStrip(d, out) {
242
+ const { rgb, w, h, shown } = d;
243
+ const per = Math.max(1, Math.floor(STRIP_W / (2 * w + 12)));
244
+ const cw = per * (2 * w + 12);
245
+ const ch = Math.ceil(shown.length / per) * (h + 8);
246
+ const px = new Uint8Array(cw * ch * 3).fill(255);
247
+ shown.forEach((e, k) => {
248
+ const [ox, oy] = [k % per * (2 * w + 12), Math.floor(k / per) * (h + 8)];
249
+ [e.before, e.after].forEach((f, side) => {
250
+ const x0 = ox + side * (w + 2);
251
+ for (let y = 0; y < h; y++)
252
+ px.set(rgb[f].subarray(y * w * 3, (y + 1) * w * 3), ((oy + y) * cw + x0) * 3);
253
+ if (!e.rect) return;
254
+ const [rx0, ry0, rx1, ry1] = e.rect;
255
+ for (let y = ry0; y < ry1; y++)
256
+ for (let x = rx0; x < rx1; x++)
257
+ if (y === ry0 || y === ry1 - 1 || x === rx0 || x === rx1 - 1)
258
+ px.set([255, 0, 0], ((oy + y) * cw + x0 + x) * 3);
259
+ });
260
+ });
261
+ return writeImage(out, px, cw, ch);
262
+ }
263
+ function lookWindows(events, fps, onsets = []) {
264
+ const pad = 2 / fps;
265
+ const spans = events.filter((e) => e.type !== "hold").map((e) => {
266
+ const where = e.cells ? ` ${e.cells.join(",")}` : "";
267
+ const len = e.type === "flash" ? ` ${e.frames}f` : "";
268
+ return {
269
+ a: e.t - pad,
270
+ b: e.t + ((e.frames ?? 1) - 1) / fps + pad,
271
+ what: `${e.type}${where}${len}`,
272
+ frame: e.frame
273
+ };
274
+ }).sort((x, y) => x.a - y.a);
275
+ const out = [];
276
+ for (const s of spans) {
277
+ const last = out.at(-1);
278
+ if (last && s.a - last.end <= WINDOW_GAP_S && s.b - last.start <= WINDOW_MAX_S) {
279
+ last.end = Math.max(last.end, s.b);
280
+ last.what.push(s.what);
281
+ last.onset_frames.push(s.frame);
282
+ } else out.push({ start: s.a, end: s.b, what: [s.what], onset_frames: [s.frame] });
283
+ }
284
+ return out.map((wnd) => {
285
+ const hits = onsets.filter((t) => t >= wnd.start && t <= wnd.end);
286
+ return {
287
+ start: round(Math.max(0, wnd.start), 3),
288
+ end: round(wnd.end, 3),
289
+ what: wnd.what,
290
+ ...hits.length ? { onsets: hits.map((t) => round(t, 3)) } : {},
291
+ onset_frames: [...new Set(wnd.onset_frames)].sort((x, y) => x - y)
292
+ };
293
+ });
294
+ }
295
+ function countEvents(events) {
296
+ const count = (type) => events.filter((e) => e.type === type).length;
297
+ return {
298
+ cut: count("cut"),
299
+ flash: count("flash"),
300
+ appear: count("appear"),
301
+ disappear: count("disappear"),
302
+ change: count("change"),
303
+ hold: count("hold")
304
+ };
305
+ }
306
+
307
+ export {
308
+ detectEvents,
309
+ drawStrip,
310
+ lookWindows,
311
+ countEvents
312
+ };
@@ -30,7 +30,9 @@ var PROJECT_ENV_KEYS = [
30
30
  "HYPERFRAMES_NO_TELEMETRY",
31
31
  "DO_NOT_TRACK"
32
32
  ];
33
- function valueOf(raw) {
33
+ function valueOf(rawValue) {
34
+ if (/^\s+#/.test(rawValue)) return "";
35
+ const raw = rawValue.trim();
34
36
  const quote = raw.charAt(0);
35
37
  if (quote === '"' || quote === "'") {
36
38
  const end = raw.indexOf(quote, 1);
@@ -45,7 +47,7 @@ function entryOf(rawLine) {
45
47
  if (line.startsWith("export ")) line = line.slice(7).trim();
46
48
  const eq = line.indexOf("=");
47
49
  if (eq < 1) return null;
48
- return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1).trim())];
50
+ return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1))];
49
51
  }
50
52
  function openQuoteOf(trimmedLine) {
51
53
  const eq = trimmedLine.indexOf("=");
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-M2F6VGCP.js";
10
+ } from "./chunk-4XQQQ4KN.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-ROWFWCEN.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-D7AO7PGH.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -6,29 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  refreshIfNeeded
9
- } from "./chunk-YSTBSLWY.js";
9
+ } from "./chunk-VBCBHDIW.js";
10
10
  import {
11
11
  buildAuthHeaders,
12
12
  envCredentialVar,
13
13
  isTokenExpired,
14
14
  tryResolveCredential
15
- } from "./chunk-MESSJFK3.js";
15
+ } from "./chunk-RWSVSCOP.js";
16
16
  import {
17
17
  isAuthError,
18
18
  oauthEnvironment
19
19
  } from "./chunk-VLA6UJGH.js";
20
- import {
21
- rewriteSrcsetUrls
22
- } from "./chunk-Q3PPGPEA.js";
23
20
  import {
24
21
  CSS_URL_RE,
25
22
  isNonRelativeUrl,
26
- isPathInside
27
- } from "./chunk-KSC4O2RY.js";
23
+ isPathInside,
24
+ rewriteSrcsetUrls
25
+ } from "./chunk-C2KEGBR3.js";
28
26
  import {
29
27
  decodeUrlPathVariants,
30
28
  encodeUrlPath
31
- } from "./chunk-NHA4NRBE.js";
29
+ } from "./chunk-T5ELONXY.js";
32
30
  import {
33
31
  parseHTML
34
32
  } from "./chunk-GWTIFRF5.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-5YT2KHPO.js";
9
+ } from "./chunk-P5QGZMGC.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-Z7YQEDA5.js";
9
+ } from "./chunk-7LKEHM2R.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-5ZBMHUY2.js";
13
13
  import {
14
14
  DEFAULT_CONFIG,
15
15
  resolvePageNavigationTimeout
16
- } from "./chunk-M2F6VGCP.js";
16
+ } from "./chunk-4XQQQ4KN.js";
17
17
  import {
18
18
  parseFps
19
- } from "./chunk-MXVH6UW6.js";
19
+ } from "./chunk-OWFSGDQS.js";
20
20
  import {
21
21
  failUsage
22
22
  } from "./chunk-DP5LF7GF.js";
@@ -11,6 +11,7 @@ import {
11
11
 
12
12
  // ../parsers/dist/compositionContract.js
13
13
  var COMPOSITION_CONTRACT_VERSION = 1;
14
+ var SPLIT_BOUNDARY_EPSILON_S = 0.03;
14
15
  var COMPOSITION_ATTRIBUTES = Object.freeze({
15
16
  start: "data-start",
16
17
  duration: "data-duration",
@@ -410,8 +411,9 @@ function decodeCssEscapes(text) {
410
411
  }
411
412
  var CSS_URL_RE = /\burl\(\s*(["']?)([^)"'\s](?:[^)"']*[^)"'\s])?)\1\s*\)/g;
412
413
  var PATH_ATTRS = ["src", "href"];
414
+ var URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE = /^[a-z][a-z0-9+.-]+:/i;
413
415
  function isNonRelativeUrl(val) {
414
- return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/");
416
+ return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/") || URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE.test(val);
415
417
  }
416
418
  var LEADING_PARENT_SEGMENT_RE = /^\.\.(?:[\\/]|$)/;
417
419
  function isPathInside(childPath, parentPath) {
@@ -421,6 +423,44 @@ function isPathInside(childPath, parentPath) {
421
423
  const rel = relative(absParent, absChild);
422
424
  return rel !== "" && !LEADING_PARENT_SEGMENT_RE.test(rel) && !isAbsolute(rel);
423
425
  }
426
+ function skipSrcsetDescriptors(srcset, position) {
427
+ let inParens = false;
428
+ while (position < srcset.length) {
429
+ const char = srcset.charAt(position++);
430
+ if (char === "(") inParens = true;
431
+ else if (char === ")") inParens = false;
432
+ else if (char === "," && !inParens) break;
433
+ }
434
+ return position;
435
+ }
436
+ function readSrcsetUrl(srcset, position) {
437
+ while (position < srcset.length && /[ \t\n\r\f,]/.test(srcset.charAt(position))) position++;
438
+ const start = position;
439
+ while (position < srcset.length && !/[ \t\n\r\f]/.test(srcset.charAt(position))) position++;
440
+ let end = position;
441
+ while (end > start && srcset.charAt(end - 1) === ",") end--;
442
+ return { start, end, next: position };
443
+ }
444
+ function rewriteSrcsetUrls(srcset, rewriteUrl) {
445
+ const parts = [];
446
+ let position = 0;
447
+ let written = 0;
448
+ while (position < srcset.length) {
449
+ const { start, end, next } = readSrcsetUrl(srcset, position);
450
+ position = next;
451
+ if (end > start) {
452
+ const url = srcset.slice(start, end);
453
+ const rewritten = rewriteUrl(url);
454
+ if (rewritten !== url) {
455
+ parts.push(srcset.slice(written, start), rewritten);
456
+ written = end;
457
+ }
458
+ }
459
+ if (end < position) continue;
460
+ position = skipSrcsetDescriptors(srcset, position);
461
+ }
462
+ return parts.length > 0 ? parts.join("") + srcset.slice(written) : srcset;
463
+ }
424
464
  var { join, resolve: resolve2, dirname } = posix;
425
465
  var isAbsoluteOrSpecial = isNonRelativeUrl;
426
466
  function needsRewrite(val) {
@@ -442,11 +482,18 @@ function rewriteAssetPaths(elements, compSrcPath, getAttr, setAttr, assetExists)
442
482
  for (const el of elements) {
443
483
  for (const attr of PATH_ATTRS) {
444
484
  const val = (getAttr(el, attr) || "").trim();
445
- const rewritten = rewriteAssetPath(compSrcPath, val, assetExists);
446
- if (rewritten !== val) {
447
- setAttr(el, attr, rewritten);
485
+ const rewritten2 = rewriteAssetPath(compSrcPath, val, assetExists);
486
+ if (rewritten2 !== val) {
487
+ setAttr(el, attr, rewritten2);
448
488
  }
449
489
  }
490
+ const srcset = getAttr(el, "srcset");
491
+ if (!srcset) continue;
492
+ const rewritten = rewriteSrcsetUrls(
493
+ srcset,
494
+ (url) => rewriteAssetPath(compSrcPath, url, assetExists)
495
+ );
496
+ if (rewritten !== srcset) setAttr(el, "srcset", rewritten);
450
497
  }
451
498
  }
452
499
  function rewriteInlineStyleAssetUrls(elements, compSrcPath, getStyle, setStyle, assetExists) {
@@ -1477,6 +1524,7 @@ function extractMediaSrcMutations(script) {
1477
1524
 
1478
1525
  export {
1479
1526
  COMPOSITION_CONTRACT_VERSION,
1527
+ SPLIT_BOUNDARY_EPSILON_S,
1480
1528
  COMPOSITION_ATTRIBUTES,
1481
1529
  CANONICAL_AUTHORED_TIMING_ATTRIBUTES,
1482
1530
  DERIVED_TIMING_ATTRIBUTES,
@@ -1504,6 +1552,7 @@ export {
1504
1552
  PATH_ATTRS,
1505
1553
  isNonRelativeUrl,
1506
1554
  isPathInside,
1555
+ rewriteSrcsetUrls,
1507
1556
  rewriteAssetPath,
1508
1557
  rewriteAssetPaths,
1509
1558
  rewriteInlineStyleAssetUrls,
@@ -6,31 +6,32 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  relinkSplitHalves
9
- } from "./chunk-VZBJ5BQF.js";
9
+ } from "./chunk-AW3XJY4S.js";
10
10
  import {
11
11
  EXCLUDED_TAGS,
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-4ZM727AO.js";
15
+ } from "./chunk-FKBWONRY.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-MXVH6UW6.js";
20
+ } from "./chunk-OWFSGDQS.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-LYZB5CJN.js";
23
+ } from "./chunk-HT3D5AKG.js";
24
24
  import {
25
+ SPLIT_BOUNDARY_EPSILON_S,
25
26
  readClipTiming,
26
27
  readMediaOffsetSeconds,
27
28
  readPlaybackRate,
28
29
  writeClipTiming
29
- } from "./chunk-KSC4O2RY.js";
30
+ } from "./chunk-C2KEGBR3.js";
30
31
  import {
31
32
  decodedUrlPath,
32
33
  removeElementWithGsapCascade
33
- } from "./chunk-NHA4NRBE.js";
34
+ } from "./chunk-T5ELONXY.js";
34
35
  import {
35
36
  parseHTML
36
37
  } from "./chunk-GWTIFRF5.js";
@@ -136,7 +137,7 @@ function replacementTimelineAssetId(document, element, newSrc) {
136
137
  return buildTimelineAssetId(decodedUrlPath(newSrc), ids);
137
138
  }
138
139
 
139
- // ../studio-server/dist/chunk-OF4B2ILS.js
140
+ // ../studio-server/dist/chunk-V6K3WWWU.js
140
141
  var import_postcss_selector_parser = __toESM(require_dist(), 1);
141
142
  import postcss from "postcss";
142
143
  function parseStyleDecls(style) {
@@ -454,7 +455,7 @@ function splitElementInHtml(source, target, splitTime, newId, fallbackTiming) {
454
455
  start = fallbackTiming.start;
455
456
  duration = fallbackTiming.duration;
456
457
  }
457
- if (duration <= 0 || splitTime <= start || splitTime >= start + duration) {
458
+ if (duration <= 0 || splitTime < start + SPLIT_BOUNDARY_EPSILON_S || splitTime > start + duration - SPLIT_BOUNDARY_EPSILON_S) {
458
459
  return { html: source, matched: false, newId: null };
459
460
  }
460
461
  newId = nextUniqueId(document, newId);