hyperframes 0.8.166 → 0.8.168

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 (166) hide show
  1. package/dist/{add-MCSKPN2J.js → add-VCX3UE2B.js} +13 -13
  2. package/dist/{animatedGifPrep-3HO4C3YA.js → animatedGifPrep-TWD5BNVK.js} +8 -8
  3. package/dist/api.js +14 -14
  4. package/dist/{asset-XVO3H37J.js → asset-BBJ3GAL7.js} +2 -2
  5. package/dist/{assetCataloger-RHSKUXJV.js → assetCataloger-S47GINRQ.js} +8 -8
  6. package/dist/{audio-G4CPBGIP.js → audio-MEDCANA3.js} +15 -15
  7. package/dist/{auth-GRFFMOB5.js → auth-LZYMCNTB.js} +1 -1
  8. package/dist/{autoUpdate-CHDEIEGO.js → autoUpdate-AXTW2NKX.js} +2 -2
  9. package/dist/{backgroundChecks-VAZLRTGT.js → backgroundChecks-3YDYYI3D.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-ILOPDVDM.js → batchRender-UDE7TOKY.js} +4 -4
  12. package/dist/{beats-B3BZKIWQ.js → beats-HHXMPMGT.js} +5 -5
  13. package/dist/{benchmark-OAPEWN3B.js → benchmark-2BY7PBAP.js} +9 -9
  14. package/dist/{browser-IG6NUNE2.js → browser-CXB4KTJP.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-ZUM7SYTY.js → bundleWithLocalizedFonts-M7CRHOS7.js} +2 -2
  16. package/dist/{capture-4A3RN6PP.js → capture-PRTE4Z7E.js} +3 -3
  17. package/dist/{capture-XXKHHDGW.js → capture-WHG37ZLF.js} +19 -53
  18. package/dist/{captureTimeout-PA4FYWT5.js → captureTimeout-K2JNVVCI.js} +1 -1
  19. package/dist/{catalog-OT6XSKQS.js → catalog-WRM2373Z.js} +13 -13
  20. package/dist/{catch-up-JEU6V6DR.js → catch-up-WHLD6E5F.js} +4 -4
  21. package/dist/{check-6FSM25VP.js → check-R5E7WLKF.js} +112 -56
  22. package/dist/{checkBrowser-MECIATAM.js → checkBrowser-Y4CZVGIV.js} +42 -33
  23. package/dist/chunk-2F7S7OK2.js +20 -0
  24. package/dist/{chunk-APTXSODN.js → chunk-2GSGFDEP.js} +5 -5
  25. package/dist/{chunk-OBZWOV4Q.js → chunk-4CIMRQQY.js} +11 -5
  26. package/dist/{chunk-EUCDNWPK.js → chunk-4LXK7TOM.js} +7 -7
  27. package/dist/{chunk-FALELQTO.js → chunk-4PHDDZVL.js} +37 -15
  28. package/dist/{chunk-F67VJSSH.js → chunk-4WPRJ7ID.js} +1 -1
  29. package/dist/{chunk-CQFNLIGE.js → chunk-54MI3SGP.js} +3 -3
  30. package/dist/{chunk-WC6QG6WU.js → chunk-5VGEWXJL.js} +2 -2
  31. package/dist/{chunk-SZDHUSQ5.js → chunk-AQZZZTFL.js} +2 -2
  32. package/dist/{chunk-7PYUADWL.js → chunk-ATCB4PMO.js} +1 -1
  33. package/dist/{chunk-KX4VIWIV.js → chunk-ATOXD5VV.js} +1 -1
  34. package/dist/{chunk-HTDDV7CM.js → chunk-BC2XZL6O.js} +2 -2
  35. package/dist/{chunk-TPLNKI23.js → chunk-BOT7PGM5.js} +2 -2
  36. package/dist/{chunk-GDJGBAV6.js → chunk-BTCUP5ZY.js} +2 -2
  37. package/dist/{chunk-HLCB2VAN.js → chunk-BV2NH7ZA.js} +1 -1
  38. package/dist/{chunk-BTXLF6DV.js → chunk-BWFUUGIZ.js} +1 -1
  39. package/dist/{chunk-ZUQ2K4YF.js → chunk-C3WPYYGK.js} +1 -1
  40. package/dist/{chunk-BSXI5VWK.js → chunk-CAHSX6IW.js} +26 -21
  41. package/dist/{chunk-UKTXHF3Q.js → chunk-CDDIEZ4D.js} +13 -11
  42. package/dist/{chunk-AL7XYJTK.js → chunk-DO3UPPO4.js} +2 -2
  43. package/dist/{chunk-6U47Q57N.js → chunk-E7CIMKJS.js} +1 -1
  44. package/dist/{chunk-CBNI34SD.js → chunk-EEP5Y5IE.js} +1 -1
  45. package/dist/{chunk-CABYCNUK.js → chunk-EKEK3GOB.js} +3 -3
  46. package/dist/{chunk-L7PJO2A4.js → chunk-EW2QBTYO.js} +23 -17
  47. package/dist/{chunk-WP4QEC2Q.js → chunk-EXMTTXKQ.js} +2 -2
  48. package/dist/{chunk-DOONKIF5.js → chunk-FA3TWKZO.js} +2 -2
  49. package/dist/{chunk-I3B4A3LF.js → chunk-HL6GWREP.js} +1 -1
  50. package/dist/{chunk-BTTGDEGI.js → chunk-ID7B7NGN.js} +1 -1
  51. package/dist/{chunk-KPPC3C4I.js → chunk-KDC5D5VM.js} +25 -21
  52. package/dist/{chunk-ATF6UESJ.js → chunk-LGCHE2F4.js} +1 -1
  53. package/dist/{chunk-DDEFEMA3.js → chunk-LUSWL6OJ.js} +2 -2
  54. package/dist/{chunk-PORNXOQP.js → chunk-LZGRJDNJ.js} +1 -1
  55. package/dist/{chunk-3QATT3QF.js → chunk-M4N6IHCQ.js} +4 -4
  56. package/dist/{chunk-ULJB5UY4.js → chunk-MD4S2RXW.js} +13 -17
  57. package/dist/{chunk-2WYDNKVV.js → chunk-MOJKJ4K4.js} +4 -4
  58. package/dist/{chunk-4UNBVCLJ.js → chunk-N7QCMEQG.js} +2844 -2674
  59. package/dist/{chunk-BIOWX4AM.js → chunk-NT3WPYAU.js} +3 -3
  60. package/dist/{chunk-QNZQTITL.js → chunk-NYIKKCMC.js} +1 -1
  61. package/dist/{chunk-ZIL7S3L6.js → chunk-O7BABHM4.js} +1 -1
  62. package/dist/{chunk-THA3FI4Z.js → chunk-OQGORCT3.js} +2 -2
  63. package/dist/{chunk-3VGU2SH7.js → chunk-OYLO6TYK.js} +8 -1
  64. package/dist/{chunk-2742O5DO.js → chunk-PLWORQFC.js} +38 -34
  65. package/dist/{chunk-ZH3TWH4D.js → chunk-PYSGYMM4.js} +3 -3
  66. package/dist/chunk-QE7XLLGT.js +3803 -0
  67. package/dist/{chunk-AKBFKGJM.js → chunk-QKJ4KGNR.js} +1 -1
  68. package/dist/{chunk-W3SLIE72.js → chunk-RG66EU4L.js} +10 -10
  69. package/dist/{chunk-AWNBM3MZ.js → chunk-RGHQID2E.js} +3 -3
  70. package/dist/{chunk-MMSCLNCJ.js → chunk-SYKPCN32.js} +8 -2
  71. package/dist/{chunk-TIZRYBKL.js → chunk-TW7H5CJO.js} +2 -2
  72. package/dist/{chunk-FLTPIUGU.js → chunk-UWQL2MP4.js} +100 -2
  73. package/dist/{chunk-TAANFVLO.js → chunk-VTBME36F.js} +1 -1
  74. package/dist/{chunk-25CSBTM2.js → chunk-XOODFU75.js} +1 -1
  75. package/dist/{chunk-WPNE5NEP.js → chunk-XR3XDG7V.js} +19 -5
  76. package/dist/{chunk-ALLKNYC3.js → chunk-YMS5FOMC.js} +31 -18
  77. package/dist/{chunk-V652CBKA.js → chunk-YTZA25TZ.js} +1 -1
  78. package/dist/{chunk-B4VG7PGX.js → chunk-YULVV525.js} +1 -1
  79. package/dist/{clean-QWXJ5QJQ.js → clean-UPXYD6VX.js} +15 -15
  80. package/dist/cli.js +53 -53
  81. package/dist/{cloud-UCQ33ODM.js → cloud-74GU7KDD.js} +4 -4
  82. package/dist/{cloudrun-2NQXQI4T.js → cloudrun-KHMVQL7C.js} +16 -11
  83. package/dist/commands/layout-audit.browser.js +16 -1
  84. package/dist/{compare-ZGW25GT6.js → compare-BG77ZXYF.js} +29 -27
  85. package/dist/{compiler-VQ7QYOSB.js → compiler-OSQ4L7FP.js} +5 -5
  86. package/dist/{component-W2QGYUEG.js → component-34PVECJG.js} +3 -3
  87. package/dist/{compositions-DOIAPDMU.js → compositions-KCVIKKSR.js} +12 -12
  88. package/dist/{delete-PCSBLAVX.js → delete-NU2ENZYQ.js} +2 -2
  89. package/dist/{deploy-5G4Z6LPA.js → deploy-4MK3Y67M.js} +1 -0
  90. package/dist/{deterministicFonts-LNNVHVS2.js → deterministicFonts-KXVO7QEL.js} +3 -3
  91. package/dist/{dist-6TKXILZL.js → dist-3VKMLNXT.js} +7 -3
  92. package/dist/{dist-ROVMAL74.js → dist-OTCFZEKF.js} +2 -2
  93. package/dist/{doctor-2FMEUV4B.js → doctor-GVELHIHI.js} +10 -10
  94. package/dist/{events-V2KF4OKH.js → events-E6CVR42M.js} +2 -2
  95. package/dist/{events-QPODC7BK.js → events-UP3IQXPM.js} +3 -3
  96. package/dist/{feedback-NC2YHCYF.js → feedback-IRYQ4YKX.js} +7 -7
  97. package/dist/{figma-RP23MXHX.js → figma-BLQBHAPG.js} +3 -3
  98. package/dist/fontLocalizeCli.js +14 -14
  99. package/dist/{get-FIWRIPCT.js → get-HESG62RX.js} +2 -2
  100. package/dist/{gpuPolicy-4YD2BS3P.js → gpuPolicy-CHXUX2ZT.js} +8 -8
  101. package/dist/{grade-compare-HVLIDLEO.js → grade-compare-ZDJMJUYY.js} +29 -27
  102. package/dist/{help-EDA6FXKG.js → help-2BQBFF4Z.js} +1 -1
  103. package/dist/{history-7Z763GGS.js → history-4IZQ6NRV.js} +9 -9
  104. package/dist/hyperframe-runtime.js +72 -70
  105. package/dist/hyperframe.manifest.json +1 -1
  106. package/dist/hyperframe.runtime.iife.js +72 -70
  107. package/dist/hyperframes-player.global.js +3 -3
  108. package/dist/{info-OHDJXJKQ.js → info-JNGAI3JU.js} +8 -8
  109. package/dist/{init-BKYY2CXY.js → init-ZQO6G5C7.js} +23 -23
  110. package/dist/{inspect-CX3AFG2K.js → inspect-DWMKJEVE.js} +30 -28
  111. package/dist/{installer-5YWMYX5C.js → installer-UKZT4SKK.js} +6 -6
  112. package/dist/{keyframes-LBK4Y2T2.js → keyframes-FC273E5N.js} +6 -6
  113. package/dist/{lambda-HIC2Z3GQ.js → lambda-GSZCV77P.js} +31 -18
  114. package/dist/{layout-NSIMPYKJ.js → layout-ASSCBJCO.js} +30 -28
  115. package/dist/{lint-YH6HNXVM.js → lint-PSCEVVNL.js} +8 -8
  116. package/dist/{lintProject-BGDYHF3F.js → lintProject-PXB5Y6TX.js} +2 -2
  117. package/dist/{list-KZXJYWKZ.js → list-KO4N2VJL.js} +2 -2
  118. package/dist/{login-CBNG6TFS.js → login-ZJEBRFV5.js} +4 -4
  119. package/dist/{media-treatment-TZTGSXQW.js → media-treatment-HGHLLZR3.js} +11 -11
  120. package/dist/{models-6PJD6KNN.js → models-NTAVDCAV.js} +11 -11
  121. package/dist/{motionShot-ATCNOMLE.js → motionShot-SJENYTRO.js} +19 -17
  122. package/dist/{normalize-audio-JYRAP3I5.js → normalize-audio-PQIC7IPK.js} +4 -4
  123. package/dist/{open-2IWIMS7X.js → open-EI7UEAZZ.js} +4 -4
  124. package/dist/{parakeetRunner-4RECECZC.js → parakeetRunner-7SDEI3IZ.js} +11 -11
  125. package/dist/{pipeline-W5ON6TOA.js → pipeline-EXHHCUE7.js} +8 -8
  126. package/dist/{play-UWEP74BP.js → play-Y4EMM2OJ.js} +19 -19
  127. package/dist/{present-LBW3UKGD.js → present-LFMGQGX6.js} +15 -15
  128. package/dist/{preview-ZJVWEZDQ.js → preview-EYQG7L6X.js} +18 -18
  129. package/dist/{producer-STNCPEUU.js → producer-FKOEAHJW.js} +1 -1
  130. package/dist/{projectConfig-QIZWOCOO.js → projectConfig-SXW3QMZE.js} +8 -8
  131. package/dist/{publication-YNDABZNC.js → publication-ZC4LDEXQ.js} +3 -3
  132. package/dist/{publish-4UNNKLPE.js → publish-4ZCLHA5W.js} +10 -10
  133. package/dist/{remove-background-77IFDTYA.js → remove-background-IGDRS2QV.js} +9 -9
  134. package/dist/{render-5LL5JCRH.js → render-QJCBJQOM.js} +38 -30
  135. package/dist/{render-VFPSVKGX.js → render-TA3DG3LZ.js} +9 -9
  136. package/dist/{render-NUZPUBQO.js → render-ZN777RDD.js} +11 -6
  137. package/dist/{render-batch-QU7ZWEJZ.js → render-batch-2JQNFAL4.js} +10 -6
  138. package/dist/renderSetupWorker.js +2 -2
  139. package/dist/{resolver-SPF7J6MA.js → resolver-JZF5G6YC.js} +5 -5
  140. package/dist/{screenshotCapture-3JXXUZND.js → screenshotCapture-XAYELJK7.js} +1 -1
  141. package/dist/{sherpa-XPHQUCHY.js → sherpa-MDVSUF6Y.js} +10 -10
  142. package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -0
  143. package/dist/{skills-FVEEVJS7.js → skills-JVNMX37H.js} +30 -5
  144. package/dist/{skillsUpdateCheck-C64VYL4I.js → skillsUpdateCheck-KNTQFGOI.js} +3 -3
  145. package/dist/{snapshot-IMGLO7XP.js → snapshot-RDQTFIPX.js} +35 -33
  146. package/dist/{src-DG7XW5WW.js → src-5XO7KBBL.js} +7 -7
  147. package/dist/{src-ZUYRJWHE.js → src-ZPEZRIUC.js} +13 -13
  148. package/dist/{staticProjectServer-H6GKJPVR.js → staticProjectServer-RLERPIY6.js} +15 -15
  149. package/dist/studio/assets/{hyperframes-player-BhRLDR30.js → hyperframes-player-mYPt9XVX.js} +1 -1
  150. package/dist/studio/assets/{index-DQ_I6X0d.js → index-B-v5xQjD.js} +97 -97
  151. package/dist/studio/assets/{index-CCRXiiFo.js → index-DtHmIKM0.js} +1 -1
  152. package/dist/studio/index.html +1 -1
  153. package/dist/{studio-api-72FF3CQG.js → studio-api-4INCUOCU.js} +9 -9
  154. package/dist/{studioServer-2YBG4HV2.js → studioServer-DMDE7IZU.js} +54 -52
  155. package/dist/{telemetry-DCFWJC6H.js → telemetry-4Y5DYI6H.js} +3 -3
  156. package/dist/{timeline-IN6TQ6AQ.js → timeline-XJRKELVE.js} +37 -24
  157. package/dist/{tokens-2ELEYMMJ.js → tokens-G4VKTABI.js} +2 -2
  158. package/dist/{transcribe-GGNTXYJS.js → transcribe-JRSQRPVH.js} +9 -9
  159. package/dist/{transcribe-KELKHOAQ.js → transcribe-Y46B2ZVD.js} +15 -15
  160. package/dist/{updateCheck-IK3VKZ2E.js → updateCheck-NGYDWGQL.js} +2 -2
  161. package/dist/{upgrade-JND5YLA5.js → upgrade-M2LQP5S7.js} +2 -2
  162. package/dist/{urlDownloader-XCHPVCAE.js → urlDownloader-UFDUP3VF.js} +7 -7
  163. package/dist/{validate-4PJYWIXX.js → validate-B3AUFCC5.js} +24 -22
  164. package/dist/{video-53CDAVK2.js → video-WLCNVSVU.js} +8 -8
  165. package/package.json +1 -1
  166. package/dist/chunk-LGAKMIEX.js +0 -3795
@@ -5,28 +5,29 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
+ gotoWhenSent,
8
9
  launchManagedBrowser,
9
10
  resolveManagedGpuMode,
10
11
  rethrowAfterBrowserCleanup
11
- } from "./chunk-FLTPIUGU.js";
12
+ } from "./chunk-UWQL2MP4.js";
12
13
  import {
13
14
  resolveCompositionViewportFromHtml
14
15
  } from "./chunk-FH7WODJH.js";
15
16
  import {
16
17
  resolveDiagnosticNavigationTimeoutMs,
17
18
  windowsChromeCrashRemediation
18
- } from "./chunk-GDJGBAV6.js";
19
+ } from "./chunk-BTCUP5ZY.js";
19
20
  import {
20
21
  resolveLocalBrowserGpuMode,
21
22
  resolveLocalWebGpu
22
- } from "./chunk-AL7XYJTK.js";
23
+ } from "./chunk-DO3UPPO4.js";
23
24
  import {
24
25
  c
25
26
  } from "./chunk-ZTZA4UWZ.js";
26
27
  import {
27
28
  assertWebGpuAdapterAvailable,
28
29
  compositionRequiresWebGpu
29
- } from "./chunk-BSXI5VWK.js";
30
+ } from "./chunk-CAHSX6IW.js";
30
31
  import {
31
32
  normalizeErrorMessage
32
33
  } from "./chunk-KNU5COPB.js";
@@ -47,7 +48,8 @@ var DENSE_GEOMETRY_SEEK_OPTIONS = {
47
48
  ...AUDIT_SEEK_OPTIONS,
48
49
  animationFrameSettle: "none",
49
50
  waitForFontsMs: 0,
50
- settleMs: 0
51
+ settleMs: 0,
52
+ waitForVideoFrames: false
51
53
  };
52
54
  function resolveCliChromeGpuMode(envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
53
55
  return resolveLocalBrowserGpuMode(void 0, envMode);
@@ -108,9 +110,9 @@ async function openSettledCompositionPage(html, url, options) {
108
110
  const { ensureBrowser, findSystemBrowser } = await import("./manager-HEUPD2YB.js");
109
111
  const browser = await ensureBrowser({ signal: options.signal });
110
112
  const puppeteer = await import("puppeteer-core");
111
- const { buildChromeArgs } = await import("./src-DG7XW5WW.js");
113
+ const { buildChromeArgs } = await import("./src-5XO7KBBL.js");
112
114
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
113
- const answer = (await import("./staticProjectServer-H6GKJPVR.js")).inProcessAnswer(url);
115
+ const answer = (await import("./staticProjectServer-RLERPIY6.js")).inProcessAnswer(url);
114
116
  const requiresWebGpu = compositionRequiresWebGpu(html);
115
117
  let softwareWebGpu = false;
116
118
  const launch = async (executablePath) => {
@@ -169,10 +171,11 @@ ${remediation}`,
169
171
  await page.setViewport(viewport);
170
172
  if (answer) await answerPageInProcess(page, url, answer);
171
173
  await options.beforeNavigate?.(page);
172
- await page.goto(url, {
173
- waitUntil: "domcontentloaded",
174
- timeout: resolveDiagnosticNavigationTimeoutMs(process.env, options.navigationTimeoutMs)
175
- });
174
+ await gotoWhenSent(
175
+ page,
176
+ url,
177
+ resolveDiagnosticNavigationTimeoutMs(process.env, options.navigationTimeoutMs)
178
+ );
176
179
  await assertWebGpuAdapterAvailable(page, requiresWebGpu, softwareWebGpu);
177
180
  const renderReadyTimedOut = !await waitForCompositionSettle(page, options);
178
181
  return { browser: chromeBrowser, page, renderReadyTimedOut };
@@ -227,12 +230,15 @@ async function seekCompositionTimeline(page, timeSeconds, options = {}) {
227
230
  options.fallbackToBridgeAndTimelines === true,
228
231
  options.exactTime === true
229
232
  );
230
- await page.evaluate(async () => {
231
- const waitForCompletion = Reflect.get(window, "__hfWaitForSeekCompletion");
232
- if (typeof waitForCompletion === "function") {
233
- await Reflect.apply(waitForCompletion, window, []);
234
- }
235
- });
233
+ await page.evaluate(
234
+ async (barrier) => {
235
+ const waitForCompletion = Reflect.get(window, "__hfWaitForSeekCompletion");
236
+ if (typeof waitForCompletion === "function") {
237
+ await Reflect.apply(waitForCompletion, window, [barrier]);
238
+ }
239
+ },
240
+ { videoFrames: options.waitForVideoFrames !== false }
241
+ );
236
242
  const animationFrameSettle = options.animationFrameSettle ?? "race";
237
243
  if (animationFrameSettle === "race") {
238
244
  await page.evaluate(`new Promise(function(r) {
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-V652CBKA.js";
10
+ } from "./chunk-YTZA25TZ.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-B4VG7PGX.js";
13
+ } from "./chunk-YULVV525.js";
14
14
  import {
15
15
  detectAgentRuntime
16
16
  } from "./chunk-QWQ6GQTI.js";
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-UKTXHF3Q.js";
9
+ } from "./chunk-CDDIEZ4D.js";
10
10
  import {
11
11
  injectTagsAtHeadStart
12
- } from "./chunk-LGAKMIEX.js";
12
+ } from "./chunk-QE7XLLGT.js";
13
13
 
14
14
  // src/utils/compositionServer.ts
15
15
  import { createHash } from "crypto";
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-QPODC7BK.js");
1281
+ const { trackCommandFailure } = await import("./events-UP3IQXPM.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-GMECXFAN.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-MMSCLNCJ.js";
30
+ } from "./chunk-SYKPCN32.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -16,6 +16,7 @@ import {
16
16
  clampDurations,
17
17
  compileTimingAttrs,
18
18
  compositionStyle,
19
+ countPageRoot,
19
20
  cssStyleMergeKey,
20
21
  deferScriptsUntilFonts,
21
22
  enumerateNestedCompositionHosts,
@@ -39,7 +40,7 @@ import {
39
40
  stripEmbeddedRuntimeScripts,
40
41
  styleElementsFor,
41
42
  warnUnknownEnumValues
42
- } from "./chunk-LGAKMIEX.js";
43
+ } from "./chunk-QE7XLLGT.js";
43
44
  import {
44
45
  cssVariableName
45
46
  } from "./chunk-VC76R6W2.js";
@@ -49,7 +50,7 @@ import {
49
50
  } from "./chunk-OFQWTKPW.js";
50
51
  import {
51
52
  lintHyperframeHtml
52
- } from "./chunk-2742O5DO.js";
53
+ } from "./chunk-PLWORQFC.js";
53
54
  import {
54
55
  checkSubCompositionUsability,
55
56
  resolveSubCompositionContent
@@ -342,7 +343,7 @@ function extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml) {
342
343
  }
343
344
 
344
345
  // ../core/dist/compiler/htmlBundler.js
345
- import { transformSync } from "esbuild";
346
+ import { transform } from "esbuild";
346
347
 
347
348
  // ../core/dist/generated/svg-selector-aliases-inline.js
348
349
  var SVG_SELECTOR_ALIASES_IIFE = '"use strict";(()=>{function I(e){return e?/[\\w-]/.test(e)||e.charCodeAt(0)>=128:!1}function _(e){return e===" "||e===" "||e===`\n`||e==="\\r"||e==="\\f"}var j=/^[0-9a-fA-F]{1,6}/;function G(e){let n=e>=55296&&e<=57343;return e===0||e>1114111||n?65533:e}function $(e,n){return e[n]==="\\r"&&e[n+1]===`\n`?n+2:_(e[n])?n+1:n}function R(e,n){let t=e[n+1];if(t===void 0||/[\\n\\r\\f]/.test(t))return null;let i=j.exec(e.slice(n+1,n+7));if(!i)return{value:t,end:n+2};let o=G(Number.parseInt(i[0],16));return{value:String.fromCodePoint(o),end:$(e,n+1+i[0].length)}}function H(e,n){let t=o=>I(o)&&!/[0-9-]/.test(o),i=o=>e[o]==="\\\\"&&R(e,o)!==null;return e[n]==="-"?e[n+1]==="-"||t(e[n+1])||i(n+1):t(e[n])||i(n)}function y(e,n){let t=n;for(;e.startsWith("/*",t);){let i=e.indexOf("*/",t+2);t=i<0?e.length:i+2}return t}function A(e,n){let t=y(e,n);for(;_(e[t]);)t=y(e,t+1);return t}function h(e,n){if(!H(e,n))return null;let t=n,i="";for(;t<e.length;){let o=e[t];if(o==="\\\\"){let a=R(e,t);if(!a)break;i+=a.value,t=a.end;continue}if(!I(o))break;i+=o,t+=1}return t===n?null:{value:i,end:t}}var C=45;function T(e){return e>=48&&e<=57}function z(e){return e>=128||e===C||e===95||T(e)||e>=65&&e<=90||e>=97&&e<=122}function J(e,n){let t=e.charCodeAt(n);return t>=1&&t<=31||t===127?!0:T(t)?n===0||n===1&&e.charCodeAt(0)===C:!1}function k(e){let n="";for(let t=0;t<e.length;t+=1){let i=e.charCodeAt(t),o=e[t];i===0?n+="\\uFFFD":J(e,t)?n+=`\\\\${i.toString(16)} `:t===0&&e.length===1&&i===C?n+=`\\\\${o}`:z(i)?n+=o:n+=`\\\\${o}`}return n}var W=/\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|\\\\(?:[0-9a-fA-F]{1,6}(?:\\r\\n|[ \\t\\r\\n\\f])?|[\\s\\S])|"(?:[^"\\\\]|\\\\[\\s\\S])*"|\'(?:[^\'\\\\]|\\\\[\\s\\S])*\'|\\[(?:\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|\\\\[\\s\\S]|"(?:[^"\\\\]|\\\\[\\s\\S])*"|\'(?:[^\'\\\\]|\\\\[\\s\\S])*\'|[^\\]"\'\\\\/]|\\/(?!\\*))*\\]/g;function Q(e){let n=new Array(e.length).fill(!0);for(let t of e.matchAll(W)){let i=t.index;n.fill(!1,i,i+t[0].length)}return n}function q(e,n,t){if(n.length===0||!e.includes("#"))return e;let i=new Set(n),o=Q(e),a="",u=0;for(;u<e.length;){let d=o[u]&&e[u]==="#"?h(e,u+1):null;d&&i.has(d.value)?(a+=t(d.value),u=d.end):(a+=e[u],u+=1)}return a}function X(e){let n="";for(let t=0;t<e.length;t+=1){if(e[t]==="\\\\"){let i=e[t+1];if(i!==void 0&&/[\\n\\r\\f]/.test(i)){t=$(e,t+1)-1;continue}let o=R(e,t);if(o){n+=o.value,t=o.end-1;continue}}n+=e[t]}return n}function N(e){return Array.from(e,n=>{let t=n.charCodeAt(0);return t===0?"\\uFFFD":t<32||t===127?`\\\\${t.toString(16)} `:n===\'"\'||n==="\\\\"?`\\\\${n}`:n}).join("")}function Y(e,n){return e?{kind:"any"}:n===void 0?{kind:"none"}:{kind:"named",prefix:n}}function Z(e,n){return e[n]==="|"&&e[n+1]!=="="}function B(e,n){let t=e[n]==="*",i=t?{value:"*",end:n+1}:h(e,n),o=y(e,i?.end??n);if(!Z(e,o))return t?null:i?{token:i,namespace:{kind:"none"}}:null;let a=h(e,y(e,o+1));return a?{token:a,namespace:Y(t,i?.value)}:null}function K(e){if(e[0]!=="[")return null;let n=A(e,1),t=B(e,n);if(!t)return null;let{token:i,namespace:o}=t;return{name:i.value,rawName:e.slice(n,i.end),namespace:o,end:i.end}}function ee(e,n){let t=/^(?:"((?:\\\\[\\s\\S]|[^"\\\\])*)"|\'((?:\\\\[\\s\\S]|[^\'\\\\])*)\')/.exec(e.slice(n));return t?{value:X(t[1]??t[2]),end:n+t[0].length}:h(e,n)}function ne(e,n){let t=A(e,n),i=h(e,t);if(i){if(!/^[is]$/i.test(i.value))return null;t=A(e,i.end)}return e[t]!=="]"||t!==e.length-1?null:{flag:i?.value}}function F(e){let n=K(e);if(!n)return null;let t=A(e,n.end),o=["=","~=","|=","^=","$=","*="].find(d=>e.startsWith(d,t));if(!o)return null;let a=ee(e,A(e,t+o.length));if(!a)return null;let u=ne(e,a.end);return u?{name:n.name,rawName:n.rawName,namespace:n.namespace,operator:o,value:a.value,flag:u.flag}:null}function E(e,n){return e.replace(W,t=>t.startsWith("[")?n(t):t)}var re="data-hf-svg-reference-aliases";function O(e,n,t,i){let o={"=":(s,r)=>s===r,"~=":(s,r)=>s.split(/[ \\t\\r\\n\\f]+/).includes(r),"|=":(s,r)=>s===r||s.startsWith(r+"-"),"^=":(s,r)=>s.startsWith(r),"$=":(s,r)=>s.endsWith(r),"*=":(s,r)=>s.includes(r)},a=(s,r,l)=>!r&&l!=="="&&l!=="|="?!1:o[l](s,r),u=s=>s.replace(/[A-Z]/g,r=>r.toLowerCase()),d=s=>{let r=F(s);if(!r)return s;let{name:l,rawName:g,namespace:m,operator:b,value:D,flag:w}=r;if(m.kind==="named"!=(i!==void 0))return s;let x=w?.toLowerCase()==="i"?u:S=>S,L=u(l),P=t.filter(S=>{let V=m.kind==="none"?S.name:S.localName,U=m.kind==="named"?i.get(m.prefix):null;return(m.kind==="any"||S.namespaceURI===U)&&u(V)===L}),v=new Set([s]);for(let S of P)a(x(S.before),x(D),b)&&v.add(`[${g}="${N(S.after)}"${w?` ${w}`:""}]`);return v.size===1?s:`:is(${[...v].join(", ")})`};if(i)return E(e,d);let p=new Map(n.map(({id:s,replacement:r})=>[s,r])),f=new Map;for(let s of t){if(s.name!=="id"||s.before===s.after||p.has(s.before))continue;let r=f.get(s.before);r||(r=new Set([`#${k(s.before)}`]),f.set(s.before,r)),r.add(`#${k(s.after)}`)}for(let[s,r]of f)p.set(s,`:is(${[...r].join(", ")})`);let c=q(e,[...p.keys()],s=>p.get(s));return E(c,d)}function se(e,n,t=!0){let i=[],a=(t?[...e.querySelectorAll(`[${n}]`)]:[]).map(d=>d.getAttribute(n)),u=e.getAttribute?.(n);u&&a.unshift(u);for(let d of a){let p;try{p=JSON.parse(d)}catch{continue}if(!Array.isArray(p))continue;let f=p;for(let c of f){if(!ie(c))continue;let{name:s,localName:r,namespaceURI:l,before:g,after:m}=c;i.push({name:s,localName:r,namespaceURI:l,before:g,after:m})}}return i}function ie(e){if(!e||typeof e!="object")return!1;let{name:n,localName:t,namespaceURI:i,before:o,after:a}=e;return typeof n=="string"&&typeof t=="string"&&(i===null||typeof i=="string")&&typeof o=="string"&&typeof a=="string"}function oe(e){let n=[],t=[],i=!1,o,a=new WeakMap,u=(f,c)=>{for(let s of f){if("selectorText"in s){let r=s,l=a.get(r),g=r.selectorText,m=l?.applied===g?l.authored:g,b=O(m,[],t,c);b!==g&&(r.selectorText=b),b===m?a.delete(r):a.set(r,{authored:m,applied:r.selectorText})}"cssRules"in s&&u(s.cssRules,c)}},d=()=>{if(t.length)for(let f of e.document.styleSheets){let c;try{c=f.cssRules}catch{continue}let s=new Map;for(let r of c){if(!("namespaceURI"in r))continue;let{prefix:l,namespaceURI:g}=r;l&&s.set(l,g||null)}s.size&&u(c,s)}},p={rewrite:(f,c=[])=>{if(typeof f!="string"||!f.includes("#")&&!f.includes("["))return f;let s=O(f,c.length?[...c,...n]:n,t);if(s!==f){if(!o){let r=e.document.createElement("div");o=r.matches.bind(r)}o(f)}return s},refresh(){t=se(e.document,re).filter(r=>r.before!==r.after);let f=new Set(t.filter(r=>r.name==="id").map(r=>r.before)),c=new Set;n=[];for(let r of e.document.querySelectorAll("[data-hf-authored-id][id]")){let l=r.getAttribute("data-hf-authored-id");if(!l||l===r.id||c.has(l)||f.has(l))continue;c.add(l);let g=N(l);n.push({id:l,replacement:`:is(#${k(l)}, [data-hf-authored-id="${g}"])`})}if(d(),i||!n.length&&!t.length)return;let s=e.Element.prototype;s.querySelector=new Proxy(s.querySelector,{apply(r,l,g){return Reflect.apply(r,l,[p.rewrite(g[0])])}}),s.querySelectorAll=new Proxy(s.querySelectorAll,{apply(r,l,g){return Reflect.apply(r,l,[p.rewrite(g[0])])}}),i=!0}};e.__hfSvgSelectorAliases=p,p.refresh()}function M(){let e=window;e.__hfSvgSelectorAliases||oe(e)}M();})();\n';
@@ -880,10 +881,8 @@ function wrapScopedCompositionScript(source, compositionId, errorLabel = "[Hyper
880
881
  if (prop !== __hfCompId) {
881
882
  return Reflect.get(target, prop, target);
882
883
  }
883
- var authoredValue = Reflect.get(target, prop, target);
884
- return authoredValue === undefined
885
- ? Reflect.get(target, __hfTimelineCompId, target)
886
- : authoredValue;
884
+ var runtimeValue = Reflect.get(target, __hfTimelineCompId, target);
885
+ return runtimeValue === undefined ? Reflect.get(target, prop, target) : runtimeValue;
887
886
  },
888
887
  set: function(target, prop, value, receiver) {
889
888
  if (prop !== __hfCompId) {
@@ -891,11 +890,15 @@ function wrapScopedCompositionScript(source, compositionId, errorLabel = "[Hyper
891
890
  }
892
891
  // The authored node remains in the compiled DOM when its local id
893
892
  // differs from the runtime mount id, so readiness legitimately sees
894
- // both compositions. Publish the same timeline under both identities
895
- // instead of replacing one with the other.
896
- var authoredSet = Reflect.set(target, __hfCompId, value, target);
893
+ // both compositions. Publish the same timeline under both identities,
894
+ // unless another mount of the same file already owns the authored one.
895
+ var authoredValue = Reflect.get(target, __hfCompId, target);
896
+ var ownsAuthored =
897
+ authoredValue === undefined ||
898
+ authoredValue === Reflect.get(target, __hfTimelineCompId, target);
897
899
  var runtimeSet = Reflect.set(target, __hfTimelineCompId, value, target);
898
- return authoredSet && runtimeSet;
900
+ if (!ownsAuthored) return runtimeSet;
901
+ return Reflect.set(target, __hfCompId, value, target) && runtimeSet;
899
902
  },
900
903
  });
901
904
  }
@@ -2257,6 +2260,7 @@ function countBundledAuthoredCompositionIds(hosts) {
2257
2260
  continue;
2258
2261
  counts.set(authoredCompositionId, (counts.get(authoredCompositionId) || 0) + 1);
2259
2262
  }
2263
+ countPageRoot(counts, hosts);
2260
2264
  return counts;
2261
2265
  }
2262
2266
  function assignBundledRuntimeCompositionIds(hosts, counts = countBundledAuthoredCompositionIds(hosts)) {
@@ -2415,7 +2419,7 @@ function pushRun(runs, scene, chunk) {
2415
2419
  else
2416
2420
  runs.push({ scene, chunks: [chunk] });
2417
2421
  }
2418
- function coalesceHeadStylesAndBodyScripts(document, provenance) {
2422
+ async function coalesceHeadStylesAndBodyScripts(document, provenance) {
2419
2423
  const allHeadStyles = [...document.querySelectorAll("head style")];
2420
2424
  const isScenePart = (el) => el.hasAttribute(SCENE_PART_ATTR);
2421
2425
  for (const run of allHeadStyles.length > 1 ? headStyleRuns(allHeadStyles, isScenePart) : []) {
@@ -2433,7 +2437,7 @@ function coalesceHeadStylesAndBodyScripts(document, provenance) {
2433
2437
  const mergedJs = joinJsChunks(members.map((el) => el.textContent || ""));
2434
2438
  if (mergedJs && !parsesAsScript(mergedJs)) {
2435
2439
  for (const el of members)
2436
- el.textContent = inlineScriptSource(el.textContent || "", provenance);
2440
+ el.textContent = await inlineScriptSource(el.textContent || "", provenance);
2437
2441
  continue;
2438
2442
  }
2439
2443
  for (const el of members)
@@ -2441,7 +2445,7 @@ function coalesceHeadStylesAndBodyScripts(document, provenance) {
2441
2445
  if (!mergedJs)
2442
2446
  continue;
2443
2447
  const inlineScript = document.createElement("script");
2444
- inlineScript.textContent = inlineScriptSource(mergedJs, provenance);
2448
+ inlineScript.textContent = await inlineScriptSource(mergedJs, provenance);
2445
2449
  if (anchor)
2446
2450
  anchor.before(inlineScript);
2447
2451
  else
@@ -2470,11 +2474,11 @@ function parsesAsScript(source) {
2470
2474
  return false;
2471
2475
  }
2472
2476
  }
2473
- function stripJsCommentsParserSafe(source, provenance) {
2477
+ async function stripJsCommentsParserSafe(source, provenance) {
2474
2478
  if (!source)
2475
2479
  return source;
2476
2480
  try {
2477
- const result = transformSync(source, {
2481
+ const result = await transform(source, {
2478
2482
  loader: "js",
2479
2483
  minify: false,
2480
2484
  legalComments: "none",
@@ -2491,8 +2495,8 @@ function stripJsCommentsParserSafe(source, provenance) {
2491
2495
  return source;
2492
2496
  }
2493
2497
  }
2494
- function inlineScriptSource(js, provenance) {
2495
- return escapeInlineScriptSource(stripJsCommentsParserSafe(js, provenance));
2498
+ async function inlineScriptSource(js, provenance) {
2499
+ return escapeInlineScriptSource(await stripJsCommentsParserSafe(js, provenance));
2496
2500
  }
2497
2501
  function preserveLocalScriptIntegrity(doc, src, resolvePath) {
2498
2502
  const path = resolvePath(src);
@@ -2822,7 +2826,7 @@ async function bundleProject(projectDir, options) {
2822
2826
  const script = document.createElement("script");
2823
2827
  if (scene)
2824
2828
  script.setAttribute(SCENE_PART_ATTR, scene);
2825
- script.textContent = skipsRunMerge ? inlineScriptSource(text, options?.scriptProvenance) : text;
2829
+ script.textContent = skipsRunMerge ? await inlineScriptSource(text, options?.scriptProvenance) : text;
2826
2830
  document.body.appendChild(script);
2827
2831
  }
2828
2832
  }
@@ -2830,10 +2834,10 @@ async function bundleProject(projectDir, options) {
2830
2834
  emitRootCompositionVariableStyles(document, compVariablesByComp);
2831
2835
  enforceCompositionPixelSizing(document);
2832
2836
  autoHealMissingCompositionIds(document);
2833
- coalesceHeadStylesAndBodyScripts(document, options?.scriptProvenance);
2837
+ await coalesceHeadStylesAndBodyScripts(document, options?.scriptProvenance);
2834
2838
  for (const el of document.querySelectorAll(`script[${INLINED_FILE_ATTR}]`)) {
2835
2839
  const js = el.textContent ?? "";
2836
- el.textContent = escapeInlineScriptSource(isJavaScriptType(el) ? stripJsCommentsParserSafe(js, options?.scriptProvenance) : js);
2840
+ el.textContent = escapeInlineScriptSource(isJavaScriptType(el) ? await stripJsCommentsParserSafe(js, options?.scriptProvenance) : js);
2837
2841
  }
2838
2842
  deferScriptsUntilFonts(document, (el) => el.hasAttribute(RUNTIME_BOOTSTRAP_ATTR));
2839
2843
  injectTextRenderingRule(document);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-V652CBKA.js";
12
+ } from "./chunk-YTZA25TZ.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-PBN6GBJE.js";
@@ -20,7 +20,7 @@ import {
20
20
  SDR_RGB_TO_BT709_FILTER,
21
21
  SDR_RGB_TO_TAGGED_BT709_FILTER,
22
22
  renderProvenanceArgs
23
- } from "./chunk-BSXI5VWK.js";
23
+ } from "./chunk-CAHSX6IW.js";
24
24
 
25
25
  // src/background-removal/pipeline.ts
26
26
  import { spawn } from "child_process";
@@ -270,7 +270,7 @@ function inferInputKind(inputPath) {
270
270
  }
271
271
  async function probeMedia(inputPath) {
272
272
  const isImage = inferInputKind(inputPath) === "image";
273
- const engine = await import("./src-DG7XW5WW.js");
273
+ const engine = await import("./src-5XO7KBBL.js");
274
274
  const meta = await engine.extractMediaMetadata(inputPath);
275
275
  if (isImage) {
276
276
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-WC6QG6WU.js";
10
+ } from "./chunk-5VGEWXJL.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -4,17 +4,17 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
- import {
8
- EMBEDDED_FONT_DATA
9
- } from "./chunk-FI4I7CME.js";
10
7
  import {
11
8
  SYSTEM_FONT_SIZE_LIMIT,
12
9
  locateSystemFontVariants
13
10
  } from "./chunk-TJSTGSAW.js";
11
+ import {
12
+ EMBEDDED_FONT_DATA
13
+ } from "./chunk-FI4I7CME.js";
14
14
  import {
15
15
  FONT_ALIAS_MAP,
16
16
  resolveAliasDisplayName
17
- } from "./chunk-ALLKNYC3.js";
17
+ } from "./chunk-YMS5FOMC.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-SDYDNHEE.js";
@@ -10,20 +10,21 @@ import {
10
10
  seekCompositionTimeline,
11
11
  waitForCompositionFonts,
12
12
  waitForRuntimeReady
13
- } from "./chunk-L7PJO2A4.js";
13
+ } from "./chunk-EW2QBTYO.js";
14
14
  import {
15
+ gotoWhenSent,
15
16
  launchManagedBrowser,
16
17
  resolveManagedGpuMode
17
- } from "./chunk-FLTPIUGU.js";
18
+ } from "./chunk-UWQL2MP4.js";
18
19
  import {
19
20
  resolveDiagnosticNavigationTimeoutMs
20
- } from "./chunk-GDJGBAV6.js";
21
+ } from "./chunk-BTCUP5ZY.js";
21
22
  import {
22
23
  resolveProject
23
- } from "./chunk-ATF6UESJ.js";
24
+ } from "./chunk-LGCHE2F4.js";
24
25
  import {
25
26
  serveStaticProjectHtml
26
- } from "./chunk-CABYCNUK.js";
27
+ } from "./chunk-EKEK3GOB.js";
27
28
  import {
28
29
  defineCommand
29
30
  } from "./chunk-S3S4TGEH.js";
@@ -37,7 +38,7 @@ import {
37
38
  import {
38
39
  printDeprecationNotice,
39
40
  withMeta
40
- } from "./chunk-ZIL7S3L6.js";
41
+ } from "./chunk-O7BABHM4.js";
41
42
  import {
42
43
  normalizeErrorMessage
43
44
  } from "./chunk-KNU5COPB.js";
@@ -708,7 +709,7 @@ async function collectTweenBoundaries(page) {
708
709
  });
709
710
  }
710
711
  async function bundleProjectHtml(projectDir) {
711
- const { bundleToSingleHtml } = await import("./compiler-VQ7QYOSB.js");
712
+ const { bundleToSingleHtml } = await import("./compiler-OSQ4L7FP.js");
712
713
  return bundleToSingleHtml(projectDir);
713
714
  }
714
715
  async function alignViewportToComposition(page, url) {
@@ -722,21 +723,18 @@ async function alignViewportToComposition(page, url) {
722
723
  };
723
724
  });
724
725
  await page.setViewport(size);
725
- await page.goto(url, {
726
- waitUntil: "domcontentloaded",
727
- timeout: resolveDiagnosticNavigationTimeoutMs()
728
- });
726
+ await gotoWhenSent(page, url, resolveDiagnosticNavigationTimeoutMs());
729
727
  }
730
728
  async function runLayoutAudit(projectDir, opts) {
731
729
  const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
732
730
  const puppeteer = await import("puppeteer-core");
733
- const { buildChromeArgs } = await import("./src-DG7XW5WW.js");
731
+ const { buildChromeArgs } = await import("./src-5XO7KBBL.js");
734
732
  const {
735
733
  assertWebGpuAdapterAvailable,
736
734
  compositionRequiresWebGpu,
737
735
  resolveLocalBrowserGpuMode,
738
736
  resolveLocalWebGpu
739
- } = await import("./gpuPolicy-4YD2BS3P.js");
737
+ } = await import("./gpuPolicy-CHXUX2ZT.js");
740
738
  const html = await bundleProjectHtml(projectDir);
741
739
  const server = await serveStaticProjectHtml(
742
740
  projectDir,
@@ -761,10 +759,7 @@ async function runLayoutAudit(projectDir, opts) {
761
759
  const page = await chromeBrowser.newPage();
762
760
  await installPageFunctionGuard(page);
763
761
  await page.setViewport({ width: 1920, height: 1080 });
764
- await page.goto(server.url, {
765
- waitUntil: "domcontentloaded",
766
- timeout: resolveDiagnosticNavigationTimeoutMs()
767
- });
762
+ await gotoWhenSent(page, server.url, resolveDiagnosticNavigationTimeoutMs());
768
763
  await assertWebGpuAdapterAvailable(page, requiresWebGpu, softwareWebGpu);
769
764
  await alignViewportToComposition(page, server.url);
770
765
  await waitForRuntimeReady(page, opts.timeout);
@@ -1106,6 +1101,7 @@ export {
1106
1101
  buildLayoutSampleTimes,
1107
1102
  formatLayoutIssue,
1108
1103
  dedupeLayoutIssues,
1104
+ CONTENT_OVERLAP_HELD_ERROR_MS,
1109
1105
  collapseStaticLayoutIssues,
1110
1106
  longestContiguousRunMs,
1111
1107
  limitLayoutIssues,
@@ -6,21 +6,21 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-PORNXOQP.js";
9
+ } from "./chunk-LZGRJDNJ.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-WC6QG6WU.js";
15
+ } from "./chunk-5VGEWXJL.js";
16
16
  import {
17
17
  initialModelForLanguage,
18
18
  transcribe
19
- } from "./chunk-HLCB2VAN.js";
19
+ } from "./chunk-BV2NH7ZA.js";
20
20
  import {
21
21
  createRenderCancellationScope,
22
22
  stoppedByCancelSignal
23
- } from "./chunk-KX4VIWIV.js";
23
+ } from "./chunk-ATOXD5VV.js";
24
24
  import {
25
25
  formatSrt,
26
26
  formatVtt,