hyperframes 0.8.91 → 0.8.93

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 (150) hide show
  1. package/dist/{add-LM5QLN3C.js → add-7LS2QQ6L.js} +16 -16
  2. package/dist/{animatedGifPrep-K4JXNDVB.js → animatedGifPrep-7D3MGQ42.js} +6 -6
  3. package/dist/{asset-N2ZCF3TF.js → asset-4NM26SQV.js} +2 -2
  4. package/dist/{assetCataloger-CDEJC5QV.js → assetCataloger-NRRCL7WS.js} +2 -2
  5. package/dist/{auth-M6RIGSOA.js → auth-BUJUFGR6.js} +2 -2
  6. package/dist/{autoUpdate-HPWJQCEJ.js → autoUpdate-6NPS5SJW.js} +2 -2
  7. package/dist/{backgroundChecks-7FNAVAWS.js → backgroundChecks-Q5T3GWYG.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{batchRender-OWCX3WI4.js → batchRender-3D2ZQPWR.js} +3 -3
  10. package/dist/{beats-TBRZUL5C.js → beats-R4U6WIWB.js} +10 -10
  11. package/dist/{benchmark-4RGMJGVD.js → benchmark-NIOF3ZEJ.js} +12 -12
  12. package/dist/{browser-4MZ5CLY7.js → browser-RWXUIKMF.js} +9 -9
  13. package/dist/{bundleWithLocalizedFonts-6FJV5ME2.js → bundleWithLocalizedFonts-3TCTDAIU.js} +2 -2
  14. package/dist/{capture-ZMZFCHW4.js → capture-NLSDM7LC.js} +2 -2
  15. package/dist/{capture-QM2JRH7T.js → capture-WFZ23V3T.js} +7 -7
  16. package/dist/{catalog-LWYAH2MC.js → catalog-ZVQRXEWL.js} +16 -16
  17. package/dist/{check-5CTGRHDC.js → check-SP7SR5P4.js} +30 -30
  18. package/dist/{checkBrowser-LPKPYD4J.js → checkBrowser-SVUSXZYY.js} +29 -29
  19. package/dist/{chunk-BYZZCZ2K.js → chunk-3HUOMZ4E.js} +4 -4
  20. package/dist/{chunk-RZYPG4LH.js → chunk-3TXAC7Z4.js} +1 -1
  21. package/dist/{chunk-SZ2NP7UV.js → chunk-6OJFDKII.js} +1 -1
  22. package/dist/{chunk-AWMMV65H.js → chunk-76PJ3XXD.js} +2 -2
  23. package/dist/{chunk-CWAZA6DG.js → chunk-7KYQYLIB.js} +1 -1
  24. package/dist/{chunk-S6YCUTNM.js → chunk-7V7DABTV.js} +3 -3
  25. package/dist/{chunk-PRPE3JNB.js → chunk-B2ZUMOL4.js} +1 -1
  26. package/dist/{chunk-WA7RZY3S.js → chunk-D7CAHHOA.js} +3 -3
  27. package/dist/chunk-DLTFIQGY.js +3528 -0
  28. package/dist/{chunk-325EA5ST.js → chunk-EP3EEWZI.js} +3 -3
  29. package/dist/{chunk-DJD2XA6I.js → chunk-ETCTWRUN.js} +3 -3
  30. package/dist/{chunk-MISDKW56.js → chunk-G3BRGMJO.js} +2 -2
  31. package/dist/{chunk-MFXTKG6F.js → chunk-GFW2LHGL.js} +4 -4
  32. package/dist/{chunk-TJB5VU5L.js → chunk-HPKN43TE.js} +35 -42
  33. package/dist/{chunk-P67KXZGX.js → chunk-HPO32EKG.js} +4 -4
  34. package/dist/{chunk-V5Z3QGG2.js → chunk-I7E34KNJ.js} +1 -1
  35. package/dist/{chunk-J5LICYQR.js → chunk-IE6UDJKU.js} +1 -1
  36. package/dist/{chunk-LXRB4VUU.js → chunk-IWB2MMBN.js} +9 -9
  37. package/dist/{chunk-NAAXO3N5.js → chunk-JRVIFHRS.js} +3 -3
  38. package/dist/{chunk-G5CORT4V.js → chunk-KFS4HN57.js} +1 -1
  39. package/dist/{chunk-VDLFGW4J.js → chunk-KNVRGZDF.js} +74 -63
  40. package/dist/{chunk-U24VGXGA.js → chunk-KVA65K7M.js} +39 -10
  41. package/dist/{chunk-DHD3AEXF.js → chunk-KZP6DMO5.js} +3 -3
  42. package/dist/{chunk-CXPRQS6R.js → chunk-LETJ7PJN.js} +2 -2
  43. package/dist/{chunk-BP3M6JPK.js → chunk-MLBD4Z4R.js} +1 -1
  44. package/dist/{chunk-UMBXSPYI.js → chunk-MLX624TS.js} +1 -1
  45. package/dist/{chunk-E2FAYCAL.js → chunk-OVU5R4YO.js} +8 -8
  46. package/dist/{chunk-6TNEX275.js → chunk-QDQ3EQB3.js} +1 -1
  47. package/dist/{chunk-AUGLU6WA.js → chunk-QGSDMD6D.js} +2 -2
  48. package/dist/{chunk-FFPYON3V.js → chunk-R5FFOGN3.js} +1 -1
  49. package/dist/{chunk-4MQQI2II.js → chunk-R7VMR5LG.js} +1 -1
  50. package/dist/{chunk-HSGHPWA2.js → chunk-RL3JZNAC.js} +3 -3
  51. package/dist/{chunk-SNHAPE52.js → chunk-RSF6XVMY.js} +114 -62
  52. package/dist/{chunk-Z6Z7KGEU.js → chunk-STK4L54N.js} +1 -1
  53. package/dist/{chunk-CALFK3EB.js → chunk-TDUX3BOR.js} +1 -1
  54. package/dist/{chunk-UNZOL3UD.js → chunk-U246SUO5.js} +3 -3
  55. package/dist/{chunk-SUYIGLDN.js → chunk-UTX7CIZ2.js} +1 -1
  56. package/dist/{chunk-SSMNR7NU.js → chunk-VD63KDUA.js} +2 -2
  57. package/dist/{chunk-CPDR5AI7.js → chunk-VMYXJ63Z.js} +5 -5
  58. package/dist/{chunk-CC5HTRDE.js → chunk-W3CTWAWY.js} +1 -1
  59. package/dist/{chunk-HEMH55SZ.js → chunk-XWXWG5EI.js} +8 -8
  60. package/dist/{chunk-2QTVED47.js → chunk-Z34ILQNE.js} +1 -1
  61. package/dist/{chunk-RGHVO2UZ.js → chunk-ZQ7P6NVA.js} +1 -1
  62. package/dist/{clean-Z3SYXU27.js → clean-XBQPSMAH.js} +14 -14
  63. package/dist/cli.js +50 -50
  64. package/dist/{cloud-DN2FSGEN.js → cloud-LKKYUY7X.js} +4 -4
  65. package/dist/{cloudrun-XRZZV4QW.js → cloudrun-5OFRKB3B.js} +3 -3
  66. package/dist/{compare-SXN42PJF.js → compare-5BPMBMIY.js} +24 -24
  67. package/dist/{compiler-JKWKLSX6.js → compiler-DVQFNLFD.js} +13 -3
  68. package/dist/{component-WK3MMT5D.js → component-MRNQ5PWV.js} +3 -3
  69. package/dist/{compositions-XRJ2DDV3.js → compositions-HWXMHJRW.js} +17 -15
  70. package/dist/{delete-AM732KQJ.js → delete-AMJ3AKV5.js} +2 -2
  71. package/dist/{dist-GFYJLCSU.js → dist-EKWUQCHJ.js} +2 -2
  72. package/dist/{dist-5Q62YHZI.js → dist-HJFL4ZN5.js} +1 -1
  73. package/dist/{doctor-YQDGYTQM.js → doctor-7WKOSWTC.js} +10 -10
  74. package/dist/{events-APLXVZ3I.js → events-GHELUQQX.js} +9 -9
  75. package/dist/{events-HKIWOY7W.js → events-YGSESZGZ.js} +8 -8
  76. package/dist/{feedback-JNJURFQW.js → feedback-SA66Z7MD.js} +10 -10
  77. package/dist/{figma-WLQBX4IF.js → figma-G626S6F7.js} +3 -3
  78. package/dist/fontLocalizeCli.js +8 -8
  79. package/dist/{get-EZ5QWZNN.js → get-LWSRRR2H.js} +2 -2
  80. package/dist/{gpuPolicy-HQG5D4W4.js → gpuPolicy-ECZ5VNIV.js} +6 -6
  81. package/dist/{grade-compare-CNJBF5FD.js → grade-compare-WRCJVCEH.js} +24 -24
  82. package/dist/{help-GOIEXCCA.js → help-4QCYKJ4H.js} +1 -1
  83. package/dist/{history-XRSETYAE.js → history-R6V6B7ZE.js} +14 -14
  84. package/dist/hyperframe-runtime.js +54 -54
  85. package/dist/hyperframe.manifest.json +1 -1
  86. package/dist/hyperframe.runtime.iife.js +54 -54
  87. package/dist/hyperframes-player.global.js +3 -3
  88. package/dist/{info-3XSV2EFP.js → info-JLK54QZY.js} +11 -11
  89. package/dist/{init-B6524UHY.js → init-X4BVLJIR.js} +21 -21
  90. package/dist/{inspect-CQX6K5ET.js → inspect-X5XEHDTX.js} +25 -25
  91. package/dist/{installer-QU2LANZ7.js → installer-GZCC7TWB.js} +5 -5
  92. package/dist/{keyframes-HRCYZ6R2.js → keyframes-O27FGC4L.js} +22 -17
  93. package/dist/{lambda-RIEGJXBT.js → lambda-22PSG5BY.js} +4 -4
  94. package/dist/{layout-7ZNC3OWA.js → layout-QTW2UNAY.js} +25 -25
  95. package/dist/{lint-IAKBWR3G.js → lint-K5XXEEHQ.js} +12 -12
  96. package/dist/{lintProject-OUOTD5DS.js → lintProject-ESEUOGXF.js} +1 -1
  97. package/dist/{list-NSVU5YDL.js → list-N6V4JELC.js} +2 -2
  98. package/dist/{login-Q76SF3KL.js → login-S2TQQQBD.js} +4 -4
  99. package/dist/{media-treatment-F5GZ4KOP.js → media-treatment-ZTIIMUHF.js} +12 -12
  100. package/dist/{models-4SDFED6C.js → models-KXL5MTSY.js} +7 -7
  101. package/dist/{motionShot-SY4RU6U5.js → motionShot-22LPTPUE.js} +10 -10
  102. package/dist/{normalize-audio-7HUEZIUZ.js → normalize-audio-42D3NFK7.js} +10 -10
  103. package/dist/{pipeline-2HIV4Y7G.js → pipeline-GVMCYMS3.js} +6 -6
  104. package/dist/{play-4YRL4KOS.js → play-5QSSQ4OA.js} +20 -20
  105. package/dist/{preflight-IY4NAUE4.js → preflight-2P4GJM2O.js} +7 -7
  106. package/dist/{present-6MFRVEM6.js → present-I6F6UQCA.js} +15 -15
  107. package/dist/{preview-AHQURXOT.js → preview-X23PO5Y3.js} +18 -18
  108. package/dist/{producer-QCLJ24EY.js → producer-L6B7ZRJU.js} +1 -1
  109. package/dist/{projectConfig-EJV3KBCO.js → projectConfig-SQK4TIWK.js} +7 -7
  110. package/dist/{publication-4MXCWAAF.js → publication-RMAQBAWV.js} +3 -3
  111. package/dist/{publish-Y5XULKT3.js → publish-SKO6SL37.js} +9 -9
  112. package/dist/{remove-background-MZLVZJDP.js → remove-background-CKW4WV7L.js} +7 -7
  113. package/dist/{render-3SPC22N3.js → render-KDFFXWBL.js} +22 -22
  114. package/dist/{render-I6BBYGK4.js → render-QXUUZSDZ.js} +3 -3
  115. package/dist/{render-FMD7UKEI.js → render-W75Z3BFW.js} +12 -12
  116. package/dist/{render-batch-YOLPHNBE.js → render-batch-4BN3IBY5.js} +3 -3
  117. package/dist/{renderCancellation-OKZ2OSKI.js → renderCancellation-77XGIZ6Y.js} +6 -6
  118. package/dist/renderSetupWorker.js +1 -1
  119. package/dist/{resolver-4MDVOI4J.js → resolver-HNEYA7ON.js} +5 -5
  120. package/dist/{sherpa-XU2H4MTL.js → sherpa-T3XMKR6F.js} +7 -7
  121. package/dist/{skills-XOUE2DXY.js → skills-7QL34XLO.js} +11 -11
  122. package/dist/{skillsUpdateCheck-J43BUUXQ.js → skillsUpdateCheck-OICX25ZU.js} +3 -3
  123. package/dist/{snapshot-EMF7KGSM.js → snapshot-IEITWXCU.js} +25 -25
  124. package/dist/{src-SPJS4DVA.js → src-DOI33FRO.js} +7 -7
  125. package/dist/{src-5V3MJNPC.js → src-SK7AZD7J.js} +5 -5
  126. package/dist/{staticProjectServer-LKMDZ2DQ.js → staticProjectServer-ZHZPZO5H.js} +14 -14
  127. package/dist/{status-BIF2WXFE.js → status-LDACSUZZ.js} +6 -6
  128. package/dist/studio/assets/{hyperframes-player-zT2Bdx_l.js → hyperframes-player-CkV9KK6A.js} +3 -3
  129. package/dist/studio/assets/{index-DV-z19zB.js → index-BlLFipOk.js} +1 -1
  130. package/dist/studio/assets/{index-V-0rfhe6.js → index-CYk0NwSv.js} +165 -165
  131. package/dist/studio/assets/{index-DSOLcE8X.js → index-V3fzEfOD.js} +1 -1
  132. package/dist/studio/index.d.ts +6 -11
  133. package/dist/studio/index.html +1 -1
  134. package/dist/studio/index.js +8792 -8803
  135. package/dist/studio/index.js.map +1 -1
  136. package/dist/{studio-api-UT3W5AA6.js → studio-api-CPX2APMU.js} +7 -7
  137. package/dist/{studioServer-Y3RJUIQM.js → studioServer-KRROVQLD.js} +38 -38
  138. package/dist/{system-5ALLLQFH.js → system-OVGTI3QK.js} +6 -6
  139. package/dist/{telemetry-LTGWUJJT.js → telemetry-UEDBUEMN.js} +9 -9
  140. package/dist/{timeline-AA3LL6DL.js → timeline-JWQXALL3.js} +14 -14
  141. package/dist/{tokens-ROIWLZRY.js → tokens-KBD4AG3E.js} +2 -2
  142. package/dist/{transcribe-MWG54RBB.js → transcribe-7F26YQ3O.js} +7 -7
  143. package/dist/{transcribe-TMWKDHAI.js → transcribe-KKDNNMT7.js} +12 -12
  144. package/dist/{updateCheck-HF7VV7W4.js → updateCheck-HQUDO3ZR.js} +2 -2
  145. package/dist/{upgrade-3OAEBAEA.js → upgrade-UQIV2MMK.js} +2 -2
  146. package/dist/{urlDownloader-YNKW5OUO.js → urlDownloader-6373K4OU.js} +5 -5
  147. package/dist/{validate-ULWT5J56.js → validate-OAU4PW66.js} +15 -15
  148. package/dist/{video-2IYAAHHK.js → video-2IQNAIAW.js} +6 -6
  149. package/package.json +1 -1
  150. package/dist/chunk-275NJDC5.js +0 -3528
@@ -8,20 +8,20 @@ import {
8
8
  firstFrameColourArgs,
9
9
  hdrToSdrToneMapFilter,
10
10
  parseFirstFrameColour
11
- } from "./chunk-RGHVO2UZ.js";
11
+ } from "./chunk-ZQ7P6NVA.js";
12
12
  import {
13
13
  mkdirWithinProject,
14
14
  realProjectRoot,
15
15
  realpath,
16
16
  resolveWithinProject
17
- } from "./chunk-275NJDC5.js";
17
+ } from "./chunk-DLTFIQGY.js";
18
18
  import {
19
19
  cleanAssetUrl,
20
20
  isRemoteOrInlineUrl,
21
21
  isUnresolvedAssetPlaceholder,
22
22
  maskNonScannableRanges,
23
23
  resolveLocalAssetCandidates
24
- } from "./chunk-U24VGXGA.js";
24
+ } from "./chunk-KVA65K7M.js";
25
25
  import {
26
26
  findFfBinary
27
27
  } from "./chunk-PJ3HDUCY.js";
@@ -8,16 +8,16 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-WA7RZY3S.js";
11
+ } from "./chunk-D7CAHHOA.js";
12
12
  import {
13
13
  getPowerState
14
- } from "./chunk-PRPE3JNB.js";
14
+ } from "./chunk-B2ZUMOL4.js";
15
15
  import {
16
16
  CliRuntimeError
17
17
  } from "./chunk-PBN6GBJE.js";
18
18
  import {
19
19
  redactTelemetryString
20
- } from "./chunk-RGHVO2UZ.js";
20
+ } from "./chunk-ZQ7P6NVA.js";
21
21
  import {
22
22
  readConfig
23
23
  } from "./chunk-XUXGIA7H.js";
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-UMBXSPYI.js";
23
+ } from "./chunk-MLX624TS.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-S3S4TGEH.js";
@@ -221,7 +221,7 @@ var asset_default = defineCommand({
221
221
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
222
222
  );
223
223
  }
224
- const { trackFigmaImport } = await import("./telemetry-LTGWUJJT.js");
224
+ const { trackFigmaImport } = await import("./telemetry-UEDBUEMN.js");
225
225
  trackFigmaImport({
226
226
  phase: "asset",
227
227
  reused: results.every((r) => r.reused),
@@ -12,18 +12,18 @@ import {
12
12
  } from "./chunk-262C25DQ.js";
13
13
  import {
14
14
  resolveDiagnosticNavigationTimeoutMs
15
- } from "./chunk-V5Z3QGG2.js";
15
+ } from "./chunk-I7E34KNJ.js";
16
16
  import {
17
17
  resolveCaptureBrowserGpuMode,
18
18
  resolveLocalBrowserGpuMode
19
- } from "./chunk-2QTVED47.js";
19
+ } from "./chunk-Z34ILQNE.js";
20
20
  import {
21
21
  c
22
22
  } from "./chunk-ZTZA4UWZ.js";
23
23
  import {
24
24
  assertWebGpuAdapterAvailable,
25
25
  compositionRequiresWebGpu
26
- } from "./chunk-S6YCUTNM.js";
26
+ } from "./chunk-7V7DABTV.js";
27
27
  import {
28
28
  normalizeErrorMessage
29
29
  } from "./chunk-KNU5COPB.js";
@@ -99,7 +99,7 @@ async function openSettledCompositionPage(html, url, options) {
99
99
  const { ensureBrowser, findSystemBrowser } = await import("./manager-NEVLEZK3.js");
100
100
  const browser = await ensureBrowser();
101
101
  const puppeteer = await import("puppeteer-core");
102
- const { buildChromeArgs } = await import("./src-5V3MJNPC.js");
102
+ const { buildChromeArgs } = await import("./src-SK7AZD7J.js");
103
103
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
104
104
  const requiresWebGpu = compositionRequiresWebGpu(html);
105
105
  const launch = async (executablePath) => {
@@ -17,7 +17,7 @@ import {
17
17
  EncoderInterruptedError,
18
18
  encoderFailureError,
19
19
  prepareAnimatedGifInputs
20
- } from "./chunk-AWMMV65H.js";
20
+ } from "./chunk-76PJ3XXD.js";
21
21
  import {
22
22
  createStudioPositionSeekReapplyScript
23
23
  } from "./chunk-KC5XXX3X.js";
@@ -145,7 +145,7 @@ import {
145
145
  validateEngineConfigSnapshot,
146
146
  verifyDiskDrawElementSamples,
147
147
  writeCapturedFrame
148
- } from "./chunk-S6YCUTNM.js";
148
+ } from "./chunk-7V7DABTV.js";
149
149
  import {
150
150
  HF_VFX_ATTR,
151
151
  MEDIA_START_BASIS_ATTR,
@@ -162,7 +162,7 @@ import {
162
162
  resolveAbsoluteMediaStartSeconds,
163
163
  resolveAuthoredTimingWindow,
164
164
  toFps
165
- } from "./chunk-RGHVO2UZ.js";
165
+ } from "./chunk-ZQ7P6NVA.js";
166
166
  import {
167
167
  CANVAS_DIMENSIONS,
168
168
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -179,11 +179,14 @@ import {
179
179
  buildVariablesByCompScript,
180
180
  emitMountedModuleScripts,
181
181
  emitRootCompositionVariableStyles,
182
+ ensureExternalLinkTag,
182
183
  ensureExternalScriptTag,
184
+ headStyleRuns,
183
185
  inlineScriptRuns,
184
186
  inlineSubCompositions,
185
- prepareFlattenedInnerRoot
186
- } from "./chunk-SNHAPE52.js";
187
+ prepareFlattenedInnerRoot,
188
+ styleElementsFor
189
+ } from "./chunk-RSF6XVMY.js";
187
190
  import {
188
191
  HF_COLOR_GRADING_ATTR,
189
192
  MAX_AUDIO_GAIN,
@@ -204,15 +207,16 @@ import {
204
207
  resolveNaturalMediaTimelineDurationFromValues,
205
208
  shouldClampResolvedMediaDuration,
206
209
  sourceTimeAt
207
- } from "./chunk-275NJDC5.js";
210
+ } from "./chunk-DLTFIQGY.js";
208
211
  import {
209
212
  chromeMajorCeiling
210
213
  } from "./chunk-TWWSYAKJ.js";
211
214
  import {
212
215
  isUnresolvedAssetPlaceholder,
213
216
  lintHyperframeHtml,
217
+ readProjectFile,
214
218
  resolveProjectRelativeSrc
215
- } from "./chunk-U24VGXGA.js";
219
+ } from "./chunk-KVA65K7M.js";
216
220
  import {
217
221
  CSS_URL_RE,
218
222
  checkSubCompositionUsability,
@@ -5420,11 +5424,16 @@ function assertSubCompositionsUsable(html, projectDir, visited = /* @__PURE__ */
5420
5424
  if (isUnresolvedAssetPlaceholder(srcPath)) continue;
5421
5425
  const filePath = resolve5(projectDir, srcPath);
5422
5426
  if (visited.has(filePath)) continue;
5423
- if (!existsSync9(filePath)) {
5427
+ const read = readProjectFile(filePath);
5428
+ if (read.kind === "missing") {
5424
5429
  problems.push({ srcPath, detail: "the file does not exist" });
5425
5430
  continue;
5426
5431
  }
5427
- const fileHtml = readFileSync5(filePath, "utf-8");
5432
+ if (read.kind === "folder") {
5433
+ problems.push({ srcPath, detail: "it is a folder, not an HTML file" });
5434
+ continue;
5435
+ }
5436
+ const fileHtml = read.text;
5428
5437
  const validity = checkSubCompositionUsability(fileHtml, parseSubCompHtmlForValidity);
5429
5438
  if (!validity.ok) {
5430
5439
  problems.push({
@@ -5698,10 +5707,11 @@ async function parseSubCompositions(html, projectDir, downloadDir, visited = /*
5698
5707
  if (visited.has(filePath)) {
5699
5708
  continue;
5700
5709
  }
5701
- if (!existsSync9(filePath)) {
5710
+ const read = readProjectFile(filePath);
5711
+ if (read.kind !== "file") {
5702
5712
  continue;
5703
5713
  }
5704
- const rawSubHtml = readFileSync5(filePath, "utf-8");
5714
+ const rawSubHtml = read.text;
5705
5715
  const nestedVisited = new Set(visited);
5706
5716
  nestedVisited.add(filePath);
5707
5717
  workItems.push({ srcPath, filePath, rawSubHtml, nestedVisited });
@@ -5809,12 +5819,12 @@ function coalesceHeadStylesAndBodyScripts(html) {
5809
5819
  const body = document2.querySelector("body");
5810
5820
  if (!head) return html;
5811
5821
  const styleEls = Array.from(head.querySelectorAll("style"));
5812
- if (styleEls.length > 1) {
5813
- const importRe = /@import\s+url\([^)]*\)\s*;|@import\s+["'][^"']+["']\s*;/gi;
5822
+ const importRe = /@import\s+url\([^)]*\)\s*;|@import\s+["'][^"']+["']\s*;/gi;
5823
+ for (const run of styleEls.length > 1 ? headStyleRuns(styleEls) : []) {
5814
5824
  const imports = [];
5815
5825
  const cssParts = [];
5816
5826
  const seenImports = /* @__PURE__ */ new Set();
5817
- for (const el of styleEls) {
5827
+ for (const el of run) {
5818
5828
  const raw = (el.textContent || "").trim();
5819
5829
  if (!raw) continue;
5820
5830
  const nonImportCss = raw.replace(importRe, (match) => {
@@ -5829,14 +5839,9 @@ function coalesceHeadStylesAndBodyScripts(html) {
5829
5839
  if (trimmedCss) cssParts.push(trimmedCss);
5830
5840
  }
5831
5841
  const mergedCss = [...imports, ...cssParts].join("\n\n").trim();
5832
- if (mergedCss) {
5833
- const firstStyleEl = styleEls[0];
5834
- if (firstStyleEl) firstStyleEl.textContent = mergedCss;
5835
- for (let i = 1; i < styleEls.length; i++) {
5836
- const el = styleEls[i];
5837
- if (el) el.remove();
5838
- }
5839
- }
5842
+ if (!mergedCss) continue;
5843
+ run[0].textContent = mergedCss;
5844
+ for (const el of run.slice(1)) el.remove();
5840
5845
  }
5841
5846
  if (body) {
5842
5847
  for (const { members, anchor } of inlineScriptRuns(
@@ -5883,10 +5888,8 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
5883
5888
  resolveHtml: (srcPath) => {
5884
5889
  let compHtml = subCompositions.get(srcPath) || null;
5885
5890
  if (!compHtml) {
5886
- const filePath = resolve5(projectDir, srcPath);
5887
- if (existsSync9(filePath)) {
5888
- compHtml = readFileSync5(filePath, "utf-8");
5889
- }
5891
+ const read = readProjectFile(resolve5(projectDir, srcPath));
5892
+ if (read.kind === "file") compHtml = read.text;
5890
5893
  }
5891
5894
  return compHtml;
5892
5895
  },
@@ -5926,22 +5929,12 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
5926
5929
  }
5927
5930
  }
5928
5931
  }
5929
- if (result.externalLinks.length && head) {
5930
- for (const link of result.externalLinks) {
5931
- const escapedHref = link.href.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
5932
- if (document2.querySelector(`link[href="${escapedHref}"]`)) continue;
5933
- const el = document2.createElement("link");
5934
- el.setAttribute("rel", link.rel);
5935
- el.setAttribute("href", link.href);
5936
- if (link.crossorigin != null) el.setAttribute("crossorigin", link.crossorigin);
5937
- head.appendChild(el);
5932
+ if (head) for (const link of result.externalLinks) ensureExternalLinkTag(document2, link);
5933
+ if (head) {
5934
+ for (const style of styleElementsFor(document2, result.styles, (css) => css.join("\n\n"))) {
5935
+ head.appendChild(style);
5938
5936
  }
5939
5937
  }
5940
- if (result.styles.length && head) {
5941
- const styleEl = document2.createElement("style");
5942
- styleEl.textContent = result.styles.join("\n\n");
5943
- head.appendChild(styleEl);
5944
- }
5945
5938
  const isHoisted = (item) => Boolean(item.integrity?.trim()) || isNonRelativeUrl(item.src);
5946
5939
  if (body) {
5947
5940
  for (const item of result.scriptItems) {
@@ -14137,7 +14130,7 @@ function startServer(options = {}) {
14137
14130
  });
14138
14131
  async function shutdown(signal) {
14139
14132
  log.info(`Received ${signal}, shutting down`);
14140
- const { drainBrowserPool } = await import("./src-5V3MJNPC.js");
14133
+ const { drainBrowserPool } = await import("./src-SK7AZD7J.js");
14141
14134
  await drainBrowserPool().catch(() => {
14142
14135
  });
14143
14136
  const handle = await Promise.race([
@@ -15250,7 +15243,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
15250
15243
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
15251
15244
  if (probeResult.probeSession) {
15252
15245
  try {
15253
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-5V3MJNPC.js");
15246
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-SK7AZD7J.js");
15254
15247
  await closeCaptureSession2(probeResult.probeSession);
15255
15248
  } catch (err) {
15256
15249
  log.warn("[plan] probe session close failed", {
@@ -8,17 +8,17 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-HSGHPWA2.js";
11
+ } from "./chunk-RL3JZNAC.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
- } from "./chunk-4MQQI2II.js";
15
+ } from "./chunk-R7VMR5LG.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-RGHVO2UZ.js";
18
+ } from "./chunk-ZQ7P6NVA.js";
19
19
  import {
20
20
  realProjectRoot
21
- } from "./chunk-275NJDC5.js";
21
+ } from "./chunk-DLTFIQGY.js";
22
22
  import {
23
23
  isCompositionVariable
24
24
  } from "./chunk-HBBJFK6I.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PBN6GBJE.js";
16
16
  import {
17
17
  parseFps
18
- } from "./chunk-RGHVO2UZ.js";
18
+ } from "./chunk-ZQ7P6NVA.js";
19
19
 
20
20
  // src/utils/renderArgs.ts
21
21
  import { 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
  updateNoticesSuppressed
9
- } from "./chunk-CC5HTRDE.js";
9
+ } from "./chunk-W3CTWAWY.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -8,13 +8,13 @@ import {
8
8
  installPageFunctionGuard,
9
9
  resolveCliChromeGpuMode,
10
10
  seekCompositionTimeline
11
- } from "./chunk-MFXTKG6F.js";
11
+ } from "./chunk-GFW2LHGL.js";
12
12
  import {
13
13
  resolveCompositionViewportFromHtml
14
14
  } from "./chunk-5Z63TBTX.js";
15
15
  import {
16
16
  resolveProject
17
- } from "./chunk-SZ2NP7UV.js";
17
+ } from "./chunk-6OJFDKII.js";
18
18
  import {
19
19
  c
20
20
  } from "./chunk-ZTZA4UWZ.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  printDeprecationNotice,
30
30
  withMeta
31
- } from "./chunk-CC5HTRDE.js";
31
+ } from "./chunk-W3CTWAWY.js";
32
32
  import {
33
33
  normalizeErrorMessage
34
34
  } from "./chunk-KNU5COPB.js";
@@ -217,7 +217,7 @@ function extractCompositionErrorsFromLint(lintResult) {
217
217
  async function localizeRemoteAssets(html) {
218
218
  let dir;
219
219
  try {
220
- const { loadProducer } = await import("./producer-QCLJ24EY.js");
220
+ const { loadProducer } = await import("./producer-L6B7ZRJU.js");
221
221
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
222
222
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
223
223
  const assetDir = dir;
@@ -238,10 +238,10 @@ async function localizeRemoteAssets(html) {
238
238
  }
239
239
  async function validateInBrowser(project, opts) {
240
240
  const projectDir = project.dir;
241
- const { bundleToSingleHtml } = await import("./compiler-JKWKLSX6.js");
241
+ const { bundleToSingleHtml } = await import("./compiler-DVQFNLFD.js");
242
242
  const { ensureBrowser } = await import("./manager-NEVLEZK3.js");
243
- const { serveStaticProjectHtml } = await import("./staticProjectServer-LKMDZ2DQ.js");
244
- const { lintProject } = await import("./lintProject-OUOTD5DS.js");
243
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-ZHZPZO5H.js");
244
+ const { lintProject } = await import("./lintProject-ESEUOGXF.js");
245
245
  const lintResult = await lintProject(projectDir);
246
246
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
247
247
  const html = await bundleToSingleHtml(projectDir);
@@ -262,13 +262,13 @@ async function validateInBrowser(project, opts) {
262
262
  try {
263
263
  const browser = await ensureBrowser();
264
264
  const puppeteer = await import("puppeteer-core");
265
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-5V3MJNPC.js");
265
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-SK7AZD7J.js");
266
266
  const requestedGpuMode = resolveCliChromeGpuMode();
267
267
  const {
268
268
  assertWebGpuAdapterAvailable,
269
269
  compositionRequiresWebGpu,
270
270
  resolveCaptureBrowserGpuMode
271
- } = await import("./gpuPolicy-HQG5D4W4.js");
271
+ } = await import("./gpuPolicy-ECZ5VNIV.js");
272
272
  const resolvedGpuMode = await resolveCaptureBrowserGpuMode(
273
273
  requestedGpuMode,
274
274
  browser.executablePath
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-DJD2XA6I.js";
10
+ } from "./chunk-ETCTWRUN.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-WA7RZY3S.js";
13
+ } from "./chunk-D7CAHHOA.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
17
- } from "./chunk-U24VGXGA.js";
17
+ } from "./chunk-KVA65K7M.js";
18
18
 
19
19
  // src/telemetry/lintStreaks.ts
20
20
  import { createHash } from "crypto";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  formatVariableValidationIssue,
21
21
  validateVariables
22
- } from "./chunk-RGHVO2UZ.js";
22
+ } from "./chunk-ZQ7P6NVA.js";
23
23
  import {
24
24
  extractCompositionMetadata
25
25
  } from "./chunk-WFO4PSIZ.js";