hyperframes 0.8.177 → 0.8.179

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 (182) hide show
  1. package/dist/{add-YVP5YBNV.js → add-2CCBND75.js} +12 -12
  2. package/dist/{animatedGifPrep-6SPYXSHE.js → animatedGifPrep-S6XXOOXK.js} +7 -7
  3. package/dist/api.js +16 -16
  4. package/dist/{asset-CZHAZMDR.js → asset-7HOLVSD5.js} +2 -2
  5. package/dist/{assetCataloger-5GGNQC3Y.js → assetCataloger-MSAMR77T.js} +7 -7
  6. package/dist/{audio-F37HJPGZ.js → audio-356GVOLJ.js} +13 -13
  7. package/dist/{auth-CADZEUXD.js → auth-YHI5VR4X.js} +1 -1
  8. package/dist/{autoUpdate-46XNDX2V.js → autoUpdate-OP345EBV.js} +2 -2
  9. package/dist/{backgroundChecks-UWDSDJHJ.js → backgroundChecks-6NVELE25.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-KXXTVNPB.js → batchRender-OOQYGH5A.js} +4 -4
  12. package/dist/{beats-COVC2QGG.js → beats-DQH5SOHM.js} +5 -5
  13. package/dist/{benchmark-HDPPG2FE.js → benchmark-2W2NPNLJ.js} +9 -9
  14. package/dist/{browser-JEIXZKJN.js → browser-SCM75524.js} +9 -8
  15. package/dist/{bundleWithLocalizedFonts-PMRGOQWD.js → bundleWithLocalizedFonts-4F6HKLMZ.js} +2 -2
  16. package/dist/{capture-QVW6JPTF.js → capture-YRS6SZ6B.js} +11 -11
  17. package/dist/{capture-YMF7J55W.js → capture-ZBGAJYVH.js} +2 -2
  18. package/dist/{captureCompositionFrame-QUYL3DEX.js → captureCompositionFrame-Z33NWUED.js} +11 -11
  19. package/dist/{catalog-DTB6S66P.js → catalog-MOSGL65T.js} +13 -13
  20. package/dist/{catch-up-Y4KO7XHK.js → catch-up-TCAZFTMO.js} +5 -5
  21. package/dist/{check-3YLTRK6W.js → check-QVXSTHZB.js} +39 -39
  22. package/dist/{checkBrowser-LEUOWFNZ.js → checkBrowser-NF2CMWYR.js} +35 -35
  23. package/dist/chunk-2R5ZKWSV.js +26 -0
  24. package/dist/{chunk-HIP62XAW.js → chunk-2X4PQEYM.js} +1 -3
  25. package/dist/{chunk-42T7OP4O.js → chunk-32GKQ73S.js} +1 -1
  26. package/dist/{chunk-PIH4P2G6.js → chunk-3EJYUZHW.js} +16 -14
  27. package/dist/{chunk-L6XT6GSV.js → chunk-52L2L46Q.js} +1 -1
  28. package/dist/chunk-537IYAEE.js +80 -0
  29. package/dist/{chunk-7L4JOVV7.js → chunk-5HZAIPHY.js} +1 -1
  30. package/dist/{chunk-GVIH4ZQY.js → chunk-5RS2FIZU.js} +1 -1
  31. package/dist/{chunk-T76PLPD6.js → chunk-634HSJ3J.js} +2 -1
  32. package/dist/{chunk-L3LJVYXS.js → chunk-A2BB2XQU.js} +2 -2
  33. package/dist/{chunk-DQY6WTF7.js → chunk-A3RUVTGB.js} +1 -1
  34. package/dist/{chunk-P3MMF2JQ.js → chunk-AEWZDKFS.js} +1 -1
  35. package/dist/{chunk-OYEDHVSI.js → chunk-AFKVI7FJ.js} +1 -1
  36. package/dist/{chunk-DNZMBQTH.js → chunk-AHPGAESX.js} +1 -1
  37. package/dist/{chunk-VEQ7DKPG.js → chunk-AHS5QYKF.js} +1 -1
  38. package/dist/{chunk-FFDC5OWV.js → chunk-ALVXFXUG.js} +5 -3
  39. package/dist/{chunk-TNDNFZOK.js → chunk-BGKZ37BC.js} +2 -2
  40. package/dist/{chunk-LY2GLSOS.js → chunk-BJJ3QF7T.js} +1 -1
  41. package/dist/{chunk-GZG3ZZOO.js → chunk-BNGRVR3Y.js} +4 -4
  42. package/dist/{chunk-AFSBPASX.js → chunk-BW2UQR4A.js} +5 -5
  43. package/dist/{chunk-2PNLYDGZ.js → chunk-C5XU53VP.js} +10 -10
  44. package/dist/{chunk-NL5F3AD4.js → chunk-CML25PAF.js} +2 -4
  45. package/dist/{chunk-S3T3TDAB.js → chunk-COK5OUBX.js} +2 -2
  46. package/dist/{chunk-MG66UO4N.js → chunk-CW3VIQMZ.js} +1 -1
  47. package/dist/{chunk-6GMZRHYD.js → chunk-DHKYJYOY.js} +3 -3
  48. package/dist/{chunk-MPNVXG3J.js → chunk-DLF5KIBL.js} +2 -2
  49. package/dist/{chunk-XRKMITSS.js → chunk-E24HSMZV.js} +12 -51
  50. package/dist/{chunk-FE2XTCTM.js → chunk-EEP5Y5IE.js} +1 -18
  51. package/dist/{chunk-EOOEC32M.js → chunk-EVMY7IPL.js} +22 -0
  52. package/dist/{chunk-KRKSY2AE.js → chunk-F3GML67X.js} +1 -1
  53. package/dist/{chunk-PL4WM5XE.js → chunk-FIAQ4J45.js} +2 -2
  54. package/dist/{chunk-6OV3YGZF.js → chunk-FTWOVWHR.js} +2 -2
  55. package/dist/{chunk-457OAAL2.js → chunk-HU4PBQGJ.js} +1 -1
  56. package/dist/{chunk-GMJ3ILLW.js → chunk-ICMXC3MI.js} +7 -24
  57. package/dist/{chunk-LZT3NUTE.js → chunk-IE6O2VXV.js} +1 -1
  58. package/dist/{chunk-B7DJQFAC.js → chunk-IHWI3KZY.js} +4 -4
  59. package/dist/{chunk-WNQUXBDU.js → chunk-ILLFG4RN.js} +3 -3
  60. package/dist/{chunk-LEILKM2N.js → chunk-JRIXYXG3.js} +1361 -1151
  61. package/dist/{chunk-MNEC244Z.js → chunk-LBRJKTVY.js} +2 -2
  62. package/dist/{chunk-X4PK5ZXP.js → chunk-LO4DHZLH.js} +3 -3
  63. package/dist/{chunk-SJFA4CZ3.js → chunk-M2DZX2DP.js} +2 -2
  64. package/dist/{chunk-2CEIKEFU.js → chunk-M5CJQ6EH.js} +1 -1
  65. package/dist/{chunk-JWUKHXM6.js → chunk-MK6D6HVT.js} +1 -1
  66. package/dist/{chunk-BQTCQ6VN.js → chunk-MXNKK7HY.js} +3 -3
  67. package/dist/{chunk-BHFIITTD.js → chunk-N3U7WHQK.js} +5 -5
  68. package/dist/{chunk-SSYUONVH.js → chunk-NTMCSIQB.js} +2 -2
  69. package/dist/{chunk-BEX7K4WO.js → chunk-OINJILMB.js} +2 -2
  70. package/dist/{chunk-UEGULMAH.js → chunk-ORM7SJ7K.js} +7 -7
  71. package/dist/{chunk-2YT3SCXL.js → chunk-OXP77SHD.js} +2 -2
  72. package/dist/chunk-PLNQW2C6.js +3805 -0
  73. package/dist/{chunk-JNL3RMDG.js → chunk-PU33GPG4.js} +1 -1
  74. package/dist/{chunk-XXHHPB6E.js → chunk-Q73AGCTV.js} +11 -11
  75. package/dist/{chunk-W47D3KOB.js → chunk-RHWJKSGH.js} +1 -1
  76. package/dist/{chunk-M3MXTYDE.js → chunk-RJIJWETG.js} +1 -1
  77. package/dist/{chunk-K535ASAM.js → chunk-TINAVSGR.js} +1 -1
  78. package/dist/{chunk-C6TPGUWD.js → chunk-TTVHYD5R.js} +2 -2
  79. package/dist/{chunk-QWCXGTOH.js → chunk-UOHQV6AV.js} +24 -12
  80. package/dist/{chunk-5ZSLJXQX.js → chunk-UWPUEI5U.js} +2 -2
  81. package/dist/{chunk-4YBNQDZM.js → chunk-VCDWVVDV.js} +11 -7
  82. package/dist/{chunk-MXFCQCKE.js → chunk-VI7IQ2QF.js} +7 -7
  83. package/dist/{chunk-YWSXFFO3.js → chunk-VU4JLRNH.js} +156 -76
  84. package/dist/{chunk-YCRX5APY.js → chunk-WOXRCPJU.js} +1 -1
  85. package/dist/{chunk-PO2SDVQA.js → chunk-WQ6ZXHFQ.js} +3 -1
  86. package/dist/{chunk-X6HYBA4A.js → chunk-XSQWXUK2.js} +1 -1
  87. package/dist/{chunk-HLBAQBHT.js → chunk-XX4ZYQR6.js} +1 -1
  88. package/dist/{chunk-NWEER3QY.js → chunk-YH7VQAKX.js} +2 -2
  89. package/dist/{chunk-DZMWNCHM.js → chunk-ZAJO3YCQ.js} +2 -2
  90. package/dist/{clean-BDXOJ4PW.js → clean-SJ2UIDKG.js} +20 -20
  91. package/dist/cli.js +54 -54
  92. package/dist/{cloud-HVG2LUBO.js → cloud-DH7QGNPZ.js} +4 -4
  93. package/dist/{cloudrun-P35BPQCO.js → cloudrun-ZA2ZH2VZ.js} +10 -8
  94. package/dist/{compare-ZXORZDGQ.js → compare-5JNN5BHX.js} +29 -29
  95. package/dist/{compiler-5TFPJPQQ.js → compiler-CQ6OKYT5.js} +2 -2
  96. package/dist/{component-AZHVBBVP.js → component-LJQWLOXZ.js} +3 -3
  97. package/dist/{compositions-WFILUFC4.js → compositions-UILNO2RF.js} +11 -11
  98. package/dist/{delete-I34NH2Q4.js → delete-WIO2MDPB.js} +2 -2
  99. package/dist/deploy-BUEYC7MP.js +196 -0
  100. package/dist/{destroy-BEL232I5.js → destroy-QBLMYDBF.js} +6 -3
  101. package/dist/{dist-U2HCECNB.js → dist-MHJYD5IZ.js} +6 -4
  102. package/dist/{doctor-6YID47TF.js → doctor-5G2RXBQX.js} +12 -12
  103. package/dist/{events-G76VOIBQ.js → events-2LHNVY2F.js} +4 -4
  104. package/dist/{events-OKT2KO6S.js → events-BXODXMJ6.js} +2 -2
  105. package/dist/{feedback-EGU7SSXF.js → feedback-57END2CW.js} +7 -7
  106. package/dist/{ffmpeg-CSJLJAQ3.js → ffmpeg-64E4VH6W.js} +7 -7
  107. package/dist/{figma-SUJPNBQQ.js → figma-O5MO4GF5.js} +3 -3
  108. package/dist/fontLocalizeCli.js +10 -10
  109. package/dist/{get-7MYYFGO7.js → get-OEWPJ4HH.js} +2 -2
  110. package/dist/{gpuPolicy-C6JWEX7F.js → gpuPolicy-IGZOHHMX.js} +7 -7
  111. package/dist/{grade-compare-P22VRQLA.js → grade-compare-PG2UOMHO.js} +30 -30
  112. package/dist/{help-HL6QBZMC.js → help-44J4SQTE.js} +1 -1
  113. package/dist/{history-OG2IXOQA.js → history-CUA53AOE.js} +10 -10
  114. package/dist/hyperframe-runtime.js +57 -55
  115. package/dist/hyperframe.manifest.json +1 -1
  116. package/dist/hyperframe.runtime.iife.js +57 -55
  117. package/dist/hyperframes-player.global.js +1 -1
  118. package/dist/{info-7P77JIWI.js → info-UDXYDQVK.js} +8 -8
  119. package/dist/{init-JI7QDJV4.js → init-CVT6HLW2.js} +28 -28
  120. package/dist/{inspect-7GSF776P.js → inspect-6F72RJQG.js} +30 -30
  121. package/dist/{installer-NY5E5HCO.js → installer-ADKWK4I4.js} +5 -5
  122. package/dist/{keyframes-6NM477BA.js → keyframes-GJ7EEWW2.js} +7 -7
  123. package/dist/{lambda-4DNBHUPF.js → lambda-WFSBYU6U.js} +16 -21
  124. package/dist/{layout-IBDEMDYP.js → layout-SASENZOG.js} +30 -30
  125. package/dist/{lint-BGAON4GT.js → lint-JX57B52X.js} +7 -7
  126. package/dist/{list-PGWNFSLX.js → list-WG7NTE63.js} +2 -2
  127. package/dist/{login-IAGLU3R3.js → login-3NFLD65G.js} +4 -4
  128. package/dist/{manager-VOGZQSK4.js → manager-BKHRATMY.js} +9 -9
  129. package/dist/{manager-HEUPD2YB.js → manager-V2QCCPOJ.js} +4 -3
  130. package/dist/{media-treatment-Z4N3JEDB.js → media-treatment-QI5F2SMU.js} +13 -13
  131. package/dist/{models-QUOIJVQI.js → models-TXURF3J6.js} +11 -11
  132. package/dist/{motionShot-GPNESXTN.js → motionShot-HRM6NMT4.js} +15 -15
  133. package/dist/{normalize-audio-C264N2QE.js → normalize-audio-IEKL43N4.js} +8 -8
  134. package/dist/{open-HB5F4HSD.js → open-GU3I75TB.js} +12 -12
  135. package/dist/{parakeetRunner-2ZQOINZQ.js → parakeetRunner-S2QI3PCA.js} +13 -13
  136. package/dist/{pipeline-JWGTH2BJ.js → pipeline-OO2MYYIV.js} +9 -9
  137. package/dist/{play-VQ4HA4CC.js → play-VL2WQCT3.js} +21 -21
  138. package/dist/{preflight-4WTT4D5X.js → preflight-GBPRLIM6.js} +9 -9
  139. package/dist/{present-HU46P43M.js → present-YWSFX5CH.js} +17 -17
  140. package/dist/{preview-LNTJ62DX.js → preview-SMG6GXLY.js} +18 -18
  141. package/dist/{producer-UZZQX6IJ.js → producer-67RIQCWZ.js} +1 -1
  142. package/dist/{projectConfig-HDALEM6S.js → projectConfig-NQQDEDAK.js} +7 -7
  143. package/dist/{publication-NX4VC7UU.js → publication-7DW4IJPC.js} +3 -3
  144. package/dist/{publish-AZRRQUXM.js → publish-FJKJ74IF.js} +10 -10
  145. package/dist/{remove-background-OX5WZTXY.js → remove-background-HO2NBZCJ.js} +10 -10
  146. package/dist/{render-HGT3EGIK.js → render-5TTZDI5N.js} +7 -14
  147. package/dist/{render-DV76TO7S.js → render-DH4CGGLO.js} +9 -9
  148. package/dist/{render-TPE44TOW.js → render-MB7PW2YQ.js} +32 -32
  149. package/dist/{render-batch-MUCDZ2WF.js → render-batch-4RPH66OX.js} +11 -17
  150. package/dist/renderSetupWorker.js +2 -2
  151. package/dist/{resolver-FLQ42X2Y.js → resolver-UW6NYBJA.js} +5 -5
  152. package/dist/{sam-IKPEJRRO.js → sam-MC24SZHC.js} +1 -1
  153. package/dist/{sherpa-IBMU4WV6.js → sherpa-LVXRZGE3.js} +12 -12
  154. package/dist/{sites-HZMADOA3.js → sites-3ZBYB5X4.js} +2 -1
  155. package/dist/{skills-M2ANTFD6.js → skills-NDWQPEUD.js} +6 -6
  156. package/dist/{skillsUpdateCheck-4WNEKKDW.js → skillsUpdateCheck-HZVZ3IUU.js} +3 -3
  157. package/dist/{snapshot-5AKBT5IQ.js → snapshot-MCHWMAPH.js} +33 -33
  158. package/dist/{src-SGPA7DM7.js → src-E34ZBMAS.js} +9 -9
  159. package/dist/{src-JGPFLYBL.js → src-XRFOS5LP.js} +6 -6
  160. package/dist/{staticProjectServer-UVFPQEUZ.js → staticProjectServer-COEAKTGH.js} +17 -17
  161. package/dist/studio/assets/{hyperframes-player-BulZP0_1.js → hyperframes-player-C0SyMC21.js} +1 -1
  162. package/dist/studio/assets/{index-CGncBUsJ.js → index-DHUassFP.js} +1 -1
  163. package/dist/studio/assets/{index-B1Gypobp.js → index-ueMRyAJ2.js} +173 -172
  164. package/dist/studio/index.html +1 -1
  165. package/dist/{studio-api-RVIU7JP2.js → studio-api-455XWQPD.js} +11 -11
  166. package/dist/{studioServer-K22MWDLW.js → studioServer-XK5N6PIB.js} +52 -67
  167. package/dist/{synthesize-W2M7QGDV.js → synthesize-I2C24XJ5.js} +2 -2
  168. package/dist/{telemetry-SUAMGBFK.js → telemetry-DD5ZIBOK.js} +4 -4
  169. package/dist/{timeline-SGVBFT36.js → timeline-MJJEX5CU.js} +20 -20
  170. package/dist/{tokens-IFHWY5WC.js → tokens-AKUZMYRE.js} +2 -2
  171. package/dist/{transcribe-KAOCI5CW.js → transcribe-ER7GGF4L.js} +11 -11
  172. package/dist/{transcribe-GY4JHB7V.js → transcribe-ZQI5P2LH.js} +17 -17
  173. package/dist/{tts-RE227GFP.js → tts-EDK3QS7M.js} +3 -3
  174. package/dist/{updateCheck-YUNDJDLW.js → updateCheck-GYFCXFWR.js} +2 -2
  175. package/dist/{upgrade-PL2BFWTO.js → upgrade-UNWHMZP5.js} +2 -2
  176. package/dist/{urlDownloader-FZ5ISJES.js → urlDownloader-QF7EBQC2.js} +6 -6
  177. package/dist/{validate-2NALRIFW.js → validate-32CQZFNZ.js} +24 -24
  178. package/dist/{video-7CDAIWYC.js → video-2KGC3RIQ.js} +7 -7
  179. package/package.json +1 -2
  180. package/dist/chunk-EEXE43II.js +0 -3805
  181. package/dist/chunk-TWWSYAKJ.js +0 -24
  182. package/dist/deploy-3TTQZGTF.js +0 -116
@@ -37,7 +37,7 @@ import {
37
37
  stripEmbeddedRuntimeScripts,
38
38
  styleElementsFor,
39
39
  warnUnknownEnumValues
40
- } from "./chunk-EEXE43II.js";
40
+ } from "./chunk-PLNQW2C6.js";
41
41
  import {
42
42
  cssVariableName
43
43
  } from "./chunk-VC76R6W2.js";
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-HLBAQBHT.js";
9
+ } from "./chunk-XX4ZYQR6.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-UEGULMAH.js";
15
+ } from "./chunk-ORM7SJ7K.js";
16
16
  import {
17
17
  resolveCompositionViewportFromHtml
18
18
  } from "./chunk-FH7WODJH.js";
19
19
  import {
20
20
  launchManagedBrowser,
21
21
  resolveManagedGpuMode
22
- } from "./chunk-L6XT6GSV.js";
22
+ } from "./chunk-52L2L46Q.js";
23
23
  import {
24
24
  pageNavigationTimeoutMs
25
- } from "./chunk-X4PK5ZXP.js";
25
+ } from "./chunk-LO4DHZLH.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-S3S4TGEH.js";
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  printDeprecationNotice,
38
38
  withMeta
39
- } from "./chunk-457OAAL2.js";
39
+ } from "./chunk-HU4PBQGJ.js";
40
40
  import {
41
41
  decodeWellFormedEscapes
42
42
  } from "./chunk-BSQ7XANM.js";
@@ -227,7 +227,7 @@ function extractCompositionErrorsFromLint(lintResult) {
227
227
  async function localizeRemoteAssets(html) {
228
228
  let dir;
229
229
  try {
230
- const { loadProducer } = await import("./producer-UZZQX6IJ.js");
230
+ const { loadProducer } = await import("./producer-67RIQCWZ.js");
231
231
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
232
232
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
233
233
  const assetDir = dir;
@@ -248,9 +248,9 @@ async function localizeRemoteAssets(html) {
248
248
  }
249
249
  async function validateInBrowser(project, opts) {
250
250
  const projectDir = project.dir;
251
- const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
252
- const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
253
- const { serveStaticProjectHtml } = await import("./staticProjectServer-UVFPQEUZ.js");
251
+ const { bundleToSingleHtml } = await import("./compiler-CQ6OKYT5.js");
252
+ const { ensureBrowser } = await import("./manager-V2QCCPOJ.js");
253
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-COEAKTGH.js");
254
254
  const { lintProject } = await import("./lintProject-ARKJXDQF.js");
255
255
  const lintResult = await lintProject(projectDir);
256
256
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
@@ -272,9 +272,9 @@ async function validateInBrowser(project, opts) {
272
272
  try {
273
273
  const browser = await ensureBrowser();
274
274
  const puppeteer = await import("puppeteer-core");
275
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-JGPFLYBL.js");
275
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-XRFOS5LP.js");
276
276
  const requestedGpuMode = resolveCliChromeGpuMode();
277
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-C6JWEX7F.js");
277
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-IGZOHHMX.js");
278
278
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
279
279
  const requiresWebGpu = compositionRequiresWebGpu(html);
280
280
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  artifactDirectory,
9
9
  finishSnapshotRun
10
- } from "./chunk-GMJ3ILLW.js";
10
+ } from "./chunk-ICMXC3MI.js";
11
11
 
12
12
  // src/utils/checkSnapshotDirectory.ts
13
13
  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
  updateNoticesSuppressed
9
- } from "./chunk-457OAAL2.js";
9
+ } from "./chunk-HU4PBQGJ.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-AWDFDFI3.js";
15
15
  import {
16
16
  isBlockedNetworkHost
17
- } from "./chunk-YWSXFFO3.js";
17
+ } from "./chunk-VU4JLRNH.js";
18
18
  import {
19
19
  DOMParser,
20
20
  parseHTML
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveWithinProject
9
- } from "./chunk-FFDC5OWV.js";
9
+ } from "./chunk-ALVXFXUG.js";
10
10
  import {
11
11
  MAX_AUDIO_GAIN_DB,
12
12
  formatAudioGain,
@@ -21,7 +21,7 @@ import {
21
21
  readMediaOffsetSeconds
22
22
  } from "./chunk-BSQ7XANM.js";
23
23
 
24
- // ../studio-server/dist/chunk-KR3B6IJC.js
24
+ // ../studio-server/dist/chunk-ERQWOZ7E.js
25
25
  import { execFile } from "child_process";
26
26
  import { isAbsolute, relative, resolve } from "path";
27
27
  import { promisify } from "util";
@@ -9,7 +9,7 @@ import {
9
9
  formatPreviewProxyBox,
10
10
  hdrToSdrToneMapFilter,
11
11
  parseFirstFrameColour
12
- } from "./chunk-VEQ7DKPG.js";
12
+ } from "./chunk-AHS5QYKF.js";
13
13
  import {
14
14
  decodeAuthoredAttribute,
15
15
  scanHtmlOpeningTags
@@ -32,7 +32,7 @@ import {
32
32
  rewriteAssetPath
33
33
  } from "./chunk-BSQ7XANM.js";
34
34
 
35
- // ../studio-server/dist/chunk-EZMTFRUX.js
35
+ // ../studio-server/dist/chunk-E3VGIAMJ.js
36
36
  import { statSync } from "fs";
37
37
  import { sep } from "path";
38
38
  import { execFile } from "child_process";
@@ -337,7 +337,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
337
337
  return map;
338
338
  }
339
339
 
340
- // ../studio-server/dist/chunk-XRUVTG5G.js
340
+ // ../studio-server/dist/chunk-QFJR3NIL.js
341
341
  import { spawn } from "child_process";
342
342
  import { createHash, randomUUID } from "crypto";
343
343
  import { existsSync as existsSync2, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, utimesSync } from "fs";
@@ -551,7 +551,7 @@ function getCanonicalProxyCachePath(source, variant, box) {
551
551
  }
552
552
  var ProxyDroppedError = class extends ProxyTranscodeError {
553
553
  constructor() {
554
- super("media proxy copy dropped: every caller left before it started", null, "");
554
+ super("media proxy copy dropped: every caller left", null, "");
555
555
  this.name = "ProxyDroppedError";
556
556
  }
557
557
  };
@@ -604,7 +604,13 @@ function prioritize(job) {
604
604
  }
605
605
  function leave(job) {
606
606
  job.callers--;
607
- if (job.callers === 0) job.queued?.drop();
607
+ if (job.callers > 0) return;
608
+ if (job.queued) {
609
+ job.queued.drop();
610
+ return;
611
+ }
612
+ forget(job);
613
+ job.abandoned.abort();
608
614
  }
609
615
  var inFlight = /* @__PURE__ */ new Map();
610
616
  function forget(job) {
@@ -674,7 +680,7 @@ function stderrReason(stderrTail) {
674
680
  const line = errorLines.at(-1) ?? lines.at(-1);
675
681
  return line ? `: ${line.replace(/[.!]+$/, "")}` : "";
676
682
  }
677
- async function runFfmpeg(sourcePath, outputPath, variant, box) {
683
+ async function runFfmpeg(sourcePath, outputPath, variant, box, signal) {
678
684
  const metadata = await probeMediaMetadata(sourcePath);
679
685
  const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
680
686
  if (!ffmpegPath) {
@@ -745,10 +751,12 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
745
751
  "libopus"
746
752
  ];
747
753
  const args = [...commonArgs, ...variant === "vp8" ? vp8Args : h264Args, outputPath];
754
+ signal.throwIfAborted();
748
755
  const proc = spawn(ffmpegPath, args, {
749
756
  stdio: ["ignore", "ignore", "pipe"],
750
757
  timeout: TRANSCODE_TIMEOUT_MS,
751
758
  killSignal: "SIGKILL",
759
+ signal,
752
760
  windowsHide: true
753
761
  });
754
762
  let stderrTail = "";
@@ -756,15 +764,16 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
756
764
  stderrTail = (stderrTail + chunk.toString()).slice(-STDERR_TAIL_MAX_CHARS);
757
765
  });
758
766
  proc.on("error", (err) => {
767
+ if (signal.aborted) return;
759
768
  reject(new FfmpegUnavailableError(`failed to spawn ffmpeg: ${err.message}`, stderrTail));
760
769
  });
761
- proc.on("close", (code, signal) => {
770
+ proc.on("close", (code, signal2) => {
762
771
  if (code === 0) {
763
772
  resolvePromise();
764
- } else if (signal) {
773
+ } else if (signal2) {
765
774
  reject(
766
775
  new ProxyTranscodeError(
767
- `ffmpeg killed by ${signal} (timeout ${TRANSCODE_TIMEOUT_MS}ms or external kill)`,
776
+ `ffmpeg killed by ${signal2} (timeout ${TRANSCODE_TIMEOUT_MS}ms or external kill)`,
768
777
  null,
769
778
  stderrTail
770
779
  )
@@ -789,7 +798,7 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
789
798
  mkdirWithinProject(projectDir, cacheDir);
790
799
  const tempPath = join2(cacheDir, `.tmp-${randomUUID()}-${basename(cachePath)}`);
791
800
  try {
792
- await runFfmpeg(absoluteSourcePath, tempPath, variant, box);
801
+ await runFfmpeg(absoluteSourcePath, tempPath, variant, box, job.abandoned.signal);
793
802
  renameSync(tempPath, cachePath);
794
803
  maintainProxyCache(cacheDir);
795
804
  return cachePath;
@@ -830,7 +839,8 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
830
839
  const job = {
831
840
  cachePath,
832
841
  priority: options.priority === true,
833
- callers: 0
842
+ callers: 0,
843
+ abandoned: new AbortController()
834
844
  };
835
845
  const promise = transcodeToCache(
836
846
  job,
@@ -840,7 +850,9 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
840
850
  variant,
841
851
  box
842
852
  ).catch((err) => {
843
- if (!(err instanceof ProxyDroppedError)) rememberFailure(cachePath, err);
853
+ if (!(err instanceof ProxyDroppedError) && !job.abandoned.signal.aborted) {
854
+ rememberFailure(cachePath, err);
855
+ }
844
856
  throw err;
845
857
  }).finally(() => {
846
858
  forget(job);
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  ensureBrowser,
12
12
  findBrowser
13
- } from "./chunk-XRKMITSS.js";
13
+ } from "./chunk-E24HSMZV.js";
14
14
  import {
15
15
  FIRST_LAUNCH_TIMEOUT_MS,
16
16
  chromeDepsInstallCommand,
@@ -18,7 +18,7 @@ import {
18
18
  distroLabel,
19
19
  getFFmpegInstallHint,
20
20
  parseLddMissingLibs
21
- } from "./chunk-GVIH4ZQY.js";
21
+ } from "./chunk-5RS2FIZU.js";
22
22
  import {
23
23
  runCancellableProcess
24
24
  } from "./chunk-D3ZWBHZP.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-PIH4P2G6.js";
10
+ } from "./chunk-3EJYUZHW.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,10 +18,10 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-QWCXGTOH.js";
21
+ } from "./chunk-UOHQV6AV.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-LZT3NUTE.js";
24
+ } from "./chunk-IE6O2VXV.js";
25
25
  import {
26
26
  decodeWellFormedEscapes
27
27
  } from "./chunk-BSQ7XANM.js";
@@ -141,7 +141,7 @@ function writeProxyError(err, res) {
141
141
  res.writeHead(500);
142
142
  res.end();
143
143
  }
144
- async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res) {
144
+ async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res, signal) {
145
145
  const contentType = getMimeType(filePath);
146
146
  if (!autoProxy || !contentType.startsWith("video/")) {
147
147
  res.writeHead(404);
@@ -168,7 +168,7 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
168
168
  return;
169
169
  }
170
170
  recordProxyRequest();
171
- const proxyPath = await resolveProxy(projectDir, filePath, variant);
171
+ const proxyPath = await resolveProxy(projectDir, filePath, variant, void 0, { signal });
172
172
  if (res.writableEnded || res.destroyed) return;
173
173
  serveFileWithRange(proxyPath, rangeHeader, res, PROXY_VARIANT_CONFIG[variant].contentType);
174
174
  } catch (err) {
@@ -178,7 +178,8 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
178
178
  async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride) {
179
179
  const roots = [projectDir, ...assetRoots];
180
180
  const autoProxy = resolveAutoProxy(projectDir, autoProxyOverride);
181
- const servedHtml = autoProxy ? await injectMediaCodecMapIntoHtml(html, projectDir, [{ html }]) : html;
181
+ const copies = new AbortController();
182
+ const servedHtml = autoProxy ? await injectMediaCodecMapIntoHtml(html, projectDir, [{ html }], void 0, true, copies.signal) : html;
182
183
  const server = createServer((req, res) => {
183
184
  const url = req.url ?? "/";
184
185
  if (url === "/" || url === "/index.html") {
@@ -203,7 +204,8 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
203
204
  proxyRequest,
204
205
  autoProxy,
205
206
  req.headers.range,
206
- res
207
+ res,
208
+ copies.signal
207
209
  );
208
210
  } else {
209
211
  serveFileWithRange(filePath, req.headers.range, res);
@@ -235,6 +237,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
235
237
  url,
236
238
  port: 0,
237
239
  close: async () => {
240
+ copies.abort();
238
241
  inProcessAnswers.delete(new URL(url).origin);
239
242
  },
240
243
  answer
@@ -244,6 +247,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
244
247
  url: `http://127.0.0.1:${port}/`,
245
248
  port,
246
249
  close: () => new Promise((resolveClose) => {
250
+ copies.abort();
247
251
  server.close(() => resolveClose());
248
252
  })
249
253
  };
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-P3MMF2JQ.js";
10
+ } from "./chunk-AEWZDKFS.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-LZT3NUTE.js";
17
+ } from "./chunk-IE6O2VXV.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-42T7OP4O.js";
21
+ } from "./chunk-32GKQ73S.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-NWEER3QY.js";
26
+ } from "./chunk-YH7VQAKX.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-OYEDHVSI.js";
29
+ } from "./chunk-AFKVI7FJ.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-S3T3TDAB.js";
32
+ } from "./chunk-COK5OUBX.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-ZTZA4UWZ.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-VEQ7DKPG.js";
44
+ } from "./chunk-AHS5QYKF.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath