hyperframes 0.8.206 → 0.8.208
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-FFMNAJXJ.js → add-XMWRBMBR.js} +22 -20
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-6XURJIPV.js} +14 -13
- package/dist/api.js +33 -32
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-I5GGEOB2.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-YBPXUNUP.js} +17 -14
- package/dist/{audio-VYWWM4DB.js → audio-GFJCHH5W.js} +420 -138
- package/dist/{auth-GZQZCUPL.js → auth-QOA55RYR.js} +4 -4
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-SPS4QPJU.js} +4 -4
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-HRJO7YK7.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-LI2BJRGO.js → batchRender-FBP3RKUF.js} +11 -10
- package/dist/{beats-H73CSYT4.js → beats-VNGJ7F6W.js} +32 -25
- package/dist/{benchmark-XT3A5REC.js → benchmark-NZ3N3MIV.js} +16 -16
- package/dist/{browser-VIOK66YK.js → browser-BD5BKRJ5.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-WXVNPAWD.js} +3 -3
- package/dist/{capture-KKD5GMAF.js → capture-CXWXKWS5.js} +120 -54
- package/dist/{capture-252WNPCD.js → capture-LMJ4TQRL.js} +63 -17
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-ZKVCRYYU.js} +21 -20
- package/dist/{captureFile-LYOJOUIE.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-WRXQSCAU.js} +28 -26
- package/dist/{catch-up-BFW7Z35W.js → catch-up-MDSPABFC.js} +7 -7
- package/dist/{check-XUWBZASR.js → check-SIBBK5HA.js} +53 -52
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-QQBR4HR7.js} +19 -18
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-4EBJLLIH.js} +45 -44
- package/dist/{chunk-XDMZY3H7.js → chunk-3O2E4Q66.js} +15 -20
- package/dist/{chunk-VEA7Z4PZ.js → chunk-43MW4SY7.js} +15 -7
- package/dist/{chunk-HJAJ6W4V.js → chunk-4F5NRJ6M.js} +2 -2
- package/dist/{chunk-2RT7MXFL.js → chunk-4HT2L6W2.js} +1 -1
- package/dist/{chunk-QVTCXN42.js → chunk-4KG3ESVO.js} +30 -4
- package/dist/{chunk-42KN6I6A.js → chunk-4LTBQEPD.js} +2 -2
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-NVLPW3DG.js → chunk-5HB4JM7H.js} +2 -2
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-X5HHHFTX.js → chunk-6CWKORZO.js} +3 -3
- package/dist/{chunk-ZF3R2IPC.js → chunk-6DSYBW7Z.js} +1 -0
- package/dist/{chunk-VHVSBOZH.js → chunk-6JNSYFOH.js} +4 -4
- package/dist/{chunk-AJSU6KGS.js → chunk-6N7D2GUV.js} +15 -15
- package/dist/{chunk-F2ASNL2K.js → chunk-6PWQH77E.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-6WRN4WC6.js} +1 -1
- package/dist/{chunk-GAV56VJL.js → chunk-7CPI2DWL.js} +2 -2
- package/dist/{chunk-CMDVJP4T.js → chunk-7PAK7LZ5.js} +11 -11
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/{chunk-X7RXXBYM.js → chunk-B5MPMIKQ.js} +2 -2
- package/dist/{chunk-RW4DMP2Y.js → chunk-BKDQFOKK.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-BLCKQPBE.js} +1 -1
- package/dist/chunk-BQMAPNDA.js +4830 -0
- package/dist/{chunk-CPSGXAYD.js → chunk-CP225S5H.js} +3 -3
- package/dist/{chunk-3R6SXPHD.js → chunk-CSWCZA6V.js} +3 -3
- package/dist/{chunk-4CY5RXXC.js → chunk-D2CE2J2A.js} +4 -4
- package/dist/{chunk-FMWACL3L.js → chunk-DHQSDCWD.js} +6 -2
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-OZUAVHFE.js → chunk-DXACKQ3F.js} +3 -3
- package/dist/{chunk-5QKJPCQ4.js → chunk-EGOXYG3M.js} +2 -2
- package/dist/{chunk-QL4ZYSIB.js → chunk-ENRFKCI6.js} +5 -71
- package/dist/{chunk-MRF4AMKD.js → chunk-EQBDKYXR.js} +5 -10
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-FULMZCDW.js → chunk-EYEEZXLI.js} +11 -11
- package/dist/{chunk-2MLMO25E.js → chunk-FC4WT5FX.js} +105 -7
- package/dist/{chunk-PLGGKTCB.js → chunk-FFDYRJBE.js} +37 -21
- package/dist/{chunk-7SXL476O.js → chunk-G2A6RC5R.js} +72 -28
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-CZYS6UKP.js → chunk-GEO6THL3.js} +61 -30
- package/dist/{chunk-MFHYBSJC.js → chunk-GHSO62LK.js} +3 -3
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-4DGLKB2H.js → chunk-HUKQW4YE.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-HZN7ICAF.js} +8 -8
- package/dist/{chunk-6ZFDNEMY.js → chunk-IIJVSCSH.js} +16 -16
- package/dist/{chunk-VDVVQNTK.js → chunk-IL2TMC6F.js} +5 -5
- package/dist/{chunk-L5MFWGGU.js → chunk-J67FSI3Q.js} +623 -376
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-SFYLZX5C.js → chunk-K4PHB3YQ.js} +59 -15
- package/dist/{chunk-G6W55MTX.js → chunk-KTWGVEN6.js} +40 -11
- package/dist/{chunk-FNNGQ3DB.js → chunk-LSMFOZ4F.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-PNKLOMHQ.js → chunk-MBGM26P5.js} +17 -22
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-MPO25DQW.js} +451 -208
- package/dist/{chunk-E2ZZSDDQ.js → chunk-MW2NQQ6Z.js} +2 -2
- package/dist/{chunk-TSJVPPXT.js → chunk-MYO77JWR.js} +1 -1
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-NNLQTG3M.js → chunk-NZ6G5YWZ.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-ORFRUZPB.js} +2 -2
- package/dist/{chunk-Z3XXLTVB.js → chunk-OTXXDONS.js} +3 -3
- package/dist/{chunk-2S263R6D.js → chunk-P7WGVXR7.js} +9 -9
- package/dist/{chunk-AXEEZKIL.js → chunk-PKVA6MPV.js} +6 -6
- package/dist/{chunk-FJW757TF.js → chunk-PSOAGSNO.js} +2 -2
- package/dist/{chunk-AEC4T4IF.js → chunk-PWEOSJ3E.js} +12 -12
- package/dist/{chunk-X7A7C4JS.js → chunk-Q43YUROE.js} +3 -3
- package/dist/{chunk-PQYWYBEQ.js → chunk-QP2MJYTJ.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-QWBVPWUI.js} +47 -55
- package/dist/{chunk-AAX2A7LQ.js → chunk-S2OLTAEL.js} +2 -2
- package/dist/{chunk-CNVHMLPI.js → chunk-S4KHJERB.js} +1 -1
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-3CS6QYL7.js → chunk-SI7QCT2J.js} +8 -8
- package/dist/{chunk-CIHW6VM2.js → chunk-SKKQMW5X.js} +1 -1
- package/dist/{chunk-3B2DBUQX.js → chunk-TNTGGDSD.js} +1 -1
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-XOM3XTJ4.js → chunk-U6KN6OIP.js} +2 -2
- package/dist/{chunk-63DGZRZP.js → chunk-ULL3U6PV.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-UMUVGNOH.js → chunk-VR3JLTZD.js} +3 -3
- package/dist/{chunk-DEVZJ4AL.js → chunk-VS4SK7BN.js} +17 -11
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/chunk-WABB4LZS.js +62 -0
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-36QE3P6B.js → chunk-WNMVC3IT.js} +1 -1
- package/dist/{chunk-T6SD37JZ.js → chunk-X6MCIK7L.js} +103 -16
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-BBUK6A7Q.js → chunk-XG3IZV62.js} +7 -7
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-G6QDFWDN.js → chunk-XOFBXLMG.js} +2 -2
- package/dist/{chunk-H4JO7VSI.js → chunk-XUQYC5DD.js} +12 -12
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-HEP5XMXV.js → chunk-Z5TGBEPJ.js} +9 -2
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{clean-N5VSKUVS.js → clean-6GX7WAEC.js} +32 -31
- package/dist/cli.js +58 -58
- package/dist/{cloud-74NF5FXC.js → cloud-6PFJKLNL.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-UGG3ZFH7.js} +13 -12
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-P4EBOP4B.js} +46 -45
- package/dist/{compiler-4MHMC777.js → compiler-PG4RKX6K.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-SQPMI3W7.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-KRIHY3IY.js} +20 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-GB4MS7LM.js → delete-T5TO4SV6.js} +7 -7
- package/dist/{deploy-NXD3Q3KD.js → deploy-AO6LQR5G.js} +6 -6
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-3ZJMZU75.js → dist-23AAB5X2.js} +36 -36
- package/dist/{dist-ZY6IFESG.js → dist-6IMEDVMC.js} +6 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-QBUJQ655.js} +23 -22
- package/dist/{events-RYQYEWBV.js → events-J7CESLKQ.js} +4 -4
- package/dist/{events-T3CLIYRG.js → events-SIZO7YHI.js} +5 -5
- package/dist/{feedback-K5ZMMLTA.js → feedback-74WOJ5PN.js} +22 -22
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-AKUP6U2S.js} +17 -16
- package/dist/{figma-MYYCX635.js → figma-GGMYRR4Q.js} +3 -3
- package/dist/fontLocalizeCli.js +21 -19
- package/dist/{get-JVIDYMVP.js → get-PLKAI6JM.js} +7 -7
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-EYDAAPJF.js} +14 -13
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-UADJP4AV.js} +44 -43
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-KDF3OPOK.js} +15 -14
- package/dist/{help-XPPSLIRY.js → help-WSQQ555Q.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-VSQ2DQ3V.js} +110 -62
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-MOQ4LRC3.js} +18 -18
- package/dist/{init-NTIXWA3D.js → init-EONQSZJG.js} +62 -60
- package/dist/{inspect-MYMCV5E7.js → inspect-OLCVLHOU.js} +43 -42
- package/dist/{installer-PYJIJ3PJ.js → installer-GHISA75B.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-DGQYCY24.js} +13 -13
- package/dist/{lambda-SBNUYEQE.js → lambda-AMMWF2YH.js} +35 -15
- package/dist/{layout-IOMCOABO.js → layout-R6CAPGRO.js} +43 -42
- package/dist/{lint-AQWHHMPS.js → lint-QZJEYPHD.js} +14 -11
- package/dist/{lintProject-5A4SCW3S.js → lintProject-W3YVHAGP.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-KCJID4SP.js} +7 -7
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-3ZDK5JOA.js → login-7HKBEPJS.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-QYFYWZOK.js → manager-6YSKJMVD.js} +19 -18
- package/dist/{manager-F2YREC5X.js → manager-Z7W4GQGF.js} +9 -5
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-E3DL6LEZ.js} +34 -31
- package/dist/{models-MR55FAUX.js → models-URWI7YEG.js} +30 -29
- package/dist/{motionShot-DC47S7BT.js → motionShot-27IXMDJK.js} +25 -24
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-WGRLPR3P.js} +16 -16
- package/dist/{open-YXWBWTKL.js → open-LQ35PLEN.js} +21 -21
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-XASVIDTI.js} +27 -26
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-GA7QVCHS.js} +18 -17
- package/dist/{play-S562STR4.js → play-RYZP77CI.js} +31 -31
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-QWGXMISC.js → preflight-HJFSJXXF.js} +19 -18
- package/dist/{present-PGOHZT3L.js → present-YBMLOWZV.js} +26 -26
- package/dist/{preview-JU75H4QN.js → preview-QIRKJCRV.js} +52 -39
- package/dist/{producer-H66OMZLW.js → producer-524FDOLX.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-IDQN5ZRW.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-3X3IGSDO.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-2BF7K6HX.js} +21 -20
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-WRCGIU32.js → remove-background-EZBCEFT6.js} +22 -21
- package/dist/{render-QS3YJCBR.js → render-EFUA2A6A.js} +15 -11
- package/dist/{render-VUVTK2JM.js → render-JFMTAXHD.js} +87 -53
- package/dist/{render-5J5PP3UK.js → render-TEEBI2UT.js} +49 -43
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-XTYNXVSW.js} +16 -12
- package/dist/renderSetupWorker.js +12 -9
- package/dist/{resolver-QCBWPRSC.js → resolver-FZS6TN6B.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-IZ22SC5W.js → sherpa-TQIAIKTH.js} +26 -25
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-3RFMPMJA.js → skills-S6ZG5KKH.js} +10 -10
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-XC7JQL3F.js} +5 -5
- package/dist/{snapshot-5PHA43DK.js → snapshot-ERYZIM32.js} +152 -80
- package/dist/{src-4YJKYMNF.js → src-6XOMREMS.js} +21 -12
- package/dist/{src-36BQVJL3.js → src-OL6RHPE4.js} +22 -20
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-JYDDGPAH.js} +26 -26
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/hyperframes-player-5dRdMVOq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-Bu3mJUU2.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-ZqyQ91pm.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-GRU4SHKD.js} +18 -18
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-OYPBEI5B.js} +76 -73
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-W3LRO3TB.js → telemetry-CPYINR63.js} +5 -5
- package/dist/{timeline-BDO5DYWP.js → timeline-RGK5BMPD.js} +34 -33
- package/dist/{tokens-47CEMYFV.js → tokens-EX4BOWRW.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-MK367I6A.js} +24 -23
- package/dist/{transcribe-GEPVJO3A.js → transcribe-RI52JMVW.js} +35 -34
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-BIEJKQI4.js} +4 -4
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-ES3UUI7O.js} +4 -4
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-XAGYSTAG.js} +13 -12
- package/dist/{validate-2OPSQT3W.js → validate-A6GZHNEI.js} +36 -35
- package/dist/{video-ECWXMY4F.js → video-OEMGR3MN.js} +19 -15
- package/dist/warmCheck.js +53 -52
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.208" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.208" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-SIZO7YHI.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
ancestor,
|
|
19
19
|
full,
|
|
20
|
+
fullAncestor,
|
|
20
21
|
simple
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WC4MTXGN.js";
|
|
22
23
|
import {
|
|
23
24
|
__toESM
|
|
24
25
|
} from "./chunk-M2WBOQ2Q.js";
|
|
@@ -4701,43 +4702,152 @@ function parseProgram2(script) {
|
|
|
4701
4702
|
}
|
|
4702
4703
|
function literalString(node) {
|
|
4703
4704
|
if (node?.type === "Literal" && typeof node.value === "string") return node.value;
|
|
4704
|
-
if (node?.type === "TemplateLiteral" && node.expressions
|
|
4705
|
-
return node.quasis
|
|
4705
|
+
if (node?.type === "TemplateLiteral" && node.expressions.length === 0) {
|
|
4706
|
+
return node.quasis[0]?.value.cooked ?? void 0;
|
|
4706
4707
|
}
|
|
4707
4708
|
return void 0;
|
|
4708
4709
|
}
|
|
4709
4710
|
function memberName(node) {
|
|
4710
4711
|
if (node?.type !== "MemberExpression") return void 0;
|
|
4711
|
-
if (!node.computed && node.property
|
|
4712
|
+
if (!node.computed && node.property.type === "Identifier") return node.property.name;
|
|
4712
4713
|
return literalString(node.property);
|
|
4713
4714
|
}
|
|
4714
|
-
function
|
|
4715
|
-
|
|
4716
|
-
|
|
4715
|
+
function isFunctionScope(node) {
|
|
4716
|
+
return node.type === "Program" || node.type === "FunctionDeclaration" || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression" || node.type === "StaticBlock";
|
|
4717
|
+
}
|
|
4718
|
+
function isScope(node) {
|
|
4719
|
+
return isFunctionScope(node) || node.type === "BlockStatement" || node.type === "CatchClause" || node.type === "ForStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "SwitchStatement" || node.type === "ClassDeclaration" || node.type === "ClassExpression";
|
|
4720
|
+
}
|
|
4721
|
+
function declarePattern(pattern, initializer, scope, initializerScope = scope) {
|
|
4722
|
+
switch (pattern.type) {
|
|
4723
|
+
case "Identifier":
|
|
4724
|
+
if (initializer || !scope.bindings.has(pattern.name)) {
|
|
4725
|
+
scope.bindings.set(pattern.name, { initializer, scope: initializerScope });
|
|
4726
|
+
}
|
|
4727
|
+
break;
|
|
4728
|
+
case "RestElement":
|
|
4729
|
+
declarePattern(pattern.argument, null, scope);
|
|
4730
|
+
break;
|
|
4731
|
+
case "AssignmentPattern":
|
|
4732
|
+
declarePattern(pattern.left, null, scope);
|
|
4733
|
+
break;
|
|
4734
|
+
case "ArrayPattern":
|
|
4735
|
+
case "ObjectPattern":
|
|
4736
|
+
declarePatterns(destructuredPatterns(pattern), scope);
|
|
4737
|
+
break;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
function declarePatterns(patterns, scope) {
|
|
4741
|
+
for (const pattern of patterns) declarePattern(pattern, null, scope);
|
|
4742
|
+
}
|
|
4743
|
+
function destructuredPatterns(pattern) {
|
|
4744
|
+
if (pattern.type === "ObjectPattern") {
|
|
4745
|
+
return pattern.properties.map(
|
|
4746
|
+
(property) => property.type === "RestElement" ? property.argument : property.value
|
|
4747
|
+
);
|
|
4748
|
+
}
|
|
4749
|
+
return pattern.elements.filter((element) => element !== null);
|
|
4750
|
+
}
|
|
4751
|
+
function declareOptionalPattern(pattern, scope) {
|
|
4752
|
+
if (pattern) declarePattern(pattern, null, scope);
|
|
4753
|
+
}
|
|
4754
|
+
function declareScopedName(node, scope) {
|
|
4755
|
+
switch (node.type) {
|
|
4756
|
+
case "FunctionExpression":
|
|
4757
|
+
case "FunctionDeclaration":
|
|
4758
|
+
declareOptionalPattern(node.id, scope);
|
|
4759
|
+
declarePatterns(node.params, scope);
|
|
4760
|
+
break;
|
|
4761
|
+
case "ArrowFunctionExpression":
|
|
4762
|
+
declarePatterns(node.params, scope);
|
|
4763
|
+
break;
|
|
4764
|
+
case "ClassDeclaration":
|
|
4765
|
+
case "ClassExpression":
|
|
4766
|
+
declareOptionalPattern(node.id, scope);
|
|
4767
|
+
break;
|
|
4768
|
+
case "CatchClause":
|
|
4769
|
+
declareOptionalPattern(node.param, scope);
|
|
4770
|
+
break;
|
|
4771
|
+
case "ImportDeclaration":
|
|
4772
|
+
declarePatterns(
|
|
4773
|
+
node.specifiers.map((specifier) => specifier.local),
|
|
4774
|
+
scope
|
|
4775
|
+
);
|
|
4776
|
+
break;
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
function lookupBinding(name, scope) {
|
|
4780
|
+
for (let current = scope; current; current = current.parent) {
|
|
4781
|
+
const binding = current.bindings.get(name);
|
|
4782
|
+
if (binding) return binding;
|
|
4783
|
+
}
|
|
4784
|
+
return void 0;
|
|
4785
|
+
}
|
|
4786
|
+
function collectBindings(ast) {
|
|
4787
|
+
const root = { bindings: /* @__PURE__ */ new Map() };
|
|
4788
|
+
const scopes = new WeakMap([[ast, root]]);
|
|
4789
|
+
const scopeAt = (ancestors, functionOnly = false) => {
|
|
4790
|
+
let parent = root;
|
|
4791
|
+
let selected = root;
|
|
4792
|
+
for (const node of ancestors) {
|
|
4793
|
+
if (!isScope(node)) continue;
|
|
4794
|
+
let scope = scopes.get(node);
|
|
4795
|
+
if (!scope) {
|
|
4796
|
+
scope = { parent, bindings: /* @__PURE__ */ new Map() };
|
|
4797
|
+
scopes.set(node, scope);
|
|
4798
|
+
}
|
|
4799
|
+
parent = scope;
|
|
4800
|
+
if (!functionOnly || isFunctionScope(node)) selected = scope;
|
|
4801
|
+
}
|
|
4802
|
+
return selected;
|
|
4803
|
+
};
|
|
4804
|
+
fullAncestor(ast, (node, _state, ancestors) => {
|
|
4805
|
+
const scope = scopeAt(ancestors);
|
|
4806
|
+
if (node.type === "VariableDeclarator") {
|
|
4807
|
+
const declaration = ancestors.at(-2);
|
|
4808
|
+
const bindingScope = scopeAt(
|
|
4809
|
+
ancestors,
|
|
4810
|
+
declaration?.type === "VariableDeclaration" && declaration.kind === "var"
|
|
4811
|
+
);
|
|
4812
|
+
declarePattern(node.id, node.init ?? null, bindingScope, scope);
|
|
4813
|
+
return;
|
|
4814
|
+
}
|
|
4815
|
+
if ((node.type === "FunctionDeclaration" || node.type === "ClassDeclaration") && node.id) {
|
|
4816
|
+
declarePattern(node.id, null, scopeAt(ancestors.slice(0, -1)));
|
|
4817
|
+
}
|
|
4818
|
+
declareScopedName(node, scope);
|
|
4819
|
+
});
|
|
4820
|
+
return scopeAt;
|
|
4821
|
+
}
|
|
4822
|
+
function lookupSelector(node, scope, seen = /* @__PURE__ */ new Set()) {
|
|
4823
|
+
if (node?.type === "Identifier") {
|
|
4824
|
+
const binding = lookupBinding(node.name, scope);
|
|
4825
|
+
if (!binding || seen.has(binding)) return void 0;
|
|
4826
|
+
seen.add(binding);
|
|
4827
|
+
return lookupSelector(binding.initializer, binding.scope, seen);
|
|
4828
|
+
}
|
|
4829
|
+
return selectorFromDomLookup(node);
|
|
4830
|
+
}
|
|
4831
|
+
function selectorFromDomLookup(node) {
|
|
4832
|
+
if (node?.type !== "CallExpression" || node.callee.type !== "MemberExpression") {
|
|
4717
4833
|
return void 0;
|
|
4718
4834
|
}
|
|
4719
4835
|
const method = memberName(node.callee);
|
|
4720
4836
|
if (method !== "getElementById" && method !== "querySelector") return void 0;
|
|
4721
|
-
const value = literalString(node.arguments
|
|
4837
|
+
const value = literalString(node.arguments[0]);
|
|
4722
4838
|
if (!value) return void 0;
|
|
4723
4839
|
return method === "getElementById" ? `#${value}` : value;
|
|
4724
4840
|
}
|
|
4725
4841
|
function extractMediaSrcMutations(script) {
|
|
4726
4842
|
try {
|
|
4727
4843
|
const ast = parseProgram2(script);
|
|
4728
|
-
const
|
|
4729
|
-
simple(ast, {
|
|
4730
|
-
VariableDeclarator(node) {
|
|
4731
|
-
if (node.id?.type !== "Identifier") return;
|
|
4732
|
-
const selector = lookupSelector(node.init, bindings);
|
|
4733
|
-
if (selector) bindings.set(node.id.name, selector);
|
|
4734
|
-
}
|
|
4735
|
-
});
|
|
4844
|
+
const scopeAt = collectBindings(ast);
|
|
4736
4845
|
const mutations = [];
|
|
4737
|
-
|
|
4738
|
-
AssignmentExpression(node) {
|
|
4739
|
-
if (node.operator !== "=" || memberName(node.left) !== "src")
|
|
4740
|
-
|
|
4846
|
+
ancestor(ast, {
|
|
4847
|
+
AssignmentExpression(node, _state, ancestors) {
|
|
4848
|
+
if (node.operator !== "=" || node.left.type !== "MemberExpression" || memberName(node.left) !== "src")
|
|
4849
|
+
return;
|
|
4850
|
+
const selector = lookupSelector(node.left.object, scopeAt(ancestors));
|
|
4741
4851
|
if (!selector) return;
|
|
4742
4852
|
mutations.push({
|
|
4743
4853
|
selector,
|
|
@@ -4745,10 +4855,11 @@ function extractMediaSrcMutations(script) {
|
|
|
4745
4855
|
raw: script.slice(node.start, node.end)
|
|
4746
4856
|
});
|
|
4747
4857
|
},
|
|
4748
|
-
CallExpression(node) {
|
|
4749
|
-
if (memberName(node.callee) !== "setAttribute")
|
|
4750
|
-
|
|
4751
|
-
|
|
4858
|
+
CallExpression(node, _state, ancestors) {
|
|
4859
|
+
if (node.callee.type !== "MemberExpression" || memberName(node.callee) !== "setAttribute")
|
|
4860
|
+
return;
|
|
4861
|
+
if (literalString(node.arguments[0])?.toLowerCase() !== "src") return;
|
|
4862
|
+
const selector = lookupSelector(node.callee.object, scopeAt(ancestors));
|
|
4752
4863
|
if (!selector) return;
|
|
4753
4864
|
mutations.push({
|
|
4754
4865
|
selector,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U6KN6OIP.js";
|
|
10
10
|
import {
|
|
11
11
|
hostAnswers
|
|
12
12
|
} from "./chunk-K4WIOZFP.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
readConfig,
|
|
15
15
|
readConfigFresh,
|
|
16
16
|
writeConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NEASABW6.js";
|
|
18
18
|
|
|
19
19
|
// src/utils/skillsManifest.ts
|
|
20
20
|
import { execFile } from "child_process";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeNewFileSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XMRA7CQG.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeSkillSlug
|
|
12
12
|
} from "./chunk-HVW7ABXD.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_REGISTRY_URL
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HUKQW4YE.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/projectConfig.ts
|
|
18
18
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HUKQW4YE.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QWBVPWUI.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
22
22
|
import {
|
|
23
23
|
isCompositionVariable
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SE2MXV2N.js";
|
|
25
25
|
|
|
26
26
|
// src/registry/installer.ts
|
|
27
27
|
import { createHash } from "crypto";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G2A6RC5R.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PKVA6MPV.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ULL3U6PV.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ORFRUZPB.js";
|
|
28
|
+
import {
|
|
29
|
+
stripSdrPngColourTags
|
|
30
|
+
} from "./chunk-GHSO62LK.js";
|
|
28
31
|
import {
|
|
29
32
|
PREVIEW_PROXY_BOX_PARAM,
|
|
30
33
|
parsePreviewProxyBox
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
stripSdrPngColourTags
|
|
34
|
-
} from "./chunk-MFHYBSJC.js";
|
|
34
|
+
} from "./chunk-QWBVPWUI.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-SE2MXV2N.js";
|
|
38
38
|
|
|
39
39
|
// src/utils/staticProjectServer.ts
|
|
40
40
|
import { createServer, request as httpRequest } from "http";
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
hdrToSdrToneMapFilter,
|
|
15
15
|
isHeavyForPreview,
|
|
16
16
|
parseFirstFrameColour
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
decodeAuthoredAttribute,
|
|
20
|
-
scanHtmlOpeningTags
|
|
21
|
-
} from "./chunk-OFRRUYBA.js";
|
|
17
|
+
} from "./chunk-QWBVPWUI.js";
|
|
22
18
|
import {
|
|
23
19
|
mkdirWithinProject,
|
|
24
20
|
realProjectRoot,
|
|
@@ -35,7 +31,11 @@ import {
|
|
|
35
31
|
} from "./chunk-PBNWRWKA.js";
|
|
36
32
|
import {
|
|
37
33
|
rewriteAssetPath
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SE2MXV2N.js";
|
|
35
|
+
import {
|
|
36
|
+
decodeAuthoredAttribute,
|
|
37
|
+
scanHtmlOpeningTags
|
|
38
|
+
} from "./chunk-NHA4NRBE.js";
|
|
39
39
|
|
|
40
40
|
// ../studio-server/dist/chunk-JKPLDWAB.js
|
|
41
41
|
import { statSync } from "fs";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
readConfig,
|
|
35
35
|
telemetryRuntimeOverride,
|
|
36
36
|
writeConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NEASABW6.js";
|
|
38
38
|
import {
|
|
39
39
|
VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-MW2NQQ6Z.js";
|
|
41
41
|
|
|
42
42
|
// src/telemetry/transport.ts
|
|
43
43
|
import { spawn } from "child_process";
|
|
@@ -6,31 +6,31 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
relinkSplitHalves
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
isAllowedHtmlAttribute,
|
|
12
|
-
isSafeAttributeValue,
|
|
13
|
-
sanitizeRichTextChildren
|
|
14
|
-
} from "./chunk-VW2LVMKB.js";
|
|
9
|
+
} from "./chunk-VQB7G5BM.js";
|
|
15
10
|
import {
|
|
16
11
|
EXCLUDED_TAGS,
|
|
17
12
|
ensureHfIds,
|
|
18
13
|
mintHfId,
|
|
19
14
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GHSO62LK.js";
|
|
21
16
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
isAllowedHtmlAttribute,
|
|
18
|
+
isSafeAttributeValue,
|
|
19
|
+
sanitizeRichTextChildren
|
|
20
|
+
} from "./chunk-QWBVPWUI.js";
|
|
25
21
|
import {
|
|
26
22
|
require_dist
|
|
27
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FC4WT5FX.js";
|
|
28
24
|
import {
|
|
29
25
|
readClipTiming,
|
|
30
26
|
readMediaOffsetSeconds,
|
|
31
27
|
readPlaybackRate,
|
|
32
28
|
writeClipTiming
|
|
33
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SE2MXV2N.js";
|
|
30
|
+
import {
|
|
31
|
+
decodedUrlPath,
|
|
32
|
+
removeElementWithGsapCascade
|
|
33
|
+
} from "./chunk-NHA4NRBE.js";
|
|
34
34
|
import {
|
|
35
35
|
parseHTML
|
|
36
36
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -4,12 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
normalizeErrorMessage
|
|
9
|
-
} from "./chunk-T2EUWCJE.js";
|
|
10
7
|
import {
|
|
11
8
|
terminateProcessTree
|
|
12
9
|
} from "./chunk-KGPLIH7B.js";
|
|
10
|
+
import {
|
|
11
|
+
normalizeErrorMessage
|
|
12
|
+
} from "./chunk-EU7MVORF.js";
|
|
13
13
|
|
|
14
14
|
// src/renderSetupWorkerLifecycle.ts
|
|
15
15
|
var RENDER_SETUP_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
@@ -9,15 +9,7 @@ import {
|
|
|
9
9
|
parseStrictFiniteTimingNumber,
|
|
10
10
|
resolveNaturalMediaTimelineDuration,
|
|
11
11
|
resolveTimedImageDurationSeconds
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
CANVAS_DIMENSIONS,
|
|
15
|
-
isCompositionElement,
|
|
16
|
-
isMediaElement,
|
|
17
|
-
isTextElement,
|
|
18
|
-
keyframesToGsapAnimations,
|
|
19
|
-
serializeGsapAnimations
|
|
20
|
-
} from "./chunk-OFRRUYBA.js";
|
|
12
|
+
} from "./chunk-BQMAPNDA.js";
|
|
21
13
|
import {
|
|
22
14
|
COMPOSITION_ATTRIBUTES,
|
|
23
15
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -29,7 +21,15 @@ import {
|
|
|
29
21
|
parseStartExpression,
|
|
30
22
|
resolveMediaStartSeconds,
|
|
31
23
|
sameInstant
|
|
32
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SE2MXV2N.js";
|
|
25
|
+
import {
|
|
26
|
+
CANVAS_DIMENSIONS,
|
|
27
|
+
isCompositionElement,
|
|
28
|
+
isMediaElement,
|
|
29
|
+
isTextElement,
|
|
30
|
+
keyframesToGsapAnimations,
|
|
31
|
+
serializeGsapAnimations
|
|
32
|
+
} from "./chunk-NHA4NRBE.js";
|
|
33
33
|
import {
|
|
34
34
|
parseHTML
|
|
35
35
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -59,7 +59,7 @@ function resolveAuthoredTimingWindow(values) {
|
|
|
59
59
|
return { start, duration: end == null ? null : end - start, end };
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// ../core/dist/
|
|
62
|
+
// ../core/dist/fps.js
|
|
63
63
|
function toFps(input) {
|
|
64
64
|
if (typeof input === "number") {
|
|
65
65
|
return { num: input, den: 1 };
|
|
@@ -72,53 +72,45 @@ function fpsToNumber(fps) {
|
|
|
72
72
|
function fpsToFfmpegArg(fps) {
|
|
73
73
|
return fps.den === 1 ? String(fps.num) : `${fps.num}/${fps.den}`;
|
|
74
74
|
}
|
|
75
|
+
var fail = (reason) => ({ ok: false, reason });
|
|
76
|
+
function rangedFps(num, den) {
|
|
77
|
+
if (num <= 0)
|
|
78
|
+
return fail("non-positive");
|
|
79
|
+
const decimal = num / den;
|
|
80
|
+
if (decimal < 1 || decimal > 240)
|
|
81
|
+
return fail("out-of-range");
|
|
82
|
+
return { ok: true, value: { num, den } };
|
|
83
|
+
}
|
|
84
|
+
function numericFps(input) {
|
|
85
|
+
if (!Number.isFinite(input))
|
|
86
|
+
return fail("not-a-number");
|
|
87
|
+
if (!Number.isInteger(input))
|
|
88
|
+
return fail("ambiguous-decimal");
|
|
89
|
+
return rangedFps(input, 1);
|
|
90
|
+
}
|
|
91
|
+
function fractionFps(raw) {
|
|
92
|
+
const parts = raw.split("/");
|
|
93
|
+
if (parts.length !== 2)
|
|
94
|
+
return fail("invalid-fraction");
|
|
95
|
+
const num = Number(parts[0]);
|
|
96
|
+
const den = Number(parts[1]);
|
|
97
|
+
if (!Number.isFinite(num) || !Number.isFinite(den))
|
|
98
|
+
return fail("not-a-number");
|
|
99
|
+
if (!Number.isInteger(num) || !Number.isInteger(den) || den <= 0)
|
|
100
|
+
return fail("invalid-fraction");
|
|
101
|
+
return rangedFps(num, den);
|
|
102
|
+
}
|
|
75
103
|
function parseFps(input) {
|
|
76
|
-
if (typeof input === "number")
|
|
77
|
-
|
|
78
|
-
return { ok: false, reason: "not-a-number" };
|
|
79
|
-
if (!Number.isInteger(input))
|
|
80
|
-
return { ok: false, reason: "ambiguous-decimal" };
|
|
81
|
-
if (input <= 0)
|
|
82
|
-
return { ok: false, reason: "non-positive" };
|
|
83
|
-
if (input > 240)
|
|
84
|
-
return { ok: false, reason: "out-of-range" };
|
|
85
|
-
return { ok: true, value: { num: input, den: 1 } };
|
|
86
|
-
}
|
|
104
|
+
if (typeof input === "number")
|
|
105
|
+
return numericFps(input);
|
|
87
106
|
const raw = input.trim();
|
|
88
107
|
if (raw === "")
|
|
89
|
-
return
|
|
90
|
-
if (raw.includes("/"))
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const den = Number(parts[1]);
|
|
96
|
-
if (!Number.isFinite(num) || !Number.isFinite(den)) {
|
|
97
|
-
return { ok: false, reason: "not-a-number" };
|
|
98
|
-
}
|
|
99
|
-
if (!Number.isInteger(num) || !Number.isInteger(den)) {
|
|
100
|
-
return { ok: false, reason: "invalid-fraction" };
|
|
101
|
-
}
|
|
102
|
-
if (den <= 0)
|
|
103
|
-
return { ok: false, reason: "invalid-fraction" };
|
|
104
|
-
if (num <= 0)
|
|
105
|
-
return { ok: false, reason: "non-positive" };
|
|
106
|
-
const decimal = num / den;
|
|
107
|
-
if (decimal < 1 || decimal > 240)
|
|
108
|
-
return { ok: false, reason: "out-of-range" };
|
|
109
|
-
return { ok: true, value: { num, den } };
|
|
110
|
-
}
|
|
111
|
-
if (!/^-?\d+$/.test(raw)) {
|
|
112
|
-
if (/^-?\d*\.\d+$/.test(raw))
|
|
113
|
-
return { ok: false, reason: "ambiguous-decimal" };
|
|
114
|
-
return { ok: false, reason: "not-a-number" };
|
|
115
|
-
}
|
|
116
|
-
const n = Number(raw);
|
|
117
|
-
if (n <= 0)
|
|
118
|
-
return { ok: false, reason: "non-positive" };
|
|
119
|
-
if (n > 240)
|
|
120
|
-
return { ok: false, reason: "out-of-range" };
|
|
121
|
-
return { ok: true, value: { num: n, den: 1 } };
|
|
108
|
+
return fail("empty");
|
|
109
|
+
if (raw.includes("/"))
|
|
110
|
+
return fractionFps(raw);
|
|
111
|
+
if (/^-?\d+$/.test(raw))
|
|
112
|
+
return rangedFps(Number(raw), 1);
|
|
113
|
+
return fail(/^-?\d*\.\d+$/.test(raw) ? "ambiguous-decimal" : "not-a-number");
|
|
122
114
|
}
|
|
123
115
|
function parseFpsWithDefault(input) {
|
|
124
116
|
if (input === void 0 || input === "")
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CSWCZA6V.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3O2E4Q66.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|