hyperframes 0.8.225 → 0.8.226

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 (224) hide show
  1. package/dist/{add-ZGNY2AXJ.js → add-3NBOSGKQ.js} +12 -12
  2. package/dist/{agentPromptGenerator-GG4FFZH7.js → agentPromptGenerator-GQSDTAV5.js} +7 -7
  3. package/dist/{animatedGifPrep-NVDUG2CD.js → animatedGifPrep-UXFFDGA7.js} +7 -7
  4. package/dist/api.js +23 -23
  5. package/dist/{asset-UC3OQBB3.js → asset-VQVAYC7E.js} +2 -2
  6. package/dist/{assetCataloger-WQTNJMZU.js → assetCataloger-C6KNE2IQ.js} +8 -8
  7. package/dist/{audio-T6RWZHAA.js → audio-2KULGXHA.js} +17 -17
  8. package/dist/{auth-FSXEGF3B.js → auth-QNMLPJOW.js} +5 -5
  9. package/dist/{autoUpdate-LOBHDWAA.js → autoUpdate-VFQQ47UD.js} +2 -2
  10. package/dist/{backgroundChecks-RBFWIWBP.js → backgroundChecks-SSQ2U3ZY.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-LDZ6NO2X.js → batchRender-Y45PZC3Q.js} +3 -3
  13. package/dist/{beats-WFPPVM6N.js → beats-YSJT4NUG.js} +10 -10
  14. package/dist/{benchmark-7MYD5S26.js → benchmark-6UOMMUXF.js} +9 -9
  15. package/dist/{billing-2BJTLFDX.js → billing-WNOAP6KO.js} +4 -4
  16. package/dist/{browser-6C4IDYQE.js → browser-GM4ZTCRQ.js} +4 -4
  17. package/dist/{bundleWithLocalizedFonts-ARTT664T.js → bundleWithLocalizedFonts-CUTSKVRK.js} +2 -2
  18. package/dist/{capture-TWZ5DQHP.js → capture-J24XSJTZ.js} +17 -17
  19. package/dist/{capture-7TFC65RN.js → capture-SZ65WG5Z.js} +3 -3
  20. package/dist/{captureCompositionFrame-EMP6R3F6.js → captureCompositionFrame-5UUXIOF2.js} +13 -12
  21. package/dist/{catalog-W4RJO4FE.js → catalog-5EQFE3BC.js} +12 -12
  22. package/dist/{catch-up-OOCJH3O6.js → catch-up-ASBRKHDL.js} +5 -5
  23. package/dist/{check-BPPHG2CF.js → check-BA4SSXPY.js} +39 -38
  24. package/dist/{checkAudio-QEGCKX2V.js → checkAudio-TU4GPHIR.js} +10 -10
  25. package/dist/{checkBrowser-4JDYYAVA.js → checkBrowser-27SFNNPD.js} +33 -32
  26. package/dist/chunk-262C25DQ.js +31 -0
  27. package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
  28. package/dist/{chunk-4A643C3B.js → chunk-2IQONCMF.js} +7 -7
  29. package/dist/{chunk-OZMZFJDW.js → chunk-2JBCK6DX.js} +1 -1
  30. package/dist/{chunk-TRPNLI6V.js → chunk-35LAWHTD.js} +23 -6
  31. package/dist/{chunk-LWTT7I7X.js → chunk-37PS2IPO.js} +1 -1
  32. package/dist/{chunk-SIYDHVN2.js → chunk-3V3XMQEF.js} +1 -1
  33. package/dist/{chunk-7RTPHNOO.js → chunk-3XYDZQJF.js} +7 -4
  34. package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
  35. package/dist/{chunk-RR5QE7DB.js → chunk-4XYLQYUE.js} +18 -14
  36. package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
  37. package/dist/{chunk-WQCVZEXH.js → chunk-5TXYCG4M.js} +6 -6
  38. package/dist/{chunk-2YZD6CAF.js → chunk-5X65O5WM.js} +10 -3
  39. package/dist/{chunk-ADOBHVHW.js → chunk-6AEHVBMX.js} +2 -2
  40. package/dist/{chunk-G6Z47UQP.js → chunk-6CU2ZQGW.js} +26 -13
  41. package/dist/{chunk-EECV7SDN.js → chunk-6EQSJ7MT.js} +1 -1
  42. package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
  43. package/dist/{chunk-ACUVSKUI.js → chunk-76N526VX.js} +13 -13
  44. package/dist/{chunk-KDF67KEB.js → chunk-7LUZ4RQX.js} +13 -13
  45. package/dist/{chunk-5HGS5MGD.js → chunk-7UKRCWBO.js} +271 -122
  46. package/dist/{chunk-GE4ABM5K.js → chunk-7WNPWUJP.js} +3 -3
  47. package/dist/{chunk-3HRQI6LJ.js → chunk-A23K6P7L.js} +1 -1
  48. package/dist/{chunk-GZPGTGRV.js → chunk-ABNPD4NF.js} +1 -1
  49. package/dist/{chunk-M4NN4AHH.js → chunk-AMTAKSKJ.js} +9 -9
  50. package/dist/{chunk-UCPEABYK.js → chunk-APCGOECM.js} +2 -2
  51. package/dist/{chunk-CGX4EOGT.js → chunk-B243Y7MM.js} +3 -3
  52. package/dist/{chunk-A25SCSOK.js → chunk-B52P2FU2.js} +1 -1
  53. package/dist/{chunk-BTDKWWND.js → chunk-B7OI3WAR.js} +1 -1
  54. package/dist/{chunk-4Z2SU2VC.js → chunk-BD2CQDXP.js} +18 -18
  55. package/dist/{chunk-4K6AS5TX.js → chunk-BJ3Q3XK7.js} +313 -149
  56. package/dist/{chunk-SVGHIMPQ.js → chunk-CRIVUWLA.js} +2 -2
  57. package/dist/{chunk-2EH3WQCS.js → chunk-CU3SVSKX.js} +5 -5
  58. package/dist/{chunk-3E2BO3L3.js → chunk-DGQOBTFQ.js} +1 -1
  59. package/dist/{chunk-IJWDVOIO.js → chunk-DW7W4J7D.js} +2 -2
  60. package/dist/{chunk-IB7I5IEC.js → chunk-EJEHDDVX.js} +1 -1
  61. package/dist/{chunk-35NDLXHZ.js → chunk-EQGBGOQQ.js} +9 -9
  62. package/dist/{chunk-HW6HTTBZ.js → chunk-ETH6WXKZ.js} +1 -1
  63. package/dist/{chunk-T5KG6H6L.js → chunk-EYDV3MHA.js} +7 -7
  64. package/dist/{chunk-UBH2R663.js → chunk-GADKBSZ5.js} +2 -2
  65. package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
  66. package/dist/{chunk-X5BSSPC2.js → chunk-GUJ45PRX.js} +1 -1
  67. package/dist/chunk-HSXV7QPC.js +177 -0
  68. package/dist/{chunk-AMQFGICP.js → chunk-HYB3WSJL.js} +1 -1
  69. package/dist/{chunk-O3MGHHJO.js → chunk-JE5ZPFN2.js} +3 -3
  70. package/dist/{chunk-GI42ZB52.js → chunk-JIYNPDH6.js} +1 -1
  71. package/dist/{chunk-RDLJSUI4.js → chunk-KQARKGEJ.js} +16 -11
  72. package/dist/{chunk-G45NYKSM.js → chunk-LVV5EUSO.js} +3 -3
  73. package/dist/{chunk-NLELDFX7.js → chunk-MF6KVPWF.js} +3 -3
  74. package/dist/{chunk-6IV2N527.js → chunk-MWQNQA77.js} +2 -2
  75. package/dist/{chunk-BKHBSFEO.js → chunk-OMT75FQI.js} +3 -2
  76. package/dist/{chunk-AF3EN5XS.js → chunk-OQYGHP3E.js} +1 -1
  77. package/dist/{chunk-EQFDOQTG.js → chunk-OSCRZUEB.js} +1 -1
  78. package/dist/{chunk-E47ZWDMH.js → chunk-P7TDUSPH.js} +1 -1
  79. package/dist/{chunk-Y5OSQXGZ.js → chunk-PCH3O6I6.js} +5 -5
  80. package/dist/{chunk-R6JPOEDZ.js → chunk-PHUTMTHB.js} +1 -1
  81. package/dist/{chunk-UBXKKXXR.js → chunk-PVBSCPZI.js} +3 -3
  82. package/dist/{chunk-EEBIHQF2.js → chunk-PWHOMCFB.js} +2 -2
  83. package/dist/{chunk-XM5KYLIE.js → chunk-PXSCN6X5.js} +4 -4
  84. package/dist/{chunk-FPWCICAI.js → chunk-PZ6VVOOE.js} +1 -1
  85. package/dist/{chunk-K73PYNON.js → chunk-QSWUM7WR.js} +2 -5
  86. package/dist/{chunk-SXHSNLEC.js → chunk-RBYSMHB7.js} +1 -1
  87. package/dist/{chunk-UZ5AWZCA.js → chunk-RKDMYKGL.js} +1 -1
  88. package/dist/{chunk-3XQQLL3G.js → chunk-RRT5S42U.js} +1 -1
  89. package/dist/{chunk-Z57RQBIA.js → chunk-S4UDVFAN.js} +3 -3
  90. package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
  91. package/dist/{chunk-4VTXUGDR.js → chunk-U6LQ4BTL.js} +1 -1
  92. package/dist/{chunk-CXVFPIOM.js → chunk-UIJLEBHQ.js} +1 -1
  93. package/dist/{chunk-5KADQQ6S.js → chunk-UXHGYMX4.js} +1 -1
  94. package/dist/{chunk-W464PHF3.js → chunk-V2N747YM.js} +7 -7
  95. package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
  96. package/dist/{chunk-M3WOI7BU.js → chunk-VB77RRT7.js} +1 -1
  97. package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
  98. package/dist/{chunk-5I6XEO4W.js → chunk-WESIEW2M.js} +3 -25
  99. package/dist/{chunk-HMS6UHUW.js → chunk-WGVREWKN.js} +2 -2
  100. package/dist/{chunk-FJ3KUOUZ.js → chunk-XCGPPU32.js} +1 -1
  101. package/dist/{chunk-EIIMWDZW.js → chunk-XDTRM4OS.js} +4 -4
  102. package/dist/{chunk-LZB5AHFD.js → chunk-XH7SSJSQ.js} +1 -1
  103. package/dist/chunk-XINVBLXA.js +5030 -0
  104. package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
  105. package/dist/{chunk-VHL26GNQ.js → chunk-Y2NSHQVE.js} +2 -2
  106. package/dist/{chunk-PICDT6ZW.js → chunk-YTQSLNIA.js} +1 -1
  107. package/dist/{chunk-KVBOJJ5R.js → chunk-Z257R7TN.js} +1 -1
  108. package/dist/{chunk-ZGQC6IU7.js → chunk-ZI64CTVC.js} +1 -1
  109. package/dist/{chunk-UQWOOANM.js → chunk-ZJE2XWQC.js} +2 -2
  110. package/dist/{chunk-652ERUZD.js → chunk-ZNXUM4D2.js} +2 -2
  111. package/dist/{clean-XWDDXLRP.js → clean-X5VL4ILR.js} +17 -17
  112. package/dist/cli.js +57 -57
  113. package/dist/{cloud-SETWVGKH.js → cloud-4GUUYRD3.js} +4 -4
  114. package/dist/{cloudrun-RHPVVXCR.js → cloudrun-KPL32MBI.js} +4 -4
  115. package/dist/{compare-FWMFV7A7.js → compare-CVEB5SQC.js} +30 -29
  116. package/dist/{compiler-SKRY6FPA.js → compiler-RRTQNBUH.js} +4 -4
  117. package/dist/{component-HGEIXY3U.js → component-TZ2SIYOX.js} +3 -3
  118. package/dist/{compositions-2TXJLBWE.js → compositions-KRTRDV72.js} +12 -12
  119. package/dist/{curve-SSFKIA2L.js → curve-ZXUAGU4T.js} +11 -11
  120. package/dist/{cuts-BWXHTOOP.js → cuts-GY2K2CTK.js} +20 -15
  121. package/dist/{delete-F5RDWZEJ.js → delete-ZT4FCUX2.js} +6 -6
  122. package/dist/{deploy-OH4SMYTG.js → deploy-DVKSQTC7.js} +1 -1
  123. package/dist/{describeProject-B7H4T5PW.js → describeProject-L4ZW5CI7.js} +8 -8
  124. package/dist/{diff-6JFFTFKR.js → diff-AFOP2B3Y.js} +89 -229
  125. package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
  126. package/dist/{dist-YEYUGCOR.js → dist-DPOLFG5U.js} +2 -2
  127. package/dist/{doctor-XQCZB5BY.js → doctor-Y7YVL34W.js} +11 -11
  128. package/dist/{energy-MEMYSTFT.js → energy-YFLFELFX.js} +12 -12
  129. package/dist/{events-U6PXJI34.js → events-C5QV2MQG.js} +3 -3
  130. package/dist/{events-ZU2ATKWK.js → events-THASMGN6.js} +14 -14
  131. package/dist/{events-T7OLH6MW.js → events-VL7JKI2K.js} +4 -4
  132. package/dist/{extract-25TUTGCA.js → extract-GTNBVQ63.js} +15 -19
  133. package/dist/{face-KMLYOE5H.js → face-BSRKCB5W.js} +12 -12
  134. package/dist/{feedback-FE7GQTBH.js → feedback-MCQ2FKCC.js} +11 -11
  135. package/dist/{ffmpeg-CXYPYIZK.js → ffmpeg-3QNN3TQ5.js} +7 -7
  136. package/dist/{figma-QMKU7M7T.js → figma-IGXE3KWU.js} +3 -3
  137. package/dist/fontLocalizeCli.js +10 -10
  138. package/dist/{frames-2NPBO6LB.js → frames-XIFLB5KC.js} +13 -13
  139. package/dist/{generate-I6E3V7PU.js → generate-55FZPR3J.js} +18 -18
  140. package/dist/{get-JJWBP5NB.js → get-2MHD7XFA.js} +6 -6
  141. package/dist/{gpuPolicy-2OMDU74V.js → gpuPolicy-REJFNHWD.js} +7 -7
  142. package/dist/{grade-compare-QCA3VIKQ.js → grade-compare-CM45H7CR.js} +31 -30
  143. package/dist/{heifImagePrep-P53GG4GF.js → heifImagePrep-O3UZHGWR.js} +8 -8
  144. package/dist/{help-COSONWFD.js → help-V2GGIKP2.js} +1 -1
  145. package/dist/{history-CWKF5AXI.js → history-NUOQVUNY.js} +7 -7
  146. package/dist/hyperframe.manifest.json +1 -1
  147. package/dist/hyperframe.runtime.iife.js +67 -67
  148. package/dist/hyperframes-player.global.js +3 -3
  149. package/dist/{info-SD74Y6V5.js → info-5CMRZEJA.js} +8 -8
  150. package/dist/{init-XAYQNTVF.js → init-JNL5R27I.js} +28 -28
  151. package/dist/ink-HGQUC6L3.js +148 -0
  152. package/dist/{inspect-Y5IIQBIW.js → inspect-GGOCM324.js} +31 -30
  153. package/dist/{installer-NQA4KXRP.js → installer-BBY3T5MJ.js} +4 -4
  154. package/dist/{keyframes-MNPCJZYU.js → keyframes-2D4ZS6HE.js} +8 -8
  155. package/dist/{lambda-PMI6IDVN.js → lambda-TY2ZCPEN.js} +11 -11
  156. package/dist/{layout-6IM6R6LX.js → layout-X5GT4O2L.js} +31 -30
  157. package/dist/{lint-6VUHVHFF.js → lint-NVOUXE2L.js} +9 -9
  158. package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
  159. package/dist/{list-XXTAS744.js → list-CB4UDTID.js} +6 -6
  160. package/dist/{localPage-2UHUS6LM.js → localPage-EYPZRIGY.js} +7 -7
  161. package/dist/{login-KM3LPYQ7.js → login-L7JTVKV5.js} +7 -7
  162. package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
  163. package/dist/{look-3CD3ZSXY.js → look-VHQA2JSS.js} +12 -12
  164. package/dist/{manager-C6GVT3EI.js → manager-FGQKQMI7.js} +8 -8
  165. package/dist/{measure-DWZX4YAK.js → measure-5F7QZLO5.js} +12 -11
  166. package/dist/{media-treatment-IIUPGQIX.js → media-treatment-RRFIZKSA.js} +14 -14
  167. package/dist/{media-use-HLHUEFDK.js → media-use-5YGFOFKI.js} +3 -3
  168. package/dist/{models-IWHY5V6N.js → models-5B2RGGBT.js} +11 -11
  169. package/dist/{motionShot-4NKHFUS7.js → motionShot-JJBQLYCC.js} +16 -15
  170. package/dist/{normalize-audio-M2RS5Q23.js → normalize-audio-LWTNZWDJ.js} +10 -10
  171. package/dist/{open-U7CCHUBO.js → open-PGRJXREV.js} +12 -12
  172. package/dist/{parakeetRunner-ZHG3S6GY.js → parakeetRunner-OV4NSPB3.js} +12 -12
  173. package/dist/{pipeline-66JR7EC7.js → pipeline-HXGPFQZC.js} +10 -10
  174. package/dist/{play-5COR53D2.js → play-JONX6CIM.js} +21 -21
  175. package/dist/{preflight-OKAO5NPW.js → preflight-7OKMMUWG.js} +8 -8
  176. package/dist/{present-YKFQC22R.js → present-EHU52MSU.js} +17 -17
  177. package/dist/{preview-3YNKJZME.js → preview-DCEIITM6.js} +19 -19
  178. package/dist/{probe-QMPDGKU5.js → probe-EA4N3WOT.js} +11 -11
  179. package/dist/{producer-WBVDP3IV.js → producer-FGAOUR7O.js} +1 -1
  180. package/dist/{projectConfig-UI4NZDN7.js → projectConfig-N3ZRVJKB.js} +6 -6
  181. package/dist/{publication-VPJZQCLA.js → publication-ZKY2LVN5.js} +2 -2
  182. package/dist/{publish-7RA2MK2M.js → publish-RZVDFTBX.js} +15 -15
  183. package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
  184. package/dist/{remove-background-ELC7V7KT.js → remove-background-V5UXYPJS.js} +11 -11
  185. package/dist/{render-WH7MPRZD.js → render-NEZLBRAY.js} +37 -35
  186. package/dist/{render-IYV73CG6.js → render-UJCPQXGB.js} +5 -5
  187. package/dist/{render-R7E7TTNE.js → render-YZSDHP3U.js} +60 -27
  188. package/dist/{render-batch-IN2ZXPS7.js → render-batch-KPGYARDI.js} +5 -5
  189. package/dist/renderSetupWorker.js +2 -2
  190. package/dist/{resolver-DIXFK5ZR.js → resolver-HWNPLSXK.js} +4 -4
  191. package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
  192. package/dist/{sherpa-FP6HX5KK.js → sherpa-HSBYKUQC.js} +11 -11
  193. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
  194. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
  195. package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
  196. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
  197. package/dist/skills/media-use/scripts/resolve.mjs +11 -5
  198. package/dist/{skills-JLNDM2KP.js → skills-CW23U675.js} +6 -6
  199. package/dist/{skillsUpdateCheck-WS5M25TN.js → skillsUpdateCheck-LGBNNYLI.js} +3 -3
  200. package/dist/{snapshot-VPN6GA7U.js → snapshot-RK7ED6DW.js} +47 -38
  201. package/dist/{src-AP7B27MZ.js → src-KORQVG7O.js} +10 -6
  202. package/dist/{src-RGQFYVHO.js → src-ZDLQFZ4B.js} +9 -9
  203. package/dist/{staticProjectServer-YA6XOSFY.js → staticProjectServer-TFWT5G2L.js} +18 -18
  204. package/dist/{status-Y5ZBFJ53.js → status-6WAZ5EBM.js} +5 -5
  205. package/dist/studio/assets/{hyperframes-player-Do2ZF6Lp.js → hyperframes-player-qeY0knUZ.js} +3 -3
  206. package/dist/studio/assets/{index-CK4_IJ8G.js → index-B9O4nOYD.js} +1 -1
  207. package/dist/studio/assets/{index-Dxb7fTWf.js → index-BhZkOhf2.js} +174 -174
  208. package/dist/studio/index.html +1 -1
  209. package/dist/{studio-api-57E36S5N.js → studio-api-OIZEPWHS.js} +10 -10
  210. package/dist/{studioServer-EVMF3HHL.js → studioServer-62MG7LJR.js} +50 -49
  211. package/dist/{sync-ASUBSVGQ.js → sync-Q3XYLXTX.js} +12 -12
  212. package/dist/{telemetry-YON45KT4.js → telemetry-3YDPEGQK.js} +4 -4
  213. package/dist/{timeline-OQWDGV7L.js → timeline-VDLKFZZ7.js} +19 -19
  214. package/dist/{tokens-NMPY673W.js → tokens-ZZ4G2VKC.js} +2 -2
  215. package/dist/{transcribe-HSYXT5TZ.js → transcribe-2D6UIVAE.js} +10 -10
  216. package/dist/{transcribe-C6FKVSRR.js → transcribe-OYRCZUZM.js} +22 -22
  217. package/dist/{updateCheck-B7PAAPCJ.js → updateCheck-ZRG5DR74.js} +2 -2
  218. package/dist/{upgrade-BOECDD5S.js → upgrade-ZU6BHCTC.js} +2 -2
  219. package/dist/{urlDownloader-KC2SS457.js → urlDownloader-5WPUC6C6.js} +6 -6
  220. package/dist/{validate-LEEBUIIH.js → validate-OZRPF6YZ.js} +25 -24
  221. package/dist/{video-JJAEISDH.js → video-N2KXXYS3.js} +8 -8
  222. package/dist/warmCheck.js +39 -38
  223. package/package.json +1 -1
  224. package/dist/chunk-6UWSEXQ3.js +0 -5030
@@ -42,7 +42,7 @@ import {
42
42
  renderFrameIdForRenderId,
43
43
  resolveAuthoredTimingWindow,
44
44
  toFps
45
- } from "./chunk-FJ3KUOUZ.js";
45
+ } from "./chunk-XCGPPU32.js";
46
46
  import {
47
47
  AUDIO_GROUP_RENDER_ID_ATTR,
48
48
  AUTHORED_SOURCE_BEGIN,
@@ -85,7 +85,7 @@ import {
85
85
  sourceTimeAt,
86
86
  timeAtSourceTime,
87
87
  volumeSegmentSampleCount
88
- } from "./chunk-6UWSEXQ3.js";
88
+ } from "./chunk-XINVBLXA.js";
89
89
  import {
90
90
  redactTelemetryString,
91
91
  redactUrlQueryStrings
@@ -103,7 +103,7 @@ import {
103
103
  } from "./chunk-WE42NVH7.js";
104
104
  import {
105
105
  resolveReferencedStart
106
- } from "./chunk-HT3D5AKG.js";
106
+ } from "./chunk-GR2T3BOX.js";
107
107
  import {
108
108
  FFMPEG_PATH_ENV,
109
109
  FFPROBE_PATH_ENV,
@@ -112,7 +112,7 @@ import {
112
112
  import {
113
113
  isWithinProjectRoot,
114
114
  resolveProjectRelativeSrc
115
- } from "./chunk-AKMY4QVI.js";
115
+ } from "./chunk-2GTFW4MK.js";
116
116
  import {
117
117
  isPathInside
118
118
  } from "./chunk-C2KEGBR3.js";
@@ -169,6 +169,7 @@ var DEFAULT_CONFIG = {
169
169
  protocolTimeout: 3e5,
170
170
  forceScreenshot: false,
171
171
  staticFrameDedup: true,
172
+ videoLayerPassthrough: false,
172
173
  useDrawElement: true,
173
174
  enableDrawElementWorkerEncode: true,
174
175
  // Auto-detected per host in `resolveConfig`; defaults off for the raw
@@ -212,6 +213,7 @@ var BOOLEAN_ENGINE_CONFIG_FIELDS = [
212
213
  "enableBrowserPool",
213
214
  "forceScreenshot",
214
215
  "staticFrameDedup",
216
+ "videoLayerPassthrough",
215
217
  "useDrawElement",
216
218
  "enableDrawElementWorkerEncode",
217
219
  "lowMemoryMode",
@@ -480,6 +482,10 @@ function resolveConfig(overrides) {
480
482
  expectedChromiumMajor: env("PRODUCER_EXPECTED_CHROMIUM_MAJOR") ? Number(env("PRODUCER_EXPECTED_CHROMIUM_MAJOR")) : void 0,
481
483
  forceScreenshot: envBool("PRODUCER_FORCE_SCREENSHOT", DEFAULT_CONFIG.forceScreenshot),
482
484
  staticFrameDedup: resolveStaticFrameDedup(),
485
+ videoLayerPassthrough: envBool(
486
+ "HF_VIDEO_LAYER_PASSTHROUGH",
487
+ DEFAULT_CONFIG.videoLayerPassthrough
488
+ ),
483
489
  useDrawElement: envBool("PRODUCER_EXPERIMENTAL_FAST_CAPTURE", DEFAULT_CONFIG.useDrawElement),
484
490
  enableDrawElementWorkerEncode: envBool(
485
491
  "HF_DE_WORKER_ENCODE",
@@ -3737,13 +3743,16 @@ function capturesAlpha(options) {
3737
3743
  return options.transparent ?? options.format === "png";
3738
3744
  }
3739
3745
  var TRANSPARENT_BG_STYLE_ID = "__hf_transparent_bg__";
3740
- async function initTransparentBackground(page, { clearCompositionRoot = false } = {}) {
3746
+ async function initTransparentBackground(page, {
3747
+ clearCompositionRoot = false,
3748
+ hideElementIds = []
3749
+ } = {}) {
3741
3750
  const client = await getCdpSession(page);
3742
3751
  await client.send("Emulation.setDefaultBackgroundColorOverride", {
3743
3752
  color: { r: 0, g: 0, b: 0, a: 0 }
3744
3753
  });
3745
3754
  await page.evaluate(
3746
- (styleId, clearCompositionRoot2) => {
3755
+ (styleId, clearCompositionRoot2, hideIds) => {
3747
3756
  const selector = clearCompositionRoot2 ? "html,body,[data-composition-id]" : "html,body";
3748
3757
  let style = document.getElementById(styleId);
3749
3758
  if (!style) {
@@ -3751,10 +3760,12 @@ async function initTransparentBackground(page, { clearCompositionRoot = false }
3751
3760
  style.id = styleId;
3752
3761
  document.head.appendChild(style);
3753
3762
  }
3754
- style.textContent = `${selector}{background:transparent !important;background-color:transparent !important;background-image:none !important;}`;
3763
+ const hidden = hideIds.map((id) => `#${CSS.escape(id)}`).join(",");
3764
+ style.textContent = `${selector}{background:transparent !important;background-color:transparent !important;background-image:none !important;}` + (hidden ? `${hidden}{visibility:hidden !important;}` : "");
3755
3765
  },
3756
3766
  TRANSPARENT_BG_STYLE_ID,
3757
- clearCompositionRoot
3767
+ clearCompositionRoot,
3768
+ [...hideElementIds]
3758
3769
  );
3759
3770
  }
3760
3771
  async function captureAlphaPng(page, width, height) {
@@ -5814,7 +5825,11 @@ async function initDrawElementOrTransparentBackground(session, page, logInitPhas
5814
5825
  await finalizeDrawElementInit(session, page, logInitPhase, { transparent, forceDE });
5815
5826
  }
5816
5827
  } else if (capturesAlpha(session.options)) {
5817
- await initTransparentBackground(session.page);
5828
+ const hideElementIds = session.options.hiddenElementIds ?? [];
5829
+ await initTransparentBackground(session.page, {
5830
+ clearCompositionRoot: hideElementIds.length > 0,
5831
+ hideElementIds
5832
+ });
5818
5833
  }
5819
5834
  }
5820
5835
  function drawElementWorkerEncodeEligible(session, transparent) {
@@ -7155,82 +7170,88 @@ var MAX_STATIC_DEDUP_ANALYSIS_FRAMES = 1e6;
7155
7170
  function isStaticDedupFrameAnalysisSafe(totalFrames) {
7156
7171
  return Number.isFinite(totalFrames) && Number.isSafeInteger(totalFrames) && totalFrames > 0 && totalFrames <= MAX_STATIC_DEDUP_ANALYSIS_FRAMES;
7157
7172
  }
7158
- async function computeStaticFrameSet(page, fps) {
7159
- const result = await page.evaluate((spatialProps) => {
7160
- const SPATIAL_PROPS = new Set(spatialProps);
7161
- function isSpatial(vars) {
7162
- if (!vars) return false;
7163
- for (const key of Object.keys(vars)) if (SPATIAL_PROPS.has(key)) return true;
7164
- return false;
7165
- }
7166
- const intervals2 = [];
7167
- let tweenCount2 = 0;
7168
- let hasTimelineCall2 = false;
7169
- function walk(tl, offset) {
7170
- if (typeof tl.getChildren !== "function") return;
7171
- if (typeof tl.vars?.onUpdate === "function") {
7172
- const total = typeof tl.totalDuration === "function" ? tl.totalDuration() : 0;
7173
- if (total > 0) intervals2.push({ start: offset, end: offset + total, spatial: true });
7173
+ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
7174
+ const result = await page.evaluate(
7175
+ (spatialProps, ignored) => {
7176
+ const SPATIAL_PROPS = new Set(spatialProps);
7177
+ function isSpatial(vars) {
7178
+ if (!vars) return false;
7179
+ for (const key of Object.keys(vars)) if (SPATIAL_PROPS.has(key)) return true;
7180
+ return false;
7174
7181
  }
7175
- for (const child of tl.getChildren(false, true, true)) {
7176
- const start = offset + (typeof child.startTime === "function" ? child.startTime() : 0);
7177
- const single = typeof child.duration === "function" ? child.duration() : 0;
7178
- const total = typeof child.totalDuration === "function" ? child.totalDuration() : single;
7179
- if (typeof child.getChildren === "function") {
7180
- if (total > single + 1e-6) {
7181
- intervals2.push({ start, end: start + total, spatial: true });
7182
- walk(child, start);
7182
+ const intervals2 = [];
7183
+ let tweenCount2 = 0;
7184
+ let hasTimelineCall2 = false;
7185
+ function walk(tl, offset) {
7186
+ if (typeof tl.getChildren !== "function") return;
7187
+ if (typeof tl.vars?.onUpdate === "function") {
7188
+ const total = typeof tl.totalDuration === "function" ? tl.totalDuration() : 0;
7189
+ if (total > 0) intervals2.push({ start: offset, end: offset + total, spatial: true });
7190
+ }
7191
+ for (const child of tl.getChildren(false, true, true)) {
7192
+ const start = offset + (typeof child.startTime === "function" ? child.startTime() : 0);
7193
+ const single = typeof child.duration === "function" ? child.duration() : 0;
7194
+ const total = typeof child.totalDuration === "function" ? child.totalDuration() : single;
7195
+ if (typeof child.getChildren === "function") {
7196
+ if (total > single + 1e-6) {
7197
+ intervals2.push({ start, end: start + total, spatial: true });
7198
+ walk(child, start);
7199
+ } else {
7200
+ walk(child, start);
7201
+ }
7183
7202
  } else {
7184
- walk(child, start);
7185
- }
7186
- } else {
7187
- tweenCount2++;
7188
- intervals2.push({ start, end: start + total, spatial: isSpatial(child.vars) });
7189
- if (total <= 1e-6 && (typeof child.vars?.onComplete === "function" || typeof child.vars?.onReverseComplete === "function")) {
7190
- hasTimelineCall2 = true;
7203
+ tweenCount2++;
7204
+ intervals2.push({ start, end: start + total, spatial: isSpatial(child.vars) });
7205
+ if (total <= 1e-6 && (typeof child.vars?.onComplete === "function" || typeof child.vars?.onReverseComplete === "function")) {
7206
+ hasTimelineCall2 = true;
7207
+ }
7191
7208
  }
7192
7209
  }
7193
7210
  }
7194
- }
7195
- const w = window;
7196
- for (const tl of Object.values(w.__timelines || {})) {
7197
- if (tl && typeof tl.getChildren === "function") walk(tl, 0);
7198
- }
7199
- const hasVideo2 = !!document.querySelector("video");
7200
- const hasCanvas2 = !!document.querySelector("canvas");
7201
- const hasFrameSources2 = w.__hfHasFrameSources?.() ?? false;
7202
- const hasIframe2 = !!document.querySelector("iframe");
7203
- const hasUnresolvableClipStart2 = Array.from(document.querySelectorAll("[data-start]")).some(
7204
- (el) => {
7205
- const v = el.dataset.start;
7206
- return v != null && v.trim() !== "" && !Number.isFinite(parseFloat(v));
7211
+ const w = window;
7212
+ for (const tl of Object.values(w.__timelines || {})) {
7213
+ if (tl && typeof tl.getChildren === "function") walk(tl, 0);
7207
7214
  }
7208
- );
7209
- let hasNonGsapAnim2 = false;
7210
- try {
7211
- const docAnims = document.getAnimations;
7212
- if (typeof docAnims === "function") {
7213
- hasNonGsapAnim2 = docAnims.call(document).some((a) => {
7214
- const t = a;
7215
- return t.playState === "running" || t.playState === "paused";
7216
- });
7215
+ const hasVideo2 = Array.from(document.querySelectorAll("video")).some(
7216
+ (v) => !ignored.includes(v.id)
7217
+ );
7218
+ const hasCanvas2 = !!document.querySelector("canvas");
7219
+ const hasFrameSources2 = w.__hfHasFrameSources?.() ?? false;
7220
+ const hasIframe2 = !!document.querySelector("iframe");
7221
+ const hasUnresolvableClipStart2 = Array.from(document.querySelectorAll("[data-start]")).some(
7222
+ (el) => {
7223
+ const v = el.dataset.start;
7224
+ return v != null && v.trim() !== "" && !Number.isFinite(parseFloat(v));
7225
+ }
7226
+ );
7227
+ let hasNonGsapAnim2 = false;
7228
+ try {
7229
+ const docAnims = document.getAnimations;
7230
+ if (typeof docAnims === "function") {
7231
+ hasNonGsapAnim2 = docAnims.call(document).some((a) => {
7232
+ const t = a;
7233
+ return t.playState === "running" || t.playState === "paused";
7234
+ });
7235
+ }
7236
+ } catch {
7237
+ hasNonGsapAnim2 = true;
7217
7238
  }
7218
- } catch {
7219
- hasNonGsapAnim2 = true;
7220
- }
7221
- return {
7222
- intervals: intervals2,
7223
- tweenCount: tweenCount2,
7224
- duration: w.__hf?.duration ?? 0,
7225
- hasVideo: hasVideo2,
7226
- hasCanvas: hasCanvas2,
7227
- hasFrameSources: hasFrameSources2,
7228
- hasIframe: hasIframe2,
7229
- hasNonGsapAnim: hasNonGsapAnim2,
7230
- hasUnresolvableClipStart: hasUnresolvableClipStart2,
7231
- hasTimelineCall: hasTimelineCall2
7232
- };
7233
- }, SPATIAL_TWEEN_PROPERTIES);
7239
+ return {
7240
+ intervals: intervals2,
7241
+ tweenCount: tweenCount2,
7242
+ duration: w.__hf?.duration ?? 0,
7243
+ hasVideo: hasVideo2,
7244
+ hasCanvas: hasCanvas2,
7245
+ hasFrameSources: hasFrameSources2,
7246
+ hasIframe: hasIframe2,
7247
+ hasNonGsapAnim: hasNonGsapAnim2,
7248
+ hasUnresolvableClipStart: hasUnresolvableClipStart2,
7249
+ hasTimelineCall: hasTimelineCall2
7250
+ };
7251
+ },
7252
+ SPATIAL_TWEEN_PROPERTIES,
7253
+ [...ignoredVideoIds]
7254
+ );
7234
7255
  const {
7235
7256
  intervals,
7236
7257
  tweenCount,
@@ -7303,6 +7324,8 @@ async function computeStaticFrameSet(page, fps) {
7303
7324
  }
7304
7325
  var STATIC_VERIFY_REFERENCE_STRIDE = 24;
7305
7326
  var STATIC_VERIFY_MAX_MS = 15e3;
7327
+ var STATIC_VERIFY_HEADROOM = 1.5;
7328
+ var STATIC_VERIFY_CEILING_MS = 3e5;
7306
7329
  var STATIC_VERIFY_MIN_SCREENSHOT_CAP = 400;
7307
7330
  var STATIC_VERIFY_SAMPLE_CAP_MULTIPLIER = 8;
7308
7331
  var STATIC_VERIFY_MAX_GLOBAL_SAMPLE_FLOOR = STATIC_VERIFY_MIN_SCREENSHOT_CAP / STATIC_VERIFY_SAMPLE_CAP_MULTIPLIER;
@@ -7433,7 +7456,6 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
7433
7456
  const now = dependencies.now ?? Date.now;
7434
7457
  const capture = dependencies.capture ?? pageScreenshotCapture;
7435
7458
  const startedAt = now();
7436
- const deadline = startedAt + STATIC_VERIFY_MAX_MS;
7437
7459
  const verifiedFrames = /* @__PURE__ */ new Set();
7438
7460
  const stats = {
7439
7461
  plannedRuns: plan.runs.length,
@@ -7470,12 +7492,24 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
7470
7492
  plan.effectiveSampleFloor * STATIC_VERIFY_SAMPLE_CAP_MULTIPLIER,
7471
7493
  Math.ceil(plan.predictedFrames / STATIC_VERIFY_REFERENCE_STRIDE) * 3 + plan.runs.length
7472
7494
  );
7495
+ let firstShotMs = 0;
7473
7496
  const seekCapture = async (frameIdx) => {
7474
- if (now() >= deadline) return "time_budget";
7497
+ const spent = now() - startedAt;
7498
+ const budget = Math.max(
7499
+ STATIC_VERIFY_MAX_MS,
7500
+ Math.min(
7501
+ STATIC_VERIFY_CEILING_MS,
7502
+ STATIC_VERIFY_HEADROOM * plan.plannedScreenshots * firstShotMs
7503
+ )
7504
+ );
7505
+ if (spent >= budget) return "time_budget";
7475
7506
  if (stats.screenshots >= hardCap) return "count_budget";
7507
+ const shotStart = now();
7476
7508
  await seekToFrame(frameIdx);
7477
7509
  stats.screenshots++;
7478
- return capture(page, session.options);
7510
+ const buf = await capture(page, session.options);
7511
+ if (stats.screenshots === 1) firstShotMs = now() - shotStart;
7512
+ return buf;
7479
7513
  };
7480
7514
  try {
7481
7515
  for (const run of plan.runs) {
@@ -7514,7 +7548,11 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
7514
7548
  async function armStaticDedup(session, page, logInitPhase) {
7515
7549
  let sharedStaticFrameStats;
7516
7550
  if (session.options.motionBlur && session.options.motionBlur.samplesPerFrame === void 0 && !session.motionBlurNonSpatialFrames) {
7517
- sharedStaticFrameStats = await computeStaticFrameSet(page, fpsToNumber(session.options.fps));
7551
+ sharedStaticFrameStats = await computeStaticFrameSet(
7552
+ page,
7553
+ fpsToNumber(session.options.fps),
7554
+ session.options.hiddenElementIds
7555
+ );
7518
7556
  session.motionBlurNonSpatialFrames = sharedStaticFrameStats.nonSpatialOnlyFrameSet;
7519
7557
  }
7520
7558
  if (session.staticFrames || session.staticDedupSkipReason) return;
@@ -7541,7 +7579,7 @@ async function armStaticDedup(session, page, logInitPhase) {
7541
7579
  return;
7542
7580
  }
7543
7581
  const fps = fpsToNumber(session.options.fps);
7544
- const stats = sharedStaticFrameStats ?? await computeStaticFrameSet(page, fps);
7582
+ const stats = sharedStaticFrameStats ?? await computeStaticFrameSet(page, fps, session.options.hiddenElementIds);
7545
7583
  if (!stats.eligible || stats.staticFrameSet.size === 0) {
7546
7584
  session.staticDedupSkipReason = "ineligible";
7547
7585
  logInitPhase(`static-frame dedup: disabled (${stats.reason})`);
@@ -8375,6 +8413,7 @@ function getCapturePerfSummary(session) {
8375
8413
  avgSeekMs: Math.round(session.capturePerf.seekMs / frames),
8376
8414
  avgBeforeCaptureMs: Math.round(session.capturePerf.beforeCaptureMs / frames),
8377
8415
  avgScreenshotMs: Math.round(session.capturePerf.screenshotMs / frames),
8416
+ captureBeyondViewport: session.options.captureBeyondViewport,
8378
8417
  p50TotalMs: medianOf(session.capturePerf.frameMs),
8379
8418
  p95TotalMs: percentileOf(session.capturePerf.frameMs, 0.95),
8380
8419
  p99TotalMs: percentileOf(session.capturePerf.frameMs, 0.99),
@@ -9365,6 +9404,10 @@ function formatFfmpegSeconds(seconds) {
9365
9404
  const text = String(seconds);
9366
9405
  return text.includes("e") ? String(+seconds.toFixed(6)) : text;
9367
9406
  }
9407
+ function readIntervalSpec(startSeconds, end) {
9408
+ const to = typeof end === "number" ? formatFfmpegSeconds(end) : end;
9409
+ return `${formatFfmpegSeconds(startSeconds)}%${to}`;
9410
+ }
9368
9411
  function ffmpegSeekSeconds(metadata, mediaTime) {
9369
9412
  return mediaTime - (metadata.mediaTimeOffsetSeconds ?? 0);
9370
9413
  }
@@ -9718,7 +9761,7 @@ async function extractFinalPacketDuration(filePath, window2, signal) {
9718
9761
  "-select_streams",
9719
9762
  "v:0",
9720
9763
  "-read_intervals",
9721
- `${formatFfmpegSeconds(intervalStart)}%${formatFfmpegSeconds(streamEnd)}`,
9764
+ readIntervalSpec(intervalStart, streamEnd),
9722
9765
  "-show_entries",
9723
9766
  "packet=pts_time,duration_time",
9724
9767
  "-of",
@@ -9776,7 +9819,7 @@ async function extractFinalVideoFrameTimestamp(filePath, metadata, signal) {
9776
9819
  });
9777
9820
  return parseFinalTimestamp(stdout);
9778
9821
  };
9779
- const timestamp = await probe(`${formatFfmpegSeconds(intervalStart)}%${formatFfmpegSeconds(streamEnd)}`) ?? await probe(
9822
+ const timestamp = await probe(readIntervalSpec(intervalStart, streamEnd)) ?? await probe(
9780
9823
  /* full scan */
9781
9824
  );
9782
9825
  if (timestamp === void 0) {
@@ -9905,7 +9948,7 @@ async function probeDecodedAudioDuration(filePath, audioStream, sampleRate, star
9905
9948
  startSeconds,
9906
9949
  startSeconds + containerDurationSeconds - AUDIO_DURATION_PROBE_TAIL_SECONDS
9907
9950
  );
9908
- const lastFrame = await probe(`${tailStart}%${FFPROBE_READ_INTERVAL_EXPLICIT_FAR_END}`) ?? await probe();
9951
+ const lastFrame = await probe(readIntervalSpec(tailStart, FFPROBE_READ_INTERVAL_EXPLICIT_FAR_END)) ?? await probe();
9909
9952
  if (!lastFrame) return null;
9910
9953
  return lastFrame.timestamp + lastFrame.nbSamples / sampleRate - startSeconds;
9911
9954
  }
@@ -9936,7 +9979,7 @@ async function keyframeGapSeconds(filePath, seekSeconds, signal) {
9936
9979
  filePath,
9937
9980
  [
9938
9981
  ...["-select_streams", "v:0", "-show_entries", "packet=pts_time", "-of", "csv=p=0"],
9939
- ...["-read_intervals", `${formatFfmpegSeconds(seekSeconds)}%+#1`]
9982
+ ...["-read_intervals", readIntervalSpec(seekSeconds, "+#1")]
9940
9983
  ],
9941
9984
  signal
9942
9985
  );
@@ -10932,8 +10975,12 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null) {
10932
10975
  "-"
10933
10976
  );
10934
10977
  }
10978
+ if (options.videoLayer) args.push(...options.videoLayer.inputArgs);
10935
10979
  args.push("-r", fpsToFfmpegArg(fps));
10936
10980
  const shouldUseGpu = useGpu && gpuEncoder !== null;
10981
+ if (options.videoLayer && (imageFormat !== "png" || options.rawInputFormat || shouldUseGpu || codec !== "h264" && codec !== "h265")) {
10982
+ throw new Error("videoLayer needs software h264/h265 and PNG frames");
10983
+ }
10937
10984
  appendRateCapArgs(args, options);
10938
10985
  if (codec === "h264" || codec === "h265") {
10939
10986
  if (shouldUseGpu) {
@@ -11047,6 +11094,20 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null) {
11047
11094
  if (vfIdx !== -1) {
11048
11095
  args[vfIdx + 1] = `${frameFilter},${args[vfIdx + 1]}`;
11049
11096
  }
11097
+ } else if (options.videoLayer) {
11098
+ const video = `[1:v]${options.videoLayer.filters.join(",")},format=gbrp[v]`;
11099
+ const tail2 = withEvenDimensionPad(
11100
+ SDR_RGB_TO_TAGGED_BT709_FILTER,
11101
+ pixelFormat,
11102
+ options.width,
11103
+ options.height
11104
+ );
11105
+ args.push(
11106
+ "-filter_complex",
11107
+ `${video};[0:v]format=rgba[o];[v][o]overlay=format=gbrp,${tail2}[vout]`,
11108
+ "-map",
11109
+ "[vout]"
11110
+ );
11050
11111
  } else {
11051
11112
  args.push(
11052
11113
  "-vf",
@@ -11301,7 +11362,7 @@ function isMemberGroupHidden(groupsById, el) {
11301
11362
 
11302
11363
  // ../engine/src/services/videoFrameExtractor.ts
11303
11364
  import { copyFileSync as copyFileSync2, existsSync as existsSync9, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
11304
- import { basename as basename2, join as join12 } from "path";
11365
+ import { basename as basename2, isAbsolute, join as join12, normalize, relative, win32 } from "path";
11305
11366
  import { cpus } from "os";
11306
11367
 
11307
11368
  // ../engine/src/utils/concurrencyLimit.ts
@@ -12818,6 +12879,23 @@ async function hdrToSdrTransformKey() {
12818
12879
  function sdrToHdrTransformKey(transfer) {
12819
12880
  return `sdr2hdr-${transfer}`;
12820
12881
  }
12882
+ var URL_SCHEME = /^[a-z][a-z0-9+.-]+:/i;
12883
+ var WINDOWS_ABSOLUTE = /^([a-zA-Z]:[\\/]|\\\\)/;
12884
+ function videoExtractionSourceLabel(src, baseDir) {
12885
+ if (/^(data|blob):/i.test(src)) return "inline video";
12886
+ if (URL_SCHEME.test(src)) {
12887
+ try {
12888
+ return basename2(decodeURIComponent(new URL(src).pathname)) || "remote video";
12889
+ } catch {
12890
+ return "remote video";
12891
+ }
12892
+ }
12893
+ const path = src.split(/[?#]/)[0];
12894
+ const lib = WINDOWS_ABSOLUTE.test(path) ? win32 : { isAbsolute, relative, basename: basename2, normalize };
12895
+ const relativePath = lib.isAbsolute(path) ? lib.relative(baseDir, path) : lib.normalize(path);
12896
+ const label = relativePath.startsWith("..") || lib.isAbsolute(relativePath) ? lib.basename(path) : relativePath;
12897
+ return label.replace(/\\/g, "/");
12898
+ }
12821
12899
  function safeVideoExtractionSourceIdentity(source) {
12822
12900
  if (!isHttpUrl(source)) return null;
12823
12901
  const identity = safeDownloadUrlIdentity(source);
@@ -13296,6 +13374,69 @@ async function extractVideoFramesRange(...args) {
13296
13374
  throw redactUrlQueriesInError(error);
13297
13375
  }
13298
13376
  }
13377
+ function videoFilterChain(input) {
13378
+ const { metadata, format, ffmpegFps, sampleAtOutputFps, keepsHdrForChrome, toneMapFrom } = input;
13379
+ const toneMappedToSdr = toneMapFrom !== void 0;
13380
+ const head = [];
13381
+ if (keepsHdrForChrome) head.push("format=nv12");
13382
+ const tail2 = [];
13383
+ if (metadata.sampleAspectRatio) {
13384
+ tail2.push("scale=trunc(iw*sar/2)*2:ih", "setsar=1");
13385
+ }
13386
+ const sampling = (seek) => sampleAtOutputFps ? [
13387
+ ...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, videoStartOnMediaTimeline(metadata)),
13388
+ "settb=intb/2",
13389
+ "setpts=PTS-lte(TB\\,0.001)",
13390
+ `fps=${ffmpegFps}:start_time=0:round=up`
13391
+ ] : [];
13392
+ if (input.sdrToHdrTransfer) {
13393
+ tail2.push(SDR_TO_HDR_COLORSPACE_FILTER);
13394
+ }
13395
+ if (toneMapFrom) {
13396
+ tail2.push(hdrToSdrToneMapFilter(metadata.colorSpace ?? {}, toneMapFrom));
13397
+ }
13398
+ if (toneMappedToSdr || !input.isHdr && !input.sdrToHdrTransfer) {
13399
+ tail2.push(...sdrCanvasColourFilters(metadata, toneMappedToSdr));
13400
+ if (format === "jpg") {
13401
+ if (input.shownBox) tail2.push(halveToCoverScaleFilter(input.shownBox));
13402
+ tail2.push(SDR_JPEG_AS_BT601_FULL_RANGE_FILTER);
13403
+ }
13404
+ }
13405
+ return (seek) => [...head, ...sampling(seek), ...tail2];
13406
+ }
13407
+ async function buildVideoLayerInput(videoPath, startTime, duration, fps, canvas, fit = "fill") {
13408
+ const metadata = await extractMediaMetadata(videoPath);
13409
+ if (startTime + duration > resolvePlayableVideoDuration(metadata) + 1e-3 || isHdrColorSpace(metadata.colorSpace) || metadata.isVFR || metadata.hasAlpha || codecMayHaveAlpha(metadata.videoCodec)) {
13410
+ return void 0;
13411
+ }
13412
+ const chain = videoFilterChain({
13413
+ metadata,
13414
+ format: "png",
13415
+ ffmpegFps: fpsToFfmpegArg(fps),
13416
+ sampleAtOutputFps: true,
13417
+ keepsHdrForChrome: false,
13418
+ isHdr: false
13419
+ });
13420
+ const filters = chain(startTime);
13421
+ if (metadata.width !== canvas.width || metadata.height !== canvas.height) {
13422
+ filters.push(
13423
+ fit === "cover" ? `scale=${canvas.width}:${canvas.height}:force_original_aspect_ratio=increase:flags=bicubic,crop=${canvas.width}:${canvas.height}` : `scale=${canvas.width}:${canvas.height}:flags=bicubic`
13424
+ );
13425
+ }
13426
+ return {
13427
+ inputArgs: [
13428
+ "-noaccurate_seek",
13429
+ "-ss",
13430
+ formatFfmpegSeconds(ffmpegSeekSeconds(metadata, startTime)),
13431
+ ...urlInputArgs(videoPath),
13432
+ "-i",
13433
+ videoPath,
13434
+ "-t",
13435
+ formatFfmpegSeconds(duration)
13436
+ ],
13437
+ filters
13438
+ };
13439
+ }
13299
13440
  async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime, duration, options, signal, config, outputDirOverride) {
13300
13441
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
13301
13442
  const { outputDir, quality = 95 } = options;
@@ -13365,41 +13506,24 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
13365
13506
  formatFfmpegSeconds(duration)
13366
13507
  );
13367
13508
  }
13368
- const vfFilters = [];
13369
- if (keepsHdrForChrome) {
13370
- vfFilters.push("format=nv12");
13371
- }
13372
- const samplingAt = vfFilters.length;
13373
- if (metadata.sampleAspectRatio) {
13374
- vfFilters.push("scale=trunc(iw*sar/2)*2:ih", "setsar=1");
13375
- }
13376
- const samplingFilters = (seek) => sampleAtOutputFps ? [
13377
- ...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, videoStartOnMediaTimeline(metadata)),
13378
- "settb=intb/2",
13379
- "setpts=PTS-lte(TB\\,0.001)",
13380
- `fps=${ffmpegFps}:start_time=0:round=up`
13381
- ] : [];
13382
- if (options.sdrToHdrTransfer) {
13383
- vfFilters.push(SDR_TO_HDR_COLORSPACE_FILTER);
13384
- }
13385
- if (toneMappedToSdr) {
13386
- const frameColour = await readFirstFrameColour(videoPath);
13387
- vfFilters.push(hdrToSdrToneMapFilter(metadata.colorSpace ?? {}, frameColour));
13388
- }
13389
- if (toneMappedToSdr || !isHdr && !options.sdrToHdrTransfer) {
13390
- vfFilters.push(...sdrCanvasColourFilters(metadata, toneMappedToSdr));
13391
- if (format === "jpg") {
13392
- if (options.shownBox) vfFilters.push(halveToCoverScaleFilter(options.shownBox));
13393
- vfFilters.push(SDR_JPEG_AS_BT601_FULL_RANGE_FILTER);
13394
- }
13395
- }
13509
+ const frameColour = toneMappedToSdr ? await readFirstFrameColour(videoPath) : void 0;
13510
+ const filtersFor = videoFilterChain({
13511
+ metadata,
13512
+ format,
13513
+ ffmpegFps,
13514
+ sampleAtOutputFps,
13515
+ keepsHdrForChrome,
13516
+ toneMapFrom: frameColour,
13517
+ isHdr,
13518
+ sdrToHdrTransfer: options.sdrToHdrTransfer,
13519
+ shownBox: options.shownBox
13520
+ });
13396
13521
  const encodeArgs = ["-q:v", format === "jpg" ? String(Math.ceil((100 - quality) / 3)) : "0"];
13397
13522
  if (format === "png") encodeArgs.push("-compression_level", "1");
13398
13523
  encodeArgs.push("-y", outputPattern);
13399
13524
  const runOptions = { signal, timeout: ffmpegProcessTimeout };
13400
13525
  const filterArgsFor = (seek) => {
13401
- const filters = [...vfFilters];
13402
- filters.splice(samplingAt, 0, ...samplingFilters(seek));
13526
+ const filters = filtersFor(seek);
13403
13527
  return filters.length > 0 ? ["-vf", filters.join(",")] : [];
13404
13528
  };
13405
13529
  const segmentFrames = Math.round(EXTRACTION_SEGMENT_SECONDS * fps);
@@ -14495,10 +14619,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
14495
14619
  breakdown.cacheGcBytesFreed = gcStats.evictedBytes;
14496
14620
  breakdown.cacheAgedPartialsCleared = gcStats.agedPartialsRemoved;
14497
14621
  }
14622
+ const srcById = new Map(videos.map((video) => [video.id, video.src]));
14498
14623
  return {
14499
14624
  success: errors.length === 0,
14500
14625
  extracted,
14501
- errors,
14626
+ errors: errors.map((failure) => {
14627
+ const src = srcById.get(failure.videoId);
14628
+ return src === void 0 ? failure : { ...failure, source: videoExtractionSourceLabel(src, baseDir) };
14629
+ }),
14502
14630
  totalFramesExtracted,
14503
14631
  durationMs: Date.now() - startTime,
14504
14632
  phaseBreakdown: breakdown
@@ -14685,6 +14813,25 @@ function createFrameLookupTable(videos, extracted, fps) {
14685
14813
  return table;
14686
14814
  }
14687
14815
 
14816
+ // ../engine/src/services/videoLayerPassthrough.ts
14817
+ var EDGE_EPSILON_SECONDS = 1e-3;
14818
+ function qualifyVideoLayer(videos, compositionDuration) {
14819
+ if (videos.length !== 1) return { qualifies: false, reason: "video_count" };
14820
+ const video = videos[0];
14821
+ if (!video) return { qualifies: false, reason: "video_count" };
14822
+ if (video.hidden) return { qualifies: false, reason: "hidden" };
14823
+ if (video.graded) return { qualifies: false, reason: "color_grading" };
14824
+ if (video.loop) return { qualifies: false, reason: "loop" };
14825
+ if (video.playbackRate !== void 0 && video.playbackRate !== 1) {
14826
+ return { qualifies: false, reason: "playback_rate" };
14827
+ }
14828
+ if (video.start > EDGE_EPSILON_SECONDS) return { qualifies: false, reason: "late_start" };
14829
+ if (video.end < compositionDuration - EDGE_EPSILON_SECONDS) {
14830
+ return { qualifies: false, reason: "ends_early" };
14831
+ }
14832
+ return { qualifies: true, video };
14833
+ }
14834
+
14688
14835
  // ../engine/src/services/videoFrameInjector.ts
14689
14836
  import { promises as fs } from "fs";
14690
14837
  function createFrameSourceCache(entryLimit, bytesLimit, frameSrcResolver) {
@@ -15179,7 +15326,7 @@ async function queryElementStacking(page, nativeHdrIds) {
15179
15326
 
15180
15327
  // ../engine/src/services/audioMixer.ts
15181
15328
  import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, mkdtempSync as mkdtempSync9, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
15182
- import { join as join16, dirname as dirname7, isAbsolute, relative } from "path";
15329
+ import { join as join16, dirname as dirname7, isAbsolute as isAbsolute2, relative as relative2 } from "path";
15183
15330
 
15184
15331
  // ../engine/src/utils/notMediaPayload.ts
15185
15332
  import { createHash as createHash3 } from "crypto";
@@ -16552,8 +16699,8 @@ function buildTrackInputFilter(track, index, volumeFilter, totalDuration, padToD
16552
16699
  return `${filters}${padToDuration ? `,apad,asetpts=N/SR/TB,atrim=0:${formatFilterNumber(totalDuration)}` : ""}[a${index}]`;
16553
16700
  }
16554
16701
  function missingSourceMessage(elementId, src, baseDir, resolvedPath) {
16555
- const relativePath = relative(baseDir, resolvedPath).replace(/\\/g, "/");
16556
- const insideProject = !relativePath.startsWith("..") && !isAbsolute(relativePath);
16702
+ const relativePath = relative2(baseDir, resolvedPath).replace(/\\/g, "/");
16703
+ const insideProject = !relativePath.startsWith("..") && !isAbsolute2(relativePath);
16557
16704
  const authored = /^([\\/]|[A-Za-z]:)/.test(src) ? "" : `src="${src}" `;
16558
16705
  return `Source not found for audio element ${elementId}: ${authored}resolved to ${insideProject ? relativePath : "a path outside the project"}`;
16559
16706
  }
@@ -19181,6 +19328,7 @@ export {
19181
19328
  parseImageElements,
19182
19329
  sdrCanvasColourFilters,
19183
19330
  extractVideoFramesRange,
19331
+ buildVideoLayerInput,
19184
19332
  isVideoPastTimelineEnd,
19185
19333
  rebaseVideoToWindow,
19186
19334
  resolveTimelineExtractionWindow,
@@ -19194,6 +19342,7 @@ export {
19194
19342
  analyzeClipMediaFit,
19195
19343
  FrameLookupTable,
19196
19344
  createFrameLookupTable,
19345
+ qualifyVideoLayer,
19197
19346
  createVideoFrameInjector,
19198
19347
  hideVideoElements,
19199
19348
  showVideoElements,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeFirstFrameColour,
9
9
  probeMediaMetadata
10
- } from "./chunk-E47ZWDMH.js";
10
+ } from "./chunk-P7TDUSPH.js";
11
11
  import {
12
12
  alphaDecoderFor
13
13
  } from "./chunk-5S7W3TUO.js";
@@ -15,7 +15,7 @@ import {
15
15
  formatPreviewProxyBox,
16
16
  hdrToSdrToneMapFilter,
17
17
  isHeavyForPreview
18
- } from "./chunk-FJ3KUOUZ.js";
18
+ } from "./chunk-XCGPPU32.js";
19
19
  import {
20
20
  mkdirWithinProject,
21
21
  realProjectRoot,
@@ -29,7 +29,7 @@ import {
29
29
  isRemoteOrInlineUrl,
30
30
  isUnresolvedAssetPlaceholder,
31
31
  resolveExistingLocalAsset
32
- } from "./chunk-AKMY4QVI.js";
32
+ } from "./chunk-2GTFW4MK.js";
33
33
  import {
34
34
  rewriteAssetPath
35
35
  } from "./chunk-C2KEGBR3.js";