hyperframes 0.9.8 → 0.9.10

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.
Files changed (245) hide show
  1. package/dist/{add-KCOZUTMS.js → add-AFD3HNXB.js} +12 -12
  2. package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
  3. package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
  4. package/dist/api.js +29 -29
  5. package/dist/{asset-N3A7GB3E.js → asset-P6SF46UX.js} +2 -2
  6. package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
  7. package/dist/{audio-KCKNENFH.js → audio-DFQXEAEE.js} +26 -26
  8. package/dist/{auth-Y72WHJCW.js → auth-T62ANGDQ.js} +2 -2
  9. package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-3IT56KGL.js} +23 -16
  10. package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-UKBVUYML.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
  13. package/dist/{beats-RIKKG4N7.js → beats-7UFMDXBY.js} +11 -11
  14. package/dist/{benchmark-7TCK3SGH.js → benchmark-LCSHBJJF.js} +9 -9
  15. package/dist/billing-5YSYJJ2V.js +142 -0
  16. package/dist/{browser-4BF7NKPF.js → browser-5DZHA4EW.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-TJL2JWRD.js} +2 -2
  18. package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
  19. package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
  20. package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
  21. package/dist/{catalog-4W5XDIKM.js → catalog-F2XB4VPP.js} +12 -12
  22. package/dist/{catch-up-H2Y2WRIA.js → catch-up-HCBA3MIP.js} +4 -4
  23. package/dist/{check-NG6FULCN.js → check-E2RQCELF.js} +44 -44
  24. package/dist/{checkAudio-HI5ICPRV.js → checkAudio-R4DRK3VG.js} +17 -17
  25. package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-NGY225IO.js} +39 -37
  26. package/dist/{chunk-4WJKSTDS.js → chunk-2CKL2FUJ.js} +3 -3
  27. package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
  28. package/dist/{chunk-RPVL65M7.js → chunk-2WNIF4YT.js} +6 -6
  29. package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
  30. package/dist/{chunk-2MUWGYXQ.js → chunk-3XHWHH5A.js} +60 -44
  31. package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
  32. package/dist/{chunk-5D23BECZ.js → chunk-5CDTGHED.js} +1 -1
  33. package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
  34. package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
  35. package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
  36. package/dist/{chunk-WY4J37EZ.js → chunk-6VKYITOR.js} +30 -8
  37. package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
  38. package/dist/{chunk-YXIXTFRO.js → chunk-7VGM5TLZ.js} +2 -2
  39. package/dist/{chunk-TLBSOI2R.js → chunk-7VOLQUA2.js} +1 -1
  40. package/dist/{chunk-RULCW25D.js → chunk-7VU4RBHC.js} +15 -14
  41. package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
  42. package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
  43. package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
  44. package/dist/chunk-AHLDGEH5.js +158 -0
  45. package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
  46. package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
  47. package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
  48. package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
  49. package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
  50. package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
  51. package/dist/{chunk-6CEQCL6O.js → chunk-CBTBVRXB.js} +3 -3
  52. package/dist/{chunk-ZAOQWCZM.js → chunk-CDSTLOB7.js} +9 -9
  53. package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
  54. package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
  55. package/dist/{chunk-GZZE2OJP.js → chunk-DKROJ3GJ.js} +16 -15
  56. package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
  57. package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
  58. package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
  59. package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
  60. package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
  61. package/dist/{chunk-UUW654GD.js → chunk-GRUI2S2F.js} +2 -2
  62. package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
  63. package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
  64. package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
  65. package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
  66. package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
  67. package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
  68. package/dist/{chunk-HVBQL3PZ.js → chunk-MHZ7NSL5.js} +1 -1
  69. package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
  70. package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
  71. package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
  72. package/dist/{chunk-Y3RERZRQ.js → chunk-NBWYATVA.js} +1 -1
  73. package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
  74. package/dist/{chunk-UQDO2L6F.js → chunk-NVYVI4FR.js} +17 -14
  75. package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
  76. package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
  77. package/dist/{chunk-TODLF56D.js → chunk-P4WYY52Y.js} +1 -1
  78. package/dist/{chunk-3LLFF6EE.js → chunk-PO7LSMN5.js} +1 -1
  79. package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
  80. package/dist/{chunk-L3ZVUQGN.js → chunk-PYUS627M.js} +2 -2
  81. package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
  82. package/dist/{chunk-VKWAW4JW.js → chunk-Q3W7TDQX.js} +236 -193
  83. package/dist/{chunk-UPN4UMT7.js → chunk-QBPZHOEJ.js} +2 -2
  84. package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
  85. package/dist/{chunk-VLHCR3G2.js → chunk-QPEDM2ZR.js} +2 -2
  86. package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
  87. package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
  88. package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
  89. package/dist/{chunk-ZJ5ZLU2I.js → chunk-RZFW7FBA.js} +2 -2
  90. package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
  91. package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
  92. package/dist/chunk-SRVAYGTN.js +62 -0
  93. package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
  94. package/dist/{chunk-W5VDIXYL.js → chunk-UDBNPVUR.js} +1 -1
  95. package/dist/{chunk-HFNB2CG3.js → chunk-V6HV2IDT.js} +6 -3
  96. package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
  97. package/dist/{chunk-SBA4NG7Q.js → chunk-W4Q6VYPZ.js} +7 -7
  98. package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
  99. package/dist/{chunk-CCFSUSAE.js → chunk-WCETVN3N.js} +65 -14
  100. package/dist/{chunk-QTEU6NL3.js → chunk-WP5QHNXN.js} +5 -5
  101. package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
  102. package/dist/{chunk-X422IJKF.js → chunk-WWPOGMNX.js} +1 -1
  103. package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
  104. package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
  105. package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
  106. package/dist/chunk-Y3ICFPFK.js +5035 -0
  107. package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
  108. package/dist/{chunk-AC3TSGGG.js → chunk-YXSM33UC.js} +35 -30
  109. package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
  110. package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
  111. package/dist/{chunk-ZK3GFNHM.js → chunk-ZMXFRRQR.js} +191 -49
  112. package/dist/{clean-VPOP4TU4.js → clean-BXHJEVVO.js} +23 -23
  113. package/dist/cli.js +61 -60
  114. package/dist/{cloud-Q7ZXCZ6E.js → cloud-ISWLTHGP.js} +4 -4
  115. package/dist/cloud-Z3FNCC4T.js +39 -0
  116. package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
  117. package/dist/{compare-X5SWN5XJ.js → compare-MLZYDSZD.js} +34 -34
  118. package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
  119. package/dist/{component-MJXAMRKF.js → component-MMBTCMY3.js} +3 -3
  120. package/dist/{compositions-F3ZHG5F4.js → compositions-WT2577NJ.js} +15 -15
  121. package/dist/{curve-4TWENQO7.js → curve-HHKVZ6LX.js} +13 -13
  122. package/dist/{cuts-X3LE5A2K.js → cuts-66GBRT5P.js} +14 -14
  123. package/dist/{delete-MYHKF3MS.js → delete-P3WYOC7I.js} +7 -5
  124. package/dist/{deploy-OP2BHWCQ.js → deploy-OJ3M7QJQ.js} +6 -6
  125. package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
  126. package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
  127. package/dist/{diff-7ZNSFBKV.js → diff-R74KQXXN.js} +158 -76
  128. package/dist/dist-CCPYPKOC.js +197 -0
  129. package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
  130. package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
  131. package/dist/{doctor-ABSXYNXY.js → doctor-DT52W4UE.js} +13 -13
  132. package/dist/{energy-X2OAWHME.js → energy-WOMDOOLC.js} +14 -14
  133. package/dist/{events-26SWSHDR.js → events-PCK4AIN5.js} +2 -2
  134. package/dist/{events-JFIZSYMH.js → events-WEVZ2ELP.js} +16 -16
  135. package/dist/{events-4MDK4K7Q.js → events-YVQJLQWG.js} +3 -3
  136. package/dist/{extract-4O3Q3LOD.js → extract-CNXA3DWB.js} +14 -14
  137. package/dist/{face-7J7AQJDY.js → face-2WNBW74C.js} +14 -14
  138. package/dist/{feedback-CVTJDQIX.js → feedback-ADMM2XDS.js} +8 -8
  139. package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
  140. package/dist/{figma-55J7UDDC.js → figma-5MMN5JUU.js} +3 -3
  141. package/dist/fontLocalizeCli.js +15 -15
  142. package/dist/{frames-OZLUDUOS.js → frames-7CQGHRWT.js} +19 -16
  143. package/dist/{generate-CY2TRPRE.js → generate-XOR4UJDW.js} +20 -18
  144. package/dist/{get-HJHSVKGK.js → get-5K6ALHBS.js} +7 -5
  145. package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
  146. package/dist/{grade-compare-JVTYF2T6.js → grade-compare-DK63C776.js} +34 -34
  147. package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
  148. package/dist/{help-6WDI76YU.js → help-AUF2KA6D.js} +2 -1
  149. package/dist/{history-FIP5NGFC.js → history-G3FXVX4A.js} +10 -10
  150. package/dist/hyperframe.manifest.json +1 -1
  151. package/dist/hyperframe.runtime.iife.js +65 -65
  152. package/dist/hyperframes-player.global.js +1 -1
  153. package/dist/{info-WTGJE4QB.js → info-DGU3CIU5.js} +8 -8
  154. package/dist/{init-UYTDM56U.js → init-LYZI2WCS.js} +29 -29
  155. package/dist/{ink-BTLAE3ZR.js → ink-DYZG4BST.js} +14 -14
  156. package/dist/{inspect-KIMJNTS4.js → inspect-BYQSCRKT.js} +34 -34
  157. package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
  158. package/dist/{keyframes-74LK522L.js → keyframes-XX2DIYPI.js} +6 -6
  159. package/dist/{lambda-CJ7P5NLO.js → lambda-RKI7KKWW.js} +15 -15
  160. package/dist/{layout-RLIXTM56.js → layout-RQFOMQRO.js} +34 -34
  161. package/dist/{lint-IOJB746U.js → lint-LFCMCDEG.js} +10 -10
  162. package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
  163. package/dist/{list-V3TMQEQV.js → list-V4TGMQ3Y.js} +7 -5
  164. package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
  165. package/dist/{login-GNVKQO3W.js → login-EXCG7PEH.js} +4 -4
  166. package/dist/{look-3QZIJFNX.js → look-RBHKHGMF.js} +14 -14
  167. package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
  168. package/dist/{measure-7LUYTL2E.js → measure-SAV5K4WT.js} +11 -11
  169. package/dist/{media-treatment-MYDIYP5I.js → media-treatment-2BVHRXJS.js} +15 -15
  170. package/dist/{media-use-UDBHEIYA.js → media-use-YEBYLITF.js} +17 -11
  171. package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
  172. package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
  173. package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-ILLUZPTO.js} +10 -10
  174. package/dist/{open-UEJMPEPN.js → open-GTNLU7UF.js} +12 -12
  175. package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
  176. package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
  177. package/dist/{play-XH2XKNCL.js → play-F2HIXJKH.js} +25 -25
  178. package/dist/{preflight-L5P4QXXH.js → preflight-QMXCKE5P.js} +10 -10
  179. package/dist/{present-XXEU7RTN.js → present-GDR6LCKE.js} +20 -20
  180. package/dist/{preview-V6LNVTBH.js → preview-4TV5426Q.js} +23 -23
  181. package/dist/{probe-JL4JSTSP.js → probe-TYM7WKX2.js} +14 -14
  182. package/dist/{producer-RLZ64COI.js → producer-NHQXKH7Y.js} +1 -1
  183. package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
  184. package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
  185. package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
  186. package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
  187. package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
  188. package/dist/{render-WCLJ4GPZ.js → render-GEAO2HAV.js} +39 -37
  189. package/dist/{render-XAE2YCRZ.js → render-YLAS7GVD.js} +46 -46
  190. package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
  191. package/dist/renderSetupWorker.js +4 -4
  192. package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
  193. package/dist/{reverse-JGOZUFKK.js → reverse-3KAZZXB2.js} +1 -1
  194. package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
  195. package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
  196. package/dist/skills/media-use/SKILL.md +2 -2
  197. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
  198. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
  199. package/dist/skills/media-use/references/heygen.md +18 -10
  200. package/dist/skills/media-use/references/operations.md +14 -13
  201. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
  202. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
  203. package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
  204. package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
  205. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  206. package/dist/skills/media-use/scripts/resolve.mjs +3 -1
  207. package/dist/{skills-L4AWBUJJ.js → skills-T5XCP3RC.js} +43 -18
  208. package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-IG7KLWIA.js} +3 -3
  209. package/dist/{snapshot-5FK3HCJ7.js → snapshot-RULSIRM6.js} +49 -46
  210. package/dist/{src-JT324RDD.js → src-DHBRQZFZ.js} +18 -18
  211. package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
  212. package/dist/{start-5O33EGN2.js → start-GF3JCTGF.js} +43 -31
  213. package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
  214. package/dist/{status-MPCREDMQ.js → status-SUK4I7TS.js} +8 -5
  215. package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-BcELSci_.js} +1 -1
  216. package/dist/studio/assets/{index-BT1zmedz.js → index-2SLNyxZG.js} +1 -1
  217. package/dist/studio/assets/{index-CaOrmH_8.js → index-DR2eua-L.js} +126 -126
  218. package/dist/studio/index.html +1 -1
  219. package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
  220. package/dist/{studioServer-KKGBELBR.js → studioServer-DOTRPHS3.js} +61 -61
  221. package/dist/{sync-BT4WDK3B.js → sync-XQPBXGGX.js} +19 -16
  222. package/dist/{telemetry-77PW2F7B.js → telemetry-7TIIOBVB.js} +3 -3
  223. package/dist/templates/_shared/AGENTS.md +1 -0
  224. package/dist/templates/_shared/CLAUDE.md +1 -0
  225. package/dist/templates-7DIQ52Y4.js +202 -0
  226. package/dist/{timeline-RKJ63VIU.js → timeline-4JIUAUIP.js} +24 -24
  227. package/dist/{tokens-JATS65YH.js → tokens-4PQU4LVQ.js} +2 -2
  228. package/dist/{transcribe-FYBJBBP3.js → transcribe-IKUPC2R3.js} +23 -23
  229. package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
  230. package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
  231. package/dist/{updateCheck-NU374MVC.js → updateCheck-LBPTWEZV.js} +2 -2
  232. package/dist/{upgrade-VIWR25J6.js → upgrade-2FS4AMCA.js} +2 -2
  233. package/dist/upload-L5TSWWIU.js +16 -0
  234. package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
  235. package/dist/{validate-3HM2XCH4.js → validate-MLVDUEK7.js} +28 -28
  236. package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
  237. package/dist/warmCheck.js +44 -44
  238. package/package.json +1 -1
  239. package/dist/billing-JBG45ON2.js +0 -96
  240. package/dist/chunk-N3CZ437C.js +0 -5035
  241. package/dist/chunk-QXVW22VM.js +0 -58
  242. package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
  243. package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
  244. package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
  245. package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
@@ -12,7 +12,7 @@ import {
12
12
  rewriteHtmlAttributes,
13
13
  rewriteStyleBlocks,
14
14
  stagedSize
15
- } from "./chunk-74VSOKKS.js";
15
+ } from "./chunk-ABI256T5.js";
16
16
  import {
17
17
  probeAudio
18
18
  } from "./chunk-SWC3QIEH.js";
@@ -20,13 +20,13 @@ import {
20
20
  findFFmpeg,
21
21
  findFFprobe,
22
22
  getFFmpegInstallHint
23
- } from "./chunk-FNNNGI42.js";
23
+ } from "./chunk-AVNF52HR.js";
24
24
  import {
25
25
  formatBytes
26
26
  } from "./chunk-5LOZWO2M.js";
27
27
  import {
28
28
  parseAnimatedGifMetadata
29
- } from "./chunk-6ZICZOMN.js";
29
+ } from "./chunk-W5AUD5OL.js";
30
30
  import {
31
31
  cleanAssetUrl,
32
32
  isRemoteOrInlineUrl,
@@ -506,7 +506,9 @@ function scriptCode(fileMap) {
506
506
  const text = textOf(path, content);
507
507
  if (text === void 0) continue;
508
508
  if (/\.html?$/i.test(path)) {
509
- for (const script of parseHTML(text).document.querySelectorAll("script:not([src])")) {
509
+ const { document } = parseHTML(text);
510
+ const pages = [document, ...[...document.querySelectorAll("template")].map((t) => t.content)];
511
+ for (const script of pages.flatMap((p) => [...p.querySelectorAll("script:not([src])")])) {
510
512
  parts.push(script.textContent ?? "");
511
513
  }
512
514
  } else if (/\.(m?js|cjs|json)$/i.test(path)) parts.push(text);
@@ -619,7 +621,7 @@ async function prepareEntryGifs(ctx, fileMap) {
619
621
  if (!html || !/\.gif\b/i.test(html)) return;
620
622
  const sourceAssets = entryGifSources(ctx, entryPath, html);
621
623
  if (!sourceAssets) return;
622
- const prep = ctx.opts.gifPrep ?? (await import("./src-JT324RDD.js")).prepareAnimatedGifInputs;
624
+ const prep = ctx.opts.gifPrep ?? (await import("./src-DHBRQZFZ.js")).prepareAnimatedGifInputs;
623
625
  const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
624
626
  ctx.tempFiles.push(outputDir);
625
627
  const result = await prep(html, {
@@ -715,14 +717,23 @@ function dropReplacedFiles(fileMap, report, preparedGifSources, assetUrls) {
715
717
  if (!isStillMentioned(fileMap, gif, code, withoutUrls)) fileMap.delete(gif);
716
718
  }
717
719
  }
720
+ var escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
721
+ function namesFile(text, path) {
722
+ const tokens = text.match(new RegExp(`[\\w./-]*${escapeRegExp(basename2(path))}`, "g")) ?? [];
723
+ return tokens.some((token) => {
724
+ const tail = token.replace(/^[./]+/, "");
725
+ return path === tail || path.endsWith(`/${tail}`);
726
+ });
727
+ }
718
728
  function isStillMentioned(fileMap, path, code, withoutUrls) {
719
729
  const ext = extname(path);
720
- if (code.includes(basename2(path, ext)) && code.includes(ext.slice(1))) return true;
730
+ const stem = new RegExp(`["'\`/]${escapeRegExp(basename2(path, ext))}\\.?["'\`$]`);
731
+ if (stem.test(code) && code.includes(ext.slice(1))) return true;
721
732
  const name = basename2(path);
722
733
  for (const [entryPath, content] of fileMap) {
723
734
  const contentText = textOf(entryPath, content);
724
735
  if (entryPath === path || !contentText?.includes(name)) continue;
725
- if (withoutUrls(contentText).includes(name)) return true;
736
+ if (namesFile(withoutUrls(contentText), path)) return true;
726
737
  }
727
738
  return false;
728
739
  }
@@ -782,7 +793,18 @@ function rewriteCssEntry(absDir, entryPath, css, urlFor) {
782
793
  );
783
794
  return result.modified ? result.css : null;
784
795
  }
785
- function rewriteHtmlEntry(absDir, entryPath, html, urlFor, fileMap) {
796
+ var TEMPLATE_SCENE_RE = /(<template\b[^>]*>)([\s\S]*?)(<\/template>)/gi;
797
+ function rewriteHtmlEntry(absDir, entryPath, source, urlFor, fileMap) {
798
+ const html = source.replace(
799
+ TEMPLATE_SCENE_RE,
800
+ (full, open, inner, close) => {
801
+ const next = rewriteHtmlEntry(absDir, entryPath, inner, urlFor, fileMap);
802
+ return next === null ? full : open + next + close;
803
+ }
804
+ );
805
+ return rewriteHtmlDocument(absDir, entryPath, html, urlFor, fileMap) ?? (html === source ? null : html);
806
+ }
807
+ function rewriteHtmlDocument(absDir, entryPath, html, urlFor, fileMap) {
786
808
  const referrerAbsDir = resolve(absDir, dirname(entryPath));
787
809
  const resolveTarget = (raw) => localTarget(raw, (clean) => rewriteAssetPath(entryPath, clean, (p) => fileMap.has(p)), urlFor);
788
810
  const { document } = parseHTML(html);
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  decode,
9
9
  meanAbsDiff
10
- } from "./chunk-D7THUO4V.js";
10
+ } from "./chunk-A33GFLPY.js";
11
11
 
12
12
  // src/measure/cuts.ts
13
13
  var SIG_W = 64;
@@ -28,6 +28,7 @@ var MAX_CUT_FRAMES = 3;
28
28
  var FLASH_FRAMES = 4;
29
29
  var RETURNED = 0.4;
30
30
  var SAME_TONES = 0.8;
31
+ var IN_MOTION = 0.3;
31
32
  function signatures(input, filters = []) {
32
33
  return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
33
34
  }
@@ -74,6 +75,31 @@ var sharedTones = (a, b) => {
74
75
  const after = tones(b);
75
76
  return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
76
77
  };
78
+ function moved(f, s, dx, dy) {
79
+ const out = new Uint8Array(f.length);
80
+ const cx = (SIG_W - 1) / 2;
81
+ const cy = (SIG_H - 1) / 2;
82
+ for (let y = 0; y < SIG_H; y++) {
83
+ const sy = Math.min(SIG_H - 1, Math.max(0, Math.round((y - cy - dy) / s + cy)));
84
+ for (let x = 0; x < SIG_W; x++) {
85
+ const sx = Math.min(SIG_W - 1, Math.max(0, Math.round((x - cx - dx) / s + cx)));
86
+ out[y * SIG_W + x] = f[sy * SIG_W + sx];
87
+ }
88
+ }
89
+ return out;
90
+ }
91
+ function movedChange(before, after) {
92
+ let least = meanAbsDiff(before, after);
93
+ for (let s = 0.8; s <= 1.25; s += 0.025)
94
+ for (let dx = -6; dx <= 6; dx++)
95
+ for (let dy = -4; dy <= 4; dy++)
96
+ least = Math.min(least, meanAbsDiff(moved(before, s, dx, dy), after));
97
+ return least;
98
+ }
99
+ function isMove(frames, diffs, c, end) {
100
+ const inMotion = Math.min(diffs[c.frame - 1] ?? 0, diffs[end] ?? 0) >= IN_MOTION * c.change;
101
+ return inMotion && movedChange(frames[c.frame - 1], frames[end - 1]) < RETURNED * c.change;
102
+ }
77
103
  function classifiedCuts(frames) {
78
104
  const diffs = frameChanges(frames);
79
105
  return cutsIn(diffs).map((c) => {
@@ -88,7 +114,8 @@ function classifiedCuts(frames) {
88
114
  const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
89
115
  (k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
90
116
  );
91
- return returns ? { ...c, kind: "flash" } : c;
117
+ if (returns) return { ...c, kind: "flash" };
118
+ return isMove(frames, diffs, c, end) ? { ...c, kind: "fast" } : c;
92
119
  });
93
120
  }
94
121
  function findCuts(frames) {
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.9.8" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.8" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.10" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.10" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-5D23BECZ.js";
12
+ } from "./chunk-5CDTGHED.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-TLBSOI2R.js";
9
+ } from "./chunk-7VOLQUA2.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-XPN7SDFQ.js";
15
+ } from "./chunk-6HO6QKYG.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-BCQ42FAS.js";
18
+ } from "./chunk-E2YXF2EP.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-QPTQSM3D.js";
21
+ } from "./chunk-LTBBFLOM.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-JCOECSLT.js";
25
+ } from "./chunk-BHL4KN3H.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-DL4OD7IA.js";
@@ -31,14 +31,14 @@ import {
31
31
  } from "./chunk-2GICKZ3I.js";
32
32
  import {
33
33
  resolveNaturalMediaTimelineDuration
34
- } from "./chunk-N3CZ437C.js";
34
+ } from "./chunk-Y3ICFPFK.js";
35
35
  import {
36
36
  decodeWellFormedEscapes
37
37
  } from "./chunk-C2KEGBR3.js";
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-Y3RERZRQ.js";
41
+ } from "./chunk-NBWYATVA.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -61,7 +61,7 @@ var __dirname = dirname(__filename);
61
61
  var CONTRAST_SAMPLES = 5;
62
62
  var SEEK_SETTLE_MS = 150;
63
63
  var PREFERRED_SEEK_TARGET_WAIT_MS = 500;
64
- var MEDIA_EXTENSIONS = /\.(aac|flac|m4a|mov|mp3|mp4|oga|ogg|wav|webm)$/i;
64
+ var MEDIA_EXTENSIONS = /\.(3gp|aac|aif|aiff|avi|flac|flv|m2ts|m4a|m4v|mkv|mov|mp3|mp4|mpeg|mpg|mts|mxf|oga|ogg|ogv|opus|wav|weba|webm|wma|wmv)$/i;
65
65
  function navigationTimeoutHint(err, navTimeoutMs) {
66
66
  const msg = err instanceof Error ? err.message : String(err);
67
67
  if (!/navigation timeout/i.test(msg)) return null;
@@ -73,6 +73,7 @@ function shouldIgnoreRequestFailure(url, errorText, resourceType) {
73
73
  if (errorText === "net::ERR_ABORTED" && isOptionalCaptionOverridesRequest(url)) return true;
74
74
  if (errorText !== "net::ERR_ABORTED") return false;
75
75
  if (resourceType === "media") return true;
76
+ if (resourceType === "image") return false;
76
77
  try {
77
78
  return MEDIA_EXTENSIONS.test(new URL(url).pathname);
78
79
  } catch {
@@ -252,7 +253,7 @@ function extractCompositionErrorsFromLint(lintResult) {
252
253
  async function localizeRemoteAssets(html) {
253
254
  let dir;
254
255
  try {
255
- const { loadProducer } = await import("./producer-RLZ64COI.js");
256
+ const { loadProducer } = await import("./producer-NHQXKH7Y.js");
256
257
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
257
258
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
258
259
  const assetDir = dir;
@@ -273,10 +274,10 @@ async function localizeRemoteAssets(html) {
273
274
  }
274
275
  async function validateInBrowser(project, opts) {
275
276
  const projectDir = project.dir;
276
- const { bundleToSingleHtml } = await import("./compiler-N4TTEEQC.js");
277
+ const { bundleToSingleHtml } = await import("./compiler-NAIDMQFU.js");
277
278
  const { ensureBrowser } = await import("./manager-SAXHANEY.js");
278
- const { serveStaticProjectHtml } = await import("./staticProjectServer-CWKMUI6O.js");
279
- const { lintProject } = await import("./lintProject-NZADSVSU.js");
279
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-BX4RWEY5.js");
280
+ const { lintProject } = await import("./lintProject-EV3EEBY3.js");
280
281
  const lintResult = await lintProject(projectDir);
281
282
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
282
283
  const html = await bundleToSingleHtml(projectDir);
@@ -297,9 +298,9 @@ async function validateInBrowser(project, opts) {
297
298
  try {
298
299
  const browser = await ensureBrowser();
299
300
  const puppeteer = await import("puppeteer-core");
300
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-HKLKN7AE.js");
301
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-RL6YEPTD.js");
301
302
  const requestedGpuMode = resolveCliChromeGpuMode();
302
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-LZFNAIJB.js");
303
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-DUNSQM6M.js");
303
304
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
304
305
  const requiresWebGpu = compositionRequiresWebGpu(html);
305
306
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-XQ26I3PL.js";
14
14
  import {
15
15
  createProjectConfig
16
- } from "./chunk-RGYPRUQP.js";
16
+ } from "./chunk-S2UKSI3C.js";
17
17
  import {
18
18
  isHyperframesProject
19
- } from "./chunk-6ZICZOMN.js";
19
+ } from "./chunk-W5AUD5OL.js";
20
20
 
21
21
  // src/utils/desktopApp.ts
22
22
  import { spawn, spawnSync } from "child_process";
@@ -8,7 +8,7 @@ import {
8
8
  findFFmpeg,
9
9
  findFFprobe,
10
10
  getFFmpegInstallHint
11
- } from "./chunk-FNNNGI42.js";
11
+ } from "./chunk-AVNF52HR.js";
12
12
 
13
13
  // src/measure/media.ts
14
14
  import { execFileSync } from "child_process";
@@ -34,6 +34,11 @@ function ffprobeBin() {
34
34
  if (!bin) throw new Fix("ffprobe is not installed", getFFmpegInstallHint());
35
35
  return bin;
36
36
  }
37
+ function sumOf(terms) {
38
+ if (terms.length <= 50) return terms.join("+");
39
+ const half = terms.length >> 1;
40
+ return `(${sumOf(terms.slice(0, half))})+(${sumOf(terms.slice(half))})`;
41
+ }
37
42
  function runFfmpeg(args, input, cwd) {
38
43
  return execFileSync(ffmpegBin(), [...FFMPEG_QUIET, ...args], {
39
44
  maxBuffer: MAX_BUFFER,
@@ -46,9 +51,22 @@ var rate = (text) => {
46
51
  const [a, b] = String(text ?? "0/1").split("/").map(Number);
47
52
  return b ? (a ?? 0) / b : a ?? 0;
48
53
  };
54
+ function probeSeconds(path) {
55
+ if (!existsSync(path)) throw new Fix(`no file at ${path}`, "pass a sound from the project");
56
+ const text = execFileSync(
57
+ ffprobeBin(),
58
+ ["-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", "--", path],
59
+ { maxBuffer: MAX_BUFFER, windowsHide: true }
60
+ ).toString();
61
+ return Number(text) || 0;
62
+ }
49
63
  function probeVideo(path) {
50
64
  if (!existsSync(path))
51
- throw new Fix(`no file at ${path}`, "pass the video's path from the project folder");
65
+ throw new Fix(
66
+ `no file at ${path}`,
67
+ // `D:video\clip.mp4` reached us as `D:videoclip.mp4`: an unquoted Windows path in bash.
68
+ /^[A-Za-z]:[^\\/]/.test(path) ? "the shell dropped the backslashes: quote the path or write it with / (D:/video/clip.mp4)" : "pass the video's path from the project folder"
69
+ );
52
70
  let json;
53
71
  try {
54
72
  json = JSON.parse(
@@ -234,7 +252,9 @@ function projectOf(from) {
234
252
  export {
235
253
  Fix,
236
254
  ffmpegBin,
255
+ sumOf,
237
256
  runFfmpeg,
257
+ probeSeconds,
238
258
  probeVideo,
239
259
  videoClip,
240
260
  readClip,
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  decodeUrlPathVariants,
27
27
  encodeUrlPath
28
- } from "./chunk-T5ELONXY.js";
28
+ } from "./chunk-JHILL4BN.js";
29
29
  import {
30
30
  parseHTML
31
31
  } from "./chunk-GWTIFRF5.js";
@@ -0,0 +1,158 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ resolveCloudAuthHeaders,
9
+ resolveCloudBaseUrl
10
+ } from "./chunk-TSQZ3DSC.js";
11
+
12
+ // src/heygen/plan.ts
13
+ import { randomUUID } from "crypto";
14
+ var UNPAID = /* @__PURE__ */ new Set(["incomplete", "incomplete_expired"]);
15
+ var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
16
+ function mockPlan() {
17
+ const raw = process.env["HYPERFRAMES_MOCK_PLAN"]?.trim();
18
+ if (!raw) return null;
19
+ const [plan = "none", credits = "0"] = raw.split(":");
20
+ return { plan, credits: Number(credits) || 0, mock: true };
21
+ }
22
+ var billingBaseUrl = () => resolveCloudBaseUrl().replace("://api.", "://api2.");
23
+ async function readPlan() {
24
+ try {
25
+ const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/subscription`, {
26
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
27
+ signal: AbortSignal.timeout(15e3)
28
+ });
29
+ const body = await res.json().catch(() => null);
30
+ const data = isRecord(body) && isRecord(body.data) ? body.data : body;
31
+ if (!res.ok || !isRecord(data)) return mockPlan();
32
+ const usage = isRecord(data.usage) ? data.usage : {};
33
+ const sub = isRecord(data.subscription) ? data.subscription : null;
34
+ const paid = !!sub && !UNPAID.has(String(sub.status));
35
+ return {
36
+ plan: paid ? String(sub.plan_name ?? "paid") : "none",
37
+ credits: Number(usage.remaining_units ?? 0) || 0
38
+ };
39
+ } catch {
40
+ return mockPlan();
41
+ }
42
+ }
43
+ var webBase = () => "https://hyperframes.studio";
44
+ var plansUrl = () => process.env["HYPERFRAMES_PLANS_URL"] || `${webBase()}/pricing`;
45
+ var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/pricing`;
46
+ async function signedInSpace() {
47
+ try {
48
+ const res = await fetch(`${billingBaseUrl()}/v1/pacific/account.get`, {
49
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
50
+ signal: AbortSignal.timeout(5e3)
51
+ });
52
+ const body = await res.json().catch(() => null);
53
+ const data = isRecord(body) && isRecord(body.data) ? body.data : null;
54
+ const id = data && isRecord(data.space_info) ? data.space_info.space_id : void 0;
55
+ return typeof id === "string" && /^[a-zA-Z0-9-]{1,64}$/.test(id) ? id : void 0;
56
+ } catch {
57
+ return void 0;
58
+ }
59
+ }
60
+ async function pageUrl(kind, fields = {}) {
61
+ const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
62
+ url.searchParams.set("from", "cli");
63
+ if (fields.needed) url.searchParams.set("needed_credits", String(fields.needed));
64
+ if (fields.tool) url.searchParams.set("tool", fields.tool);
65
+ if (fields.feature) url.searchParams.set("feature", fields.feature);
66
+ if (fields.rs) url.searchParams.set("rs", fields.rs);
67
+ if (kind === "credits" && !fields.base) url.hash = "packs";
68
+ const space = await signedInSpace();
69
+ if (space) url.searchParams.set("workspace_hint", space);
70
+ return url.toString();
71
+ }
72
+ var int = (v) => Number.isSafeInteger(v) && v > 0 ? v : void 0;
73
+ async function readOffer() {
74
+ try {
75
+ const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/plans`, {
76
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
77
+ signal: AbortSignal.timeout(15e3)
78
+ });
79
+ const body = await res.json().catch(() => null);
80
+ const data = isRecord(body) && isRecord(body.data) ? body.data : body;
81
+ if (!res.ok || !isRecord(data)) return {};
82
+ const plans = Array.isArray(data.plans) ? data.plans.filter(isRecord) : [];
83
+ const pro = plans.find((p) => p.plan_name === "pro" && p.period === "month");
84
+ const a = isRecord(data.addon) && data.addons_enabled === true ? data.addon : null;
85
+ const offer = {};
86
+ if (pro && int(pro.amount) && typeof pro.currency === "string")
87
+ offer.pro = { amount: int(pro.amount), currency: pro.currency };
88
+ const [unitsPerBlock, unitAmount, min, max] = [
89
+ "units_per_block",
90
+ "unit_amount",
91
+ "min_quantity",
92
+ "max_quantity"
93
+ ].map((k) => int(a?.[k]));
94
+ if (a && unitsPerBlock && unitAmount && min && max && typeof a.currency === "string")
95
+ offer.addon = {
96
+ unitsPerBlock,
97
+ unitAmount,
98
+ currency: a.currency,
99
+ min,
100
+ max,
101
+ recommended: int(a.recommended) ?? min
102
+ };
103
+ return offer;
104
+ } catch {
105
+ return {};
106
+ }
107
+ }
108
+ function addonBlocks(offer, missing) {
109
+ const blocks = missing && missing > 0 ? Math.ceil(missing / offer.unitsPerBlock) : offer.recommended;
110
+ return Math.min(offer.max, Math.max(offer.min, blocks));
111
+ }
112
+ var money = (cents, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(
113
+ cents / 100
114
+ );
115
+ function stripeCheckoutUrl(value) {
116
+ if (typeof value !== "string" || !URL.canParse(value)) return void 0;
117
+ const url = new URL(value);
118
+ return url.protocol === "https:" && url.hostname === "checkout.stripe.com" ? url.toString() : void 0;
119
+ }
120
+ async function createCheckout(kind, offer, missing) {
121
+ const addon = kind === "credits" ? offer.addon : void 0;
122
+ if (kind === "credits" && !addon)
123
+ throw new Error("Credits are not on sale for this account right now.");
124
+ const body = addon ? {
125
+ quantity: addonBlocks(addon, missing),
126
+ currency: addon.currency,
127
+ unit_amount: addon.unitAmount
128
+ } : { plan_name: "pro", period: "month", request_id: randomUUID() };
129
+ const res = await fetch(
130
+ `${billingBaseUrl()}/v1/payment/hyperframes/${addon ? "addon.checkout" : "checkout"}`,
131
+ {
132
+ method: "POST",
133
+ headers: {
134
+ ...await resolveCloudAuthHeaders(),
135
+ accept: "application/json",
136
+ "content-type": "application/json"
137
+ },
138
+ body: JSON.stringify(body),
139
+ signal: AbortSignal.timeout(2e4)
140
+ }
141
+ );
142
+ const reply = await res.json().catch(() => null);
143
+ const data = isRecord(reply) && isRecord(reply.data) ? reply.data : reply;
144
+ const url = res.ok && isRecord(data) ? stripeCheckoutUrl(data.url) : void 0;
145
+ if (url) return url;
146
+ const why = isRecord(reply) && typeof reply.message === "string" ? reply.message.slice(0, 200) : `HTTP ${res.status}`;
147
+ throw new Error(`HeyGen would not open a checkout: ${why}`);
148
+ }
149
+
150
+ export {
151
+ billingBaseUrl,
152
+ readPlan,
153
+ pageUrl,
154
+ readOffer,
155
+ addonBlocks,
156
+ money,
157
+ createCheckout
158
+ };
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-SWC3QIEH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-CUR5UYYJ.js";
12
+ } from "./chunk-VM6T3Z6B.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel
19
- } from "./chunk-6A4RAHMF.js";
19
+ } from "./chunk-ZLN3AJKT.js";
20
20
  import {
21
21
  sha256File
22
22
  } from "./chunk-RZ6CXJ56.js";
@@ -24,7 +24,7 @@ import {
24
24
  findFFmpeg,
25
25
  findFFprobe,
26
26
  getFFmpegInstallHint
27
- } from "./chunk-FNNNGI42.js";
27
+ } from "./chunk-AVNF52HR.js";
28
28
  import {
29
29
  findWavChunk
30
30
  } from "./chunk-UOFAE5RF.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getCachedGpuEncoder
9
- } from "./chunk-NUFOXUDF.js";
9
+ } from "./chunk-N6FGHJ7X.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-X6JUUQCM.js";
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-3BCLDK6O.js";
9
+ } from "./chunk-NCP3JQ6S.js";
10
10
  import {
11
11
  openRangeEnd
12
12
  } from "./chunk-VEIGTKYZ.js";
13
13
  import {
14
14
  stripSdrPngColourTags
15
- } from "./chunk-4MDLXE3N.js";
15
+ } from "./chunk-PPMCILED.js";
16
16
  import {
17
17
  injectTagsAtHeadStart
18
- } from "./chunk-N3CZ437C.js";
18
+ } from "./chunk-Y3ICFPFK.js";
19
19
 
20
20
  // src/utils/compositionServer.ts
21
21
  import { createHash } from "crypto";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-7TAS4BNT.js";
9
+ } from "./chunk-6UZLHLFP.js";
10
10
  import {
11
11
  explainChromeLaunchFailure,
12
12
  inAgentSandbox,
@@ -15,7 +15,7 @@ import {
15
15
  oneProcessOverPipe,
16
16
  pipeLaunchClosedOnMac,
17
17
  sandboxDeniedRemediation
18
- } from "./chunk-NUFOXUDF.js";
18
+ } from "./chunk-N6FGHJ7X.js";
19
19
  import {
20
20
  processIsAlive
21
21
  } from "./chunk-KGPLIH7B.js";
@@ -4,10 +4,13 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ findStageProxyBox
9
+ } from "./chunk-LTBBFLOM.js";
7
10
  import {
8
11
  getMimeType,
9
12
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-3BCLDK6O.js";
13
+ } from "./chunk-NCP3JQ6S.js";
11
14
  import {
12
15
  PROXY_VARIANT_CONFIG,
13
16
  ProxyCapacityError,
@@ -18,26 +21,23 @@ import {
18
21
  recordProxyRequest,
19
22
  resolveProxy,
20
23
  resolveProxyVariantRequest
21
- } from "./chunk-2ZQ7BZOS.js";
22
- import {
23
- findStageProxyBox
24
- } from "./chunk-QPTQSM3D.js";
24
+ } from "./chunk-MDMQD6BV.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-RGYPRUQP.js";
27
+ } from "./chunk-S2UKSI3C.js";
28
28
  import {
29
29
  openRangeEnd
30
30
  } from "./chunk-VEIGTKYZ.js";
31
31
  import {
32
32
  listenOnBrowserSafePort
33
- } from "./chunk-NUFOXUDF.js";
33
+ } from "./chunk-N6FGHJ7X.js";
34
34
  import {
35
35
  stripSdrPngColourTags
36
- } from "./chunk-4MDLXE3N.js";
36
+ } from "./chunk-PPMCILED.js";
37
37
  import {
38
38
  PREVIEW_PROXY_BOX_PARAM,
39
39
  parsePreviewProxyBox
40
- } from "./chunk-6ZICZOMN.js";
40
+ } from "./chunk-W5AUD5OL.js";
41
41
  import {
42
42
  decodeWellFormedEscapes
43
43
  } from "./chunk-C2KEGBR3.js";