hyperframes 0.8.199 → 0.8.201

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 (192) hide show
  1. package/dist/{add-7LA5CGDM.js → add-33XNCMY4.js} +15 -18
  2. package/dist/{animatedGifPrep-NB2MZTMQ.js → animatedGifPrep-MI7Z4OYQ.js} +9 -12
  3. package/dist/api.js +17 -20
  4. package/dist/{asset-4BIOI6GN.js → asset-RMRQN24O.js} +2 -2
  5. package/dist/{assetCataloger-TX5KL5VV.js → assetCataloger-KWTQNFUU.js} +9 -12
  6. package/dist/{audio-ZGMIIDNU.js → audio-SQDZZS6X.js} +34 -32
  7. package/dist/{auth-OQ5PWEUG.js → auth-PNC6K5ZD.js} +2 -2
  8. package/dist/{autoUpdate-QREPD6I4.js → autoUpdate-MBZFLUF2.js} +2 -2
  9. package/dist/{backgroundChecks-5CJPJX2O.js → backgroundChecks-ZMSPA6TK.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-BW2ZK4MA.js → batchRender-2MMOZRMW.js} +5 -7
  12. package/dist/{beats-I5XARMDB.js → beats-GDLNPR4A.js} +33 -24
  13. package/dist/{benchmark-S2WWY4U7.js → benchmark-AUKB3XDF.js} +12 -14
  14. package/dist/{browser-PAXVQYQZ.js → browser-C3AU5TST.js} +6 -6
  15. package/dist/{bundleWithLocalizedFonts-3ED26VCR.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
  16. package/dist/{capture-23574YLP.js → capture-EKNPCFPF.js} +16 -18
  17. package/dist/{capture-OVITDMKK.js → capture-XGBPNGC5.js} +2 -2
  18. package/dist/{captureCompositionFrame-KAUUHCOL.js → captureCompositionFrame-4HHLPTDH.js} +14 -17
  19. package/dist/{catalog-CM3VXSQE.js → catalog-HLDNEJX3.js} +15 -18
  20. package/dist/{catch-up-HMFREOC2.js → catch-up-LRFV4LJO.js} +6 -6
  21. package/dist/{check-CYJZ6CGT.js → check-XWHWGNYE.js} +40 -43
  22. package/dist/{checkBrowser-GZJ3W2OP.js → checkBrowser-KSOBXPJ3.js} +35 -38
  23. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  24. package/dist/{chunk-D5CZCYYT.js → chunk-2FA53V5S.js} +2 -2
  25. package/dist/{chunk-FV5GKRAO.js → chunk-3J5KO4EJ.js} +8 -10
  26. package/dist/{chunk-UMBCYIFE.js → chunk-47NZWTJL.js} +2 -2
  27. package/dist/{chunk-JFIEV2J4.js → chunk-53E45AKI.js} +60 -34
  28. package/dist/{chunk-BFYDVTD3.js → chunk-6UFEOVR5.js} +2 -2
  29. package/dist/{chunk-M6IMQBK6.js → chunk-6XGO7ZKS.js} +1 -1
  30. package/dist/{chunk-UVQLSMAR.js → chunk-74UH2KGI.js} +30 -6
  31. package/dist/{chunk-TVR744AS.js → chunk-7EJ7OZGC.js} +16 -3
  32. package/dist/{chunk-7QB46WTF.js → chunk-7WEGIXI3.js} +2 -2
  33. package/dist/{chunk-TTWFTEUG.js → chunk-A7YO6YSD.js} +6 -6
  34. package/dist/{chunk-HK45GJMI.js → chunk-AK2MOAJY.js} +192 -65
  35. package/dist/{chunk-TF7LCULS.js → chunk-B67P2WP3.js} +2 -2
  36. package/dist/chunk-B7CYKBXQ.js +36 -0
  37. package/dist/{chunk-DMRDGGNM.js → chunk-CD5ZU6PN.js} +9 -7
  38. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  39. package/dist/{chunk-UBSAHYWA.js → chunk-DS3XITZ5.js} +2 -2
  40. package/dist/{chunk-ILFDFMYJ.js → chunk-DWULQYOQ.js} +3 -3
  41. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  42. package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
  43. package/dist/{chunk-K5O6JTJQ.js → chunk-GC6N2LH5.js} +10 -12
  44. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  45. package/dist/{chunk-T4IJMVCB.js → chunk-GKXH4C2B.js} +1 -1
  46. package/dist/{chunk-QYOUK3UO.js → chunk-GNX3BCQP.js} +2 -2
  47. package/dist/{chunk-IELYOY6S.js → chunk-I4DHHX7E.js} +3 -3
  48. package/dist/{chunk-FZ2VPLXL.js → chunk-IDRUJFT4.js} +2 -2
  49. package/dist/{chunk-KFZPWUPN.js → chunk-IFOZZYHK.js} +7 -7
  50. package/dist/{chunk-3CFTCM7X.js → chunk-IHQBTZHE.js} +3 -3
  51. package/dist/{chunk-OZVRCLEN.js → chunk-IIH24PKY.js} +2 -2
  52. package/dist/{chunk-K65XUUJX.js → chunk-ITJAHKYO.js} +1 -1
  53. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  54. package/dist/{chunk-IMVTN367.js → chunk-JOI7TNCX.js} +2 -2
  55. package/dist/{chunk-KG3BVLA4.js → chunk-JXLHLR26.js} +1 -1
  56. package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
  57. package/dist/{chunk-VWPU6URV.js → chunk-L33EDCSR.js} +5 -5
  58. package/dist/{chunk-BYLC52GJ.js → chunk-LVEXHBSH.js} +1 -1
  59. package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
  60. package/dist/{chunk-DWUOGV3M.js → chunk-ORMTNJBS.js} +3 -3
  61. package/dist/{chunk-Z6Q4ASCD.js → chunk-Q537KXWA.js} +153 -44
  62. package/dist/{chunk-YAMRODVV.js → chunk-Q6SHXSZX.js} +3 -2
  63. package/dist/{chunk-GQVTTWZF.js → chunk-QB4K2EWI.js} +1 -1
  64. package/dist/{chunk-T6AGUTZJ.js → chunk-QSFWGZG6.js} +7 -38
  65. package/dist/{chunk-XP55QWOB.js → chunk-QTWSMJ22.js} +15 -15
  66. package/dist/{chunk-M2GO2AAS.js → chunk-QXBZ6VBL.js} +1 -1
  67. package/dist/{chunk-65HUC64P.js → chunk-QYTGUWNF.js} +1 -1
  68. package/dist/{chunk-CMHVLASW.js → chunk-RVKJDAYE.js} +1 -1
  69. package/dist/{chunk-HRZ6ZBKO.js → chunk-SEAHCCQ4.js} +70 -51
  70. package/dist/{chunk-7SKOZHIY.js → chunk-SGKG7DNX.js} +3 -3
  71. package/dist/{chunk-6RRO4GE3.js → chunk-SIZYTGG4.js} +1 -1
  72. package/dist/{chunk-4QG64APO.js → chunk-SZNCAINN.js} +1 -1
  73. package/dist/{chunk-S5WSJVHP.js → chunk-T33GLS6C.js} +3 -3
  74. package/dist/{chunk-SQQZUUK6.js → chunk-TAXGZAXM.js} +10 -10
  75. package/dist/{chunk-GQACWAOC.js → chunk-TOT3CLUK.js} +1 -1
  76. package/dist/{chunk-2KZSKIYY.js → chunk-TYRDDIIH.js} +1 -1
  77. package/dist/{chunk-HOAXHVRR.js → chunk-U2EK5MFR.js} +10 -10
  78. package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
  79. package/dist/{chunk-W2LGJSEN.js → chunk-UIOZIIB7.js} +33 -3
  80. package/dist/{chunk-L6FG62QM.js → chunk-UKB62QOT.js} +446 -151
  81. package/dist/{chunk-JN63IPHT.js → chunk-UOSTDTBF.js} +1 -1
  82. package/dist/{chunk-LPDNR3R4.js → chunk-VCVUEK65.js} +3 -3
  83. package/dist/{chunk-PO5PAROC.js → chunk-VF2VMKNI.js} +3 -3
  84. package/dist/{chunk-XVZZQVT4.js → chunk-VKTUZP7U.js} +1 -1
  85. package/dist/{chunk-NY2OH5XD.js → chunk-WO3XZ6HC.js} +1 -1
  86. package/dist/{chunk-7YZME6DE.js → chunk-X72DJZCM.js} +1 -1
  87. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  88. package/dist/{chunk-QH4425AL.js → chunk-XG365L6T.js} +1 -1
  89. package/dist/{chunk-NUZMP7SV.js → chunk-XHVQIOOF.js} +19 -19
  90. package/dist/{chunk-FHDKRWQN.js → chunk-XONIZ5CH.js} +13 -13
  91. package/dist/{chunk-RYCANWOM.js → chunk-YBJECXQJ.js} +5 -5
  92. package/dist/{chunk-AHZLNYZY.js → chunk-YTBE4JCX.js} +1 -1
  93. package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
  94. package/dist/chunk-ZKHXN2BV.js +3983 -0
  95. package/dist/{clean-QX6LKOWJ.js → clean-EUKURSX2.js} +22 -25
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-ASA7Y3HA.js → cloud-LJDRNQ2N.js} +4 -4
  98. package/dist/{cloudrun-LK4GJWUZ.js → cloudrun-AXVFD6KV.js} +7 -9
  99. package/dist/{compare-426Z2ND6.js → compare-T3LMATAF.js} +32 -35
  100. package/dist/{compiler-WER7FC5O.js → compiler-KH6DMHIJ.js} +6 -10
  101. package/dist/{component-HTDWZMEG.js → component-2FOHCMP2.js} +3 -3
  102. package/dist/{compositions-EKRLQ5TU.js → compositions-REQ6ARAO.js} +14 -17
  103. package/dist/{delete-KHXM6R7A.js → delete-KEPP2QAZ.js} +2 -2
  104. package/dist/{deploy-WJ5JQJBD.js → deploy-N756FEME.js} +1 -1
  105. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
  106. package/dist/{dist-EYJATCTF.js → dist-5ULOGA6A.js} +30 -16
  107. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  108. package/dist/{doctor-NB3G2GDG.js → doctor-2SJPC4WZ.js} +15 -18
  109. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  110. package/dist/{events-LH6W5ZCV.js → events-24ZE2PKB.js} +5 -5
  111. package/dist/{events-6EL5NIJV.js → events-U53QH4XZ.js} +4 -4
  112. package/dist/{feedback-2GNY725M.js → feedback-QFMLDLUN.js} +11 -13
  113. package/dist/{ffmpeg-XX3O53B3.js → ffmpeg-7XNWNO7M.js} +9 -12
  114. package/dist/{figma-X7KKOOXB.js → figma-B4JO44CV.js} +3 -3
  115. package/dist/fontLocalizeCli.js +12 -15
  116. package/dist/{get-M57U7QCX.js → get-7CFVCINR.js} +2 -2
  117. package/dist/{gpuPolicy-GIBBYBI5.js → gpuPolicy-MU7CFSAF.js} +9 -12
  118. package/dist/{grade-compare-XNY37UYQ.js → grade-compare-Q23U2HGS.js} +33 -36
  119. package/dist/{help-ZXSPZBUG.js → help-M67MEDV3.js} +1 -1
  120. package/dist/{history-G5B4IPBH.js → history-I2PZXOFL.js} +9 -9
  121. package/dist/hyperframe.manifest.json +1 -1
  122. package/dist/hyperframe.runtime.iife.js +66 -62
  123. package/dist/hyperframes-player.global.js +3 -3
  124. package/dist/{info-ZWZDG54W.js → info-Z2MX54IE.js} +11 -13
  125. package/dist/{init-F4XMU6SV.js → init-SWH5KZO2.js} +30 -33
  126. package/dist/{inspect-6VXFMQRR.js → inspect-WBBDB3YS.js} +33 -36
  127. package/dist/{installer-4M3Y5T5F.js → installer-DQIHGUBJ.js} +6 -9
  128. package/dist/{keyframes-3U466AWX.js → keyframes-PSNEUS6P.js} +8 -8
  129. package/dist/{lambda-OPSTAEF6.js → lambda-KSZFMQ3L.js} +9 -11
  130. package/dist/{layout-B3MXD3F3.js → layout-AAOI7W2M.js} +33 -36
  131. package/dist/{lint-TVOEGW63.js → lint-GGNVITIK.js} +10 -12
  132. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  133. package/dist/{list-M5GQSFVT.js → list-OFPDL2AM.js} +2 -2
  134. package/dist/{login-HBHGZIDN.js → login-MZAHGGP4.js} +4 -4
  135. package/dist/{manager-COSJVRAE.js → manager-F34TSFV6.js} +3 -3
  136. package/dist/{manager-VLIJARMF.js → manager-ZOFTZTRY.js} +10 -13
  137. package/dist/{media-treatment-RQZ437VS.js → media-treatment-PF67GSUD.js} +67 -43
  138. package/dist/{models-2CCKVBTR.js → models-WR7CL54R.js} +13 -16
  139. package/dist/{motionShot-3IFRSICA.js → motionShot-ISLDWLIU.js} +18 -21
  140. package/dist/{normalize-audio-23H2MBDP.js → normalize-audio-D7AH5GFZ.js} +45 -27
  141. package/dist/{open-J33KT3G7.js → open-HPVBB2CX.js} +15 -18
  142. package/dist/{parakeetRunner-QTXNEMVY.js → parakeetRunner-P6PE4WXG.js} +14 -17
  143. package/dist/{pipeline-2ECWWEBD.js → pipeline-XKBZG2CM.js} +10 -13
  144. package/dist/{play-G5777L7A.js → play-QXHO47ZH.js} +24 -27
  145. package/dist/{preflight-NVFB4HXQ.js → preflight-KZCU66ES.js} +12 -15
  146. package/dist/{present-4EI2BE4Z.js → present-ERGC5PR4.js} +20 -23
  147. package/dist/{preview-HYCIDZ52.js → preview-AGTOQIE7.js} +21 -24
  148. package/dist/{producer-6JAATJVD.js → producer-4ONVM5A2.js} +1 -1
  149. package/dist/{projectConfig-XPGN76VV.js → projectConfig-7T4VY6RJ.js} +8 -11
  150. package/dist/{publication-YRZ7EBUV.js → publication-J5TS5VR3.js} +4 -6
  151. package/dist/{publish-UIDHN7KD.js → publish-BSOVXRF4.js} +11 -14
  152. package/dist/{remove-background-LPQP4WBN.js → remove-background-645NVCGL.js} +11 -14
  153. package/dist/{render-LFJQNVCK.js → render-55TYPJ5U.js} +7 -9
  154. package/dist/{render-NZSNQFYW.js → render-IAVH33YG.js} +38 -34
  155. package/dist/{render-DT3OCUCV.js → render-R3L44QAP.js} +36 -38
  156. package/dist/{render-batch-QI2A45WH.js → render-batch-JWWLQ7ZC.js} +7 -9
  157. package/dist/renderSetupWorker.js +5 -7
  158. package/dist/{resolver-4YDXG4PP.js → resolver-DBAFWC4F.js} +6 -8
  159. package/dist/{sherpa-XLKWFYFO.js → sherpa-UPWG6TKY.js} +13 -16
  160. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  161. package/dist/skills/media-use/references/mixing.md +1 -1
  162. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  163. package/dist/{skills-OVVLZHF5.js → skills-ILH52UL4.js} +7 -7
  164. package/dist/{skillsUpdateCheck-Y2UQA7I5.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
  165. package/dist/{snapshot-7NVB5WSO.js → snapshot-WMVHIQVQ.js} +94 -61
  166. package/dist/{src-ACAFJXAJ.js → src-46QTOHZE.js} +11 -14
  167. package/dist/{src-QQPHMIJ7.js → src-HPLELQRK.js} +12 -11
  168. package/dist/{staticProjectServer-JUN6BRTW.js → staticProjectServer-FHP2YQFV.js} +19 -22
  169. package/dist/{status-H5WLKQDS.js → status-LR7VXITS.js} +2 -2
  170. package/dist/studio/assets/{hyperframes-player-BDtBfwof.js → hyperframes-player-BNeO6YSP.js} +1 -1
  171. package/dist/studio/assets/{index-BFfBBQMu.js → index-CZWE0FI8.js} +162 -162
  172. package/dist/studio/assets/{index--W_0fuR8.js → index-DiNYtcMK.js} +1 -1
  173. package/dist/studio/index.html +1 -1
  174. package/dist/{studio-api-D76Q4Q2N.js → studio-api-5YHQ4Y2D.js} +12 -15
  175. package/dist/{studioServer-HG3RFAOY.js → studioServer-P6IC76SV.js} +54 -57
  176. package/dist/{system-7F3UEHQT.js → system-YD4AW5ZX.js} +4 -3
  177. package/dist/{telemetry-Q2EHWVO4.js → telemetry-WZ7OGFWQ.js} +5 -5
  178. package/dist/{timeline-WDQCCETQ.js → timeline-U6S7BGMI.js} +24 -26
  179. package/dist/{tokens-2GJWP2HY.js → tokens-FPUYNZSV.js} +2 -2
  180. package/dist/{transcribe-Z63Y53GQ.js → transcribe-DJX4E2PE.js} +19 -22
  181. package/dist/{transcribe-SRLAY6RG.js → transcribe-DZHTKXI5.js} +12 -15
  182. package/dist/{updateCheck-MJ6NDE3T.js → updateCheck-2LHWRDE7.js} +2 -2
  183. package/dist/{upgrade-D5XEX3XE.js → upgrade-WAQHCAUS.js} +2 -2
  184. package/dist/{urlDownloader-R7BZ47TY.js → urlDownloader-HZQPXQET.js} +8 -11
  185. package/dist/{validate-F5BIDZLN.js → validate-D6XJ7OSS.js} +27 -30
  186. package/dist/{video-QUG5OG5Q.js → video-A4CQ4WDL.js} +9 -12
  187. package/dist/warmCheck.js +40 -43
  188. package/package.json +1 -1
  189. package/dist/chunk-2ONVJ7NT.js +0 -3901
  190. package/dist/chunk-BSQ7XANM.js +0 -210
  191. package/dist/chunk-PKZ7RK5N.js +0 -281
  192. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  detectWsl,
9
9
  getSystemTotalMb
10
- } from "./chunk-W2LGJSEN.js";
10
+ } from "./chunk-UIOZIIB7.js";
11
11
 
12
12
  // src/telemetry/system.ts
13
- import { cpus, freemem, platform as platform2, release as release2 } from "os";
13
+ import { cpus, platform as platform2, release as release2 } from "os";
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2, statfsSync } from "fs";
15
15
  import { execSync } from "child_process";
16
16
 
@@ -98,15 +98,13 @@ var VENDOR_RULES = [
98
98
  name: "hermes",
99
99
  check: (env) => typeof env["HERMES_QUIET"] === "string"
100
100
  },
101
- // openclaw — multi-channel AI gateway. When openclaw spawns a CLI
102
- // subprocess it builds the child env with OPENCLAW_STATE_DIR /
103
- // OPENCLAW_CONFIG_PATH / OPENCLAW_DISABLE_AUTO_UPDATE set explicitly
104
- // (extensions/qa-matrix/src/runners/contract/scenario-runtime-cli.ts:344-351).
105
- // We key on OPENCLAW_STATE_DIR since it's a path scope-bound to openclaw.
101
+ // openclaw — multi-channel AI gateway. It sets OPENCLAW_CONFIG_PATH on the
102
+ // CLI subprocesses it spawns. Never name its state-dir var here: endpoint
103
+ // scanners flag that string as an IoC and quarantine the bundle (#5245).
106
104
  // Source: https://github.com/openclaw/openclaw
107
105
  {
108
106
  name: "openclaw",
109
- check: (env) => typeof env["OPENCLAW_STATE_DIR"] === "string" || typeof env["OPENCLAW_CONFIG_PATH"] === "string"
107
+ check: (env) => typeof env["OPENCLAW_CONFIG_PATH"] === "string"
110
108
  },
111
109
  // Pi coding agent (https://pi.dev, https://github.com/earendil-works/pi).
112
110
  // packages/coding-agent/src/cli.ts:13 unconditionally executes
@@ -403,34 +401,6 @@ function getPowerState() {
403
401
  }
404
402
  return { on_battery, low_power_mode };
405
403
  }
406
- function getAvailableMemoryMb() {
407
- const fallback = bytesToMb(freemem());
408
- if (platform2() === "darwin") {
409
- try {
410
- const raw = execSync("vm_stat", { encoding: "utf-8", timeout: 5e3 });
411
- const pageSize = parseInt(raw.match(/page size of (\d+)/)?.[1] ?? "0", 10);
412
- if (!pageSize) return fallback;
413
- const pages = (key) => parseInt(raw.match(new RegExp(`${key}:\\s+(\\d+)`))?.[1] ?? "0", 10);
414
- const available = (pages("Pages free") + pages("Pages inactive") + pages("Pages purgeable") + pages("Pages speculative")) * pageSize;
415
- return available > 0 ? bytesToMb(available) : fallback;
416
- } catch {
417
- return fallback;
418
- }
419
- }
420
- if (platform2() === "linux") {
421
- try {
422
- const meminfo = readFileSync2("/proc/meminfo", "utf-8");
423
- const match = meminfo.match(/MemAvailable:\s+(\d+)\s+kB/);
424
- if (match) {
425
- return Math.trunc(parseInt(match[1], 10) / 1024);
426
- }
427
- return fallback;
428
- } catch {
429
- return fallback;
430
- }
431
- }
432
- return fallback;
433
- }
434
404
 
435
405
  export {
436
406
  detectAgentRuntime,
@@ -439,6 +409,5 @@ export {
439
409
  getShmSizeMb,
440
410
  getFreeDiskMb,
441
411
  parsePmsetPowerSource,
442
- getPowerState,
443
- getAvailableMemoryMb
412
+ getPowerState
444
413
  };
@@ -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-K65XUUJX.js";
9
+ } from "./chunk-ITJAHKYO.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-HOAXHVRR.js";
15
+ } from "./chunk-U2EK5MFR.js";
16
16
  import {
17
17
  launchManagedBrowser,
18
18
  resolveManagedGpuMode
19
- } from "./chunk-2KZSKIYY.js";
19
+ } from "./chunk-TYRDDIIH.js";
20
20
  import {
21
21
  pageNavigationTimeoutMs
22
- } from "./chunk-S5WSJVHP.js";
22
+ } from "./chunk-T33GLS6C.js";
23
23
  import {
24
24
  resolveCompositionViewportFromHtml
25
- } from "./chunk-T4IJMVCB.js";
25
+ } from "./chunk-GKXH4C2B.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-S3S4TGEH.js";
@@ -35,14 +35,14 @@ import {
35
35
  } from "./chunk-ZTZA4UWZ.js";
36
36
  import {
37
37
  resolveNaturalMediaTimelineDuration
38
- } from "./chunk-2ONVJ7NT.js";
38
+ } from "./chunk-ZKHXN2BV.js";
39
39
  import {
40
40
  decodeWellFormedEscapes
41
- } from "./chunk-BSQ7XANM.js";
41
+ } from "./chunk-2BGOB2QK.js";
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-4QG64APO.js";
45
+ } from "./chunk-SZNCAINN.js";
46
46
  import {
47
47
  normalizeErrorMessage
48
48
  } from "./chunk-T2EUWCJE.js";
@@ -248,7 +248,7 @@ function extractCompositionErrorsFromLint(lintResult) {
248
248
  async function localizeRemoteAssets(html) {
249
249
  let dir;
250
250
  try {
251
- const { loadProducer } = await import("./producer-6JAATJVD.js");
251
+ const { loadProducer } = await import("./producer-4ONVM5A2.js");
252
252
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
253
253
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
254
254
  const assetDir = dir;
@@ -269,10 +269,10 @@ async function localizeRemoteAssets(html) {
269
269
  }
270
270
  async function validateInBrowser(project, opts) {
271
271
  const projectDir = project.dir;
272
- const { bundleToSingleHtml } = await import("./compiler-WER7FC5O.js");
273
- const { ensureBrowser } = await import("./manager-COSJVRAE.js");
274
- const { serveStaticProjectHtml } = await import("./staticProjectServer-JUN6BRTW.js");
275
- const { lintProject } = await import("./lintProject-FKPKSU6M.js");
272
+ const { bundleToSingleHtml } = await import("./compiler-KH6DMHIJ.js");
273
+ const { ensureBrowser } = await import("./manager-F34TSFV6.js");
274
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-FHP2YQFV.js");
275
+ const { lintProject } = await import("./lintProject-Q36Y3AHA.js");
276
276
  const lintResult = await lintProject(projectDir);
277
277
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
278
278
  const html = await bundleToSingleHtml(projectDir);
@@ -293,9 +293,9 @@ async function validateInBrowser(project, opts) {
293
293
  try {
294
294
  const browser = await ensureBrowser();
295
295
  const puppeteer = await import("puppeteer-core");
296
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-QQPHMIJ7.js");
296
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-HPLELQRK.js");
297
297
  const requestedGpuMode = resolveCliChromeGpuMode();
298
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-GIBBYBI5.js");
298
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-MU7CFSAF.js");
299
299
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
300
300
  const requiresWebGpu = compositionRequiresWebGpu(html);
301
301
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-AWDFDFI3.js";
18
18
  import {
19
19
  isBlockedNetworkHost
20
- } from "./chunk-L6FG62QM.js";
20
+ } from "./chunk-UKB62QOT.js";
21
21
  import {
22
22
  DOMParser,
23
23
  parseHTML
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-L6FG62QM.js";
9
+ } from "./chunk-UKB62QOT.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -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-OZVRCLEN.js";
9
+ } from "./chunk-IIH24PKY.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -35,11 +35,12 @@ import {
35
35
  parseHostVariableValues,
36
36
  planCompositionAssembly,
37
37
  readDeclaredDefaults,
38
+ rewriteSrcsetUrls,
38
39
  shouldClampResolvedMediaDuration,
39
40
  stripEmbeddedRuntimeScripts,
40
41
  styleElementsFor,
41
42
  warnUnknownEnumValues
42
- } from "./chunk-2ONVJ7NT.js";
43
+ } from "./chunk-ZKHXN2BV.js";
43
44
  import {
44
45
  cssVariableName
45
46
  } from "./chunk-VC76R6W2.js";
@@ -49,24 +50,22 @@ import {
49
50
  } from "./chunk-OFQWTKPW.js";
50
51
  import {
51
52
  lintHyperframeHtml
52
- } from "./chunk-IC6BO4GU.js";
53
- import {
54
- checkSubCompositionUsability,
55
- resolveSubCompositionContent
56
- } from "./chunk-MMQ52NIZ.js";
53
+ } from "./chunk-CV32PRH3.js";
57
54
  import {
58
55
  CSS_URL_RE,
56
+ checkSubCompositionUsability,
59
57
  decodeCssEscapes,
60
58
  decodeWellFormedEscapes,
61
59
  decodedUrlPath,
62
60
  encodeUrlPath,
63
61
  isNonRelativeUrl,
62
+ resolveSubCompositionContent,
64
63
  rewriteAssetPath,
65
64
  rewriteAssetPaths,
66
65
  rewriteCssAssetUrls,
67
66
  rewriteInlineStyleAssetUrls,
68
67
  splitUrlSuffix
69
- } from "./chunk-BSQ7XANM.js";
68
+ } from "./chunk-2BGOB2QK.js";
70
69
  import {
71
70
  parseHTML
72
71
  } from "./chunk-SDYDNHEE.js";
@@ -1604,13 +1603,59 @@ function rewriteSvgIdReferencesInCss(css, idMap, references = []) {
1604
1603
  }
1605
1604
 
1606
1605
  // ../core/dist/compiler/inlineSubCompositions.js
1607
- var SIDE_EFFECT_RE = /\b(addEventListener|requestAnimationFrame|requestIdleCallback|setTimeout|setInterval|queueMicrotask|getContext|WebGL\w*|WebGPU\w*|gpu|Worker|WebSocket|EventSource|Audio\w*|\w*Observer|fetch|import|eval|Function|Promise|async|await|delayedCall|ScrollTrigger|Draggable|anime|customElements|registerProperty|addListener|BroadcastChannel|pushState|replaceState|adoptedStyleSheets|documentElement|getElementsByTagName|lottie|THREE|__hf[A-Z]\w*)\b|\.then\s*\(|\.animate\s*\(|\.ticker\b|repeat\s*:\s*-1|\.repeat\s*\(\s*-1|defineProperty\s*\(\s*(window|globalThis|self|document)\b|\bfonts\s*\.\s*add\b|\.on[a-z]+\s*=(?!=)|\bon(resize|scroll|message|key\w+|click|pointer\w+|mouse\w+|wheel|visibilitychange|hashchange|popstate|error|load)\s*=(?!=)|\[\s*["']on[a-z]+["']\s*\]|document\s*\.\s*(head|body)\b|querySelector(All)?\(\s*["'](head|body)["']|\bgsap\s*\.\s*(?:to|from|fromTo)\s*\(|\bgsap\s*\.\s*timeline\s*\((?:[^()]|\([^()]*\))*\)\s*\.\s*(?:to|from|fromTo|set|add|call)\s*\(/;
1606
+ var SIDE_EFFECT_RE = /\b(addEventListener|requestAnimationFrame|requestIdleCallback|setTimeout|setInterval|queueMicrotask|getContext|WebGL\w*|WebGPU\w*|gpu|Worker|WebSocket|EventSource|Audio\w*|\w*Observer|fetch|import|eval|Function|Promise|async|await|delayedCall|ScrollTrigger|Draggable|anime|customElements|registerProperty|addListener|BroadcastChannel|pushState|replaceState|adoptedStyleSheets|documentElement|getElementsByTagName|lottie|THREE|__hf[A-Z]\w*)\b|\.then\s*\(|\.ticker\b|repeat\s*:\s*-1|\.repeat\s*\(\s*-1|defineProperty\s*\(\s*(window|globalThis|self|document)\b|\bfonts\s*\.\s*add\b|\.on[a-z]+\s*=(?!=)|\bon(resize|scroll|message|key\w+|click|pointer\w+|mouse\w+|wheel|visibilitychange|hashchange|popstate|error|load)\s*=(?!=)|\[\s*["']on[a-z]+["']\s*\]|document\s*\.\s*(head|body)\b|querySelector(All)?\(\s*["'](head|body)["']|\bgsap\s*\.\s*(?:to|from|fromTo)\s*\(|\bgsap\s*\.\s*timeline\s*\((?:[^()]|\([^()]*\))*\)\s*\.\s*(?:to|from|fromTo|set|add|call)\s*\(/;
1608
1607
  var SWAP_SAFE_LIBRARY_URL = /^https:\/\/(cdn\.jsdelivr\.net\/npm|unpkg\.com)\/(gsap|three|d3|d3-[a-z-]+|topojson-client|clipper-lib)(@[^/]+)?\//;
1609
1608
  var isSwapSafeLibrary = (src) => URL.canParse(src) && SWAP_SAFE_LIBRARY_URL.test(new URL(src).href);
1610
- function sceneScriptSwapRefusal(script) {
1611
- const match = SIDE_EFFECT_RE.exec(script);
1612
- return match ? `its script uses ${match[0].trim()}` : null;
1609
+ var GSAP_BANNER_RE = /^\s*\/\*!\s*\*\s*GSAP \d+\.\d+\.\d+\s*\*\s*https:\/\/gsap\.com\b/;
1610
+ var isLibraryCopy = (script) => GSAP_BANNER_RE.test(script);
1611
+ var STRING_ARG = String.raw`(?:"(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*')`;
1612
+ var FONT_LOAD = String.raw`document\s*\.\s*fonts\s*\.\s*load\s*\(\s*${STRING_ARG}\s*(?:,\s*${STRING_ARG}\s*)?\)`;
1613
+ var FONT_PROMISE = String.raw`(?:document\s*\.\s*fonts\s*\.\s*ready\b|${FONT_LOAD}|Promise\s*\.\s*all\s*\(\s*\[\s*${FONT_LOAD}(?:\s*,\s*${FONT_LOAD})*\s*,?\s*\]\s*\))`;
1614
+ var FONT_WAIT_RE = new RegExp(String.raw`\b${FONT_PROMISE}\s*\.\s*then\s*\(|\bawait\s+${FONT_PROMISE}`, "g");
1615
+ var TEXT_MEASURE_CANVAS_RE = /\bdocument\s*\.\s*createElement\s*\(\s*(["'])canvas\1\s*\)\s*\.\s*getContext\s*\(\s*(["'])2d\2\s*\)/g;
1616
+ var REGISTERED_CHAIN_RE = /(\b(?:window\s*\.\s*)?__timelines\s*\[[^[\]]*\]\s*=\s*)gsap\s*\.\s*timeline\s*\(/g;
1617
+ function lastingAnimateCall(script) {
1618
+ for (const call of script.matchAll(/\.animate\s*\(/g)) {
1619
+ if (topLevelArgs(script, call.index + call[0].length) !== 1)
1620
+ return true;
1621
+ }
1622
+ return false;
1613
1623
  }
1624
+ function topLevelArgs(script, from) {
1625
+ let depth = 0;
1626
+ let args = 1;
1627
+ if (/^\s*(\.\.\.|\))/.test(script.slice(from)))
1628
+ return Number.POSITIVE_INFINITY;
1629
+ for (let i = from; i < script.length; i++) {
1630
+ const ch = script[i];
1631
+ if (ch === '"' || ch === "'" || ch === "`") {
1632
+ const end = script.indexOf(ch, i + 1);
1633
+ if (end < 0)
1634
+ return Number.POSITIVE_INFINITY;
1635
+ i = end;
1636
+ } else if ("([{".includes(ch))
1637
+ depth++;
1638
+ else if (")]}".includes(ch)) {
1639
+ if (depth === 0)
1640
+ return args;
1641
+ depth--;
1642
+ } else if (ch === "," && depth === 0)
1643
+ args++;
1644
+ }
1645
+ return Number.POSITIVE_INFINITY;
1646
+ }
1647
+ function sceneScriptSwapRefusal(script) {
1648
+ const withoutFontWaits = script.replace(FONT_WAIT_RE, "");
1649
+ const awaitedFontsOnly = /\bawait\b/.test(script) && !/\bawait\b/.test(withoutFontWaits);
1650
+ let checked = (awaitedFontsOnly ? withoutFontWaits.replace(/\basync\b/g, "") : withoutFontWaits).replace(REGISTERED_CHAIN_RE, "$1(");
1651
+ if (!/\.\s*canvas\b/.test(checked))
1652
+ checked = checked.replace(TEXT_MEASURE_CANVAS_RE, "");
1653
+ const match = SIDE_EFFECT_RE.exec(checked);
1654
+ if (match)
1655
+ return `its script uses ${match[0].trim()}`;
1656
+ return lastingAnimateCall(checked) ? "its script uses .animate(" : null;
1657
+ }
1658
+ var projectScriptRefusal = (text) => text === null ? "it runs a script that is not a known library" : isLibraryCopy(text) ? null : sceneScriptSwapRefusal(text);
1614
1659
  var STRING_LITERAL_RE = /(["'`])((?:\\.|(?!\1)[^\\\n])*?)\1/g;
1615
1660
  var CREATES_ELEMENT_RE = /createElement\s*\(\s*$|createElementNS\s*\([^()]*,\s*$/;
1616
1661
  var isNotASelector = (script, at, literal) => CREATES_ELEMENT_RE.test(script.slice(Math.max(0, at - 60), at)) || literal.trim() === "*" && /,\s*$/.test(script.slice(Math.max(0, at - 20), at));
@@ -1670,7 +1715,7 @@ function defaultBuildScopeSelector(compId) {
1670
1715
  return `[data-composition-id="${escaped}"]`;
1671
1716
  }
1672
1717
  function inlineSubCompositions(document, hosts, options) {
1673
- const { resolveHtml, parseHtml, hostIdentityMap, rewriteInlineStyles = false, flattenInnerRoot, compoundAuthoredRoot, readVariableDefaults, parseHostVariables, buildScopeSelector = defaultBuildScopeSelector, scriptErrorLabel = "[HyperFrames] composition script error:", onMissingComposition, assetExists, tagScenes = false } = options;
1718
+ const { resolveHtml, parseHtml, hostIdentityMap, rewriteInlineStyles = false, flattenInnerRoot, compoundAuthoredRoot, readVariableDefaults, parseHostVariables, buildScopeSelector = defaultBuildScopeSelector, scriptErrorLabel = "[HyperFrames] composition script error:", onMissingComposition, assetExists, tagScenes = false, readProjectScript } = options;
1674
1719
  const rootStyles = [...document.querySelectorAll("style")];
1675
1720
  const styles = [];
1676
1721
  const styleScenes = [];
@@ -1820,7 +1865,7 @@ function inlineSubCompositions(document, hosts, options) {
1820
1865
  for (const scriptEl of plan.scriptSources) {
1821
1866
  const externalSrc = resolveSubAssetPath(scriptEl.getAttribute("src"));
1822
1867
  const type = (scriptEl.getAttribute("type") || "").trim().toLowerCase();
1823
- refuseSwap(() => type === "importmap" || type === "module" ? "it runs a module script or import map" : !externalSrc ? sceneScriptSwapRefusal(scriptEl.textContent || "") : isSwapSafeLibrary(externalSrc) ? null : "it runs a script that is not a known library");
1868
+ refuseSwap(() => type === "importmap" || type === "module" ? "it runs a module script or import map" : !externalSrc ? sceneScriptSwapRefusal(scriptEl.textContent || "") : isSwapSafeLibrary(externalSrc) ? null : projectScriptRefusal(readProjectScript?.(externalSrc) ?? null));
1824
1869
  if (type === "importmap") {
1825
1870
  const map = parseImportMap(scriptEl.textContent || "", (url) => {
1826
1871
  const authored = url.trim();
@@ -2274,42 +2319,6 @@ function rebaseRelativePath(urlValue, fromDir, toDir) {
2274
2319
  const rebased = encodeUrlPath(relative(resolve2(toDir), absolutePath).split(sep).join("/"));
2275
2320
  return appendSuffixToUrl(rebased, suffix);
2276
2321
  }
2277
- function rewriteSrcsetUrls(srcset, rewriteUrl) {
2278
- const parts = [];
2279
- let position = 0;
2280
- let written = 0;
2281
- while (position < srcset.length) {
2282
- while (position < srcset.length && /[ \t\n\r\f,]/.test(srcset.charAt(position)))
2283
- position++;
2284
- const start = position;
2285
- while (position < srcset.length && !/[ \t\n\r\f]/.test(srcset.charAt(position)))
2286
- position++;
2287
- let end = position;
2288
- while (end > start && srcset.charAt(end - 1) === ",")
2289
- end--;
2290
- if (end > start) {
2291
- const url = srcset.slice(start, end);
2292
- const rewritten = rewriteUrl(url);
2293
- if (rewritten !== url) {
2294
- parts.push(srcset.slice(written, start), rewritten);
2295
- written = end;
2296
- }
2297
- }
2298
- if (end < position)
2299
- continue;
2300
- let inParens = false;
2301
- while (position < srcset.length) {
2302
- const char = srcset.charAt(position++);
2303
- if (char === "(")
2304
- inParens = true;
2305
- else if (char === ")")
2306
- inParens = false;
2307
- else if (char === "," && !inParens)
2308
- break;
2309
- }
2310
- }
2311
- return parts.length > 0 ? parts.join("") + srcset.slice(written) : srcset;
2312
- }
2313
2322
  function rebaseColorGradingLutPath(value, fromDir, toDir) {
2314
2323
  if (!value.trim().startsWith("{"))
2315
2324
  return value;
@@ -3016,7 +3025,8 @@ async function bundleProject(projectDir, options) {
3016
3025
  ].map((el) => {
3017
3026
  const src = el.getAttribute("src");
3018
3027
  const path = src && isRelativeUrl(src) ? resolveEntryUrl(src) : null;
3019
- return src ? path && safeReadFile(path) || "" : el.textContent || "";
3028
+ const text = src ? path && safeReadFile(path) || "" : el.textContent || "";
3029
+ return isLibraryCopy(text) ? "" : text;
3020
3030
  }) : [];
3021
3031
  const trackedCompositionHosts = getBundledTrackedCompositionHosts(document);
3022
3032
  const hostIdentityByElement = assignBundledRuntimeCompositionIds(trackedCompositionHosts);
@@ -3053,6 +3063,10 @@ async function bundleProject(projectDir, options) {
3053
3063
  },
3054
3064
  flattenInnerRoot: prepareFlattenedInnerRoot,
3055
3065
  tagScenes: options?.sceneParts === true,
3066
+ readProjectScript: (path) => {
3067
+ const resolved = isRelativeUrl(path) ? resolveEntryUrl(path) : null;
3068
+ return resolved ? safeReadFile(resolved) : null;
3069
+ },
3056
3070
  readVariableDefaults: readDeclaredDefaults,
3057
3071
  parseHostVariables: parseHostVariableValues,
3058
3072
  buildScopeSelector: (compId) => cssAttributeSelector("data-composition-id", compId),
@@ -3072,6 +3086,10 @@ async function bundleProject(projectDir, options) {
3072
3086
  ...subCompResult.variablesByComp
3073
3087
  };
3074
3088
  const seenCompScriptSrcs = /* @__PURE__ */ new Set();
3089
+ const scenesBySrc = /* @__PURE__ */ new Map();
3090
+ for (const item of subCompResult.scriptItems)
3091
+ if (item.kind !== "inline")
3092
+ scenesBySrc.set(item.src, (scenesBySrc.get(item.src) ?? /* @__PURE__ */ new Set()).add(item.scene));
3075
3093
  for (const scriptItem of subCompResult.scriptItems) {
3076
3094
  if (scriptItem.kind === "inline") {
3077
3095
  pushRun(scriptRuns, scriptItem.scene, scriptItem.content);
@@ -3086,12 +3104,13 @@ async function bundleProject(projectDir, options) {
3086
3104
  if (seenCompScriptSrcs.has(extSrc))
3087
3105
  continue;
3088
3106
  seenCompScriptSrcs.add(extSrc);
3107
+ const scene = (scenesBySrc.get(extSrc)?.size ?? 0) > 1 ? void 0 : scriptItem.scene;
3089
3108
  if (isRelativeUrl(extSrc) && scriptItem.type !== "module") {
3090
3109
  const jsPath = resolveEntryUrl(extSrc);
3091
3110
  const js = jsPath ? safeReadFile(jsPath) : null;
3092
3111
  if (js != null) {
3093
3112
  const chunk = () => preserveLocalScriptIntegrity(document, extSrc, resolveEntryUrl) ? "" : js;
3094
- pushRun(scriptRuns, scriptItem.scene, chunk);
3113
+ pushRun(scriptRuns, scene, chunk);
3095
3114
  continue;
3096
3115
  }
3097
3116
  }
@@ -9,10 +9,10 @@ import {
9
9
  isHttpUrl,
10
10
  renameWithRetry,
11
11
  runFfmpeg
12
- } from "./chunk-L6FG62QM.js";
12
+ } from "./chunk-UKB62QOT.js";
13
13
  import {
14
14
  parseAnimatedGifMetadata
15
- } from "./chunk-UVQLSMAR.js";
15
+ } from "./chunk-74UH2KGI.js";
16
16
  import {
17
17
  parseHTML
18
18
  } from "./chunk-SDYDNHEE.js";
@@ -190,7 +190,7 @@ async function runAnimatedGifTranscode(request) {
190
190
  failureReason: result.failureReason
191
191
  });
192
192
  }
193
- if (result.terminationReason === "deadline") {
193
+ if (result.terminationReason === "inactivity") {
194
194
  throw new Error(`Animated GIF transcode timed out after ${timeout}ms`);
195
195
  }
196
196
  throw result.error ?? new Error(`Animated GIF transcode failed (${result.exitCode}): ${result.stderr.slice(-500)}`);
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/producer.ts
9
9
  async function loadProducer() {
10
- return await import("./src-ACAFJXAJ.js");
10
+ return await import("./src-46QTOHZE.js");
11
11
  }
12
12
 
13
13
  export {
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-OZVRCLEN.js";
20
+ } from "./chunk-IIH24PKY.js";
21
21
 
22
22
  // src/utils/updateCheck.ts
23
23
  import { existsSync, readFileSync } from "fs";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-AHZLNYZY.js";
9
+ } from "./chunk-YTBE4JCX.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-L6FG62QM.js";
19
+ } from "./chunk-UKB62QOT.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-UVQLSMAR.js";
22
+ } from "./chunk-74UH2KGI.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -6,27 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-K65XUUJX.js";
9
+ } from "./chunk-ITJAHKYO.js";
10
10
  import {
11
11
  serveStaticProjectHtml
12
- } from "./chunk-TTWFTEUG.js";
12
+ } from "./chunk-A7YO6YSD.js";
13
13
  import {
14
14
  AUDIT_SEEK_OPTIONS,
15
15
  installPageFunctionGuard,
16
16
  seekCompositionTimeline,
17
17
  waitForCompositionFonts,
18
18
  waitForRuntimeReady
19
- } from "./chunk-HOAXHVRR.js";
19
+ } from "./chunk-U2EK5MFR.js";
20
20
  import {
21
21
  launchManagedBrowser,
22
22
  resolveManagedGpuMode
23
- } from "./chunk-2KZSKIYY.js";
23
+ } from "./chunk-TYRDDIIH.js";
24
24
  import {
25
25
  gotoWhenSent
26
26
  } from "./chunk-MOEGCMKI.js";
27
27
  import {
28
28
  pageNavigationTimeoutMs
29
- } from "./chunk-S5WSJVHP.js";
29
+ } from "./chunk-T33GLS6C.js";
30
30
  import {
31
31
  defineCommand
32
32
  } from "./chunk-S3S4TGEH.js";
@@ -40,7 +40,7 @@ import {
40
40
  import {
41
41
  printDeprecationNotice,
42
42
  withMeta
43
- } from "./chunk-4QG64APO.js";
43
+ } from "./chunk-SZNCAINN.js";
44
44
  import {
45
45
  normalizeErrorMessage
46
46
  } from "./chunk-T2EUWCJE.js";
@@ -715,7 +715,7 @@ async function collectTweenBoundaries(page) {
715
715
  });
716
716
  }
717
717
  async function bundleProjectHtml(projectDir) {
718
- const { bundleToSingleHtml } = await import("./compiler-WER7FC5O.js");
718
+ const { bundleToSingleHtml } = await import("./compiler-KH6DMHIJ.js");
719
719
  return bundleToSingleHtml(projectDir);
720
720
  }
721
721
  async function alignViewportToComposition(page, url) {
@@ -732,15 +732,15 @@ async function alignViewportToComposition(page, url) {
732
732
  await gotoWhenSent(page, url, pageNavigationTimeoutMs());
733
733
  }
734
734
  async function runLayoutAudit(projectDir, opts) {
735
- const { ensureBrowser } = await import("./manager-COSJVRAE.js");
735
+ const { ensureBrowser } = await import("./manager-F34TSFV6.js");
736
736
  const puppeteer = await import("puppeteer-core");
737
- const { buildChromeArgs } = await import("./src-QQPHMIJ7.js");
737
+ const { buildChromeArgs } = await import("./src-HPLELQRK.js");
738
738
  const {
739
739
  assertWebGpuAdapterAvailable,
740
740
  compositionRequiresWebGpu,
741
741
  resolveLocalBrowserGpuMode,
742
742
  resolveLocalWebGpu
743
- } = await import("./gpuPolicy-GIBBYBI5.js");
743
+ } = await import("./gpuPolicy-MU7CFSAF.js");
744
744
  const html = await bundleProjectHtml(projectDir);
745
745
  const server = await serveStaticProjectHtml(
746
746
  projectDir,
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-ILFDFMYJ.js";
13
+ } from "./chunk-DWULQYOQ.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-DKPNNYBZ.js";
15
15
  import {
16
16
  resolveCaptureBrowserGpuMode
17
- } from "./chunk-TF7LCULS.js";
17
+ } from "./chunk-B67P2WP3.js";
18
18
  import {
19
19
  requestCliExit
20
20
  } from "./chunk-JVBRJMOP.js";
@@ -8,31 +8,31 @@ import {
8
8
  launchManagedBrowser,
9
9
  resolveManagedGpuMode,
10
10
  rethrowAfterBrowserCleanup
11
- } from "./chunk-2KZSKIYY.js";
11
+ } from "./chunk-TYRDDIIH.js";
12
12
  import {
13
13
  gotoWhenSent
14
14
  } from "./chunk-MOEGCMKI.js";
15
15
  import {
16
16
  pageNavigationTimeoutMs,
17
17
  windowsChromeCrashRemediation
18
- } from "./chunk-S5WSJVHP.js";
18
+ } from "./chunk-T33GLS6C.js";
19
19
  import {
20
20
  oneProcessOverPipe
21
21
  } from "./chunk-DKPNNYBZ.js";
22
22
  import {
23
23
  resolveCompositionViewportFromHtml
24
- } from "./chunk-T4IJMVCB.js";
24
+ } from "./chunk-GKXH4C2B.js";
25
25
  import {
26
26
  resolveLocalBrowserGpuMode,
27
27
  resolveLocalWebGpu
28
- } from "./chunk-TF7LCULS.js";
28
+ } from "./chunk-B67P2WP3.js";
29
29
  import {
30
30
  c
31
31
  } from "./chunk-ZTZA4UWZ.js";
32
32
  import {
33
33
  assertWebGpuAdapterAvailable,
34
34
  compositionRequiresWebGpu
35
- } from "./chunk-L6FG62QM.js";
35
+ } from "./chunk-UKB62QOT.js";
36
36
  import {
37
37
  normalizeErrorMessage
38
38
  } from "./chunk-T2EUWCJE.js";
@@ -140,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
140
140
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
141
141
  });
142
142
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
143
- const { resolveConfig, waitForImagesReady } = await import("./src-QQPHMIJ7.js");
143
+ const { resolveConfig, waitForImagesReady } = await import("./src-HPLELQRK.js");
144
144
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
145
145
  await waitForImagesReady(
146
146
  page,
@@ -189,7 +189,7 @@ async function installPageFunctionGuard(page) {
189
189
  async function openSettledCompositionPage(html, url, options) {
190
190
  const viewport = resolveCompositionViewportFromHtml(html);
191
191
  const requiresWebGpu = compositionRequiresWebGpu(html);
192
- const answer = (await import("./staticProjectServer-JUN6BRTW.js")).inProcessAnswer(url);
192
+ const answer = (await import("./staticProjectServer-FHP2YQFV.js")).inProcessAnswer(url);
193
193
  const noListen = answer !== void 0;
194
194
  let chromeBrowser;
195
195
  try {
@@ -200,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
200
200
  options.onBrowserReady?.();
201
201
  const page = await chromeBrowser.newPage();
202
202
  await installPageFunctionGuard(page);
203
- const { installMediaRenderIdBridge } = await import("./src-QQPHMIJ7.js");
203
+ const { installMediaRenderIdBridge } = await import("./src-HPLELQRK.js");
204
204
  await installMediaRenderIdBridge(page);
205
205
  await page.setViewport(viewport);
206
206
  if (answer) await answerPageInProcess(page, url, answer);
@@ -216,10 +216,10 @@ async function openSettledCompositionPage(html, url, options) {
216
216
  }
217
217
  async function launchCompositionBrowser(html, noListen, options) {
218
218
  const viewport = resolveCompositionViewportFromHtml(html);
219
- const { ensureBrowser, findSystemBrowser } = await import("./manager-COSJVRAE.js");
219
+ const { ensureBrowser, findSystemBrowser } = await import("./manager-F34TSFV6.js");
220
220
  const browser = await ensureBrowser({ signal: options.signal });
221
221
  const puppeteer = await import("puppeteer-core");
222
- const { buildChromeArgs } = await import("./src-QQPHMIJ7.js");
222
+ const { buildChromeArgs } = await import("./src-HPLELQRK.js");
223
223
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
224
224
  const requiresWebGpu = compositionRequiresWebGpu(html);
225
225
  let softwareWebGpu = false;
@@ -11,10 +11,10 @@ import {
11
11
  MAX_AUDIO_GAIN_DB,
12
12
  formatAudioGain,
13
13
  isAudibleVideoElement
14
- } from "./chunk-X7HBSTCZ.js";
14
+ } from "./chunk-ZKHXN2BV.js";
15
15
  import {
16
16
  decodeAuthoredAttribute
17
- } from "./chunk-XOTUPVIF.js";
17
+ } from "./chunk-MSGWR7WP.js";
18
18
  import {
19
19
  findFfBinary
20
20
  } from "./chunk-VAS6HQX3.js";
@@ -22,7 +22,7 @@ import {
22
22
  decodeWellFormedEscapes,
23
23
  decodedUrlPath,
24
24
  readMediaOffsetSeconds
25
- } from "./chunk-BSQ7XANM.js";
25
+ } from "./chunk-2BGOB2QK.js";
26
26
 
27
27
  // ../studio-server/dist/chunk-QZWVJKLI.js
28
28
  import { execFile } from "child_process";