hyperframes 0.8.146 → 0.8.147

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 (109) hide show
  1. package/dist/{add-6J4TLUDW.js → add-5CNUY3EW.js} +5 -5
  2. package/dist/{animatedGifPrep-TPYA45ZZ.js → animatedGifPrep-ZID2XJRQ.js} +2 -2
  3. package/dist/{asset-B4C6ZU4V.js → asset-TFEENZ7K.js} +2 -2
  4. package/dist/{auth-T2V3URGO.js → auth-EJVZW6C3.js} +1 -1
  5. package/dist/{autoUpdate-O4R7IOYP.js → autoUpdate-MBNEZ2U4.js} +2 -2
  6. package/dist/{backgroundChecks-SQHGZCSH.js → backgroundChecks-DNW5NPTY.js} +3 -3
  7. package/dist/backgroundChecksWorker.js +3 -3
  8. package/dist/{beats-RNEXDM7U.js → beats-STXBGN6Z.js} +7 -7
  9. package/dist/{benchmark-IVK6FCEU.js → benchmark-AC6IGEQP.js} +6 -6
  10. package/dist/{browser-WUE6VK2N.js → browser-FB5AK32T.js} +3 -3
  11. package/dist/{bundleWithLocalizedFonts-EEIRL7FT.js → bundleWithLocalizedFonts-HSCWGCFO.js} +1 -1
  12. package/dist/{capture-LEKIGJ4G.js → capture-I24MXH3Y.js} +4 -4
  13. package/dist/{capture-K3EONGGU.js → capture-VEIVUHWB.js} +2 -2
  14. package/dist/{catalog-IXYQ2KXW.js → catalog-JRC4VTTI.js} +5 -5
  15. package/dist/{catch-up-IIF7HKR6.js → catch-up-NTCK7Z3G.js} +4 -4
  16. package/dist/{check-W7CDOXNP.js → check-7M7W4LPN.js} +14 -14
  17. package/dist/{checkBrowser-5VSXEHBZ.js → checkBrowser-2YRVCAYB.js} +14 -14
  18. package/dist/{chunk-CVPWZ5LY.js → chunk-2IDHEEAN.js} +1 -1
  19. package/dist/{chunk-KFZUUXUN.js → chunk-3BETQ4XI.js} +2 -2
  20. package/dist/{chunk-R6R74HNZ.js → chunk-3BYMCR4O.js} +15 -13
  21. package/dist/{chunk-2NAUEDA6.js → chunk-3PPO64IB.js} +1 -1
  22. package/dist/{chunk-K7ES5RSK.js → chunk-3YUFN37G.js} +1 -1
  23. package/dist/{chunk-KG265HQ7.js → chunk-4YVMMRHR.js} +1 -1
  24. package/dist/{chunk-QSSPIATO.js → chunk-55RZG5SQ.js} +1 -1
  25. package/dist/{chunk-ETNQF37F.js → chunk-5OKZLMQK.js} +1 -1
  26. package/dist/{chunk-UOBYRLDD.js → chunk-6BSIQJPW.js} +1 -1
  27. package/dist/{chunk-UZUUVYAO.js → chunk-6WD636E5.js} +2 -2
  28. package/dist/{chunk-TH4OXAWY.js → chunk-AFIATIKS.js} +1 -1
  29. package/dist/{chunk-54UXJKFF.js → chunk-AL2YEVOT.js} +1 -1
  30. package/dist/{chunk-HBGJYBGE.js → chunk-B45OFFOQ.js} +2 -2
  31. package/dist/{chunk-AJ5R4GM6.js → chunk-BPUFVVSH.js} +1 -1
  32. package/dist/{chunk-DUU77E2S.js → chunk-DYWSCPCR.js} +7 -7
  33. package/dist/{chunk-FKLYMV3U.js → chunk-H7B6JSHI.js} +1 -1
  34. package/dist/{chunk-WU2B74TL.js → chunk-JF5L5SQ6.js} +11 -0
  35. package/dist/{chunk-VT563F4O.js → chunk-N53FLAMZ.js} +2 -2
  36. package/dist/{chunk-SYMSKGXI.js → chunk-P6HELLPU.js} +2 -2
  37. package/dist/{chunk-ZZ7H4IJ6.js → chunk-POKK6XXU.js} +6 -6
  38. package/dist/{chunk-FJLHVAPO.js → chunk-QHRPB2JQ.js} +3 -3
  39. package/dist/{chunk-TBOMPYG6.js → chunk-QTTDKWSM.js} +2 -2
  40. package/dist/{chunk-HTM4CIFS.js → chunk-SEABQTBP.js} +4 -4
  41. package/dist/{chunk-XJUZEB44.js → chunk-XOJDBRNF.js} +1 -1
  42. package/dist/{chunk-WUZ6TMAO.js → chunk-YCGU3UNU.js} +1 -1
  43. package/dist/{chunk-6TTAXMDG.js → chunk-ZLL72U3I.js} +2 -2
  44. package/dist/{chunk-4RUILXS6.js → chunk-ZQXNL5DL.js} +2 -2
  45. package/dist/{clean-2GDD2B4F.js → clean-3RY3Y2GX.js} +5 -5
  46. package/dist/cli.js +49 -49
  47. package/dist/{cloud-LUKGDTTE.js → cloud-MLPBFCVE.js} +4 -4
  48. package/dist/{compare-4P6O4ONG.js → compare-6EZX2754.js} +8 -8
  49. package/dist/{component-SDDOLNJD.js → component-F5PQHP6A.js} +3 -3
  50. package/dist/{compositions-P2L6HUVQ.js → compositions-AUHWSI2H.js} +6 -6
  51. package/dist/{delete-Q6S4BJ3F.js → delete-VUF4SHHJ.js} +2 -2
  52. package/dist/{doctor-NL73UKHV.js → doctor-3XHCA5JM.js} +4 -4
  53. package/dist/{events-AVOPOKO3.js → events-FKOIB3R3.js} +3 -3
  54. package/dist/{events-X7KPU7LG.js → events-TIU72LZM.js} +2 -2
  55. package/dist/{feedback-GJZ5NXSH.js → feedback-V6VATYBE.js} +4 -4
  56. package/dist/{figma-V7SVQQI5.js → figma-YBJM2VGE.js} +3 -3
  57. package/dist/fontLocalizeCli.js +4 -4
  58. package/dist/{get-FO3YZYEU.js → get-3YVCGZBX.js} +2 -2
  59. package/dist/{gpuPolicy-QGS4TFWP.js → gpuPolicy-ZOUG66M7.js} +2 -2
  60. package/dist/{grade-compare-7ICSN7KE.js → grade-compare-MYXIRKQI.js} +8 -8
  61. package/dist/{help-Y5LYZG7K.js → help-WFZ2SUUR.js} +1 -1
  62. package/dist/{history-RKGBRNLD.js → history-HWPRJFR5.js} +5 -5
  63. package/dist/hyperframes-player.global.js +1 -1
  64. package/dist/{info-GGUTL2NR.js → info-WJDTQ4OZ.js} +5 -5
  65. package/dist/{init-PG7NA5SQ.js → init-EXHDN7RO.js} +13 -13
  66. package/dist/{inspect-FCXUB6DE.js → inspect-EAOLZOMQ.js} +10 -10
  67. package/dist/{keyframes-R3K6WJ3N.js → keyframes-FSZYNEDN.js} +6 -6
  68. package/dist/{layout-XNIZIGA2.js → layout-M2TQ2CIX.js} +10 -10
  69. package/dist/{lint-4KDS2F4O.js → lint-7C5UPTNQ.js} +6 -6
  70. package/dist/{list-OVPURFPK.js → list-GU5KBZ73.js} +2 -2
  71. package/dist/{login-EE2AX2PE.js → login-ZL2NYBIZ.js} +4 -4
  72. package/dist/{media-treatment-UDUEOP67.js → media-treatment-QC3TAHVU.js} +5 -5
  73. package/dist/{models-LPK2O4B2.js → models-A54I4QR5.js} +5 -5
  74. package/dist/{motionShot-G76XBOYI.js → motionShot-ZXPK562F.js} +5 -5
  75. package/dist/{normalize-audio-TUKWZ3OR.js → normalize-audio-CAP3DAE6.js} +4 -4
  76. package/dist/{open-7XB2TGVB.js → open-GUSBNMDB.js} +4 -4
  77. package/dist/{parakeetRunner-DL556HXL.js → parakeetRunner-GCCH72CO.js} +4 -4
  78. package/dist/{pipeline-34N5DLWU.js → pipeline-SCJ2MWYH.js} +2 -2
  79. package/dist/{play-DDA2UUQF.js → play-FP2QLMGM.js} +4 -4
  80. package/dist/{present-LLNRKXF5.js → present-H5SA4APW.js} +4 -4
  81. package/dist/{preview-H3ZZS46F.js → preview-ATPVKA6K.js} +8 -8
  82. package/dist/{producer-IFQOZK2G.js → producer-VBYUC27R.js} +1 -1
  83. package/dist/{remove-background-GNKRMFQS.js → remove-background-GA6F7JZW.js} +3 -3
  84. package/dist/{render-JM6KNRIA.js → render-KUVZFNQD.js} +8 -8
  85. package/dist/{render-KTTC3EE5.js → render-XCYXFZTL.js} +5 -5
  86. package/dist/{renderCancellation-GP3XD2FS.js → renderCancellation-NIXEWRAO.js} +2 -2
  87. package/dist/{sherpa-MZP3MV2X.js → sherpa-IQY52XU6.js} +4 -4
  88. package/dist/{skills-OET4XSHR.js → skills-JSSAEKUW.js} +5 -5
  89. package/dist/{skillsUpdateCheck-IPFSKKJD.js → skillsUpdateCheck-XE5E2K2F.js} +3 -3
  90. package/dist/{snapshot-EC4N75MS.js → snapshot-QMQOE2DD.js} +10 -10
  91. package/dist/{src-LIERUCFW.js → src-2GMPFYHL.js} +1 -1
  92. package/dist/{src-ZZQJOKO6.js → src-R55QLGWI.js} +3 -3
  93. package/dist/studio/assets/{hyperframes-player-tkxyWf5H.js → hyperframes-player-_eMxRXF_.js} +1 -1
  94. package/dist/studio/assets/{index-BrdqOkqP.js → index-6okhHdnH.js} +1 -1
  95. package/dist/studio/assets/{index-Dllxg4aU.js → index-CEq9KmY2.js} +1 -1
  96. package/dist/studio/assets/{index-Cg48BxAo.js → index-bXzd7tvF.js} +4 -4
  97. package/dist/studio/index.html +1 -1
  98. package/dist/{studioServer-GJVVJUEL.js → studioServer-Q4MT44LT.js} +15 -15
  99. package/dist/{telemetry-ZQ5XVE6Z.js → telemetry-V5JYZDS4.js} +3 -3
  100. package/dist/{timeline-I2T5WIPD.js → timeline-KTCTOKF5.js} +6 -6
  101. package/dist/{tokens-ONUWOXEX.js → tokens-ZHREZPK6.js} +2 -2
  102. package/dist/{transcribe-BCQMA537.js → transcribe-4QDEWCE6.js} +7 -7
  103. package/dist/{transcribe-ZLJF7V5Y.js → transcribe-CRAV4FU3.js} +3 -3
  104. package/dist/{updateCheck-ZWHDXF73.js → updateCheck-E7RMSK3E.js} +2 -2
  105. package/dist/{upgrade-32JGFZWS.js → upgrade-27PFTDCV.js} +2 -2
  106. package/dist/{urlDownloader-EVDP43GM.js → urlDownloader-EAF6PLUP.js} +1 -1
  107. package/dist/{validate-G4PUGQCI.js → validate-OKNFDBMG.js} +10 -10
  108. package/dist/{video-TILEY3VJ.js → video-IEVS4FIH.js} +2 -2
  109. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var xe=Object.defineProperty;var Ie=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var l=(r,i,e)=>Ie(r,typeof i!="symbol"?i+"":i,e);import{S as Oe,r as Ne,a as fe,i as Fe,b as w,c as _e,p as Ve,d as Ue,e as He,f as We,s as ze,g as ge,F as ye}from"./index-Cg48BxAo.js";function $e(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function x(r){return typeof r=="object"&&r!==null}function je(r){return x(r)&&typeof r.getDuration=="function"}function Be(r){return x(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function qe(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const W=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:qe("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function Ge(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}function Ye(r){return Array.isArray(r)?r.find(i=>typeof i=="string"&&i.trim()!==""&&i!=="[object Event]")??null:null}class Xe{constructor(i,e){l(this,"_interval",null);l(this,"_runtimeInjected",!1);l(this,"_runtimeScript",null);l(this,"_failure",null);this._iframe=i,this._callbacks=e}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 i=0;this._interval=setInterval(()=>{i++;let e=null;try{e=this._poll(i)}catch(t){t instanceof DOMException&&t.name==="SecurityError"||(e={kind:"error",message:t instanceof Error?t.message:String(t)})}if(e){this.stop(),e.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(e.message)):this._callbacks.onReady(e.result);return}i>=40&&(this.stop(),this._failure={document:this._iframe.contentDocument},this._callbacks.onError("Composition timeline not found after 8s"))},200)}_poll(i){const e=this._iframe.contentWindow;if(!e)return null;const t=Ye(Reflect.get(e,Oe));if(t!==null)return{kind:"error",message:t};const s=this._iframe.contentDocument,n=Reflect.get(e,"__timelines"),o=this.hasRuntimeBridge(e);if($e({hasRuntime:o,hasTimelines:x(n)&&Object.keys(n).length>0,hasNestedCompositions:!!(s!=null&&s.querySelector("[data-composition-src]")),runtimeInjected:this._runtimeInjected,attempts:i}))return this._injectRuntime(),null;if(this._runtimeInjected&&!o)return null;const a=this._resolveReadyResult(e,s);return a?{kind:"ready",result:a}:null}_resolveReadyResult(i,e){var n;const t=this._resolvePlaybackDurationAdapter(i)??{kind:"document",getDuration:()=>0};let s=t.getDuration();if(!Number.isFinite(s)||s<=0){if(t.kind==="direct-timeline")return null;s=e?((n=Ne(e))==null?void 0:n.durationSeconds)??0:0}return s<=0?null:{duration:s,adapter:{...t,getDuration:()=>s},compositionSize:Ge(e)}}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{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return x(Reflect.get(i,"__player"))}_injectRuntime(){var i,e,t,s;this._runtimeInjected=!0;try{const n=this._iframe.contentDocument;if(!n)return;const o=n.createElement("script");o.src=((e=(i=this._callbacks).resolveRuntimeUrl)==null?void 0:e.call(i))??W,this._runtimeScript=o,o.onerror=()=>{this._runtimeScript!==o||this._iframe.contentDocument!==n||(this.stop(),this._failure={document:n},this._callbacks.onError("HyperFrames runtime failed to load from "+o.src))},(n.head||n.documentElement).appendChild(o),(s=(t=this._callbacks).onRuntimeInjected)==null||s.call(t)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!x(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return Be(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(je(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Ze=`
1
+ var xe=Object.defineProperty;var Ie=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var l=(r,i,e)=>Ie(r,typeof i!="symbol"?i+"":i,e);import{S as Oe,r as Ne,a as fe,i as Fe,b as w,c as _e,p as Ve,d as Ue,e as He,f as We,s as ze,g as ge,F as ye}from"./index-bXzd7tvF.js";function $e(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function x(r){return typeof r=="object"&&r!==null}function je(r){return x(r)&&typeof r.getDuration=="function"}function Be(r){return x(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function qe(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const W=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:qe("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function Ge(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}function Ye(r){return Array.isArray(r)?r.find(i=>typeof i=="string"&&i.trim()!==""&&i!=="[object Event]")??null:null}class Xe{constructor(i,e){l(this,"_interval",null);l(this,"_runtimeInjected",!1);l(this,"_runtimeScript",null);l(this,"_failure",null);this._iframe=i,this._callbacks=e}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 i=0;this._interval=setInterval(()=>{i++;let e=null;try{e=this._poll(i)}catch(t){t instanceof DOMException&&t.name==="SecurityError"||(e={kind:"error",message:t instanceof Error?t.message:String(t)})}if(e){this.stop(),e.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(e.message)):this._callbacks.onReady(e.result);return}i>=40&&(this.stop(),this._failure={document:this._iframe.contentDocument},this._callbacks.onError("Composition timeline not found after 8s"))},200)}_poll(i){const e=this._iframe.contentWindow;if(!e)return null;const t=Ye(Reflect.get(e,Oe));if(t!==null)return{kind:"error",message:t};const s=this._iframe.contentDocument,n=Reflect.get(e,"__timelines"),o=this.hasRuntimeBridge(e);if($e({hasRuntime:o,hasTimelines:x(n)&&Object.keys(n).length>0,hasNestedCompositions:!!(s!=null&&s.querySelector("[data-composition-src]")),runtimeInjected:this._runtimeInjected,attempts:i}))return this._injectRuntime(),null;if(this._runtimeInjected&&!o)return null;const a=this._resolveReadyResult(e,s);return a?{kind:"ready",result:a}:null}_resolveReadyResult(i,e){var n;const t=this._resolvePlaybackDurationAdapter(i)??{kind:"document",getDuration:()=>0};let s=t.getDuration();if(!Number.isFinite(s)||s<=0){if(t.kind==="direct-timeline")return null;s=e?((n=Ne(e))==null?void 0:n.durationSeconds)??0:0}return s<=0?null:{duration:s,adapter:{...t,getDuration:()=>s},compositionSize:Ge(e)}}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{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return x(Reflect.get(i,"__player"))}_injectRuntime(){var i,e,t,s;this._runtimeInjected=!0;try{const n=this._iframe.contentDocument;if(!n)return;const o=n.createElement("script");o.src=((e=(i=this._callbacks).resolveRuntimeUrl)==null?void 0:e.call(i))??W,this._runtimeScript=o,o.onerror=()=>{this._runtimeScript!==o||this._iframe.contentDocument!==n||(this.stop(),this._failure={document:n},this._callbacks.onError("HyperFrames runtime failed to load from "+o.src))},(n.head||n.documentElement).appendChild(o),(s=(t=this._callbacks).onRuntimeInjected)==null||s.call(t)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!x(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return Be(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(je(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Ze=`
2
2
  :host {
3
3
  display: block;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{n as Qi}from"./index-Cg48BxAo.js";/*!
1
+ import{n as Qi}from"./index-bXzd7tvF.js";/*!
2
2
  * Copyright (c) 2026-present, Vanilagy and contributors
3
3
  *
4
4
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -1 +1 @@
1
- import{h as P}from"./index-Cg48BxAo.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var h=e[o+x]-t,_=r.some(function(g){if(g.interval===h)return g.count+=1});_||r.push({interval:h,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
1
+ import{h as P}from"./index-bXzd7tvF.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var h=e[o+x]-t,_=r.some(function(g){if(g.interval===h)return g.count+=1});_||r.push({interval:h,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};