hyperframes 0.8.203 → 0.8.205
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-HVWZZBVO.js → add-BA4AU262.js} +11 -11
- package/dist/{animatedGifPrep-7SQD4XQY.js → animatedGifPrep-UNUCFGLQ.js} +6 -6
- package/dist/api.js +16 -16
- package/dist/{asset-H2D5ENJ6.js → asset-KCDVTNC3.js} +2 -2
- package/dist/{assetCataloger-PIRQXMHM.js → assetCataloger-5FCVQ3N6.js} +6 -6
- package/dist/{audio-F6TTYCGR.js → audio-KDBPEHRS.js} +16 -13
- package/dist/{auth-HK5IYSNR.js → auth-IMPBZZXJ.js} +1 -1
- package/dist/{autoUpdate-DQMCXE6X.js → autoUpdate-YE2RKCAG.js} +2 -2
- package/dist/{backgroundChecks-Y466WV7Y.js → backgroundChecks-OWY2UFSR.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PGJELR2B.js → batchRender-AN4HWKET.js} +3 -3
- package/dist/{beats-AD2IJGBZ.js → beats-VTQJ4JH6.js} +8 -8
- package/dist/{benchmark-B564OTLO.js → benchmark-PBEWHJ5K.js} +13 -11
- package/dist/{browser-B7BELTLZ.js → browser-E7ANEHNU.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-INYZKCJN.js → bundleWithLocalizedFonts-I3BWMRSP.js} +2 -2
- package/dist/{capture-LKV2HS5Q.js → capture-MP7R72WU.js} +2 -2
- package/dist/{capture-VMJVXQJ2.js → capture-XODFC4S4.js} +10 -10
- package/dist/{captureCompositionFrame-L2W6KSAL.js → captureCompositionFrame-2OYGVDI3.js} +11 -11
- package/dist/{catalog-5ETWOAL2.js → catalog-ORVCCEQR.js} +11 -11
- package/dist/{catch-up-3RWU3BRJ.js → catch-up-SYAQOXTT.js} +4 -4
- package/dist/{check-KD57MC5Z.js → check-6SQR6SSA.js} +35 -35
- package/dist/{checkBrowser-R72NYI4S.js → checkBrowser-HOTD3CDE.js} +30 -30
- package/dist/{chunk-5GFNMC2F.js → chunk-26OI2B2X.js} +1 -1
- package/dist/{chunk-CTNWZASM.js → chunk-2FEOM3ZT.js} +3 -3
- package/dist/{chunk-HYMW42OE.js → chunk-32R2AFZ3.js} +3 -3
- package/dist/{chunk-32SIPBON.js → chunk-3N4T6I3O.js} +1 -1
- package/dist/{chunk-IREQUN2P.js → chunk-4RPCYGZG.js} +1 -1
- package/dist/{chunk-DZZ6VHPY.js → chunk-4UIEQIF4.js} +2 -2
- package/dist/{chunk-TMIX2WQL.js → chunk-57I5KNTL.js} +3 -3
- package/dist/{chunk-UVV2DKZR.js → chunk-5F6B6KMK.js} +2 -2
- package/dist/{chunk-TVC4EI2W.js → chunk-5PVPGWMH.js} +1 -1
- package/dist/{chunk-FRXPZCEP.js → chunk-6GAYBX5C.js} +1 -1
- package/dist/{chunk-BD3LJRJT.js → chunk-6NC4KBS2.js} +1 -1
- package/dist/{chunk-RUVO77RK.js → chunk-6YYFNGCS.js} +12 -7
- package/dist/{chunk-LTGTN2TH.js → chunk-75WNFDRU.js} +1 -1
- package/dist/{chunk-7SNVSO4A.js → chunk-7V7OUKTU.js} +1 -1
- package/dist/{chunk-CFFPH6D3.js → chunk-A42PDANH.js} +1 -1
- package/dist/{chunk-3YZ2ESXP.js → chunk-AECL3B23.js} +1 -1
- package/dist/{chunk-UNBGZQZ6.js → chunk-AECSY5LT.js} +194 -80
- package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
- package/dist/{chunk-GX4CEJCX.js → chunk-BA7MQJXG.js} +3 -3
- package/dist/{chunk-E3LRVXM2.js → chunk-BHOGXIBO.js} +4 -6
- package/dist/{chunk-35KHQKEX.js → chunk-BTYT3RT3.js} +1 -1
- package/dist/{chunk-HOQNNE3I.js → chunk-BZ727KLT.js} +1 -1
- package/dist/{chunk-TRDUMOUW.js → chunk-C4LV6L4Q.js} +3 -3
- package/dist/{chunk-CAHZZOEC.js → chunk-CU76YDPX.js} +1 -1
- package/dist/{chunk-TZKMAQOY.js → chunk-CUGADCIV.js} +1 -1
- package/dist/{chunk-7RQXBL4L.js → chunk-EXRHI43B.js} +7 -7
- package/dist/{chunk-GOPGJXEQ.js → chunk-FNBEYIZH.js} +5 -5
- package/dist/{chunk-MPGJNUML.js → chunk-G445Y3YG.js} +4 -3
- package/dist/{chunk-VYFMJ2HM.js → chunk-GBQCTZON.js} +10 -10
- package/dist/{chunk-OKZZWUZN.js → chunk-GLBEBBS2.js} +2 -2
- package/dist/{chunk-FE72SB2F.js → chunk-GSTFETKE.js} +1 -1
- package/dist/{chunk-VL5ES6ZM.js → chunk-H4MSJ2NZ.js} +5 -5
- package/dist/{chunk-ML7IPYOC.js → chunk-HADQPG7O.js} +1 -1
- package/dist/{chunk-JEFIEL6S.js → chunk-HQ3CFNHL.js} +1 -1
- package/dist/{chunk-FTARAZAL.js → chunk-I7IXUCKL.js} +1 -1
- package/dist/{chunk-JKUVH7BF.js → chunk-IKYXXIMP.js} +1 -1
- package/dist/{chunk-RWHMKGJA.js → chunk-J2E3VVOS.js} +4 -4
- package/dist/{chunk-TT6HSBYK.js → chunk-JFNB4CMI.js} +5 -5
- package/dist/{chunk-X5PKA5KH.js → chunk-KAIQPYCM.js} +2 -2
- package/dist/{chunk-H6NXL4VB.js → chunk-KBZSMKKD.js} +3 -3
- package/dist/{chunk-IDASYE4U.js → chunk-KVNXEAVT.js} +4 -1
- package/dist/{chunk-YOLS2E5P.js → chunk-L6N2TLXR.js} +18 -18
- package/dist/{chunk-R36C6H32.js → chunk-LQUMMPGK.js} +1 -1
- package/dist/{chunk-Q6B7MFTU.js → chunk-LSQM3NBR.js} +1 -1
- package/dist/{chunk-B7MRZJOW.js → chunk-MASFRPCB.js} +10 -10
- package/dist/{chunk-KWQWEY6F.js → chunk-MVXOY5RC.js} +1 -1
- package/dist/{chunk-WGZOPGHX.js → chunk-N7VQD4WB.js} +1 -1
- package/dist/{chunk-HAKKV3SY.js → chunk-NF6KI46X.js} +23 -15
- package/dist/{chunk-OKRH4JU3.js → chunk-OB7QARSN.js} +1 -1
- package/dist/{chunk-JVWPKIVV.js → chunk-RQDVTUVD.js} +14 -14
- package/dist/{chunk-4GV742H2.js → chunk-RWOWD3PW.js} +2 -2
- package/dist/{chunk-KBCV6BHL.js → chunk-T2UR3T4L.js} +76 -52
- package/dist/{chunk-RZAPLMVM.js → chunk-TGS33LDU.js} +3 -3
- package/dist/{chunk-YJKSLCKV.js → chunk-TOEIJ4WF.js} +5 -5
- package/dist/{chunk-3NUFUEAX.js → chunk-TZ7MTRVJ.js} +13 -13
- package/dist/{chunk-HO2N4UWV.js → chunk-UEOGIZ3Q.js} +2 -2
- package/dist/{chunk-ND5ELD7A.js → chunk-UR6BAPOD.js} +1 -1
- package/dist/{chunk-2G6EI3WQ.js → chunk-V2XXV2EH.js} +1 -1
- package/dist/{chunk-BL4U6U52.js → chunk-V4K4BSCM.js} +16 -5
- package/dist/{chunk-QB4K2EWI.js → chunk-WB55EQNJ.js} +1 -1
- package/dist/{chunk-DO2OTFCJ.js → chunk-XNAIYEKD.js} +1 -1
- package/dist/{chunk-GOWNPWCJ.js → chunk-ZB6SCA4J.js} +1 -1
- package/dist/{chunk-VI7GBPF6.js → chunk-ZSUWGNIT.js} +2 -2
- package/dist/chunk-ZUQZP6QD.js +3986 -0
- package/dist/{clean-7OBS6NMK.js → clean-BW7NHQS5.js} +18 -18
- package/dist/cli.js +81 -59
- package/dist/{cloud-JFL6IMUV.js → cloud-TZVXTWZO.js} +4 -4
- package/dist/{cloudrun-GHA4FXS3.js → cloudrun-KRIETALO.js} +4 -4
- package/dist/{compare-UFTPPNLD.js → compare-WYWHJ4CR.js} +27 -27
- package/dist/{compiler-6LUGBYWD.js → compiler-ANIPXLJ7.js} +7 -3
- package/dist/{component-4W3MT53Y.js → component-CY7DCX56.js} +3 -3
- package/dist/{compositions-63M4AHPA.js → compositions-5YEB24E3.js} +10 -10
- package/dist/{delete-XCSORSYR.js → delete-6642PDON.js} +2 -2
- package/dist/{deploy-JUC2BVCE.js → deploy-NZP6TZLS.js} +1 -1
- package/dist/{dist-SOMNYPEE.js → dist-DGFC75NC.js} +2 -2
- package/dist/{dist-6JMYDD7F.js → dist-V2BGP46S.js} +1 -1
- package/dist/docs/examples.md +31 -7
- package/dist/{doctor-LZ5KMUGS.js → doctor-ZW4A2FS3.js} +12 -12
- package/dist/{events-DSJDLP3V.js → events-NJU4VFDA.js} +3 -3
- package/dist/{events-XN26WXN3.js → events-XRCHY2F6.js} +2 -2
- package/dist/{feedback-VZZT77OU.js → feedback-NQLSZMES.js} +7 -7
- package/dist/{ffmpeg-TU5BPXP6.js → ffmpeg-RYDQLG3G.js} +7 -7
- package/dist/{figma-BYBMKBNS.js → figma-TJAMP2CI.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-JAKXQVNF.js → get-RRZ3O26X.js} +2 -2
- package/dist/{gpuPolicy-A6BRKFTK.js → gpuPolicy-4WLHUUS3.js} +6 -6
- package/dist/{grade-compare-6TLS63GE.js → grade-compare-P7PE3NAA.js} +29 -29
- package/dist/{help-WMABNXSF.js → help-6RELRVIW.js} +1 -1
- package/dist/{history-PNOTK4KM.js → history-GIIDYND3.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +17 -17
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-457IZRNA.js → info-LBUA2DXE.js} +7 -7
- package/dist/{init-QNOPZRQJ.js → init-QUPXBONY.js} +30 -33
- package/dist/{inspect-4PECXE65.js → inspect-CL42DJZ4.js} +28 -28
- package/dist/{installer-K6VCZN74.js → installer-VR7XDLR3.js} +4 -4
- package/dist/{keyframes-KBR4RHQO.js → keyframes-LELLROMA.js} +6 -6
- package/dist/{lambda-FSC3XJOQ.js → lambda-I6KFXWOO.js} +6 -6
- package/dist/{layout-PFXAKL65.js → layout-NR6SNRZE.js} +28 -28
- package/dist/{lint-MR7WHCBO.js → lint-DYEMSEQR.js} +7 -7
- package/dist/{lintProject-4IVYXS5J.js → lintProject-EA4NPL2X.js} +1 -1
- package/dist/{list-OCSE7GSX.js → list-RDURYO5U.js} +2 -2
- package/dist/{login-M4L3MHVL.js → login-VKLET5OL.js} +4 -4
- package/dist/{manager-F34TSFV6.js → manager-7TSUZKXU.js} +2 -2
- package/dist/{manager-G6G2WQU3.js → manager-IYT3THJN.js} +8 -8
- package/dist/{media-treatment-6ATFI5M2.js → media-treatment-I4AFEQZ3.js} +13 -13
- package/dist/{models-NPSWNLVS.js → models-LLPVGC2E.js} +12 -12
- package/dist/{motionShot-HVPC2V7Q.js → motionShot-6A6HH6IK.js} +15 -15
- package/dist/{normalize-audio-YEEAY2TB.js → normalize-audio-KVQJBYLT.js} +7 -7
- package/dist/{open-6LSE4QDQ.js → open-J4ZT4X3C.js} +14 -13
- package/dist/{parakeetRunner-HMDK2MEQ.js → parakeetRunner-FLUCIDIZ.js} +13 -13
- package/dist/{pipeline-GQV2DL2T.js → pipeline-RRVLGALQ.js} +8 -8
- package/dist/{play-NORPMDGV.js → play-QGJSXUVM.js} +19 -19
- package/dist/{preflight-SDPP63GU.js → preflight-SP2ZERBE.js} +9 -9
- package/dist/{present-BVPAEHE6.js → present-UR4YBHMX.js} +15 -15
- package/dist/{preview-C762R2VY.js → preview-6ENCRU4C.js} +19 -19
- package/dist/{producer-XXFVYAW6.js → producer-OMHZRY6A.js} +1 -1
- package/dist/{projectConfig-72HEHSHM.js → projectConfig-NGS7GJ47.js} +6 -6
- package/dist/{publication-QOK2NB7H.js → publication-6NYQA22Y.js} +2 -2
- package/dist/{publish-OVCPM2R4.js → publish-E6RE5VHB.js} +9 -9
- package/dist/{remove-background-BK7G24LO.js → remove-background-66PQRA7R.js} +9 -9
- package/dist/{render-BA4DJGH2.js → render-IMSGS6BD.js} +32 -32
- package/dist/{render-3RV5ZZHB.js → render-SBAZWXPO.js} +5 -5
- package/dist/{render-KCRWPUSH.js → render-ZLRJUFMX.js} +15 -15
- package/dist/{render-batch-EKMNALAK.js → render-batch-MO7LYZSP.js} +5 -5
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-ZQAEKX2N.js → resolver-QMBVTAKT.js} +4 -4
- package/dist/{sherpa-UPEEZCVJ.js → sherpa-JZRDL3OE.js} +12 -12
- package/dist/skills/hyperframes/references/types/launch.md +12 -2
- package/dist/skills/media-use/references/memory.md +4 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +173 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.mjs +46 -28
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +56 -0
- package/dist/{skills-EBCABDEA.js → skills-YBTEWFYS.js} +5 -5
- package/dist/{skillsUpdateCheck-2TBQ3R7X.js → skillsUpdateCheck-Z4HTDZJN.js} +3 -3
- package/dist/{snapshot-KRDQ6UFY.js → snapshot-5F5UV6H5.js} +33 -33
- package/dist/{src-FMPMLWOE.js → src-UTW3F2PM.js} +5 -5
- package/dist/{src-HODRARUH.js → src-WWXYV2TS.js} +8 -8
- package/dist/{staticProjectServer-NBWPYBIH.js → staticProjectServer-UHZ63C5O.js} +16 -16
- package/dist/studio/assets/{hyperframes-player-C3pgGOtp.js → hyperframes-player-DzdSmJdB.js} +3 -3
- package/dist/studio/assets/{index-5EFQxr70.js → index-C8hp9Y7c.js} +1 -1
- package/dist/studio/assets/{index-BbcMyD3j.js → index-dy6GQJn4.js} +116 -116
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BOV2DTPC.js → studio-api-BHZ3PHL2.js} +9 -9
- package/dist/{studioServer-TSKSIQC3.js → studioServer-AFUXWRB5.js} +53 -52
- package/dist/{telemetry-RLKGEBGR.js → telemetry-UYKOT4OJ.js} +3 -3
- package/dist/{timeline-ADFTKSNX.js → timeline-K5NLEMH4.js} +17 -17
- package/dist/{tokens-2NKS4KAO.js → tokens-FCOSWE2O.js} +2 -2
- package/dist/{transcribe-AHNMYPY4.js → transcribe-K2QTXDQR.js} +17 -17
- package/dist/{transcribe-63XQBLF3.js → transcribe-SIFMTW5W.js} +11 -11
- package/dist/{updateCheck-XDYXIVKF.js → updateCheck-JZ6TBZVE.js} +2 -2
- package/dist/{upgrade-GK2RSMPV.js → upgrade-TUPAJXQQ.js} +2 -2
- package/dist/{urlDownloader-X2B7NQSQ.js → urlDownloader-L4775QID.js} +5 -5
- package/dist/{validate-UN4RB6KN.js → validate-4HVVMEBV.js} +22 -22
- package/dist/{video-QRWQLU5O.js → video-4OGPF3IE.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-42DLVZNO.js +0 -3983
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
EncoderInterruptedError,
|
|
17
17
|
encoderFailureError,
|
|
18
18
|
prepareAnimatedGifInputs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YYFNGCS.js";
|
|
20
20
|
import {
|
|
21
21
|
parseEncoderOptions
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AYH5ANVS.js";
|
|
23
23
|
import {
|
|
24
24
|
RENDER_TEMP_DIR,
|
|
25
25
|
createStudioPositionSeekReapplyScript
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
verifyDiskDrawElementSamples,
|
|
163
163
|
videoAudioId,
|
|
164
164
|
writeCapturedFrame
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-T2UR3T4L.js";
|
|
166
166
|
import {
|
|
167
167
|
DISTRIBUTED_FPS,
|
|
168
168
|
HF_VFX_ATTR,
|
|
@@ -178,10 +178,11 @@ import {
|
|
|
178
178
|
parseVfxChain,
|
|
179
179
|
resolveAuthoredTimingWindow,
|
|
180
180
|
toFps
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-6GAYBX5C.js";
|
|
182
182
|
import {
|
|
183
183
|
assignBundledRuntimeCompositionIds,
|
|
184
184
|
buildVariablesByCompScript,
|
|
185
|
+
dedupeFontFaceRules,
|
|
185
186
|
emitMountedModuleScripts,
|
|
186
187
|
emitRootCompositionVariableStyles,
|
|
187
188
|
ensureExternalLinkTag,
|
|
@@ -190,7 +191,7 @@ import {
|
|
|
190
191
|
inlineSubCompositions,
|
|
191
192
|
parsesAsScript,
|
|
192
193
|
prepareFlattenedInnerRoot
|
|
193
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-BHOGXIBO.js";
|
|
194
195
|
import {
|
|
195
196
|
COMPOSITION_SOURCE_URL,
|
|
196
197
|
HF_COLOR_GRADING_ATTR,
|
|
@@ -207,6 +208,7 @@ import {
|
|
|
207
208
|
injectScriptsIntoHtml,
|
|
208
209
|
inlineScriptRuns,
|
|
209
210
|
insertBeforeCloseTag,
|
|
211
|
+
isAlwaysAppliedStyle,
|
|
210
212
|
isJavaScriptType,
|
|
211
213
|
isRuntimeFileUrl,
|
|
212
214
|
isTemplateEntry,
|
|
@@ -222,7 +224,7 @@ import {
|
|
|
222
224
|
sourceTimeAt,
|
|
223
225
|
styleElementsFor,
|
|
224
226
|
timeAtSourceTime
|
|
225
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-ZUQZP6QD.js";
|
|
226
228
|
import {
|
|
227
229
|
CANVAS_DIMENSIONS,
|
|
228
230
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -249,7 +251,7 @@ import {
|
|
|
249
251
|
import {
|
|
250
252
|
lintHyperframeHtml,
|
|
251
253
|
resolveReferencedStart
|
|
252
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-KVNXEAVT.js";
|
|
253
255
|
import {
|
|
254
256
|
isUnresolvedAssetPlaceholder,
|
|
255
257
|
readProjectFile,
|
|
@@ -1468,6 +1470,7 @@ function buildRenderErrorDetails(input) {
|
|
|
1468
1470
|
}
|
|
1469
1471
|
|
|
1470
1472
|
// ../producer/src/services/render/renderEventPublisher.ts
|
|
1473
|
+
var FLUSH_TIMEOUT_MS = 1e4;
|
|
1471
1474
|
function snapshotJob(job) {
|
|
1472
1475
|
return {
|
|
1473
1476
|
...job,
|
|
@@ -1497,7 +1500,15 @@ var OrderedRenderEventPublisher = class {
|
|
|
1497
1500
|
});
|
|
1498
1501
|
}
|
|
1499
1502
|
async flush() {
|
|
1500
|
-
|
|
1503
|
+
let timer;
|
|
1504
|
+
const drained = await Promise.race([
|
|
1505
|
+
this.tail.then(() => true),
|
|
1506
|
+
new Promise((resolve11) => {
|
|
1507
|
+
timer = setTimeout(() => resolve11(false), FLUSH_TIMEOUT_MS);
|
|
1508
|
+
})
|
|
1509
|
+
]);
|
|
1510
|
+
clearTimeout(timer);
|
|
1511
|
+
if (!drained) this.log.warn("Render event sink did not drain; continuing without it");
|
|
1501
1512
|
}
|
|
1502
1513
|
};
|
|
1503
1514
|
function publishRenderFailure(job, failure, onProgress) {
|
|
@@ -5442,6 +5453,56 @@ function heartbeatTargetMs(index) {
|
|
|
5442
5453
|
const overflow = index - HEARTBEAT_RAMP_MS.length + 1;
|
|
5443
5454
|
return HEARTBEAT_RAMP_END_MS + overflow * HEARTBEAT_REPEAT_MS;
|
|
5444
5455
|
}
|
|
5456
|
+
var RenderStageStalledError = class extends CaptureFailure {
|
|
5457
|
+
code = "RENDER_STAGE_STALLED";
|
|
5458
|
+
owner = "system";
|
|
5459
|
+
retryable = false;
|
|
5460
|
+
constructor(phase, silentMs, progress) {
|
|
5461
|
+
super({
|
|
5462
|
+
kind: "protocol_timeout",
|
|
5463
|
+
message: `[Render] ${phase} stalled: no progress for ${silentMs}ms (stuck at ${progress}).`
|
|
5464
|
+
});
|
|
5465
|
+
this.name = "RenderStageStalledError";
|
|
5466
|
+
}
|
|
5467
|
+
};
|
|
5468
|
+
var STALL_POLL_MS = 5e3;
|
|
5469
|
+
function watchStall(phase, rule) {
|
|
5470
|
+
let last = rule.progress();
|
|
5471
|
+
let budgetMs = rule.firstProgressMs;
|
|
5472
|
+
let lastChangeAt = Date.now();
|
|
5473
|
+
let attempt;
|
|
5474
|
+
let timer;
|
|
5475
|
+
const restartWindow = (ms) => {
|
|
5476
|
+
last = rule.progress();
|
|
5477
|
+
budgetMs = ms;
|
|
5478
|
+
lastChangeAt = Date.now();
|
|
5479
|
+
};
|
|
5480
|
+
const tripped = new Promise((_, reject) => {
|
|
5481
|
+
timer = setInterval(
|
|
5482
|
+
() => {
|
|
5483
|
+
const current = rule.progress();
|
|
5484
|
+
if (current !== last) return restartWindow(rule.noProgressMs);
|
|
5485
|
+
if (Date.now() - lastChangeAt < budgetMs) return;
|
|
5486
|
+
const error = new RenderStageStalledError(phase, budgetMs, current);
|
|
5487
|
+
if (attempt && !attempt.signal.aborted) {
|
|
5488
|
+
attempt.abort(error);
|
|
5489
|
+
return restartWindow(rule.noProgressMs);
|
|
5490
|
+
}
|
|
5491
|
+
clearInterval(timer);
|
|
5492
|
+
reject(error);
|
|
5493
|
+
},
|
|
5494
|
+
Math.min(STALL_POLL_MS, rule.noProgressMs, rule.firstProgressMs)
|
|
5495
|
+
);
|
|
5496
|
+
});
|
|
5497
|
+
const openAttempt = (parent) => {
|
|
5498
|
+
attempt = new AbortController();
|
|
5499
|
+
restartWindow(rule.firstProgressMs);
|
|
5500
|
+
return parent ? AbortSignal.any([parent, attempt.signal]) : attempt.signal;
|
|
5501
|
+
};
|
|
5502
|
+
const stalledBy = () => attempt?.signal.aborted ? attempt.signal.reason : void 0;
|
|
5503
|
+
return { tripped, openAttempt, stalledBy, stop: () => clearInterval(timer) };
|
|
5504
|
+
}
|
|
5505
|
+
var openUnwatchedAttempt = (parent) => parent ?? new AbortController().signal;
|
|
5445
5506
|
async function observeRenderStage(recorder, phase, data, fn, options = {}) {
|
|
5446
5507
|
const heartbeatMessage = options.heartbeatMessage ?? "stage still running";
|
|
5447
5508
|
const startedAt = recorder.stageStart(phase, data);
|
|
@@ -5463,15 +5524,19 @@ async function observeRenderStage(recorder, phase, data, fn, options = {}) {
|
|
|
5463
5524
|
heartbeatTimer.unref?.();
|
|
5464
5525
|
};
|
|
5465
5526
|
scheduleNextHeartbeat();
|
|
5527
|
+
const stall = options.stall ? watchStall(phase, options.stall) : void 0;
|
|
5466
5528
|
const clearHeartbeats = () => {
|
|
5467
5529
|
clearTimeout(heartbeatTimer);
|
|
5530
|
+
stall?.stop();
|
|
5468
5531
|
};
|
|
5469
5532
|
try {
|
|
5470
|
-
const
|
|
5533
|
+
const run = fn(stall?.openAttempt ?? openUnwatchedAttempt);
|
|
5534
|
+
const result = await (stall ? Promise.race([run, stall.tripped]) : run);
|
|
5471
5535
|
clearHeartbeats();
|
|
5472
5536
|
recorder.stageEnd(phase, startedAt, data);
|
|
5473
5537
|
return result;
|
|
5474
|
-
} catch (
|
|
5538
|
+
} catch (caught) {
|
|
5539
|
+
const error = stall?.stalledBy() ?? caught;
|
|
5475
5540
|
clearHeartbeats();
|
|
5476
5541
|
recorder.stageError(phase, startedAt, error, data);
|
|
5477
5542
|
throw error;
|
|
@@ -6370,6 +6435,11 @@ function coalesceHeadStylesAndBodyScripts(html) {
|
|
|
6370
6435
|
const head = document2.querySelector("head");
|
|
6371
6436
|
const body = document2.querySelector("body");
|
|
6372
6437
|
if (!head && !body) return html;
|
|
6438
|
+
const liveStyles = [...document2.querySelectorAll("style")].filter(isAlwaysAppliedStyle);
|
|
6439
|
+
const dedupedStyles = dedupeFontFaceRules(liveStyles.map((el) => el.textContent || ""));
|
|
6440
|
+
liveStyles.forEach((el, i) => {
|
|
6441
|
+
el.textContent = dedupedStyles[i] ?? "";
|
|
6442
|
+
});
|
|
6373
6443
|
const styleEls = head ? Array.from(head.querySelectorAll("style")) : [];
|
|
6374
6444
|
const importRe = /@import\s+url\([^)]*\)\s*;|@import\s+["'][^"']+["']\s*;/gi;
|
|
6375
6445
|
for (const run of styleEls.length > 1 ? headStyleRuns(styleEls) : []) {
|
|
@@ -7209,9 +7279,10 @@ async function discoverMediaFromBrowser(page) {
|
|
|
7209
7279
|
const tagName = isImage ? "image" : htmlEl.tagName.toLowerCase() === "video" ? "video" : "audio";
|
|
7210
7280
|
const id = htmlEl.getAttribute("data-hf-render-id") || htmlEl.id || (isImage ? autoImageIds.get(htmlEl) : void 0);
|
|
7211
7281
|
if (!id) return;
|
|
7212
|
-
const
|
|
7213
|
-
const
|
|
7214
|
-
const
|
|
7282
|
+
const resolvedSrc = htmlEl.currentSrc || htmlEl.src || htmlEl.getAttribute("src") || "";
|
|
7283
|
+
const withoutQueryAndHash = (url) => url.replace(/[?#][\s\S]*$/, "");
|
|
7284
|
+
const isPageItself = withoutQueryAndHash(resolvedSrc) === withoutQueryAndHash(location.href);
|
|
7285
|
+
const src = isPageItself ? "" : resolvedSrc;
|
|
7215
7286
|
const start = parseFloat(htmlEl.getAttribute("data-start") || "0");
|
|
7216
7287
|
const endRaw = htmlEl.getAttribute("data-end");
|
|
7217
7288
|
const durationRaw = htmlEl.getAttribute("data-duration");
|
|
@@ -9432,6 +9503,7 @@ async function runCaptureStage(input) {
|
|
|
9432
9503
|
interleaveFrames: input.interleaveFrames,
|
|
9433
9504
|
dedupPerfs,
|
|
9434
9505
|
pageErrorLines: workerPageErrors,
|
|
9506
|
+
openAttempt: input.openAttempt,
|
|
9435
9507
|
onProgress: (progress) => {
|
|
9436
9508
|
if (progress.latestWorkerPhase) {
|
|
9437
9509
|
if (progress.capturedFrames === 0) reportWorkerStartup(job, progress, onProgress);
|
|
@@ -9503,6 +9575,11 @@ async function runSequentialDiskCapture(input, captureOptions, captureCfg, check
|
|
|
9503
9575
|
let transientRetriesUsed = 0;
|
|
9504
9576
|
let resumeFrom = 0;
|
|
9505
9577
|
while (true) {
|
|
9578
|
+
const attempt = input.openAttempt?.();
|
|
9579
|
+
const assertAttemptActive = () => {
|
|
9580
|
+
assertNotAborted();
|
|
9581
|
+
attempt?.throwIfAborted();
|
|
9582
|
+
};
|
|
9506
9583
|
const videoInjector = createRenderVideoFrameInjector();
|
|
9507
9584
|
const session = probeSession ?? await createCaptureSession(
|
|
9508
9585
|
fileServer.url,
|
|
@@ -9518,10 +9595,10 @@ async function runSequentialDiskCapture(input, captureOptions, captureCfg, check
|
|
|
9518
9595
|
probeSession = null;
|
|
9519
9596
|
}
|
|
9520
9597
|
await ensureSessionReady(session);
|
|
9521
|
-
|
|
9598
|
+
assertAttemptActive();
|
|
9522
9599
|
lastBrowserConsole = session.browserConsoleBuffer;
|
|
9523
9600
|
await captureSessionFrames(session, {
|
|
9524
|
-
input,
|
|
9601
|
+
input: { ...input, assertNotAborted: assertAttemptActive },
|
|
9525
9602
|
rangeStart,
|
|
9526
9603
|
rangeEnd,
|
|
9527
9604
|
resumeFrom,
|
|
@@ -11342,7 +11419,17 @@ function captureAttemptMadeProgress(attemptTargetFrameCount, remainingFrameCount
|
|
|
11342
11419
|
function resetCaptureAttemptProgress(job) {
|
|
11343
11420
|
job.framesRendered = 0;
|
|
11344
11421
|
}
|
|
11422
|
+
var FIRST_FRAME_STALL_MS = 3e5;
|
|
11423
|
+
function frameStallRule(job) {
|
|
11424
|
+
const noProgressMs = resolveCaptureStallTimeoutMs();
|
|
11425
|
+
return {
|
|
11426
|
+
progress: () => job.framesRendered ?? 0,
|
|
11427
|
+
noProgressMs,
|
|
11428
|
+
firstProgressMs: Math.max(FIRST_FRAME_STALL_MS, noProgressMs)
|
|
11429
|
+
};
|
|
11430
|
+
}
|
|
11345
11431
|
function isRecoverableParallelCaptureError(error) {
|
|
11432
|
+
if (error instanceof RenderStageStalledError) return true;
|
|
11346
11433
|
const message = normalizeErrorMessage(error);
|
|
11347
11434
|
if (!message.includes("[Parallel] Capture failed")) return false;
|
|
11348
11435
|
const kind = classifyCaptureFailure(error).kind;
|
|
@@ -11405,8 +11492,10 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
|
|
|
11405
11492
|
)
|
|
11406
11493
|
];
|
|
11407
11494
|
options.dedupPerfs.length = 0;
|
|
11495
|
+
let attemptSignal = options.abortSignal;
|
|
11408
11496
|
try {
|
|
11409
11497
|
for (const tasks of batches) {
|
|
11498
|
+
attemptSignal = options.openAttempt?.(options.abortSignal) ?? options.abortSignal;
|
|
11410
11499
|
const capturedBeforeBatch = countCapturedFrames(
|
|
11411
11500
|
options.totalFrames,
|
|
11412
11501
|
options.framesDir,
|
|
@@ -11419,7 +11508,7 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
|
|
|
11419
11508
|
tasks,
|
|
11420
11509
|
options.captureOptions,
|
|
11421
11510
|
options.createBeforeCaptureHook,
|
|
11422
|
-
|
|
11511
|
+
attemptSignal,
|
|
11423
11512
|
options.onProgress ? (progress) => {
|
|
11424
11513
|
options.onProgress?.({
|
|
11425
11514
|
...progress,
|
|
@@ -11467,7 +11556,8 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
|
|
|
11467
11556
|
currentWorkers = nextWorkers;
|
|
11468
11557
|
missingRanges = remaining;
|
|
11469
11558
|
attempt++;
|
|
11470
|
-
} catch (
|
|
11559
|
+
} catch (caught) {
|
|
11560
|
+
const error = attemptSignal?.aborted && !options.abortSignal?.aborted ? attemptSignal.reason : caught;
|
|
11471
11561
|
const failure = classifyCaptureFailure(error, { signal: options.abortSignal });
|
|
11472
11562
|
if (failure.kind === "cancelled") {
|
|
11473
11563
|
throw error;
|
|
@@ -13136,37 +13226,44 @@ async function executeRenderPipeline(input) {
|
|
|
13136
13226
|
observability,
|
|
13137
13227
|
"capture_hdr_layered",
|
|
13138
13228
|
captureStageObservationData({ hasHdrContent }),
|
|
13139
|
-
() =>
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13152
|
-
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13229
|
+
(openAttempt) => {
|
|
13230
|
+
const attempt = openAttempt(executionSignal);
|
|
13231
|
+
return runCaptureHdrStage({
|
|
13232
|
+
job,
|
|
13233
|
+
cfg,
|
|
13234
|
+
plan: layeredPlan,
|
|
13235
|
+
log,
|
|
13236
|
+
projectDir,
|
|
13237
|
+
compiledDir,
|
|
13238
|
+
framesDir,
|
|
13239
|
+
videoOnlyPath,
|
|
13240
|
+
width,
|
|
13241
|
+
height,
|
|
13242
|
+
totalFrames,
|
|
13243
|
+
composition,
|
|
13244
|
+
hasHdrContent,
|
|
13245
|
+
effectiveHdr,
|
|
13246
|
+
nativeHdrVideoIds,
|
|
13247
|
+
nativeHdrImageIds,
|
|
13248
|
+
videoTransfers,
|
|
13249
|
+
imageTransfers,
|
|
13250
|
+
hdrImageSrcPaths,
|
|
13251
|
+
preset,
|
|
13252
|
+
effectiveQuality,
|
|
13253
|
+
effectiveBitrate,
|
|
13254
|
+
fileServer: activeFileServer,
|
|
13255
|
+
buildCaptureOptions,
|
|
13256
|
+
createRenderVideoFrameInjector,
|
|
13257
|
+
hdrDiagnostics,
|
|
13258
|
+
abortSignal: attempt,
|
|
13259
|
+
assertNotAborted: () => {
|
|
13260
|
+
assertNotAborted();
|
|
13261
|
+
attempt.throwIfAborted();
|
|
13262
|
+
},
|
|
13263
|
+
onProgress
|
|
13264
|
+
});
|
|
13265
|
+
},
|
|
13266
|
+
{ stall: frameStallRule(job) }
|
|
13170
13267
|
);
|
|
13171
13268
|
lastBrowserConsole = hdrRes.lastBrowserConsole;
|
|
13172
13269
|
layeredCaptureWarnings.push(...hdrRes.warnings);
|
|
@@ -13531,7 +13628,7 @@ async function executeRenderPipeline(input) {
|
|
|
13531
13628
|
observability,
|
|
13532
13629
|
"capture_disk",
|
|
13533
13630
|
captureStageObservationData({ needsAlpha: diskPlan.needsAlpha }),
|
|
13534
|
-
() => runCaptureStage({
|
|
13631
|
+
(openAttempt) => runCaptureStage({
|
|
13535
13632
|
fileServer: activeFileServer,
|
|
13536
13633
|
workDir,
|
|
13537
13634
|
framesDir,
|
|
@@ -13549,8 +13646,10 @@ async function executeRenderPipeline(input) {
|
|
|
13549
13646
|
assertNotAborted,
|
|
13550
13647
|
onProgress,
|
|
13551
13648
|
onFrameLanded: (frame) => overlap?.onFrameLanded(frame),
|
|
13552
|
-
interleaveFrames: overlap !== null
|
|
13553
|
-
|
|
13649
|
+
interleaveFrames: overlap !== null,
|
|
13650
|
+
openAttempt
|
|
13651
|
+
}),
|
|
13652
|
+
{ stall: frameStallRule(job) }
|
|
13554
13653
|
);
|
|
13555
13654
|
let captureRes;
|
|
13556
13655
|
try {
|
|
@@ -16070,7 +16169,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16070
16169
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16071
16170
|
if (probeResult.probeSession) {
|
|
16072
16171
|
try {
|
|
16073
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16172
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-UTW3F2PM.js");
|
|
16074
16173
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16075
16174
|
} catch (err) {
|
|
16076
16175
|
log.warn("[plan] probe session close failed", {
|
|
@@ -17127,6 +17226,7 @@ function resolveWorkerEntry2() {
|
|
|
17127
17226
|
|
|
17128
17227
|
// ../producer/src/server.ts
|
|
17129
17228
|
var DEFAULT_SERVER_FPS = { num: 30, den: 1 };
|
|
17229
|
+
var SSE_KEEPALIVE_MS = 3e4;
|
|
17130
17230
|
var SAFE_RENDER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
17131
17231
|
"ASSET_MEDIA_TYPE_MISMATCH",
|
|
17132
17232
|
"NOT_MEDIA_PAYLOAD",
|
|
@@ -17134,7 +17234,8 @@ var SAFE_RENDER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
17134
17234
|
"VIDEO_SOURCE_UNRENDERABLE",
|
|
17135
17235
|
"VIDEO_EXTRACTION_FAILED",
|
|
17136
17236
|
"ENCODER_INTERRUPTED",
|
|
17137
|
-
"RENDER_TOO_SLOW"
|
|
17237
|
+
"RENDER_TOO_SLOW",
|
|
17238
|
+
"RENDER_STAGE_STALLED"
|
|
17138
17239
|
]);
|
|
17139
17240
|
function extractSafeRenderErrorCode(error) {
|
|
17140
17241
|
if (typeof error !== "object" || error === null || !("code" in error)) return void 0;
|
|
@@ -17648,15 +17749,21 @@ function createRenderHandlers(options = {}) {
|
|
|
17648
17749
|
})
|
|
17649
17750
|
});
|
|
17650
17751
|
}
|
|
17752
|
+
const reportProgress = createSseProgressReporter(stream, requestId);
|
|
17753
|
+
const keepalive = setInterval(() => {
|
|
17754
|
+
Promise.resolve(reportProgress(job, job.currentStage)).catch(() => {
|
|
17755
|
+
});
|
|
17756
|
+
}, SSE_KEEPALIVE_MS);
|
|
17651
17757
|
const release = await renderSemaphore.acquire();
|
|
17652
17758
|
try {
|
|
17653
17759
|
await executeRenderJob(
|
|
17654
17760
|
job,
|
|
17655
17761
|
input.projectDir,
|
|
17656
17762
|
absoluteOutputPath,
|
|
17657
|
-
|
|
17763
|
+
reportProgress,
|
|
17658
17764
|
abortController.signal
|
|
17659
|
-
);
|
|
17765
|
+
).finally(release);
|
|
17766
|
+
clearInterval(keepalive);
|
|
17660
17767
|
const fileSize = outputFileSize(absoluteOutputPath);
|
|
17661
17768
|
const outputToken = store.register(absoluteOutputPath);
|
|
17662
17769
|
const outputUrl = `${outputUrlPrefix}/${outputToken}`;
|
|
@@ -17676,6 +17783,7 @@ function createRenderHandlers(options = {}) {
|
|
|
17676
17783
|
})
|
|
17677
17784
|
});
|
|
17678
17785
|
} catch (error) {
|
|
17786
|
+
clearInterval(keepalive);
|
|
17679
17787
|
await writeRenderStreamFailure({
|
|
17680
17788
|
error,
|
|
17681
17789
|
job,
|
|
@@ -17685,7 +17793,6 @@ function createRenderHandlers(options = {}) {
|
|
|
17685
17793
|
log
|
|
17686
17794
|
});
|
|
17687
17795
|
} finally {
|
|
17688
|
-
release();
|
|
17689
17796
|
c.req.raw.signal.removeEventListener("abort", onRequestAbort);
|
|
17690
17797
|
cleanupTempDir(cleanupProjectDir, log);
|
|
17691
17798
|
}
|
|
@@ -17744,7 +17851,7 @@ function startServer(options = {}) {
|
|
|
17744
17851
|
});
|
|
17745
17852
|
async function shutdown(signal) {
|
|
17746
17853
|
log.info(`Received ${signal}, shutting down`);
|
|
17747
|
-
const { drainBrowserPool } = await import("./src-
|
|
17854
|
+
const { drainBrowserPool } = await import("./src-UTW3F2PM.js");
|
|
17748
17855
|
await drainBrowserPool().catch(() => {
|
|
17749
17856
|
});
|
|
17750
17857
|
const handle = await Promise.race([
|
|
@@ -19458,29 +19565,36 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
|
|
|
19458
19565
|
const captureSession = session;
|
|
19459
19566
|
session = null;
|
|
19460
19567
|
overlap.current = canEncodeWhileCapturing(encodeInput, chunkWorkerCount, cpus3().length) ? encodeWhileCapturing(encodeInput, framesInChunk) : null;
|
|
19461
|
-
await
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19568
|
+
await observeRenderStage(
|
|
19569
|
+
new RenderObservabilityRecorder({ pipelineStartMs: start, log }),
|
|
19570
|
+
"capture_chunk",
|
|
19571
|
+
{ chunkIndex },
|
|
19572
|
+
(openAttempt) => runCaptureStage({
|
|
19573
|
+
fileServer,
|
|
19574
|
+
workDir,
|
|
19575
|
+
framesDir,
|
|
19576
|
+
job,
|
|
19577
|
+
totalFrames: framesInChunk,
|
|
19578
|
+
cfg: captureCfg,
|
|
19579
|
+
plan: capturePlan,
|
|
19580
|
+
log,
|
|
19581
|
+
probeSession: captureSession,
|
|
19582
|
+
captureAttempts,
|
|
19583
|
+
// This sink records each worker's effective capture mode so a
|
|
19584
|
+
// fallback remains observable to adapters and smoke tests.
|
|
19585
|
+
dedupPerfs: capturePerfs,
|
|
19586
|
+
buildCaptureOptions: () => captureOptions,
|
|
19587
|
+
createRenderVideoFrameInjector: createChunkVideoFrameInjector,
|
|
19588
|
+
abortSignal: void 0,
|
|
19589
|
+
assertNotAborted: () => {
|
|
19590
|
+
},
|
|
19591
|
+
frameRange: range,
|
|
19592
|
+
onFrameLanded: (frame) => overlap.current?.onFrameLanded(frame),
|
|
19593
|
+
interleaveFrames: interleavesCapture(overlap.current !== null, options),
|
|
19594
|
+
openAttempt
|
|
19595
|
+
}),
|
|
19596
|
+
{ stall: frameStallRule(job) }
|
|
19597
|
+
).catch(async (captureError) => {
|
|
19484
19598
|
await overlap.current?.abort();
|
|
19485
19599
|
overlap.current = null;
|
|
19486
19600
|
throw captureError;
|
|
@@ -5,7 +5,7 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
|
-
// ../studio-server/dist/chunk-
|
|
8
|
+
// ../studio-server/dist/chunk-2GPN2OSU.js
|
|
9
9
|
var CRF_MAX_BY_FORMAT = { mp4: 51, webm: 63 };
|
|
10
10
|
var VIDEO_BITRATE = /^\d+(\.\d+)?[kKmMgG]?$/;
|
|
11
11
|
var VIDEO_FRAME_FORMATS = ["auto", "jpg", "png"];
|
|
@@ -40,6 +40,12 @@ function parseEncoderOptions(body, format) {
|
|
|
40
40
|
const rate = parseRateControl(body, format);
|
|
41
41
|
if (!rate.ok) return rate;
|
|
42
42
|
const options = { ...rate.options };
|
|
43
|
+
if (isSet(body.gifLoop)) {
|
|
44
|
+
if (typeof body.gifLoop !== "number" || !Number.isInteger(body.gifLoop) || body.gifLoop < 0 || body.gifLoop > 65535) {
|
|
45
|
+
return { ok: false, error: "gifLoop must be an integer from 0 to 65535" };
|
|
46
|
+
}
|
|
47
|
+
if (format === "gif") options.gifLoop = body.gifLoop;
|
|
48
|
+
}
|
|
43
49
|
if (isSet(body.videoFrameFormat)) {
|
|
44
50
|
if (!oneOf(body.videoFrameFormat, VIDEO_FRAME_FORMATS)) {
|
|
45
51
|
return {
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-57I5KNTL.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GLBEBBS2.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6NC4KBS2.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
HF_COLOR_GRADING_ATTR,
|
|
10
10
|
INLINED_FILE_ATTR,
|
|
11
11
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
12
|
-
UNCONDITIONAL_CSS_KEY,
|
|
13
12
|
assignMediaRenderIds,
|
|
14
13
|
clampDurations,
|
|
15
14
|
compileTimingAttrs,
|
|
@@ -29,6 +28,7 @@ import {
|
|
|
29
28
|
injectTagsAtHeadStart,
|
|
30
29
|
inlineScriptRuns,
|
|
31
30
|
insertRuntimeTag,
|
|
31
|
+
isAlwaysAppliedStyle,
|
|
32
32
|
isJavaScriptType,
|
|
33
33
|
isTemplateEntry,
|
|
34
34
|
parseHTMLContent,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
stripEmbeddedRuntimeScripts,
|
|
41
41
|
styleElementsFor,
|
|
42
42
|
warnUnknownEnumValues
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ZUQZP6QD.js";
|
|
44
44
|
import {
|
|
45
45
|
cssVariableName
|
|
46
46
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-OFQWTKPW.js";
|
|
51
51
|
import {
|
|
52
52
|
lintHyperframeHtml
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-KVNXEAVT.js";
|
|
54
54
|
import {
|
|
55
55
|
CSS_URL_RE,
|
|
56
56
|
checkSubCompositionUsability,
|
|
@@ -2786,9 +2786,6 @@ function placeSceneStylesLikeRender(document) {
|
|
|
2786
2786
|
holder.textContent = hoisted;
|
|
2787
2787
|
first.before(holder);
|
|
2788
2788
|
}
|
|
2789
|
-
function isAlwaysAppliedStyle(el) {
|
|
2790
|
-
return cssStyleMergeKey(el) === UNCONDITIONAL_CSS_KEY && !el.closest("template, noscript, svg");
|
|
2791
|
-
}
|
|
2792
2789
|
function pushRun(runs, scene, chunk) {
|
|
2793
2790
|
const last = runs.at(-1);
|
|
2794
2791
|
if (last && last.scene === scene)
|
|
@@ -3572,6 +3569,7 @@ export {
|
|
|
3572
3569
|
FLATTENED_INNER_ROOT_STRIP_ATTRS,
|
|
3573
3570
|
extractStandaloneEntryFromIndex,
|
|
3574
3571
|
scopeCssToComposition,
|
|
3572
|
+
dedupeFontFaceRules,
|
|
3575
3573
|
wrapScopedCompositionScript,
|
|
3576
3574
|
buildVariablesByCompScript,
|
|
3577
3575
|
validateHyperframeHtmlContract,
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I7IXUCKL.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7V7OUKTU.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KVNXEAVT.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KAIQPYCM.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|