hyperframes 0.8.224 → 0.8.225
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-JEPKJ2F4.js → add-ZGNY2AXJ.js} +5 -5
- package/dist/{agentPromptGenerator-ZBNWLX5D.js → agentPromptGenerator-GG4FFZH7.js} +2 -2
- package/dist/{animatedGifPrep-43LLMTN5.js → animatedGifPrep-NVDUG2CD.js} +2 -2
- package/dist/api.js +15 -15
- package/dist/{asset-M6SH6PUW.js → asset-UC3OQBB3.js} +2 -2
- package/dist/{assetCataloger-BLQ7UVJ5.js → assetCataloger-WQTNJMZU.js} +3 -3
- package/dist/{audio-J3QREJK4.js → audio-T6RWZHAA.js} +7 -7
- package/dist/{auth-7TRCBCKA.js → auth-FSXEGF3B.js} +2 -2
- package/dist/{autoUpdate-WTFSYLTK.js → autoUpdate-LOBHDWAA.js} +2 -2
- package/dist/{backgroundChecks-YZW7AMMJ.js → backgroundChecks-RBFWIWBP.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-JWUADKHV.js → beats-WFPPVM6N.js} +4 -4
- package/dist/{benchmark-QOQZ7UGD.js → benchmark-7MYD5S26.js} +6 -6
- package/dist/{billing-3GVNEE56.js → billing-2BJTLFDX.js} +1 -1
- package/dist/{browser-4HNCSPUR.js → browser-6C4IDYQE.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-GTKHB45M.js → bundleWithLocalizedFonts-ARTT664T.js} +1 -1
- package/dist/{capture-XSRWYHAM.js → capture-7TFC65RN.js} +3 -3
- package/dist/{capture-5OYZNIOR.js → capture-TWZ5DQHP.js} +7 -7
- package/dist/{captureCompositionFrame-4F7PPQKB.js → captureCompositionFrame-EMP6R3F6.js} +5 -5
- package/dist/{catalog-4FVQSID5.js → catalog-W4RJO4FE.js} +5 -5
- package/dist/{catch-up-KQVK2QZC.js → catch-up-OOCJH3O6.js} +4 -4
- package/dist/{check-3YHLB6FM.js → check-BPPHG2CF.js} +20 -20
- package/dist/{checkAudio-7ZSZVBSJ.js → checkAudio-QEGCKX2V.js} +4 -4
- package/dist/{checkBrowser-VX5CHNQS.js → checkBrowser-4JDYYAVA.js} +14 -14
- package/dist/{chunk-5KAGTSLY.js → chunk-2EH3WQCS.js} +2 -2
- package/dist/{chunk-BTK3T4HJ.js → chunk-2YZD6CAF.js} +1 -1
- package/dist/{chunk-ZLZXGJ63.js → chunk-3E2BO3L3.js} +1 -1
- package/dist/{chunk-RU7KMDFL.js → chunk-3HRQI6LJ.js} +1 -1
- package/dist/{chunk-QK6ZNEBW.js → chunk-3XQQLL3G.js} +1 -1
- package/dist/{chunk-2QQO3J3B.js → chunk-4A643C3B.js} +1 -1
- package/dist/{chunk-JMP52GTN.js → chunk-4K6AS5TX.js} +5 -5
- package/dist/{chunk-W7MJPKBJ.js → chunk-4VTXUGDR.js} +1 -1
- package/dist/{chunk-J7FVF73D.js → chunk-4Z2SU2VC.js} +17 -17
- package/dist/{chunk-NFUR6NNT.js → chunk-5HGS5MGD.js} +42 -15
- package/dist/{chunk-E2ZY4GWH.js → chunk-5I6XEO4W.js} +1 -1
- package/dist/{chunk-ODJ2WBZX.js → chunk-5KADQQ6S.js} +1 -1
- package/dist/{chunk-6QIYQ43G.js → chunk-6IV2N527.js} +2 -2
- package/dist/{chunk-HDPW7THH.js → chunk-ACUVSKUI.js} +8 -8
- package/dist/{chunk-QOI46C6F.js → chunk-ADOBHVHW.js} +1 -1
- package/dist/{chunk-VPMHRLJH.js → chunk-AF3EN5XS.js} +1 -1
- package/dist/{chunk-F7T57BZZ.js → chunk-BKHBSFEO.js} +2 -2
- package/dist/{chunk-2KDHJCH2.js → chunk-BTDKWWND.js} +1 -1
- package/dist/{chunk-VCJE7IMY.js → chunk-CXVFPIOM.js} +1 -1
- package/dist/{chunk-MA5AQK7T.js → chunk-EEBIHQF2.js} +2 -2
- package/dist/{chunk-L4ULTWCD.js → chunk-EECV7SDN.js} +1 -1
- package/dist/{chunk-2M6B2JKZ.js → chunk-EIIMWDZW.js} +4 -4
- package/dist/{chunk-HANNA5JJ.js → chunk-FPWCICAI.js} +1 -1
- package/dist/{chunk-3ZDOAVZM.js → chunk-G6Z47UQP.js} +125 -13
- package/dist/{chunk-52B3AOIV.js → chunk-GI42ZB52.js} +1 -1
- package/dist/{chunk-MOXNAVCW.js → chunk-GZPGTGRV.js} +1 -1
- package/dist/{chunk-D4M37ATV.js → chunk-HMS6UHUW.js} +1 -1
- package/dist/{chunk-JKLWWGE6.js → chunk-HW6HTTBZ.js} +1 -1
- package/dist/{chunk-GQ2QER6M.js → chunk-IB7I5IEC.js} +1 -1
- package/dist/{chunk-53JEHQBW.js → chunk-IJWDVOIO.js} +2 -2
- package/dist/{chunk-JUF43Q7Q.js → chunk-K73PYNON.js} +1 -1
- package/dist/{chunk-3NHCTTLP.js → chunk-KDF67KEB.js} +9 -9
- package/dist/{chunk-LRS4FV5W.js → chunk-KVBOJJ5R.js} +1 -1
- package/dist/{chunk-GLTSINRP.js → chunk-LWTT7I7X.js} +1 -1
- package/dist/{chunk-JK2KNL6F.js → chunk-LZB5AHFD.js} +1 -1
- package/dist/{chunk-53TKUWDX.js → chunk-M3WOI7BU.js} +1 -1
- package/dist/{chunk-THL3N377.js → chunk-M4NN4AHH.js} +8 -8
- package/dist/{chunk-5N5FYE5K.js → chunk-NLELDFX7.js} +1 -1
- package/dist/{chunk-JIF347PW.js → chunk-O3MGHHJO.js} +3 -3
- package/dist/{chunk-NI35PAVN.js → chunk-PICDT6ZW.js} +1 -1
- package/dist/{chunk-IYYQRNIZ.js → chunk-R6JPOEDZ.js} +1 -1
- package/dist/{chunk-4ZAOAPWP.js → chunk-RDLJSUI4.js} +8 -8
- package/dist/{chunk-2WVQ3CCN.js → chunk-SIYDHVN2.js} +1 -1
- package/dist/{chunk-H6APAFKE.js → chunk-SVGHIMPQ.js} +2 -2
- package/dist/{chunk-O2VKGYSK.js → chunk-SXHSNLEC.js} +1 -1
- package/dist/{chunk-F3CTUCFD.js → chunk-T5KG6H6L.js} +2 -2
- package/dist/{chunk-K3QT232E.js → chunk-TRPNLI6V.js} +1 -1
- package/dist/{chunk-HIPW4JXL.js → chunk-UBH2R663.js} +2 -2
- package/dist/{chunk-POOLZTMZ.js → chunk-UBXKKXXR.js} +3 -3
- package/dist/{chunk-Y5HVDK7X.js → chunk-UQWOOANM.js} +2 -2
- package/dist/{chunk-BAXL3U3T.js → chunk-VHL26GNQ.js} +2 -2
- package/dist/{chunk-VXRBPWVW.js → chunk-W464PHF3.js} +7 -7
- package/dist/{chunk-F34GYYXO.js → chunk-WQCVZEXH.js} +1 -1
- package/dist/{chunk-PKMAWQUI.js → chunk-XM5KYLIE.js} +2 -2
- package/dist/{chunk-34GAW4GO.js → chunk-Y5OSQXGZ.js} +5 -5
- package/dist/{chunk-SGMCQAYU.js → chunk-Z57RQBIA.js} +2 -2
- package/dist/{clean-SXEI6FT4.js → clean-XWDDXLRP.js} +7 -7
- package/dist/cli.js +55 -55
- package/dist/{cloud-SKN6FWAZ.js → cloud-SETWVGKH.js} +4 -4
- package/dist/{compare-RTXF2NSK.js → compare-FWMFV7A7.js} +10 -10
- package/dist/{component-2NPF5PA6.js → component-HGEIXY3U.js} +3 -3
- package/dist/{compositions-AZRVHGBT.js → compositions-2TXJLBWE.js} +6 -6
- package/dist/{curve-QSFEGBUH.js → curve-SSFKIA2L.js} +6 -6
- package/dist/{cuts-6AWEJH2H.js → cuts-BWXHTOOP.js} +7 -7
- package/dist/{delete-NOHFVICL.js → delete-F5RDWZEJ.js} +2 -2
- package/dist/{deploy-UFRADJOA.js → deploy-OH4SMYTG.js} +1 -1
- package/dist/{describeProject-F43LI3YQ.js → describeProject-B7H4T5PW.js} +2 -2
- package/dist/{diff-3WS6NMSE.js → diff-6JFFTFKR.js} +16 -16
- package/dist/{doctor-F4VJYQXC.js → doctor-XQCZB5BY.js} +6 -6
- package/dist/{energy-BN3QD6Y7.js → energy-MEMYSTFT.js} +7 -7
- package/dist/{events-YJ3XSIPL.js → events-T7OLH6MW.js} +3 -3
- package/dist/{events-PZH4C7VA.js → events-U6PXJI34.js} +2 -2
- package/dist/{events-5W7ETFWR.js → events-ZU2ATKWK.js} +8 -8
- package/dist/{extract-S34DWGAD.js → extract-25TUTGCA.js} +7 -7
- package/dist/{face-3SCJADG4.js → face-KMLYOE5H.js} +7 -7
- package/dist/{feedback-3K6NSKIC.js → feedback-FE7GQTBH.js} +4 -4
- package/dist/{ffmpeg-2RBDDMHU.js → ffmpeg-CXYPYIZK.js} +2 -2
- package/dist/{figma-NWAJYMAI.js → figma-QMKU7M7T.js} +3 -3
- package/dist/fontLocalizeCli.js +5 -5
- package/dist/{frames-6UARLPLK.js → frames-2NPBO6LB.js} +8 -8
- package/dist/{generate-KBVWFVXN.js → generate-I6E3V7PU.js} +10 -10
- package/dist/{get-SEZZMLQ3.js → get-JJWBP5NB.js} +2 -2
- package/dist/{gpuPolicy-VIZAJ3GY.js → gpuPolicy-2OMDU74V.js} +2 -2
- package/dist/{grade-compare-PMAK4PJD.js → grade-compare-QCA3VIKQ.js} +11 -11
- package/dist/{heifImagePrep-6NYIR7WN.js → heifImagePrep-P53GG4GF.js} +3 -3
- package/dist/{help-4UPSHWI2.js → help-COSONWFD.js} +1 -1
- package/dist/{history-VNAZEQDE.js → history-CWKF5AXI.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-OREET5PM.js → info-SD74Y6V5.js} +5 -5
- package/dist/{init-K7AEJBAL.js → init-XAYQNTVF.js} +18 -18
- package/dist/{inspect-STME5DNY.js → inspect-Y5IIQBIW.js} +12 -12
- package/dist/{keyframes-JQWZ235Q.js → keyframes-MNPCJZYU.js} +6 -6
- package/dist/{lambda-RJNLW2EO.js → lambda-PMI6IDVN.js} +3 -3
- package/dist/{layout-MTZWBPNZ.js → layout-6IM6R6LX.js} +12 -12
- package/dist/{lint-AQWTSL75.js → lint-6VUHVHFF.js} +6 -6
- package/dist/{list-ZEBZ5DB5.js → list-XXTAS744.js} +2 -2
- package/dist/{localPage-CQ3H4N2N.js → localPage-2UHUS6LM.js} +2 -2
- package/dist/{login-VHCZHENV.js → login-KM3LPYQ7.js} +4 -4
- package/dist/{look-25TSRPSV.js → look-3CD3ZSXY.js} +7 -7
- package/dist/{manager-57SX7D5G.js → manager-C6GVT3EI.js} +3 -3
- package/dist/{measure-Y2R3G5OJ.js → measure-DWZX4YAK.js} +10 -10
- package/dist/{media-treatment-3G2IVS64.js → media-treatment-IIUPGQIX.js} +7 -7
- package/dist/{media-use-LUAOZJNV.js → media-use-HLHUEFDK.js} +1 -1
- package/dist/{models-NT56FKRG.js → models-IWHY5V6N.js} +6 -6
- package/dist/{motionShot-P4NTFKYS.js → motionShot-4NKHFUS7.js} +7 -7
- package/dist/{normalize-audio-2DUTZ6QK.js → normalize-audio-M2RS5Q23.js} +4 -4
- package/dist/{open-OATYOOR7.js → open-U7CCHUBO.js} +4 -4
- package/dist/{parakeetRunner-UASHW3A4.js → parakeetRunner-ZHG3S6GY.js} +7 -7
- package/dist/{pipeline-GGAYP5Q6.js → pipeline-66JR7EC7.js} +5 -5
- package/dist/{play-GHXBJS3T.js → play-5COR53D2.js} +4 -4
- package/dist/{preflight-6VOP3IOI.js → preflight-OKAO5NPW.js} +3 -3
- package/dist/{present-M7UYHVEZ.js → present-YKFQC22R.js} +4 -4
- package/dist/{preview-YWT5WA3W.js → preview-3YNKJZME.js} +8 -8
- package/dist/{probe-CQAGZJLP.js → probe-QMPDGKU5.js} +6 -6
- package/dist/{producer-OU2BCMLY.js → producer-WBVDP3IV.js} +1 -1
- package/dist/{remove-background-A5KJUH6W.js → remove-background-ELC7V7KT.js} +6 -6
- package/dist/{render-Z5IS4AUP.js → render-R7E7TTNE.js} +8 -8
- package/dist/{render-EMW4I6C6.js → render-WH7MPRZD.js} +19 -19
- package/dist/{sherpa-SAY3I7PK.js → sherpa-FP6HX5KK.js} +6 -6
- package/dist/{skills-YWQ5XKH6.js → skills-JLNDM2KP.js} +5 -5
- package/dist/{skillsUpdateCheck-ST5ZFEET.js → skillsUpdateCheck-WS5M25TN.js} +3 -3
- package/dist/{snapshot-57YYYE5J.js → snapshot-VPN6GA7U.js} +16 -16
- package/dist/{src-LNSJHD25.js → src-AP7B27MZ.js} +1 -1
- package/dist/{src-7MEBCSTP.js → src-RGQFYVHO.js} +4 -4
- package/dist/{staticProjectServer-TTJSAB2Q.js → staticProjectServer-YA6XOSFY.js} +2 -2
- package/dist/{status-FGXBUX2T.js → status-Y5ZBFJ53.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-Bzcd9O2g.js → hyperframes-player-Do2ZF6Lp.js} +1 -1
- package/dist/studio/assets/{index-LW6kxYVF.js → index-CK4_IJ8G.js} +1 -1
- package/dist/studio/assets/{index-CZI-XmnO.js → index-Dxb7fTWf.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studioServer-2AIRUNBA.js → studioServer-EVMF3HHL.js} +23 -23
- package/dist/{sync-52GUXEYZ.js → sync-ASUBSVGQ.js} +7 -7
- package/dist/{telemetry-RVY6RSCD.js → telemetry-YON45KT4.js} +3 -3
- package/dist/{timeline-MMZF4AX3.js → timeline-OQWDGV7L.js} +7 -7
- package/dist/{tokens-WGWCYFTY.js → tokens-NMPY673W.js} +2 -2
- package/dist/{transcribe-6BF5FFPV.js → transcribe-C6FKVSRR.js} +14 -14
- package/dist/{transcribe-YYDHXRQW.js → transcribe-HSYXT5TZ.js} +5 -5
- package/dist/{updateCheck-AAR5LLUF.js → updateCheck-B7PAAPCJ.js} +2 -2
- package/dist/{upgrade-Y7CIRL4B.js → upgrade-BOECDD5S.js} +2 -2
- package/dist/{urlDownloader-KZOD7EWX.js → urlDownloader-KC2SS457.js} +1 -1
- package/dist/{validate-K3PHAA2E.js → validate-LEEBUIIH.js} +11 -11
- package/dist/{video-Z6EBVCAT.js → video-JJAEISDH.js} +3 -3
- package/dist/warmCheck.js +20 -20
- package/package.json +1 -1
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
examples,
|
|
9
9
|
generate_default,
|
|
10
10
|
repeated
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-G6Z47UQP.js";
|
|
12
|
+
import "./chunk-TRPNLI6V.js";
|
|
13
|
+
import "./chunk-BKHBSFEO.js";
|
|
14
|
+
import "./chunk-2EH3WQCS.js";
|
|
15
|
+
import "./chunk-K73PYNON.js";
|
|
16
|
+
import "./chunk-2YZD6CAF.js";
|
|
17
17
|
import "./chunk-BEMGUGGJ.js";
|
|
18
18
|
import "./chunk-QOYZ3U6G.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-FPWCICAI.js";
|
|
20
20
|
import "./chunk-VLA6UJGH.js";
|
|
21
21
|
import "./chunk-DL4OD7IA.js";
|
|
22
22
|
import "./chunk-S3S4TGEH.js";
|
|
23
23
|
import "./chunk-2GICKZ3I.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-5HGS5MGD.js";
|
|
25
25
|
import "./chunk-Z5J67X44.js";
|
|
26
26
|
import "./chunk-5S7W3TUO.js";
|
|
27
27
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -53,7 +53,7 @@ import "./chunk-2RY2LWAA.js";
|
|
|
53
53
|
import "./chunk-EPQC3FGZ.js";
|
|
54
54
|
import "./chunk-WC4MTXGN.js";
|
|
55
55
|
import "./chunk-FBN2M2HK.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-BTDKWWND.js";
|
|
57
57
|
import "./chunk-BR2JQQC5.js";
|
|
58
58
|
import "./chunk-BLBMPEBX.js";
|
|
59
59
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -61,7 +61,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
61
61
|
import "./chunk-66W5IWLO.js";
|
|
62
62
|
import "./chunk-J3RXEDR2.js";
|
|
63
63
|
import "./chunk-QBXDU24O.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-EEBIHQF2.js";
|
|
65
65
|
import "./chunk-E63BDV4Z.js";
|
|
66
66
|
import "./chunk-G7VEYUZ2.js";
|
|
67
67
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -29,7 +29,7 @@ import "./chunk-YWRUQ7XZ.js";
|
|
|
29
29
|
import "./chunk-OFQWTKPW.js";
|
|
30
30
|
import {
|
|
31
31
|
withMeta
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BTDKWWND.js";
|
|
33
33
|
import "./chunk-BR2JQQC5.js";
|
|
34
34
|
import "./chunk-BLBMPEBX.js";
|
|
35
35
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -37,7 +37,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
37
37
|
import "./chunk-66W5IWLO.js";
|
|
38
38
|
import "./chunk-J3RXEDR2.js";
|
|
39
39
|
import "./chunk-QBXDU24O.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-EEBIHQF2.js";
|
|
41
41
|
import "./chunk-E63BDV4Z.js";
|
|
42
42
|
import "./chunk-G7VEYUZ2.js";
|
|
43
43
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
resolveCaptureBrowserGpuMode,
|
|
9
9
|
resolveLocalBrowserGpuMode,
|
|
10
10
|
resolveLocalWebGpu
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IJWDVOIO.js";
|
|
12
12
|
import {
|
|
13
13
|
assertWebGpuAdapterAvailable,
|
|
14
14
|
compositionRequiresWebGpu
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5HGS5MGD.js";
|
|
16
16
|
import "./chunk-Z5J67X44.js";
|
|
17
17
|
import "./chunk-5S7W3TUO.js";
|
|
18
18
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
findFFmpeg
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPWCICAI.js";
|
|
19
19
|
import {
|
|
20
20
|
serveStaticProjectHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4A643C3B.js";
|
|
22
22
|
import "./chunk-X7MTZ4T2.js";
|
|
23
23
|
import "./chunk-CGX4EOGT.js";
|
|
24
24
|
import "./chunk-XUHOIDKG.js";
|
|
@@ -33,9 +33,9 @@ import "./chunk-ALVXFXUG.js";
|
|
|
33
33
|
import {
|
|
34
34
|
openSettledCompositionPage,
|
|
35
35
|
runFfmpegOnce
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RDLJSUI4.js";
|
|
37
37
|
import "./chunk-R2C5EON5.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-5I6XEO4W.js";
|
|
39
39
|
import "./chunk-X5BSSPC2.js";
|
|
40
40
|
import "./chunk-5LOZWO2M.js";
|
|
41
41
|
import "./chunk-YGGZ23BB.js";
|
|
@@ -52,16 +52,16 @@ import "./chunk-AWDFDFI3.js";
|
|
|
52
52
|
import "./chunk-P6LJ4Y32.js";
|
|
53
53
|
import "./chunk-T2WJO4XM.js";
|
|
54
54
|
import "./chunk-W4DMQZL5.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-UBH2R663.js";
|
|
56
|
+
import "./chunk-IJWDVOIO.js";
|
|
57
57
|
import {
|
|
58
58
|
readJsonFileText
|
|
59
59
|
} from "./chunk-EHZESMRB.js";
|
|
60
60
|
import "./chunk-A4ZTSQLW.js";
|
|
61
61
|
import {
|
|
62
62
|
trackCompareSheet
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-PICDT6ZW.js";
|
|
64
|
+
import "./chunk-ADOBHVHW.js";
|
|
65
65
|
import "./chunk-PXVQOMKL.js";
|
|
66
66
|
import "./chunk-MCDNAIFF.js";
|
|
67
67
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
import "./chunk-G6OKQMJI.js";
|
|
78
78
|
import "./chunk-EVMY7IPL.js";
|
|
79
79
|
import "./chunk-7FMUTGOH.js";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-5HGS5MGD.js";
|
|
81
81
|
import "./chunk-Z5J67X44.js";
|
|
82
82
|
import "./chunk-5S7W3TUO.js";
|
|
83
83
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -120,7 +120,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
120
120
|
import "./chunk-FBN2M2HK.js";
|
|
121
121
|
import {
|
|
122
122
|
withMeta
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-BTDKWWND.js";
|
|
124
124
|
import "./chunk-BR2JQQC5.js";
|
|
125
125
|
import "./chunk-BLBMPEBX.js";
|
|
126
126
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
} from "./chunk-66W5IWLO.js";
|
|
133
133
|
import "./chunk-J3RXEDR2.js";
|
|
134
134
|
import "./chunk-QBXDU24O.js";
|
|
135
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-EEBIHQF2.js";
|
|
136
136
|
import {
|
|
137
137
|
normalizeErrorMessage
|
|
138
138
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
isHeifBytes,
|
|
13
13
|
prepareHeifImageInputs,
|
|
14
14
|
primaryGrid
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-SVGHIMPQ.js";
|
|
16
|
+
import "./chunk-HMS6UHUW.js";
|
|
17
17
|
import "./chunk-BZ56MTDX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-5HGS5MGD.js";
|
|
19
19
|
import "./chunk-Z5J67X44.js";
|
|
20
20
|
import "./chunk-5S7W3TUO.js";
|
|
21
21
|
import "./chunk-D3MUHMFG.js";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
withOwner,
|
|
13
13
|
withReader,
|
|
14
14
|
writeTurn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXVFPIOM.js";
|
|
16
16
|
import "./chunk-X7MTZ4T2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-AF3EN5XS.js";
|
|
18
18
|
import {
|
|
19
19
|
HistoryBusyError,
|
|
20
20
|
HistoryIdError,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
import "./chunk-A4ZTSQLW.js";
|
|
31
31
|
import {
|
|
32
32
|
trackHistoryAction
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-PICDT6ZW.js";
|
|
34
|
+
import "./chunk-ADOBHVHW.js";
|
|
35
35
|
import "./chunk-PXVQOMKL.js";
|
|
36
36
|
import "./chunk-MCDNAIFF.js";
|
|
37
37
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -50,7 +50,7 @@ import "./chunk-LAGZGKKN.js";
|
|
|
50
50
|
import "./chunk-FBN2M2HK.js";
|
|
51
51
|
import {
|
|
52
52
|
withMeta
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-BTDKWWND.js";
|
|
54
54
|
import "./chunk-BR2JQQC5.js";
|
|
55
55
|
import "./chunk-BLBMPEBX.js";
|
|
56
56
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
} from "./chunk-66W5IWLO.js";
|
|
63
63
|
import "./chunk-J3RXEDR2.js";
|
|
64
64
|
import "./chunk-QBXDU24O.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-EEBIHQF2.js";
|
|
66
66
|
import "./chunk-E63BDV4Z.js";
|
|
67
67
|
import "./chunk-G7VEYUZ2.js";
|
|
68
68
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var Ge=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var di=Object.getOwnPropertyNames;var ci=Object.prototype.hasOwnProperty;var mi=(t,e)=>{for(var n in e)Ge(t,n,{get:e[n],enumerable:!0})},pi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of di(e))!ci.call(t,r)&&r!==n&&Ge(t,r,{get:()=>e[r],enumerable:!(i=ui(e,r))||i.enumerable});return t};var fi=t=>pi(Ge({},"__esModule",{value:!0}),t);var so={};mi(so,{HyperframesPlayer:()=>$e,SPEED_PRESETS:()=>dt,formatSpeed:()=>W,formatTime:()=>Ie});var Lt=t=>t!==null&&Number.isFinite(t)&&t>0;function ze(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Lt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Lt);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var hi="http://www.w3.org/1999/xhtml";function Nt(t){return t!=null&&t.nodeType===1}function je(t){return Nt(t)&&t.namespaceURI===hi}function qe(t,e){return je(t)&&t.localName===e}function bi(t){return qe(t,"video")}function gi(t){return qe(t,"audio")}function P(t){return bi(t)||gi(t)}function Ot(t){return qe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Q(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return je(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),fo=Object.freeze([G.start,G.duration,G.trackIndex]),ho=Object.freeze([G.derivedEnd]),bo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ye(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Ft=t=>{let e=Ye(t);return e!==null&&e>=0?e:null};function Ae(t){return Ft(t("data-playback-start"))??Ft(t("data-media-start"))??0}var ee=.1,te=10;function Xe(t){return Number.isFinite(t)&&t>0?Math.max(ee,Math.min(te,t)):1}function Ut(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Xe(Number.isFinite(n)&&n>0?n:e)}function Ke(t){let e=Ye(t("data-duration"));return e!==null&&e>0?e:null}function Ht(t,e){let n=Ke(t);if(n!==null)return n;let i=Ye(t("data-end"));return i!==null?i-e:null}var _i=3;function Ze(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Xe(n):null}function Je(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:_i,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Ze(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var yi="data-fx-chain",_o=yi.slice(5);var ne=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),Qe=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Ee=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Vt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Wt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Ee(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ne("frequency","Frequency",1e3),Ee(-40,40,0),Qe(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ne("frequency","Frequency",200,20,2e3),Ee(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ne("frequency","Frequency",4e3,500,2e4),Ee(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ne("frequency","Cutoff",300,20,2e4),Qe(.707),Vt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ne("frequency","Cutoff",8e3,100,2e4),Qe(.707),Vt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],yo=new Map(Wt.map(t=>[t.id,t]));var vo=Wt.map(t=>t.id);function vi(t){return 10**(t/20)}var Bt=vi(12);var $t="data-automation",Io=$t.slice(5),et=1,Si=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Te="volume",Re="rate";function Gt(t){if(t===Te)return{kind:"volume"};if(t===Re)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===Ai){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var Ai="preset";var Ei={min:0,max:Bt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Ti={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ri(t){let e=ie(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=ie(t),i=ie(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function xi(t){let e=Ri(t?.curve),n=zt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function wi(t,e){let n=ie(t?.t),i=ie(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...xi(t)}}function ki(t,e){let n=t.map(r=>wi(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,Si)}function Mi(t){let e=[];for(let n of t.lanes){if(!Gt(n.target))continue;let i=n.target===Te?Ei:n.target===Re?Ti:null,r=ki(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:et,lanes:e}}function jt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==et)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Gt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Mi({version:et,lanes:i})}function Ci(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Ii(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Di(t,e,n){let{cx:i,cy:r,w:o}=Ii(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Pi(s,l,t),c=1-u,f=c*c+2*o*u*c+u*u;return f>0?(2*o*r*u*c+u*u)/f:t}function Pi(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Li(t,e){let n=zt(e.viaX,e.viaY);return n?Di(Math.min(1,Math.max(0,t)),n.x,n.y):Ci(t,e.curve)}function Ni(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function xe(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let f=a+s>>1;i[f].t<=e?a=f:s=f}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Ni(l.v,u.v,Li((e-l.t)/c,l),n)}var we=new Map,Oi=64;function qt(t,e=Te){let n=`${e}\0${t}`,i=we.get(n);if(i!==void 0)return i;let r=null;try{r=jt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return we.size>Oi&&we.clear(),we.set(n,r),r}var Yt=48,Xt=new WeakMap;function Fi(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=xe(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+xe(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let f=1;f<=Yt;f+=1)a(Math.max(u,0)+(c-u)*f/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Ui(t){let e=Xt.get(t);return e||(e=Fi(t),Xt.set(t,e)),e}function Hi(t){return typeof t!="number"&&t.points.length>0}function Vi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Kt(t,e){if(typeof t=="number")return e/t;if(!Hi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Ui(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Vi(i,n,e)}function Wi(t){return t?qt(t,Re):null}function Zt(t,e){return Wi(t)??e}var Uo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Vo=Object.freeze([y.start,y.duration,y.trackIndex]),Wo=Object.freeze([y.derivedEnd]),Bo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var en=/^[A-Za-z0-9_.:-]+$/;function tn(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Jt(t,e){let n=e;for(;n>=0&&tn(t,n);)n--;return n}function Bi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function $i(t){let e=t.length-1;if(!tn(t,e))return null;let n=Jt(t,e);return t[n]==="."&&(n=Jt(t,n-1)),n+1}function Gi(t){let e=$i(t);if(e==null)return null;let n=Bi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!en.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(en.test(e))return{kind:"reference",refId:e,offset:0};let i=Gi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function zi(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var ji=1e-9;function qi(t,e){return Math.abs(t-e)<=ji}function Yi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}qi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Xi(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function Ki(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function Zi(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:Ki(r,e,n);let o=Xi(i,e,n);return r!=null&&Yi(r,o.end,n),o}function Qt(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function Ji(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Qt(i,y.legacyTrack,"legacy-layer",e);let r=Qt(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function tt(t,e={}){let n=[],i=t.getAttribute(y.start),r=re(i),o=zi(r,i,e,n),a=Zi(t,o,n),s=Ji(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function nt(t){return Ut(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function Qi(t){return Zt(t.getAttribute("data-automation"),nt(t))}function it(t){return Ae(e=>t.getAttribute(e))}function oe(t,e){return er(e,it(t),Qi(t))}function rt(t){let e=Je({tag:"video",authoredDurationSeconds:Ke(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:it(t),playbackRate:nt(t)});return e.source==="media"?oe(t,t.duration):e.seconds}function ke(t,e=0){return!Ot(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Je({tag:"img",authoredDurationSeconds:Ht(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function er(t,e,n){return typeof n=="number"?Ze(t,e,n):Number.isFinite(t)?Kt(n,Math.max(0,t-e)):null}function nn(){return globalThis}function ot(t,e){if(typeof window>"u")return;let n=nn(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var tr=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function ae(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(tr));return Number.isFinite(i)?i:null}catch(e){return ot("runtime.timelineDuration",e),null}}var rn="data-hf-authored-duration",on="data-hf-authored-end";function se(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Me(t){let e=se(t.start);if(e==null)return null;let n=Math.max(0,e),i=se(t.duration),r=se(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=se(t.end),s=se(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),ia=Object.freeze([z.start,z.duration,z.trackIndex]),ra=Object.freeze([z.derivedEnd]),oa=Object.freeze([z.derivedEnd,z.legacyTrack]);function nr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var an=t=>{let e=nr(t);return e!==null&&e>=0?e:null};function ir(t){return an(t("data-playback-start"))??an(t("data-media-start"))??0}var sn="data-hf-media-start-basis";function ln(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function rr(t){return ln(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function un(t){return cn(t)?rr({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function dn(t){return cn(t)&&ln(t.basis)==="global"}function cn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function at(t){return ir(e=>t.getAttribute(e))}function mn(t,e){return t-at(e)}function le(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,h)=>{let g=s(h);if(g){for(let k of g.querySelectorAll(`[id="${d}"]`))if(s(k)===g)return k}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===d)??null)},u=(d,h)=>n?d.getAttribute(h):null,c=d=>Me({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Me({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,f=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let h=d.getAttribute("data-composition-id");return h?f(ae(e[h])):null},b=d=>{let h=o.get(d);if(h!==void 0)return h;let g=c(d)??f(P(d)?oe(d,d.duration):null)??f(ke(d))??v(d);return o.set(d,g),g},S="[data-composition-src], [data-composition-id], [data-composition-file]",_=d=>d.matches(S),A=d=>!d.hasAttribute("data-composition-id")||re(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${S}`)??null,C=(d,h)=>mn(T(d,h),A(d)??d),M=(d,h)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?C(g,h):0},I=(d,h)=>{let g=re(d.getAttribute("data-start"));if(!g){let H=A(d);return H?T(H,h):h}if(g.kind==="absolute")return M(d,h)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return h;let k=T(R,0),ye=b(R)??0,ve=Math.min(0,M(d,0));return Math.max(ve,k+ye+g.offset)},T=(d,h)=>{let g=r.get(d);if(g!==void 0)return g??h;if(a.has(d))return h;a.add(d);try{let R=I(d,h);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let h=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:h?C(h,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(sn)}};return{resolveStartForElement:(d,h=0)=>T(d,Math.max(0,h)),resolveDurationForElement:d=>b(d),resolveMediaStartForElement:d=>{let h=U(d);return un({...h,ordinaryStart:()=>T(d,h.hostStart)})},resolveHostStartForElement:d=>M(d,0),resolveHostSlotsForElement:d=>{let h=[];for(let g=d.parentElement;g;g=g.parentElement){if(!_(g)||A(g)||at(g)<=0)continue;let R=T(g,0),k=c(g);h.push({start:R,end:k?R+k:1/0})}return h},isRootGlobalMediaStartForElement:d=>P(d)&&dn(U(d))}}function pn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var fn=7200,st=1/60,ue=t=>t!==null&&t>st?t:null;function or(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function ar(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=st)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&ue(n.seconds)!==null?n:null}function sr(t,e){return ar(t,e)?.seconds??null}function lr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return ue(ze({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var ur=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function dr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||ur(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=ze({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function cr(t){return mr(t).seconds}function mr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=ue(t.timeline()),n=t.floors().map(f=>f??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>st?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=fn&&ue(o)!==null?null:e,l=i>=r,u=f=>({seconds:f,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(ue(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function hn(t){let e=Q(t);if(!e)return null;let n=le({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=cr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[sr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:rt}),lr(e,n)],fallback:0,derived:()=>dr(e,n,{unregisteredLottie:!1}).seconds??0});return{...or(e),fps:pn().canonicalFps,durationSeconds:i}}var bn="hyperframes-studio-preview";var gn="__hfPreviewErrors";function _n(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function yn(t){return j(t)&&typeof t.getDuration=="function"}function vn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.224/dist/hyperframe.runtime.iife.js";function de(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function pr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=de(e.getAttribute("data-width")),i=de(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function fr(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ce=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=fr(Reflect.get(n,gn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(_n({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?hn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:pr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return vn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(yn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Sn=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var Ge=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var di=Object.getOwnPropertyNames;var ci=Object.prototype.hasOwnProperty;var mi=(t,e)=>{for(var n in e)Ge(t,n,{get:e[n],enumerable:!0})},pi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of di(e))!ci.call(t,r)&&r!==n&&Ge(t,r,{get:()=>e[r],enumerable:!(i=ui(e,r))||i.enumerable});return t};var fi=t=>pi(Ge({},"__esModule",{value:!0}),t);var so={};mi(so,{HyperframesPlayer:()=>$e,SPEED_PRESETS:()=>dt,formatSpeed:()=>W,formatTime:()=>Ie});var Lt=t=>t!==null&&Number.isFinite(t)&&t>0;function ze(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Lt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Lt);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var hi="http://www.w3.org/1999/xhtml";function Nt(t){return t!=null&&t.nodeType===1}function je(t){return Nt(t)&&t.namespaceURI===hi}function qe(t,e){return je(t)&&t.localName===e}function bi(t){return qe(t,"video")}function gi(t){return qe(t,"audio")}function P(t){return bi(t)||gi(t)}function Ot(t){return qe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Q(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return je(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),fo=Object.freeze([G.start,G.duration,G.trackIndex]),ho=Object.freeze([G.derivedEnd]),bo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ye(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Ft=t=>{let e=Ye(t);return e!==null&&e>=0?e:null};function Ae(t){return Ft(t("data-playback-start"))??Ft(t("data-media-start"))??0}var ee=.1,te=10;function Xe(t){return Number.isFinite(t)&&t>0?Math.max(ee,Math.min(te,t)):1}function Ut(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Xe(Number.isFinite(n)&&n>0?n:e)}function Ke(t){let e=Ye(t("data-duration"));return e!==null&&e>0?e:null}function Ht(t,e){let n=Ke(t);if(n!==null)return n;let i=Ye(t("data-end"));return i!==null?i-e:null}var _i=3;function Ze(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Xe(n):null}function Je(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:_i,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Ze(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var yi="data-fx-chain",_o=yi.slice(5);var ne=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),Qe=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Ee=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Vt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Wt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Ee(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ne("frequency","Frequency",1e3),Ee(-40,40,0),Qe(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ne("frequency","Frequency",200,20,2e3),Ee(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ne("frequency","Frequency",4e3,500,2e4),Ee(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ne("frequency","Cutoff",300,20,2e4),Qe(.707),Vt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ne("frequency","Cutoff",8e3,100,2e4),Qe(.707),Vt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],yo=new Map(Wt.map(t=>[t.id,t]));var vo=Wt.map(t=>t.id);function vi(t){return 10**(t/20)}var Bt=vi(12);var $t="data-automation",Io=$t.slice(5),et=1,Si=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Te="volume",Re="rate";function Gt(t){if(t===Te)return{kind:"volume"};if(t===Re)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===Ai){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var Ai="preset";var Ei={min:0,max:Bt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Ti={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ri(t){let e=ie(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=ie(t),i=ie(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function xi(t){let e=Ri(t?.curve),n=zt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function wi(t,e){let n=ie(t?.t),i=ie(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...xi(t)}}function ki(t,e){let n=t.map(r=>wi(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,Si)}function Mi(t){let e=[];for(let n of t.lanes){if(!Gt(n.target))continue;let i=n.target===Te?Ei:n.target===Re?Ti:null,r=ki(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:et,lanes:e}}function jt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==et)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Gt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Mi({version:et,lanes:i})}function Ci(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Ii(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Di(t,e,n){let{cx:i,cy:r,w:o}=Ii(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Pi(s,l,t),c=1-u,f=c*c+2*o*u*c+u*u;return f>0?(2*o*r*u*c+u*u)/f:t}function Pi(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Li(t,e){let n=zt(e.viaX,e.viaY);return n?Di(Math.min(1,Math.max(0,t)),n.x,n.y):Ci(t,e.curve)}function Ni(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function xe(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let f=a+s>>1;i[f].t<=e?a=f:s=f}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Ni(l.v,u.v,Li((e-l.t)/c,l),n)}var we=new Map,Oi=64;function qt(t,e=Te){let n=`${e}\0${t}`,i=we.get(n);if(i!==void 0)return i;let r=null;try{r=jt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return we.size>Oi&&we.clear(),we.set(n,r),r}var Yt=48,Xt=new WeakMap;function Fi(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=xe(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+xe(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let f=1;f<=Yt;f+=1)a(Math.max(u,0)+(c-u)*f/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Ui(t){let e=Xt.get(t);return e||(e=Fi(t),Xt.set(t,e)),e}function Hi(t){return typeof t!="number"&&t.points.length>0}function Vi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Kt(t,e){if(typeof t=="number")return e/t;if(!Hi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Ui(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Vi(i,n,e)}function Wi(t){return t?qt(t,Re):null}function Zt(t,e){return Wi(t)??e}var Uo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Vo=Object.freeze([y.start,y.duration,y.trackIndex]),Wo=Object.freeze([y.derivedEnd]),Bo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var en=/^[A-Za-z0-9_.:-]+$/;function tn(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Jt(t,e){let n=e;for(;n>=0&&tn(t,n);)n--;return n}function Bi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function $i(t){let e=t.length-1;if(!tn(t,e))return null;let n=Jt(t,e);return t[n]==="."&&(n=Jt(t,n-1)),n+1}function Gi(t){let e=$i(t);if(e==null)return null;let n=Bi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!en.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(en.test(e))return{kind:"reference",refId:e,offset:0};let i=Gi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function zi(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var ji=1e-9;function qi(t,e){return Math.abs(t-e)<=ji}function Yi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}qi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Xi(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function Ki(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function Zi(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:Ki(r,e,n);let o=Xi(i,e,n);return r!=null&&Yi(r,o.end,n),o}function Qt(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function Ji(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Qt(i,y.legacyTrack,"legacy-layer",e);let r=Qt(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function tt(t,e={}){let n=[],i=t.getAttribute(y.start),r=re(i),o=zi(r,i,e,n),a=Zi(t,o,n),s=Ji(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function nt(t){return Ut(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function Qi(t){return Zt(t.getAttribute("data-automation"),nt(t))}function it(t){return Ae(e=>t.getAttribute(e))}function oe(t,e){return er(e,it(t),Qi(t))}function rt(t){let e=Je({tag:"video",authoredDurationSeconds:Ke(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:it(t),playbackRate:nt(t)});return e.source==="media"?oe(t,t.duration):e.seconds}function ke(t,e=0){return!Ot(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Je({tag:"img",authoredDurationSeconds:Ht(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function er(t,e,n){return typeof n=="number"?Ze(t,e,n):Number.isFinite(t)?Kt(n,Math.max(0,t-e)):null}function nn(){return globalThis}function ot(t,e){if(typeof window>"u")return;let n=nn(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var tr=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function ae(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(tr));return Number.isFinite(i)?i:null}catch(e){return ot("runtime.timelineDuration",e),null}}var rn="data-hf-authored-duration",on="data-hf-authored-end";function se(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Me(t){let e=se(t.start);if(e==null)return null;let n=Math.max(0,e),i=se(t.duration),r=se(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=se(t.end),s=se(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),ia=Object.freeze([z.start,z.duration,z.trackIndex]),ra=Object.freeze([z.derivedEnd]),oa=Object.freeze([z.derivedEnd,z.legacyTrack]);function nr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var an=t=>{let e=nr(t);return e!==null&&e>=0?e:null};function ir(t){return an(t("data-playback-start"))??an(t("data-media-start"))??0}var sn="data-hf-media-start-basis";function ln(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function rr(t){return ln(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function un(t){return cn(t)?rr({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function dn(t){return cn(t)&&ln(t.basis)==="global"}function cn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function at(t){return ir(e=>t.getAttribute(e))}function mn(t,e){return t-at(e)}function le(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,h)=>{let g=s(h);if(g){for(let k of g.querySelectorAll(`[id="${d}"]`))if(s(k)===g)return k}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===d)??null)},u=(d,h)=>n?d.getAttribute(h):null,c=d=>Me({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Me({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,f=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let h=d.getAttribute("data-composition-id");return h?f(ae(e[h])):null},b=d=>{let h=o.get(d);if(h!==void 0)return h;let g=c(d)??f(P(d)?oe(d,d.duration):null)??f(ke(d))??v(d);return o.set(d,g),g},S="[data-composition-src], [data-composition-id], [data-composition-file]",_=d=>d.matches(S),A=d=>!d.hasAttribute("data-composition-id")||re(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${S}`)??null,C=(d,h)=>mn(T(d,h),A(d)??d),M=(d,h)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?C(g,h):0},I=(d,h)=>{let g=re(d.getAttribute("data-start"));if(!g){let H=A(d);return H?T(H,h):h}if(g.kind==="absolute")return M(d,h)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return h;let k=T(R,0),ye=b(R)??0,ve=Math.min(0,M(d,0));return Math.max(ve,k+ye+g.offset)},T=(d,h)=>{let g=r.get(d);if(g!==void 0)return g??h;if(a.has(d))return h;a.add(d);try{let R=I(d,h);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let h=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:h?C(h,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(sn)}};return{resolveStartForElement:(d,h=0)=>T(d,Math.max(0,h)),resolveDurationForElement:d=>b(d),resolveMediaStartForElement:d=>{let h=U(d);return un({...h,ordinaryStart:()=>T(d,h.hostStart)})},resolveHostStartForElement:d=>M(d,0),resolveHostSlotsForElement:d=>{let h=[];for(let g=d.parentElement;g;g=g.parentElement){if(!_(g)||A(g)||at(g)<=0)continue;let R=T(g,0),k=c(g);h.push({start:R,end:k?R+k:1/0})}return h},isRootGlobalMediaStartForElement:d=>P(d)&&dn(U(d))}}function pn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var fn=7200,st=1/60,ue=t=>t!==null&&t>st?t:null;function or(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function ar(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=st)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&ue(n.seconds)!==null?n:null}function sr(t,e){return ar(t,e)?.seconds??null}function lr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return ue(ze({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var ur=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function dr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||ur(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=ze({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function cr(t){return mr(t).seconds}function mr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=ue(t.timeline()),n=t.floors().map(f=>f??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>st?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=fn&&ue(o)!==null?null:e,l=i>=r,u=f=>({seconds:f,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(ue(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function hn(t){let e=Q(t);if(!e)return null;let n=le({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=cr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[sr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:rt}),lr(e,n)],fallback:0,derived:()=>dr(e,n,{unregisteredLottie:!1}).seconds??0});return{...or(e),fps:pn().canonicalFps,durationSeconds:i}}var bn="hyperframes-studio-preview";var gn="__hfPreviewErrors";function _n(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function yn(t){return j(t)&&typeof t.getDuration=="function"}function vn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.225/dist/hyperframe.runtime.iife.js";function de(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function pr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=de(e.getAttribute("data-width")),i=de(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function fr(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ce=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=fr(Reflect.get(n,gn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(_n({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?hn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:pr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return vn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(yn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Sn=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AF3EN5XS.js";
|
|
13
13
|
import {
|
|
14
14
|
formatBytes,
|
|
15
15
|
label
|
|
16
16
|
} from "./chunk-5LOZWO2M.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PICDT6ZW.js";
|
|
18
|
+
import "./chunk-ADOBHVHW.js";
|
|
19
19
|
import "./chunk-PXVQOMKL.js";
|
|
20
20
|
import "./chunk-MCDNAIFF.js";
|
|
21
21
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -55,7 +55,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
55
55
|
import "./chunk-FBN2M2HK.js";
|
|
56
56
|
import {
|
|
57
57
|
withMeta
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-BTDKWWND.js";
|
|
59
59
|
import "./chunk-BR2JQQC5.js";
|
|
60
60
|
import "./chunk-BLBMPEBX.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -63,7 +63,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
63
63
|
import "./chunk-66W5IWLO.js";
|
|
64
64
|
import "./chunk-J3RXEDR2.js";
|
|
65
65
|
import "./chunk-QBXDU24O.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-EEBIHQF2.js";
|
|
67
67
|
import "./chunk-E63BDV4Z.js";
|
|
68
68
|
import "./chunk-G7VEYUZ2.js";
|
|
69
69
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
gateRegistryItemsCompatibility
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LWTT7I7X.js";
|
|
10
10
|
import {
|
|
11
11
|
copyDirSync
|
|
12
12
|
} from "./chunk-CIWX5UKC.js";
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
} from "./chunk-WJD3GVAA.js";
|
|
24
24
|
import {
|
|
25
25
|
initialModelForLanguage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UBXKKXXR.js";
|
|
27
27
|
import "./chunk-SWC3QIEH.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SXHSNLEC.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MODEL,
|
|
31
31
|
hasFFmpeg
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3E2BO3L3.js";
|
|
33
33
|
import "./chunk-RZ6CXJ56.js";
|
|
34
34
|
import "./chunk-R4EWRIDL.js";
|
|
35
35
|
import {
|
|
36
36
|
findFFmpeg,
|
|
37
37
|
findFFprobe,
|
|
38
38
|
getFFmpegInstallHint
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FPWCICAI.js";
|
|
40
40
|
import "./chunk-UOFAE5RF.js";
|
|
41
41
|
import {
|
|
42
42
|
TRANSCRIPT_FILE
|
|
@@ -62,8 +62,8 @@ import "./chunk-T2WJO4XM.js";
|
|
|
62
62
|
import "./chunk-A4ZTSQLW.js";
|
|
63
63
|
import {
|
|
64
64
|
trackInitTemplate
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-PICDT6ZW.js";
|
|
66
|
+
import "./chunk-ADOBHVHW.js";
|
|
67
67
|
import "./chunk-PXVQOMKL.js";
|
|
68
68
|
import "./chunk-MCDNAIFF.js";
|
|
69
69
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
c,
|
|
80
80
|
isColorSupported
|
|
81
81
|
} from "./chunk-2GICKZ3I.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-5HGS5MGD.js";
|
|
83
83
|
import "./chunk-Z5J67X44.js";
|
|
84
84
|
import "./chunk-5S7W3TUO.js";
|
|
85
85
|
import {
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
import "./chunk-QBXDU24O.js";
|
|
137
137
|
import {
|
|
138
138
|
VERSION
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-EEBIHQF2.js";
|
|
140
140
|
import "./chunk-E63BDV4Z.js";
|
|
141
141
|
import "./chunk-G7VEYUZ2.js";
|
|
142
142
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -741,7 +741,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
async function keepSkillsCurrent(destDir) {
|
|
744
|
-
const { updateSkills } = await import("./skills-
|
|
744
|
+
const { updateSkills } = await import("./skills-JLNDM2KP.js");
|
|
745
745
|
console.log();
|
|
746
746
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
747
747
|
try {
|
|
@@ -937,17 +937,17 @@ var init_default = defineCommand({
|
|
|
937
937
|
if (audioPath) {
|
|
938
938
|
sourceFilePath2 = audioPath;
|
|
939
939
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
940
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
940
|
+
const { getMediaDurationSeconds } = await import("./transcribe-HSYXT5TZ.js");
|
|
941
941
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
942
942
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
943
943
|
}
|
|
944
944
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
945
945
|
try {
|
|
946
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
946
|
+
const { ensureWhisper, ensureModel } = await import("./manager-C6GVT3EI.js");
|
|
947
947
|
await ensureWhisper();
|
|
948
948
|
await ensureModel(initialTranscriptionModel);
|
|
949
949
|
console.log("Transcribing...");
|
|
950
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
950
|
+
const { transcribe: runTranscribe } = await import("./transcribe-HSYXT5TZ.js");
|
|
951
951
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
952
952
|
model: modelFlag,
|
|
953
953
|
language: languageFlag
|
|
@@ -1093,7 +1093,7 @@ var init_default = defineCommand({
|
|
|
1093
1093
|
mkdirSync(destDir, { recursive: true });
|
|
1094
1094
|
sourceFilePath = audioPath;
|
|
1095
1095
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1096
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1096
|
+
const { getMediaDurationSeconds } = await import("./transcribe-HSYXT5TZ.js");
|
|
1097
1097
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1098
1098
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1099
1099
|
}
|
|
@@ -1103,7 +1103,7 @@ var init_default = defineCommand({
|
|
|
1103
1103
|
initialValue: true
|
|
1104
1104
|
});
|
|
1105
1105
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1106
|
-
const { findWhisper } = await import("./manager-
|
|
1106
|
+
const { findWhisper } = await import("./manager-C6GVT3EI.js");
|
|
1107
1107
|
const needsInstall = findWhisper() === void 0;
|
|
1108
1108
|
if (needsInstall) {
|
|
1109
1109
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1113,7 +1113,7 @@ var init_default = defineCommand({
|
|
|
1113
1113
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1114
1114
|
);
|
|
1115
1115
|
try {
|
|
1116
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1116
|
+
const { ensureWhisper, ensureModel } = await import("./manager-C6GVT3EI.js");
|
|
1117
1117
|
await ensureWhisper({
|
|
1118
1118
|
onProgress: (msg) => spin2.message(msg)
|
|
1119
1119
|
});
|
|
@@ -1121,7 +1121,7 @@ var init_default = defineCommand({
|
|
|
1121
1121
|
onProgress: (msg) => spin2.message(msg)
|
|
1122
1122
|
});
|
|
1123
1123
|
spin2.message("Transcribing audio...");
|
|
1124
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1124
|
+
const { transcribe: runTranscribe } = await import("./transcribe-HSYXT5TZ.js");
|
|
1125
1125
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1126
1126
|
model: modelFlag,
|
|
1127
1127
|
language: languageFlag,
|
|
@@ -1199,7 +1199,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1199
1199
|
}
|
|
1200
1200
|
R.info("Opening studio preview...");
|
|
1201
1201
|
try {
|
|
1202
|
-
const previewCmd = await import("./preview-
|
|
1202
|
+
const previewCmd = await import("./preview-3YNKJZME.js").then((m) => m.default);
|
|
1203
1203
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1204
1204
|
} catch {
|
|
1205
1205
|
}
|