hyperframes 0.8.201 → 0.8.203

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-33XNCMY4.js → add-HVWZZBVO.js} +15 -13
  2. package/dist/{animatedGifPrep-MI7Z4OYQ.js → animatedGifPrep-7SQD4XQY.js} +11 -9
  3. package/dist/api.js +23 -21
  4. package/dist/{asset-RMRQN24O.js → asset-H2D5ENJ6.js} +4 -3
  5. package/dist/{assetCataloger-KWTQNFUU.js → assetCataloger-PIRQXMHM.js} +11 -9
  6. package/dist/{audio-SQDZZS6X.js → audio-F6TTYCGR.js} +21 -19
  7. package/dist/{auth-PNC6K5ZD.js → auth-HK5IYSNR.js} +1 -1
  8. package/dist/{autoUpdate-MBZFLUF2.js → autoUpdate-DQMCXE6X.js} +2 -2
  9. package/dist/{backgroundChecks-ZMSPA6TK.js → backgroundChecks-Y466WV7Y.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-2MMOZRMW.js → batchRender-PGJELR2B.js} +8 -6
  12. package/dist/{beats-GDLNPR4A.js → beats-AD2IJGBZ.js} +13 -11
  13. package/dist/{benchmark-AUKB3XDF.js → benchmark-B564OTLO.js} +12 -10
  14. package/dist/{browser-C3AU5TST.js → browser-B7BELTLZ.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-G3UT65XI.js → bundleWithLocalizedFonts-INYZKCJN.js} +4 -4
  16. package/dist/{capture-XGBPNGC5.js → capture-LKV2HS5Q.js} +2 -2
  17. package/dist/{capture-EKNPCFPF.js → capture-VMJVXQJ2.js} +14 -12
  18. package/dist/{captureCompositionFrame-4HHLPTDH.js → captureCompositionFrame-L2W6KSAL.js} +16 -15
  19. package/dist/{catalog-HLDNEJX3.js → catalog-5ETWOAL2.js} +15 -13
  20. package/dist/{catch-up-LRFV4LJO.js → catch-up-3RWU3BRJ.js} +4 -4
  21. package/dist/{check-XWHWGNYE.js → check-KD57MC5Z.js} +40 -39
  22. package/dist/{checkBrowser-KSOBXPJ3.js → checkBrowser-R72NYI4S.js} +36 -33
  23. package/dist/{chunk-ZDVJXWEG.js → chunk-2G6EI3WQ.js} +3 -3
  24. package/dist/chunk-2RY2LWAA.js +3466 -0
  25. package/dist/{chunk-TOT3CLUK.js → chunk-32SIPBON.js} +1 -1
  26. package/dist/{chunk-47NZWTJL.js → chunk-35KHQKEX.js} +5 -5
  27. package/dist/{chunk-B7CYKBXQ.js → chunk-3CISA3OS.js} +1 -1
  28. package/dist/{chunk-XONIZ5CH.js → chunk-3NUFUEAX.js} +235 -38
  29. package/dist/{chunk-GKXH4C2B.js → chunk-3YZ2ESXP.js} +5 -6
  30. package/dist/chunk-42DLVZNO.js +3983 -0
  31. package/dist/{chunk-B67P2WP3.js → chunk-4GV742H2.js} +2 -2
  32. package/dist/{chunk-WO3XZ6HC.js → chunk-5GFNMC2F.js} +2 -2
  33. package/dist/{chunk-CFUCHO4T.js → chunk-6MUI2H6P.js} +1 -1
  34. package/dist/{chunk-IFOZZYHK.js → chunk-7RQXBL4L.js} +8 -8
  35. package/dist/{chunk-JOI7TNCX.js → chunk-7SNVSO4A.js} +1 -1
  36. package/dist/{chunk-K2AUGELJ.js → chunk-AII6P2TC.js} +1 -1
  37. package/dist/{chunk-U2EK5MFR.js → chunk-B7MRZJOW.js} +9 -9
  38. package/dist/{chunk-6XGO7ZKS.js → chunk-BD3LJRJT.js} +1 -1
  39. package/dist/{chunk-RVKJDAYE.js → chunk-CAHZZOEC.js} +1 -1
  40. package/dist/{chunk-X72DJZCM.js → chunk-CFFPH6D3.js} +1 -1
  41. package/dist/{chunk-3J5KO4EJ.js → chunk-CTNWZASM.js} +5 -5
  42. package/dist/{chunk-YTBE4JCX.js → chunk-DO2OTFCJ.js} +2 -2
  43. package/dist/{chunk-GNX3BCQP.js → chunk-DZZ6VHPY.js} +1 -1
  44. package/dist/{chunk-SEAHCCQ4.js → chunk-E3LRVXM2.js} +3 -3
  45. package/dist/{chunk-FDWN4XAD.js → chunk-EUFBE5BW.js} +2 -2
  46. package/dist/{chunk-UIIGEPYY.js → chunk-FE72SB2F.js} +2 -2
  47. package/dist/chunk-FR7YBU3H.js +179 -0
  48. package/dist/{chunk-74UH2KGI.js → chunk-FRXPZCEP.js} +7 -3
  49. package/dist/{chunk-Q6SHXSZX.js → chunk-FTARAZAL.js} +1 -1
  50. package/dist/{chunk-GC6N2LH5.js → chunk-GOPGJXEQ.js} +7 -7
  51. package/dist/{chunk-ITJAHKYO.js → chunk-GOWNPWCJ.js} +1 -1
  52. package/dist/{chunk-SDYDNHEE.js → chunk-GWTIFRF5.js} +262 -3711
  53. package/dist/{chunk-I4DHHX7E.js → chunk-GX4CEJCX.js} +3 -3
  54. package/dist/{chunk-IHQBTZHE.js → chunk-H6NXL4VB.js} +1 -1
  55. package/dist/{chunk-53E45AKI.js → chunk-HAKKV3SY.js} +22 -13
  56. package/dist/{chunk-VCVUEK65.js → chunk-HO2N4UWV.js} +2 -2
  57. package/dist/{chunk-SIZYTGG4.js → chunk-HOQNNE3I.js} +1 -1
  58. package/dist/{chunk-YBJECXQJ.js → chunk-HYMW42OE.js} +3 -3
  59. package/dist/{chunk-CV32PRH3.js → chunk-IDASYE4U.js} +5 -3
  60. package/dist/{chunk-TYRDDIIH.js → chunk-IREQUN2P.js} +1 -1
  61. package/dist/{chunk-7EJ7OZGC.js → chunk-JEFIEL6S.js} +1 -1
  62. package/dist/{chunk-6UFEOVR5.js → chunk-JKUVH7BF.js} +1 -1
  63. package/dist/{chunk-QTWSMJ22.js → chunk-JVWPKIVV.js} +13 -13
  64. package/dist/{chunk-UKB62QOT.js → chunk-KBCV6BHL.js} +5 -5
  65. package/dist/{chunk-Q537KXWA.js → chunk-KWQWEY6F.js} +298 -92
  66. package/dist/chunk-ML7IPYOC.js +39 -0
  67. package/dist/{chunk-2FA53V5S.js → chunk-MPGJNUML.js} +2 -2
  68. package/dist/{chunk-UOSTDTBF.js → chunk-ND5ELD7A.js} +1 -1
  69. package/dist/{chunk-SZNCAINN.js → chunk-OKRH4JU3.js} +1 -1
  70. package/dist/{chunk-QYTGUWNF.js → chunk-OKZZWUZN.js} +1 -1
  71. package/dist/{chunk-6BNTGNGD.js → chunk-PBNWRWKA.js} +1 -1
  72. package/dist/{chunk-57GN6KWT.js → chunk-PLGGKTCB.js} +15 -1
  73. package/dist/{chunk-LVEXHBSH.js → chunk-Q6B7MFTU.js} +1 -1
  74. package/dist/{chunk-XG365L6T.js → chunk-R36C6H32.js} +1 -1
  75. package/dist/{chunk-SGKG7DNX.js → chunk-RUVO77RK.js} +3 -3
  76. package/dist/{chunk-DWULQYOQ.js → chunk-RWHMKGJA.js} +3 -3
  77. package/dist/{chunk-T33GLS6C.js → chunk-RZAPLMVM.js} +3 -3
  78. package/dist/{chunk-MSGWR7WP.js → chunk-SVVAUJPL.js} +33 -83
  79. package/dist/{chunk-ORMTNJBS.js → chunk-TMIX2WQL.js} +3 -3
  80. package/dist/{chunk-VF2VMKNI.js → chunk-TRDUMOUW.js} +3 -3
  81. package/dist/{chunk-A7YO6YSD.js → chunk-TT6HSBYK.js} +5 -5
  82. package/dist/{chunk-VKTUZP7U.js → chunk-TVC4EI2W.js} +1 -1
  83. package/dist/{chunk-QXBZ6VBL.js → chunk-TZKMAQOY.js} +2 -2
  84. package/dist/{chunk-AK2MOAJY.js → chunk-UNBGZQZ6.js} +21 -18
  85. package/dist/{chunk-IDRUJFT4.js → chunk-UVV2DKZR.js} +2 -2
  86. package/dist/{chunk-DS3XITZ5.js → chunk-VI7GBPF6.js} +2 -2
  87. package/dist/{chunk-L33EDCSR.js → chunk-VL5ES6ZM.js} +6 -6
  88. package/dist/{chunk-TAXGZAXM.js → chunk-VYFMJ2HM.js} +23 -20
  89. package/dist/{chunk-7WEGIXI3.js → chunk-WGZOPGHX.js} +1 -1
  90. package/dist/{chunk-IIH24PKY.js → chunk-X5PKA5KH.js} +2 -2
  91. package/dist/{chunk-CD5ZU6PN.js → chunk-YJKSLCKV.js} +5 -5
  92. package/dist/{chunk-XHVQIOOF.js → chunk-YOLS2E5P.js} +156 -24
  93. package/dist/{chunk-442JNXRM.js → chunk-ZBAF6L74.js} +1 -1
  94. package/dist/{clean-EUKURSX2.js → clean-7OBS6NMK.js} +20 -18
  95. package/dist/cli.js +53 -53
  96. package/dist/{cloud-LJDRNQ2N.js → cloud-JFL6IMUV.js} +4 -4
  97. package/dist/{cloudrun-AXVFD6KV.js → cloudrun-GHA4FXS3.js} +10 -8
  98. package/dist/{compare-T3LMATAF.js → compare-UFTPPNLD.js} +31 -30
  99. package/dist/{compiler-KH6DMHIJ.js → compiler-6LUGBYWD.js} +8 -6
  100. package/dist/{component-2FOHCMP2.js → component-4W3MT53Y.js} +5 -4
  101. package/dist/{compositions-REQ6ARAO.js → compositions-63M4AHPA.js} +18 -16
  102. package/dist/{delete-KEPP2QAZ.js → delete-XCSORSYR.js} +2 -2
  103. package/dist/{deploy-N756FEME.js → deploy-JUC2BVCE.js} +72 -20
  104. package/dist/{deterministicFonts-4FULD3AS.js → deterministicFonts-HQYCUUAL.js} +5 -3
  105. package/dist/{dist-TFHABY7N.js → dist-6JMYDD7F.js} +4 -3
  106. package/dist/{dist-5ULOGA6A.js → dist-SOMNYPEE.js} +12 -4
  107. package/dist/{doctor-2SJPC4WZ.js → doctor-LZ5KMUGS.js} +15 -13
  108. package/dist/{dom-37K6YOH4.js → dom-VFHEO7VM.js} +3 -2
  109. package/dist/{events-24ZE2PKB.js → events-DSJDLP3V.js} +3 -3
  110. package/dist/{events-U53QH4XZ.js → events-XN26WXN3.js} +2 -2
  111. package/dist/{feedback-QFMLDLUN.js → feedback-VZZT77OU.js} +11 -9
  112. package/dist/{ffmpeg-7XNWNO7M.js → ffmpeg-TU5BPXP6.js} +11 -9
  113. package/dist/{figma-B4JO44CV.js → figma-BYBMKBNS.js} +3 -3
  114. package/dist/fontLocalizeCli.js +15 -13
  115. package/dist/{get-7CFVCINR.js → get-JAKXQVNF.js} +2 -2
  116. package/dist/{gpuPolicy-MU7CFSAF.js → gpuPolicy-A6BRKFTK.js} +11 -9
  117. package/dist/{grade-compare-Q23U2HGS.js → grade-compare-6TLS63GE.js} +32 -31
  118. package/dist/{help-M67MEDV3.js → help-WMABNXSF.js} +1 -1
  119. package/dist/{history-I2PZXOFL.js → history-PNOTK4KM.js} +6 -6
  120. package/dist/hyperframe.manifest.json +1 -1
  121. package/dist/hyperframe.runtime.iife.js +65 -65
  122. package/dist/hyperframes-player.global.js +1 -1
  123. package/dist/{info-Z2MX54IE.js → info-457IZRNA.js} +14 -12
  124. package/dist/{init-SWH5KZO2.js → init-QNOPZRQJ.js} +32 -30
  125. package/dist/{inspect-WBBDB3YS.js → inspect-4PECXE65.js} +32 -31
  126. package/dist/inspection.js +2088 -0
  127. package/dist/{installer-DQIHGUBJ.js → installer-K6VCZN74.js} +8 -6
  128. package/dist/{keyframes-PSNEUS6P.js → keyframes-KBR4RHQO.js} +12 -11
  129. package/dist/{lambda-KSZFMQ3L.js → lambda-FSC3XJOQ.js} +26 -12
  130. package/dist/{layout-AAOI7W2M.js → layout-PFXAKL65.js} +32 -31
  131. package/dist/{lint-GGNVITIK.js → lint-MR7WHCBO.js} +10 -9
  132. package/dist/{lintProject-Q36Y3AHA.js → lintProject-4IVYXS5J.js} +4 -3
  133. package/dist/{list-OFPDL2AM.js → list-OCSE7GSX.js} +2 -2
  134. package/dist/live-LAHBXVK2.js +4165 -0
  135. package/dist/{login-MZAHGGP4.js → login-M4L3MHVL.js} +4 -4
  136. package/dist/{manager-ZOFTZTRY.js → manager-G6G2WQU3.js} +12 -10
  137. package/dist/{media-treatment-PF67GSUD.js → media-treatment-6ATFI5M2.js} +18 -16
  138. package/dist/{models-WR7CL54R.js → models-NPSWNLVS.js} +15 -13
  139. package/dist/{motionShot-ISLDWLIU.js → motionShot-HVPC2V7Q.js} +19 -18
  140. package/dist/{normalize-FASIPBUM.js → normalize-QJVXFMWO.js} +3 -2
  141. package/dist/{normalize-audio-D7AH5GFZ.js → normalize-audio-YEEAY2TB.js} +13 -11
  142. package/dist/{open-HPVBB2CX.js → open-6LSE4QDQ.js} +15 -13
  143. package/dist/{parakeetRunner-P6PE4WXG.js → parakeetRunner-HMDK2MEQ.js} +16 -14
  144. package/dist/{pipeline-XKBZG2CM.js → pipeline-GQV2DL2T.js} +12 -10
  145. package/dist/{play-QXHO47ZH.js → play-NORPMDGV.js} +23 -21
  146. package/dist/{preflight-KZCU66ES.js → preflight-SDPP63GU.js} +12 -10
  147. package/dist/{present-ERGC5PR4.js → present-BVPAEHE6.js} +19 -17
  148. package/dist/{preview-AGTOQIE7.js → preview-C762R2VY.js} +22 -20
  149. package/dist/{producer-4ONVM5A2.js → producer-XXFVYAW6.js} +1 -1
  150. package/dist/{projectConfig-7T4VY6RJ.js → projectConfig-72HEHSHM.js} +10 -8
  151. package/dist/{publication-J5TS5VR3.js → publication-QOK2NB7H.js} +6 -4
  152. package/dist/{publish-BSOVXRF4.js → publish-OVCPM2R4.js} +14 -12
  153. package/dist/{remove-background-645NVCGL.js → remove-background-BK7G24LO.js} +13 -11
  154. package/dist/{render-55TYPJ5U.js → render-3RV5ZZHB.js} +20 -16
  155. package/dist/{render-R3L44QAP.js → render-BA4DJGH2.js} +34 -32
  156. package/dist/{render-IAVH33YG.js → render-KCRWPUSH.js} +20 -18
  157. package/dist/{render-batch-JWWLQ7ZC.js → render-batch-EKMNALAK.js} +20 -16
  158. package/dist/renderSetupWorker.js +4 -3
  159. package/dist/{resolver-DBAFWC4F.js → resolver-ZQAEKX2N.js} +8 -6
  160. package/dist/{sherpa-UPWG6TKY.js → sherpa-UPEEZCVJ.js} +15 -13
  161. package/dist/skills/hyperframes-cli/references/lambda.md +1 -0
  162. package/dist/{skills-ILH52UL4.js → skills-EBCABDEA.js} +5 -5
  163. package/dist/{skillsUpdateCheck-ZHFDGMEL.js → skillsUpdateCheck-2TBQ3R7X.js} +3 -3
  164. package/dist/{snapshot-WMVHIQVQ.js → snapshot-KRDQ6UFY.js} +37 -36
  165. package/dist/{src-HPLELQRK.js → src-FMPMLWOE.js} +10 -8
  166. package/dist/{src-46QTOHZE.js → src-HODRARUH.js} +16 -14
  167. package/dist/{staticProjectServer-FHP2YQFV.js → staticProjectServer-NBWPYBIH.js} +20 -19
  168. package/dist/studio/assets/{hyperframes-player-BNeO6YSP.js → hyperframes-player-C3pgGOtp.js} +1 -1
  169. package/dist/studio/assets/{index-DiNYtcMK.js → index-5EFQxr70.js} +1 -1
  170. package/dist/studio/assets/{index-CZWE0FI8.js → index-BbcMyD3j.js} +120 -120
  171. package/dist/studio/index.html +1 -1
  172. package/dist/{studio-api-5YHQ4Y2D.js → studio-api-BOV2DTPC.js} +13 -11
  173. package/dist/{studioServer-P6IC76SV.js → studioServer-TSKSIQC3.js} +51 -50
  174. package/dist/{telemetry-WZ7OGFWQ.js → telemetry-RLKGEBGR.js} +3 -3
  175. package/dist/{timeline-U6S7BGMI.js → timeline-ADFTKSNX.js} +24 -22
  176. package/dist/{tokens-FPUYNZSV.js → tokens-2NKS4KAO.js} +4 -3
  177. package/dist/{transcribe-DZHTKXI5.js → transcribe-63XQBLF3.js} +14 -12
  178. package/dist/{transcribe-DJX4E2PE.js → transcribe-AHNMYPY4.js} +21 -19
  179. package/dist/{updateCheck-2LHWRDE7.js → updateCheck-XDYXIVKF.js} +2 -2
  180. package/dist/{upgrade-WAQHCAUS.js → upgrade-GK2RSMPV.js} +2 -2
  181. package/dist/{urlDownloader-HZQPXQET.js → urlDownloader-X2B7NQSQ.js} +10 -8
  182. package/dist/{validate-D6XJ7OSS.js → validate-UN4RB6KN.js} +26 -25
  183. package/dist/{video-A4CQ4WDL.js → video-QRWQLU5O.js} +11 -9
  184. package/dist/warmCheck.js +40 -39
  185. package/package.json +2 -2
  186. package/dist/chunk-JXLHLR26.js +0 -40
  187. package/dist/chunk-ZKHXN2BV.js +0 -3983
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-DWULQYOQ.js";
13
+ } from "./chunk-RWHMKGJA.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -4,12 +4,12 @@ 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
+ ensureDOMParser
9
+ } from "./chunk-ZBAF6L74.js";
7
10
  import {
8
11
  errorBox
9
12
  } from "./chunk-K2FLNJVB.js";
10
- import {
11
- ensureDOMParser
12
- } from "./chunk-442JNXRM.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-JVBRJMOP.js";
@@ -19,10 +19,10 @@ import {
19
19
  import {
20
20
  formatVariableValidationIssue,
21
21
  validateVariables
22
- } from "./chunk-74UH2KGI.js";
22
+ } from "./chunk-FRXPZCEP.js";
23
23
  import {
24
24
  extractCompositionMetadata
25
- } from "./chunk-MSGWR7WP.js";
25
+ } from "./chunk-SVVAUJPL.js";
26
26
 
27
27
  // src/utils/variables.ts
28
28
  import { readFileSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-2BGOB2QK.js";
10
10
  import {
11
11
  parseHTML
12
- } from "./chunk-SDYDNHEE.js";
12
+ } from "./chunk-GWTIFRF5.js";
13
13
 
14
14
  // src/utils/mountedCompositions.ts
15
15
  import { existsSync, readFileSync } from "fs";
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ambiguousIssue,
9
9
  loadBrowserScript
10
- } from "./chunk-TAXGZAXM.js";
10
+ } from "./chunk-VYFMJ2HM.js";
11
11
  import {
12
12
  auditClipDurations,
13
13
  shouldIgnoreHttpError,
14
14
  shouldIgnoreRequestFailure
15
- } from "./chunk-QTWSMJ22.js";
15
+ } from "./chunk-JVWPKIVV.js";
16
16
  import {
17
17
  serveStaticProjectHtml
18
- } from "./chunk-A7YO6YSD.js";
18
+ } from "./chunk-TT6HSBYK.js";
19
19
  import {
20
20
  STUDIO_PREVIEW_CAPTURE_MODE,
21
21
  STUDIO_PREVIEW_MARK_META
22
- } from "./chunk-53E45AKI.js";
22
+ } from "./chunk-HAKKV3SY.js";
23
23
  import {
24
24
  artifactDirectory,
25
25
  finishSnapshotRun
@@ -31,7 +31,7 @@ import {
31
31
  proxyVariantFor,
32
32
  resolveProxies,
33
33
  scanProjectMediaCodecMap
34
- } from "./chunk-Q537KXWA.js";
34
+ } from "./chunk-KWQWEY6F.js";
35
35
  import {
36
36
  AUDIT_SEEK_OPTIONS,
37
37
  DEFAULT_ZOOM_PADDING_PX,
@@ -45,21 +45,21 @@ import {
45
45
  seekCompositionTimeline,
46
46
  seekInPage,
47
47
  waitForPreferredSeekTarget
48
- } from "./chunk-U2EK5MFR.js";
48
+ } from "./chunk-B7MRZJOW.js";
49
49
  import {
50
50
  BrowserCleanupError,
51
51
  closeManagedBrowser,
52
52
  onStopSignal
53
- } from "./chunk-TYRDDIIH.js";
53
+ } from "./chunk-IREQUN2P.js";
54
54
  import {
55
55
  findStageProxyBox
56
- } from "./chunk-GKXH4C2B.js";
56
+ } from "./chunk-3YZ2ESXP.js";
57
57
  import {
58
58
  resolveAutoProxy
59
- } from "./chunk-UOSTDTBF.js";
59
+ } from "./chunk-ND5ELD7A.js";
60
60
  import {
61
61
  injectTagsAtHeadStart
62
- } from "./chunk-ZKHXN2BV.js";
62
+ } from "./chunk-42DLVZNO.js";
63
63
  import {
64
64
  normalizeErrorMessage
65
65
  } from "./chunk-T2EUWCJE.js";
@@ -198,6 +198,69 @@ import { existsSync, mkdirSync, writeFileSync } from "fs";
198
198
  import os from "os";
199
199
  import { join, resolve as resolve2 } from "path";
200
200
 
201
+ // src/utils/checkFindingInspect.ts
202
+ import { realpathSync } from "fs";
203
+ var runnerFor = (page) => ({
204
+ run: (fn, arg) => page.evaluate(fn, arg)
205
+ });
206
+ async function prepareFindingInspector(projectDir, bundle) {
207
+ let live;
208
+ try {
209
+ const { fingerprint, prepareLiveInspection } = await import("./live-LAHBXVK2.js");
210
+ const project = realpathSync(projectDir);
211
+ const sourceVersion = fingerprint(project);
212
+ const provenance = [];
213
+ const reads = /* @__PURE__ */ new Set();
214
+ const html = await bundle({
215
+ scriptProvenance: (script) => provenance.push(script),
216
+ onRead: (path) => reads.add(path)
217
+ });
218
+ live = prepareLiveInspection(project, html, provenance, sourceVersion, [...reads]);
219
+ } catch (error) {
220
+ return failedInspector(error);
221
+ }
222
+ let failure;
223
+ return {
224
+ html: live.html,
225
+ async ready(server) {
226
+ try {
227
+ live.finalizeDocument(await servedIndexHtml(server));
228
+ } catch (error) {
229
+ failure = error;
230
+ }
231
+ },
232
+ async inspect(page, target) {
233
+ if (failure !== void 0) return { error: normalizeErrorMessage(failure) };
234
+ try {
235
+ const report = await live.inspect(runnerFor(page), {
236
+ targets: [target],
237
+ descendants: false
238
+ });
239
+ if ("selector" in target && report.results.some((result) => result.candidates.length + result.candidatesOmitted > 1)) {
240
+ return { error: `ambiguous_selector: ${target.selector} matches multiple elements` };
241
+ }
242
+ return report;
243
+ } catch (error) {
244
+ return { error: normalizeErrorMessage(error) };
245
+ }
246
+ }
247
+ };
248
+ }
249
+ function failedInspector(error) {
250
+ const inspect = { error: normalizeErrorMessage(error) };
251
+ return { ready: async () => {
252
+ }, inspect: async () => inspect };
253
+ }
254
+ async function servedIndexHtml(server) {
255
+ if (server.answer) {
256
+ const response2 = await server.answer({ method: "GET", path: "/", headers: {} });
257
+ return response2.body.toString("utf8");
258
+ }
259
+ const response = await fetch(server.url);
260
+ if (!response.ok) throw new Error(`check server answered ${response.status} for its page`);
261
+ return response.text();
262
+ }
263
+
201
264
  // src/utils/gsapTweenTails.ts
202
265
  var TWEEN_TAIL_WINDOW = 0.25;
203
266
  function findTweenTails(records) {
@@ -310,6 +373,82 @@ function collectTweenRecords() {
310
373
  );
311
374
  }
312
375
 
376
+ // src/utils/contrastMotion.ts
377
+ var AMBIENT_TWEEN_SECONDS = 4;
378
+ function isAmbientTween(tween) {
379
+ return tween.infiniteAncestor || tween.repeat !== 0 || tween.duration >= AMBIENT_TWEEN_SECONDS;
380
+ }
381
+ function measuredInMotion(sample) {
382
+ if (Math.round(sample.opacity * 1e3) < 1e3) return true;
383
+ return sample.tweens.some((tween) => !isAmbientTween(tween) && tween.active);
384
+ }
385
+ function readContrastMotion() {
386
+ const restores = Reflect.get(window, "__contrastAuditRestores");
387
+ const registry = Reflect.get(window, "__timelines");
388
+ const timelines = Object.values(typeof registry === "object" && registry ? registry : {}).filter(
389
+ (timeline) => typeof timeline?.getChildren === "function" && typeof timeline.time === "function"
390
+ );
391
+ const registered = new Set(timelines);
392
+ const byTarget = /* @__PURE__ */ new Map();
393
+ function nestedInAnother(timeline) {
394
+ for (let parent = timeline.parent; parent; parent = parent.parent) {
395
+ if (registered.has(parent)) return true;
396
+ }
397
+ return false;
398
+ }
399
+ function activeInRoot(animation, root) {
400
+ if (animation === root) return true;
401
+ const parent = animation.parent;
402
+ if (!parent || animation.paused() || animation.timeScale() === 0) return false;
403
+ const time = parent.time();
404
+ return animation.startTime() <= time + 1e-6 && time < animation.endTime() - 1e-6 && activeInRoot(parent, root);
405
+ }
406
+ function hasInfiniteAncestor(animation, root) {
407
+ for (let parent = animation.parent; parent; parent = parent.parent) {
408
+ if (parent.repeat() === -1) return true;
409
+ if (parent === root) break;
410
+ }
411
+ return false;
412
+ }
413
+ function addTweens(timeline) {
414
+ for (const tween of timeline.getChildren(true, true, false)) {
415
+ const total = tween.totalDuration();
416
+ if (!(total > 0)) continue;
417
+ const state = {
418
+ active: activeInRoot(tween, timeline),
419
+ infiniteAncestor: hasInfiniteAncestor(tween, timeline),
420
+ duration: tween.duration(),
421
+ repeat: tween.repeat()
422
+ };
423
+ for (const target of tween.targets()) {
424
+ if (target instanceof Element)
425
+ byTarget.set(target, [...byTarget.get(target) ?? [], state]);
426
+ }
427
+ }
428
+ }
429
+ function sampleOf(element) {
430
+ if (!(element instanceof Element)) return null;
431
+ const tweens = [];
432
+ let opacity = 1;
433
+ for (let node = element; node; node = node.parentElement) {
434
+ tweens.push(...byTarget.get(node) ?? []);
435
+ const own = Number.parseFloat(getComputedStyle(node).opacity);
436
+ if (Number.isFinite(own)) opacity *= own;
437
+ }
438
+ return tweens.length > 0 ? { opacity, tweens } : null;
439
+ }
440
+ for (const timeline of timelines) {
441
+ try {
442
+ if (!nestedInAnother(timeline)) addTweens(timeline);
443
+ } catch {
444
+ continue;
445
+ }
446
+ }
447
+ return (Array.isArray(restores) ? restores : []).map(
448
+ (restore) => typeof restore === "object" && restore ? sampleOf(Reflect.get(restore, "el")) : null
449
+ );
450
+ }
451
+
313
452
  // src/utils/checkTypes.ts
314
453
  function rectToBbox(rect) {
315
454
  return { x: rect.left, y: rect.top, width: rect.width, height: rect.height };
@@ -434,9 +573,12 @@ function proxyFailedDraft(message) {
434
573
  return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
435
574
  }
436
575
  async function loadCheckHtmlWithDeferredMedia(dir) {
437
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-G3UT65XI.js");
576
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-INYZKCJN.js");
577
+ return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
578
+ }
579
+ function withCapturePreviewMark(html) {
438
580
  return injectTagsAtHeadStart(
439
- await bundleWithLocalizedFonts(dir),
581
+ html,
440
582
  `<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
441
583
  );
442
584
  }
@@ -493,7 +635,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
493
635
  ).map((draft) => runtimeFinding(draft, rootAnchor))
494
636
  }));
495
637
  const launchSettleMs = Date.now() - launchSettleStart;
496
- const { analyzeClipMediaFit } = await import("./src-HPLELQRK.js");
638
+ const { analyzeClipMediaFit } = await import("./src-FMPMLWOE.js");
497
639
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
498
640
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
499
641
  }
@@ -610,7 +752,62 @@ function mergeHelperDrafts(primary, helper) {
610
752
  }
611
753
  async function captureFindingCrops(project, options, requests, deadline) {
612
754
  if (requests.length === 0) return [];
613
- const html = await loadCheckHtmlWithDeferredMedia(project.dir);
755
+ return withFindingCapturePage(project, options, deadline, "crops", async (page, snapshotDir) => {
756
+ const written = [];
757
+ for (const request of requests) {
758
+ await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
759
+ const canvas = await page.evaluate(() => ({
760
+ width: window.innerWidth,
761
+ height: window.innerHeight
762
+ }));
763
+ const region = padCropRegion(request.bbox, canvas, DEFAULT_ZOOM_PADDING_PX);
764
+ const buffer = await captureRegionCrop(page, region, DEFAULT_ZOOM_SCALE);
765
+ writeFileSync(join(snapshotDir, request.filename), buffer);
766
+ written.push(join(snapshotDir, request.filename));
767
+ }
768
+ return written;
769
+ });
770
+ }
771
+ async function captureFindingFrames(project, options, requests, deadline) {
772
+ if (requests.length === 0) return { written: [], inspected: [] };
773
+ const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
774
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-INYZKCJN.js");
775
+ return withCapturePreviewMark(
776
+ await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
777
+ );
778
+ }) : void 0;
779
+ deadline?.signal.throwIfAborted();
780
+ return withFindingCapturePage(
781
+ project,
782
+ options,
783
+ deadline,
784
+ "frames",
785
+ async (page, snapshotDir, server) => {
786
+ await inspector?.ready(server);
787
+ deadline?.signal.throwIfAborted();
788
+ const written = [];
789
+ const inspected = [];
790
+ for (const request of requests) {
791
+ deadline?.enter("frames");
792
+ await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
793
+ const buffer = await page.screenshot({ type: "png", optimizeForSpeed: true });
794
+ writeFileSync(join(snapshotDir, request.filename), buffer);
795
+ written.push(join(snapshotDir, request.filename));
796
+ if (!inspector) continue;
797
+ for (const target of request.inspect ?? []) {
798
+ deadline?.enter("frames");
799
+ const inspect = await inspector.inspect(page, target);
800
+ deadline?.signal.throwIfAborted();
801
+ inspected.push({ time: request.time, target, inspect });
802
+ }
803
+ }
804
+ return { written, inspected };
805
+ },
806
+ inspector?.html
807
+ );
808
+ }
809
+ async function withFindingCapturePage(project, options, deadline, what, capture, pageHtml) {
810
+ const html = pageHtml ?? await loadCheckHtmlWithDeferredMedia(project.dir);
614
811
  const server = await serveStaticProjectHtml(
615
812
  project.dir,
616
813
  html,
@@ -619,36 +816,23 @@ async function captureFindingCrops(project, options, requests, deadline) {
619
816
  options.autoProxy
620
817
  );
621
818
  let chromeBrowser;
622
- const written = [];
623
819
  let failure = { kind: "none" };
624
820
  try {
625
821
  const session = await openSettledCompositionPage(html, server.url, {
626
822
  navigationTimeoutMs: options.timeout,
627
823
  renderReadyTimeoutMs: options.timeout,
628
- renderReadyWarningSuffix: "capturing finding crops",
824
+ renderReadyWarningSuffix: `capturing finding ${what}`,
629
825
  signal: deadline?.signal,
630
826
  onBrowser: deadline?.ownBrowser,
631
827
  onBrowserReady: deadline?.start,
632
- beforeNavigate: (page2) => deadline?.preparePage(page2),
828
+ beforeNavigate: (page) => deadline?.preparePage(page),
633
829
  browserGpuMode: options.browserGpuMode ?? resolveCliChromeGpuMode()
634
830
  });
635
831
  chromeBrowser = session.browser;
636
- const page = session.page;
637
- await waitForPreferredSeekTarget(page);
832
+ await waitForPreferredSeekTarget(session.page);
638
833
  const snapshotDir = checkSnapshotDirectory(project.dir);
639
834
  mkdirSync(snapshotDir, { recursive: true });
640
- for (const request of requests) {
641
- await seekCompositionTimeline(page, request.time, SCREENSHOT_SEEK_OPTIONS);
642
- const canvas = await page.evaluate(() => ({
643
- width: window.innerWidth,
644
- height: window.innerHeight
645
- }));
646
- const region = padCropRegion(request.bbox, canvas, DEFAULT_ZOOM_PADDING_PX);
647
- const buffer = await captureRegionCrop(page, region, DEFAULT_ZOOM_SCALE);
648
- writeFileSync(join(snapshotDir, request.filename), buffer);
649
- written.push(join(snapshotDir, request.filename));
650
- }
651
- return written;
835
+ return await capture(session.page, snapshotDir, server);
652
836
  } catch (error) {
653
837
  failure = { kind: "failed", error };
654
838
  throw error;
@@ -902,7 +1086,7 @@ function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
902
1086
  collectGeometryCandidates: (time, request) => collectGeometryCandidates(page, time, request),
903
1087
  collectMotionFrame: (time, selectors, scopes) => collectMotionFrame(page, time, selectors, scopes),
904
1088
  anchorMotionIssues: (issues) => anchorLayoutIssues(page, issues),
905
- collectContrast: (time, annotations) => collectContrast(page, time, annotations),
1089
+ collectContrast: (time, annotations, skipInMotion) => collectContrast(page, time, annotations, skipInMotion),
906
1090
  collectCraftFrame: (time) => collectCraftFrame(page, time),
907
1091
  collectCraftFilm: () => collectCraftFilm(page)
908
1092
  });
@@ -1365,10 +1549,12 @@ async function compositionBbox(page, selector) {
1365
1549
  return rect ? { x: rect.x, y: rect.y, width: rect.width, height: rect.height } : { x: 0, y: 0, width: 0, height: 0 };
1366
1550
  }, selector);
1367
1551
  }
1368
- async function collectContrast(page, time, snapshotAnnotations) {
1552
+ async function collectContrast(page, time, snapshotAnnotations, skipInMotion = false) {
1369
1553
  let prepared = [];
1370
1554
  try {
1371
- prepared = parsePreparedContrast(await prepareContrast(page, time));
1555
+ const candidates = await prepareContrast(page, time);
1556
+ const motion = skipInMotion ? await page.evaluate(readContrastMotion).catch(() => []) : [];
1557
+ prepared = parsePreparedContrast(candidates, motion);
1372
1558
  if (prepared.length === 0 && !snapshotAnnotations) return { entries: [] };
1373
1559
  const { shot, region } = await measurementShot(page, prepared);
1374
1560
  const raw = await finishContrast(
@@ -1541,13 +1727,21 @@ async function finishContrast(page, screenshot, time, candidates, region) {
1541
1727
  { screenshot, time, candidates, region: region ?? null }
1542
1728
  );
1543
1729
  }
1544
- function parsePreparedContrast(raw) {
1545
- return raw.flatMap((value) => {
1730
+ function parsePreparedContrast(raw, motion) {
1731
+ return raw.flatMap((value, index) => {
1546
1732
  if (!isRecord(value)) return [];
1547
1733
  const raw2 = Reflect.get(value, "candidate");
1548
1734
  const candidate = parseContrastCandidate(raw2);
1549
1735
  const anchor = parseAnchor(Reflect.get(value, "anchor"));
1550
- return candidate && anchor ? [{ raw: raw2, candidate, anchor, knownBackdrop: knownBackdrop(raw2) }] : [];
1736
+ return candidate && anchor ? [
1737
+ {
1738
+ raw: raw2,
1739
+ candidate,
1740
+ anchor,
1741
+ knownBackdrop: knownBackdrop(raw2),
1742
+ motion: motion[index] ?? null
1743
+ }
1744
+ ] : [];
1551
1745
  });
1552
1746
  }
1553
1747
  function knownBackdrop(raw) {
@@ -1583,7 +1777,9 @@ function joinContrastEntries(finished, prepared) {
1583
1777
  (candidate) => candidate.candidate.selector === entry.selector && candidate.candidate.text === entry.text
1584
1778
  );
1585
1779
  const match = index >= 0 ? remaining.splice(index, 1)[0] : void 0;
1586
- return match ? [{ ...entry, ...match.anchor }] : [];
1780
+ if (!match) return [];
1781
+ if (!entry.wcagAA && match.motion && measuredInMotion(match.motion)) return [];
1782
+ return [{ ...entry, ...match.anchor }];
1587
1783
  });
1588
1784
  }
1589
1785
  function parseLayoutIssue(value) {
@@ -1842,6 +2038,7 @@ export {
1842
2038
  samplingBrowserCount,
1843
2039
  mergeHelperDrafts,
1844
2040
  captureFindingCrops,
2041
+ captureFindingFrames,
1845
2042
  keepBrokenImageAborts,
1846
2043
  dropFailedProxyEchoes,
1847
2044
  createPageDriver,
@@ -4,12 +4,12 @@ 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
- ensureDOMParser
9
- } from "./chunk-442JNXRM.js";
10
7
  import {
11
8
  quantizePreviewProxyBox
12
- } from "./chunk-74UH2KGI.js";
9
+ } from "./chunk-FRXPZCEP.js";
10
+ import {
11
+ parseHTML
12
+ } from "./chunk-GWTIFRF5.js";
13
13
 
14
14
  // src/utils/compositionViewport.ts
15
15
  var DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
@@ -21,8 +21,7 @@ function parseViewportDimension(value) {
21
21
  return Math.min(parsed, MAX_VIEWPORT_DIMENSION);
22
22
  }
23
23
  function findCompositionDimensions(html) {
24
- ensureDOMParser();
25
- const doc = new DOMParser().parseFromString(html, "text/html");
24
+ const { document: doc } = parseHTML(html);
26
25
  const root = doc.querySelector("[data-composition-id][data-width][data-height]");
27
26
  if (!root) return null;
28
27
  const width = parseViewportDimension(root.getAttribute("data-width"));