hyperframes 0.8.200 → 0.8.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/{add-MFJDOJHQ.js → add-33XNCMY4.js} +14 -17
  2. package/dist/{animatedGifPrep-WBZ2VVP6.js → animatedGifPrep-MI7Z4OYQ.js} +8 -11
  3. package/dist/api.js +16 -19
  4. package/dist/{asset-PTAQLOR6.js → asset-RMRQN24O.js} +2 -2
  5. package/dist/{assetCataloger-N3UGZ2RC.js → assetCataloger-KWTQNFUU.js} +8 -11
  6. package/dist/{audio-CPHWRLC4.js → audio-SQDZZS6X.js} +33 -31
  7. package/dist/{auth-ZWOJIYK7.js → auth-PNC6K5ZD.js} +2 -2
  8. package/dist/{autoUpdate-DO74673A.js → autoUpdate-MBZFLUF2.js} +2 -2
  9. package/dist/{backgroundChecks-HOAN7YB6.js → backgroundChecks-ZMSPA6TK.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-AZFHTPSV.js → batchRender-2MMOZRMW.js} +5 -7
  12. package/dist/{beats-JRMM6JQQ.js → beats-GDLNPR4A.js} +32 -23
  13. package/dist/{benchmark-2PEQUV7H.js → benchmark-AUKB3XDF.js} +11 -13
  14. package/dist/{browser-2D6IHFO6.js → browser-C3AU5TST.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-ERB43NFP.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
  16. package/dist/{capture-WNC2DWF7.js → capture-EKNPCFPF.js} +15 -17
  17. package/dist/{capture-3ODEX55X.js → capture-XGBPNGC5.js} +2 -2
  18. package/dist/{captureCompositionFrame-JXXTHR7J.js → captureCompositionFrame-4HHLPTDH.js} +13 -16
  19. package/dist/{catalog-MHTRTKSY.js → catalog-HLDNEJX3.js} +14 -17
  20. package/dist/{catch-up-XNDRKMKL.js → catch-up-LRFV4LJO.js} +5 -5
  21. package/dist/{check-7IB355TM.js → check-XWHWGNYE.js} +39 -42
  22. package/dist/{checkBrowser-E3ZCTAGY.js → checkBrowser-KSOBXPJ3.js} +34 -37
  23. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  24. package/dist/{chunk-5ULL3P6S.js → chunk-2FA53V5S.js} +2 -2
  25. package/dist/{chunk-PFFR4NQV.js → chunk-3J5KO4EJ.js} +8 -10
  26. package/dist/{chunk-FTD5QXGF.js → chunk-47NZWTJL.js} +2 -2
  27. package/dist/{chunk-HXHSGDU6.js → chunk-53E45AKI.js} +60 -34
  28. package/dist/{chunk-TOC6E65N.js → chunk-6UFEOVR5.js} +2 -2
  29. package/dist/{chunk-I4VEFPZE.js → chunk-6XGO7ZKS.js} +1 -1
  30. package/dist/{chunk-G7RKSAKS.js → chunk-74UH2KGI.js} +28 -6
  31. package/dist/{chunk-7LRVGYKZ.js → chunk-7EJ7OZGC.js} +16 -3
  32. package/dist/{chunk-7D7V3UDI.js → chunk-7WEGIXI3.js} +2 -2
  33. package/dist/{chunk-NC3TVM27.js → chunk-A7YO6YSD.js} +6 -6
  34. package/dist/{chunk-OE7AUN6G.js → chunk-AK2MOAJY.js} +82 -34
  35. package/dist/{chunk-3XXSRN36.js → chunk-B67P2WP3.js} +2 -2
  36. package/dist/chunk-B7CYKBXQ.js +36 -0
  37. package/dist/{chunk-63JJFXAD.js → chunk-CD5ZU6PN.js} +6 -6
  38. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  39. package/dist/{chunk-Q5IJYX7X.js → chunk-DS3XITZ5.js} +2 -2
  40. package/dist/{chunk-XV7ZNBVY.js → chunk-DWULQYOQ.js} +3 -3
  41. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  42. package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
  43. package/dist/{chunk-57Y5X4VU.js → chunk-GC6N2LH5.js} +10 -12
  44. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  45. package/dist/{chunk-ZFBET3PD.js → chunk-GKXH4C2B.js} +1 -1
  46. package/dist/{chunk-63S4VUOL.js → chunk-GNX3BCQP.js} +1 -1
  47. package/dist/{chunk-HBRPELT6.js → chunk-I4DHHX7E.js} +3 -3
  48. package/dist/{chunk-TDF2O2RM.js → chunk-IDRUJFT4.js} +2 -2
  49. package/dist/{chunk-H2X4TQVK.js → chunk-IFOZZYHK.js} +7 -7
  50. package/dist/{chunk-VFLBOKDI.js → chunk-IHQBTZHE.js} +3 -3
  51. package/dist/{chunk-KPUTRG54.js → chunk-IIH24PKY.js} +2 -2
  52. package/dist/{chunk-BIZPUWBG.js → chunk-ITJAHKYO.js} +1 -1
  53. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  54. package/dist/{chunk-QP4UWICL.js → chunk-JOI7TNCX.js} +2 -2
  55. package/dist/{chunk-RFQ6BIRL.js → chunk-JXLHLR26.js} +1 -1
  56. package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
  57. package/dist/{chunk-733CEBPF.js → chunk-L33EDCSR.js} +5 -5
  58. package/dist/{chunk-7NWSVRFE.js → chunk-LVEXHBSH.js} +1 -1
  59. package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
  60. package/dist/{chunk-ACH5ZR7X.js → chunk-ORMTNJBS.js} +3 -3
  61. package/dist/{chunk-DRTUJVLE.js → chunk-Q537KXWA.js} +153 -44
  62. package/dist/{chunk-7WV27W7R.js → chunk-Q6SHXSZX.js} +2 -2
  63. package/dist/{chunk-QDK7XCOB.js → chunk-QB4K2EWI.js} +1 -1
  64. package/dist/{chunk-BQA3X7TI.js → chunk-QSFWGZG6.js} +4 -6
  65. package/dist/{chunk-D35MPIGJ.js → chunk-QTWSMJ22.js} +15 -15
  66. package/dist/{chunk-4UPGPCMB.js → chunk-QXBZ6VBL.js} +1 -1
  67. package/dist/{chunk-FZ3R5XOH.js → chunk-QYTGUWNF.js} +1 -1
  68. package/dist/{chunk-JBQNDHRT.js → chunk-RVKJDAYE.js} +1 -1
  69. package/dist/{chunk-32V3VHMK.js → chunk-SEAHCCQ4.js} +6 -43
  70. package/dist/{chunk-GR2G5L2O.js → chunk-SGKG7DNX.js} +3 -3
  71. package/dist/{chunk-KVFSXCN6.js → chunk-SIZYTGG4.js} +1 -1
  72. package/dist/{chunk-3YGSZSEN.js → chunk-SZNCAINN.js} +1 -1
  73. package/dist/{chunk-I6A2B3IJ.js → chunk-T33GLS6C.js} +3 -3
  74. package/dist/{chunk-OYVVDYM6.js → chunk-TAXGZAXM.js} +10 -10
  75. package/dist/{chunk-FTUKOLLB.js → chunk-TOT3CLUK.js} +1 -1
  76. package/dist/{chunk-TTFHBTXQ.js → chunk-TYRDDIIH.js} +1 -1
  77. package/dist/{chunk-ML4IULLQ.js → chunk-U2EK5MFR.js} +10 -10
  78. package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
  79. package/dist/{chunk-UUFY6A7I.js → chunk-UKB62QOT.js} +131 -92
  80. package/dist/{chunk-4VZAIVZQ.js → chunk-UOSTDTBF.js} +1 -1
  81. package/dist/{chunk-IW4LKYDY.js → chunk-VCVUEK65.js} +3 -3
  82. package/dist/{chunk-TUVNQA5B.js → chunk-VF2VMKNI.js} +3 -3
  83. package/dist/{chunk-QYQY5ACN.js → chunk-VKTUZP7U.js} +1 -1
  84. package/dist/{chunk-ISN6BAZX.js → chunk-WO3XZ6HC.js} +1 -1
  85. package/dist/{chunk-HN6TP4D2.js → chunk-X72DJZCM.js} +1 -1
  86. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  87. package/dist/{chunk-BERGVZKN.js → chunk-XG365L6T.js} +1 -1
  88. package/dist/{chunk-GYSPF5ZT.js → chunk-XHVQIOOF.js} +19 -19
  89. package/dist/{chunk-OMXXJSCK.js → chunk-XONIZ5CH.js} +13 -13
  90. package/dist/{chunk-2LKHE32Z.js → chunk-YBJECXQJ.js} +5 -5
  91. package/dist/{chunk-WAG4AX5C.js → chunk-YTBE4JCX.js} +1 -1
  92. package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
  93. package/dist/chunk-ZKHXN2BV.js +3983 -0
  94. package/dist/{clean-BOYUTBAU.js → clean-EUKURSX2.js} +21 -24
  95. package/dist/cli.js +54 -54
  96. package/dist/{cloud-3O2MEZO4.js → cloud-LJDRNQ2N.js} +4 -4
  97. package/dist/{cloudrun-MCTN22O6.js → cloudrun-AXVFD6KV.js} +7 -9
  98. package/dist/{compare-A57RHCPB.js → compare-T3LMATAF.js} +31 -34
  99. package/dist/{compiler-LVNWLZCX.js → compiler-KH6DMHIJ.js} +6 -10
  100. package/dist/{component-MIJC3LWO.js → component-2FOHCMP2.js} +3 -3
  101. package/dist/{compositions-OUNZAEC3.js → compositions-REQ6ARAO.js} +13 -16
  102. package/dist/{delete-X6Q3S3SL.js → delete-KEPP2QAZ.js} +2 -2
  103. package/dist/{deploy-XXMIXGUF.js → deploy-N756FEME.js} +1 -1
  104. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
  105. package/dist/{dist-2UO4RVFN.js → dist-5ULOGA6A.js} +28 -16
  106. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  107. package/dist/{doctor-ASSDEPCO.js → doctor-2SJPC4WZ.js} +14 -17
  108. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  109. package/dist/{events-DVWSV3TQ.js → events-24ZE2PKB.js} +4 -4
  110. package/dist/{events-4ULC5VUK.js → events-U53QH4XZ.js} +3 -3
  111. package/dist/{feedback-OB3NJPNF.js → feedback-QFMLDLUN.js} +10 -12
  112. package/dist/{ffmpeg-JH3JXES2.js → ffmpeg-7XNWNO7M.js} +8 -11
  113. package/dist/{figma-GV4OGXC2.js → figma-B4JO44CV.js} +3 -3
  114. package/dist/fontLocalizeCli.js +11 -14
  115. package/dist/{get-FLMCUJGR.js → get-7CFVCINR.js} +2 -2
  116. package/dist/{gpuPolicy-RZ2OUY4M.js → gpuPolicy-MU7CFSAF.js} +8 -11
  117. package/dist/{grade-compare-O62JAOA7.js → grade-compare-Q23U2HGS.js} +32 -35
  118. package/dist/{help-6POZ4GNV.js → help-M67MEDV3.js} +1 -1
  119. package/dist/{history-72ZIF5WR.js → history-I2PZXOFL.js} +8 -8
  120. package/dist/hyperframe.manifest.json +1 -1
  121. package/dist/hyperframe.runtime.iife.js +65 -64
  122. package/dist/hyperframes-player.global.js +3 -3
  123. package/dist/{info-GGIFZ5CT.js → info-Z2MX54IE.js} +10 -12
  124. package/dist/{init-QYRN6HG2.js → init-SWH5KZO2.js} +29 -32
  125. package/dist/{inspect-KSL4YVIU.js → inspect-WBBDB3YS.js} +32 -35
  126. package/dist/{installer-ENQCLSJQ.js → installer-DQIHGUBJ.js} +6 -9
  127. package/dist/{keyframes-6PNLGKOO.js → keyframes-PSNEUS6P.js} +7 -7
  128. package/dist/{lambda-3RFOOJV6.js → lambda-KSZFMQ3L.js} +9 -11
  129. package/dist/{layout-3XFC6N3L.js → layout-AAOI7W2M.js} +32 -35
  130. package/dist/{lint-5XGLCTV5.js → lint-GGNVITIK.js} +9 -11
  131. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  132. package/dist/{list-B76BTLOM.js → list-OFPDL2AM.js} +2 -2
  133. package/dist/{login-MNXS7GEL.js → login-MZAHGGP4.js} +4 -4
  134. package/dist/{manager-BWU4U7DV.js → manager-F34TSFV6.js} +2 -2
  135. package/dist/{manager-QZZVJV7Z.js → manager-ZOFTZTRY.js} +9 -12
  136. package/dist/{media-treatment-J3OWRCBF.js → media-treatment-PF67GSUD.js} +66 -42
  137. package/dist/{models-MCDUTV54.js → models-WR7CL54R.js} +12 -15
  138. package/dist/{motionShot-RWEH3VWI.js → motionShot-ISLDWLIU.js} +17 -20
  139. package/dist/{normalize-audio-N7VRZODX.js → normalize-audio-D7AH5GFZ.js} +44 -26
  140. package/dist/{open-ROUFAVKD.js → open-HPVBB2CX.js} +14 -17
  141. package/dist/{parakeetRunner-PTVV5M44.js → parakeetRunner-P6PE4WXG.js} +13 -16
  142. package/dist/{pipeline-HN5KMORF.js → pipeline-XKBZG2CM.js} +9 -12
  143. package/dist/{play-AO7AF4Y4.js → play-QXHO47ZH.js} +23 -26
  144. package/dist/{preflight-ARNDDFGX.js → preflight-KZCU66ES.js} +11 -14
  145. package/dist/{present-FBPKUC5R.js → present-ERGC5PR4.js} +19 -22
  146. package/dist/{preview-35X5G426.js → preview-AGTOQIE7.js} +20 -23
  147. package/dist/{producer-FVGPLR5E.js → producer-4ONVM5A2.js} +1 -1
  148. package/dist/{projectConfig-SRUJLOHL.js → projectConfig-7T4VY6RJ.js} +8 -11
  149. package/dist/{publication-XH2BRL3V.js → publication-J5TS5VR3.js} +4 -6
  150. package/dist/{publish-RI4ZQZNT.js → publish-BSOVXRF4.js} +11 -14
  151. package/dist/{remove-background-J22P5JFW.js → remove-background-645NVCGL.js} +10 -13
  152. package/dist/{render-UXYZN6D2.js → render-55TYPJ5U.js} +7 -9
  153. package/dist/{render-2EZQT4IS.js → render-IAVH33YG.js} +37 -33
  154. package/dist/{render-IJUKJILU.js → render-R3L44QAP.js} +34 -37
  155. package/dist/{render-batch-X34UZ442.js → render-batch-JWWLQ7ZC.js} +7 -9
  156. package/dist/renderSetupWorker.js +4 -6
  157. package/dist/{resolver-UUEIRLMY.js → resolver-DBAFWC4F.js} +6 -8
  158. package/dist/{sherpa-FI4VNAFT.js → sherpa-UPWG6TKY.js} +12 -15
  159. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  160. package/dist/skills/media-use/references/mixing.md +1 -1
  161. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  162. package/dist/{skills-LGKXQFW7.js → skills-ILH52UL4.js} +6 -6
  163. package/dist/{skillsUpdateCheck-NDPKSX3H.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
  164. package/dist/{snapshot-JM6427YW.js → snapshot-WMVHIQVQ.js} +93 -60
  165. package/dist/{src-26NBARTO.js → src-46QTOHZE.js} +10 -13
  166. package/dist/{src-WEECPY6E.js → src-HPLELQRK.js} +11 -10
  167. package/dist/{staticProjectServer-I5WGMJOV.js → staticProjectServer-FHP2YQFV.js} +19 -22
  168. package/dist/{status-SCCC7A6N.js → status-LR7VXITS.js} +1 -1
  169. package/dist/studio/assets/{hyperframes-player-LmRUJE8q.js → hyperframes-player-BNeO6YSP.js} +1 -1
  170. package/dist/studio/assets/{index-BmTWk8xf.js → index-CZWE0FI8.js} +162 -162
  171. package/dist/studio/assets/{index-CKNiEwbW.js → index-DiNYtcMK.js} +1 -1
  172. package/dist/studio/index.html +1 -1
  173. package/dist/{studio-api-N774Q4NO.js → studio-api-5YHQ4Y2D.js} +12 -15
  174. package/dist/{studioServer-KZIM5UBJ.js → studioServer-P6IC76SV.js} +53 -56
  175. package/dist/{system-HV7PYIXE.js → system-YD4AW5ZX.js} +1 -1
  176. package/dist/{telemetry-JIETM7WP.js → telemetry-WZ7OGFWQ.js} +4 -4
  177. package/dist/{timeline-JJ6JG7GQ.js → timeline-U6S7BGMI.js} +23 -25
  178. package/dist/{tokens-VOIMSCGX.js → tokens-FPUYNZSV.js} +2 -2
  179. package/dist/{transcribe-2V23EQHD.js → transcribe-DJX4E2PE.js} +18 -21
  180. package/dist/{transcribe-7BDHDQVP.js → transcribe-DZHTKXI5.js} +11 -14
  181. package/dist/{updateCheck-7B7L3UWO.js → updateCheck-2LHWRDE7.js} +2 -2
  182. package/dist/{upgrade-TUA2QZTY.js → upgrade-WAQHCAUS.js} +2 -2
  183. package/dist/{urlDownloader-CGV6EYL7.js → urlDownloader-HZQPXQET.js} +7 -10
  184. package/dist/{validate-JLCXEI2U.js → validate-D6XJ7OSS.js} +26 -29
  185. package/dist/{video-TI3EOA2D.js → video-A4CQ4WDL.js} +8 -11
  186. package/dist/warmCheck.js +39 -42
  187. package/package.json +1 -1
  188. package/dist/chunk-BSQ7XANM.js +0 -210
  189. package/dist/chunk-PKZ7RK5N.js +0 -281
  190. package/dist/chunk-PW22CDII.js +0 -3901
  191. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -87,6 +87,15 @@ async function decodeAudio(file, window = {}, probed, format = {}) {
87
87
  return { signal: { sampleRate: info.sampleRate, channels }, stream: info };
88
88
  }
89
89
 
90
+ // ../core/dist/audioSteps.js
91
+ function finish(steps) {
92
+ for (; ; ) {
93
+ const next = steps.next();
94
+ if (next.done)
95
+ return next.value;
96
+ }
97
+ }
98
+
90
99
  // ../core/dist/audioResample.js
91
100
  var ZERO_CROSSINGS = 8;
92
101
  var STEPS_PER_CROSSING = 256;
@@ -106,7 +115,8 @@ function kernelAt(x) {
106
115
  const frac = at - i;
107
116
  return KERNEL[i] * (1 - frac) + KERNEL[i + 1] * frac;
108
117
  }
109
- function resample(samples, from, to) {
118
+ var SAMPLES_PER_STEP = 4096;
119
+ function* resampleSteps(samples, from, to) {
110
120
  if (from === to)
111
121
  return samples;
112
122
  const ratio = to / from;
@@ -114,6 +124,8 @@ function resample(samples, from, to) {
114
124
  const reach = ZERO_CROSSINGS / scale;
115
125
  const out = new Float32Array(Math.floor(samples.length * ratio));
116
126
  for (let n = 0; n < out.length; n++) {
127
+ if (n % SAMPLES_PER_STEP === 0)
128
+ yield;
117
129
  const t = n / ratio;
118
130
  const last = Math.min(samples.length - 1, Math.floor(t + reach));
119
131
  let sum = 0;
@@ -199,7 +211,7 @@ function addFramePower(samples, center, window, edges, into) {
199
211
  into[b] += power / (size * size * (end - edges[b]));
200
212
  }
201
213
  }
202
- function bandPower(channels) {
214
+ function* bandPower(channels) {
203
215
  const window = hann(FRAME_SIZE);
204
216
  const edges = bandEdges();
205
217
  const hop = ANALYSIS_RATE / FRAMES_PER_SECOND;
@@ -209,6 +221,7 @@ function bandPower(channels) {
209
221
  for (const channel of channels)
210
222
  addFramePower(channel, Math.round(f * hop), window, edges, power);
211
223
  bands.push(power.map((p) => Math.log1p(1e9 * p / channels.length)));
224
+ yield;
212
225
  }
213
226
  return bands;
214
227
  }
@@ -218,7 +231,7 @@ var PITCH_CLASS = Array.from({ length: CHROMA_SIZE / 2 }, (_, bin) => {
218
231
  return -1;
219
232
  return ((Math.round(12 * Math.log2(hz / 440)) + 9) % 12 + 12) % 12;
220
233
  });
221
- function chromaFrames(channels) {
234
+ function* chromaFrames(channels) {
222
235
  const window = hann(CHROMA_SIZE);
223
236
  const hop = ANALYSIS_RATE / CHROMA_FPS;
224
237
  const re = new Float64Array(CHROMA_SIZE);
@@ -240,15 +253,18 @@ function chromaFrames(channels) {
240
253
  });
241
254
  }
242
255
  frames.push(chroma);
256
+ yield;
243
257
  }
244
258
  return frames;
245
259
  }
246
- function bandFrames(signal) {
247
- const channels = signal.channels.map((c) => resample(c, signal.sampleRate, ANALYSIS_RATE));
260
+ function* bandFrames(signal) {
261
+ const channels = [];
262
+ for (const c of signal.channels)
263
+ channels.push(yield* resampleSteps(c, signal.sampleRate, ANALYSIS_RATE));
248
264
  return {
249
265
  fps: FRAMES_PER_SECOND,
250
- bands: bandPower(channels),
251
- chroma: chromaFrames(channels),
266
+ bands: yield* bandPower(channels),
267
+ chroma: yield* chromaFrames(channels),
252
268
  chromaFps: CHROMA_FPS
253
269
  };
254
270
  }
@@ -329,7 +345,7 @@ function smoothed(curve, period) {
329
345
  return sum;
330
346
  });
331
347
  }
332
- function cumulativeScore(local, periodAt) {
348
+ function* cumulativeScore(local, periodAt) {
333
349
  const score = new Float64Array(local.length);
334
350
  const back = new Int32Array(local.length).fill(-1);
335
351
  for (let i = 0; i < local.length; i++) {
@@ -343,6 +359,7 @@ function cumulativeScore(local, periodAt) {
343
359
  }
344
360
  score[i] = local[i] + Math.max(0, best);
345
361
  back[i] = best > 0 ? from : -1;
362
+ yield;
346
363
  }
347
364
  return { score, back };
348
365
  }
@@ -370,7 +387,7 @@ function trimmed(beats, local) {
370
387
  return beats.slice(first, end);
371
388
  }
372
389
  var LOCAL_WINDOW_SECONDS = 8;
373
- function localPeriods(curve, fps, period) {
390
+ function* localPeriods(curve, fps, period) {
374
391
  const window = Math.round(LOCAL_WINDOW_SECONDS * fps);
375
392
  const hop = Math.round(fps);
376
393
  const range = {
@@ -383,6 +400,7 @@ function localPeriods(curve, fps, period) {
383
400
  const end = Math.min(curve.length, start + window);
384
401
  periods.push(beatPeriod(curve.subarray(start, end), fps, range).period);
385
402
  centres.push((start + end) / 2);
403
+ yield;
386
404
  }
387
405
  const median = periods.map((_, i) => {
388
406
  const near = periods.slice(Math.max(0, i - 2), i + 3).sort((a, b) => a - b);
@@ -400,9 +418,10 @@ function interpolate(xs, ys, x) {
400
418
  }
401
419
  return ys[ys.length - 1];
402
420
  }
403
- function beatFrames(curve, fps, period) {
421
+ function* beatFrames(curve, fps, period) {
404
422
  const local = smoothed(curve, period);
405
- const { score, back } = cumulativeScore(local, localPeriods(curve, fps, period));
423
+ const periodAt = yield* localPeriods(curve, fps, period);
424
+ const { score, back } = yield* cumulativeScore(local, periodAt);
406
425
  const beats = [];
407
426
  for (let i = lastBeat(score); i >= 0; i = back[i])
408
427
  beats.push(i);
@@ -484,14 +503,16 @@ var noRhythm = (confidence, reason = "no steady beat") => ({
484
503
  var SHORTEST_SECONDS = 6;
485
504
  var STEADY_BEAT_CONFIDENCE = 0.15;
486
505
  var beatConfidence = (clarity, lift) => round(Math.max(0, Math.min(1, clarity)) * Math.max(0, Math.min(1, lift / 3)));
487
- function rhythmOf(frames) {
506
+ function* rhythmOf(frames) {
488
507
  const curves = onsetCurves(frames);
508
+ yield;
489
509
  const { period, clarity } = beatPeriod(curves.broad, curves.fps);
510
+ yield;
490
511
  if (curves.broad.length < SHORTEST_SECONDS * curves.fps)
491
512
  return noRhythm(0, "too short for a steady beat");
492
513
  if (!curves.broad.some((v) => v > 0) || curves.broad.length < 2 * period)
493
514
  return noRhythm(0);
494
- const { frames: beatList, local } = beatFrames(curves.broad, curves.fps, period);
515
+ const { frames: beatList, local } = yield* beatFrames(curves.broad, curves.fps, period);
495
516
  const confidence = beatConfidence(clarity, onsetLift(beatList, local));
496
517
  if (beatList.length < 4 || confidence < STEADY_BEAT_CONFIDENCE)
497
518
  return noRhythm(confidence);
@@ -521,16 +542,22 @@ function tempoOf(times) {
521
542
  return { value: bpm(interval), curve };
522
543
  }
523
544
  var measured = /* @__PURE__ */ new WeakMap();
524
- function bandFramesOf(signal) {
545
+ function* measuredSteps(signal) {
525
546
  let entry = measured.get(signal);
526
547
  if (!entry)
527
- measured.set(signal, entry = { frames: bandFrames(signal) });
528
- return entry.frames;
548
+ measured.set(signal, entry = { frames: yield* bandFrames(signal) });
549
+ return entry;
550
+ }
551
+ function bandFramesOf(signal) {
552
+ return finish(measuredSteps(signal)).frames;
529
553
  }
530
554
  function rhythm(signal) {
531
- const frames = bandFramesOf(signal);
532
- const entry = measured.get(signal);
533
- return entry.rhythm ??= rhythmOf(frames);
555
+ return finish(rhythmSteps(signal));
556
+ }
557
+ function* rhythmSteps(signal) {
558
+ const entry = yield* measuredSteps(signal);
559
+ entry.rhythm ??= yield* rhythmOf(entry.frames);
560
+ return entry.rhythm;
534
561
  }
535
562
 
536
563
  // ../core/dist/audioAnalysisLadder.js
@@ -749,18 +776,26 @@ function sections(signal, options = {}) {
749
776
  var DB_FLOOR = -120;
750
777
  var signalDuration = (signal) => (signal.channels[0]?.length ?? 0) / signal.sampleRate;
751
778
  function energyMix(signal) {
779
+ return finish(energyMixSteps(signal));
780
+ }
781
+ var MIX_SAMPLES_PER_STEP = 65536;
782
+ function* energyMixSteps(signal) {
752
783
  const [first, ...rest] = signal.channels;
753
784
  if (!first)
754
785
  return new Float32Array(0);
755
786
  if (!rest.length)
756
787
  return first;
757
788
  const mixed = new Float32Array(first.length);
758
- for (const channel of signal.channels)
759
- for (let i = 0; i < mixed.length; i++)
760
- mixed[i] += channel[i] * channel[i];
761
789
  const scale = 1 / signal.channels.length;
762
- for (let i = 0; i < mixed.length; i++)
763
- mixed[i] = Math.sqrt(mixed[i] * scale);
790
+ for (let start = 0; start < mixed.length; start += MIX_SAMPLES_PER_STEP) {
791
+ const end = Math.min(mixed.length, start + MIX_SAMPLES_PER_STEP);
792
+ for (const channel of signal.channels)
793
+ for (let i = start; i < end; i++)
794
+ mixed[i] += channel[i] * channel[i];
795
+ for (let i = start; i < end; i++)
796
+ mixed[i] = Math.sqrt(mixed[i] * scale);
797
+ yield;
798
+ }
764
799
  return mixed;
765
800
  }
766
801
  var toDb = (amplitude) => amplitude > 0 ? Math.max(DB_FLOOR, 20 * Math.log10(amplitude)) : DB_FLOOR;
@@ -1173,14 +1208,16 @@ var signalProvider = {
1173
1208
  };
1174
1209
 
1175
1210
  export {
1211
+ finish,
1176
1212
  medianInterval,
1177
1213
  tempoOf,
1178
1214
  bandFramesOf,
1179
1215
  rhythm,
1216
+ rhythmSteps,
1180
1217
  snapper,
1181
1218
  runLadder,
1182
1219
  signalDuration,
1183
- energyMix,
1220
+ energyMixSteps,
1184
1221
  envelope,
1185
1222
  signalProvider,
1186
1223
  probeAudio,
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  FONT_ALIAS_MAP,
16
16
  resolveAliasDisplayName
17
- } from "./chunk-XOTUPVIF.js";
17
+ } from "./chunk-MSGWR7WP.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-SDYDNHEE.js";
@@ -11,36 +11,36 @@ import {
11
11
  findSyncPartner,
12
12
  readLinkTiming,
13
13
  syncOffsetFrames
14
- } from "./chunk-6JR2XUEE.js";
14
+ } from "./chunk-IXXVS2Z4.js";
15
15
  import {
16
16
  readCompositionFps
17
- } from "./chunk-WAG4AX5C.js";
17
+ } from "./chunk-YTBE4JCX.js";
18
18
  import {
19
19
  HF_AUDIO_GROUP_ATTR,
20
20
  extractAudioMetadata,
21
21
  extractMediaMetadata
22
- } from "./chunk-UUFY6A7I.js";
22
+ } from "./chunk-UKB62QOT.js";
23
23
  import {
24
24
  byStart,
25
25
  fpsToNumber,
26
26
  parseFpsWithDefault
27
- } from "./chunk-G7RKSAKS.js";
27
+ } from "./chunk-74UH2KGI.js";
28
28
  import {
29
29
  HF_AUDIO_AUTOMATION_ATTR,
30
30
  HF_AUDIO_FX_ATTR,
31
31
  parseAudioFxChain,
32
32
  parseAutomation,
33
33
  resolveAutomation
34
- } from "./chunk-PW22CDII.js";
34
+ } from "./chunk-ZKHXN2BV.js";
35
35
  import {
36
36
  isSubCompositionHost,
37
37
  topLevelElements,
38
38
  trackKindOf
39
- } from "./chunk-XOTUPVIF.js";
39
+ } from "./chunk-MSGWR7WP.js";
40
40
  import {
41
41
  resolveReferencedDuration,
42
42
  resolveReferencedStart
43
- } from "./chunk-IC6BO4GU.js";
43
+ } from "./chunk-CV32PRH3.js";
44
44
  import {
45
45
  resolveAuthoredAssetFile
46
46
  } from "./chunk-6BNTGNGD.js";
@@ -49,13 +49,11 @@ import {
49
49
  cutToHostSlots,
50
50
  hostInPointSeconds,
51
51
  parseNumeric,
52
- resolveMediaStartSeconds
53
- } from "./chunk-MMQ52NIZ.js";
54
- import {
55
52
  readMediaOffsetSeconds,
56
53
  readPlaybackRate,
57
- resolveMediaDuration
58
- } from "./chunk-BSQ7XANM.js";
54
+ resolveMediaDuration,
55
+ resolveMediaStartSeconds
56
+ } from "./chunk-2BGOB2QK.js";
59
57
 
60
58
  // src/timeline/describeProject.ts
61
59
  import { readFileSync, realpathSync, statSync } from "fs";
@@ -38,9 +38,40 @@ function entryOf(rawLine) {
38
38
  if (eq < 1) return null;
39
39
  return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1).trim())];
40
40
  }
41
+ function openQuoteOf(trimmedLine) {
42
+ const eq = trimmedLine.indexOf("=");
43
+ if (eq < 1) return null;
44
+ const valueStart = trimmedLine.slice(eq + 1).trim();
45
+ const quote = valueStart.charAt(0);
46
+ if (quote !== '"' && quote !== "'") return null;
47
+ return valueStart.indexOf(quote, 1) < 0 ? quote : null;
48
+ }
49
+ function closingLineIndex(rawLines, from, quote) {
50
+ for (let j = from; j < rawLines.length; j++) {
51
+ if ((rawLines[j] ?? "").includes(quote)) return j;
52
+ }
53
+ return -1;
54
+ }
55
+ function logicalLines(content) {
56
+ const rawLines = content.split("\n").map((line) => line.replace(/\r$/, ""));
57
+ const lines = [];
58
+ for (let i = 0; i < rawLines.length; i++) {
59
+ const line = rawLines[i] ?? "";
60
+ const trimmed = line.trim();
61
+ const quote = trimmed && !trimmed.startsWith("#") ? openQuoteOf(trimmed) : null;
62
+ const end = quote === null ? -1 : closingLineIndex(rawLines, i + 1, quote);
63
+ if (end === -1) {
64
+ lines.push(line);
65
+ continue;
66
+ }
67
+ lines.push(rawLines.slice(i, end + 1).join("\n"));
68
+ i = end;
69
+ }
70
+ return lines;
71
+ }
41
72
  function applyDotEnv(content, env, allowedKeys) {
42
73
  const allowed = allowedKeys === void 0 ? void 0 : new Set(allowedKeys);
43
- for (const entry of content.split("\n").map(entryOf)) {
74
+ for (const entry of logicalLines(content).map(entryOf)) {
44
75
  if (!entry) continue;
45
76
  const [key, value] = entry;
46
77
  if (key && key.toUpperCase() !== FEEDBACK_EMAIL_ENV && (allowed === void 0 || allowed.has(key)) && !(key in env))
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-442JNXRM.js";
10
10
  import {
11
11
  quantizePreviewProxyBox
12
- } from "./chunk-G7RKSAKS.js";
12
+ } from "./chunk-74UH2KGI.js";
13
13
 
14
14
  // src/utils/compositionViewport.ts
15
15
  var DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  detectGpuEncoder
9
- } from "./chunk-UUFY6A7I.js";
9
+ } from "./chunk-UKB62QOT.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-BL4U6U52.js";
@@ -21,13 +21,13 @@ import {
21
21
  emitWords,
22
22
  getPreparedWavDurationSeconds,
23
23
  prepareWav
24
- } from "./chunk-ACH5ZR7X.js";
24
+ } from "./chunk-ORMTNJBS.js";
25
25
  import {
26
26
  stoppedByCancelSignal
27
- } from "./chunk-FZ3R5XOH.js";
27
+ } from "./chunk-QYTGUWNF.js";
28
28
  import {
29
29
  verifies
30
- } from "./chunk-I4VEFPZE.js";
30
+ } from "./chunk-6XGO7ZKS.js";
31
31
  import {
32
32
  PARAKEET_MODEL_LABEL,
33
33
  SHERPA_ERROR_PREFIX,
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-HXHSGDU6.js";
9
+ } from "./chunk-53E45AKI.js";
10
10
  import {
11
11
  injectTagsAtHeadStart
12
- } from "./chunk-PW22CDII.js";
12
+ } from "./chunk-ZKHXN2BV.js";
13
13
 
14
14
  // src/utils/compositionServer.ts
15
15
  import { createHash } from "crypto";
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-JBQNDHRT.js";
10
+ } from "./chunk-RVKJDAYE.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-4VZAIVZQ.js";
17
+ } from "./chunk-UOSTDTBF.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-7NWSVRFE.js";
21
+ } from "./chunk-LVEXHBSH.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-IW4LKYDY.js";
26
+ } from "./chunk-VCVUEK65.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-BERGVZKN.js";
29
+ } from "./chunk-XG365L6T.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-7WV27W7R.js";
32
+ } from "./chunk-Q6SHXSZX.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-ZTZA4UWZ.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-G7RKSAKS.js";
44
+ } from "./chunk-74UH2KGI.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -11,17 +11,17 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-63S4VUOL.js";
14
+ } from "./chunk-GNX3BCQP.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
18
- } from "./chunk-QDK7XCOB.js";
18
+ } from "./chunk-QB4K2EWI.js";
19
19
  import {
20
20
  runCancellableProcess
21
21
  } from "./chunk-BL4U6U52.js";
22
22
  import {
23
23
  getFreeDiskMb
24
- } from "./chunk-BQA3X7TI.js";
24
+ } from "./chunk-QSFWGZG6.js";
25
25
  import {
26
26
  FFMPEG_PATH_ENV,
27
27
  FFPROBE_PATH_ENV,
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.8.200" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.200" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.201" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.201" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-7WV27W7R.js";
12
+ } from "./chunk-Q6SHXSZX.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-JVBRJMOP.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readMediaOffsetSeconds
9
- } from "./chunk-BSQ7XANM.js";
9
+ } from "./chunk-2BGOB2QK.js";
10
10
 
11
11
  // ../core/dist/mediaLink.js
12
12
  var MEDIA_LINK_ATTR = "data-link";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-FXMKHHPO.js";
24
24
  import {
25
25
  getSystemMeta
26
- } from "./chunk-BQA3X7TI.js";
26
+ } from "./chunk-QSFWGZG6.js";
27
27
  import {
28
28
  hostAnswers
29
29
  } from "./chunk-K4WIOZFP.js";
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-PSX5SF2N.js";
38
38
  import {
39
39
  VERSION
40
- } from "./chunk-KPUTRG54.js";
40
+ } from "./chunk-IIH24PKY.js";
41
41
 
42
42
  // src/telemetry/transport.ts
43
43
  import { spawn } from "child_process";
@@ -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-ZFBET3PD.js";
9
+ } from "./chunk-GKXH4C2B.js";
10
10
  import {
11
11
  c
12
12
  } from "./chunk-ZTZA4UWZ.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VALID_CANVAS_RESOLUTIONS,
9
9
  resolveResolutionFlagPair
10
- } from "./chunk-XOTUPVIF.js";
10
+ } from "./chunk-MSGWR7WP.js";
11
11
 
12
12
  // src/utils/parseOutputResolution.ts
13
13
  function parseOutputResolutionFlag(raw, options) {
@@ -6,26 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-HN6TP4D2.js";
9
+ } from "./chunk-X72DJZCM.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-HBRPELT6.js";
15
+ } from "./chunk-I4DHHX7E.js";
16
16
  import {
17
17
  initialModelForLanguage,
18
18
  transcribe
19
- } from "./chunk-ACH5ZR7X.js";
19
+ } from "./chunk-ORMTNJBS.js";
20
20
  import {
21
21
  createRenderCancellationScope,
22
22
  stoppedByCancelSignal
23
- } from "./chunk-FZ3R5XOH.js";
23
+ } from "./chunk-QYTGUWNF.js";
24
24
  import {
25
25
  DEFAULT_MODEL,
26
26
  findWhisper,
27
27
  isWhisperUnavailable
28
- } from "./chunk-I4VEFPZE.js";
28
+ } from "./chunk-6XGO7ZKS.js";
29
29
  import {
30
30
  formatSrt,
31
31
  formatVtt,
@@ -11,7 +11,7 @@ import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  fetchItemManifest,
13
13
  fetchRegistryManifest
14
- } from "./chunk-BERGVZKN.js";
14
+ } from "./chunk-XG365L6T.js";
15
15
 
16
16
  // src/registry/resolver.ts
17
17
  function defaultWarn(message) {
@@ -3331,7 +3331,13 @@ var DEFAULT_TYPEOF = {
3331
3331
  image: "string"
3332
3332
  };
3333
3333
  function isRecord(v) {
3334
- return typeof v === "object" && v !== null;
3334
+ return typeof v === "object" && v !== null && !Array.isArray(v);
3335
+ }
3336
+ function isFontValue(value) {
3337
+ return isRecord(value) && typeof value.name === "string" && typeof value.source === "string";
3338
+ }
3339
+ function isImageValue(value) {
3340
+ return isRecord(value) && typeof value.url === "string" && (value.alt === void 0 || typeof value.alt === "string") && (value.fit === void 0 || value.fit === "cover" || value.fit === "contain" || value.fit === "fill" || value.fit === "none" || value.fit === "scale-down");
3335
3341
  }
3336
3342
  function isVariableType(t) {
3337
3343
  return typeof t === "string" && t in DEFAULT_TYPEOF;
@@ -3340,6 +3346,8 @@ function isCompositionVariable(v) {
3340
3346
  if (!isRecord(v)) return false;
3341
3347
  if (typeof v.id !== "string" || typeof v.label !== "string") return false;
3342
3348
  if (!isVariableType(v.type)) return false;
3349
+ if (v.type === "font") return typeof v.default === "string" || isFontValue(v.default);
3350
+ if (v.type === "image") return typeof v.default === "string" || isImageValue(v.default);
3343
3351
  if (typeof v.default !== DEFAULT_TYPEOF[v.type]) return false;
3344
3352
  if (v.type === "enum" && !Array.isArray(v.options)) return false;
3345
3353
  return true;
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  stoppedByCancelSignal
9
- } from "./chunk-FZ3R5XOH.js";
9
+ } from "./chunk-QYTGUWNF.js";
10
10
  import {
11
11
  DEFAULT_MODEL,
12
12
  ensureModel,
@@ -14,12 +14,12 @@ import {
14
14
  hasFFmpeg,
15
15
  pinnedWhisperModel,
16
16
  sha256File
17
- } from "./chunk-I4VEFPZE.js";
17
+ } from "./chunk-6XGO7ZKS.js";
18
18
  import {
19
19
  findFFmpeg,
20
20
  findFFprobe,
21
21
  getFFmpegInstallHint
22
- } from "./chunk-63S4VUOL.js";
22
+ } from "./chunk-GNX3BCQP.js";
23
23
  import {
24
24
  findWavChunk
25
25
  } from "./chunk-UOFAE5RF.js";