hyperframes 0.8.231 → 0.9.1
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-2WACK4YI.js → add-LA6SUF76.js} +11 -11
- package/dist/{agentPromptGenerator-SNDC7EM7.js → agentPromptGenerator-JJU55BVC.js} +5 -5
- package/dist/{animatedGifPrep-NGWLOMQE.js → animatedGifPrep-AI2PWTUM.js} +5 -5
- package/dist/api.js +18 -18
- package/dist/{asset-QDIOQ3UN.js → asset-5Y5I2SRR.js} +2 -2
- package/dist/{assetCataloger-ZT232SOC.js → assetCataloger-ZJL3QF7H.js} +6 -6
- package/dist/{audio-ABPWXWL3.js → audio-PTC232QG.js} +11 -11
- package/dist/{auth-LFTYUOZ7.js → auth-SSVSRIDE.js} +1 -1
- package/dist/{autoUpdate-P7LMMKAG.js → autoUpdate-RTYJ3N6U.js} +2 -2
- package/dist/{backgroundChecks-BIWORRV4.js → backgroundChecks-5QXE3I27.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-BCJRGQHY.js → batchRender-URRYTZUE.js} +3 -3
- package/dist/{beats-6HXXV544.js → beats-T3VU7WB6.js} +7 -7
- package/dist/{benchmark-OEVBOZ47.js → benchmark-SHL3OH6E.js} +8 -8
- package/dist/{browser-JDXHDES5.js → browser-AHPIKCDX.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-FMOWLUNP.js → bundleWithLocalizedFonts-YWOC66CY.js} +2 -2
- package/dist/{capture-SIIP4X2U.js → capture-FMGRTD4U.js} +10 -10
- package/dist/{capture-V4O3WYMX.js → capture-G4O5MXQB.js} +3 -3
- package/dist/{captureCompositionFrame-AELJ7UQO.js → captureCompositionFrame-BUPQVJVL.js} +10 -10
- package/dist/{catalog-IBCJLVMF.js → catalog-V6B6RXFE.js} +11 -11
- package/dist/{catch-up-YUDNSAAL.js → catch-up-7KLU3YPA.js} +4 -4
- package/dist/{check-JWY74AN5.js → check-VM7ET6MB.js} +35 -35
- package/dist/{checkAudio-NF2GGJT7.js → checkAudio-RXWKXU62.js} +8 -8
- package/dist/{checkBrowser-EILKQRQX.js → checkBrowser-YH43NV46.js} +29 -29
- package/dist/{chunk-PEVJXGMI.js → chunk-3BG7L7NU.js} +1 -1
- package/dist/{chunk-WBEBBMQJ.js → chunk-3BRY4FWJ.js} +1 -1
- package/dist/{chunk-PLHQUBAY.js → chunk-3FZJ36DK.js} +1 -1
- package/dist/{chunk-SXA24WJ4.js → chunk-3S26BVBZ.js} +3 -3
- package/dist/{chunk-SF7Z35VJ.js → chunk-3TTZHRQV.js} +1 -1
- package/dist/{chunk-BBUREQHC.js → chunk-466STTBD.js} +2 -2
- package/dist/{chunk-EUDL2G25.js → chunk-4EBPYENN.js} +9 -9
- package/dist/{chunk-WKJQBDFQ.js → chunk-64SHPFOU.js} +2 -2
- package/dist/{chunk-HE2U7MGN.js → chunk-6CZ24YJW.js} +1 -1
- package/dist/{chunk-GO3BLPTW.js → chunk-6P3WIVAB.js} +1 -1
- package/dist/{chunk-7PHB5Z2D.js → chunk-6TYB2NGI.js} +1 -1
- package/dist/{chunk-LBVU3TVN.js → chunk-743K5PLC.js} +2 -2
- package/dist/{chunk-PUA7WRR3.js → chunk-7Y7IIMYF.js} +9 -9
- package/dist/{chunk-ISNSSHML.js → chunk-AEQV7SBT.js} +1 -1
- package/dist/{chunk-SGOFILD2.js → chunk-AGYOQ6FS.js} +3 -3
- package/dist/{chunk-GJCLAPUP.js → chunk-CIB53K5W.js} +1 -1
- package/dist/{chunk-FNDKV2AD.js → chunk-CXDZE5PF.js} +1 -1
- package/dist/{chunk-SUDJDTU6.js → chunk-DKEVSKLR.js} +1 -1
- package/dist/{chunk-FZFW5CDV.js → chunk-DRKW2UF7.js} +1 -1
- package/dist/{chunk-E5EGU7QQ.js → chunk-DT4WPURD.js} +1 -1
- package/dist/{chunk-EOFVDMFT.js → chunk-DWUIMFJB.js} +2 -2
- package/dist/{chunk-RV4XCIJO.js → chunk-EE3ZBV3S.js} +1 -1
- package/dist/{chunk-YOLDPJTZ.js → chunk-EEOCX42I.js} +1 -1
- package/dist/{chunk-RTUKNMA4.js → chunk-F53TMQSD.js} +1 -1
- package/dist/{chunk-TPZ424FN.js → chunk-FG54EGT2.js} +1 -1
- package/dist/{chunk-7GWGRB7H.js → chunk-FWOYWSRK.js} +3 -3
- package/dist/{chunk-B4QOTHJ4.js → chunk-G3GYYN42.js} +1 -1
- package/dist/{chunk-VJ4J5MDA.js → chunk-HBQLT4LW.js} +1 -1
- package/dist/chunk-HIULMAN3.js +5030 -0
- package/dist/{chunk-3NS7IS2V.js → chunk-HV23H4FI.js} +1 -1
- package/dist/{chunk-MKJEQ7LF.js → chunk-IOEZGUKO.js} +2 -2
- package/dist/{chunk-EIYQX23K.js → chunk-IVNAVSZU.js} +1 -1
- package/dist/{chunk-373H5PBK.js → chunk-JEFQMJQR.js} +1 -1
- package/dist/{chunk-N6J6LNDQ.js → chunk-KIHELC2D.js} +1 -1
- package/dist/{chunk-BGDLHFZI.js → chunk-KUU6CLU7.js} +7 -7
- package/dist/{chunk-J4YINAEK.js → chunk-KVYAHFDT.js} +2 -2
- package/dist/{chunk-PZBFWN3Y.js → chunk-LFZ3QUCU.js} +1 -1
- package/dist/{chunk-55OLDIQX.js → chunk-LIP2WQZD.js} +13 -13
- package/dist/{chunk-7XXZRFSQ.js → chunk-LIUJACWM.js} +1 -1
- package/dist/{chunk-NIY7V446.js → chunk-LXGQEXUG.js} +2 -2
- package/dist/{chunk-KYNASFVB.js → chunk-MGWULMAO.js} +2 -2
- package/dist/{chunk-MLUOGC2J.js → chunk-MILRLELA.js} +12 -12
- package/dist/{chunk-YASVZ2RL.js → chunk-MKK3VHR6.js} +7 -7
- package/dist/{chunk-MOMOZDM5.js → chunk-MKSOLUHC.js} +1 -1
- package/dist/{chunk-PZNWJDPR.js → chunk-MU2KWMSZ.js} +1 -1
- package/dist/{chunk-S6ANBXWF.js → chunk-MWFZDRBX.js} +5 -5
- package/dist/{chunk-ERHYPNLO.js → chunk-OOYETMCB.js} +17 -17
- package/dist/{chunk-LSVDI3Q5.js → chunk-OYJPQJLV.js} +2 -2
- package/dist/{chunk-TA4XXR3W.js → chunk-P3TR5I66.js} +2 -2
- package/dist/{chunk-GLTWXKP7.js → chunk-Q22ZZPA7.js} +2 -2
- package/dist/{chunk-JZQWZGS5.js → chunk-QM6CELHP.js} +3 -3
- package/dist/{chunk-3BWYSXMK.js → chunk-QVIWKU4E.js} +2 -2
- package/dist/{chunk-2TVJN55K.js → chunk-RA6V3CEH.js} +2 -2
- package/dist/{chunk-PG4UPV45.js → chunk-RGM5BCE3.js} +1 -1
- package/dist/{chunk-VV2MQA2M.js → chunk-RL5WHPX3.js} +8 -8
- package/dist/{chunk-NNGN7TRX.js → chunk-SJ2GRRBB.js} +7 -7
- package/dist/{chunk-CS7WOMVH.js → chunk-TCC5GD2O.js} +2 -2
- package/dist/{chunk-6OPX32PN.js → chunk-TEOGTHIZ.js} +8 -30
- package/dist/{chunk-RVDNZAZY.js → chunk-TFB3I26A.js} +1 -1
- package/dist/{chunk-MXO7BJXE.js → chunk-TQ7IBVEN.js} +1 -1
- package/dist/{chunk-NHANNCQL.js → chunk-UFZ6CGVH.js} +4 -4
- package/dist/{chunk-G2B4LW6F.js → chunk-UJFCWYS6.js} +1 -1
- package/dist/{chunk-UNAYPQ3J.js → chunk-UZJY5S6C.js} +1 -1
- package/dist/{chunk-ZFFSRJL4.js → chunk-UZNF24QH.js} +2 -2
- package/dist/{chunk-WRRZRWDR.js → chunk-V3LI4PZ7.js} +2 -2
- package/dist/{chunk-WP4WBVCB.js → chunk-VV3F4QJP.js} +1 -1
- package/dist/{chunk-W3KXPHD7.js → chunk-VV5NU3XP.js} +1 -1
- package/dist/{chunk-XROPYASW.js → chunk-X67ACTZ7.js} +3 -3
- package/dist/{chunk-26LQKZE5.js → chunk-XOANWVIT.js} +1 -1
- package/dist/{chunk-HSYXJPQQ.js → chunk-XYE4IIPM.js} +4 -4
- package/dist/{chunk-QSVHGKBU.js → chunk-YABUBACD.js} +1 -1
- package/dist/{chunk-ZRNQSS6V.js → chunk-YQVLBT2P.js} +4 -4
- package/dist/{chunk-ZTLYHUR4.js → chunk-Z4QZCJPX.js} +2 -2
- package/dist/{chunk-CGEI7RSJ.js → chunk-ZHC2FFUL.js} +2 -2
- package/dist/{chunk-RWFJFVHA.js → chunk-ZM5PG3S5.js} +1 -1
- package/dist/{clean-VXGYYRL4.js → clean-MQDQZQYG.js} +15 -15
- package/dist/cli.js +56 -56
- package/dist/{cloud-QSSMSQZH.js → cloud-C55BDE2U.js} +4 -4
- package/dist/{cloudrun-I4B3BXSH.js → cloudrun-SSR4U6SW.js} +4 -4
- package/dist/{compare-4WHTUPB7.js → compare-3LAT2JAL.js} +26 -26
- package/dist/{compiler-K7HRRWTF.js → compiler-VG3XLVW5.js} +2 -2
- package/dist/{component-TOVYBZIY.js → component-DFEJJRMG.js} +3 -3
- package/dist/{compositions-IFMKPTOD.js → compositions-3TV3ZLYE.js} +9 -9
- package/dist/{curve-N5JVELKM.js → curve-ZEZYGDID.js} +9 -9
- package/dist/{cuts-D7UFWFA7.js → cuts-3GFYYAB5.js} +10 -10
- package/dist/{delete-JNONZOJP.js → delete-SAJEM2GS.js} +2 -2
- package/dist/{deploy-DWER276W.js → deploy-ITEXLN64.js} +1 -1
- package/dist/{describeProject-IADDO66H.js → describeProject-2AOSIR73.js} +6 -6
- package/dist/{diff-NKGACFU2.js → diff-KBY6U375.js} +55 -21
- package/dist/{dist-B2QQUFZP.js → dist-33RPV7WP.js} +2 -2
- package/dist/{doctor-VTTQZS2Y.js → doctor-KPPD5QGL.js} +9 -9
- package/dist/{energy-DBPIXACF.js → energy-CMQOFKWI.js} +10 -10
- package/dist/{events-GU4D4BLE.js → events-E7PDBLVA.js} +3 -3
- package/dist/{events-CYF6Q5RV.js → events-JJ56QYE7.js} +11 -11
- package/dist/{events-UXA4EO77.js → events-NEEC6EWY.js} +2 -2
- package/dist/{extract-DJNCSLXV.js → extract-QC4CVKFU.js} +10 -10
- package/dist/{face-LACBH74K.js → face-BCGROEQN.js} +10 -10
- package/dist/{feedback-45EAAEEV.js → feedback-FRYTNOKI.js} +6 -6
- package/dist/{ffmpeg-RKWN7QI4.js → ffmpeg-ECBNDC2O.js} +5 -5
- package/dist/{figma-CKQEYPE5.js → figma-VNEBULDB.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-K36RMXTL.js → frames-2SW5DKKS.js} +11 -11
- package/dist/{generate-C4HHN3I6.js → generate-RICGYHAF.js} +12 -12
- package/dist/{get-JUC3E3UI.js → get-QZ4FJSK4.js} +2 -2
- package/dist/{gpuPolicy-A4MTY2KF.js → gpuPolicy-ZNG3KI5O.js} +5 -5
- package/dist/{grade-compare-A4BTYEM4.js → grade-compare-4MPYWWC3.js} +27 -27
- package/dist/{heifImagePrep-SCKHCELH.js → heifImagePrep-PU55SI4G.js} +6 -6
- package/dist/{help-FIOZIOUQ.js → help-WJHI4CY7.js} +1 -1
- package/dist/{history-5RXN6GND.js → history-25V6X7K2.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-AP6AZWW4.js → info-GEIOUKEJ.js} +7 -7
- package/dist/{init-Z446SOS2.js → init-XIUMCSHF.js} +25 -25
- package/dist/{ink-EJ6YV676.js → ink-GC3PNMSW.js} +10 -10
- package/dist/{inspect-WBAWKRYN.js → inspect-7N73GQLN.js} +27 -27
- package/dist/{installer-4L6AMT6A.js → installer-76PUUFUA.js} +4 -4
- package/dist/{keyframes-KL532ATL.js → keyframes-KTFKX2D5.js} +6 -6
- package/dist/{lambda-RLFYEKNO.js → lambda-C77S2WBA.js} +9 -9
- package/dist/{layout-3BJKWHXU.js → layout-OBZ3MIS6.js} +27 -27
- package/dist/{lint-7AV5F5CR.js → lint-6Z4AU6VJ.js} +6 -6
- package/dist/{list-A5C5PFJJ.js → list-RWZ5PFV5.js} +2 -2
- package/dist/{localPage-RNHDBIFU.js → localPage-3XYLIQKZ.js} +5 -5
- package/dist/{login-IHSZJCSV.js → login-NG3RBTGV.js} +4 -4
- package/dist/{look-WVZ56TIM.js → look-TVUFEWL2.js} +10 -10
- package/dist/{manager-L7HQ6OIB.js → manager-QUXH76BC.js} +6 -6
- package/dist/{measure-KBMHMO7H.js → measure-AG2ZSWIX.js} +11 -11
- package/dist/{media-treatment-DYY5S7GJ.js → media-treatment-IZ6NWGZY.js} +11 -11
- package/dist/{media-use-67ZWTBMD.js → media-use-6ECM25H6.js} +1 -1
- package/dist/{models-GJENIGBK.js → models-JRLQQ6EJ.js} +9 -9
- package/dist/{motionShot-4CJNTDYD.js → motionShot-I4AUSEQN.js} +13 -13
- package/dist/{normalize-audio-CBWNKG7Q.js → normalize-audio-56ZQSWFL.js} +8 -8
- package/dist/{open-KM6OVDR4.js → open-65XKMXFS.js} +11 -11
- package/dist/{parakeetRunner-5DJYP5PB.js → parakeetRunner-4TX6EWS5.js} +10 -10
- package/dist/{pipeline-QWKTGAUM.js → pipeline-BJUOIKB4.js} +8 -8
- package/dist/{play-4HXKYQSG.js → play-ZKZ2XWYK.js} +18 -18
- package/dist/{preflight-S2ISI7Y3.js → preflight-2HVP2YKG.js} +6 -6
- package/dist/{present-WM63A5OL.js → present-IFIEJJDE.js} +14 -14
- package/dist/{preview-OY3Z6FLI.js → preview-C22ZXQ7K.js} +16 -16
- package/dist/{probe-V4UWHQBV.js → probe-GFJCK7B6.js} +9 -9
- package/dist/{producer-FZA5UXH6.js → producer-SWMMOBS7.js} +1 -1
- package/dist/{projectConfig-3QUI7VQX.js → projectConfig-KQAF253E.js} +6 -6
- package/dist/{publication-BPQMAQ3J.js → publication-4TBCB2O6.js} +2 -2
- package/dist/{publish-ZLZGYDOI.js → publish-BAG4KFYS.js} +8 -8
- package/dist/{remove-background-5RACLELM.js → remove-background-SPIM5UNR.js} +9 -9
- package/dist/{render-YKWOGHXS.js → render-HWXYMZMU.js} +5 -5
- package/dist/{render-63L7JIQS.js → render-S2VA65IJ.js} +14 -14
- package/dist/{render-ZNE2VE2N.js → render-ZXX3VCER.js} +30 -30
- package/dist/{render-batch-CFOWBUY5.js → render-batch-ATLJKRLE.js} +5 -5
- package/dist/{resolver-LDVP5D6K.js → resolver-KU4XYZBR.js} +4 -4
- package/dist/{sherpa-H5O3F34T.js → sherpa-VI2AAWOK.js} +9 -9
- package/dist/{skills-AYEV2VE7.js → skills-F5GLTKRO.js} +5 -5
- package/dist/{skillsUpdateCheck-D2XPEL53.js → skillsUpdateCheck-4US4SMPP.js} +3 -3
- package/dist/{snapshot-2WPWIQUR.js → snapshot-47DSSS6S.js} +31 -31
- package/dist/{src-RUPVRPA4.js → src-BADMTJQD.js} +7 -31
- package/dist/{src-OVSDMJIE.js → src-TTXATWIY.js} +4 -4
- package/dist/{staticProjectServer-ORTFINAA.js → staticProjectServer-N2VV2CPE.js} +16 -16
- package/dist/studio/assets/{hyperframes-player-ClW2l0Vl.js → hyperframes-player-D2rjxvnX.js} +1 -1
- package/dist/studio/assets/{index-CGfRmZQd.js → index-CgtbZxHa.js} +1 -1
- package/dist/studio/assets/{index-DxWNzvQJ.js → index-Dh1BiGcb.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-5Y64B63T.js → studio-api-4VZRUVAJ.js} +8 -8
- package/dist/{studioServer-Q3UD2OHJ.js → studioServer-J55HVAF6.js} +45 -45
- package/dist/{sync-D7XYRPRR.js → sync-52R4DHUE.js} +10 -10
- package/dist/{telemetry-QNKF3ZBX.js → telemetry-ELNF3NFD.js} +3 -3
- package/dist/{timeline-OE7TWARK.js → timeline-MWMMKAPM.js} +16 -16
- package/dist/{tokens-6RJ6TA2Z.js → tokens-NQB2AF4K.js} +2 -2
- package/dist/{transcribe-3JPGPPNO.js → transcribe-YHKJ4WYP.js} +8 -8
- package/dist/{transcribe-NG2BOBRI.js → transcribe-ZUF2OFS4.js} +16 -16
- package/dist/{updateCheck-DYQLNMRN.js → updateCheck-JDBFGDEG.js} +2 -2
- package/dist/{upgrade-46NWTMFF.js → upgrade-REBAN2Q2.js} +2 -2
- package/dist/{urlDownloader-44CP5OVX.js → urlDownloader-2HGS4OFI.js} +4 -4
- package/dist/{validate-I4TSPUVR.js → validate-HADI32OP.js} +21 -21
- package/dist/{video-BMFZG25Y.js → video-3GOOXUVC.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-4PNFWK4W.js +0 -5030
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var ze=Object.defineProperty;var di=Object.getOwnPropertyDescriptor;var ci=Object.getOwnPropertyNames;var mi=Object.prototype.hasOwnProperty;var pi=(t,e)=>{for(var n in e)ze(t,n,{get:e[n],enumerable:!0})},fi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ci(e))!mi.call(t,r)&&r!==n&&ze(t,r,{get:()=>e[r],enumerable:!(i=di(e,r))||i.enumerable});return t};var hi=t=>fi(ze({},"__esModule",{value:!0}),t);var mo={};pi(mo,{HyperframesPlayer:()=>Ge,SPEED_PRESETS:()=>ct,formatSpeed:()=>W,formatTime:()=>De});var Nt=t=>t!==null&&Number.isFinite(t)&&t>0;function je(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Nt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Nt);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 bi="http://www.w3.org/1999/xhtml";function Ot(t){return t!=null&&t.nodeType===1}function qe(t){return Ot(t)&&t.namespaceURI===bi}function Ye(t,e){return qe(t)&&t.localName===e}function gi(t){return Ye(t,"video")}function _i(t){return Ye(t,"audio")}function P(t){return gi(t)||_i(t)}function Ft(t){return Ye(t,"img")}function Ae(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return qe(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"}),_o=Object.freeze([G.start,G.duration,G.trackIndex]),yo=Object.freeze([G.derivedEnd]),vo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Xe(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Ut=t=>{let e=Xe(t);return e!==null&&e>=0?e:null};function Ee(t){return Ut(t("data-playback-start"))??Ut(t("data-media-start"))??0}var te=.1,ne=10;function Ke(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Ht(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ke(Number.isFinite(n)&&n>0?n:e)}function Ze(t){let e=Xe(t("data-duration"));return e!==null&&e>0?e:null}function Vt(t,e){let n=Ze(t);if(n!==null)return n;let i=Xe(t("data-end"));return i!==null?i-e:null}var yi=3;function Je(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ke(n):null}function Qe(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:yi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Je(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var vi="data-fx-chain",Ao=vi.slice(5);var ie=(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}),et=(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}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Wt={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."},Bt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-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:[ie("frequency","Frequency",1e3),Te(-40,40,0),et(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-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:[ie("frequency","Cutoff",300,20,2e4),et(.707),Wt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),et(.707),Wt],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"}],Eo=new Map(Bt.map(t=>[t.id,t]));var To=Bt.map(t=>t.id);function Si(t){return 10**(t/20)}var $t=Si(12);var Gt="data-automation",No=Gt.slice(5),tt=1,Ai=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function zt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===Ei){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 Ei="preset";var Ti={min:0,max:$t,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Ri={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(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 xi(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function jt(t,e){let n=re(t),i=re(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 wi(t){let e=xi(t?.curve),n=jt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function ki(t,e){let n=re(t?.t),i=re(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,...wi(t)}}function Mi(t,e){let n=t.map(r=>ki(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,Ai)}function Ci(t){let e=[];for(let n of t.lanes){if(!zt(n.target))continue;let i=n.target===Re?Ti:n.target===xe?Ri:null,r=Mi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:tt,lanes:e}}function qt(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!==tt)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"||!zt(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 Ci({version:tt,lanes:i})}function Ii(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Di(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 Pi(t,e,n){let{cx:i,cy:r,w:o}=Di(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Li(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 Li(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 Ni(t,e){let n=jt(e.viaX,e.viaY);return n?Pi(Math.min(1,Math.max(0,t)),n.x,n.y):Ii(t,e.curve)}function Oi(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 we(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:Oi(l.v,u.v,Ni((e-l.t)/c,l),n)}var ke=new Map,Fi=64;function Yt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=qt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Fi&&ke.clear(),ke.set(n,r),r}var Xt=48,Kt=new WeakMap;function Ui(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=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(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<=Xt;f+=1)a(Math.max(u,0)+(c-u)*f/Xt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Hi(t){let e=Kt.get(t);return e||(e=Ui(t),Kt.set(t,e)),e}function Vi(t){return typeof t!="number"&&t.points.length>0}function Wi(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 Zt(t,e){if(typeof t=="number")return e/t;if(!Vi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Hi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Wi(i,n,e)}function Bi(t){return t?Yt(t,xe):null}function Jt(t,e){return Bi(t)??e}var Bo=[{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"}),Go=Object.freeze([y.start,y.duration,y.trackIndex]),zo=Object.freeze([y.derivedEnd]),jo=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 tn=/^[A-Za-z0-9_.:-]+$/;function nn(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Qt(t,e){let n=e;for(;n>=0&&nn(t,n);)n--;return n}function $i(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Gi(t){let e=t.length-1;if(!nn(t,e))return null;let n=Qt(t,e);return t[n]==="."&&(n=Qt(t,n-1)),n+1}function zi(t){let e=Gi(t);if(e==null)return null;let n=$i(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!tn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(tn.test(e))return{kind:"reference",refId:e,offset:0};let i=zi(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 ji(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 qi=1e-9;function Yi(t,e){return Math.abs(t-e)<=qi}function Xi(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}Yi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Ki(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 Zi(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 Ji(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"}:Zi(r,e,n);let o=Ki(i,e,n);return r!=null&&Xi(r,o.end,n),o}function en(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 Qi(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),en(i,y.legacyTrack,"legacy-layer",e);let r=en(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 nt(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=ji(r,i,e,n),a=Ji(t,o,n),s=Qi(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function it(t){return Ht(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function er(t){return Jt(t.getAttribute("data-automation"),it(t))}function rt(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return tr(e,rt(t),er(t))}function ot(t){let e=Qe({tag:"video",authoredDurationSeconds:Ze(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:rt(t),playbackRate:it(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ft(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Qe({tag:"img",authoredDurationSeconds:Vt(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function tr(t,e,n){return typeof n=="number"?Je(t,e,n):Number.isFinite(t)?Zt(n,Math.max(0,t-e)):null}function rn(){return globalThis}function at(t,e){if(typeof window>"u")return;let n=rn(),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 nr=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(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(nr));return Number.isFinite(i)?i:null}catch(e){return at("runtime.timelineDuration",e),null}}var on="data-hf-authored-duration",an="data-hf-authored-end";function le(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 Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(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=le(t.end),s=le(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"}),sa=Object.freeze([z.start,z.duration,z.trackIndex]),la=Object.freeze([z.derivedEnd]),ua=Object.freeze([z.derivedEnd,z.legacyTrack]);function ir(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var sn=t=>{let e=ir(t);return e!==null&&e>=0?e:null};function rr(t){return sn(t("data-playback-start"))??sn(t("data-media-start"))??0}var ln="data-hf-media-start-basis";function un(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function or(t){return un(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function dn(t){return mn(t)?or({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function cn(t){return mn(t)&&un(t.basis)==="global"}function mn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function st(t){return rr(e=>t.getAttribute(e))}function pn(t,e){return t-st(e)}function ue(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=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({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(se(e[h])):null},b=d=>{let h=o.get(d);if(h!==void 0)return h;let g=c(d)??f(P(d)?ae(d,d.duration):null)??f(Me(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")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${S}`)??null,C=(d,h)=>pn(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=oe(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),ve=b(R)??0,Se=Math.min(0,M(d,0));return Math.max(Se,k+ve+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(ln)}};return{resolveStartForElement:(d,h=0)=>T(d,Math.max(0,h)),resolveDurationForElement:d=>b(d),resolveMediaStartForElement:d=>{let h=U(d);return dn({...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)||st(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)&&cn(U(d))}}function fn(){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 hn=7200,lt=1/60,de=t=>t!==null&&t>lt?t:null;function ar(t){return{width:Ae(t.getAttribute("data-width")),height:Ae(t.getAttribute("data-height"))}}function sr(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<=lt)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function lr(t,e){return sr(t,e)?.seconds??null}function ur(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 de(je({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var dr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function cr(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)||dr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=je({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function mr(t){return pr(t).seconds}function pr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(f=>f??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>lt?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=hn&&de(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(de(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 bn(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=mr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[lr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:ot}),ur(e,n)],fallback:0,derived:()=>cr(e,n,{unregisteredLottie:!1}).seconds??0});return{...ar(e),fps:fn().canonicalFps,durationSeconds:i}}var gn="hyperframes-studio-preview";var _n="__hfPreviewErrors";function yn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function vn(t){return j(t)&&typeof t.getDuration=="function"}function Sn(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.231/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function fr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function hr(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ie=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=hr(Reflect.get(n,_n));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(yn({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?bn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:fr(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 Sn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(vn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var An=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var ze=Object.defineProperty;var di=Object.getOwnPropertyDescriptor;var ci=Object.getOwnPropertyNames;var mi=Object.prototype.hasOwnProperty;var pi=(t,e)=>{for(var n in e)ze(t,n,{get:e[n],enumerable:!0})},fi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ci(e))!mi.call(t,r)&&r!==n&&ze(t,r,{get:()=>e[r],enumerable:!(i=di(e,r))||i.enumerable});return t};var hi=t=>fi(ze({},"__esModule",{value:!0}),t);var mo={};pi(mo,{HyperframesPlayer:()=>Ge,SPEED_PRESETS:()=>ct,formatSpeed:()=>W,formatTime:()=>De});var Nt=t=>t!==null&&Number.isFinite(t)&&t>0;function je(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Nt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Nt);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 bi="http://www.w3.org/1999/xhtml";function Ot(t){return t!=null&&t.nodeType===1}function qe(t){return Ot(t)&&t.namespaceURI===bi}function Ye(t,e){return qe(t)&&t.localName===e}function gi(t){return Ye(t,"video")}function _i(t){return Ye(t,"audio")}function P(t){return gi(t)||_i(t)}function Ft(t){return Ye(t,"img")}function Ae(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return qe(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"}),_o=Object.freeze([G.start,G.duration,G.trackIndex]),yo=Object.freeze([G.derivedEnd]),vo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Xe(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Ut=t=>{let e=Xe(t);return e!==null&&e>=0?e:null};function Ee(t){return Ut(t("data-playback-start"))??Ut(t("data-media-start"))??0}var te=.1,ne=10;function Ke(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Ht(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ke(Number.isFinite(n)&&n>0?n:e)}function Ze(t){let e=Xe(t("data-duration"));return e!==null&&e>0?e:null}function Vt(t,e){let n=Ze(t);if(n!==null)return n;let i=Xe(t("data-end"));return i!==null?i-e:null}var yi=3;function Je(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ke(n):null}function Qe(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:yi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Je(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var vi="data-fx-chain",Ao=vi.slice(5);var ie=(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}),et=(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}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Wt={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."},Bt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-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:[ie("frequency","Frequency",1e3),Te(-40,40,0),et(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-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:[ie("frequency","Cutoff",300,20,2e4),et(.707),Wt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),et(.707),Wt],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"}],Eo=new Map(Bt.map(t=>[t.id,t]));var To=Bt.map(t=>t.id);function Si(t){return 10**(t/20)}var $t=Si(12);var Gt="data-automation",No=Gt.slice(5),tt=1,Ai=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function zt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===Ei){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 Ei="preset";var Ti={min:0,max:$t,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Ri={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(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 xi(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function jt(t,e){let n=re(t),i=re(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 wi(t){let e=xi(t?.curve),n=jt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function ki(t,e){let n=re(t?.t),i=re(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,...wi(t)}}function Mi(t,e){let n=t.map(r=>ki(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,Ai)}function Ci(t){let e=[];for(let n of t.lanes){if(!zt(n.target))continue;let i=n.target===Re?Ti:n.target===xe?Ri:null,r=Mi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:tt,lanes:e}}function qt(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!==tt)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"||!zt(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 Ci({version:tt,lanes:i})}function Ii(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Di(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 Pi(t,e,n){let{cx:i,cy:r,w:o}=Di(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Li(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 Li(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 Ni(t,e){let n=jt(e.viaX,e.viaY);return n?Pi(Math.min(1,Math.max(0,t)),n.x,n.y):Ii(t,e.curve)}function Oi(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 we(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:Oi(l.v,u.v,Ni((e-l.t)/c,l),n)}var ke=new Map,Fi=64;function Yt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=qt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Fi&&ke.clear(),ke.set(n,r),r}var Xt=48,Kt=new WeakMap;function Ui(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=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(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<=Xt;f+=1)a(Math.max(u,0)+(c-u)*f/Xt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Hi(t){let e=Kt.get(t);return e||(e=Ui(t),Kt.set(t,e)),e}function Vi(t){return typeof t!="number"&&t.points.length>0}function Wi(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 Zt(t,e){if(typeof t=="number")return e/t;if(!Vi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Hi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Wi(i,n,e)}function Bi(t){return t?Yt(t,xe):null}function Jt(t,e){return Bi(t)??e}var Bo=[{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"}),Go=Object.freeze([y.start,y.duration,y.trackIndex]),zo=Object.freeze([y.derivedEnd]),jo=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 tn=/^[A-Za-z0-9_.:-]+$/;function nn(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Qt(t,e){let n=e;for(;n>=0&&nn(t,n);)n--;return n}function $i(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Gi(t){let e=t.length-1;if(!nn(t,e))return null;let n=Qt(t,e);return t[n]==="."&&(n=Qt(t,n-1)),n+1}function zi(t){let e=Gi(t);if(e==null)return null;let n=$i(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!tn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(tn.test(e))return{kind:"reference",refId:e,offset:0};let i=zi(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 ji(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 qi=1e-9;function Yi(t,e){return Math.abs(t-e)<=qi}function Xi(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}Yi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Ki(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 Zi(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 Ji(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"}:Zi(r,e,n);let o=Ki(i,e,n);return r!=null&&Xi(r,o.end,n),o}function en(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 Qi(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),en(i,y.legacyTrack,"legacy-layer",e);let r=en(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 nt(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=ji(r,i,e,n),a=Ji(t,o,n),s=Qi(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function it(t){return Ht(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function er(t){return Jt(t.getAttribute("data-automation"),it(t))}function rt(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return tr(e,rt(t),er(t))}function ot(t){let e=Qe({tag:"video",authoredDurationSeconds:Ze(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:rt(t),playbackRate:it(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ft(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Qe({tag:"img",authoredDurationSeconds:Vt(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function tr(t,e,n){return typeof n=="number"?Je(t,e,n):Number.isFinite(t)?Zt(n,Math.max(0,t-e)):null}function rn(){return globalThis}function at(t,e){if(typeof window>"u")return;let n=rn(),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 nr=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(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(nr));return Number.isFinite(i)?i:null}catch(e){return at("runtime.timelineDuration",e),null}}var on="data-hf-authored-duration",an="data-hf-authored-end";function le(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 Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(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=le(t.end),s=le(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"}),sa=Object.freeze([z.start,z.duration,z.trackIndex]),la=Object.freeze([z.derivedEnd]),ua=Object.freeze([z.derivedEnd,z.legacyTrack]);function ir(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var sn=t=>{let e=ir(t);return e!==null&&e>=0?e:null};function rr(t){return sn(t("data-playback-start"))??sn(t("data-media-start"))??0}var ln="data-hf-media-start-basis";function un(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function or(t){return un(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function dn(t){return mn(t)?or({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function cn(t){return mn(t)&&un(t.basis)==="global"}function mn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function st(t){return rr(e=>t.getAttribute(e))}function pn(t,e){return t-st(e)}function ue(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=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({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(se(e[h])):null},b=d=>{let h=o.get(d);if(h!==void 0)return h;let g=c(d)??f(P(d)?ae(d,d.duration):null)??f(Me(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")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${S}`)??null,C=(d,h)=>pn(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=oe(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),ve=b(R)??0,Se=Math.min(0,M(d,0));return Math.max(Se,k+ve+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(ln)}};return{resolveStartForElement:(d,h=0)=>T(d,Math.max(0,h)),resolveDurationForElement:d=>b(d),resolveMediaStartForElement:d=>{let h=U(d);return dn({...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)||st(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)&&cn(U(d))}}function fn(){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 hn=7200,lt=1/60,de=t=>t!==null&&t>lt?t:null;function ar(t){return{width:Ae(t.getAttribute("data-width")),height:Ae(t.getAttribute("data-height"))}}function sr(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<=lt)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function lr(t,e){return sr(t,e)?.seconds??null}function ur(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 de(je({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var dr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function cr(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)||dr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=je({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function mr(t){return pr(t).seconds}function pr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(f=>f??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>lt?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=hn&&de(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(de(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 bn(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=mr({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[lr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:ot}),ur(e,n)],fallback:0,derived:()=>cr(e,n,{unregisteredLottie:!1}).seconds??0});return{...ar(e),fps:fn().canonicalFps,durationSeconds:i}}var gn="hyperframes-studio-preview";var _n="__hfPreviewErrors";function yn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function vn(t){return j(t)&&typeof t.getDuration=="function"}function Sn(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.9.1/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function fr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function hr(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ie=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=hr(Reflect.get(n,_n));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(yn({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?bn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:fr(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 Sn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(vn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var An=`
|
|
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-HV23H4FI.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-MKSOLUHC.js";
|
|
18
|
+
import "./chunk-LFZ3QUCU.js";
|
|
19
19
|
import "./chunk-PXVQOMKL.js";
|
|
20
20
|
import "./chunk-MCDNAIFF.js";
|
|
21
21
|
import "./chunk-6NJVSTSY.js";
|
|
@@ -27,11 +27,11 @@ import "./chunk-54HJ63Q2.js";
|
|
|
27
27
|
import {
|
|
28
28
|
c
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VV3F4QJP.js";
|
|
31
31
|
import "./chunk-MEJH7VEA.js";
|
|
32
32
|
import {
|
|
33
33
|
isHtmlElement
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HIULMAN3.js";
|
|
35
35
|
import "./chunk-VC76R6W2.js";
|
|
36
36
|
import "./chunk-OFQWTKPW.js";
|
|
37
37
|
import "./chunk-RQVDTPGD.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-VV5NU3XP.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-P3TR5I66.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-3TTZHRQV.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-FWOYWSRK.js";
|
|
27
27
|
import "./chunk-SWC3QIEH.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-DT4WPURD.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MODEL,
|
|
31
31
|
hasFFmpeg
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3BRY4FWJ.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-TQ7IBVEN.js";
|
|
40
40
|
import "./chunk-UOFAE5RF.js";
|
|
41
41
|
import {
|
|
42
42
|
TRANSCRIPT_FILE
|
|
@@ -50,20 +50,20 @@ import {
|
|
|
50
50
|
listRegistryItems,
|
|
51
51
|
loadAllItems,
|
|
52
52
|
resolveItemWithDependencies
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MU2KWMSZ.js";
|
|
54
54
|
import "./chunk-JHOCK3DG.js";
|
|
55
55
|
import {
|
|
56
56
|
installItem
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-RA6V3CEH.js";
|
|
58
|
+
import "./chunk-CXDZE5PF.js";
|
|
59
59
|
import "./chunk-AWDFDFI3.js";
|
|
60
60
|
import "./chunk-P6LJ4Y32.js";
|
|
61
61
|
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-MKSOLUHC.js";
|
|
66
|
+
import "./chunk-LFZ3QUCU.js";
|
|
67
67
|
import "./chunk-PXVQOMKL.js";
|
|
68
68
|
import "./chunk-MCDNAIFF.js";
|
|
69
69
|
import "./chunk-6NJVSTSY.js";
|
|
@@ -79,17 +79,17 @@ import {
|
|
|
79
79
|
c,
|
|
80
80
|
isColorSupported
|
|
81
81
|
} from "./chunk-2GICKZ3I.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-OYJPQJLV.js";
|
|
83
83
|
import "./chunk-Z5J67X44.js";
|
|
84
84
|
import "./chunk-5S7W3TUO.js";
|
|
85
85
|
import {
|
|
86
86
|
decodableAudioStream
|
|
87
87
|
} from "./chunk-D3MUHMFG.js";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-ZM5PG3S5.js";
|
|
89
89
|
import "./chunk-YWRUQ7XZ.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-VV3F4QJP.js";
|
|
91
91
|
import "./chunk-MEJH7VEA.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-HIULMAN3.js";
|
|
93
93
|
import "./chunk-VC76R6W2.js";
|
|
94
94
|
import "./chunk-OFQWTKPW.js";
|
|
95
95
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
import "./chunk-QBXDU24O.js";
|
|
138
138
|
import {
|
|
139
139
|
VERSION
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-P3TR5I66.js";
|
|
141
141
|
import "./chunk-E63BDV4Z.js";
|
|
142
142
|
import "./chunk-G7VEYUZ2.js";
|
|
143
143
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -721,7 +721,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
721
721
|
"utf-8"
|
|
722
722
|
);
|
|
723
723
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
724
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
724
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-KQAF253E.js");
|
|
725
725
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
726
726
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
727
727
|
createProjectConfig(
|
|
@@ -742,7 +742,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
async function keepSkillsCurrent(destDir) {
|
|
745
|
-
const { updateSkills } = await import("./skills-
|
|
745
|
+
const { updateSkills } = await import("./skills-F5GLTKRO.js");
|
|
746
746
|
console.log();
|
|
747
747
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
748
748
|
try {
|
|
@@ -938,17 +938,17 @@ var init_default = defineCommand({
|
|
|
938
938
|
if (audioPath) {
|
|
939
939
|
sourceFilePath2 = audioPath;
|
|
940
940
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
941
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
941
|
+
const { getMediaDurationSeconds } = await import("./transcribe-YHKJ4WYP.js");
|
|
942
942
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
943
943
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
944
944
|
}
|
|
945
945
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
946
946
|
try {
|
|
947
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
947
|
+
const { ensureWhisper, ensureModel } = await import("./manager-QUXH76BC.js");
|
|
948
948
|
await ensureWhisper();
|
|
949
949
|
await ensureModel(initialTranscriptionModel);
|
|
950
950
|
console.log("Transcribing...");
|
|
951
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
951
|
+
const { transcribe: runTranscribe } = await import("./transcribe-YHKJ4WYP.js");
|
|
952
952
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
953
953
|
model: modelFlag,
|
|
954
954
|
language: languageFlag
|
|
@@ -1094,7 +1094,7 @@ var init_default = defineCommand({
|
|
|
1094
1094
|
mkdirSync(destDir, { recursive: true });
|
|
1095
1095
|
sourceFilePath = audioPath;
|
|
1096
1096
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1097
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1097
|
+
const { getMediaDurationSeconds } = await import("./transcribe-YHKJ4WYP.js");
|
|
1098
1098
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1099
1099
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1100
1100
|
}
|
|
@@ -1104,7 +1104,7 @@ var init_default = defineCommand({
|
|
|
1104
1104
|
initialValue: true
|
|
1105
1105
|
});
|
|
1106
1106
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1107
|
-
const { findWhisper } = await import("./manager-
|
|
1107
|
+
const { findWhisper } = await import("./manager-QUXH76BC.js");
|
|
1108
1108
|
const needsInstall = findWhisper() === void 0;
|
|
1109
1109
|
if (needsInstall) {
|
|
1110
1110
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1114,7 +1114,7 @@ var init_default = defineCommand({
|
|
|
1114
1114
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1115
1115
|
);
|
|
1116
1116
|
try {
|
|
1117
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1117
|
+
const { ensureWhisper, ensureModel } = await import("./manager-QUXH76BC.js");
|
|
1118
1118
|
await ensureWhisper({
|
|
1119
1119
|
onProgress: (msg) => spin2.message(msg)
|
|
1120
1120
|
});
|
|
@@ -1122,7 +1122,7 @@ var init_default = defineCommand({
|
|
|
1122
1122
|
onProgress: (msg) => spin2.message(msg)
|
|
1123
1123
|
});
|
|
1124
1124
|
spin2.message("Transcribing audio...");
|
|
1125
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1125
|
+
const { transcribe: runTranscribe } = await import("./transcribe-YHKJ4WYP.js");
|
|
1126
1126
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1127
1127
|
model: modelFlag,
|
|
1128
1128
|
language: languageFlag,
|
|
@@ -1200,7 +1200,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1200
1200
|
}
|
|
1201
1201
|
R.info("Opening studio preview...");
|
|
1202
1202
|
try {
|
|
1203
|
-
const previewCmd = await import("./preview-
|
|
1203
|
+
const previewCmd = await import("./preview-C22ZXQ7K.js").then((m) => m.default);
|
|
1204
1204
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1205
1205
|
} catch {
|
|
1206
1206
|
}
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
inkOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6TYB2NGI.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
runMeasure,
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZHC2FFUL.js";
|
|
18
18
|
import {
|
|
19
19
|
Fix,
|
|
20
20
|
readFrameAt
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-AEQV7SBT.js";
|
|
22
|
+
import "./chunk-TQ7IBVEN.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-DL4OD7IA.js";
|
|
26
26
|
import "./chunk-S3S4TGEH.js";
|
|
27
27
|
import "./chunk-2GICKZ3I.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-OYJPQJLV.js";
|
|
29
29
|
import "./chunk-Z5J67X44.js";
|
|
30
30
|
import "./chunk-5S7W3TUO.js";
|
|
31
31
|
import "./chunk-D3MUHMFG.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ZM5PG3S5.js";
|
|
33
33
|
import "./chunk-YWRUQ7XZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-VV3F4QJP.js";
|
|
35
35
|
import "./chunk-MEJH7VEA.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-HIULMAN3.js";
|
|
37
37
|
import "./chunk-VC76R6W2.js";
|
|
38
38
|
import "./chunk-OFQWTKPW.js";
|
|
39
39
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -58,7 +58,7 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
58
58
|
import "./chunk-WC4MTXGN.js";
|
|
59
59
|
import "./chunk-FBN2M2HK.js";
|
|
60
60
|
import "./chunk-766MOTIZ.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-VV5NU3XP.js";
|
|
62
62
|
import "./chunk-BR2JQQC5.js";
|
|
63
63
|
import "./chunk-BLBMPEBX.js";
|
|
64
64
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
66
66
|
import "./chunk-66W5IWLO.js";
|
|
67
67
|
import "./chunk-J3RXEDR2.js";
|
|
68
68
|
import "./chunk-QBXDU24O.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-P3TR5I66.js";
|
|
70
70
|
import "./chunk-E63BDV4Z.js";
|
|
71
71
|
import "./chunk-G7VEYUZ2.js";
|
|
72
72
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,47 +6,47 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createInspectCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4EBPYENN.js";
|
|
10
10
|
import "./chunk-TQBQYO4L.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HV23H4FI.js";
|
|
12
|
+
import "./chunk-KUU6CLU7.js";
|
|
13
13
|
import "./chunk-X7MTZ4T2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-X67ACTZ7.js";
|
|
15
15
|
import "./chunk-XUHOIDKG.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-RL5WHPX3.js";
|
|
17
|
+
import "./chunk-TCC5GD2O.js";
|
|
18
|
+
import "./chunk-Z4QZCJPX.js";
|
|
19
19
|
import "./chunk-AW3XJY4S.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-QVIWKU4E.js";
|
|
21
|
+
import "./chunk-F53TMQSD.js";
|
|
22
22
|
import "./chunk-UGUYWTWD.js";
|
|
23
23
|
import "./chunk-ALVXFXUG.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7Y7IIMYF.js";
|
|
25
25
|
import "./chunk-RXFKSZN2.js";
|
|
26
26
|
import "./chunk-262C25DQ.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-AGYOQ6FS.js";
|
|
28
|
+
import "./chunk-IVNAVSZU.js";
|
|
29
29
|
import "./chunk-YGGZ23BB.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-6P3WIVAB.js";
|
|
31
|
+
import "./chunk-TFB3I26A.js";
|
|
32
32
|
import "./chunk-XT7X6QCP.js";
|
|
33
33
|
import "./chunk-5YPMCCCA.js";
|
|
34
34
|
import "./chunk-HVW7ABXD.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-MU2KWMSZ.js";
|
|
36
36
|
import "./chunk-JHOCK3DG.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-RA6V3CEH.js";
|
|
38
|
+
import "./chunk-CXDZE5PF.js";
|
|
39
39
|
import "./chunk-AWDFDFI3.js";
|
|
40
40
|
import "./chunk-P6LJ4Y32.js";
|
|
41
41
|
import "./chunk-T2WJO4XM.js";
|
|
42
42
|
import "./chunk-W4DMQZL5.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-MGWULMAO.js";
|
|
44
44
|
import "./chunk-5LOZWO2M.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-IOEZGUKO.js";
|
|
46
46
|
import "./chunk-EHZESMRB.js";
|
|
47
47
|
import "./chunk-A4ZTSQLW.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-MKSOLUHC.js";
|
|
49
|
+
import "./chunk-LFZ3QUCU.js";
|
|
50
50
|
import "./chunk-PXVQOMKL.js";
|
|
51
51
|
import "./chunk-MCDNAIFF.js";
|
|
52
52
|
import "./chunk-6NJVSTSY.js";
|
|
@@ -58,15 +58,15 @@ import "./chunk-2GICKZ3I.js";
|
|
|
58
58
|
import "./chunk-G6OKQMJI.js";
|
|
59
59
|
import "./chunk-EVMY7IPL.js";
|
|
60
60
|
import "./chunk-7FMUTGOH.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-OYJPQJLV.js";
|
|
62
62
|
import "./chunk-Z5J67X44.js";
|
|
63
63
|
import "./chunk-5S7W3TUO.js";
|
|
64
64
|
import "./chunk-D3MUHMFG.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-ZM5PG3S5.js";
|
|
66
66
|
import "./chunk-YWRUQ7XZ.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-VV3F4QJP.js";
|
|
68
68
|
import "./chunk-MEJH7VEA.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-HIULMAN3.js";
|
|
70
70
|
import "./chunk-VC76R6W2.js";
|
|
71
71
|
import "./chunk-OFQWTKPW.js";
|
|
72
72
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -91,7 +91,7 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
91
91
|
import "./chunk-WC4MTXGN.js";
|
|
92
92
|
import "./chunk-FBN2M2HK.js";
|
|
93
93
|
import "./chunk-766MOTIZ.js";
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-VV5NU3XP.js";
|
|
95
95
|
import "./chunk-BR2JQQC5.js";
|
|
96
96
|
import "./chunk-BLBMPEBX.js";
|
|
97
97
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -99,7 +99,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
99
99
|
import "./chunk-66W5IWLO.js";
|
|
100
100
|
import "./chunk-J3RXEDR2.js";
|
|
101
101
|
import "./chunk-QBXDU24O.js";
|
|
102
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-P3TR5I66.js";
|
|
103
103
|
import "./chunk-E63BDV4Z.js";
|
|
104
104
|
import "./chunk-G7VEYUZ2.js";
|
|
105
105
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
prepareItem,
|
|
11
11
|
publishItem,
|
|
12
12
|
recordRewrittenInstall
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-RA6V3CEH.js";
|
|
14
|
+
import "./chunk-CXDZE5PF.js";
|
|
15
15
|
import "./chunk-AWDFDFI3.js";
|
|
16
16
|
import "./chunk-P6LJ4Y32.js";
|
|
17
17
|
import "./chunk-T2WJO4XM.js";
|
|
18
18
|
import "./chunk-YWRUQ7XZ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-VV3F4QJP.js";
|
|
20
20
|
import "./chunk-MEJH7VEA.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HIULMAN3.js";
|
|
22
22
|
import "./chunk-VC76R6W2.js";
|
|
23
23
|
import "./chunk-OFQWTKPW.js";
|
|
24
24
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HV23H4FI.js";
|
|
13
13
|
import "./chunk-5LOZWO2M.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MKSOLUHC.js";
|
|
15
|
+
import "./chunk-LFZ3QUCU.js";
|
|
16
16
|
import "./chunk-PXVQOMKL.js";
|
|
17
17
|
import "./chunk-MCDNAIFF.js";
|
|
18
18
|
import "./chunk-6NJVSTSY.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import "./chunk-FBN2M2HK.js";
|
|
44
44
|
import {
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VV5NU3XP.js";
|
|
47
47
|
import "./chunk-BR2JQQC5.js";
|
|
48
48
|
import "./chunk-BLBMPEBX.js";
|
|
49
49
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -51,7 +51,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
51
51
|
import "./chunk-66W5IWLO.js";
|
|
52
52
|
import "./chunk-J3RXEDR2.js";
|
|
53
53
|
import "./chunk-QBXDU24O.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-P3TR5I66.js";
|
|
55
55
|
import "./chunk-E63BDV4Z.js";
|
|
56
56
|
import "./chunk-G7VEYUZ2.js";
|
|
57
57
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -2547,7 +2547,7 @@ function printOnionShotSaved(saved, elementCount) {
|
|
|
2547
2547
|
console.log();
|
|
2548
2548
|
}
|
|
2549
2549
|
async function runOnionShot(comps, allComps, projectDir, entryFile, args) {
|
|
2550
|
-
const { captureMotionPathShot } = await import("./motionShot-
|
|
2550
|
+
const { captureMotionPathShot } = await import("./motionShot-I4AUSEQN.js");
|
|
2551
2551
|
const requests = collectShotSelectors(args.selector ? allComps : comps);
|
|
2552
2552
|
const guardError = onionShotGuardError(projectDir, requests, args.ghost ?? false);
|
|
2553
2553
|
if (guardError) {
|