hyperframes 0.8.212 → 0.8.214

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 (187) hide show
  1. package/dist/{add-JSM7YBQX.js → add-U2N4ZWNB.js} +12 -12
  2. package/dist/{agentPromptGenerator-NTPYCKOI.js → agentPromptGenerator-EK7NEFV6.js} +7 -7
  3. package/dist/{animatedGifPrep-XTK7UWXF.js → animatedGifPrep-X3FLFGCC.js} +7 -7
  4. package/dist/api.js +17 -17
  5. package/dist/{asset-SMY2EGPH.js → asset-3CSXQ7JI.js} +2 -2
  6. package/dist/{assetCataloger-CVPWY34W.js → assetCataloger-FG2VTSSR.js} +8 -8
  7. package/dist/{audio-Y4OYLTWN.js → audio-US7IUDFM.js} +309 -204
  8. package/dist/{auth-MDEHZR7R.js → auth-IMXNGPGR.js} +1 -1
  9. package/dist/{autoUpdate-3FL6EDPM.js → autoUpdate-IGZP5HIX.js} +2 -2
  10. package/dist/{backgroundChecks-A6TG2BT3.js → backgroundChecks-UGU6SRCU.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-K2PBRRTQ.js → batchRender-5JS4SAGR.js} +4 -4
  13. package/dist/{beats-RA6XK6J5.js → beats-2F7ZW7QB.js} +10 -10
  14. package/dist/{benchmark-EHU5O4PP.js → benchmark-Y25FBDO7.js} +9 -9
  15. package/dist/{browser-7RUIZT2H.js → browser-43AS35ZL.js} +3 -3
  16. package/dist/{bundleWithLocalizedFonts-O2U2FYY2.js → bundleWithLocalizedFonts-6VHTVRO3.js} +2 -2
  17. package/dist/{capture-77KDKKNK.js → capture-CMP4DHPY.js} +46 -17
  18. package/dist/{capture-JGYBORAG.js → capture-N5AMWY4S.js} +4 -4
  19. package/dist/{captureCompositionFrame-DZ7EHPZV.js → captureCompositionFrame-PQT4GNR2.js} +12 -12
  20. package/dist/{catalog-CUP3SYAI.js → catalog-SZPWUZ75.js} +12 -12
  21. package/dist/{catch-up-ZGUCWH5Q.js → catch-up-OYYHR2UB.js} +4 -4
  22. package/dist/{check-ITGFVBT6.js → check-MBW4AYV6.js} +38 -38
  23. package/dist/{checkAudio-CTLPD6YT.js → checkAudio-DIJNBWAF.js} +28 -13
  24. package/dist/{checkBrowser-G2N4JI6N.js → checkBrowser-NYBDUAT2.js} +32 -32
  25. package/dist/{chunk-VKD23SIO.js → chunk-245CC6JT.js} +1 -1
  26. package/dist/{chunk-UE4CXHMF.js → chunk-3AAAA3KH.js} +3 -3
  27. package/dist/{chunk-3JQ2YOKL.js → chunk-3ZNAP65U.js} +1 -1
  28. package/dist/{chunk-QUXWS5UG.js → chunk-4HMG5CQJ.js} +13 -6
  29. package/dist/{chunk-GVE6I5EL.js → chunk-4NJ57TSE.js} +13 -1
  30. package/dist/{chunk-RDZKBIEB.js → chunk-53ERMOK2.js} +2 -2
  31. package/dist/{chunk-YRO3PXWU.js → chunk-6CGYINE7.js} +97 -2
  32. package/dist/{chunk-V6OSE6VT.js → chunk-6UUPTWUG.js} +1 -1
  33. package/dist/{chunk-YVT5IU6J.js → chunk-7W4DJKZA.js} +9 -9
  34. package/dist/{chunk-DXPC7Z6L.js → chunk-7Y4TTOLE.js} +2 -2
  35. package/dist/{chunk-TPO32Z65.js → chunk-7YUYG6S6.js} +1 -1
  36. package/dist/{chunk-UXH6E5HC.js → chunk-A3ZRV44X.js} +2 -2
  37. package/dist/{chunk-P2VGMOX7.js → chunk-A7UJGIMA.js} +1 -1
  38. package/dist/{chunk-25MKZTRT.js → chunk-BRTWBGFE.js} +1 -1
  39. package/dist/{chunk-WVIH5BBZ.js → chunk-CATLCEDQ.js} +14 -14
  40. package/dist/{chunk-YACECUHX.js → chunk-DFQM3XMK.js} +3 -3
  41. package/dist/{chunk-2YDIEZSF.js → chunk-EJCCJTUH.js} +3 -3
  42. package/dist/{chunk-MX2GMAAW.js → chunk-ENV35BSH.js} +35 -24
  43. package/dist/chunk-FBQVRYMD.js +5061 -0
  44. package/dist/{chunk-7ZAVTGGT.js → chunk-FC6BAQV5.js} +9 -9
  45. package/dist/{chunk-EC77ZBCP.js → chunk-FI3JWR34.js} +1 -1
  46. package/dist/{chunk-UBUKKTNW.js → chunk-FQO3RV6O.js} +2 -2
  47. package/dist/{chunk-YX5ELTKV.js → chunk-G7CFMNRO.js} +2 -2
  48. package/dist/{chunk-BYRXSKIY.js → chunk-GFA5ZCVI.js} +332 -3
  49. package/dist/{chunk-W55BW7KA.js → chunk-GRCS7WRH.js} +10 -10
  50. package/dist/{chunk-RJILJ4OR.js → chunk-GSYZG4E7.js} +2 -2
  51. package/dist/{chunk-DVVTBVKA.js → chunk-GVHEOOGM.js} +8 -8
  52. package/dist/{chunk-J7GPSY5N.js → chunk-HNYTTRLR.js} +7 -7
  53. package/dist/{chunk-UYEZTK4U.js → chunk-HPTFD6MO.js} +10 -10
  54. package/dist/{chunk-T7KNW7PE.js → chunk-HQRI2NT3.js} +1 -1
  55. package/dist/{chunk-BLVHVXRU.js → chunk-HVQDDVN4.js} +3 -3
  56. package/dist/{chunk-N7XJHZ35.js → chunk-I5LDGNYX.js} +1 -1
  57. package/dist/{chunk-GQ724553.js → chunk-ISTUBRV3.js} +4 -4
  58. package/dist/{chunk-U46JEU26.js → chunk-JF3RF6GS.js} +4 -2
  59. package/dist/{chunk-Y3U7ECBH.js → chunk-JMSS47CW.js} +1 -1
  60. package/dist/{chunk-X4SBDDLS.js → chunk-KSC4O2RY.js} +4 -0
  61. package/dist/{chunk-W2VJTKIW.js → chunk-KSV2PMFA.js} +7 -7
  62. package/dist/{chunk-N3J2MLXC.js → chunk-LBS4AS7G.js} +2 -2
  63. package/dist/{chunk-OL5E4Y4L.js → chunk-LIOE46OG.js} +59 -27
  64. package/dist/{chunk-R5B6GXQM.js → chunk-LRYNDYAE.js} +1 -1
  65. package/dist/{chunk-5TQ4AEPF.js → chunk-LWWTOBZ6.js} +3 -3
  66. package/dist/{chunk-ORJY6Z6G.js → chunk-MGUA3DUS.js} +3 -3
  67. package/dist/{chunk-XEWMJWNW.js → chunk-MP7DZH5M.js} +2 -2
  68. package/dist/{chunk-XGXTZNES.js → chunk-MYDM4PQL.js} +3 -3
  69. package/dist/{chunk-RQC4PHO3.js → chunk-MZHYAXUV.js} +1 -1
  70. package/dist/{chunk-JLGVBK5M.js → chunk-N4XNRHFM.js} +18 -4
  71. package/dist/{chunk-NXDKBFEO.js → chunk-PT47MVXR.js} +13 -13
  72. package/dist/{chunk-SXTWQ7CH.js → chunk-QCCPXMKP.js} +5 -5
  73. package/dist/{chunk-MJCIAZSK.js → chunk-QL7ITOPE.js} +1 -1
  74. package/dist/{chunk-AJAXP4HF.js → chunk-S6WDNIUG.js} +1 -1
  75. package/dist/{chunk-3YBXKWAF.js → chunk-T6SMQ4L7.js} +1 -1
  76. package/dist/{chunk-JZNQQI5M.js → chunk-TNKPBI63.js} +5 -5
  77. package/dist/{chunk-ZCYSQ3NQ.js → chunk-TYMD647L.js} +3 -3
  78. package/dist/{chunk-HXZNCXQX.js → chunk-UBDO4EHA.js} +9 -0
  79. package/dist/{chunk-45JN2GIZ.js → chunk-UR6QODTY.js} +1 -1
  80. package/dist/{chunk-PW7FCVHR.js → chunk-URD4QIQS.js} +1 -1
  81. package/dist/{chunk-FW6CYA5D.js → chunk-VAOROEWU.js} +3 -3
  82. package/dist/{chunk-7W7ANGR4.js → chunk-VC6GEQ7P.js} +18 -18
  83. package/dist/{chunk-F5XADOGC.js → chunk-VEWR5HXT.js} +1 -1
  84. package/dist/{chunk-KZZWYIEB.js → chunk-VILE6GFD.js} +1 -1
  85. package/dist/{chunk-CODPTVC2.js → chunk-VW57BBGU.js} +1 -1
  86. package/dist/{chunk-CTZJSMGU.js → chunk-VZBJ5BQF.js} +1 -1
  87. package/dist/{chunk-DS7ANFBV.js → chunk-WJRYQYOM.js} +1 -1
  88. package/dist/{chunk-7Q5TBUC2.js → chunk-XESW4XN7.js} +2 -2
  89. package/dist/{chunk-A2WPZE2R.js → chunk-XM3NMXLX.js} +1 -1
  90. package/dist/{chunk-NGSENR4J.js → chunk-XWMY7FIW.js} +1 -1
  91. package/dist/{chunk-CCLBOLYU.js → chunk-YBNF5ZOC.js} +1 -1
  92. package/dist/{chunk-64XQS7AP.js → chunk-YDHXPY23.js} +1 -1
  93. package/dist/{chunk-6SG3RRAQ.js → chunk-YLEEVMBV.js} +2 -2
  94. package/dist/{chunk-UULZKCBI.js → chunk-YQCDSSIK.js} +1 -1
  95. package/dist/{chunk-SPDSRBIN.js → chunk-ZMKRQ4HE.js} +1 -1
  96. package/dist/{chunk-OSCWTA2O.js → chunk-ZXQNWUDY.js} +5 -5
  97. package/dist/{clean-FBZ7GHRY.js → clean-RDKZTFDC.js} +18 -18
  98. package/dist/cli.js +62 -59
  99. package/dist/{cloud-VYSWJ7UO.js → cloud-2MGM3NSJ.js} +4 -4
  100. package/dist/{cloudrun-U6LI7KLV.js → cloudrun-YQONSO6B.js} +5 -5
  101. package/dist/commands/layout-audit.browser.js +7 -10
  102. package/dist/{compare-YR7BMEHJ.js → compare-HAMCTSXR.js} +29 -29
  103. package/dist/{compiler-6YCAUK7Z.js → compiler-YUM2ODOP.js} +4 -4
  104. package/dist/{component-HVSM6FJV.js → component-2MDTLX6B.js} +3 -3
  105. package/dist/{compositions-QTFL2VNL.js → compositions-EEXADRKF.js} +11 -11
  106. package/dist/{delete-2FHCQ72T.js → delete-X4I63WKN.js} +2 -2
  107. package/dist/{deploy-6S45QWG6.js → deploy-BBGSS4I3.js} +1 -1
  108. package/dist/{deterministicFonts-LKAGUNE5.js → deterministicFonts-2ISM3LMW.js} +1 -1
  109. package/dist/{dist-NCI6JOJZ.js → dist-KXFW5H5Q.js} +4 -2
  110. package/dist/{dist-B4KLCLZ5.js → dist-ZE5X6MWG.js} +17 -3
  111. package/dist/{doctor-4MRS6RED.js → doctor-BNZ6D33R.js} +11 -11
  112. package/dist/{events-4VBBY7PP.js → events-6DI3CND6.js} +2 -2
  113. package/dist/{events-FN45HVPM.js → events-BYOF33UK.js} +5 -3
  114. package/dist/{feedback-T67P2CDA.js → feedback-Z3JOC7TX.js} +8 -8
  115. package/dist/{ffmpeg-ED7ZK6XH.js → ffmpeg-S44OTBCI.js} +7 -7
  116. package/dist/{figma-UXAWKPOY.js → figma-TVX2H5B3.js} +3 -3
  117. package/dist/fontLocalizeCli.js +11 -11
  118. package/dist/{get-EFH3PPJA.js → get-DWKTDVP7.js} +2 -2
  119. package/dist/{gpuPolicy-ZADQMXQT.js → gpuPolicy-GTBFSUHB.js} +7 -7
  120. package/dist/{grade-compare-425BFHSF.js → grade-compare-S4P6Z265.js} +30 -30
  121. package/dist/{heifImagePrep-ZJM7N2XY.js → heifImagePrep-RKQP2Y73.js} +8 -8
  122. package/dist/{help-23PPB2BD.js → help-WIC6DHOF.js} +1 -1
  123. package/dist/{history-CHJV33M5.js → history-UBRUPAHH.js} +6 -6
  124. package/dist/hyperframe.manifest.json +1 -1
  125. package/dist/hyperframe.runtime.iife.js +64 -64
  126. package/dist/hyperframes-player.global.js +1 -1
  127. package/dist/{info-36YPISVA.js → info-F5LTDQ6I.js} +8 -8
  128. package/dist/{init-U6EE2EIU.js → init-6L4WQKOD.js} +27 -27
  129. package/dist/{inspect-NI2RMUFR.js → inspect-DUIBB263.js} +30 -30
  130. package/dist/{installer-K3HIZ5CF.js → installer-JKZ5N47B.js} +5 -5
  131. package/dist/{keyframes-I6T2IT6I.js → keyframes-5FQNFJFE.js} +6 -6
  132. package/dist/{lambda-WL64Z2F3.js → lambda-YTO6N2QH.js} +11 -11
  133. package/dist/{layout-R2YZ4N6P.js → layout-H3F2LW62.js} +30 -30
  134. package/dist/{lint-IAAG6Z65.js → lint-WUWLVCJQ.js} +8 -8
  135. package/dist/{lintProject-EM7Y2ZRB.js → lintProject-SZIPPOJR.js} +2 -2
  136. package/dist/{list-3O6743DJ.js → list-3EFECRWU.js} +2 -2
  137. package/dist/{localPage-L5FRBCNP.js → localPage-C3267GRQ.js} +7 -7
  138. package/dist/{login-27TRFTYB.js → login-W5L64YRM.js} +4 -4
  139. package/dist/{manager-D6TE4ENP.js → manager-46MZB3HK.js} +8 -8
  140. package/dist/{media-treatment-E3YLZVXC.js → media-treatment-XBQWOU5U.js} +15 -15
  141. package/dist/{models-2Q3TGNH5.js → models-ZHNV44XV.js} +11 -11
  142. package/dist/{motionShot-XYW2HMVI.js → motionShot-DO4EQ2U3.js} +15 -15
  143. package/dist/{normalize-audio-D5WNUNDM.js → normalize-audio-2EXTDNBF.js} +10 -10
  144. package/dist/{open-3KO7UUPC.js → open-7ZOY3KI6.js} +12 -12
  145. package/dist/{parakeetRunner-WX6L6MW5.js → parakeetRunner-H3B4QP6W.js} +12 -12
  146. package/dist/{pipeline-WYIO4KGN.js → pipeline-7OKHNKGP.js} +10 -10
  147. package/dist/{play-ZM3ZUJSZ.js → play-B5NNOJN7.js} +21 -21
  148. package/dist/{preflight-7OMCIXNM.js → preflight-R26JZQJU.js} +8 -8
  149. package/dist/{present-E2PLH2GJ.js → present-Y2SEWKGO.js} +17 -17
  150. package/dist/{preview-TVRM75FN.js → preview-7CZX4A5T.js} +18 -18
  151. package/dist/{producer-M5F6KZEF.js → producer-WTO6XYGU.js} +1 -1
  152. package/dist/{projectConfig-VFKGY3XE.js → projectConfig-SJ5NIYUO.js} +7 -7
  153. package/dist/{publication-AF33R7LF.js → publication-47KNSXP7.js} +3 -3
  154. package/dist/{publish-Z7HGDQ5R.js → publish-4J4EKKQN.js} +11 -11
  155. package/dist/{remove-background-PN3KCBT4.js → remove-background-UKC6NKDH.js} +11 -11
  156. package/dist/{render-SEODWRRR.js → render-DBELH4AC.js} +15 -15
  157. package/dist/{render-IZNPEXMU.js → render-S2FJRE3H.js} +6 -6
  158. package/dist/{render-I3HBIJX3.js → render-TABKCTMF.js} +30 -30
  159. package/dist/{render-batch-MQSORY55.js → render-batch-6YJMWHZ4.js} +6 -6
  160. package/dist/renderSetupWorker.js +2 -2
  161. package/dist/{resolver-HXE4F2G4.js → resolver-EDI3JND5.js} +5 -5
  162. package/dist/{sherpa-NPT6S3RP.js → sherpa-R6HDRJCA.js} +11 -11
  163. package/dist/{skills-P3BI55YP.js → skills-2QIW3EOJ.js} +5 -5
  164. package/dist/{skillsUpdateCheck-43Q4ZHWN.js → skillsUpdateCheck-XG5FPCU5.js} +3 -3
  165. package/dist/{snapshot-YLT64YQS.js → snapshot-C5XBKYEF.js} +305 -90
  166. package/dist/{src-7S7K4QUN.js → src-CT2X45TD.js} +10 -10
  167. package/dist/{src-OHJ7USRX.js → src-E467QUBK.js} +10 -6
  168. package/dist/{staticProjectServer-RP3MW2EW.js → staticProjectServer-G54Z4BH7.js} +19 -19
  169. package/dist/studio/assets/{hyperframes-player-DHfuW7Lt.js → hyperframes-player-H1DIJsJZ.js} +1 -1
  170. package/dist/studio/assets/{index-CWgIsKzV.js → index-BftVE_0y.js} +119 -119
  171. package/dist/studio/assets/{index-CkjUY33q.js → index-v_hWj6Kv.js} +1 -1
  172. package/dist/studio/index.html +1 -1
  173. package/dist/{studio-api-BZPZCJL6.js → studio-api-O52RPXZC.js} +11 -11
  174. package/dist/{studioServer-QLRIXNYM.js → studioServer-WDTS6ZDI.js} +50 -50
  175. package/dist/{telemetry-QOBPRUWF.js → telemetry-GEHWCV7C.js} +3 -3
  176. package/dist/{timeline-OLQFVWVU.js → timeline-IVQDNGWZ.js} +19 -19
  177. package/dist/{tokens-BAHLVGEC.js → tokens-EN5PVV3Y.js} +2 -2
  178. package/dist/{transcribe-HR6BFDUR.js → transcribe-HKS3PZAF.js} +10 -10
  179. package/dist/{transcribe-3NHUWW4J.js → transcribe-NXMIBNLX.js} +16 -16
  180. package/dist/{updateCheck-BGHPCA7J.js → updateCheck-35TT5GRF.js} +2 -2
  181. package/dist/{upgrade-NFI6JOME.js → upgrade-G6EOHGUS.js} +2 -2
  182. package/dist/{urlDownloader-P35K74RS.js → urlDownloader-X7V63HCF.js} +6 -6
  183. package/dist/{validate-Q57ZCI4Q.js → validate-4JUCRS64.js} +24 -24
  184. package/dist/{video-OO2M2AKD.js → video-SWQXDG7J.js} +8 -8
  185. package/dist/warmCheck.js +38 -38
  186. package/package.json +1 -1
  187. package/dist/chunk-W5OBRMZ6.js +0 -4870
@@ -16,34 +16,34 @@ async function runWithWatchdog(work, deadline) {
16
16
  deadline.then(() => ({ kind: "deadline" }))
17
17
  ]);
18
18
  }
19
- function createCaptureWatchdog(deadlineMs) {
19
+ var DEADLINE_UNDER_AGENT_SHELL_LIMITS_MS = 4 * 6e4;
20
+ function createCaptureWatchdog(deadlineMs = DEADLINE_UNDER_AGENT_SHELL_LIMITS_MS) {
20
21
  let browser;
21
22
  let didExpire = false;
22
- let timer;
23
23
  let resolveDeadline = () => {
24
24
  };
25
25
  const promise = new Promise((resolve) => {
26
26
  resolveDeadline = resolve;
27
27
  });
28
- if (deadlineMs !== void 0) {
29
- timer = setTimeout(() => {
30
- didExpire = true;
31
- resolveDeadline();
32
- void browser?.close().catch(() => void 0);
33
- }, deadlineMs);
34
- }
28
+ let deadlineFromFirstBrowser;
29
+ const expire = () => {
30
+ didExpire = true;
31
+ resolveDeadline();
32
+ void browser?.close().catch(() => void 0);
33
+ };
35
34
  return {
36
35
  expired: () => didExpire,
37
36
  promise,
38
37
  registerBrowser: (nextBrowser) => {
39
38
  browser = nextBrowser;
39
+ deadlineFromFirstBrowser ??= setTimeout(expire, deadlineMs);
40
40
  if (didExpire) void browser.close().catch(() => void 0);
41
41
  },
42
42
  unregisterBrowser: (closedBrowser) => {
43
43
  if (browser === closedBrowser) browser = void 0;
44
44
  },
45
45
  dispose: () => {
46
- if (timer !== void 0) clearTimeout(timer);
46
+ clearTimeout(deadlineFromFirstBrowser);
47
47
  }
48
48
  };
49
49
  }
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getCachedGpuEncoder
9
- } from "./chunk-OL5E4Y4L.js";
9
+ } from "./chunk-LIOE46OG.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-X6JUUQCM.js";
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-GVE6I5EL.js";
10
+ } from "./chunk-4NJ57TSE.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-EC77ZBCP.js";
13
+ } from "./chunk-FI3JWR34.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
17
- } from "./chunk-U46JEU26.js";
17
+ } from "./chunk-JF3RF6GS.js";
18
18
 
19
19
  // src/telemetry/lintStreaks.ts
20
20
  import { createHash } from "crypto";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-A2WPZE2R.js";
9
+ } from "./chunk-XM3NMXLX.js";
10
10
  import {
11
11
  outputResolutionForSize
12
12
  } from "./chunk-NHA4NRBE.js";
@@ -15,16 +15,16 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-T7KNW7PE.js";
18
+ } from "./chunk-HQRI2NT3.js";
19
19
  import {
20
20
  registerBrowserSessionCleanup
21
- } from "./chunk-RDZKBIEB.js";
21
+ } from "./chunk-53ERMOK2.js";
22
22
  import {
23
23
  DEFAULT_VP9_CPU_USED,
24
24
  SDR_RGB_TO_BT709_FILTER,
25
25
  SDR_RGB_TO_TAGGED_BT709_FILTER,
26
26
  renderProvenanceArgs
27
- } from "./chunk-OL5E4Y4L.js";
27
+ } from "./chunk-LIOE46OG.js";
28
28
  import {
29
29
  runCancellableProcess
30
30
  } from "./chunk-X6JUUQCM.js";
@@ -391,7 +391,7 @@ async function decoderTransposesDimensions(inputPath) {
391
391
  }
392
392
  async function probeMedia(inputPath) {
393
393
  const isImage = inferInputKind(inputPath) === "image";
394
- const engine = await import("./src-OHJ7USRX.js");
394
+ const engine = await import("./src-E467QUBK.js");
395
395
  const meta = await engine.extractMediaMetadata(inputPath);
396
396
  if (isImage) {
397
397
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -25,6 +25,7 @@ import {
25
25
  } from "./chunk-PBNWRWKA.js";
26
26
  import {
27
27
  COLOR_GRADING_SOURCE_TAGS,
28
+ COLOR_GROUP_TAG,
28
29
  COMPOSITION_ATTRIBUTES,
29
30
  COMPOSITION_VARIABLE_TYPES,
30
31
  FONT_ALIAS_KEYS,
@@ -48,7 +49,7 @@ import {
48
49
  rewriteAssetPath,
49
50
  spansOverlap,
50
51
  validateColorGradingContract
51
- } from "./chunk-X4SBDDLS.js";
52
+ } from "./chunk-KSC4O2RY.js";
52
53
  import {
53
54
  encodeUrlPath
54
55
  } from "./chunk-NHA4NRBE.js";
@@ -6123,7 +6124,7 @@ var mediaRules = [
6123
6124
  snippet: truncateSnippet(tag.raw)
6124
6125
  });
6125
6126
  };
6126
- if (!COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
6127
+ if (tag.name !== COLOR_GROUP_TAG && !COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
6127
6128
  report(
6128
6129
  "color_grading_non_media",
6129
6130
  `data-color-grading on <${tag.name}> has no effect. The shader runtime only grades real <video>, <img> and <canvas> elements.`,
@@ -11711,6 +11712,7 @@ export {
11711
11712
  lintHyperframeHtml,
11712
11713
  lintMediaUrls,
11713
11714
  shouldBlockRender,
11715
+ collectExternalStyles,
11714
11716
  lintProject
11715
11717
  };
11716
11718
  /*! Bundled license information:
@@ -11,7 +11,7 @@ import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  fetchItemManifest,
13
13
  fetchRegistryManifest
14
- } from "./chunk-45JN2GIZ.js";
14
+ } from "./chunk-UR6QODTY.js";
15
15
 
16
16
  // src/registry/resolver.ts
17
17
  function defaultWarn(message) {
@@ -528,6 +528,8 @@ var COLOR_GRADING_COLOR_SPACE = "rec709";
528
528
  var COLOR_GRADING_MAX_CURVE_POINTS = 16;
529
529
  var COLOR_GRADING_MAX_SECONDARIES = 4;
530
530
  var COLOR_GRADING_SOURCE_TAGS = ["video", "img", "canvas"];
531
+ var COLOR_GROUP_TAG = "hf-color-group";
532
+ var COLOR_GROUP_ATTR = "data-color-group";
531
533
  var COLOR_GRADING_ADVANCED_LIMITS = {
532
534
  hueDegrees: { min: 0, max: 360, inclusiveMax: false },
533
535
  unit: { min: 0, max: 1 },
@@ -1513,6 +1515,8 @@ export {
1513
1515
  COLOR_GRADING_MAX_CURVE_POINTS,
1514
1516
  COLOR_GRADING_MAX_SECONDARIES,
1515
1517
  COLOR_GRADING_SOURCE_TAGS,
1518
+ COLOR_GROUP_TAG,
1519
+ COLOR_GROUP_ATTR,
1516
1520
  COLOR_GRADING_ADVANCED_LIMITS,
1517
1521
  COLOR_GRADING_TOP_LEVEL_KEYS,
1518
1522
  COLOR_GRADING_ADJUST_KEYS,
@@ -10,29 +10,29 @@ import {
10
10
  import {
11
11
  RegistryCompatibilityError,
12
12
  gateRegistryItemsCompatibility
13
- } from "./chunk-25MKZTRT.js";
13
+ } from "./chunk-BRTWBGFE.js";
14
14
  import {
15
15
  DEFAULT_PROJECT_CONFIG,
16
16
  createProjectConfig,
17
17
  loadProjectConfig,
18
18
  projectConfigPath,
19
19
  recordProjectRegistryItems
20
- } from "./chunk-F5XADOGC.js";
20
+ } from "./chunk-VEWR5HXT.js";
21
21
  import {
22
22
  resolveItemWithDependencies,
23
23
  resolveItemsByTag
24
- } from "./chunk-Y3U7ECBH.js";
24
+ } from "./chunk-JMSS47CW.js";
25
25
  import {
26
26
  InvalidVariableValuesError,
27
27
  prepareItem,
28
28
  publishItem
29
- } from "./chunk-XGXTZNES.js";
29
+ } from "./chunk-MYDM4PQL.js";
30
30
  import {
31
31
  DEFAULT_REGISTRY_URL
32
- } from "./chunk-45JN2GIZ.js";
32
+ } from "./chunk-UR6QODTY.js";
33
33
  import {
34
34
  trackRegistryItemAdded
35
- } from "./chunk-GVE6I5EL.js";
35
+ } from "./chunk-4NJ57TSE.js";
36
36
  import {
37
37
  defineCommand
38
38
  } from "./chunk-DL4OD7IA.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-2GICKZ3I.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-BYRXSKIY.js";
44
+ } from "./chunk-GFA5ZCVI.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -8,11 +8,11 @@ import {
8
8
  normalizeRelPath,
9
9
  resolveLocalImageSourcePath,
10
10
  splitUrlSuffix
11
- } from "./chunk-YX5ELTKV.js";
11
+ } from "./chunk-G7CFMNRO.js";
12
12
  import {
13
13
  runFfmpeg,
14
14
  runFfprobe
15
- } from "./chunk-OL5E4Y4L.js";
15
+ } from "./chunk-LIOE46OG.js";
16
16
  import {
17
17
  renameWithRetry
18
18
  } from "./chunk-YWRUQ7XZ.js";
@@ -22,6 +22,8 @@ import {
22
22
  } from "./chunk-YWRUQ7XZ.js";
23
23
  import {
24
24
  DISTRIBUTED_FPS,
25
+ HF_COLOR_GROUP_ATTR,
26
+ HF_COLOR_GROUP_TAG,
25
27
  MEDIA_VISUAL_STYLE_PROPERTIES,
26
28
  RENDER_FRAME_ID_PREFIX,
27
29
  RENDER_FRAME_ID_SUFFIX,
@@ -40,7 +42,7 @@ import {
40
42
  renderFrameIdForRenderId,
41
43
  resolveAuthoredTimingWindow,
42
44
  toFps
43
- } from "./chunk-BYRXSKIY.js";
45
+ } from "./chunk-GFA5ZCVI.js";
44
46
  import {
45
47
  AUDIO_GROUP_RENDER_ID_ATTR,
46
48
  AUTHORED_SOURCE_BEGIN,
@@ -83,7 +85,7 @@ import {
83
85
  sourceTimeAt,
84
86
  timeAtSourceTime,
85
87
  volumeSegmentSampleCount
86
- } from "./chunk-W5OBRMZ6.js";
88
+ } from "./chunk-FBQVRYMD.js";
87
89
  import {
88
90
  redactTelemetryString,
89
91
  redactUrlQueryStrings
@@ -101,7 +103,7 @@ import {
101
103
  } from "./chunk-WE42NVH7.js";
102
104
  import {
103
105
  resolveReferencedStart
104
- } from "./chunk-U46JEU26.js";
106
+ } from "./chunk-JF3RF6GS.js";
105
107
  import {
106
108
  FFMPEG_PATH_ENV,
107
109
  FFPROBE_PATH_ENV,
@@ -113,7 +115,7 @@ import {
113
115
  } from "./chunk-PBNWRWKA.js";
114
116
  import {
115
117
  isPathInside
116
- } from "./chunk-X4SBDDLS.js";
118
+ } from "./chunk-KSC4O2RY.js";
117
119
  import {
118
120
  parseHTML
119
121
  } from "./chunk-GWTIFRF5.js";
@@ -9308,6 +9310,12 @@ async function buildProbeFactsText(filePath, signal) {
9308
9310
  }
9309
9311
  return JSON.stringify(facts);
9310
9312
  }
9313
+ function videoStartOnMediaTimeline(metadata) {
9314
+ return (metadata.videoStreamLeadSeconds ?? 0) + (metadata.mediaTimeOffsetSeconds ?? 0);
9315
+ }
9316
+ function ffmpegSeekSeconds(metadata, mediaTime) {
9317
+ return mediaTime - (metadata.mediaTimeOffsetSeconds ?? 0);
9318
+ }
9311
9319
  function resolvePlayableVideoDuration(metadata) {
9312
9320
  return Number.isFinite(metadata.videoStreamDurationSeconds) && metadata.videoStreamDurationSeconds > 0 ? (metadata.videoStreamLeadSeconds ?? 0) + metadata.videoStreamDurationSeconds : metadata.durationSeconds;
9313
9321
  }
@@ -9604,6 +9612,7 @@ async function extractMediaMetadata(filePath) {
9604
9612
  videoStreamDurationSeconds: effectiveStreamDuration,
9605
9613
  videoStreamStartSeconds: streamStart,
9606
9614
  videoStreamLeadSeconds: streamLeadSeconds(output, videoStream),
9615
+ mediaTimeOffsetSeconds: mediaTimeOffsetSeconds(output),
9607
9616
  width: videoStream.width || stillImage()?.width || 0,
9608
9617
  height: videoStream.height || stillImage()?.height || 0,
9609
9618
  fps,
@@ -9766,6 +9775,7 @@ async function probeAudioMetadata(filePath, signal) {
9766
9775
  bitrate: output.format.bit_rate ? parseInt(output.format.bit_rate) : void 0,
9767
9776
  latestStreamLeadSeconds: latestStreamLeadSeconds(output),
9768
9777
  audioStreamLeadSeconds: streamLeadSeconds(output, audioStream),
9778
+ mediaTimeOffsetSeconds: mediaTimeOffsetSeconds(output),
9769
9779
  audioStreamCount: audioStreams.length,
9770
9780
  audioStream: audioStreamIndex
9771
9781
  };
@@ -9780,6 +9790,12 @@ function streamLeadSeconds(output, stream) {
9780
9790
  const start = parseFloat(stream.start_time ?? "");
9781
9791
  return Number.isFinite(start) && starts.length > 0 ? Math.max(0, start - Math.min(...starts)) : 0;
9782
9792
  }
9793
+ var BROWSER_PLAYS_FROM_TIMESTAMP_ZERO = /\b(mp4|webm)\b/;
9794
+ function mediaTimeOffsetSeconds(output) {
9795
+ const starts = audioVideoStreamStarts(output);
9796
+ const fromZero = BROWSER_PLAYS_FROM_TIMESTAMP_ZERO.test(output?.format.format_name ?? "");
9797
+ return fromZero && starts.length > 0 ? Math.max(0, Math.min(...starts)) : 0;
9798
+ }
9783
9799
  function latestStreamLeadSeconds(output) {
9784
9800
  const starts = audioVideoStreamStarts(output);
9785
9801
  return starts.length > 0 ? Math.max(...starts) - Math.min(...starts) : 0;
@@ -13079,7 +13095,7 @@ async function runSegmentedExtraction(job) {
13079
13095
  ...decodeArgs,
13080
13096
  "-noaccurate_seek",
13081
13097
  "-ss",
13082
- String(seek),
13098
+ String(job.ffmpegSeek(seek)),
13083
13099
  "-i",
13084
13100
  videoPath,
13085
13101
  // Read one frame past the segment and keep exactly its own frames.
@@ -13181,11 +13197,12 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
13181
13197
  args.push("-c:v", decoderForCodec(metadata.videoCodec));
13182
13198
  }
13183
13199
  const decodeArgs = [...args];
13200
+ const ffmpegSeek = (mediaTime) => ffmpegSeekSeconds(metadata, mediaTime);
13184
13201
  if (options.finalFrameOnly) {
13185
- args.push("-i", videoPath, "-ss", String(startTime), "-frames:v", "1");
13202
+ args.push("-i", videoPath, "-ss", String(Math.max(0, ffmpegSeek(startTime))), "-frames:v", "1");
13186
13203
  } else {
13187
13204
  if (sampleAtOutputFps) args.push("-noaccurate_seek");
13188
- args.push("-ss", String(startTime), "-i", videoPath, "-t", String(duration));
13205
+ args.push("-ss", String(ffmpegSeek(startTime)), "-i", videoPath, "-t", String(duration));
13189
13206
  }
13190
13207
  const vfFilters = [];
13191
13208
  if (keepsHdrForChrome) {
@@ -13193,7 +13210,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
13193
13210
  }
13194
13211
  const samplingAt = vfFilters.length;
13195
13212
  const samplingFilters = (seek) => sampleAtOutputFps ? [
13196
- ...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, metadata.videoStreamLeadSeconds ?? 0),
13213
+ ...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, videoStartOnMediaTimeline(metadata)),
13197
13214
  "settb=intb/2",
13198
13215
  "setpts=PTS-lte(TB\\,0.001)",
13199
13216
  `fps=${ffmpegFps}:start_time=0:round=up`
@@ -13227,6 +13244,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
13227
13244
  const extract = (hwaccel) => sampleAtOutputFps && (options.frameRanges || boundVfrFrameCount || totalFrames > segmentFrames) ? runSegmentedExtraction({
13228
13245
  decodeArgs: [...hwaccel, ...decodeArgs],
13229
13246
  filterAndEncodeArgs: (seek) => [...filterArgsFor(seek), ...encodeArgs],
13247
+ ffmpegSeek,
13230
13248
  videoPath,
13231
13249
  startTime,
13232
13250
  fps,
@@ -13463,13 +13481,17 @@ async function resolveFinalFrameExtractionWindow(videoPath, video, metadata, win
13463
13481
  if (!window2.ensureFinalFrame) return window2;
13464
13482
  const playableDuration = resolvePlayableVideoDuration(metadata);
13465
13483
  const videoStreamLead = metadata.videoStreamLeadSeconds ?? 0;
13466
- const finalFrameTimestamp = videoStreamLead + await extractFinalVideoFrameTimestamp(
13467
- videoPath,
13468
- {
13469
- videoStreamDurationSeconds: playableDuration - videoStreamLead,
13470
- videoStreamStartSeconds: metadata.videoStreamStartSeconds
13471
- },
13472
- signal
13484
+ const lastInstantTheBrowserPlays = playableDuration - FINAL_FRAME_LOGICAL_DURATION_SECONDS;
13485
+ const finalFrameTimestamp = Math.min(
13486
+ lastInstantTheBrowserPlays,
13487
+ videoStartOnMediaTimeline(metadata) + await extractFinalVideoFrameTimestamp(
13488
+ videoPath,
13489
+ {
13490
+ videoStreamDurationSeconds: playableDuration - videoStreamLead,
13491
+ videoStreamStartSeconds: metadata.videoStreamStartSeconds
13492
+ },
13493
+ signal
13494
+ )
13473
13495
  );
13474
13496
  if (window2.mediaStart < finalFrameTimestamp - 1e-9) return window2;
13475
13497
  const sourceRemaining = playableDuration - video.mediaStart;
@@ -14057,7 +14079,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
14057
14079
  sourceFps: work.metadata.fps,
14058
14080
  finalFrameSeconds: storedFinalFrame.seconds,
14059
14081
  lastPacketSeconds: storedFinalFrame.lastPacketSeconds,
14060
- streamLeadSeconds: work.metadata.videoStreamLeadSeconds ?? 0
14082
+ streamLeadSeconds: videoStartOnMediaTimeline(work.metadata)
14061
14083
  });
14062
14084
  if (storedTailFrames !== null) {
14063
14085
  const totalFrames = firstTailFrame + storedTailFrames;
@@ -14299,8 +14321,8 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
14299
14321
  };
14300
14322
  }
14301
14323
  var BROWSER_SHOWS_UPCOMING_FIRST_FRAME_WITHIN_SECONDS = 1;
14302
- function isVideoHiddenBeforeStreamStart(videoStreamLeadSeconds, mediaTime) {
14303
- return (videoStreamLeadSeconds ?? 0) - mediaTime >= BROWSER_SHOWS_UPCOMING_FIRST_FRAME_WITHIN_SECONDS - 1e-6;
14324
+ function isVideoHiddenBeforeStreamStart(videoStartSeconds, mediaTime) {
14325
+ return (videoStartSeconds ?? 0) - mediaTime >= BROWSER_SHOWS_UPCOMING_FIRST_FRAME_WITHIN_SECONDS - 1e-6;
14304
14326
  }
14305
14327
  function getFrameIndexAtTime(extracted, globalTime, videoStart, loop = false, mediaStart = 0, holdLastFrame = false, playbackRate = 1) {
14306
14328
  let localTime = Math.max(0, globalTime - videoStart);
@@ -14321,7 +14343,7 @@ function getFrameIndexAtTime(extracted, globalTime, videoStart, loop = false, me
14321
14343
  const frameIndex = Math.floor(shownTime * extracted.fps);
14322
14344
  if (frameIndex < 0 || extracted.totalFrames <= 0) return null;
14323
14345
  if (isVideoHiddenBeforeStreamStart(
14324
- extracted.metadata.videoStreamLeadSeconds,
14346
+ videoStartOnMediaTimeline(extracted.metadata),
14325
14347
  mediaStart + sourceTime
14326
14348
  )) {
14327
14349
  return null;
@@ -14660,14 +14682,19 @@ async function setVideoElementsVisibility(page, videoIds, visible) {
14660
14682
  async function measureVideoShownBoxes(page, videoIds, times) {
14661
14683
  if (videoIds.length === 0 || times.length === 0) return /* @__PURE__ */ new Map();
14662
14684
  const boxes = await page.evaluate(
14663
- async (ids, seekTimes, gradingAttr, gradingCanvasPrefix) => {
14685
+ async (ids, seekTimes, gradingAttr, gradingCanvasPrefix, groupAttr, groupTag) => {
14664
14686
  const hf = window.__hf;
14665
14687
  if (typeof hf?.seek !== "function") return [];
14666
14688
  const waitForSeek = window.__hfWaitForSeekCompletion;
14667
14689
  const largest = /* @__PURE__ */ new Map();
14668
14690
  const fullSize = /* @__PURE__ */ new Set();
14691
+ const gradedThroughGroup = (video) => {
14692
+ const groupId = video.getAttribute(groupAttr);
14693
+ const group = groupId ? document.getElementById(groupId) : null;
14694
+ return group?.localName === groupTag && group.hasAttribute(gradingAttr);
14695
+ };
14669
14696
  const keepsFullSize = (video) => {
14670
- if (video.hasAttribute(gradingAttr)) return true;
14697
+ if (video.hasAttribute(gradingAttr) || gradedThroughGroup(video)) return true;
14671
14698
  const fit = window.getComputedStyle(video).objectFit;
14672
14699
  return fit === "none" || fit === "scale-down";
14673
14700
  };
@@ -14699,7 +14726,9 @@ async function measureVideoShownBoxes(page, videoIds, times) {
14699
14726
  [...videoIds],
14700
14727
  [...times],
14701
14728
  HF_COLOR_GRADING_ATTR,
14702
- HF_COLOR_GRADING_CANVAS_ID_PREFIX
14729
+ HF_COLOR_GRADING_CANVAS_ID_PREFIX,
14730
+ HF_COLOR_GROUP_ATTR,
14731
+ HF_COLOR_GROUP_TAG
14703
14732
  );
14704
14733
  return new Map(boxes);
14705
14734
  }
@@ -16590,11 +16619,12 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
16590
16619
  removeScratch(cycleDir);
16591
16620
  }
16592
16621
  }
16593
- const inputSeek = mediaStart >= (metadata?.latestStreamLeadSeconds ?? 0);
16594
- const start = formatFilterNumber(mediaStart);
16595
- const timestampTrim = inputSeek ? null : `atrim=start=${start}:end=${formatFilterNumber(mediaStart + sourceDuration)},asetpts=PTS-${start}/TB,aresample=async=1:first_pts=0`;
16622
+ const ffmpegStart = ffmpegSeekSeconds(metadata ?? {}, mediaStart);
16623
+ const inputSeek = ffmpegStart >= (metadata?.latestStreamLeadSeconds ?? 0);
16624
+ const start = formatFilterNumber(ffmpegStart);
16625
+ const timestampTrim = inputSeek ? null : `atrim=start=${start}:end=${formatFilterNumber(ffmpegStart + sourceDuration)},asetpts=PTS-${start}/TB,aresample=async=1:first_pts=0`;
16596
16626
  const fromSidecar = audioSidecarUrl !== void 0 && inputSeek && normalizedPlaybackRate === 1;
16597
- const warmUp = fromSidecar ? Math.min(SIDECAR_WARM_UP_SECONDS, mediaStart) : 0;
16627
+ const warmUp = fromSidecar ? Math.min(SIDECAR_WARM_UP_SECONDS, ffmpegStart) : 0;
16598
16628
  const outputArgs = preparedAudioOutputArgs(
16599
16629
  metadata,
16600
16630
  normalizedPlaybackRate,
@@ -16609,7 +16639,7 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
16609
16639
  const args = [
16610
16640
  ...readsUrl ? FAIL_ON_READ_ERROR_INSTEAD_OF_ENDING_THERE : [],
16611
16641
  ...urlInputArgs(readFrom),
16612
- ...inputSeek ? ["-ss", String(mediaStart - warmUp), "-t", String(sourceDuration + warmUp)] : [],
16642
+ ...inputSeek ? ["-ss", String(ffmpegStart - warmUp), "-t", String(sourceDuration + warmUp)] : [],
16613
16643
  "-i",
16614
16644
  readFrom
16615
16645
  ];
@@ -18887,6 +18917,8 @@ export {
18887
18917
  declareProbeFactsUrl,
18888
18918
  PROBE_FACTS_VERSION,
18889
18919
  buildProbeFactsText,
18920
+ videoStartOnMediaTimeline,
18921
+ ffmpegSeekSeconds,
18890
18922
  resolvePlayableVideoDuration,
18891
18923
  probeMediaProfile,
18892
18924
  extractMediaMetadata,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  firstFrameColourArgs,
15
15
  parseFirstFrameColour
16
- } from "./chunk-BYRXSKIY.js";
16
+ } from "./chunk-GFA5ZCVI.js";
17
17
  import {
18
18
  findFfBinary
19
19
  } from "./chunk-VAS6HQX3.js";
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-W55BW7KA.js";
9
+ } from "./chunk-GRCS7WRH.js";
10
10
  import {
11
11
  stripSdrPngColourTags
12
- } from "./chunk-QUXWS5UG.js";
12
+ } from "./chunk-4HMG5CQJ.js";
13
13
  import {
14
14
  injectTagsAtHeadStart
15
- } from "./chunk-W5OBRMZ6.js";
15
+ } from "./chunk-FBQVRYMD.js";
16
16
 
17
17
  // src/utils/compositionServer.ts
18
18
  import { createHash } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7VZEOCUY.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-VKD23SIO.js";
12
+ } from "./chunk-245CC6JT.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
@@ -17,12 +17,12 @@ import {
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel,
19
19
  sha256File
20
- } from "./chunk-3JQ2YOKL.js";
20
+ } from "./chunk-3ZNAP65U.js";
21
21
  import {
22
22
  findFFmpeg,
23
23
  findFFprobe,
24
24
  getFFmpegInstallHint
25
- } from "./chunk-T7KNW7PE.js";
25
+ } from "./chunk-HQRI2NT3.js";
26
26
  import {
27
27
  findWavChunk
28
28
  } from "./chunk-UOFAE5RF.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-OL5E4Y4L.js";
10
+ } from "./chunk-LIOE46OG.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-OHJ7USRX.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-E467QUBK.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -8,20 +8,20 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-45JN2GIZ.js";
11
+ } from "./chunk-UR6QODTY.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-T2WJO4XM.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-BYRXSKIY.js";
18
+ } from "./chunk-GFA5ZCVI.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
22
22
  import {
23
23
  isCompositionVariable
24
- } from "./chunk-X4SBDDLS.js";
24
+ } from "./chunk-KSC4O2RY.js";
25
25
 
26
26
  // src/registry/installer.ts
27
27
  import { createHash } from "crypto";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-EC77ZBCP.js";
9
+ } from "./chunk-FI3JWR34.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -3496,16 +3496,30 @@ function collectCssCustomProperties(css, customProperties) {
3496
3496
  customProperties.set(decl.prop, decl.value);
3497
3497
  });
3498
3498
  }
3499
+ var FONT_SIZE_KEYWORD = /^(?:xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|smaller|larger)$/i;
3500
+ var FONT_SIZE_TOKEN = /^(?:\d*\.?\d+[a-z%]+|(?:calc|min|max|clamp|var)\(.*\))(?:\/\S+)?$/i;
3501
+ function fontShorthandFamilies(value) {
3502
+ for (const token of value.matchAll(/(?:[^\s(]|\([^)]*\))+/g)) {
3503
+ const size = token[0].split("/")[0] ?? "";
3504
+ if (FONT_SIZE_KEYWORD.test(size) || FONT_SIZE_TOKEN.test(token[0])) {
3505
+ return value.slice(token.index + token[0].length).trim();
3506
+ }
3507
+ }
3508
+ return "";
3509
+ }
3499
3510
  function* iterateCssRootFontFamilyDeclarations(root) {
3500
3511
  const declarations = [];
3501
3512
  root.walkDecls((decl) => {
3502
- if (decl.prop.toLowerCase() !== "font-family")
3513
+ const prop = decl.prop.toLowerCase();
3514
+ if (prop !== "font-family" && prop !== "font")
3503
3515
  return;
3504
3516
  if (isFontFaceDeclaration(decl))
3505
3517
  return;
3506
- const declaration = decl.value;
3518
+ const declaration = prop === "font" ? fontShorthandFamilies(decl.value) : decl.value;
3519
+ if (!declaration)
3520
+ return;
3507
3521
  declarations.push({
3508
- surface: "font-family",
3522
+ surface: prop,
3509
3523
  declaration,
3510
3524
  families: parseFontFamilyValue(declaration)
3511
3525
  });
@@ -3513,7 +3527,7 @@ function* iterateCssRootFontFamilyDeclarations(root) {
3513
3527
  yield* declarations;
3514
3528
  }
3515
3529
  function* iterateCssFontFamilyDeclarations(css) {
3516
- if (!/font-family/i.test(css))
3530
+ if (!/font(?:-family)?\s*:/i.test(css))
3517
3531
  return;
3518
3532
  const root = parseCssRoot(css);
3519
3533
  if (!root)