hyperframes 0.8.204 → 0.8.206
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-HBFVYKGU.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-VBUKGEZ6.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-OVLMJY4S.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-K4INCLFU.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-JHW3HLHK.js → audio-VYWWM4DB.js} +19 -16
- package/dist/{auth-RH67KQMZ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-JYR2RW5Z.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-DPHRM4HJ.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JFUWZR3M.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-AWAFZGOT.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-VQCCULJ2.js → benchmark-XT3A5REC.js} +14 -12
- package/dist/{browser-TT5L7D32.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-EHXEP5ZL.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-Y7TGR3BI.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-5CM2P6CB.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-LIT6U6C4.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-WZN2XB7D.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-WZMQUW5H.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-YVJCDCJS.js → check-XUWBZASR.js} +40 -38
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-7V2DGDVD.js → checkBrowser-JW74KWTF.js} +33 -32
- package/dist/{chunk-IDASYE4U.js → chunk-2MLMO25E.js} +8 -5
- package/dist/{chunk-TBSYUEB7.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-7RB4I2E6.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-YLGRZSH4.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-3GPDAE3D.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-UKXF4IPA.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-KOBPUFCN.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-US6JSQ2L.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-LTGTN2TH.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-TQH7BF7K.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-D3EZHD2D.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-IJ6RY4CH.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-DRDG46KK.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-LN5EJMSC.js → chunk-7SXL476O.js} +30 -20
- package/dist/{chunk-2756LXGY.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-DTV3VHFE.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-4HJMZI4H.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-S35XO2ZA.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
- package/dist/{chunk-ZBDVKLIU.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-NJT6SZGL.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-EF7R5EBJ.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-VCBZOU7U.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-RFCLI6TW.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-54FO6TN7.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-5UW7WCHQ.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-TCI4MUT6.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-D5CAZ7R4.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-TAYZSNYS.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-LVMJXO45.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-54K7HW46.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-AQS3MMEQ.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-QB4K2EWI.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-WM7GOKEP.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-4CR23IYU.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-6RLP6RDE.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-23RPCDGE.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-YIN2JAZE.js → chunk-L5MFWGGU.js} +62 -65
- package/dist/{chunk-WMCGD4XL.js → chunk-MFHYBSJC.js} +58 -828
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-X7XICOVM.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-TNOERLC6.js → chunk-NVLPW3DG.js} +17 -9
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-WLD4PX3P.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-QCQDUQVJ.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-QZ4HQQYS.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-VC3BMKYO.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-N3EJG2X4.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-Y63CT2ZC.js → chunk-RDDVQSNQ.js} +124 -37
- package/dist/{chunk-WXAQT63P.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-5RJSWYWL.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-YU53JSUZ.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-MSH2F7VW.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-7PRESGFT.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-6KZY5RSV.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-XX5U64F2.js → chunk-VEA7Z4PZ.js} +4 -3
- package/dist/{chunk-QWATUGUX.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-65VFH2UV.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-DBF6LLXB.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-OPFG563D.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-34VLVDOU.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-BL4U6U52.js → chunk-X7A7C4JS.js} +70 -7
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-GGEA5EHR.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-HBDQGIQA.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-CXZDIWMK.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-3JE2KYTC.js → clean-N5VSKUVS.js} +20 -20
- package/dist/cli.js +82 -60
- package/dist/{cloud-Z54BHP6G.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-4CPQLU5M.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-AQMLMTFD.js → compare-AY2LS2TZ.js} +33 -33
- package/dist/{compiler-LIJYMSEL.js → compiler-4MHMC777.js} +14 -10
- package/dist/{component-ZH37EIYB.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-DF2FM6YD.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-A3NSK2HH.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-6RC2DXPQ.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-VSIT3UAX.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-6JMYDD7F.js → dist-ZY6IFESG.js} +2 -2
- package/dist/docs/examples.md +31 -7
- package/dist/{doctor-RILK4ATO.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-SL434XAY.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-B5EKVEPW.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-S4PC6VAR.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-XSDPPZCU.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-MV2L6E2Z.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-ID3Y3PCN.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-2LRMQOAD.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-NV3TKIOO.js → grade-compare-QEF6VASJ.js} +31 -31
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-ZPT23LZ3.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-MZGDX3TR.js → history-OFOPRD27.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-FIZ4A54H.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-WX4MNPL2.js → init-NTIXWA3D.js} +32 -35
- package/dist/{inspect-R5KWWKNJ.js → inspect-MYMCV5E7.js} +31 -30
- package/dist/inspection.js +4 -4
- package/dist/{installer-CTV5FKYQ.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-FAJY5RK5.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-3MCC2ZH7.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-3RTVYRRN.js → layout-IOMCOABO.js} +31 -30
- package/dist/{lint-ZDCVL7K4.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-4IVYXS5J.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-SBCXW2UT.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VQ2LQ2YG.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-F34TSFV6.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-ZRF6UXUM.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-MFIP7Q4G.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-OU36YZCT.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-SHDUG7YR.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-7RTPEV7Y.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-HT4RG32S.js → open-YXWBWTKL.js} +15 -14
- package/dist/{parakeetRunner-DOVPZDCH.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-NIVQ6E2G.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-HPX5SIRQ.js → play-S562STR4.js} +34 -24
- package/dist/{preflight-TNYC7EIS.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-QSOIMURR.js → present-PGOHZT3L.js} +30 -20
- package/dist/{preview-WDO53XKK.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-G27KP3IY.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-CP722RCM.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-LCWVBLDN.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-BIY6LEZ2.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-NPLZGLZ3.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-J57LAXB5.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-IHNAZXA2.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-HHUGUKG6.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-FK26OQ5E.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-FWJXO6DY.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-BXFJU5EP.js → sherpa-IZ22SC5W.js} +14 -14
- 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-7XS4HZBC.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-MGU5KLR4.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-O2PMEMKH.js → snapshot-5PHA43DK.js} +54 -41
- package/dist/{src-Q4R2YPKA.js → src-36BQVJL3.js} +17 -11
- package/dist/{src-OQRG6BT7.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-6OY4VMO6.js → staticProjectServer-3XFB76XS.js} +18 -18
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-DpxSurnJ.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-DmST2bTJ.js → index-CwreIGoq.js} +132 -132
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YSUTKHV7.js → studio-api-WL6EZ4KE.js} +11 -11
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-APGEQIW5.js → studioServer-ZS5RA6U3.js} +66 -56
- package/dist/{telemetry-3B6EA5IU.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-QWM6JS4B.js → timeline-BDO5DYWP.js} +19 -19
- package/dist/{tokens-TKLSP3OQ.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-XOPMHJLJ.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-PODOCWCC.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-RO6FPYMZ.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-EVNIL5TZ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-F5HYFRA6.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-NXLFCHGG.js → validate-2OPSQT3W.js} +24 -24
- package/dist/{video-ECV2OIQN.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +40 -38
- package/package.json +1 -1
- package/dist/chunk-YRQPU7SV.js +0 -3983
- package/dist/studio/assets/hyperframes-player-CttA4PW7.js +0 -478
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -4,6 +4,11 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Semaphore,
|
|
9
|
+
prepareHeifImageInputs,
|
|
10
|
+
withMediaProbeSlot
|
|
11
|
+
} from "./chunk-G6QDFWDN.js";
|
|
7
12
|
import {
|
|
8
13
|
GENERIC_FAMILIES,
|
|
9
14
|
collectFontFamilyCustomProperties,
|
|
@@ -11,15 +16,15 @@ import {
|
|
|
11
16
|
iterateFontFamilyDeclarations,
|
|
12
17
|
normalizeSystemFontPrimaryFamilies,
|
|
13
18
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7ZMDVAK.js";
|
|
15
20
|
import {
|
|
16
21
|
EncoderInterruptedError,
|
|
17
22
|
encoderFailureError,
|
|
18
23
|
prepareAnimatedGifInputs
|
|
19
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NVLPW3DG.js";
|
|
20
25
|
import {
|
|
21
26
|
parseEncoderOptions
|
|
22
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AYH5ANVS.js";
|
|
23
28
|
import {
|
|
24
29
|
RENDER_TEMP_DIR,
|
|
25
30
|
createStudioPositionSeekReapplyScript
|
|
@@ -162,7 +167,7 @@ import {
|
|
|
162
167
|
verifyDiskDrawElementSamples,
|
|
163
168
|
videoAudioId,
|
|
164
169
|
writeCapturedFrame
|
|
165
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
166
171
|
import {
|
|
167
172
|
DISTRIBUTED_FPS,
|
|
168
173
|
HF_VFX_ATTR,
|
|
@@ -178,10 +183,9 @@ import {
|
|
|
178
183
|
parseVfxChain,
|
|
179
184
|
resolveAuthoredTimingWindow,
|
|
180
185
|
toFps
|
|
181
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-VW2LVMKB.js";
|
|
182
187
|
import {
|
|
183
188
|
assignBundledRuntimeCompositionIds,
|
|
184
|
-
buildVariablesByCompScript,
|
|
185
189
|
emitMountedModuleScripts,
|
|
186
190
|
emitRootCompositionVariableStyles,
|
|
187
191
|
ensureExternalLinkTag,
|
|
@@ -189,16 +193,19 @@ import {
|
|
|
189
193
|
extractStandaloneEntryFromIndex,
|
|
190
194
|
inlineSubCompositions,
|
|
191
195
|
parsesAsScript,
|
|
192
|
-
prepareFlattenedInnerRoot
|
|
193
|
-
|
|
196
|
+
prepareFlattenedInnerRoot,
|
|
197
|
+
stripSdrPngColourTags
|
|
198
|
+
} from "./chunk-MFHYBSJC.js";
|
|
194
199
|
import {
|
|
195
200
|
COMPOSITION_SOURCE_URL,
|
|
196
201
|
HF_COLOR_GRADING_ATTR,
|
|
197
202
|
MAX_AUDIO_GAIN,
|
|
198
203
|
MEDIA_RENDER_ID_ATTR,
|
|
199
204
|
assignMediaRenderIds,
|
|
205
|
+
buildVariablesByCompScript,
|
|
200
206
|
clampDurations,
|
|
201
207
|
compileTimingAttrs,
|
|
208
|
+
dedupeFontFaceRules,
|
|
202
209
|
deferScriptsUntilFonts,
|
|
203
210
|
extractResolvedMedia,
|
|
204
211
|
headStyleRuns,
|
|
@@ -207,6 +214,7 @@ import {
|
|
|
207
214
|
injectScriptsIntoHtml,
|
|
208
215
|
inlineScriptRuns,
|
|
209
216
|
insertBeforeCloseTag,
|
|
217
|
+
isAlwaysAppliedStyle,
|
|
210
218
|
isJavaScriptType,
|
|
211
219
|
isRuntimeFileUrl,
|
|
212
220
|
isTemplateEntry,
|
|
@@ -222,7 +230,7 @@ import {
|
|
|
222
230
|
sourceTimeAt,
|
|
223
231
|
styleElementsFor,
|
|
224
232
|
timeAtSourceTime
|
|
225
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-KLIPVNCO.js";
|
|
226
234
|
import {
|
|
227
235
|
CANVAS_DIMENSIONS,
|
|
228
236
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -233,7 +241,7 @@ import {
|
|
|
233
241
|
isAspectAgnosticResolutionAlias,
|
|
234
242
|
normalizeResolutionFlag,
|
|
235
243
|
suggestMatchingPreset
|
|
236
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-OFRRUYBA.js";
|
|
237
245
|
import {
|
|
238
246
|
TRANSITIONS,
|
|
239
247
|
convertTransfer,
|
|
@@ -249,7 +257,7 @@ import {
|
|
|
249
257
|
import {
|
|
250
258
|
lintHyperframeHtml,
|
|
251
259
|
resolveReferencedStart
|
|
252
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-2MLMO25E.js";
|
|
253
261
|
import {
|
|
254
262
|
isUnresolvedAssetPlaceholder,
|
|
255
263
|
readProjectFile,
|
|
@@ -956,6 +964,18 @@ function createFileServer(options) {
|
|
|
956
964
|
html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
|
|
957
965
|
return c.text(html, 200, { "Content-Type": contentType });
|
|
958
966
|
}
|
|
967
|
+
if (ext === ".png") {
|
|
968
|
+
const untagged = stripSdrPngColourTags(await readFileAsync(fd));
|
|
969
|
+
if (untagged) {
|
|
970
|
+
const headers = {
|
|
971
|
+
"Content-Type": contentType,
|
|
972
|
+
"Content-Length": String(untagged.length)
|
|
973
|
+
};
|
|
974
|
+
return new Response(c.req.method === "HEAD" ? null : new Uint8Array(untagged), {
|
|
975
|
+
headers
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}
|
|
959
979
|
const totalSize = stat.size;
|
|
960
980
|
const rangeHeader = c.req.header("range");
|
|
961
981
|
const rangeRequest = parseRangeHeader(rangeHeader, totalSize);
|
|
@@ -983,7 +1003,8 @@ function createFileServer(options) {
|
|
|
983
1003
|
const stream = createReadStream(filePath, {
|
|
984
1004
|
fd,
|
|
985
1005
|
autoClose: true,
|
|
986
|
-
|
|
1006
|
+
start: range?.start ?? 0,
|
|
1007
|
+
...range ? { end: range.end } : {}
|
|
987
1008
|
});
|
|
988
1009
|
streamOwnsFd = true;
|
|
989
1010
|
try {
|
|
@@ -5816,55 +5837,6 @@ function getPositionEditsRenderScript() {
|
|
|
5816
5837
|
|
|
5817
5838
|
// ../producer/src/services/assetMediaType.ts
|
|
5818
5839
|
import { existsSync as existsSync8 } from "fs";
|
|
5819
|
-
|
|
5820
|
-
// ../producer/src/utils/semaphore.ts
|
|
5821
|
-
var Semaphore = class {
|
|
5822
|
-
constructor(maxConcurrent) {
|
|
5823
|
-
this.maxConcurrent = maxConcurrent;
|
|
5824
|
-
}
|
|
5825
|
-
maxConcurrent;
|
|
5826
|
-
queue = [];
|
|
5827
|
-
active = 0;
|
|
5828
|
-
async acquire() {
|
|
5829
|
-
if (this.active < this.maxConcurrent) {
|
|
5830
|
-
this.active++;
|
|
5831
|
-
return () => this.release();
|
|
5832
|
-
}
|
|
5833
|
-
return new Promise((resolve11) => {
|
|
5834
|
-
this.queue.push(() => {
|
|
5835
|
-
this.active++;
|
|
5836
|
-
resolve11(() => this.release());
|
|
5837
|
-
});
|
|
5838
|
-
});
|
|
5839
|
-
}
|
|
5840
|
-
release() {
|
|
5841
|
-
this.active--;
|
|
5842
|
-
const next = this.queue.shift();
|
|
5843
|
-
if (next) next();
|
|
5844
|
-
}
|
|
5845
|
-
/** Current number of active slots. */
|
|
5846
|
-
get activeCount() {
|
|
5847
|
-
return this.active;
|
|
5848
|
-
}
|
|
5849
|
-
/** Number of waiters in the queue. */
|
|
5850
|
-
get waitingCount() {
|
|
5851
|
-
return this.queue.length;
|
|
5852
|
-
}
|
|
5853
|
-
};
|
|
5854
|
-
|
|
5855
|
-
// ../producer/src/utils/mediaProbeConcurrency.ts
|
|
5856
|
-
var MEDIA_PROBE_CONCURRENCY = 4;
|
|
5857
|
-
var sharedMediaProbeSemaphore = new Semaphore(MEDIA_PROBE_CONCURRENCY);
|
|
5858
|
-
async function withMediaProbeSlot(operation) {
|
|
5859
|
-
const release = await sharedMediaProbeSemaphore.acquire();
|
|
5860
|
-
try {
|
|
5861
|
-
return await operation();
|
|
5862
|
-
} finally {
|
|
5863
|
-
release();
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
|
|
5867
|
-
// ../producer/src/services/assetMediaType.ts
|
|
5868
5840
|
var ASSET_MEDIA_TYPE_MISMATCH = "ASSET_MEDIA_TYPE_MISMATCH";
|
|
5869
5841
|
var AssetMediaTypeMismatchError = class extends Error {
|
|
5870
5842
|
code = ASSET_MEDIA_TYPE_MISMATCH;
|
|
@@ -6433,6 +6405,11 @@ function coalesceHeadStylesAndBodyScripts(html) {
|
|
|
6433
6405
|
const head = document2.querySelector("head");
|
|
6434
6406
|
const body = document2.querySelector("body");
|
|
6435
6407
|
if (!head && !body) return html;
|
|
6408
|
+
const liveStyles = [...document2.querySelectorAll("style")].filter(isAlwaysAppliedStyle);
|
|
6409
|
+
const dedupedStyles = dedupeFontFaceRules(liveStyles.map((el) => el.textContent || ""));
|
|
6410
|
+
liveStyles.forEach((el, i) => {
|
|
6411
|
+
el.textContent = dedupedStyles[i] ?? "";
|
|
6412
|
+
});
|
|
6436
6413
|
const styleEls = head ? Array.from(head.querySelectorAll("style")) : [];
|
|
6437
6414
|
const importRe = /@import\s+url\([^)]*\)\s*;|@import\s+["'][^"']+["']\s*;/gi;
|
|
6438
6415
|
for (const run of styleEls.length > 1 ? headStyleRuns(styleEls) : []) {
|
|
@@ -6994,7 +6971,7 @@ async function readLocalFont(absPath) {
|
|
|
6994
6971
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
6995
6972
|
}
|
|
6996
6973
|
async function embedLocalFontFaces(html, projectDir) {
|
|
6997
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
6974
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-775YXAQ2.js");
|
|
6998
6975
|
const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
|
|
6999
6976
|
const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
|
|
7000
6977
|
let result = html;
|
|
@@ -7171,12 +7148,26 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7171
7148
|
const { html: htmlWithLocalImages, remoteMediaAssets: remoteImageAssets } = await localizeRemoteImageSources(htmlWithLocalMedia, downloadDir);
|
|
7172
7149
|
const { html: htmlWithLocalBg, remoteMediaAssets: remoteBgAssets } = await localizeRemoteBackgroundImages(htmlWithLocalImages, downloadDir);
|
|
7173
7150
|
const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await localizeRemoteFontFaces(htmlWithLocalBg, downloadDir);
|
|
7151
|
+
const {
|
|
7152
|
+
html: htmlWithJpegs,
|
|
7153
|
+
preparedAssets: preparedHeifAssets,
|
|
7154
|
+
preparedImages: preparedHeifImages
|
|
7155
|
+
} = await prepareHeifImageInputs(htmlWithLocalizedFonts, {
|
|
7156
|
+
projectDir,
|
|
7157
|
+
downloadDir,
|
|
7158
|
+
cacheDir: options.animatedGifCacheDir,
|
|
7159
|
+
sourceAssets: remoteImageAssets,
|
|
7160
|
+
timeoutMs: options.ffmpegProcessTimeout
|
|
7161
|
+
});
|
|
7162
|
+
if (preparedHeifImages.length > 0) {
|
|
7163
|
+
defaultLogger.info(`[Compiler] Converted ${preparedHeifImages.length} HEIC image(s) to JPEG`);
|
|
7164
|
+
}
|
|
7174
7165
|
const gifSourceAssets = new Map(remoteImageAssets);
|
|
7175
7166
|
const {
|
|
7176
7167
|
html: htmlWithPreparedGifs,
|
|
7177
7168
|
preparedAssets: preparedGifAssets,
|
|
7178
7169
|
preparedGifs
|
|
7179
|
-
} = await prepareAnimatedGifInputs(
|
|
7170
|
+
} = await prepareAnimatedGifInputs(htmlWithJpegs, {
|
|
7180
7171
|
projectDir,
|
|
7181
7172
|
downloadDir,
|
|
7182
7173
|
cacheDir: options.animatedGifCacheDir,
|
|
@@ -7203,6 +7194,9 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7203
7194
|
for (const [relPath, absPath] of preparedGifAssets) {
|
|
7204
7195
|
externalAssets.set(relPath, absPath);
|
|
7205
7196
|
}
|
|
7197
|
+
for (const [relPath, absPath] of preparedHeifAssets) {
|
|
7198
|
+
externalAssets.set(relPath, absPath);
|
|
7199
|
+
}
|
|
7206
7200
|
const { videos, audios, images, droppedMediaIds } = collectRenderMedia(html);
|
|
7207
7201
|
const masterFxChain = parseMasterFxChain(html);
|
|
7208
7202
|
for (const video of videos) {
|
|
@@ -16162,7 +16156,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16162
16156
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16163
16157
|
if (probeResult.probeSession) {
|
|
16164
16158
|
try {
|
|
16165
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16159
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-4YJKYMNF.js");
|
|
16166
16160
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16167
16161
|
} catch (err) {
|
|
16168
16162
|
log.warn("[plan] probe session close failed", {
|
|
@@ -17222,6 +17216,8 @@ var DEFAULT_SERVER_FPS = { num: 30, den: 1 };
|
|
|
17222
17216
|
var SSE_KEEPALIVE_MS = 3e4;
|
|
17223
17217
|
var SAFE_RENDER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
17224
17218
|
"ASSET_MEDIA_TYPE_MISMATCH",
|
|
17219
|
+
"HEIF_IMAGE_CONVERSION_FAILED",
|
|
17220
|
+
"HEIF_TOOL_UNAVAILABLE",
|
|
17225
17221
|
"NOT_MEDIA_PAYLOAD",
|
|
17226
17222
|
"INVALID_VIDEO_METADATA",
|
|
17227
17223
|
"VIDEO_SOURCE_UNRENDERABLE",
|
|
@@ -17844,7 +17840,7 @@ function startServer(options = {}) {
|
|
|
17844
17840
|
});
|
|
17845
17841
|
async function shutdown(signal) {
|
|
17846
17842
|
log.info(`Received ${signal}, shutting down`);
|
|
17847
|
-
const { drainBrowserPool } = await import("./src-
|
|
17843
|
+
const { drainBrowserPool } = await import("./src-4YJKYMNF.js");
|
|
17848
17844
|
await drainBrowserPool().catch(() => {
|
|
17849
17845
|
});
|
|
17850
17846
|
const handle = await Promise.race([
|
|
@@ -19773,6 +19769,7 @@ export {
|
|
|
19773
19769
|
createOwnedRenderDir,
|
|
19774
19770
|
listAbandonedRenderDirs,
|
|
19775
19771
|
collectRenderMedia,
|
|
19772
|
+
mediaProfileMatchesElementType,
|
|
19776
19773
|
localizeRemoteMediaSources,
|
|
19777
19774
|
localizeRemoteImageSources,
|
|
19778
19775
|
localizeRemoteFontFaces,
|