hyperframes 0.8.174 → 0.8.175
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.
- package/dist/{add-XANMFNIP.js → add-S4AOKSNH.js} +11 -11
- package/dist/{animatedGifPrep-OUQ4M2T3.js → animatedGifPrep-QRDM2NMV.js} +5 -5
- package/dist/api.js +14 -14
- package/dist/{asset-SVONSQ67.js → asset-DQ45BUBL.js} +2 -2
- package/dist/{assetCataloger-AG77T6SF.js → assetCataloger-NPDCMAYE.js} +5 -5
- package/dist/{audio-DMQOTXKL.js → audio-OOAXEELO.js} +11 -11
- package/dist/{auth-ED7SPBS6.js → auth-33IY64LT.js} +1 -1
- package/dist/{autoUpdate-4QQYZOVT.js → autoUpdate-KGLJUGNZ.js} +2 -2
- package/dist/{backgroundChecks-2VT46P5S.js → backgroundChecks-DQPHYLVN.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-KIYAPCTG.js → batchRender-KXXTVNPB.js} +3 -3
- package/dist/{beats-OE7M5BEE.js → beats-WDYSCACS.js} +4 -4
- package/dist/{benchmark-2ZQP2RNF.js → benchmark-WOAULMYW.js} +8 -8
- package/dist/{browser-CSSJ3VWW.js → browser-2HX46R74.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZUC4MLSO.js → bundleWithLocalizedFonts-32N7TVM6.js} +2 -2
- package/dist/{capture-APNSW4ZT.js → capture-5ASPHTMF.js} +8 -8
- package/dist/{capture-3NXAHID3.js → capture-7LR5UVM2.js} +2 -2
- package/dist/{catalog-CFDBIVSC.js → catalog-LVW3RT4U.js} +11 -11
- package/dist/{catch-up-OUK522JT.js → catch-up-W6Z73GXL.js} +4 -4
- package/dist/{check-PUDEOXGP.js → check-C23ZWACZ.js} +50 -44
- package/dist/{checkBrowser-PMRJSTFJ.js → checkBrowser-WS6FSLBJ.js} +176 -80
- package/dist/{chunk-CI7ZHFSV.js → chunk-3Q4Y33FT.js} +6 -6
- package/dist/{chunk-RLBLLBLL.js → chunk-3SWMUZ4Y.js} +2 -2
- package/dist/{chunk-DRR3UMIY.js → chunk-3X3CELOP.js} +1 -1
- package/dist/{chunk-RZ2FMZ5U.js → chunk-42T7OP4O.js} +1 -1
- package/dist/{chunk-JL76Y45C.js → chunk-4XM6VXLN.js} +7 -7
- package/dist/{chunk-HIYAJFRH.js → chunk-7E4YFL4U.js} +1 -1
- package/dist/{chunk-4WQUBVDO.js → chunk-7GUAZGSW.js} +3 -3
- package/dist/{chunk-XRQBHOBT.js → chunk-B4VT6YU2.js} +2 -2
- package/dist/{chunk-RNKNDYBN.js → chunk-BHMWVRNS.js} +1 -1
- package/dist/{chunk-TI3HKGQC.js → chunk-CEYY3SOX.js} +3 -3
- package/dist/{chunk-GXWV4FNV.js → chunk-DQY6WTF7.js} +1 -1
- package/dist/{chunk-ALCCEHX2.js → chunk-DZMWNCHM.js} +2 -2
- package/dist/chunk-EEXE43II.js +3805 -0
- package/dist/{chunk-QUK2IZKI.js → chunk-EKDTCSCL.js} +1 -1
- package/dist/{chunk-AR2SEGPZ.js → chunk-FRNKM4MG.js} +1 -1
- package/dist/{chunk-QRO2UBWS.js → chunk-G7I3WZK4.js} +1 -1
- package/dist/{chunk-W4AECR7V.js → chunk-IUOPF3DL.js} +1 -1
- package/dist/{chunk-PLYTTPVE.js → chunk-J53AJK3Q.js} +2 -2
- package/dist/{chunk-UQLXFITA.js → chunk-JNL3RMDG.js} +1 -1
- package/dist/{chunk-55LJK3H2.js → chunk-JT7PV3GL.js} +3 -3
- package/dist/{chunk-SH43VDEF.js → chunk-KHR4IJAW.js} +175 -119
- package/dist/{chunk-ONXTLGJB.js → chunk-KZHYAGC3.js} +3 -3
- package/dist/{chunk-LUKY7253.js → chunk-KZQGUXG5.js} +10 -10
- package/dist/{chunk-MXNPYP5F.js → chunk-LY2GLSOS.js} +1 -1
- package/dist/{chunk-UDJHYQSZ.js → chunk-LZT3NUTE.js} +1 -1
- package/dist/{chunk-3MDO2Q4F.js → chunk-MJZQ44NV.js} +1 -1
- package/dist/{chunk-SI76MFBF.js → chunk-NELZN7SV.js} +2 -2
- package/dist/{chunk-HB2UP4V7.js → chunk-NSWIF4VH.js} +1 -1
- package/dist/{chunk-S5D4Q74P.js → chunk-NWEER3QY.js} +2 -2
- package/dist/{chunk-4PX47Z65.js → chunk-NZRAS3FB.js} +1 -1
- package/dist/{chunk-2CDBTQKS.js → chunk-NZZYJOMJ.js} +41 -18
- package/dist/{chunk-EJZJ5AY7.js → chunk-O6FWDZYJ.js} +1 -1
- package/dist/{chunk-X3BE2HX4.js → chunk-OUMYTLPP.js} +3 -3
- package/dist/{chunk-H2BPHBDY.js → chunk-OYEDHVSI.js} +1 -1
- package/dist/{chunk-D2YN4FNH.js → chunk-PBKOURSI.js} +1 -1
- package/dist/{chunk-UKAOWORD.js → chunk-QMQZXNGU.js} +5 -5
- package/dist/{chunk-APMA7XXB.js → chunk-QWCXGTOH.js} +1 -1
- package/dist/{chunk-SEHRMJTO.js → chunk-RAZVWSU5.js} +3 -3
- package/dist/{chunk-XVIFWEPR.js → chunk-RERXOG54.js} +2 -2
- package/dist/{chunk-4VTUDCHM.js → chunk-S354WIFQ.js} +1 -1
- package/dist/{chunk-QJCVK7CI.js → chunk-TNDNFZOK.js} +2 -2
- package/dist/{chunk-RYR3LTZR.js → chunk-UWUKJDTA.js} +2 -2
- package/dist/{chunk-2XSAYE7U.js → chunk-V7T7WA2K.js} +2 -2
- package/dist/{chunk-RMKL5FVH.js → chunk-VEQ7DKPG.js} +1 -1
- package/dist/{chunk-B23GBPCW.js → chunk-W5USVP6Z.js} +1 -1
- package/dist/{chunk-6HF2WFPV.js → chunk-WDFLYDKN.js} +4 -4
- package/dist/{chunk-W3YVQ6VI.js → chunk-XDK2FUAC.js} +9 -9
- package/dist/{chunk-EAR5LFOH.js → chunk-XRRDVRCY.js} +1 -1
- package/dist/{chunk-CSMKMVGG.js → chunk-YCSCDQDS.js} +5 -5
- package/dist/{chunk-JKPI7VLI.js → chunk-YMU42UU2.js} +1 -1
- package/dist/{chunk-G4UUEQDT.js → chunk-Z2R7CFWH.js} +1 -1
- package/dist/{chunk-SEXAKOK3.js → chunk-ZD7QKZSS.js} +2 -2
- package/dist/{chunk-HZZYJV7K.js → chunk-ZDOWJ3NS.js} +10 -10
- package/dist/{chunk-HZZZ6C6Z.js → chunk-ZGSLXWH2.js} +1 -1
- package/dist/{chunk-LR72ON5B.js → chunk-ZXHEOTYW.js} +1 -1
- package/dist/{clean-6SVCU47L.js → clean-KBNXV6DP.js} +13 -13
- package/dist/cli.js +53 -53
- package/dist/{cloud-TIISRMZV.js → cloud-BWWKDRR6.js} +4 -4
- package/dist/{cloudrun-4TMBWELQ.js → cloudrun-P35BPQCO.js} +4 -4
- package/dist/commands/contrast-audit.browser.js +18 -50
- package/dist/{compare-YV2XTKYX.js → compare-UWJRKF5K.js} +23 -23
- package/dist/{compiler-O5R3ZZDV.js → compiler-5TFPJPQQ.js} +2 -2
- package/dist/{component-7LWSMRKZ.js → component-SWOGSIO2.js} +3 -3
- package/dist/{compositions-5VTSC4M3.js → compositions-PIPVEXE3.js} +9 -9
- package/dist/{delete-AV2SKLZW.js → delete-OXIDK7N3.js} +3 -3
- package/dist/{deterministicFonts-RWGQPEZU.js → deterministicFonts-L7YEEFGI.js} +1 -1
- package/dist/{dist-4FY5EEH5.js → dist-U2HCECNB.js} +2 -2
- package/dist/{doctor-XOCYSEAZ.js → doctor-KLQLFPCF.js} +9 -9
- package/dist/{events-MAZUZI43.js → events-EGCYD45B.js} +3 -3
- package/dist/{events-6QPRKX45.js → events-EVTTGISX.js} +2 -2
- package/dist/{feedback-MGRILBMP.js → feedback-G4WZLOVD.js} +6 -6
- package/dist/{ffmpeg-YCULCUB2.js → ffmpeg-QIYSAPHO.js} +5 -5
- package/dist/{figma-UMBACTCG.js → figma-Q4CKDE7M.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-LWEOLWYN.js → get-NPRQH64W.js} +3 -3
- package/dist/{gpuPolicy-MCIQK5Z7.js → gpuPolicy-L72BQRFR.js} +5 -5
- package/dist/{grade-compare-MZQOTX3F.js → grade-compare-H4NJEL4P.js} +24 -24
- package/dist/{help-THPG2NRP.js → help-2S3XXDEA.js} +1 -1
- package/dist/{history-2IQYTDU5.js → history-X4CGCVEQ.js} +6 -6
- package/dist/hyperframe-runtime.js +59 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +59 -59
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-CXMADV6K.js → info-YYUISGL7.js} +7 -7
- package/dist/{init-Y5GU454D.js → init-BAAI4ZMR.js} +25 -25
- package/dist/{inspect-S7JDKEMJ.js → inspect-LXJ3XJUZ.js} +24 -24
- package/dist/{installer-AY23RPEZ.js → installer-NY5E5HCO.js} +4 -4
- package/dist/{keyframes-FKYT6QAJ.js → keyframes-NXXJSQWG.js} +6 -6
- package/dist/{lambda-7WMZGRH5.js → lambda-PG3JKNWS.js} +5 -5
- package/dist/{layout-LL4GOS6G.js → layout-CBFO36IE.js} +24 -24
- package/dist/{lint-2M7FY4ZT.js → lint-Y6NWQTKF.js} +6 -6
- package/dist/{list-SZBMUHBW.js → list-VY6KIYTX.js} +3 -3
- package/dist/{login-QRACITGK.js → login-426Q3H3P.js} +4 -4
- package/dist/{manager-W2BTPAVT.js → manager-3RRUFZ4H.js} +6 -6
- package/dist/{media-treatment-E4VJETTT.js → media-treatment-ZVIXMJZJ.js} +11 -11
- package/dist/{models-AHO3MYE7.js → models-KC2QBPVK.js} +9 -9
- package/dist/{motionShot-LMMYPGPT.js → motionShot-3ZSLQJ4D.js} +12 -12
- package/dist/{normalize-audio-RDWIWZOO.js → normalize-audio-DRU5LFYU.js} +4 -4
- package/dist/{open-WOKRHFDH.js → open-LPBZQ4DC.js} +11 -11
- package/dist/{parakeetRunner-RY2KIE63.js → parakeetRunner-IFY6NK5G.js} +11 -11
- package/dist/{pipeline-LEA32KLW.js → pipeline-AGMCDT5A.js} +6 -6
- package/dist/{play-3S46XG66.js → play-WVWXNQED.js} +16 -16
- package/dist/{preflight-MCOFNWFQ.js → preflight-I5JGCCKM.js} +6 -6
- package/dist/{present-GR7F4CTI.js → present-IPTWJUKY.js} +12 -12
- package/dist/{preview-TKEAF3KR.js → preview-JVLRQVD7.js} +16 -16
- package/dist/{producer-BJ5SUPVD.js → producer-HKGHSAON.js} +1 -1
- package/dist/{projectConfig-YJBYWSNK.js → projectConfig-HDALEM6S.js} +6 -6
- package/dist/{publication-2HXIW4LS.js → publication-NX4VC7UU.js} +2 -2
- package/dist/{publish-LHJFEKEI.js → publish-AZRRQUXM.js} +7 -7
- package/dist/{remove-background-AQUUVAPD.js → remove-background-WY7KA77M.js} +7 -7
- package/dist/{render-B5S7FLLS.js → render-BEDATKWV.js} +9 -9
- package/dist/{render-AXTGGHVZ.js → render-HGT3EGIK.js} +3 -3
- package/dist/{render-AOHXNGIM.js → render-P3PFNCBA.js} +25 -25
- package/dist/{render-batch-DMQG3QWK.js → render-batch-MUCDZ2WF.js} +3 -3
- package/dist/{resolver-FV54X3T2.js → resolver-FLQ42X2Y.js} +4 -4
- package/dist/{sherpa-RKURBTUM.js → sherpa-SQGEFX3S.js} +10 -10
- package/dist/{skills-YUXI4IRF.js → skills-D2FIQ2JN.js} +5 -5
- package/dist/{skillsUpdateCheck-HK3GDYD6.js → skillsUpdateCheck-2OLTHCBX.js} +3 -3
- package/dist/{snapshot-D6Q52Z4X.js → snapshot-R7U73M3N.js} +27 -27
- package/dist/{src-MRYINZ62.js → src-4COYCAFY.js} +4 -4
- package/dist/{src-DPR7JBU3.js → src-WOD4AEI3.js} +7 -7
- package/dist/{staticProjectServer-RT7JATD2.js → staticProjectServer-DG4VZO4G.js} +12 -12
- package/dist/studio/assets/{hyperframes-player-B4KfQdfl.js → hyperframes-player-BByRREAU.js} +1 -1
- package/dist/studio/assets/{index-Bsc8xBh9.js → index-CULLUqJo.js} +1 -1
- package/dist/studio/assets/{index-DGl_Zvb3.js → index-Wz-WEqHg.js} +97 -97
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-NL2RMVB5.js → studio-api-RGNBVLLL.js} +6 -6
- package/dist/{studioServer-VL2GUVCR.js → studioServer-LC5T4OXQ.js} +42 -42
- package/dist/{telemetry-5PJWDFSZ.js → telemetry-BLOE3TWY.js} +3 -3
- package/dist/{timeline-OH35TN25.js → timeline-QQPPMADL.js} +14 -14
- package/dist/{tokens-YISVK7W2.js → tokens-E3SHBFDU.js} +2 -2
- package/dist/{transcribe-KRPN2FWA.js → transcribe-D5N7SBDO.js} +15 -15
- package/dist/{transcribe-6KBSE76Q.js → transcribe-O2AQ5E2L.js} +8 -8
- package/dist/{updateCheck-QCZTFFSQ.js → updateCheck-ELOZ2CID.js} +2 -2
- package/dist/{upgrade-DRFQISI6.js → upgrade-JDFZEPZY.js} +2 -2
- package/dist/{urlDownloader-CJDXTKMC.js → urlDownloader-32OGC3EW.js} +4 -4
- package/dist/{validate-BKY3FIJC.js → validate-LQQEABER.js} +18 -18
- package/dist/{video-3UEJ57Q7.js → video-HXIM27TO.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-UKJECUDK.js +0 -3805
|
@@ -12,8 +12,10 @@ import {
|
|
|
12
12
|
import { chmodSync, mkdirSync, mkdtempSync, renameSync, rmSync, statSync } from "fs";
|
|
13
13
|
import { open } from "fs/promises";
|
|
14
14
|
import { dirname, join } from "path";
|
|
15
|
+
import { setTimeout as sleep } from "timers/promises";
|
|
15
16
|
var PART_BYTES = 8 * 1024 * 1024;
|
|
16
17
|
var CONNECTIONS = 8;
|
|
18
|
+
var RETRIES = 3;
|
|
17
19
|
async function downloadToFile(url, destPath, options = {}) {
|
|
18
20
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
19
21
|
const failFast = new AbortController();
|
|
@@ -36,38 +38,59 @@ async function downloadToFile(url, destPath, options = {}) {
|
|
|
36
38
|
let firstError;
|
|
37
39
|
try {
|
|
38
40
|
const file = await open(stagedFile, "wx");
|
|
39
|
-
const
|
|
40
|
-
let written = 0;
|
|
41
|
+
const pump = async (res, part) => {
|
|
41
42
|
for await (const chunk of res.body) {
|
|
42
|
-
await file.write(chunk, 0, chunk.byteLength,
|
|
43
|
-
|
|
43
|
+
await file.write(chunk, 0, chunk.byteLength, part.at);
|
|
44
|
+
part.at += chunk.byteLength;
|
|
44
45
|
bytes += chunk.byteLength;
|
|
45
46
|
signal.throwIfAborted();
|
|
46
47
|
options.onProgress?.(bytes, total);
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
};
|
|
50
|
+
const fetchRange = async (start, end, res) => {
|
|
51
|
+
const part = { at: start };
|
|
52
|
+
for (let attempt = 0; ; attempt++) {
|
|
53
|
+
try {
|
|
54
|
+
res ??= await get(`bytes=${part.at}-${end}`);
|
|
55
|
+
assertOk(res, url);
|
|
56
|
+
if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
|
|
57
|
+
await pump(res, part);
|
|
58
|
+
if (part.at > end) return;
|
|
59
|
+
throw new Error(`connection closed at byte ${part.at}`);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (signal.aborted) throw error;
|
|
62
|
+
if (attempt === RETRIES) {
|
|
63
|
+
throw new Error(
|
|
64
|
+
`Failed to download ${url}: bytes ${start}-${end} dropped ${RETRIES + 1} times`,
|
|
65
|
+
{ cause: error }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
res?.body?.cancel().catch(() => {
|
|
69
|
+
});
|
|
70
|
+
res = void 0;
|
|
71
|
+
await sleep(250 * 2 ** attempt, void 0, { signal });
|
|
72
|
+
}
|
|
52
73
|
}
|
|
53
74
|
};
|
|
54
75
|
const parts = [];
|
|
55
76
|
if (ranged && total !== void 0) {
|
|
56
|
-
parts.push(
|
|
77
|
+
parts.push(fetchRange(0, Math.min(PART_BYTES, total) - 1, first));
|
|
57
78
|
const rest = total - PART_BYTES;
|
|
58
79
|
const size = Math.ceil(rest / Math.min(CONNECTIONS - 1, Math.ceil(rest / PART_BYTES)));
|
|
59
80
|
for (let start = PART_BYTES; start < total; start += size) {
|
|
60
|
-
|
|
61
|
-
parts.push(
|
|
62
|
-
get(`bytes=${start}-${end}`).then((res) => {
|
|
63
|
-
assertOk(res, url);
|
|
64
|
-
if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
|
|
65
|
-
return writePart(res, start, end - start + 1);
|
|
66
|
-
})
|
|
67
|
-
);
|
|
81
|
+
parts.push(fetchRange(start, Math.min(start + size, total) - 1));
|
|
68
82
|
}
|
|
69
83
|
} else {
|
|
70
|
-
|
|
84
|
+
const part = { at: 0 };
|
|
85
|
+
parts.push(
|
|
86
|
+
pump(first, part).then(() => {
|
|
87
|
+
if (total !== void 0 && part.at !== total) {
|
|
88
|
+
throw new Error(
|
|
89
|
+
`Truncated download: got ${part.at} bytes, expected ${total} (content-length). The presigned URL may have expired mid-transfer \u2014 refetch via \`hyperframes cloud get\`.`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
);
|
|
71
94
|
}
|
|
72
95
|
await Promise.all(
|
|
73
96
|
parts.map(
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3Q4Y33FT.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QWCXGTOH.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LZT3NUTE.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeWellFormedEscapes
|
|
27
27
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -6,25 +6,25 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZXHEOTYW.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JT7PV3GL.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CEYY3SOX.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FRNKM4MG.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
isWhisperUnavailable
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NSWIF4VH.js";
|
|
28
28
|
import {
|
|
29
29
|
formatSrt,
|
|
30
30
|
formatVtt,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DQY6WTF7.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RERXOG54.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
renderFrameIdForRenderId,
|
|
30
30
|
resolveAuthoredTimingWindow,
|
|
31
31
|
toFps
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
33
33
|
import {
|
|
34
34
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
35
35
|
COLOR_GRADING_SOURCE_HIDDEN_ATTR,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
shiftRateLane,
|
|
59
59
|
sourceTimeAt,
|
|
60
60
|
timeAtSourceTime
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EEXE43II.js";
|
|
62
62
|
import {
|
|
63
63
|
clampAudioGain,
|
|
64
64
|
isAudibleVideoElement
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JNL3RMDG.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
21
21
|
import {
|
|
22
22
|
decodedUrlPath,
|
|
23
23
|
removeElementWithGsapCascade
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RERXOG54.js";
|
|
12
12
|
import {
|
|
13
13
|
parseAnimatedGifMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
15
15
|
import {
|
|
16
16
|
parseHTML
|
|
17
17
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RERXOG54.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-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-4COYCAFY.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DQY6WTF7.js";
|
|
10
10
|
import {
|
|
11
11
|
findSyncPartner,
|
|
12
12
|
readLinkTiming,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
extractMediaMetadata,
|
|
19
19
|
resolveReferencedDuration,
|
|
20
20
|
resolveReferencedStart
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RERXOG54.js";
|
|
22
22
|
import {
|
|
23
23
|
byStart,
|
|
24
24
|
compositionOriginSeconds,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
hostInPointSeconds,
|
|
28
28
|
parseFpsWithDefault,
|
|
29
29
|
resolveMediaStartSeconds
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
31
31
|
import {
|
|
32
32
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
33
33
|
HF_AUDIO_FX_ATTR,
|
|
34
34
|
parseAudioFxChain,
|
|
35
35
|
parseAutomation,
|
|
36
36
|
resolveAutomation
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EEXE43II.js";
|
|
38
38
|
import {
|
|
39
39
|
isSubCompositionHost,
|
|
40
40
|
topLevelElements,
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForCompositionFonts,
|
|
12
12
|
waitForRuntimeReady
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KHR4IJAW.js";
|
|
14
14
|
import {
|
|
15
15
|
gotoWhenSent,
|
|
16
16
|
launchManagedBrowser,
|
|
17
17
|
resolveManagedGpuMode
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XRRDVRCY.js";
|
|
19
19
|
import {
|
|
20
20
|
pageNavigationTimeoutMs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RAZVWSU5.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveProject
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7E4YFL4U.js";
|
|
25
25
|
import {
|
|
26
26
|
serveStaticProjectHtml
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OUMYTLPP.js";
|
|
28
28
|
import {
|
|
29
29
|
defineCommand
|
|
30
30
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YMU42UU2.js";
|
|
42
42
|
import {
|
|
43
43
|
normalizeErrorMessage
|
|
44
44
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
async function bundleProjectHtml(projectDir) {
|
|
712
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
|
|
713
713
|
return bundleToSingleHtml(projectDir);
|
|
714
714
|
}
|
|
715
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-4COYCAFY.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-L72BQRFR.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZGSLXWH2.js";
|
|
20
20
|
import {
|
|
21
21
|
getAvailableMemoryMb,
|
|
22
22
|
getFreeDiskMb,
|
|
@@ -32,21 +32,21 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
getUpdateMeta,
|
|
34
34
|
withMeta
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YMU42UU2.js";
|
|
36
36
|
import {
|
|
37
37
|
CONFIG_PATH,
|
|
38
38
|
withFileLock
|
|
39
39
|
} from "./chunk-XUXGIA7H.js";
|
|
40
40
|
import {
|
|
41
41
|
VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NELZN7SV.js";
|
|
43
43
|
import {
|
|
44
44
|
OPTIONAL_PACKAGES,
|
|
45
45
|
installedOptionalPackageVersion
|
|
46
46
|
} from "./chunk-3DKN5WKL.js";
|
|
47
47
|
import {
|
|
48
48
|
resolveExtractCacheDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RERXOG54.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-3RRUFZ4H.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PBKOURSI.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W5USVP6Z.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KHR4IJAW.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveCompositionViewportFromHtml
|
|
15
15
|
} from "./chunk-FH7WODJH.js";
|
|
16
16
|
import {
|
|
17
17
|
launchManagedBrowser,
|
|
18
18
|
resolveManagedGpuMode
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XRRDVRCY.js";
|
|
20
20
|
import {
|
|
21
21
|
pageNavigationTimeoutMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RAZVWSU5.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveProject
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7E4YFL4U.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
printDeprecationNotice,
|
|
38
38
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YMU42UU2.js";
|
|
40
40
|
import {
|
|
41
41
|
decodeWellFormedEscapes
|
|
42
42
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -227,7 +227,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
227
227
|
async function localizeRemoteAssets(html) {
|
|
228
228
|
let dir;
|
|
229
229
|
try {
|
|
230
|
-
const { loadProducer } = await import("./producer-
|
|
230
|
+
const { loadProducer } = await import("./producer-HKGHSAON.js");
|
|
231
231
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
232
232
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
233
233
|
const assetDir = dir;
|
|
@@ -248,9 +248,9 @@ async function localizeRemoteAssets(html) {
|
|
|
248
248
|
}
|
|
249
249
|
async function validateInBrowser(project, opts) {
|
|
250
250
|
const projectDir = project.dir;
|
|
251
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
251
|
+
const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
|
|
252
252
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
253
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
253
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-DG4VZO4G.js");
|
|
254
254
|
const { lintProject } = await import("./lintProject-ARKJXDQF.js");
|
|
255
255
|
const lintResult = await lintProject(projectDir);
|
|
256
256
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -272,9 +272,9 @@ async function validateInBrowser(project, opts) {
|
|
|
272
272
|
try {
|
|
273
273
|
const browser = await ensureBrowser();
|
|
274
274
|
const puppeteer = await import("puppeteer-core");
|
|
275
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
275
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-4COYCAFY.js");
|
|
276
276
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
277
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
277
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-L72BQRFR.js");
|
|
278
278
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
279
279
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
280
280
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -6,30 +6,30 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YCSCDQDS.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
12
|
import {
|
|
13
13
|
loadProducer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EKDTCSCL.js";
|
|
15
15
|
import {
|
|
16
16
|
formatBytes
|
|
17
17
|
} from "./chunk-K2FLNJVB.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-3Q4Y33FT.js";
|
|
19
|
+
import "./chunk-TNDNFZOK.js";
|
|
20
20
|
import "./chunk-6JR2XUEE.js";
|
|
21
21
|
import "./chunk-C6TPGUWD.js";
|
|
22
22
|
import {
|
|
23
23
|
CACHE_DIR_NAME,
|
|
24
24
|
cleanupProxyCache
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QWCXGTOH.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_HISTORY_ROOT,
|
|
28
28
|
listProjectHistories,
|
|
29
29
|
pruneGoneProjectHistories
|
|
30
30
|
} from "./chunk-GMJ3ILLW.js";
|
|
31
31
|
import "./chunk-FFDC5OWV.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ZGSLXWH2.js";
|
|
33
33
|
import "./chunk-5CS4T6C6.js";
|
|
34
34
|
import "./chunk-T6AGUTZJ.js";
|
|
35
35
|
import {
|
|
@@ -47,27 +47,27 @@ import "./chunk-7FMUTGOH.js";
|
|
|
47
47
|
import "./chunk-XRKMITSS.js";
|
|
48
48
|
import {
|
|
49
49
|
withMeta
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YMU42UU2.js";
|
|
51
51
|
import "./chunk-K4WIOZFP.js";
|
|
52
52
|
import "./chunk-XUXGIA7H.js";
|
|
53
53
|
import "./chunk-WERLJGIC.js";
|
|
54
54
|
import "./chunk-ISN5GRYI.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-NELZN7SV.js";
|
|
56
56
|
import "./chunk-3DKN5WKL.js";
|
|
57
57
|
import "./chunk-EOVYQ3IG.js";
|
|
58
58
|
import "./chunk-6BEFEWFB.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-S354WIFQ.js";
|
|
60
60
|
import "./chunk-XT6MXC7A.js";
|
|
61
61
|
import {
|
|
62
62
|
EXTRACT_CACHE_MIN_AGE_MS,
|
|
63
63
|
directorySizeBytes,
|
|
64
64
|
gcExtractionCache,
|
|
65
65
|
resolveExtractCacheDir
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-RERXOG54.js";
|
|
67
|
+
import "./chunk-JNL3RMDG.js";
|
|
68
68
|
import "./chunk-W2LGJSEN.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-VEQ7DKPG.js";
|
|
70
|
+
import "./chunk-EEXE43II.js";
|
|
71
71
|
import "./chunk-VC76R6W2.js";
|
|
72
72
|
import "./chunk-UJKQWGFF.js";
|
|
73
73
|
import "./chunk-YMS5FOMC.js";
|