@waveform-playlist/browser 9.5.1 → 9.5.2
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/index.d.ts +6 -9
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +430 -428
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as oh from "tone";
|
|
2
|
-
import { now as La, Context as ah, setContext as sh, Volume as Yo, getDestination as
|
|
2
|
+
import { now as La, Context as ah, setContext as sh, Volume as Yo, getDestination as Ko, getTransport as Ht, start as ih, getContext as Pt, Panner as Ms, Gain as Ts, PolySynth as no, Synth as lh, MembraneSynth as ro, NoiseSynth as ch, MetalSynth as wl, Part as Sc, Analyser as kc, StereoWidener as uh, Gate as dh, Limiter as fh, Compressor as hh, Chebyshev as ph, BitCrusher as mh, Distortion as gh, EQ3 as vh, AutoWah as yh, AutoFilter as bh, AutoPanner as wh, Vibrato as _h, Tremolo as Sh, Phaser as kh, Chorus as Ch, PingPongDelay as xh, FeedbackDelay as Eh, JCReverb as Ih, Freeverb as Ah, Reverb as Mh } from "tone";
|
|
3
3
|
import { jsx as k, jsxs as de, Fragment as Wt } from "react/jsx-runtime";
|
|
4
4
|
import * as P from "react";
|
|
5
|
-
import rt, { useEffect as
|
|
5
|
+
import rt, { useEffect as K, useLayoutEffect as Sn, useRef as M, useMemo as Ce, useState as z, useCallback as T, useContext as Pe, createContext as Ve, memo as Cc, forwardRef as xc, startTransition as $s, useImperativeHandle as Ec, useSyncExternalStore as Th, Fragment as $h, useInsertionEffect as Dh } from "react";
|
|
6
6
|
import F, { ThemeContext as Rh, withTheme as Ic, useTheme as Ph, ThemeProvider as Ac } from "styled-components";
|
|
7
7
|
import { flushSync as Fh, createPortal as Mc } from "react-dom";
|
|
8
8
|
var ba = { exports: {} }, _l;
|
|
@@ -1321,26 +1321,26 @@ function Lh(e, t) {
|
|
|
1321
1321
|
function Bh(e, t, n) {
|
|
1322
1322
|
return Math.ceil(e * n / t);
|
|
1323
1323
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1324
|
+
var jn = 192;
|
|
1325
|
+
function jo(e, t = jn) {
|
|
1326
1326
|
const [, n] = e;
|
|
1327
1327
|
return t * (4 / n);
|
|
1328
1328
|
}
|
|
1329
|
-
function Ds(e, t =
|
|
1329
|
+
function Ds(e, t = jn) {
|
|
1330
1330
|
const [n] = e;
|
|
1331
|
-
return n *
|
|
1331
|
+
return n * jo(e, t);
|
|
1332
1332
|
}
|
|
1333
|
-
function Nn(e, t, n, r =
|
|
1333
|
+
function Nn(e, t, n, r = jn) {
|
|
1334
1334
|
return Math.round(e * 60 * n / (t * r));
|
|
1335
1335
|
}
|
|
1336
|
-
function Wa(e, t, n, r =
|
|
1336
|
+
function Wa(e, t, n, r = jn) {
|
|
1337
1337
|
return Math.round(e * r * t / (60 * n));
|
|
1338
1338
|
}
|
|
1339
1339
|
function Va(e, t) {
|
|
1340
1340
|
return Math.round(e / t) * t;
|
|
1341
1341
|
}
|
|
1342
|
-
function Wh(e, t, n =
|
|
1343
|
-
const r = Ds(t, n), o =
|
|
1342
|
+
function Wh(e, t, n = jn) {
|
|
1343
|
+
const r = Ds(t, n), o = jo(t, n), a = Math.floor(e / r) + 1, s = Math.floor(e % r / o) + 1;
|
|
1344
1344
|
return s === 1 ? `${a}` : `${a}.${s}`;
|
|
1345
1345
|
}
|
|
1346
1346
|
function oo(e) {
|
|
@@ -1438,7 +1438,7 @@ function Ml(e, t, n, r = "linear", o = 1, a = 0) {
|
|
|
1438
1438
|
var Zh = class {
|
|
1439
1439
|
constructor(e) {
|
|
1440
1440
|
this.activeSources = /* @__PURE__ */ new Set(), this._scheduleGuardOffset = 0, this.track = e.track, this.volumeNode = new Yo(this.gainToDb(e.track.gain)), this.panNode = new Ms(e.track.stereoPan), this.muteGain = new Ts(e.track.muted ? 0 : 1), this.volumeNode.chain(this.panNode, this.muteGain);
|
|
1441
|
-
const t = e.destination ||
|
|
1441
|
+
const t = e.destination || Ko();
|
|
1442
1442
|
if (e.effects) {
|
|
1443
1443
|
const s = e.effects(this.muteGain, t, !1);
|
|
1444
1444
|
s && (this.effectsCleanup = s);
|
|
@@ -1723,7 +1723,7 @@ var Gh = class {
|
|
|
1723
1723
|
envelope: { attack: 1e-3, decay: 0.3, sustain: 0, release: 0.1 }
|
|
1724
1724
|
}
|
|
1725
1725
|
}), this.kickSynth.connect(this.volumeNode), this.snareSynth.connect(this.volumeNode), this.cymbalSynth.connect(this.volumeNode), this.tomSynth.connect(this.volumeNode);
|
|
1726
|
-
const t = e.destination ||
|
|
1726
|
+
const t = e.destination || Ko();
|
|
1727
1727
|
if (e.effects) {
|
|
1728
1728
|
const n = e.effects(this.muteGain, t, !1);
|
|
1729
1729
|
n && (this.effectsCleanup = n);
|
|
@@ -1947,7 +1947,7 @@ var Gh = class {
|
|
|
1947
1947
|
}, Fc = class Na {
|
|
1948
1948
|
constructor(t) {
|
|
1949
1949
|
this.activeSources = /* @__PURE__ */ new Set(), this.track = t.track, this.soundFontCache = t.soundFontCache, this.programNumber = t.programNumber ?? 0, this.bankNumber = t.isPercussion ? 128 : 0, this.volumeNode = new Yo(this.gainToDb(t.track.gain)), this.panNode = new Ms(t.track.stereoPan), this.muteGain = new Ts(t.track.muted ? 0 : 1), this.volumeNode.chain(this.panNode, this.muteGain);
|
|
1950
|
-
const n = t.destination ||
|
|
1950
|
+
const n = t.destination || Ko();
|
|
1951
1951
|
if (t.effects) {
|
|
1952
1952
|
const r = t.effects(this.muteGain, n, !1);
|
|
1953
1953
|
r && (this.effectsCleanup = r);
|
|
@@ -2136,7 +2136,7 @@ Fc._missingSampleWarned = !1;
|
|
|
2136
2136
|
var Uh = Fc, Xh = class {
|
|
2137
2137
|
constructor(e = {}) {
|
|
2138
2138
|
if (this.tracks = /* @__PURE__ */ new Map(), this.isInitialized = !1, this.soloedTracks = /* @__PURE__ */ new Set(), this.manualMuteState = /* @__PURE__ */ new Map(), this._completionEventId = null, this._loopHandler = null, this._loopEnabled = !1, this._loopStart = 0, this._loopEnd = 0, this.masterVolume = new Yo(this.gainToDb(e.masterGain ?? 1)), e.effects) {
|
|
2139
|
-
const t = e.effects(this.masterVolume,
|
|
2139
|
+
const t = e.effects(this.masterVolume, Ko(), !1);
|
|
2140
2140
|
t && (this.effectsCleanup = t);
|
|
2141
2141
|
} else
|
|
2142
2142
|
this.masterVolume.toDestination();
|
|
@@ -2353,10 +2353,10 @@ var Uh = Fc, Xh = class {
|
|
|
2353
2353
|
function Yh() {
|
|
2354
2354
|
return ao || (ao = new ah(), sh(ao)), ao;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Kh() {
|
|
2357
2357
|
return Yh().rawContext;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function jh(e) {
|
|
2360
2360
|
let t = null, n = !1, r = 0, o = !1, a = 0, s = 0, i = !1;
|
|
2361
2361
|
function l(c) {
|
|
2362
2362
|
if (t) {
|
|
@@ -3224,8 +3224,8 @@ function Lr(...e) {
|
|
|
3224
3224
|
const t = e.map((n) => It(n));
|
|
3225
3225
|
return () => t.forEach((n) => n());
|
|
3226
3226
|
}
|
|
3227
|
-
var Uc, Xc, Yc,
|
|
3228
|
-
qc = [fe],
|
|
3227
|
+
var Uc, Xc, Yc, Kc, jc, qc, ot, Os, Sa, Ha, Ga, tt, Ls, ka, Jc, Ua, Bs, Ca, Xa, Ya;
|
|
3228
|
+
qc = [fe], jc = [fe], Kc = [fe], Yc = [_a()], Xc = [_a()], Uc = [_a()];
|
|
3229
3229
|
var ln = class {
|
|
3230
3230
|
constructor(e, t = Object.is) {
|
|
3231
3231
|
this.defaultValue = e, this.equals = t, dn(ot, 5, this), so(this, tt), so(this, Os, dn(ot, 8, this)), dn(ot, 11, this), so(this, Ls, dn(ot, 12, this)), dn(ot, 15, this), so(this, Bs, dn(ot, 16, this)), dn(ot, 19, this), this.reset = this.reset.bind(this), this.reset();
|
|
@@ -3259,8 +3259,8 @@ tt = /* @__PURE__ */ new WeakSet();
|
|
|
3259
3259
|
Ls = /* @__PURE__ */ new WeakMap();
|
|
3260
3260
|
Bs = /* @__PURE__ */ new WeakMap();
|
|
3261
3261
|
Sa = Qn(ot, 20, "#initial", qc, tt, Os), Ha = Sa.get, Ga = Sa.set;
|
|
3262
|
-
ka = Qn(ot, 20, "#previous",
|
|
3263
|
-
Ca = Qn(ot, 20, "#current",
|
|
3262
|
+
ka = Qn(ot, 20, "#previous", jc, tt, Ls), Jc = ka.get, Ua = ka.set;
|
|
3263
|
+
Ca = Qn(ot, 20, "#current", Kc, tt, Bs), Xa = Ca.get, Ya = Ca.set;
|
|
3264
3264
|
Qn(ot, 2, "current", Yc, ln);
|
|
3265
3265
|
Qn(ot, 2, "initial", Xc, ln);
|
|
3266
3266
|
Qn(ot, 2, "previous", Uc, ln);
|
|
@@ -3275,24 +3275,24 @@ function xa(e) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
var bp = Object.create, Qc = Object.defineProperty, wp = Object.getOwnPropertyDescriptor, Fl = Object.getOwnPropertySymbols, _p = Object.prototype.hasOwnProperty, Sp = Object.prototype.propertyIsEnumerable, eu = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Jo = (e) => {
|
|
3277
3277
|
throw TypeError(e);
|
|
3278
|
-
}, Ol = Math.pow,
|
|
3278
|
+
}, Ol = Math.pow, Ka = (e, t, n) => t in e ? Qc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, kp = (e, t) => {
|
|
3279
3279
|
for (var n in t || (t = {}))
|
|
3280
|
-
_p.call(t, n) &&
|
|
3280
|
+
_p.call(t, n) && Ka(e, n, t[n]);
|
|
3281
3281
|
if (Fl)
|
|
3282
3282
|
for (var n of Fl(t))
|
|
3283
|
-
Sp.call(t, n) &&
|
|
3283
|
+
Sp.call(t, n) && Ka(e, n, t[n]);
|
|
3284
3284
|
return e;
|
|
3285
3285
|
}, Cp = (e) => {
|
|
3286
3286
|
var t;
|
|
3287
3287
|
return [, , , bp((t = e?.[eu("metadata")]) != null ? t : null)];
|
|
3288
|
-
}, tu = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], nu = (e) => e !== void 0 && typeof e != "function" ? Jo("Function expected") : e, xp = (e, t, n, r, o) => ({ kind: tu[e], name: t, metadata: r, addInitializer: (a) => n._ ? Jo("Already initialized") : o.push(nu(a || null)) }), Ep = (e, t) =>
|
|
3288
|
+
}, tu = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], nu = (e) => e !== void 0 && typeof e != "function" ? Jo("Function expected") : e, xp = (e, t, n, r, o) => ({ kind: tu[e], name: t, metadata: r, addInitializer: (a) => n._ ? Jo("Already initialized") : o.push(nu(a || null)) }), Ep = (e, t) => Ka(t, eu("metadata"), e[3]), Ip = (e, t, n, r) => {
|
|
3289
3289
|
for (var o = 0, a = e[t >> 1], s = a && a.length; o < s; o++) a[o].call(n);
|
|
3290
3290
|
return r;
|
|
3291
3291
|
}, ru = (e, t, n, r, o, a) => {
|
|
3292
3292
|
for (var s, i, l, c, u = t & 7, f = !1, p = !1, d = 2, h = tu[u + 5], g = e[d] || (e[d] = []), m = (o = o.prototype, wp(o, n)), v = r.length - 1; v >= 0; v--)
|
|
3293
3293
|
l = xp(u, n, i = {}, e[3], g), l.static = f, l.private = p, c = l.access = { has: (y) => n in y }, c.get = (y) => y[n], s = (0, r[v])(m[h], l), i._ = 1, nu(s) && (m[h] = s);
|
|
3294
3294
|
return m && Qc(o, n, m), o;
|
|
3295
|
-
}, ou = (e, t, n) => t.has(e) || Jo("Cannot " + n), Ap = (e, t, n) => (ou(e, t, "read from private field"), t.get(e)), Mp = (e, t, n) => t.has(e) ? Jo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Tp = (e, t, n, r) => (ou(e, t, "write to private field"), t.set(e, n), n), Bt = class
|
|
3295
|
+
}, ou = (e, t, n) => t.has(e) || Jo("Cannot " + n), Ap = (e, t, n) => (ou(e, t, "read from private field"), t.get(e)), Mp = (e, t, n) => t.has(e) ? Jo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Tp = (e, t, n, r) => (ou(e, t, "write to private field"), t.set(e, n), n), Bt = class ja {
|
|
3296
3296
|
/**
|
|
3297
3297
|
* @param {number} Coordinate of the point on the horizontal axis
|
|
3298
3298
|
* @param {number} Coordinate of the point on the vertical axis
|
|
@@ -3307,7 +3307,7 @@ var bp = Object.create, Qc = Object.defineProperty, wp = Object.getOwnPropertyDe
|
|
|
3307
3307
|
* @param {Point} b - Another point
|
|
3308
3308
|
*/
|
|
3309
3309
|
static delta(t, n) {
|
|
3310
|
-
return new
|
|
3310
|
+
return new ja(t.x - n.x, t.y - n.y);
|
|
3311
3311
|
}
|
|
3312
3312
|
/**
|
|
3313
3313
|
* Returns the distance (hypotenuse) between this point and another point.
|
|
@@ -3328,7 +3328,7 @@ var bp = Object.create, Qc = Object.defineProperty, wp = Object.getOwnPropertyDe
|
|
|
3328
3328
|
return t.x === n.x && t.y === n.y;
|
|
3329
3329
|
}
|
|
3330
3330
|
static from({ x: t, y: n }) {
|
|
3331
|
-
return new
|
|
3331
|
+
return new ja(t, n);
|
|
3332
3332
|
}
|
|
3333
3333
|
}, Br = class hn {
|
|
3334
3334
|
constructor(t, n, r, o) {
|
|
@@ -3871,7 +3871,7 @@ var Zp = class extends Vr {
|
|
|
3871
3871
|
}
|
|
3872
3872
|
}, Zs = /* @__PURE__ */ ((e) => (e[e.Lowest = 0] = "Lowest", e[e.Low = 1] = "Low", e[e.Normal = 2] = "Normal", e[e.High = 3] = "High", e[e.Highest = 4] = "Highest", e))(Zs || {}), Hs = /* @__PURE__ */ ((e) => (e[e.Collision = 0] = "Collision", e[e.ShapeIntersection = 1] = "ShapeIntersection", e[e.PointerIntersection = 2] = "PointerIntersection", e))(Hs || {}), yu, bu, wu, _u, Su, ku, Cu, Et, Gs;
|
|
3873
3873
|
Cu = [fe], ku = [Re], Su = [Re], _u = [Re], wu = [Re], bu = [Re], yu = [Re];
|
|
3874
|
-
var
|
|
3874
|
+
var Kt = class {
|
|
3875
3875
|
constructor() {
|
|
3876
3876
|
J(Et, 5, this), Se(this, Gs, J(
|
|
3877
3877
|
Et,
|
|
@@ -3911,14 +3911,14 @@ var jt = class {
|
|
|
3911
3911
|
};
|
|
3912
3912
|
Et = tr(null);
|
|
3913
3913
|
Gs = /* @__PURE__ */ new WeakMap();
|
|
3914
|
-
ce(Et, 4, "value", Cu,
|
|
3915
|
-
ce(Et, 2, "current", ku,
|
|
3916
|
-
ce(Et, 2, "idle", Su,
|
|
3917
|
-
ce(Et, 2, "initializing", _u,
|
|
3918
|
-
ce(Et, 2, "initialized", wu,
|
|
3919
|
-
ce(Et, 2, "dragging", bu,
|
|
3920
|
-
ce(Et, 2, "dropped", yu,
|
|
3921
|
-
Cn(Et,
|
|
3914
|
+
ce(Et, 4, "value", Cu, Kt, Gs);
|
|
3915
|
+
ce(Et, 2, "current", ku, Kt);
|
|
3916
|
+
ce(Et, 2, "idle", Su, Kt);
|
|
3917
|
+
ce(Et, 2, "initializing", _u, Kt);
|
|
3918
|
+
ce(Et, 2, "initialized", wu, Kt);
|
|
3919
|
+
ce(Et, 2, "dragging", bu, Kt);
|
|
3920
|
+
ce(Et, 2, "dropped", yu, Kt);
|
|
3921
|
+
Cn(Et, Kt);
|
|
3922
3922
|
var Hp = class {
|
|
3923
3923
|
/**
|
|
3924
3924
|
* Creates a new instance of drag actions.
|
|
@@ -4098,7 +4098,7 @@ var Hp = class {
|
|
|
4098
4098
|
}), a ? a.then(i).catch(() => r.reset()) : i();
|
|
4099
4099
|
});
|
|
4100
4100
|
}
|
|
4101
|
-
}, xu, Eu, Iu, Au, dt, Us, Xs, Ys,
|
|
4101
|
+
}, xu, Eu, Iu, Au, dt, Us, Xs, Ys, Ks;
|
|
4102
4102
|
Au = [fe], Iu = [fe], Eu = [fe], xu = [fe];
|
|
4103
4103
|
var cn = class {
|
|
4104
4104
|
/**
|
|
@@ -4108,7 +4108,7 @@ var cn = class {
|
|
|
4108
4108
|
* @param manager - The manager that controls the drag and drop operations.
|
|
4109
4109
|
*/
|
|
4110
4110
|
constructor(e, t) {
|
|
4111
|
-
Se(this, Us, J(dt, 8, this)), J(dt, 11, this), Se(this, Xs, J(dt, 12, this)), J(dt, 15, this), Se(this, Ys, J(dt, 16, this)), J(dt, 19, this), Se(this,
|
|
4111
|
+
Se(this, Us, J(dt, 8, this)), J(dt, 11, this), Se(this, Xs, J(dt, 12, this)), J(dt, 15, this), Se(this, Ys, J(dt, 16, this)), J(dt, 19, this), Se(this, Ks, J(dt, 20, this)), J(dt, 23, this);
|
|
4112
4112
|
const { effects: n, id: r, data: o = {}, disabled: a = !1, register: s = !0 } = e;
|
|
4113
4113
|
let i = r;
|
|
4114
4114
|
this.manager = t, this.id = r, this.data = o, this.disabled = a, this.effects = () => {
|
|
@@ -4152,11 +4152,11 @@ dt = tr(null);
|
|
|
4152
4152
|
Us = /* @__PURE__ */ new WeakMap();
|
|
4153
4153
|
Xs = /* @__PURE__ */ new WeakMap();
|
|
4154
4154
|
Ys = /* @__PURE__ */ new WeakMap();
|
|
4155
|
-
|
|
4155
|
+
Ks = /* @__PURE__ */ new WeakMap();
|
|
4156
4156
|
ce(dt, 4, "manager", Au, cn, Us);
|
|
4157
4157
|
ce(dt, 4, "id", Iu, cn, Xs);
|
|
4158
4158
|
ce(dt, 4, "data", Eu, cn, Ys);
|
|
4159
|
-
ce(dt, 4, "disabled", xu, cn,
|
|
4159
|
+
ce(dt, 4, "disabled", xu, cn, Ks);
|
|
4160
4160
|
Cn(dt, cn);
|
|
4161
4161
|
var Bl = class {
|
|
4162
4162
|
constructor() {
|
|
@@ -4217,10 +4217,10 @@ var Bl = class {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
this.map.value = /* @__PURE__ */ new Map();
|
|
4219
4219
|
}
|
|
4220
|
-
}, Mu, Tu, $u, Du, Ru, Pu, es, at,
|
|
4220
|
+
}, Mu, Tu, $u, Du, Ru, Pu, es, at, js, qs, Js, Vt = class extends (es = cn, Pu = [fe], Ru = [fe], Du = [fe], $u = [Re], Tu = [Re], Mu = [Re], es) {
|
|
4221
4221
|
constructor(t, n) {
|
|
4222
4222
|
var r = t, { modifiers: o, type: a, sensors: s } = r, i = pu(r, ["modifiers", "type", "sensors"]);
|
|
4223
|
-
super(i, n), J(at, 5, this), Se(this,
|
|
4223
|
+
super(i, n), J(at, 5, this), Se(this, js, J(at, 8, this)), J(at, 11, this), Se(this, qs, J(at, 12, this)), J(at, 15, this), Se(this, Js, J(at, 16, this, this.isDragSource ? "dragging" : "idle")), J(at, 19, this), this.type = a, this.sensors = s, this.modifiers = o, this.alignment = i.alignment;
|
|
4224
4224
|
}
|
|
4225
4225
|
get isDropping() {
|
|
4226
4226
|
return this.status === "dropping" && this.isDragSource;
|
|
@@ -4234,10 +4234,10 @@ var Bl = class {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
};
|
|
4236
4236
|
at = tr(es);
|
|
4237
|
-
|
|
4237
|
+
js = /* @__PURE__ */ new WeakMap();
|
|
4238
4238
|
qs = /* @__PURE__ */ new WeakMap();
|
|
4239
4239
|
Js = /* @__PURE__ */ new WeakMap();
|
|
4240
|
-
ce(at, 4, "type", Pu, Vt,
|
|
4240
|
+
ce(at, 4, "type", Pu, Vt, js);
|
|
4241
4241
|
ce(at, 4, "modifiers", Ru, Vt, qs);
|
|
4242
4242
|
ce(at, 4, "status", Du, Vt, Js);
|
|
4243
4243
|
ce(at, 2, "isDropping", $u, Vt);
|
|
@@ -4393,8 +4393,8 @@ var Gn = class extends ft {
|
|
|
4393
4393
|
destroy() {
|
|
4394
4394
|
this.draggables.destroy(), this.droppables.destroy(), this.plugins.destroy(), this.sensors.destroy(), this.modifiers.destroy();
|
|
4395
4395
|
}
|
|
4396
|
-
}, zu, Zu, Hu, Gu, Uu, Xu, Yu,
|
|
4397
|
-
|
|
4396
|
+
}, zu, Zu, Hu, Gu, Uu, Xu, Yu, Ku, ju, fr, wo, Ln, Be, oi, ai, si, ii, li, hr;
|
|
4397
|
+
ju = [Re], Ku = [fe], Yu = [fe], Xu = [fe], Uu = [fe], Gu = [fe], Hu = [Re], Zu = [Re], zu = [Re];
|
|
4398
4398
|
var Ft = class {
|
|
4399
4399
|
/**
|
|
4400
4400
|
* Creates a new drag operation instance.
|
|
@@ -4405,7 +4405,7 @@ var Ft = class {
|
|
|
4405
4405
|
J(Be, 5, this), Se(this, fr), Se(this, wo), Se(this, Ln, new ln(
|
|
4406
4406
|
void 0,
|
|
4407
4407
|
(t, n) => t && n ? t.equals(n) : t === n
|
|
4408
|
-
)), this.status = new
|
|
4408
|
+
)), this.status = new Kt(), Se(this, oi, J(Be, 8, this, !1)), J(Be, 11, this), Se(this, ai, J(Be, 12, this, null)), J(Be, 15, this), Se(this, si, J(Be, 16, this, null)), J(Be, 19, this), Se(this, ii, J(Be, 20, this, null)), J(Be, 23, this), Se(this, li, J(Be, 24, this, [])), J(Be, 27, this), this.position = new Qo({ x: 0, y: 0 }), Se(this, hr, { x: 0, y: 0 }), Ct(this, fr, e);
|
|
4409
4409
|
}
|
|
4410
4410
|
get shape() {
|
|
4411
4411
|
const { current: e, initial: t, previous: n } = Xe(this, Ln);
|
|
@@ -4487,8 +4487,8 @@ si = /* @__PURE__ */ new WeakMap();
|
|
|
4487
4487
|
ii = /* @__PURE__ */ new WeakMap();
|
|
4488
4488
|
li = /* @__PURE__ */ new WeakMap();
|
|
4489
4489
|
hr = /* @__PURE__ */ new WeakMap();
|
|
4490
|
-
ce(Be, 2, "shape",
|
|
4491
|
-
ce(Be, 4, "canceled",
|
|
4490
|
+
ce(Be, 2, "shape", ju, Ft);
|
|
4491
|
+
ce(Be, 4, "canceled", Ku, Ft, oi);
|
|
4492
4492
|
ce(Be, 4, "activatorEvent", Yu, Ft, ai);
|
|
4493
4493
|
ce(Be, 4, "sourceIdentifier", Xu, Ft, si);
|
|
4494
4494
|
ce(Be, 4, "targetIdentifier", Uu, Ft, ii);
|
|
@@ -4586,7 +4586,7 @@ var Yp = class {
|
|
|
4586
4586
|
function ea(e) {
|
|
4587
4587
|
return e ? e instanceof KeyframeEffect ? !0 : "getKeyframes" in e && typeof e.getKeyframes == "function" : !1;
|
|
4588
4588
|
}
|
|
4589
|
-
function
|
|
4589
|
+
function Kp(e, t) {
|
|
4590
4590
|
const n = e.getAnimations();
|
|
4591
4591
|
if (n.length > 0)
|
|
4592
4592
|
for (const r of n) {
|
|
@@ -4626,7 +4626,7 @@ function Qu(e) {
|
|
|
4626
4626
|
function En(e) {
|
|
4627
4627
|
return e ? ui(e) ? e.document : Nr(e) ? di(e) ? e : bn(e) || Qu(e) ? e.ownerDocument : document : document : document;
|
|
4628
4628
|
}
|
|
4629
|
-
function
|
|
4629
|
+
function jp(e) {
|
|
4630
4630
|
var t, n, r, o;
|
|
4631
4631
|
const { documentElement: a } = En(e), s = At(e).visualViewport, i = (t = s?.width) != null ? t : a.clientWidth, l = (n = s?.height) != null ? n : a.clientHeight, c = (r = s?.offsetTop) != null ? r : 0, u = (o = s?.offsetLeft) != null ? o : 0;
|
|
4632
4632
|
return {
|
|
@@ -5013,7 +5013,7 @@ function Zl(e) {
|
|
|
5013
5013
|
}
|
|
5014
5014
|
function ud(e) {
|
|
5015
5015
|
var t, n;
|
|
5016
|
-
const r = At(e), o = Zl(e) ?
|
|
5016
|
+
const r = At(e), o = Zl(e) ? jp(e) : ta(e), a = r.visualViewport, s = Zl(e) ? {
|
|
5017
5017
|
height: (t = a?.height) != null ? t : r.innerHeight,
|
|
5018
5018
|
width: (n = a?.width) != null ? n : r.innerWidth
|
|
5019
5019
|
} : {
|
|
@@ -5066,7 +5066,7 @@ var pi = class {
|
|
|
5066
5066
|
}, Fo = new pi((e) => {
|
|
5067
5067
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(e) : e();
|
|
5068
5068
|
}), hm = new pi((e) => setTimeout(e, 50)), Oo = /* @__PURE__ */ new Map(), pm = Oo.clear.bind(Oo);
|
|
5069
|
-
function
|
|
5069
|
+
function jt(e, t = !1) {
|
|
5070
5070
|
if (!t) return Hl(e);
|
|
5071
5071
|
let n = Oo.get(e);
|
|
5072
5072
|
return n || (n = Hl(e), Oo.set(e, n), hm.schedule(pm), n);
|
|
@@ -5074,10 +5074,10 @@ function Kt(e, t = !1) {
|
|
|
5074
5074
|
function Hl(e) {
|
|
5075
5075
|
return At(e).getComputedStyle(e);
|
|
5076
5076
|
}
|
|
5077
|
-
function mm(e, t =
|
|
5077
|
+
function mm(e, t = jt(e, !0)) {
|
|
5078
5078
|
return t.position === "fixed" || t.position === "sticky";
|
|
5079
5079
|
}
|
|
5080
|
-
function gm(e, t =
|
|
5080
|
+
function gm(e, t = jt(e, !0)) {
|
|
5081
5081
|
const n = /(auto|scroll|overlay)/;
|
|
5082
5082
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
5083
5083
|
const a = t[o];
|
|
@@ -5101,7 +5101,7 @@ function as(e, t = vm) {
|
|
|
5101
5101
|
return Qu(i) ? s(i.parentElement) : a;
|
|
5102
5102
|
if (a.has(i))
|
|
5103
5103
|
return a;
|
|
5104
|
-
const l =
|
|
5104
|
+
const l = jt(i, !0);
|
|
5105
5105
|
if (r && i === e || gm(i, l) && a.add(i), mm(i, l)) {
|
|
5106
5106
|
const { scrollingElement: c } = i.ownerDocument;
|
|
5107
5107
|
return c && a.add(c), a;
|
|
@@ -5138,7 +5138,7 @@ function bm(e, t = ta(e)) {
|
|
|
5138
5138
|
x: n / e.offsetWidth,
|
|
5139
5139
|
y: r / e.offsetHeight
|
|
5140
5140
|
};
|
|
5141
|
-
const o =
|
|
5141
|
+
const o = jt(e, !0);
|
|
5142
5142
|
return {
|
|
5143
5143
|
x: (parseFloat(o.width) || n) / n,
|
|
5144
5144
|
y: (parseFloat(o.height) || r) / r
|
|
@@ -5216,7 +5216,7 @@ var xt = /* @__PURE__ */ ((e) => (e[e.Idle = 0] = "Idle", e[e.Forward = 1] = "Fo
|
|
|
5216
5216
|
y: 10
|
|
5217
5217
|
};
|
|
5218
5218
|
function Cm(e, t, n, r = 25, o = Sm, a = km) {
|
|
5219
|
-
const { x: s, y: i } = t, { rect: l, isTop: c, isBottom: u, isLeft: f, isRight: p } = ud(e), d = Yn(e), h =
|
|
5219
|
+
const { x: s, y: i } = t, { rect: l, isTop: c, isBottom: u, isLeft: f, isRight: p } = ud(e), d = Yn(e), h = jt(e, !0), g = gi(h), m = g !== null ? g?.scaleX < 0 : !1, v = g !== null ? g?.scaleY < 0 : !1, y = new Br(
|
|
5220
5220
|
l.left * d.scaleX + d.x,
|
|
5221
5221
|
l.top * d.scaleY + d.y,
|
|
5222
5222
|
l.width * d.scaleX,
|
|
@@ -5258,7 +5258,7 @@ function Em(e, t = !1) {
|
|
|
5258
5258
|
var n = ym(e);
|
|
5259
5259
|
if (!bn(n))
|
|
5260
5260
|
return;
|
|
5261
|
-
const r =
|
|
5261
|
+
const r = jt(n, !0), o = parseInt(
|
|
5262
5262
|
r.getPropertyValue("border-top-width")
|
|
5263
5263
|
), a = parseInt(
|
|
5264
5264
|
r.getPropertyValue("border-left-width")
|
|
@@ -5334,7 +5334,7 @@ var Xt = class extends Br {
|
|
|
5334
5334
|
isValidTarget: (_) => (_ !== e || fi()) && _.contains(e)
|
|
5335
5335
|
}), u = l(e);
|
|
5336
5336
|
let { top: f, left: p, width: d, height: h } = u, g;
|
|
5337
|
-
const m =
|
|
5337
|
+
const m = jt(e), v = gi(m), y = {
|
|
5338
5338
|
x: (n = v?.scaleX) != null ? n : 1,
|
|
5339
5339
|
y: (r = v?.scaleY) != null ? r : 1
|
|
5340
5340
|
}, b = Pm(e, m);
|
|
@@ -5523,7 +5523,7 @@ var Wm = ({
|
|
|
5523
5523
|
}, wi = (e, t, n) => t.has(e) || nr("Cannot " + n), Xm = (e, t) => Object(t) !== t ? nr('Cannot use the "in" operator on this value') : e.has(t), Ee = (e, t, n) => (wi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), We = (e, t, n) => t.has(e) ? nr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), st = (e, t, n, r) => (wi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), _n = (e, t, n) => (wi(e, t, "access private method"), n), Ul = {
|
|
5524
5524
|
role: "button",
|
|
5525
5525
|
roleDescription: "draggable"
|
|
5526
|
-
}, Ym = "dnd-kit-description",
|
|
5526
|
+
}, Ym = "dnd-kit-description", Km = "dnd-kit-announcement", jm = {
|
|
5527
5527
|
draggable: "To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."
|
|
5528
5528
|
}, qm = {
|
|
5529
5529
|
dragstart({ operation: { source: e } }) {
|
|
@@ -5558,10 +5558,10 @@ var tg = ["dragover", "dragmove"], ng = class extends ft {
|
|
|
5558
5558
|
id: n,
|
|
5559
5559
|
idPrefix: {
|
|
5560
5560
|
description: r = Ym,
|
|
5561
|
-
announcement: o =
|
|
5561
|
+
announcement: o = Km
|
|
5562
5562
|
} = {},
|
|
5563
5563
|
announcements: a = qm,
|
|
5564
|
-
screenReaderInstructions: s =
|
|
5564
|
+
screenReaderInstructions: s = jm,
|
|
5565
5565
|
debounce: i = 500
|
|
5566
5566
|
} = t ?? {}, l = n ? `${r}-${n}` : ss(r), c = n ? `${o}-${n}` : ss(o);
|
|
5567
5567
|
let u, f, p, d;
|
|
@@ -5648,9 +5648,9 @@ var og = class extends ft {
|
|
|
5648
5648
|
}
|
|
5649
5649
|
});
|
|
5650
5650
|
}
|
|
5651
|
-
}, Bo = /* @__PURE__ */ new Map(), gd, vd, yd, bd, ls, xr, Yt, _i,
|
|
5651
|
+
}, Bo = /* @__PURE__ */ new Map(), gd, vd, yd, bd, ls, xr, Yt, _i, Kn, wd, _d, Sd, kd, An = class extends (ls = Vr, bd = [fe], yd = [Re], vd = [Re], gd = [Re], ls) {
|
|
5652
5652
|
constructor(e) {
|
|
5653
|
-
super(e), ze(Yt, 5, this), We(this,
|
|
5653
|
+
super(e), ze(Yt, 5, this), We(this, Kn), We(this, xr, /* @__PURE__ */ new Set()), We(this, _i, ze(Yt, 8, this, /* @__PURE__ */ new Set())), ze(Yt, 11, this), this.registerEffect(_n(this, Kn, wd));
|
|
5654
5654
|
}
|
|
5655
5655
|
/**
|
|
5656
5656
|
* Registers CSS rules to be injected into the active drag operation's
|
|
@@ -5703,12 +5703,12 @@ var og = class extends ft {
|
|
|
5703
5703
|
Yt = rr(ls);
|
|
5704
5704
|
xr = /* @__PURE__ */ new WeakMap();
|
|
5705
5705
|
_i = /* @__PURE__ */ new WeakMap();
|
|
5706
|
-
|
|
5706
|
+
Kn = /* @__PURE__ */ new WeakSet();
|
|
5707
5707
|
wd = function() {
|
|
5708
5708
|
const { roots: e } = this, t = [];
|
|
5709
5709
|
for (const n of e)
|
|
5710
5710
|
for (const r of Ee(this, xr))
|
|
5711
|
-
t.push(_n(this,
|
|
5711
|
+
t.push(_n(this, Kn, _d).call(this, n, r));
|
|
5712
5712
|
return () => {
|
|
5713
5713
|
for (const n of t)
|
|
5714
5714
|
n();
|
|
@@ -5719,7 +5719,7 @@ _d = function(e, t) {
|
|
|
5719
5719
|
n || (n = /* @__PURE__ */ new Map(), Bo.set(e, n));
|
|
5720
5720
|
let r = n.get(t);
|
|
5721
5721
|
if (!r) {
|
|
5722
|
-
const a = di(e) ? _n(this,
|
|
5722
|
+
const a = di(e) ? _n(this, Kn, Sd).call(this, e, n, t) : _n(this, Kn, kd).call(this, e, n, t);
|
|
5723
5723
|
if (!a)
|
|
5724
5724
|
return () => {
|
|
5725
5725
|
};
|
|
@@ -5991,14 +5991,14 @@ function vg(e) {
|
|
|
5991
5991
|
easing: i = gg
|
|
5992
5992
|
} = a ?? {};
|
|
5993
5993
|
Tr(e.feedbackElement);
|
|
5994
|
-
const [, l] = (t =
|
|
5994
|
+
const [, l] = (t = Kp(
|
|
5995
5995
|
e.feedbackElement,
|
|
5996
5996
|
(y) => "translate" in y
|
|
5997
5997
|
)) != null ? t : [];
|
|
5998
5998
|
l?.pause();
|
|
5999
5999
|
const c = (n = e.placeholder) != null ? n : e.element, u = {
|
|
6000
6000
|
frameTransform: Cd(e.feedbackElement, c) ? null : void 0
|
|
6001
|
-
}, f = new Xt(e.feedbackElement, u), p = (r = mi(
|
|
6001
|
+
}, f = new Xt(e.feedbackElement, u), p = (r = mi(jt(e.feedbackElement).translate)) != null ? r : e.translate, d = new Xt(c, u), h = Br.delta(f, d, e.alignment), g = {
|
|
6002
6002
|
x: p.x - h.x,
|
|
6003
6003
|
y: p.y - h.y
|
|
6004
6004
|
}, m = Math.round(f.intrinsicHeight) !== Math.round(d.intrinsicHeight) ? {
|
|
@@ -6096,7 +6096,7 @@ Id = function() {
|
|
|
6096
6096
|
borderInlineEndWidth: L,
|
|
6097
6097
|
borderBlockStartWidth: Y,
|
|
6098
6098
|
borderBlockEndWidth: te
|
|
6099
|
-
} =
|
|
6099
|
+
} = jt(u), ne = f === "clone", he = I === "content-box", re = he ? parseInt(D) + parseInt(R) + parseInt(O) + parseInt(L) : 0, le = he ? parseInt($) + parseInt(A) + parseInt(Y) + parseInt(te) : 0, se = f !== "move" && !this.overlay ? lg(l, ne ? "clone" : "hidden") : null, ue = ke(
|
|
6100
6100
|
() => vi(o.dragOperation.activatorEvent)
|
|
6101
6101
|
);
|
|
6102
6102
|
if (E !== "none") {
|
|
@@ -6200,7 +6200,7 @@ Id = function() {
|
|
|
6200
6200
|
l.status = "idle";
|
|
6201
6201
|
const ye = r.current.translate != null;
|
|
6202
6202
|
se && (ye || se.parentElement !== d.parentElement) && d.isConnected && se.replaceWith(d), se?.remove();
|
|
6203
|
-
}, ve = a?.dropAnimation,
|
|
6203
|
+
}, ve = a?.dropAnimation, Ke = this, je = Lr(
|
|
6204
6204
|
// Update transform on move
|
|
6205
6205
|
() => {
|
|
6206
6206
|
var Q;
|
|
@@ -6209,7 +6209,7 @@ Id = function() {
|
|
|
6209
6209
|
const $t = (Q = p.translate) != null ? Q : { x: 0, y: 0 }, N = {
|
|
6210
6210
|
x: ye.x / h.scaleX + $t.x,
|
|
6211
6211
|
y: ye.y / h.scaleY + $t.y
|
|
6212
|
-
}, X = r.current.translate, U = ke(() => s.modifiers),
|
|
6212
|
+
}, X = r.current.translate, U = ke(() => s.modifiers), j = ke(() => {
|
|
6213
6213
|
var De;
|
|
6214
6214
|
return (De = s.shape) == null ? void 0 : De.current;
|
|
6215
6215
|
}), Ae = ue && !vt ? "250ms cubic-bezier(0.25, 1, 0.5, 1)" : "0ms linear";
|
|
@@ -6219,10 +6219,10 @@ Id = function() {
|
|
|
6219
6219
|
translate: `${N.x}px ${N.y}px 0`
|
|
6220
6220
|
},
|
|
6221
6221
|
nt
|
|
6222
|
-
), we?.takeRecords(),
|
|
6222
|
+
), we?.takeRecords(), j && j !== lt && X && !U.length) {
|
|
6223
6223
|
const De = Bt.delta(N, X);
|
|
6224
6224
|
s.shape = Br.from(
|
|
6225
|
-
|
|
6225
|
+
j.boundingRectangle
|
|
6226
6226
|
).translate(
|
|
6227
6227
|
De.x * h.scaleX,
|
|
6228
6228
|
De.y * h.scaleY
|
|
@@ -6236,7 +6236,7 @@ Id = function() {
|
|
|
6236
6236
|
function() {
|
|
6237
6237
|
if (s.status.dropped) {
|
|
6238
6238
|
this.dispose(), l.status = "dropping";
|
|
6239
|
-
const Q =
|
|
6239
|
+
const Q = Ke.dropAnimation !== void 0 ? Ke.dropAnimation : ve;
|
|
6240
6240
|
let ye = r.current.translate;
|
|
6241
6241
|
const qe = ye != null;
|
|
6242
6242
|
if (!ye && u !== d && (ye = { x: 0, y: 0 }), !ye || Q === null) {
|
|
@@ -6263,7 +6263,7 @@ Id = function() {
|
|
|
6263
6263
|
}
|
|
6264
6264
|
);
|
|
6265
6265
|
return () => {
|
|
6266
|
-
Z(),
|
|
6266
|
+
Z(), je();
|
|
6267
6267
|
};
|
|
6268
6268
|
};
|
|
6269
6269
|
St(Dr, 4, "overlay", xd, Rr, Si);
|
|
@@ -6309,8 +6309,8 @@ var bg = [xt.Forward, xt.Reverse], Yl = class {
|
|
|
6309
6309
|
const { delta: o } = e.dragOperation.position;
|
|
6310
6310
|
if (n) {
|
|
6311
6311
|
const a = {
|
|
6312
|
-
x:
|
|
6313
|
-
y:
|
|
6312
|
+
x: Kl(o.x, n.x),
|
|
6313
|
+
y: Kl(o.y, n.y)
|
|
6314
6314
|
}, s = t.peek();
|
|
6315
6315
|
an(() => {
|
|
6316
6316
|
for (const i of lu)
|
|
@@ -6326,7 +6326,7 @@ var bg = [xt.Forward, xt.Reverse], Yl = class {
|
|
|
6326
6326
|
return this.signal.peek();
|
|
6327
6327
|
}
|
|
6328
6328
|
};
|
|
6329
|
-
function
|
|
6329
|
+
function Kl(e, t) {
|
|
6330
6330
|
return Math.sign(e - t);
|
|
6331
6331
|
}
|
|
6332
6332
|
var Dd, hs, Fr, xi, en, ps, na = class extends (hs = Vr, Dd = [fe], hs) {
|
|
@@ -6346,8 +6346,8 @@ var Dd, hs, Fr, xi, en, ps, na = class extends (hs = Vr, Dd = [fe], hs) {
|
|
|
6346
6346
|
const { position: l } = this.manager.dragOperation, c = l?.current;
|
|
6347
6347
|
if (c) {
|
|
6348
6348
|
const { by: u } = a ?? {}, f = u ? {
|
|
6349
|
-
x:
|
|
6350
|
-
y:
|
|
6349
|
+
x: jl(u.x),
|
|
6350
|
+
y: jl(u.y)
|
|
6351
6351
|
} : void 0, p = f ? void 0 : this.scrollIntentTracker.current;
|
|
6352
6352
|
if (p?.isLocked())
|
|
6353
6353
|
return !1;
|
|
@@ -6422,7 +6422,7 @@ en = /* @__PURE__ */ new WeakMap();
|
|
|
6422
6422
|
ps = /* @__PURE__ */ new WeakMap();
|
|
6423
6423
|
St(Fr, 4, "autoScrolling", Dd, na, xi);
|
|
6424
6424
|
In(Fr, na);
|
|
6425
|
-
function
|
|
6425
|
+
function jl(e) {
|
|
6426
6426
|
return e > 0 ? xt.Forward : e < 0 ? xt.Reverse : xt.Idle;
|
|
6427
6427
|
}
|
|
6428
6428
|
var _g = class {
|
|
@@ -7025,7 +7025,7 @@ function zo(e) {
|
|
|
7025
7025
|
if (e != null)
|
|
7026
7026
|
return Dg(e) ? (t = e.current) != null ? t : void 0 : e;
|
|
7027
7027
|
}
|
|
7028
|
-
var Rg = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ra = Rg ? Sn :
|
|
7028
|
+
var Rg = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ra = Rg ? Sn : K;
|
|
7029
7029
|
function Pg() {
|
|
7030
7030
|
const e = z(0)[1];
|
|
7031
7031
|
return T(() => {
|
|
@@ -7058,7 +7058,7 @@ function Fg(e, t) {
|
|
|
7058
7058
|
[e]
|
|
7059
7059
|
);
|
|
7060
7060
|
}
|
|
7061
|
-
function fn(e, t, n =
|
|
7061
|
+
function fn(e, t, n = K, r = Object.is) {
|
|
7062
7062
|
const o = M(e);
|
|
7063
7063
|
n(() => {
|
|
7064
7064
|
const a = o.current;
|
|
@@ -7170,16 +7170,16 @@ function Ta(e) {
|
|
|
7170
7170
|
function Xg(e, t, n) {
|
|
7171
7171
|
return !!(e === "isDragSource" && !n && t);
|
|
7172
7172
|
}
|
|
7173
|
-
var Yg = Object.create, zd = Object.defineProperty,
|
|
7173
|
+
var Yg = Object.create, zd = Object.defineProperty, Kg = Object.getOwnPropertyDescriptor, Zd = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), oa = (e) => {
|
|
7174
7174
|
throw TypeError(e);
|
|
7175
|
-
},
|
|
7175
|
+
}, jg = (e, t, n) => t in e ? zd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qg = (e) => {
|
|
7176
7176
|
var t;
|
|
7177
7177
|
return [, , , Yg((t = e?.[Zd("metadata")]) != null ? t : null)];
|
|
7178
|
-
}, Hd = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Gd = (e) => e !== void 0 && typeof e != "function" ? oa("Function expected") : e, Jg = (e, t, n, r, o) => ({ kind: Hd[e], name: t, metadata: r, addInitializer: (a) => n._ ? oa("Already initialized") : o.push(Gd(a || null)) }), Qg = (e, t) =>
|
|
7178
|
+
}, Hd = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Gd = (e) => e !== void 0 && typeof e != "function" ? oa("Function expected") : e, Jg = (e, t, n, r, o) => ({ kind: Hd[e], name: t, metadata: r, addInitializer: (a) => n._ ? oa("Already initialized") : o.push(Gd(a || null)) }), Qg = (e, t) => jg(t, Zd("metadata"), e[3]), ev = (e, t, n, r) => {
|
|
7179
7179
|
for (var o = 0, a = e[t >> 1], s = a && a.length; o < s; o++) a[o].call(n);
|
|
7180
7180
|
return r;
|
|
7181
7181
|
}, Ud = (e, t, n, r, o, a) => {
|
|
7182
|
-
for (var s, i, l, c, u = t & 7, f = !1, p = !1, d = 2, h = Hd[u + 5], g = e[d] || (e[d] = []), m = (o = o.prototype,
|
|
7182
|
+
for (var s, i, l, c, u = t & 7, f = !1, p = !1, d = 2, h = Hd[u + 5], g = e[d] || (e[d] = []), m = (o = o.prototype, Kg(o, n)), v = r.length - 1; v >= 0; v--)
|
|
7183
7183
|
l = Jg(u, n, i = {}, e[3], g), l.static = f, l.private = p, c = l.access = { has: (y) => n in y }, c.get = (y) => y[n], s = (0, r[v])(m[h], l), i._ = 1, Gd(s) && (m[h] = s);
|
|
7184
7184
|
return m && zd(o, n, m), o;
|
|
7185
7185
|
}, Xd = (e, t, n) => t.has(e) || oa("Cannot " + n), tv = (e, t, n) => (Xd(e, t, "read from private field"), t.get(e)), nv = (e, t, n) => t.has(e) ? oa("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), rv = (e, t, n, r) => (Xd(e, t, "write to private field"), t.set(e, n), n), sr = class bs {
|
|
@@ -7220,7 +7220,7 @@ var Yg = Object.create, zd = Object.defineProperty, jg = Object.getOwnPropertyDe
|
|
|
7220
7220
|
static from({ x: t, y: n }) {
|
|
7221
7221
|
return new bs(t, n);
|
|
7222
7222
|
}
|
|
7223
|
-
}, Yd,
|
|
7223
|
+
}, Yd, Kd, ws, Co, Hr, Di = class extends (ws = ln, Kd = [Re], Yd = [Re], ws) {
|
|
7224
7224
|
constructor(t) {
|
|
7225
7225
|
const n = sr.from(t);
|
|
7226
7226
|
super(n, (r, o) => sr.equals(r, o)), ev(Hr, 5, this), nv(this, Co, 0), this.velocity = { x: 0, y: 0 };
|
|
@@ -7258,11 +7258,11 @@ var Yg = Object.create, zd = Object.defineProperty, jg = Object.getOwnPropertyDe
|
|
|
7258
7258
|
};
|
|
7259
7259
|
Hr = qg(ws);
|
|
7260
7260
|
Co = /* @__PURE__ */ new WeakMap();
|
|
7261
|
-
Ud(Hr, 2, "delta",
|
|
7261
|
+
Ud(Hr, 2, "delta", Kd, Di);
|
|
7262
7262
|
Ud(Hr, 2, "direction", Yd, Di);
|
|
7263
7263
|
Qg(Hr, Di);
|
|
7264
|
-
var
|
|
7265
|
-
Object.values(
|
|
7264
|
+
var jd = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(jd || {});
|
|
7265
|
+
Object.values(jd);
|
|
7266
7266
|
const ov = /* @__PURE__ */ new Map([
|
|
7267
7267
|
[
|
|
7268
7268
|
"bold",
|
|
@@ -7847,7 +7847,7 @@ var af = {
|
|
|
7847
7847
|
}, [a]);
|
|
7848
7848
|
return Sn(() => {
|
|
7849
7849
|
a();
|
|
7850
|
-
}, [a]),
|
|
7850
|
+
}, [a]), K(() => {
|
|
7851
7851
|
const i = e.current;
|
|
7852
7852
|
if (!i) return;
|
|
7853
7853
|
i.addEventListener("scroll", s, { passive: !0 });
|
|
@@ -7897,7 +7897,7 @@ function sa() {
|
|
|
7897
7897
|
e.current.set(r, n);
|
|
7898
7898
|
}
|
|
7899
7899
|
}, []);
|
|
7900
|
-
return
|
|
7900
|
+
return K(() => {
|
|
7901
7901
|
const n = e.current;
|
|
7902
7902
|
for (const [r, o] of n.entries())
|
|
7903
7903
|
o.isConnected || n.delete(r);
|
|
@@ -8553,12 +8553,12 @@ var Gv = F.div`
|
|
|
8553
8553
|
overflow-anchor: none;
|
|
8554
8554
|
flex: 1;
|
|
8555
8555
|
position: relative;
|
|
8556
|
-
`,
|
|
8556
|
+
`, Kv = F.div.attrs((e) => ({
|
|
8557
8557
|
style: e.$width !== void 0 ? { width: `${e.$width}px` } : {}
|
|
8558
8558
|
}))`
|
|
8559
8559
|
position: relative;
|
|
8560
8560
|
background: ${(e) => e.$backgroundColor || "transparent"};
|
|
8561
|
-
`,
|
|
8561
|
+
`, jv = F.div.attrs((e) => ({
|
|
8562
8562
|
style: e.$width ? { minWidth: `${e.$width}px` } : {}
|
|
8563
8563
|
}))`
|
|
8564
8564
|
background: ${(e) => e.$backgroundColor || "white"};
|
|
@@ -8609,8 +8609,8 @@ var Gv = F.div`
|
|
|
8609
8609
|
g > 0 && /* @__PURE__ */ k(Xv, { $height: g }),
|
|
8610
8610
|
h
|
|
8611
8611
|
] }),
|
|
8612
|
-
/* @__PURE__ */ k(Yv, { "data-scroll-container": "true", ref: v, children: /* @__PURE__ */ k(yv, { containerRef: m, children: /* @__PURE__ */ de(
|
|
8613
|
-
r && /* @__PURE__ */ k(
|
|
8612
|
+
/* @__PURE__ */ k(Yv, { "data-scroll-container": "true", ref: v, children: /* @__PURE__ */ k(yv, { containerRef: m, children: /* @__PURE__ */ de(Kv, { $backgroundColor: t, $width: a, children: [
|
|
8613
|
+
r && /* @__PURE__ */ k(jv, { $width: o, $backgroundColor: n, children: r }),
|
|
8614
8614
|
/* @__PURE__ */ de(qv, { $width: a, $backgroundColor: t, children: [
|
|
8615
8615
|
e,
|
|
8616
8616
|
(i || l) && /* @__PURE__ */ k(
|
|
@@ -8933,7 +8933,7 @@ var sc = ({
|
|
|
8933
8933
|
readOnly: s = !1
|
|
8934
8934
|
}) => {
|
|
8935
8935
|
const [i, l] = z("");
|
|
8936
|
-
return
|
|
8936
|
+
return K(() => {
|
|
8937
8937
|
const p = Zn(n, r);
|
|
8938
8938
|
l(p);
|
|
8939
8939
|
}, [n, r, e]), /* @__PURE__ */ de(Wt, { children: [
|
|
@@ -8970,7 +8970,7 @@ var sc = ({
|
|
|
8970
8970
|
className: r
|
|
8971
8971
|
}) => {
|
|
8972
8972
|
const [o, a] = z("hh:mm:ss.uuu");
|
|
8973
|
-
return
|
|
8973
|
+
return K(() => {
|
|
8974
8974
|
const l = document.querySelector(".time-format"), c = () => {
|
|
8975
8975
|
l && a(l.value);
|
|
8976
8976
|
};
|
|
@@ -9085,11 +9085,11 @@ var d0 = F.div.attrs((e) => ({
|
|
|
9085
9085
|
onCanvasesReady: l
|
|
9086
9086
|
}) => {
|
|
9087
9087
|
const c = t ?? e, { canvasRef: u, canvasMapRef: f } = sa(), p = M([]), d = M(/* @__PURE__ */ new WeakSet()), h = M(s), g = M(l), m = Pi(), v = aa(n, Ze, m);
|
|
9088
|
-
|
|
9088
|
+
K(() => {
|
|
9089
9089
|
h.current = s;
|
|
9090
|
-
}, [s]),
|
|
9090
|
+
}, [s]), K(() => {
|
|
9091
9091
|
g.current = l;
|
|
9092
|
-
}, [l]),
|
|
9092
|
+
}, [l]), K(() => {
|
|
9093
9093
|
const b = h.current;
|
|
9094
9094
|
if (!b || !i) return;
|
|
9095
9095
|
const w = p.current.length, _ = [];
|
|
@@ -9139,7 +9139,7 @@ var d0 = F.div.attrs((e) => ({
|
|
|
9139
9139
|
});
|
|
9140
9140
|
g.current?.(x, E);
|
|
9141
9141
|
}
|
|
9142
|
-
}, [f, i, c, n, v]),
|
|
9142
|
+
}, [f, i, c, n, v]), K(() => () => {
|
|
9143
9143
|
const b = h.current;
|
|
9144
9144
|
if (b) {
|
|
9145
9145
|
for (const w of p.current)
|
|
@@ -9456,7 +9456,7 @@ var _0 = F.div.attrs((e) => ({
|
|
|
9456
9456
|
const { samplesPerPixel: t, sampleRate: n, duration: r, timeScaleHeight: o } = Pe(Ur), a = hf(), s = Ce(() => {
|
|
9457
9457
|
const i = Bh(r / 1e3, t, n);
|
|
9458
9458
|
if (a && a.scaleMode === "beats") {
|
|
9459
|
-
const { bpm: m, timeSignature: v, ticksPerBar: y, ticksPerBeat: b } = a, w = /* @__PURE__ */ new Map(), _ = [], S = r / 1e3, C = Math.ceil(S * m *
|
|
9459
|
+
const { bpm: m, timeSignature: v, ticksPerBar: y, ticksPerBeat: b } = a, w = /* @__PURE__ */ new Map(), _ = [], S = r / 1e3, C = Math.ceil(S * m * jn / 60), x = Nn(b, m, n) / t, E = Nn(y, m, n) / t, I = 10, $ = 30;
|
|
9460
9460
|
let A;
|
|
9461
9461
|
if (x >= I)
|
|
9462
9462
|
A = b;
|
|
@@ -9808,14 +9808,14 @@ var _0 = F.div.attrs((e) => ({
|
|
|
9808
9808
|
let g = u.top;
|
|
9809
9809
|
g + d > p - 4 && (g = Math.max(4, u.bottom - d)), s({ top: g, left: h });
|
|
9810
9810
|
}, []);
|
|
9811
|
-
return
|
|
9811
|
+
return K(() => {
|
|
9812
9812
|
if (!t) return;
|
|
9813
9813
|
c();
|
|
9814
9814
|
const u = requestAnimationFrame(() => c()), f = () => c(), p = () => c();
|
|
9815
9815
|
return window.addEventListener("scroll", f, !0), window.addEventListener("resize", p), () => {
|
|
9816
9816
|
cancelAnimationFrame(u), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", p);
|
|
9817
9817
|
};
|
|
9818
|
-
}, [t, c]),
|
|
9818
|
+
}, [t, c]), K(() => {
|
|
9819
9819
|
if (!t) return;
|
|
9820
9820
|
const u = (p) => {
|
|
9821
9821
|
const d = p.target;
|
|
@@ -9957,19 +9957,19 @@ function Y0(e) {
|
|
|
9957
9957
|
function Rn(e) {
|
|
9958
9958
|
return e == null;
|
|
9959
9959
|
}
|
|
9960
|
-
function
|
|
9960
|
+
function K0(e, t) {
|
|
9961
9961
|
var n = atob(e);
|
|
9962
9962
|
return n;
|
|
9963
9963
|
}
|
|
9964
|
-
function
|
|
9965
|
-
var r =
|
|
9964
|
+
function j0(e, t, n) {
|
|
9965
|
+
var r = K0(e), o = r.indexOf(`
|
|
9966
9966
|
`, 10) + 1, a = r.substring(o) + "", s = new Blob([a], { type: "application/javascript" });
|
|
9967
9967
|
return URL.createObjectURL(s);
|
|
9968
9968
|
}
|
|
9969
9969
|
function q0(e, t, n) {
|
|
9970
9970
|
var r;
|
|
9971
9971
|
return function(a) {
|
|
9972
|
-
return r = r ||
|
|
9972
|
+
return r = r || j0(e), new Worker(r, a);
|
|
9973
9973
|
};
|
|
9974
9974
|
}
|
|
9975
9975
|
var J0 = /* @__PURE__ */ q0("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgLyoqCiAgICogQXVkaW9CdWZmZXItYmFzZWQgV2F2ZWZvcm1EYXRhIGdlbmVyYXRvcgogICAqCiAgICogQWRhcHRlZCBmcm9tIEJsb2NrRmlsZTo6Q2FsY1N1bW1hcnkgaW4gQXVkYWNpdHksIHdpdGggcGVybWlzc2lvbi4KICAgKiBTZWUgaHR0cHM6Ly9naXRodWIuY29tL2F1ZGFjaXR5L2F1ZGFjaXR5L2Jsb2IvCiAgICogICAxMTA4YzEzNzZjMDkxNjYxNjIzMzVmYWI0NzQzMDA4Y2JhNTdjNGVlL3NyYy9CbG9ja0ZpbGUuY3BwI0wxOTgKICAgKi8KCiAgdmFyIElOVDhfTUFYID0gMTI3OwogIHZhciBJTlQ4X01JTiA9IC0xMjg7CiAgdmFyIElOVDE2X01BWCA9IDMyNzY3OwogIHZhciBJTlQxNl9NSU4gPSAtMzI3Njg7CiAgZnVuY3Rpb24gY2FsY3VsYXRlV2F2ZWZvcm1EYXRhTGVuZ3RoKGF1ZGlvX3NhbXBsZV9jb3VudCwgc2NhbGUpIHsKICAgIHZhciBkYXRhX2xlbmd0aCA9IE1hdGguZmxvb3IoYXVkaW9fc2FtcGxlX2NvdW50IC8gc2NhbGUpOwogICAgdmFyIHNhbXBsZXNfcmVtYWluaW5nID0gYXVkaW9fc2FtcGxlX2NvdW50IC0gZGF0YV9sZW5ndGggKiBzY2FsZTsKICAgIGlmIChzYW1wbGVzX3JlbWFpbmluZyA+IDApIHsKICAgICAgZGF0YV9sZW5ndGgrKzsKICAgIH0KICAgIHJldHVybiBkYXRhX2xlbmd0aDsKICB9CiAgZnVuY3Rpb24gZ2VuZXJhdGVXYXZlZm9ybURhdGEob3B0aW9ucykgewogICAgdmFyIHNjYWxlID0gb3B0aW9ucy5zY2FsZTsKICAgIHZhciBhbXBsaXR1ZGVfc2NhbGUgPSBvcHRpb25zLmFtcGxpdHVkZV9zY2FsZTsKICAgIHZhciBzcGxpdF9jaGFubmVscyA9IG9wdGlvbnMuc3BsaXRfY2hhbm5lbHM7CiAgICB2YXIgbGVuZ3RoID0gb3B0aW9ucy5sZW5ndGg7CiAgICB2YXIgc2FtcGxlX3JhdGUgPSBvcHRpb25zLnNhbXBsZV9yYXRlOwogICAgdmFyIGNoYW5uZWxzID0gb3B0aW9ucy5jaGFubmVscy5tYXAoZnVuY3Rpb24gKGNoYW5uZWwpIHsKICAgICAgcmV0dXJuIG5ldyBGbG9hdDMyQXJyYXkoY2hhbm5lbCk7CiAgICB9KTsKICAgIHZhciBvdXRwdXRfY2hhbm5lbHMgPSBzcGxpdF9jaGFubmVscyA/IGNoYW5uZWxzLmxlbmd0aCA6IDE7CiAgICB2YXIgaGVhZGVyX3NpemUgPSAyNDsKICAgIHZhciBkYXRhX2xlbmd0aCA9IGNhbGN1bGF0ZVdhdmVmb3JtRGF0YUxlbmd0aChsZW5ndGgsIHNjYWxlKTsKICAgIHZhciBieXRlc19wZXJfc2FtcGxlID0gb3B0aW9ucy5iaXRzID09PSA4ID8gMSA6IDI7CiAgICB2YXIgdG90YWxfc2l6ZSA9IGhlYWRlcl9zaXplICsgZGF0YV9sZW5ndGggKiAyICogYnl0ZXNfcGVyX3NhbXBsZSAqIG91dHB1dF9jaGFubmVsczsKICAgIHZhciBidWZmZXIgPSBuZXcgQXJyYXlCdWZmZXIodG90YWxfc2l6ZSk7CiAgICB2YXIgZGF0YV92aWV3ID0gbmV3IERhdGFWaWV3KGJ1ZmZlcik7CiAgICB2YXIgc2NhbGVfY291bnRlciA9IDA7CiAgICB2YXIgb2Zmc2V0ID0gaGVhZGVyX3NpemU7CiAgICB2YXIgbWluX3ZhbHVlID0gbmV3IEFycmF5KG91dHB1dF9jaGFubmVscyk7CiAgICB2YXIgbWF4X3ZhbHVlID0gbmV3IEFycmF5KG91dHB1dF9jaGFubmVscyk7CiAgICBmb3IgKHZhciBjaGFubmVsID0gMDsgY2hhbm5lbCA8IG91dHB1dF9jaGFubmVsczsgY2hhbm5lbCsrKSB7CiAgICAgIG1pbl92YWx1ZVtjaGFubmVsXSA9IEluZmluaXR5OwogICAgICBtYXhfdmFsdWVbY2hhbm5lbF0gPSAtSW5maW5pdHk7CiAgICB9CiAgICB2YXIgcmFuZ2VfbWluID0gb3B0aW9ucy5iaXRzID09PSA4ID8gSU5UOF9NSU4gOiBJTlQxNl9NSU47CiAgICB2YXIgcmFuZ2VfbWF4ID0gb3B0aW9ucy5iaXRzID09PSA4ID8gSU5UOF9NQVggOiBJTlQxNl9NQVg7CiAgICBkYXRhX3ZpZXcuc2V0SW50MzIoMCwgMiwgdHJ1ZSk7IC8vIFZlcnNpb24KICAgIGRhdGFfdmlldy5zZXRVaW50MzIoNCwgb3B0aW9ucy5iaXRzID09PSA4LCB0cnVlKTsgLy8gSXMgOCBiaXQ/CiAgICBkYXRhX3ZpZXcuc2V0SW50MzIoOCwgc2FtcGxlX3JhdGUsIHRydWUpOyAvLyBTYW1wbGUgcmF0ZQogICAgZGF0YV92aWV3LnNldEludDMyKDEyLCBzY2FsZSwgdHJ1ZSk7IC8vIFNjYWxlCiAgICBkYXRhX3ZpZXcuc2V0SW50MzIoMTYsIGRhdGFfbGVuZ3RoLCB0cnVlKTsgLy8gTGVuZ3RoCiAgICBkYXRhX3ZpZXcuc2V0SW50MzIoMjAsIG91dHB1dF9jaGFubmVscywgdHJ1ZSk7CiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxlbmd0aDsgaSsrKSB7CiAgICAgIHZhciBzYW1wbGUgPSAwOwogICAgICBpZiAob3V0cHV0X2NoYW5uZWxzID09PSAxKSB7CiAgICAgICAgZm9yICh2YXIgX2NoYW5uZWwgPSAwOyBfY2hhbm5lbCA8IGNoYW5uZWxzLmxlbmd0aDsgKytfY2hhbm5lbCkgewogICAgICAgICAgc2FtcGxlICs9IGNoYW5uZWxzW19jaGFubmVsXVtpXTsKICAgICAgICB9CiAgICAgICAgc2FtcGxlID0gTWF0aC5mbG9vcihyYW5nZV9tYXggKiBzYW1wbGUgKiBhbXBsaXR1ZGVfc2NhbGUgLyBjaGFubmVscy5sZW5ndGgpOwogICAgICAgIGlmIChzYW1wbGUgPCBtaW5fdmFsdWVbMF0pIHsKICAgICAgICAgIG1pbl92YWx1ZVswXSA9IHNhbXBsZTsKICAgICAgICAgIGlmIChtaW5fdmFsdWVbMF0gPCByYW5nZV9taW4pIHsKICAgICAgICAgICAgbWluX3ZhbHVlWzBdID0gcmFuZ2VfbWluOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAoc2FtcGxlID4gbWF4X3ZhbHVlWzBdKSB7CiAgICAgICAgICBtYXhfdmFsdWVbMF0gPSBzYW1wbGU7CiAgICAgICAgICBpZiAobWF4X3ZhbHVlWzBdID4gcmFuZ2VfbWF4KSB7CiAgICAgICAgICAgIG1heF92YWx1ZVswXSA9IHJhbmdlX21heDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0gZWxzZSB7CiAgICAgICAgZm9yICh2YXIgX2NoYW5uZWwyID0gMDsgX2NoYW5uZWwyIDwgb3V0cHV0X2NoYW5uZWxzOyArK19jaGFubmVsMikgewogICAgICAgICAgc2FtcGxlID0gTWF0aC5mbG9vcihyYW5nZV9tYXggKiBjaGFubmVsc1tfY2hhbm5lbDJdW2ldICogYW1wbGl0dWRlX3NjYWxlKTsKICAgICAgICAgIGlmIChzYW1wbGUgPCBtaW5fdmFsdWVbX2NoYW5uZWwyXSkgewogICAgICAgICAgICBtaW5fdmFsdWVbX2NoYW5uZWwyXSA9IHNhbXBsZTsKICAgICAgICAgICAgaWYgKG1pbl92YWx1ZVtfY2hhbm5lbDJdIDwgcmFuZ2VfbWluKSB7CiAgICAgICAgICAgICAgbWluX3ZhbHVlW19jaGFubmVsMl0gPSByYW5nZV9taW47CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGlmIChzYW1wbGUgPiBtYXhfdmFsdWVbX2NoYW5uZWwyXSkgewogICAgICAgICAgICBtYXhfdmFsdWVbX2NoYW5uZWwyXSA9IHNhbXBsZTsKICAgICAgICAgICAgaWYgKG1heF92YWx1ZVtfY2hhbm5lbDJdID4gcmFuZ2VfbWF4KSB7CiAgICAgICAgICAgICAgbWF4X3ZhbHVlW19jaGFubmVsMl0gPSByYW5nZV9tYXg7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgaWYgKCsrc2NhbGVfY291bnRlciA9PT0gc2NhbGUpIHsKICAgICAgICBmb3IgKHZhciBfY2hhbm5lbDMgPSAwOyBfY2hhbm5lbDMgPCBvdXRwdXRfY2hhbm5lbHM7IF9jaGFubmVsMysrKSB7CiAgICAgICAgICBpZiAob3B0aW9ucy5iaXRzID09PSA4KSB7CiAgICAgICAgICAgIGRhdGFfdmlldy5zZXRJbnQ4KG9mZnNldCsrLCBtaW5fdmFsdWVbX2NoYW5uZWwzXSk7CiAgICAgICAgICAgIGRhdGFfdmlldy5zZXRJbnQ4KG9mZnNldCsrLCBtYXhfdmFsdWVbX2NoYW5uZWwzXSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBkYXRhX3ZpZXcuc2V0SW50MTYob2Zmc2V0LCBtaW5fdmFsdWVbX2NoYW5uZWwzXSwgdHJ1ZSk7CiAgICAgICAgICAgIGRhdGFfdmlldy5zZXRJbnQxNihvZmZzZXQgKyAyLCBtYXhfdmFsdWVbX2NoYW5uZWwzXSwgdHJ1ZSk7CiAgICAgICAgICAgIG9mZnNldCArPSA0OwogICAgICAgICAgfQogICAgICAgICAgbWluX3ZhbHVlW19jaGFubmVsM10gPSBJbmZpbml0eTsKICAgICAgICAgIG1heF92YWx1ZVtfY2hhbm5lbDNdID0gLUluZmluaXR5OwogICAgICAgIH0KICAgICAgICBzY2FsZV9jb3VudGVyID0gMDsKICAgICAgfQogICAgfQogICAgaWYgKHNjYWxlX2NvdW50ZXIgPiAwKSB7CiAgICAgIGZvciAodmFyIF9jaGFubmVsNCA9IDA7IF9jaGFubmVsNCA8IG91dHB1dF9jaGFubmVsczsgX2NoYW5uZWw0KyspIHsKICAgICAgICBpZiAob3B0aW9ucy5iaXRzID09PSA4KSB7CiAgICAgICAgICBkYXRhX3ZpZXcuc2V0SW50OChvZmZzZXQrKywgbWluX3ZhbHVlW19jaGFubmVsNF0pOwogICAgICAgICAgZGF0YV92aWV3LnNldEludDgob2Zmc2V0KyssIG1heF92YWx1ZVtfY2hhbm5lbDRdKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgZGF0YV92aWV3LnNldEludDE2KG9mZnNldCwgbWluX3ZhbHVlW19jaGFubmVsNF0sIHRydWUpOwogICAgICAgICAgZGF0YV92aWV3LnNldEludDE2KG9mZnNldCArIDIsIG1heF92YWx1ZVtfY2hhbm5lbDRdLCB0cnVlKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICAgIHJldHVybiBidWZmZXI7CiAgfQoKICBvbm1lc3NhZ2UgPSBmdW5jdGlvbiBvbm1lc3NhZ2UoZXZ0KSB7CiAgICB2YXIgYnVmZmVyID0gZ2VuZXJhdGVXYXZlZm9ybURhdGEoZXZ0LmRhdGEpOwoKICAgIC8vIFRyYW5zZmVyIGJ1ZmZlciB0byB0aGUgY2FsbGluZyB0aHJlYWQKICAgIHRoaXMucG9zdE1lc3NhZ2UoYnVmZmVyLCBbYnVmZmVyXSk7CiAgICB0aGlzLmNsb3NlKCk7CiAgfTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdhdmVmb3JtLWRhdGEtd29ya2VyLmpzLm1hcAoK");
|
|
@@ -10298,11 +10298,11 @@ function ny(e, t = 0) {
|
|
|
10298
10298
|
sampleRate: e.sample_rate
|
|
10299
10299
|
};
|
|
10300
10300
|
}
|
|
10301
|
-
async function
|
|
10301
|
+
async function Hb(e, t = 0) {
|
|
10302
10302
|
const n = await wf(e);
|
|
10303
10303
|
return ny(n, t);
|
|
10304
10304
|
}
|
|
10305
|
-
async function
|
|
10305
|
+
async function Gb(e) {
|
|
10306
10306
|
const t = await wf(e);
|
|
10307
10307
|
return {
|
|
10308
10308
|
sampleRate: t.sample_rate,
|
|
@@ -10498,7 +10498,7 @@ function cy({ engineRef: e }) {
|
|
|
10498
10498
|
selectedTrackIdRef: r
|
|
10499
10499
|
};
|
|
10500
10500
|
}
|
|
10501
|
-
const
|
|
10501
|
+
const Ub = (e = 256) => {
|
|
10502
10502
|
const t = M(null), n = T(
|
|
10503
10503
|
(r, o, a) => {
|
|
10504
10504
|
const s = new kc("fft", e);
|
|
@@ -10549,7 +10549,7 @@ function fo(e, t, n, r, o = 48e3) {
|
|
|
10549
10549
|
}, u = r.get(t);
|
|
10550
10550
|
return u ? (c.id = u.trackId, c.clips[0] = { ...c.clips[0], id: u.clipId }) : r.set(t, { trackId: c.id, clipId: c.clips[0].id }), c;
|
|
10551
10551
|
}
|
|
10552
|
-
function
|
|
10552
|
+
function Xb(e, t = {}) {
|
|
10553
10553
|
const { immediate: n = !1, progressive: r = !1 } = t, o = n || r, [a, s] = z(!0), [i, l] = z(null), [c, u] = z(0), f = e.length, [p, d] = z(/* @__PURE__ */ new Map()), h = M(/* @__PURE__ */ new Map()), g = M(48e3), m = Ce(() => {
|
|
10554
10554
|
if (!o) return null;
|
|
10555
10555
|
const w = [];
|
|
@@ -10565,7 +10565,7 @@ function Ub(e, t = {}) {
|
|
|
10565
10565
|
}
|
|
10566
10566
|
return w;
|
|
10567
10567
|
}, [o, e, p]), [v, y] = z(m ?? []), b = M(m);
|
|
10568
|
-
return m !== b.current && (b.current = m, m && y(m)),
|
|
10568
|
+
return m !== b.current && (b.current = m, m && y(m)), K(() => {
|
|
10569
10569
|
if (e.length === 0) {
|
|
10570
10570
|
y([]), s(!1), u(0);
|
|
10571
10571
|
return;
|
|
@@ -10990,31 +10990,33 @@ const my = (e) => {
|
|
|
10990
10990
|
}, [t, o, a, s, n]),
|
|
10991
10991
|
splitClipAt: s
|
|
10992
10992
|
};
|
|
10993
|
-
}
|
|
10993
|
+
};
|
|
10994
|
+
function gy(e, t, n) {
|
|
10995
|
+
if (!n || e.repeat) return;
|
|
10996
|
+
const r = e.target;
|
|
10997
|
+
if (r.tagName === "INPUT" || r.tagName === "TEXTAREA" || r.isContentEditable)
|
|
10998
|
+
return;
|
|
10999
|
+
const o = t.find((a) => {
|
|
11000
|
+
const s = e.key.toLowerCase() === a.key.toLowerCase() || e.key === a.key, i = a.ctrlKey === void 0 || e.ctrlKey === a.ctrlKey, l = a.shiftKey === void 0 || e.shiftKey === a.shiftKey, c = a.metaKey === void 0 || e.metaKey === a.metaKey, u = a.altKey === void 0 || e.altKey === a.altKey;
|
|
11001
|
+
return s && i && l && c && u;
|
|
11002
|
+
});
|
|
11003
|
+
o && (o.preventDefault !== !1 && e.preventDefault(), o.action());
|
|
11004
|
+
}
|
|
11005
|
+
const ks = (e) => {
|
|
10994
11006
|
const { shortcuts: t, enabled: n = !0 } = e, r = T(
|
|
10995
|
-
(o) =>
|
|
10996
|
-
if (!n) return;
|
|
10997
|
-
const a = o.target;
|
|
10998
|
-
if (a.tagName === "INPUT" || a.tagName === "TEXTAREA" || a.isContentEditable)
|
|
10999
|
-
return;
|
|
11000
|
-
const s = t.find((i) => {
|
|
11001
|
-
const l = o.key.toLowerCase() === i.key.toLowerCase() || o.key === i.key, c = i.ctrlKey === void 0 || o.ctrlKey === i.ctrlKey, u = i.shiftKey === void 0 || o.shiftKey === i.shiftKey, f = i.metaKey === void 0 || o.metaKey === i.metaKey, p = i.altKey === void 0 || o.altKey === i.altKey;
|
|
11002
|
-
return l && c && u && f && p;
|
|
11003
|
-
});
|
|
11004
|
-
s && (s.preventDefault !== !1 && o.preventDefault(), s.action());
|
|
11005
|
-
},
|
|
11007
|
+
(o) => gy(o, t, n),
|
|
11006
11008
|
[t, n]
|
|
11007
11009
|
);
|
|
11008
|
-
|
|
11010
|
+
K(() => {
|
|
11009
11011
|
if (n)
|
|
11010
11012
|
return window.addEventListener("keydown", r), () => {
|
|
11011
11013
|
window.removeEventListener("keydown", r);
|
|
11012
11014
|
};
|
|
11013
11015
|
}, [r, n]);
|
|
11014
|
-
},
|
|
11016
|
+
}, Yb = (e) => {
|
|
11015
11017
|
const t = [], n = typeof navigator < "u" && navigator.platform.includes("Mac");
|
|
11016
11018
|
return e.metaKey && t.push(n ? "Cmd" : "Ctrl"), e.ctrlKey && !e.metaKey && t.push("Ctrl"), e.altKey && t.push(n ? "Option" : "Alt"), e.shiftKey && t.push("Shift"), t.push(e.key.toUpperCase()), t.join("+");
|
|
11017
|
-
},
|
|
11019
|
+
}, vy = (e = {}) => {
|
|
11018
11020
|
const { enabled: t = !0, additionalShortcuts: n = [], shortcuts: r } = e, { isPlaying: o } = ht(), { setCurrentTime: a, play: s, pause: i, stop: l } = $e(), c = T(() => {
|
|
11019
11021
|
o ? i() : s();
|
|
11020
11022
|
}, [o, s, i]), u = T(() => {
|
|
@@ -11051,7 +11053,7 @@ const my = (e) => {
|
|
|
11051
11053
|
shortcuts: d
|
|
11052
11054
|
};
|
|
11053
11055
|
}, Da = 0.01, ho = 0.01;
|
|
11054
|
-
function
|
|
11056
|
+
function yy({
|
|
11055
11057
|
annotations: e,
|
|
11056
11058
|
activeAnnotationId: t,
|
|
11057
11059
|
onAnnotationsChange: n,
|
|
@@ -11081,7 +11083,7 @@ function vy({
|
|
|
11081
11083
|
},
|
|
11082
11084
|
[e, l, c, u]
|
|
11083
11085
|
);
|
|
11084
|
-
|
|
11086
|
+
K(() => {
|
|
11085
11087
|
t && l?.current && c && u && d(t);
|
|
11086
11088
|
}, [t, d, l, c, u]);
|
|
11087
11089
|
const h = T(
|
|
@@ -11804,7 +11806,7 @@ const ca = [
|
|
|
11804
11806
|
{ name: "width", label: "Width", type: "number", min: 0, max: 1, step: 0.01, default: 0.5 }
|
|
11805
11807
|
]
|
|
11806
11808
|
}
|
|
11807
|
-
], Sf = (e) => ca.find((t) => t.id === e),
|
|
11809
|
+
], Sf = (e) => ca.find((t) => t.id === e), Kb = (e) => ca.filter((t) => t.category === e), jb = [
|
|
11808
11810
|
{ id: "reverb", name: "Reverb" },
|
|
11809
11811
|
{ id: "delay", name: "Delay" },
|
|
11810
11812
|
{ id: "modulation", name: "Modulation" },
|
|
@@ -11813,7 +11815,7 @@ const ca = [
|
|
|
11813
11815
|
{ id: "dynamics", name: "Dynamics" },
|
|
11814
11816
|
{ id: "spatial", name: "Spatial" }
|
|
11815
11817
|
];
|
|
11816
|
-
const
|
|
11818
|
+
const by = {
|
|
11817
11819
|
reverb: Mh,
|
|
11818
11820
|
freeverb: Ah,
|
|
11819
11821
|
jcReverb: Ih,
|
|
@@ -11835,10 +11837,10 @@ const yy = {
|
|
|
11835
11837
|
gate: dh,
|
|
11836
11838
|
stereoWidener: uh
|
|
11837
11839
|
};
|
|
11838
|
-
let
|
|
11839
|
-
const
|
|
11840
|
+
let wy = 0;
|
|
11841
|
+
const _y = () => `effect_${Date.now()}_${++wy}`;
|
|
11840
11842
|
function Ho(e, t) {
|
|
11841
|
-
const n =
|
|
11843
|
+
const n = by[e.id];
|
|
11842
11844
|
if (!n)
|
|
11843
11845
|
throw new Error(`Unknown effect type: ${e.id}`);
|
|
11844
11846
|
const r = {};
|
|
@@ -11846,7 +11848,7 @@ function Ho(e, t) {
|
|
|
11846
11848
|
const l = t?.[i.name] ?? i.default;
|
|
11847
11849
|
r[i.name] = l;
|
|
11848
11850
|
});
|
|
11849
|
-
const o = new n(r), a =
|
|
11851
|
+
const o = new n(r), a = _y(), s = o;
|
|
11850
11852
|
return {
|
|
11851
11853
|
effect: o,
|
|
11852
11854
|
id: e.id,
|
|
@@ -11897,7 +11899,7 @@ function Ho(e, t) {
|
|
|
11897
11899
|
}
|
|
11898
11900
|
};
|
|
11899
11901
|
}
|
|
11900
|
-
function
|
|
11902
|
+
function qb(e) {
|
|
11901
11903
|
if (e.length === 0)
|
|
11902
11904
|
throw new Error("Cannot create effect chain with no effects");
|
|
11903
11905
|
for (let t = 0; t < e.length - 1; t++)
|
|
@@ -11910,7 +11912,7 @@ function Kb(e) {
|
|
|
11910
11912
|
}
|
|
11911
11913
|
};
|
|
11912
11914
|
}
|
|
11913
|
-
function
|
|
11915
|
+
function Jb(e = 256) {
|
|
11914
11916
|
const [t, n] = z([]), r = M(t);
|
|
11915
11917
|
r.current = t;
|
|
11916
11918
|
const o = M(/* @__PURE__ */ new Map()), a = M(null), s = M(null), i = T((m) => {
|
|
@@ -11988,7 +11990,7 @@ function qb(e = 256) {
|
|
|
11988
11990
|
}, []), d = T(() => {
|
|
11989
11991
|
o.current.forEach((m) => m.dispose()), o.current.clear(), n([]);
|
|
11990
11992
|
}, []);
|
|
11991
|
-
|
|
11993
|
+
K(() => {
|
|
11992
11994
|
i(t);
|
|
11993
11995
|
}, [t, i]);
|
|
11994
11996
|
const h = T(
|
|
@@ -12015,7 +12017,7 @@ function qb(e = 256) {
|
|
|
12015
12017
|
[e]
|
|
12016
12018
|
// Only fftSize - reads effects from ref
|
|
12017
12019
|
);
|
|
12018
|
-
|
|
12020
|
+
K(() => {
|
|
12019
12021
|
const m = o.current;
|
|
12020
12022
|
return () => {
|
|
12021
12023
|
m.forEach((v) => v.dispose()), m.clear();
|
|
@@ -12057,7 +12059,7 @@ function qb(e = 256) {
|
|
|
12057
12059
|
analyserRef: a
|
|
12058
12060
|
};
|
|
12059
12061
|
}
|
|
12060
|
-
function
|
|
12062
|
+
function Qb() {
|
|
12061
12063
|
const [e, t] = z(
|
|
12062
12064
|
/* @__PURE__ */ new Map()
|
|
12063
12065
|
), n = M(/* @__PURE__ */ new Map()), r = M(/* @__PURE__ */ new Map()), o = T((d, h) => {
|
|
@@ -12177,11 +12179,11 @@ function Jb() {
|
|
|
12177
12179
|
[]
|
|
12178
12180
|
// No dependencies - stable function that reads from refs
|
|
12179
12181
|
);
|
|
12180
|
-
|
|
12182
|
+
K(() => {
|
|
12181
12183
|
e.forEach((d, h) => {
|
|
12182
12184
|
o(h, d);
|
|
12183
12185
|
});
|
|
12184
|
-
}, [e, o]),
|
|
12186
|
+
}, [e, o]), K(() => {
|
|
12185
12187
|
const d = n.current;
|
|
12186
12188
|
return () => {
|
|
12187
12189
|
d.forEach((h) => {
|
|
@@ -12226,7 +12228,7 @@ function Jb() {
|
|
|
12226
12228
|
availableEffects: ca
|
|
12227
12229
|
};
|
|
12228
12230
|
}
|
|
12229
|
-
function
|
|
12231
|
+
function Sy(e, t = {}) {
|
|
12230
12232
|
const { bitDepth: n = 16 } = t, r = e.numberOfChannels, o = e.sampleRate, a = e.length, s = n / 8, i = r * s, l = o * i, c = a * i, u = 44, f = u + c, p = new ArrayBuffer(f), d = new DataView(p);
|
|
12231
12233
|
po(d, 0, "RIFF"), d.setUint32(4, f - 8, !0), po(d, 8, "WAVE"), po(d, 12, "fmt "), d.setUint32(16, 16, !0), d.setUint16(20, n === 32 ? 3 : 1, !0), d.setUint16(22, r, !0), d.setUint32(24, o, !0), d.setUint32(28, l, !0), d.setUint16(32, i, !0), d.setUint16(34, n, !0), po(d, 36, "data"), d.setUint32(40, c, !0);
|
|
12232
12234
|
const h = [];
|
|
@@ -12249,11 +12251,11 @@ function po(e, t, n) {
|
|
|
12249
12251
|
for (let r = 0; r < n.length; r++)
|
|
12250
12252
|
e.setUint8(t + r, n.charCodeAt(r));
|
|
12251
12253
|
}
|
|
12252
|
-
function
|
|
12254
|
+
function ky(e, t) {
|
|
12253
12255
|
const n = URL.createObjectURL(e), r = document.createElement("a");
|
|
12254
12256
|
r.href = n, r.download = t, r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
|
|
12255
12257
|
}
|
|
12256
|
-
function
|
|
12258
|
+
function Cy() {
|
|
12257
12259
|
const [e, t] = z(!1), [n, r] = z(0), [o, a] = z(null);
|
|
12258
12260
|
return {
|
|
12259
12261
|
exportWav: T(
|
|
@@ -12286,7 +12288,7 @@ function ky() {
|
|
|
12286
12288
|
const _ = w / b, S = f === "individual" ? [{ track: i[p], state: l[p], index: p }] : i.map(($, A) => ({ track: $, state: l[A], index: A })), C = l.some(($) => $.soloed), x = !!m;
|
|
12287
12289
|
let E;
|
|
12288
12290
|
if ((g || x) && h)
|
|
12289
|
-
E = await
|
|
12291
|
+
E = await xy(
|
|
12290
12292
|
S,
|
|
12291
12293
|
l,
|
|
12292
12294
|
C,
|
|
@@ -12305,17 +12307,17 @@ function ky() {
|
|
|
12305
12307
|
for (const { track: R, state: O } of S)
|
|
12306
12308
|
if (!(O.muted && !O.soloed) && !(C && !O.soloed))
|
|
12307
12309
|
for (const L of R.clips) {
|
|
12308
|
-
await
|
|
12310
|
+
await Iy($, L, O, b, h), A++;
|
|
12309
12311
|
const Y = A / D * 0.5;
|
|
12310
12312
|
r(Y), y?.(Y);
|
|
12311
12313
|
}
|
|
12312
12314
|
r(0.5), y?.(0.5), E = await $.startRendering();
|
|
12313
12315
|
}
|
|
12314
12316
|
r(0.9), y?.(0.9);
|
|
12315
|
-
const I =
|
|
12317
|
+
const I = Sy(E, { bitDepth: v });
|
|
12316
12318
|
if (r(1), y?.(1), d) {
|
|
12317
12319
|
const $ = f === "individual" ? `${u}_${i[p].name}` : u;
|
|
12318
|
-
|
|
12320
|
+
ky(I, `${$}.wav`);
|
|
12319
12321
|
}
|
|
12320
12322
|
return {
|
|
12321
12323
|
audioBuffer: E,
|
|
@@ -12336,7 +12338,7 @@ function ky() {
|
|
|
12336
12338
|
error: o
|
|
12337
12339
|
};
|
|
12338
12340
|
}
|
|
12339
|
-
async function
|
|
12341
|
+
async function xy(e, t, n, r, o, a, s, i) {
|
|
12340
12342
|
const { Offline: l, Volume: c, Gain: u, Panner: f, Player: p, ToneAudioBuffer: d } = await import("tone");
|
|
12341
12343
|
i(0.1);
|
|
12342
12344
|
let h;
|
|
@@ -12348,7 +12350,7 @@ async function Cy(e, t, n, r, o, a, s, i) {
|
|
|
12348
12350
|
a ? y = a(v, m, !0) : v.connect(m);
|
|
12349
12351
|
for (const { track: b, state: w } of e) {
|
|
12350
12352
|
if (w.muted && !w.soloed || n && !w.soloed) continue;
|
|
12351
|
-
const _ = new c(
|
|
12353
|
+
const _ = new c(Ey(w.volume)), S = new f(w.pan), C = new u(w.muted ? 0 : 1), x = s?.(b.id);
|
|
12352
12354
|
x ? x(C, v, !0) : C.connect(v), S.connect(C), _.connect(S);
|
|
12353
12355
|
for (const E of b.clips) {
|
|
12354
12356
|
const {
|
|
@@ -12383,10 +12385,10 @@ async function Cy(e, t, n, r, o, a, s, i) {
|
|
|
12383
12385
|
}
|
|
12384
12386
|
return i(0.9), h.get();
|
|
12385
12387
|
}
|
|
12386
|
-
function
|
|
12388
|
+
function Ey(e) {
|
|
12387
12389
|
return 20 * Math.log10(Math.max(e, 1e-4));
|
|
12388
12390
|
}
|
|
12389
|
-
async function
|
|
12391
|
+
async function Iy(e, t, n, r, o) {
|
|
12390
12392
|
const {
|
|
12391
12393
|
audioBuffer: a,
|
|
12392
12394
|
startSample: s,
|
|
@@ -12474,14 +12476,14 @@ const kf = () => {
|
|
|
12474
12476
|
},
|
|
12475
12477
|
[t]
|
|
12476
12478
|
);
|
|
12477
|
-
return
|
|
12479
|
+
return K(() => () => {
|
|
12478
12480
|
t();
|
|
12479
12481
|
}, [t]), {
|
|
12480
12482
|
animationFrameRef: e,
|
|
12481
12483
|
startAnimationFrameLoop: n,
|
|
12482
12484
|
stopAnimationFrameLoop: t
|
|
12483
12485
|
};
|
|
12484
|
-
},
|
|
12486
|
+
}, Ay = `
|
|
12485
12487
|
"use strict";
|
|
12486
12488
|
|
|
12487
12489
|
var INT8_MAX = 127;
|
|
@@ -12629,11 +12631,11 @@ self.onmessage = function(e) {
|
|
|
12629
12631
|
}
|
|
12630
12632
|
};
|
|
12631
12633
|
`;
|
|
12632
|
-
let
|
|
12633
|
-
function
|
|
12634
|
+
let My = 0;
|
|
12635
|
+
function Ty() {
|
|
12634
12636
|
let e;
|
|
12635
12637
|
try {
|
|
12636
|
-
const r = new Blob([
|
|
12638
|
+
const r = new Blob([Ay], { type: "application/javascript" }), o = URL.createObjectURL(r);
|
|
12637
12639
|
e = new Worker(o), URL.revokeObjectURL(o);
|
|
12638
12640
|
} catch (r) {
|
|
12639
12641
|
return console.warn("[waveform-playlist] Failed to create peaks worker (CSP restriction?):", r), {
|
|
@@ -12666,7 +12668,7 @@ function My() {
|
|
|
12666
12668
|
}, {
|
|
12667
12669
|
generate(r) {
|
|
12668
12670
|
if (n) return Promise.reject(new Error("Worker terminated"));
|
|
12669
|
-
const o = String(++
|
|
12671
|
+
const o = String(++My);
|
|
12670
12672
|
return new Promise((a, s) => {
|
|
12671
12673
|
t.set(o, { resolve: a, reject: s }), e.postMessage(
|
|
12672
12674
|
{
|
|
@@ -12692,9 +12694,9 @@ function My() {
|
|
|
12692
12694
|
}
|
|
12693
12695
|
};
|
|
12694
12696
|
}
|
|
12695
|
-
function
|
|
12696
|
-
const [n, r] = z(() => /* @__PURE__ */ new Map()), [o, a] = z(!1), s = M(null), i = M(/* @__PURE__ */ new WeakMap()), l = M(/* @__PURE__ */ new WeakMap()), c = M(/* @__PURE__ */ new WeakMap()), u = M(0), f = T(() => (s.current || (s.current =
|
|
12697
|
-
return
|
|
12697
|
+
function $y(e, t) {
|
|
12698
|
+
const [n, r] = z(() => /* @__PURE__ */ new Map()), [o, a] = z(!1), s = M(null), i = M(/* @__PURE__ */ new WeakMap()), l = M(/* @__PURE__ */ new WeakMap()), c = M(/* @__PURE__ */ new WeakMap()), u = M(0), f = T(() => (s.current || (s.current = Ty()), s.current), []);
|
|
12699
|
+
return K(() => {
|
|
12698
12700
|
let p = !1;
|
|
12699
12701
|
const d = i.current, h = l.current, g = c.current, m = [], v = /* @__PURE__ */ new Map();
|
|
12700
12702
|
for (const b of e)
|
|
@@ -12755,14 +12757,14 @@ function Ty(e, t) {
|
|
|
12755
12757
|
return () => {
|
|
12756
12758
|
p = !0, l.current = /* @__PURE__ */ new WeakMap(), c.current = /* @__PURE__ */ new WeakMap(), u.current = 0, a(!1);
|
|
12757
12759
|
};
|
|
12758
|
-
}, [e, t, f]),
|
|
12760
|
+
}, [e, t, f]), K(() => () => {
|
|
12759
12761
|
s.current?.terminate(), s.current = null;
|
|
12760
12762
|
}, []), { cache: n, isGenerating: o };
|
|
12761
12763
|
}
|
|
12762
12764
|
function Cs(e) {
|
|
12763
12765
|
return e instanceof File ? e.name.replace(/\.[^/.]+$/, "") : e instanceof Blob ? "Untitled" : typeof e == "string" ? e.split("/").pop()?.replace(/\.[^/.]+$/, "") ?? "Untitled" : e.name ?? e.src.split("/").pop()?.replace(/\.[^/.]+$/, "") ?? "Untitled";
|
|
12764
12766
|
}
|
|
12765
|
-
async function
|
|
12767
|
+
async function Dy(e, t, n) {
|
|
12766
12768
|
const r = Cs(e);
|
|
12767
12769
|
if (e instanceof Blob) {
|
|
12768
12770
|
const l = await e.arrayBuffer();
|
|
@@ -12773,9 +12775,9 @@ async function $y(e, t, n) {
|
|
|
12773
12775
|
const s = await a.arrayBuffer();
|
|
12774
12776
|
return n?.throwIfAborted(), { audioBuffer: await t.decodeAudioData(s), name: r };
|
|
12775
12777
|
}
|
|
12776
|
-
function
|
|
12778
|
+
function e1() {
|
|
12777
12779
|
const [e, t] = z([]), [n, r] = z(0), [o, a] = z([]), s = M(!1), i = M(/* @__PURE__ */ new Set()), l = M(/* @__PURE__ */ new Map());
|
|
12778
|
-
|
|
12780
|
+
K(() => {
|
|
12779
12781
|
const f = l.current;
|
|
12780
12782
|
return () => {
|
|
12781
12783
|
s.current = !0;
|
|
@@ -12786,7 +12788,7 @@ function Qb() {
|
|
|
12786
12788
|
}, []);
|
|
12787
12789
|
const c = T((f) => {
|
|
12788
12790
|
if (f.length === 0) return;
|
|
12789
|
-
const p =
|
|
12791
|
+
const p = Kh(), d = f.map((h) => ({
|
|
12790
12792
|
track: $c({ name: `${Cs(h)} (loading...)`, clips: [] }),
|
|
12791
12793
|
source: h
|
|
12792
12794
|
}));
|
|
@@ -12796,7 +12798,7 @@ function Qb() {
|
|
|
12796
12798
|
const m = new AbortController();
|
|
12797
12799
|
l.current.set(h.id, m), (async () => {
|
|
12798
12800
|
try {
|
|
12799
|
-
const { audioBuffer: v, name: y } = await
|
|
12801
|
+
const { audioBuffer: v, name: y } = await Dy(g, p, m.signal), b = Tc({
|
|
12800
12802
|
audioBuffer: v,
|
|
12801
12803
|
startTime: 0,
|
|
12802
12804
|
duration: v.duration,
|
|
@@ -12834,7 +12836,7 @@ function Qb() {
|
|
|
12834
12836
|
errors: o
|
|
12835
12837
|
};
|
|
12836
12838
|
}
|
|
12837
|
-
const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null),
|
|
12839
|
+
const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), t1 = ({
|
|
12838
12840
|
tracks: e,
|
|
12839
12841
|
timescale: t = !1,
|
|
12840
12842
|
mono: n = !1,
|
|
@@ -12879,7 +12881,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
12879
12881
|
ae.current = $;
|
|
12880
12882
|
const Ue = M(0), we = M(0), Le = M(e), gt = M(y);
|
|
12881
12883
|
gt.current = y;
|
|
12882
|
-
const Mt = M(re), lt = M(0), Ye = M(0), ct = M(null), vt = M(null), Ot = M(!1), Tt = M(c?.isContinuousPlay ?? !1), Z = M(null), ve = M(null),
|
|
12884
|
+
const Mt = M(re), lt = M(0), Ye = M(0), ct = M(null), vt = M(null), Ot = M(!1), Tt = M(c?.isContinuousPlay ?? !1), Z = M(null), ve = M(null), Ke = M(0), je = M(!1), Q = M(!1), ye = M(o), qe = M(44100), { timeFormat: $t, setTimeFormat: N, formatTime: X } = oy(), U = ay({ engineRef: B, initialSamplesPerPixel: o }), { samplesPerPixel: j, onEngineState: Ae } = U, De = sy({ engineRef: B, initialVolume: 1 }), {
|
|
12883
12885
|
masterVolume: q,
|
|
12884
12886
|
setMasterVolume: He,
|
|
12885
12887
|
masterVolumeRef: et,
|
|
@@ -12889,50 +12891,50 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
12889
12891
|
selectionEnd: qt,
|
|
12890
12892
|
setSelection: Tn,
|
|
12891
12893
|
selectionStartRef: zt,
|
|
12892
|
-
selectionEndRef:
|
|
12894
|
+
selectionEndRef: Kr,
|
|
12893
12895
|
onEngineState: zi
|
|
12894
12896
|
} = iy({ engineRef: B }), {
|
|
12895
12897
|
isLoopEnabled: Zi,
|
|
12896
12898
|
loopStart: Hi,
|
|
12897
12899
|
loopEnd: Gi,
|
|
12898
12900
|
setLoopEnabled: Ui,
|
|
12899
|
-
setLoopRegion:
|
|
12901
|
+
setLoopRegion: jr,
|
|
12900
12902
|
clearLoopRegion: Xi,
|
|
12901
12903
|
isLoopEnabledRef: Yi,
|
|
12902
|
-
loopStartRef:
|
|
12903
|
-
loopEndRef:
|
|
12904
|
+
loopStartRef: Ki,
|
|
12905
|
+
loopEndRef: ji,
|
|
12904
12906
|
onEngineState: qi
|
|
12905
12907
|
} = ly({ engineRef: B }), {
|
|
12906
12908
|
selectedTrackId: Ji,
|
|
12907
12909
|
setSelectedTrackId: Qi,
|
|
12908
12910
|
onEngineState: el,
|
|
12909
12911
|
selectedTrackIdRef: tl
|
|
12910
|
-
} = cy({ engineRef: B }), { animationFrameRef: nl, startAnimationFrameLoop: ha, stopAnimationFrameLoop: qr } = kf(),
|
|
12912
|
+
} = cy({ engineRef: B }), { animationFrameRef: nl, startAnimationFrameLoop: ha, stopAnimationFrameLoop: qr } = kf(), jf = Ce(
|
|
12911
12913
|
() => Math.min(...S ?? [256, 512, 1024, 2048, 4096, 8192]),
|
|
12912
12914
|
[S]
|
|
12913
|
-
), { cache: rl } =
|
|
12915
|
+
), { cache: rl } = $y(e, jf), ol = T((V) => {
|
|
12914
12916
|
Tt.current = V, pe(V);
|
|
12915
12917
|
}, []), Zt = T((V) => {
|
|
12916
12918
|
Z.current = V, I(V);
|
|
12917
12919
|
}, []), al = T(() => {
|
|
12918
|
-
const V = zt.current ?? 0, H =
|
|
12919
|
-
V !== H && H > V &&
|
|
12920
|
-
}, [
|
|
12921
|
-
|
|
12920
|
+
const V = zt.current ?? 0, H = Kr.current ?? 0;
|
|
12921
|
+
V !== H && H > V && jr(V, H);
|
|
12922
|
+
}, [jr, zt, Kr]);
|
|
12923
|
+
K(() => {
|
|
12922
12924
|
Ot.current = se;
|
|
12923
|
-
}, [se]),
|
|
12925
|
+
}, [se]), K(() => {
|
|
12924
12926
|
Mt.current = re;
|
|
12925
12927
|
}, [re]), Le.current = e;
|
|
12926
12928
|
const pa = e === ve.current;
|
|
12927
|
-
|
|
12929
|
+
je.current = pa || Q.current, K(() => {
|
|
12928
12930
|
if (!vt.current || O === 0) return;
|
|
12929
|
-
const V = vt.current, H = ye.current, ge =
|
|
12931
|
+
const V = vt.current, H = ye.current, ge = j;
|
|
12930
12932
|
if (H === ge) return;
|
|
12931
12933
|
const W = V.clientWidth, Me = V.scrollLeft + W / 2, Ie = qe.current, ya = Me * H / Ie * Ie / ge, to = Math.max(0, ya - W / 2);
|
|
12932
12934
|
V.scrollLeft = to, ye.current = ge;
|
|
12933
|
-
}, [
|
|
12935
|
+
}, [j, O]);
|
|
12934
12936
|
const Jr = M(null);
|
|
12935
|
-
|
|
12937
|
+
K(() => {
|
|
12936
12938
|
if (pa || Q.current) {
|
|
12937
12939
|
pa && (ve.current = null);
|
|
12938
12940
|
let W = 0;
|
|
@@ -12980,13 +12982,13 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
12980
12982
|
soloed: bt.soloed,
|
|
12981
12983
|
volume: bt.volume,
|
|
12982
12984
|
pan: bt.pan
|
|
12983
|
-
}))), B.current && B.current.dispose(),
|
|
12984
|
-
const Me =
|
|
12985
|
+
}))), B.current && B.current.dispose(), Ke.current = 0, ve.current = null, Oe.current = !1;
|
|
12986
|
+
const Me = jh({ effects: u, soundFontCache: gt.current }), Ie = new rp({
|
|
12985
12987
|
adapter: Me,
|
|
12986
12988
|
samplesPerPixel: ye.current,
|
|
12987
12989
|
zoomLevels: S
|
|
12988
12990
|
});
|
|
12989
|
-
Ie.setSelection(zt.current ?? 0,
|
|
12991
|
+
Ie.setSelection(zt.current ?? 0, Kr.current ?? 0), Ie.setLoopRegion(Ki.current ?? 0, ji.current ?? 0), Yi.current && Ie.setLoopEnabled(!0), Ie.setMasterVolume(et.current ?? 1), tl.current && Ie.selectTrack(tl.current);
|
|
12990
12992
|
const eo = Mt.current, ya = e.map((Te, bt) => {
|
|
12991
12993
|
const Jt = eo[bt];
|
|
12992
12994
|
return {
|
|
@@ -12999,10 +13001,10 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
12999
13001
|
});
|
|
13000
13002
|
let to = !0;
|
|
13001
13003
|
Ie.on("statechange", (Te) => {
|
|
13002
|
-
zi(Te), qi(Te), el(Te), Ae(Te), Je(Te), !to && Te.tracksVersion !==
|
|
13004
|
+
zi(Te), qi(Te), el(Te), Ae(Te), Je(Te), !to && Te.tracksVersion !== Ke.current && (Ke.current = Te.tracksVersion, ve.current = Te.tracks, v ? v(Te.tracks) : console.warn(
|
|
13003
13005
|
"[waveform-playlist] Engine tracks changed but onTracksChange prop is not set — UI will revert on next render. Pass onTracksChange to WaveformPlaylistProvider."
|
|
13004
13006
|
));
|
|
13005
|
-
}), Ie.setTracks(ya), to = !1,
|
|
13007
|
+
}), Ie.setTracks(ya), to = !1, Ke.current = Ie.getState().tracksVersion, B.current = Ie, Fe(!0);
|
|
13006
13008
|
const nh = new CustomEvent("waveform-playlist:ready", {
|
|
13007
13009
|
detail: {
|
|
13008
13010
|
trackCount: e.length,
|
|
@@ -13014,8 +13016,8 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13014
13016
|
console.error("Error loading audio:", W);
|
|
13015
13017
|
}
|
|
13016
13018
|
})(), () => {
|
|
13017
|
-
if (
|
|
13018
|
-
|
|
13019
|
+
if (je.current) {
|
|
13020
|
+
je.current = !1;
|
|
13019
13021
|
return;
|
|
13020
13022
|
}
|
|
13021
13023
|
qr(), B.current && B.current.dispose();
|
|
@@ -13039,14 +13041,14 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13039
13041
|
v,
|
|
13040
13042
|
et,
|
|
13041
13043
|
zt,
|
|
13042
|
-
|
|
13043
|
-
ji,
|
|
13044
|
+
Kr,
|
|
13044
13045
|
Ki,
|
|
13046
|
+
ji,
|
|
13045
13047
|
Yi,
|
|
13046
13048
|
S,
|
|
13047
13049
|
y,
|
|
13048
13050
|
b
|
|
13049
|
-
]),
|
|
13051
|
+
]), K(() => {
|
|
13050
13052
|
if (e.length === 0) return;
|
|
13051
13053
|
const V = e.map((H) => H.clips.map((W) => {
|
|
13052
13054
|
let xe;
|
|
@@ -13054,7 +13056,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13054
13056
|
try {
|
|
13055
13057
|
xe = hc(
|
|
13056
13058
|
W.waveformData,
|
|
13057
|
-
|
|
13059
|
+
j,
|
|
13058
13060
|
n,
|
|
13059
13061
|
W.offsetSamples,
|
|
13060
13062
|
W.durationSamples
|
|
@@ -13068,7 +13070,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13068
13070
|
try {
|
|
13069
13071
|
xe = hc(
|
|
13070
13072
|
Me,
|
|
13071
|
-
|
|
13073
|
+
j,
|
|
13072
13074
|
n,
|
|
13073
13075
|
W.offsetSamples,
|
|
13074
13076
|
W.durationSamples
|
|
@@ -13081,7 +13083,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13081
13083
|
!b && !W.audioBuffer && !W.waveformData && !W.midiNotes && console.warn(
|
|
13082
13084
|
`[waveform-playlist] Clip "${W.id}" has no audio data or waveform data`
|
|
13083
13085
|
);
|
|
13084
|
-
const Me = n ? 1 : W.audioBuffer?.numberOfChannels ?? 1, Ie = W.midiNotes ? Math.ceil(W.durationSamples /
|
|
13086
|
+
const Me = n ? 1 : W.audioBuffer?.numberOfChannels ?? 1, Ie = W.midiNotes ? Math.ceil(W.durationSamples / j) : 0;
|
|
13085
13087
|
xe = {
|
|
13086
13088
|
length: Ie,
|
|
13087
13089
|
data: Array.from({ length: Me }, () => new Int16Array(Ie * 2)),
|
|
@@ -13102,7 +13104,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13102
13104
|
};
|
|
13103
13105
|
}));
|
|
13104
13106
|
he(V);
|
|
13105
|
-
}, [e,
|
|
13107
|
+
}, [e, j, n, rl, b]);
|
|
13106
13108
|
const sl = M(!1), $n = T(() => {
|
|
13107
13109
|
if (B.current)
|
|
13108
13110
|
return B.current.getCurrentTime();
|
|
@@ -13149,7 +13151,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13149
13151
|
};
|
|
13150
13152
|
ha(V);
|
|
13151
13153
|
}, [O, Zt, ha, $n]), yt = qr;
|
|
13152
|
-
|
|
13154
|
+
K(() => {
|
|
13153
13155
|
(async () => {
|
|
13154
13156
|
if ($ && nl.current && B.current)
|
|
13155
13157
|
if (_e) {
|
|
@@ -13162,7 +13164,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13162
13164
|
})().catch((H) => {
|
|
13163
13165
|
console.warn("[waveform-playlist] Failed to reschedule playback:", H), A(!1), yt();
|
|
13164
13166
|
});
|
|
13165
|
-
}, [_e, $, un, yt, nl]),
|
|
13167
|
+
}, [_e, $, un, yt, nl]), K(() => {
|
|
13166
13168
|
(async () => {
|
|
13167
13169
|
if (Jr.current && B.current) {
|
|
13168
13170
|
const { position: H } = Jr.current;
|
|
@@ -13347,7 +13349,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13347
13349
|
setActiveAnnotationId: Zt,
|
|
13348
13350
|
// Loop controls
|
|
13349
13351
|
setLoopEnabled: Ui,
|
|
13350
|
-
setLoopRegion:
|
|
13352
|
+
setLoopRegion: jr,
|
|
13351
13353
|
setLoopRegionFromSelection: al,
|
|
13352
13354
|
clearLoopRegion: Xi
|
|
13353
13355
|
}),
|
|
@@ -13377,7 +13379,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13377
13379
|
gl,
|
|
13378
13380
|
Zt,
|
|
13379
13381
|
Ui,
|
|
13380
|
-
|
|
13382
|
+
jr,
|
|
13381
13383
|
al,
|
|
13382
13384
|
Xi
|
|
13383
13385
|
]
|
|
@@ -13394,7 +13396,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13394
13396
|
minimumPlaylistHeight: vl,
|
|
13395
13397
|
controls: l,
|
|
13396
13398
|
playoutRef: B,
|
|
13397
|
-
samplesPerPixel:
|
|
13399
|
+
samplesPerPixel: j,
|
|
13398
13400
|
timeFormat: $t,
|
|
13399
13401
|
masterVolume: q,
|
|
13400
13402
|
canZoomIn: U.canZoomIn,
|
|
@@ -13419,7 +13421,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13419
13421
|
vl,
|
|
13420
13422
|
l,
|
|
13421
13423
|
B,
|
|
13422
|
-
|
|
13424
|
+
j,
|
|
13423
13425
|
$t,
|
|
13424
13426
|
q,
|
|
13425
13427
|
U.canZoomIn,
|
|
@@ -13455,7 +13457,7 @@ const Cf = Ve(null), xf = Ve(null), Ef = Ve(null), If = Ve(null), e1 = ({
|
|
|
13455
13457
|
throw new Error("usePlaylistData must be used within WaveformPlaylistProvider");
|
|
13456
13458
|
return e;
|
|
13457
13459
|
};
|
|
13458
|
-
var
|
|
13460
|
+
var Ry = class {
|
|
13459
13461
|
constructor(e) {
|
|
13460
13462
|
this._playbackRate = 1, this.handleEnded = () => {
|
|
13461
13463
|
this.onStopCallback && this.onStopCallback();
|
|
@@ -13562,7 +13564,7 @@ var Dy = class {
|
|
|
13562
13564
|
get element() {
|
|
13563
13565
|
return this.audioElement;
|
|
13564
13566
|
}
|
|
13565
|
-
},
|
|
13567
|
+
}, Py = class {
|
|
13566
13568
|
constructor(e = {}) {
|
|
13567
13569
|
this.track = null, this._isPlaying = !1, this._masterVolume = e.masterVolume ?? 1, this._playbackRate = e.playbackRate ?? 1;
|
|
13568
13570
|
}
|
|
@@ -13579,7 +13581,7 @@ var Dy = class {
|
|
|
13579
13581
|
addTrack(e) {
|
|
13580
13582
|
return this.track && (console.warn(
|
|
13581
13583
|
"MediaElementPlayout: Only one track is supported. Disposing previous track. For multi-track, use TonePlayout."
|
|
13582
|
-
), this.track.dispose()), this.track = new
|
|
13584
|
+
), this.track.dispose()), this.track = new Ry({
|
|
13583
13585
|
...e,
|
|
13584
13586
|
volume: this._masterVolume * (e.volume ?? 1),
|
|
13585
13587
|
playbackRate: this._playbackRate
|
|
@@ -13698,7 +13700,7 @@ var Dy = class {
|
|
|
13698
13700
|
return this.track?.peaks.sample_rate ?? 44100;
|
|
13699
13701
|
}
|
|
13700
13702
|
};
|
|
13701
|
-
const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null),
|
|
13703
|
+
const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), n1 = ({
|
|
13702
13704
|
track: e,
|
|
13703
13705
|
samplesPerPixel: t = 1024,
|
|
13704
13706
|
waveHeight: n = 100,
|
|
@@ -13730,9 +13732,9 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13730
13732
|
const [A, D] = z(null), [R, O] = z(
|
|
13731
13733
|
l?.isContinuousPlay ?? !1
|
|
13732
13734
|
), [L] = z(t), [Y, te] = z(a), ne = M(null), he = M(0), re = M(R), le = M(null), se = M(null), ue = M(a), _e = M(t), { startAnimationFrameLoop: pe, stopAnimationFrameLoop: oe } = kf();
|
|
13733
|
-
|
|
13735
|
+
K(() => {
|
|
13734
13736
|
re.current = R;
|
|
13735
|
-
}, [R]),
|
|
13737
|
+
}, [R]), K(() => {
|
|
13736
13738
|
ue.current = Y;
|
|
13737
13739
|
}, [Y]);
|
|
13738
13740
|
const G = T((Z) => {
|
|
@@ -13742,8 +13744,8 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13742
13744
|
}, []), Ne = T((Z) => {
|
|
13743
13745
|
se.current = Z;
|
|
13744
13746
|
}, []), ie = e.waveformData.sample_rate;
|
|
13745
|
-
|
|
13746
|
-
const Z = new
|
|
13747
|
+
K(() => {
|
|
13748
|
+
const Z = new Py({
|
|
13747
13749
|
playbackRate: o
|
|
13748
13750
|
});
|
|
13749
13751
|
Z.addTrack({
|
|
@@ -13752,8 +13754,8 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13752
13754
|
name: e.name
|
|
13753
13755
|
});
|
|
13754
13756
|
const ve = Z.getTrack(Z.track?.id ?? "");
|
|
13755
|
-
return ve && ve.setOnTimeUpdateCallback((
|
|
13756
|
-
he.current =
|
|
13757
|
+
return ve && ve.setOnTimeUpdateCallback((Ke) => {
|
|
13758
|
+
he.current = Ke;
|
|
13757
13759
|
}), Z.setOnPlaybackComplete(() => {
|
|
13758
13760
|
oe(), v(!1), G(null), he.current = 0, b(0);
|
|
13759
13761
|
}), ne.current = Z, _(e.waveformData.duration), d?.(), () => {
|
|
@@ -13767,7 +13769,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13767
13769
|
d,
|
|
13768
13770
|
oe,
|
|
13769
13771
|
G
|
|
13770
|
-
]),
|
|
13772
|
+
]), K(() => {
|
|
13771
13773
|
try {
|
|
13772
13774
|
const Z = ry(
|
|
13773
13775
|
e.waveformData,
|
|
@@ -13798,26 +13800,26 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13798
13800
|
const Z = () => {
|
|
13799
13801
|
const ve = ne.current?.getCurrentTime() ?? 0;
|
|
13800
13802
|
he.current = ve;
|
|
13801
|
-
const
|
|
13802
|
-
if (
|
|
13803
|
-
const
|
|
13803
|
+
const Ke = $.current;
|
|
13804
|
+
if (Ke.length > 0) {
|
|
13805
|
+
const je = Ke.find(
|
|
13804
13806
|
(Q) => ve >= Q.start && ve < Q.end
|
|
13805
13807
|
);
|
|
13806
13808
|
if (re.current)
|
|
13807
|
-
|
|
13809
|
+
je && je.id !== le.current ? G(je.id) : !je && le.current !== null && G(null);
|
|
13808
13810
|
else if (le.current) {
|
|
13809
|
-
const Q =
|
|
13811
|
+
const Q = Ke.find(
|
|
13810
13812
|
(ye) => ye.id === le.current
|
|
13811
13813
|
);
|
|
13812
13814
|
if (Q && ve >= Q.end) {
|
|
13813
13815
|
ne.current?.stop(), v(!1);
|
|
13814
13816
|
return;
|
|
13815
13817
|
}
|
|
13816
|
-
} else
|
|
13818
|
+
} else je && G(je.id);
|
|
13817
13819
|
}
|
|
13818
13820
|
if (ue.current && se.current) {
|
|
13819
|
-
const
|
|
13820
|
-
|
|
13821
|
+
const je = se.current, Q = ve * ie / _e.current, ye = je.clientWidth, qe = Math.max(0, Q - ye / 2);
|
|
13822
|
+
je.scrollLeft = qe;
|
|
13821
13823
|
}
|
|
13822
13824
|
pe(Z);
|
|
13823
13825
|
};
|
|
@@ -13947,7 +13949,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13947
13949
|
if (!e)
|
|
13948
13950
|
throw new Error("useMediaElementData must be used within MediaElementPlaylistProvider");
|
|
13949
13951
|
return e;
|
|
13950
|
-
},
|
|
13952
|
+
}, r1 = ({ className: e }) => {
|
|
13951
13953
|
const { isPlaying: t, currentTimeRef: n } = ht(), { selectionStart: r, selectionEnd: o, isLoopEnabled: a } = pt(), { play: s } = $e();
|
|
13952
13954
|
return /* @__PURE__ */ k(kt, { onClick: async () => {
|
|
13953
13955
|
if (r !== o && o > r && !a) {
|
|
@@ -13956,23 +13958,23 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13956
13958
|
} else
|
|
13957
13959
|
await s(n.current ?? 0);
|
|
13958
13960
|
}, disabled: t, className: e, children: "Play" });
|
|
13959
|
-
},
|
|
13961
|
+
}, o1 = ({ className: e }) => {
|
|
13960
13962
|
const { isPlaying: t } = ht(), { pause: n } = $e();
|
|
13961
13963
|
return /* @__PURE__ */ k(kt, { onClick: n, disabled: !t, className: e, children: "Pause" });
|
|
13962
|
-
},
|
|
13964
|
+
}, a1 = ({ className: e }) => {
|
|
13963
13965
|
const { isPlaying: t } = ht(), { stop: n } = $e();
|
|
13964
13966
|
return /* @__PURE__ */ k(kt, { onClick: n, disabled: !t, className: e, children: "Stop" });
|
|
13965
|
-
},
|
|
13967
|
+
}, s1 = ({ className: e }) => {
|
|
13966
13968
|
const { isPlaying: t } = ht(), { play: n, setCurrentTime: r } = $e();
|
|
13967
13969
|
return /* @__PURE__ */ k(kt, { onClick: () => {
|
|
13968
13970
|
r(0), t && n(0);
|
|
13969
13971
|
}, className: e, children: "Rewind" });
|
|
13970
|
-
},
|
|
13972
|
+
}, i1 = ({ className: e }) => {
|
|
13971
13973
|
const { isPlaying: t } = ht(), { play: n, setCurrentTime: r } = $e(), { duration: o } = mt();
|
|
13972
13974
|
return /* @__PURE__ */ k(kt, { onClick: () => {
|
|
13973
13975
|
r(o), t && n(o);
|
|
13974
13976
|
}, className: e, children: "Fast Forward" });
|
|
13975
|
-
},
|
|
13977
|
+
}, l1 = ({
|
|
13976
13978
|
skipAmount: e = 5,
|
|
13977
13979
|
className: t
|
|
13978
13980
|
}) => {
|
|
@@ -13981,7 +13983,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13981
13983
|
const i = Math.max(0, (n.current ?? 0) - e);
|
|
13982
13984
|
a(i), r && o(i);
|
|
13983
13985
|
}, className: t, children: "Skip Backward" });
|
|
13984
|
-
},
|
|
13986
|
+
}, c1 = ({
|
|
13985
13987
|
skipAmount: e = 5,
|
|
13986
13988
|
className: t
|
|
13987
13989
|
}) => {
|
|
@@ -13990,7 +13992,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
13990
13992
|
const l = Math.min(s, (n.current ?? 0) + e);
|
|
13991
13993
|
a(l), r && o(l);
|
|
13992
13994
|
}, className: t, children: "Skip Forward" });
|
|
13993
|
-
},
|
|
13995
|
+
}, u1 = ({ className: e }) => {
|
|
13994
13996
|
const { isLoopEnabled: t, loopStart: n, loopEnd: r } = pt(), { setLoopEnabled: o, setLoopRegion: a } = $e(), { duration: s } = mt(), i = n !== r && r > n;
|
|
13995
13997
|
return /* @__PURE__ */ k(
|
|
13996
13998
|
kt,
|
|
@@ -14007,7 +14009,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14007
14009
|
children: t ? "Loop On" : "Loop Off"
|
|
14008
14010
|
}
|
|
14009
14011
|
);
|
|
14010
|
-
},
|
|
14012
|
+
}, d1 = ({ className: e }) => {
|
|
14011
14013
|
const { selectionStart: t, selectionEnd: n, loopStart: r, loopEnd: o } = pt(), { setLoopRegionFromSelection: a, clearLoopRegion: s } = $e(), i = t !== n && n > t, l = r !== o && o > r;
|
|
14012
14014
|
return /* @__PURE__ */ k(
|
|
14013
14015
|
kt,
|
|
@@ -14021,7 +14023,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14021
14023
|
children: l ? "Clear Loop" : "Set Loop"
|
|
14022
14024
|
}
|
|
14023
14025
|
);
|
|
14024
|
-
},
|
|
14026
|
+
}, f1 = ({
|
|
14025
14027
|
onClearAll: e,
|
|
14026
14028
|
label: t = "Clear All",
|
|
14027
14029
|
className: n
|
|
@@ -14030,19 +14032,19 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14030
14032
|
r(), e();
|
|
14031
14033
|
}, [r, e]);
|
|
14032
14034
|
return /* @__PURE__ */ k(kt, { onClick: o, className: n, title: "Remove all tracks", children: t });
|
|
14033
|
-
},
|
|
14035
|
+
}, h1 = ({
|
|
14034
14036
|
className: e,
|
|
14035
14037
|
disabled: t
|
|
14036
14038
|
}) => {
|
|
14037
14039
|
const { zoomIn: n } = $e(), { canZoomIn: r } = mt();
|
|
14038
14040
|
return /* @__PURE__ */ k(kt, { onClick: n, disabled: t || !r, className: e, children: "Zoom In" });
|
|
14039
|
-
},
|
|
14041
|
+
}, p1 = ({
|
|
14040
14042
|
className: e,
|
|
14041
14043
|
disabled: t
|
|
14042
14044
|
}) => {
|
|
14043
14045
|
const { zoomOut: n } = $e(), { canZoomOut: r } = mt();
|
|
14044
14046
|
return /* @__PURE__ */ k(kt, { onClick: n, disabled: t || !r, className: e, children: "Zoom Out" });
|
|
14045
|
-
},
|
|
14047
|
+
}, m1 = ({ className: e }) => {
|
|
14046
14048
|
const { masterVolume: t } = mt(), { setMasterVolume: n } = $e();
|
|
14047
14049
|
return /* @__PURE__ */ k(
|
|
14048
14050
|
Nv,
|
|
@@ -14052,18 +14054,18 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14052
14054
|
className: e
|
|
14053
14055
|
}
|
|
14054
14056
|
);
|
|
14055
|
-
},
|
|
14057
|
+
}, g1 = ({ className: e }) => {
|
|
14056
14058
|
const { timeFormat: t } = mt(), { setTimeFormat: n } = $e();
|
|
14057
14059
|
return /* @__PURE__ */ k(C0, { value: t, onChange: n, className: e });
|
|
14058
|
-
},
|
|
14060
|
+
}, Fy = F.span`
|
|
14059
14061
|
font-family: 'Courier New', Monaco, monospace;
|
|
14060
14062
|
font-size: 1rem;
|
|
14061
14063
|
font-weight: 600;
|
|
14062
14064
|
color: ${(e) => e.theme?.textColor || "#333"};
|
|
14063
14065
|
user-select: none;
|
|
14064
|
-
`,
|
|
14066
|
+
`, v1 = ({ className: e }) => {
|
|
14065
14067
|
const t = M(null), n = M(null), { isPlaying: r, currentTimeRef: o, getPlaybackTime: a } = ht(), { timeFormat: s } = mt();
|
|
14066
|
-
return
|
|
14068
|
+
return K(() => {
|
|
14067
14069
|
const i = () => {
|
|
14068
14070
|
if (t.current) {
|
|
14069
14071
|
const l = r ? a() : o.current ?? 0;
|
|
@@ -14074,10 +14076,10 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14074
14076
|
return r ? n.current = requestAnimationFrame(i) : i(), () => {
|
|
14075
14077
|
n.current && (cancelAnimationFrame(n.current), n.current = null);
|
|
14076
14078
|
};
|
|
14077
|
-
}, [r, s, o, a]),
|
|
14079
|
+
}, [r, s, o, a]), K(() => {
|
|
14078
14080
|
!r && t.current && (t.current.textContent = Zn(o.current ?? 0, s));
|
|
14079
|
-
}), /* @__PURE__ */ k(
|
|
14080
|
-
},
|
|
14081
|
+
}), /* @__PURE__ */ k(Fy, { ref: t, className: e, "aria-label": "Audio position", children: Zn(o.current ?? 0, s) });
|
|
14082
|
+
}, y1 = ({ className: e }) => {
|
|
14081
14083
|
const { selectionStart: t, selectionEnd: n } = pt(), { setSelection: r } = $e();
|
|
14082
14084
|
return /* @__PURE__ */ k(
|
|
14083
14085
|
o0,
|
|
@@ -14088,7 +14090,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14088
14090
|
className: e
|
|
14089
14091
|
}
|
|
14090
14092
|
);
|
|
14091
|
-
},
|
|
14093
|
+
}, b1 = ({ className: e }) => {
|
|
14092
14094
|
const { isAutomaticScroll: t } = pt(), { setAutomaticScroll: n } = $e();
|
|
14093
14095
|
return /* @__PURE__ */ k(
|
|
14094
14096
|
mv,
|
|
@@ -14098,7 +14100,7 @@ const Af = Ve(null), Mf = Ve(null), Tf = Ve(null), $f = Ve(null), t1 = ({
|
|
|
14098
14100
|
className: e
|
|
14099
14101
|
}
|
|
14100
14102
|
);
|
|
14101
|
-
}, da = Ve(null),
|
|
14103
|
+
}, da = Ve(null), w1 = da.Provider;
|
|
14102
14104
|
function or() {
|
|
14103
14105
|
const e = Pe(da);
|
|
14104
14106
|
if (!e)
|
|
@@ -14107,22 +14109,22 @@ function or() {
|
|
|
14107
14109
|
);
|
|
14108
14110
|
return e;
|
|
14109
14111
|
}
|
|
14110
|
-
const
|
|
14112
|
+
const _1 = ({ className: e }) => {
|
|
14111
14113
|
const { ContinuousPlayCheckbox: t } = or(), { continuousPlay: n } = pt(), { setContinuousPlay: r } = $e();
|
|
14112
14114
|
return /* @__PURE__ */ k(t, { checked: n, onChange: r, className: e });
|
|
14113
|
-
},
|
|
14115
|
+
}, S1 = ({ className: e }) => {
|
|
14114
14116
|
const { LinkEndpointsCheckbox: t } = or(), { linkEndpoints: n } = pt(), { setLinkEndpoints: r } = $e();
|
|
14115
14117
|
return /* @__PURE__ */ k(t, { checked: n, onChange: r, className: e });
|
|
14116
|
-
},
|
|
14118
|
+
}, k1 = ({ className: e }) => {
|
|
14117
14119
|
const { EditableCheckbox: t } = or(), { annotationsEditable: n } = pt(), { setAnnotationsEditable: r } = $e();
|
|
14118
14120
|
return /* @__PURE__ */ k(t, { checked: n, onChange: r, className: e });
|
|
14119
|
-
},
|
|
14121
|
+
}, C1 = ({
|
|
14120
14122
|
filename: e,
|
|
14121
14123
|
className: t
|
|
14122
14124
|
}) => {
|
|
14123
14125
|
const { DownloadAnnotationsButton: n } = or(), { annotations: r } = pt();
|
|
14124
14126
|
return /* @__PURE__ */ k(n, { annotations: r, filename: e, className: t });
|
|
14125
|
-
},
|
|
14127
|
+
}, x1 = ({
|
|
14126
14128
|
label: e = "Export WAV",
|
|
14127
14129
|
filename: t = "export",
|
|
14128
14130
|
mode: n = "master",
|
|
@@ -14135,7 +14137,7 @@ const w1 = ({ className: e }) => {
|
|
|
14135
14137
|
onExportComplete: c,
|
|
14136
14138
|
onExportError: u
|
|
14137
14139
|
}) => {
|
|
14138
|
-
const { tracks: f, trackStates: p } = mt(), { exportWav: d, isExporting: h, progress: g } =
|
|
14140
|
+
const { tracks: f, trackStates: p } = mt(), { exportWav: d, isExporting: h, progress: g } = Cy(), m = async () => {
|
|
14139
14141
|
try {
|
|
14140
14142
|
const y = await d(f, p, {
|
|
14141
14143
|
filename: t,
|
|
@@ -14161,11 +14163,11 @@ const w1 = ({ className: e }) => {
|
|
|
14161
14163
|
children: v
|
|
14162
14164
|
}
|
|
14163
14165
|
);
|
|
14164
|
-
}, Rf = Ve(!1),
|
|
14165
|
-
function
|
|
14166
|
+
}, Rf = Ve(!1), Oy = Rf.Provider;
|
|
14167
|
+
function Ly() {
|
|
14166
14168
|
return Pe(Rf);
|
|
14167
14169
|
}
|
|
14168
|
-
const
|
|
14170
|
+
const By = F.div.attrs((e) => ({
|
|
14169
14171
|
style: {
|
|
14170
14172
|
width: `${e.$width}px`,
|
|
14171
14173
|
background: e.$color
|
|
@@ -14178,9 +14180,9 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14178
14180
|
z-index: 100; /* Below sticky controls (z-index: 101) so playhead is hidden when scrolled behind controls */
|
|
14179
14181
|
pointer-events: none;
|
|
14180
14182
|
will-change: transform;
|
|
14181
|
-
`,
|
|
14183
|
+
`, Wy = ({ color: e = "#ff0000" }) => {
|
|
14182
14184
|
const t = M(null), n = M(null), { isPlaying: r, currentTimeRef: o, getPlaybackTime: a } = ht(), { samplesPerPixel: s, sampleRate: i, progressBarWidth: l } = mt();
|
|
14183
|
-
return
|
|
14185
|
+
return K(() => {
|
|
14184
14186
|
const c = () => {
|
|
14185
14187
|
if (t.current) {
|
|
14186
14188
|
const f = (r ? a() : o.current ?? 0) * i / s;
|
|
@@ -14191,13 +14193,13 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14191
14193
|
return r ? n.current = requestAnimationFrame(c) : c(), () => {
|
|
14192
14194
|
n.current && (cancelAnimationFrame(n.current), n.current = null);
|
|
14193
14195
|
};
|
|
14194
|
-
}, [r, i, s, o, a]),
|
|
14196
|
+
}, [r, i, s, o, a]), K(() => {
|
|
14195
14197
|
if (!r && t.current) {
|
|
14196
14198
|
const u = (o.current ?? 0) * i / s;
|
|
14197
14199
|
t.current.style.transform = `translate3d(${u}px, 0, 0)`;
|
|
14198
14200
|
}
|
|
14199
|
-
}), /* @__PURE__ */ k(
|
|
14200
|
-
},
|
|
14201
|
+
}), /* @__PURE__ */ k(By, { ref: t, $color: e, $width: l, "data-playhead": !0 });
|
|
14202
|
+
}, Vy = F.div`
|
|
14201
14203
|
position: relative;
|
|
14202
14204
|
`, Ra = F.div.attrs((e) => ({
|
|
14203
14205
|
style: {
|
|
@@ -14213,7 +14215,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14213
14215
|
/* Force GPU compositing layer to prevent gradient flickering during scroll */
|
|
14214
14216
|
transform: translateZ(0);
|
|
14215
14217
|
backface-visibility: hidden;
|
|
14216
|
-
`,
|
|
14218
|
+
`, Ny = F.div.attrs((e) => ({
|
|
14217
14219
|
style: {
|
|
14218
14220
|
top: `${e.$top}px`,
|
|
14219
14221
|
height: `${e.$height}px`,
|
|
@@ -14229,7 +14231,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14229
14231
|
transform-origin: left;
|
|
14230
14232
|
/* scaleX changes are composite-only (GPU) — no layout reflow per frame */
|
|
14231
14233
|
will-change: transform;
|
|
14232
|
-
`,
|
|
14234
|
+
`, zy = F.div`
|
|
14233
14235
|
position: relative;
|
|
14234
14236
|
z-index: 2;
|
|
14235
14237
|
`, gc = ({
|
|
@@ -14245,7 +14247,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14245
14247
|
t,
|
|
14246
14248
|
d
|
|
14247
14249
|
);
|
|
14248
|
-
|
|
14250
|
+
K(() => {
|
|
14249
14251
|
const $ = () => {
|
|
14250
14252
|
if (s.current) {
|
|
14251
14253
|
const D = (u ? p() : f.current ?? 0) * h, R = e + t;
|
|
@@ -14265,7 +14267,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14265
14267
|
m,
|
|
14266
14268
|
f,
|
|
14267
14269
|
p
|
|
14268
|
-
]),
|
|
14270
|
+
]), K(() => {
|
|
14269
14271
|
if (!u && s.current) {
|
|
14270
14272
|
const A = (f.current ?? 0) * h, D = e + t;
|
|
14271
14273
|
let R = 0;
|
|
@@ -14276,7 +14278,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14276
14278
|
let y;
|
|
14277
14279
|
v === "inverted" ? y = a.isSelected && l ? l.selectedWaveFillColor : l?.waveFillColor || "white" : y = a.isSelected && l ? l.selectedWaveOutlineColor : l?.waveOutlineColor || "grey";
|
|
14278
14280
|
const b = a.renderMode === "spectrogram" || a.renderMode === "both", w = a.renderMode === "piano-roll", _ = a.renderMode === "both", S = b ? "#000" : w ? l?.pianoRollBackgroundColor || "#1a1a2e" : sn(y), C = Math.floor(c / 2), x = c, E = a.index * c, I = sn(y);
|
|
14279
|
-
return /* @__PURE__ */ de(
|
|
14281
|
+
return /* @__PURE__ */ de(Vy, { children: [
|
|
14280
14282
|
_ ? /* @__PURE__ */ de(Wt, { children: [
|
|
14281
14283
|
/* @__PURE__ */ k(
|
|
14282
14284
|
Ra,
|
|
@@ -14306,7 +14308,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14306
14308
|
}
|
|
14307
14309
|
),
|
|
14308
14310
|
!w && /* @__PURE__ */ k(
|
|
14309
|
-
|
|
14311
|
+
Ny,
|
|
14310
14312
|
{
|
|
14311
14313
|
ref: s,
|
|
14312
14314
|
$color: g,
|
|
@@ -14315,7 +14317,7 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14315
14317
|
$width: m
|
|
14316
14318
|
}
|
|
14317
14319
|
),
|
|
14318
|
-
/* @__PURE__ */ k(
|
|
14320
|
+
/* @__PURE__ */ k(zy, { children: /* @__PURE__ */ k(
|
|
14319
14321
|
gf,
|
|
14320
14322
|
{
|
|
14321
14323
|
...a,
|
|
@@ -14326,8 +14328,8 @@ const Ly = F.div.attrs((e) => ({
|
|
|
14326
14328
|
}
|
|
14327
14329
|
) })
|
|
14328
14330
|
] });
|
|
14329
|
-
}, Vi = Ve(null),
|
|
14330
|
-
function
|
|
14331
|
+
}, Vi = Ve(null), E1 = Vi.Provider;
|
|
14332
|
+
function I1() {
|
|
14331
14333
|
const e = Pe(Vi);
|
|
14332
14334
|
if (!e)
|
|
14333
14335
|
throw new Error(
|
|
@@ -14335,7 +14337,7 @@ function E1() {
|
|
|
14335
14337
|
);
|
|
14336
14338
|
return e;
|
|
14337
14339
|
}
|
|
14338
|
-
const
|
|
14340
|
+
const Zy = 60, Hy = F.div.attrs((e) => ({
|
|
14339
14341
|
style: { height: `${e.$height}px` }
|
|
14340
14342
|
}))`
|
|
14341
14343
|
overflow: hidden;
|
|
@@ -14343,7 +14345,7 @@ const zy = 60, Zy = F.div.attrs((e) => ({
|
|
|
14343
14345
|
background: ${(e) => e.theme.surfaceColor};
|
|
14344
14346
|
transition: background 0.15s ease-in-out;
|
|
14345
14347
|
${(e) => e.$isSelected && `background: ${e.theme.selectedTrackControlsBackground};`}
|
|
14346
|
-
`,
|
|
14348
|
+
`, Gy = ({ renderPlayhead: e, color: t, samplesPerPixel: n, sampleRate: r }) => {
|
|
14347
14349
|
const {
|
|
14348
14350
|
isPlaying: o,
|
|
14349
14351
|
currentTimeRef: a,
|
|
@@ -14369,7 +14371,7 @@ function Pa(e, t, n, r) {
|
|
|
14369
14371
|
const o = e.length > 0 ? Math.max(1, ...e.map((s) => s.peaks.data.length)) : 1, a = t?.isRecording && t.trackId === n ? r ? 1 : t.peaks.length : 0;
|
|
14370
14372
|
return Math.max(o, a);
|
|
14371
14373
|
}
|
|
14372
|
-
const
|
|
14374
|
+
const Uy = ({
|
|
14373
14375
|
renderTrackControls: e,
|
|
14374
14376
|
renderTick: t,
|
|
14375
14377
|
renderPlayhead: n,
|
|
@@ -14428,7 +14430,7 @@ const Gy = ({
|
|
|
14428
14430
|
const N = /* @__PURE__ */ new Map();
|
|
14429
14431
|
return ue.forEach((X) => {
|
|
14430
14432
|
if ((ae.trackSpectrogramOverrides.get(X.id)?.renderMode ?? X.renderMode ?? "waveform") === "waveform") return;
|
|
14431
|
-
const
|
|
14433
|
+
const j = ae.trackSpectrogramOverrides.get(X.id), Ae = j?.colorMap ?? X.spectrogramColorMap ?? ae.spectrogramColorMap ?? "viridis", De = j?.config ?? X.spectrogramConfig ?? ae.spectrogramConfig;
|
|
14432
14434
|
N.set(X.id, {
|
|
14433
14435
|
colorLUT: ae.getColorMap(Ae),
|
|
14434
14436
|
frequencyScaleFn: ae.getFrequencyScale(De?.frequencyScale ?? "mel"),
|
|
@@ -14450,11 +14452,11 @@ const Gy = ({
|
|
|
14450
14452
|
ct.current = N, te(N);
|
|
14451
14453
|
},
|
|
14452
14454
|
[te]
|
|
14453
|
-
), Ot = ue.reduce((N, X) => X.clips.reduce((U,
|
|
14454
|
-
const Ae = (
|
|
14455
|
+
), Ot = ue.reduce((N, X) => X.clips.reduce((U, j) => {
|
|
14456
|
+
const Ae = (j.startSample + j.durationSamples) / j.sampleRate;
|
|
14455
14457
|
return Math.max(U, Ae);
|
|
14456
14458
|
}, N), 0);
|
|
14457
|
-
let Tt = Ot > 0 ? Ot : _e > 0 ? _e :
|
|
14459
|
+
let Tt = Ot > 0 ? Ot : _e > 0 ? _e : Zy;
|
|
14458
14460
|
if (f?.isRecording) {
|
|
14459
14461
|
const X = (f.startSample + f.durationSamples) / oe;
|
|
14460
14462
|
Tt = Math.max(Tt, X + 10);
|
|
@@ -14471,7 +14473,7 @@ const Gy = ({
|
|
|
14471
14473
|
U
|
|
14472
14474
|
);
|
|
14473
14475
|
}
|
|
14474
|
-
},
|
|
14476
|
+
}, Ke = T(
|
|
14475
14477
|
(N) => {
|
|
14476
14478
|
if (N >= 0 && N < ue.length) {
|
|
14477
14479
|
const X = ue[N];
|
|
@@ -14479,8 +14481,8 @@ const Gy = ({
|
|
|
14479
14481
|
}
|
|
14480
14482
|
},
|
|
14481
14483
|
[ue, ne]
|
|
14482
|
-
),
|
|
14483
|
-
const X = N.currentTarget.getBoundingClientRect(),
|
|
14484
|
+
), je = (N) => {
|
|
14485
|
+
const X = N.currentTarget.getBoundingClientRect(), j = (N.clientX - X.left) * pe / oe, De = N.clientY - X.top;
|
|
14484
14486
|
let q = 0, He = -1;
|
|
14485
14487
|
for (let et = 0; et < le.length; et++) {
|
|
14486
14488
|
const Je = le[et], Dt = Pa(Je, f, ue[et]?.id, Oe), zt = ((ae?.trackSpectrogramOverrides.get(ue[et]?.id)?.renderMode ?? ue[et]?.renderMode ?? "waveform") === "both" ? Dt * 2 : Dt) * G + (s ? 22 : 0);
|
|
@@ -14490,10 +14492,10 @@ const Gy = ({
|
|
|
14490
14492
|
}
|
|
14491
14493
|
q += zt;
|
|
14492
14494
|
}
|
|
14493
|
-
He !== -1 &&
|
|
14495
|
+
He !== -1 && Ke(He), Ye.current = j, lt(!0), he(j), L(j, j);
|
|
14494
14496
|
}, Q = (N) => {
|
|
14495
14497
|
if (!Mt || d) return;
|
|
14496
|
-
const X = N.currentTarget.getBoundingClientRect(),
|
|
14498
|
+
const X = N.currentTarget.getBoundingClientRect(), j = (N.clientX - X.left) * pe / oe, Ae = Math.min(h, j), De = Math.max(h, j);
|
|
14497
14499
|
L(Ae, De);
|
|
14498
14500
|
}, ye = (N) => {
|
|
14499
14501
|
if (!Mt) return;
|
|
@@ -14502,7 +14504,7 @@ const Gy = ({
|
|
|
14502
14504
|
he(q), L(q, q), Y(q);
|
|
14503
14505
|
return;
|
|
14504
14506
|
}
|
|
14505
|
-
const X = N.currentTarget.getBoundingClientRect(),
|
|
14507
|
+
const X = N.currentTarget.getBoundingClientRect(), j = (N.clientX - X.left) * pe / oe, Ae = Math.min(h, j), De = Math.max(h, j);
|
|
14506
14508
|
Math.abs(De - Ae) < 0.1 ? he(Ae) : L(Ae, De);
|
|
14507
14509
|
};
|
|
14508
14510
|
if (ue.some((N) => N.clips.length > 0) && le.length === 0)
|
|
@@ -14510,13 +14512,13 @@ const Gy = ({
|
|
|
14510
14512
|
const $t = Ne.show ? le.map((N, X) => {
|
|
14511
14513
|
const U = ue[X];
|
|
14512
14514
|
if (!U) return null;
|
|
14513
|
-
const
|
|
14515
|
+
const j = se[X] || {
|
|
14514
14516
|
name: `Track ${X + 1}`,
|
|
14515
14517
|
muted: !1,
|
|
14516
14518
|
soloed: !1,
|
|
14517
14519
|
volume: 1,
|
|
14518
14520
|
pan: 0
|
|
14519
|
-
}, Ae = U.clips.some((Je) => Je.midiNotes && Je.midiNotes.length > 0), De = ae?.trackSpectrogramOverrides.get(U.id)?.renderMode ?? U.renderMode ?? (Ae ? "piano-roll" : "waveform"), q = Pa(N, f, U.id, Oe), He = G * q + (s ? Fi : 0), et = e ? e(X) : /* @__PURE__ */ de(T0, { onClick: () =>
|
|
14521
|
+
}, Ae = U.clips.some((Je) => Je.midiNotes && Je.midiNotes.length > 0), De = ae?.trackSpectrogramOverrides.get(U.id)?.renderMode ?? U.renderMode ?? (Ae ? "piano-roll" : "waveform"), q = Pa(N, f, U.id, Oe), He = G * q + (s ? Fi : 0), et = e ? e(X) : /* @__PURE__ */ de(T0, { onClick: () => Ke(X), children: [
|
|
14520
14522
|
/* @__PURE__ */ de($0, { style: { justifyContent: "center", position: "relative" }, children: [
|
|
14521
14523
|
u && /* @__PURE__ */ k(
|
|
14522
14524
|
M0,
|
|
@@ -14536,7 +14538,7 @@ const Gy = ({
|
|
|
14536
14538
|
padding: "0 24px",
|
|
14537
14539
|
display: "block"
|
|
14538
14540
|
},
|
|
14539
|
-
children:
|
|
14541
|
+
children: j.name || `Track ${X + 1}`
|
|
14540
14542
|
}
|
|
14541
14543
|
),
|
|
14542
14544
|
ae?.renderMenuItems && /* @__PURE__ */ k("span", { style: { position: "absolute", right: 0, top: 0 }, children: /* @__PURE__ */ k(
|
|
@@ -14555,16 +14557,16 @@ const Gy = ({
|
|
|
14555
14557
|
/* @__PURE__ */ k(
|
|
14556
14558
|
uc,
|
|
14557
14559
|
{
|
|
14558
|
-
$variant:
|
|
14559
|
-
onClick: () => A(X, !
|
|
14560
|
+
$variant: j.muted ? "danger" : "outline",
|
|
14561
|
+
onClick: () => A(X, !j.muted),
|
|
14560
14562
|
children: "Mute"
|
|
14561
14563
|
}
|
|
14562
14564
|
),
|
|
14563
14565
|
/* @__PURE__ */ k(
|
|
14564
14566
|
uc,
|
|
14565
14567
|
{
|
|
14566
|
-
$variant:
|
|
14567
|
-
onClick: () => D(X, !
|
|
14568
|
+
$variant: j.soloed ? "info" : "outline",
|
|
14569
|
+
onClick: () => D(X, !j.soloed),
|
|
14568
14570
|
children: "Solo"
|
|
14569
14571
|
}
|
|
14570
14572
|
)
|
|
@@ -14577,7 +14579,7 @@ const Gy = ({
|
|
|
14577
14579
|
min: "0",
|
|
14578
14580
|
max: "1",
|
|
14579
14581
|
step: "0.01",
|
|
14580
|
-
value:
|
|
14582
|
+
value: j.volume,
|
|
14581
14583
|
onChange: (Je) => R(X, parseFloat(Je.target.value))
|
|
14582
14584
|
}
|
|
14583
14585
|
),
|
|
@@ -14591,7 +14593,7 @@ const Gy = ({
|
|
|
14591
14593
|
min: "-1",
|
|
14592
14594
|
max: "1",
|
|
14593
14595
|
step: "0.01",
|
|
14594
|
-
value:
|
|
14596
|
+
value: j.pan,
|
|
14595
14597
|
onChange: (Je) => O(X, parseFloat(Je.target.value))
|
|
14596
14598
|
}
|
|
14597
14599
|
),
|
|
@@ -14599,7 +14601,7 @@ const Gy = ({
|
|
|
14599
14601
|
] })
|
|
14600
14602
|
] });
|
|
14601
14603
|
return /* @__PURE__ */ k(
|
|
14602
|
-
|
|
14604
|
+
Hy,
|
|
14603
14605
|
{
|
|
14604
14606
|
$height: He,
|
|
14605
14607
|
$isSelected: U.id === _,
|
|
@@ -14632,7 +14634,7 @@ const Gy = ({
|
|
|
14632
14634
|
timescaleWidth: Z,
|
|
14633
14635
|
tracksWidth: Z,
|
|
14634
14636
|
controlsWidth: Ne.show ? Ne.width : 0,
|
|
14635
|
-
onTracksMouseDown:
|
|
14637
|
+
onTracksMouseDown: je,
|
|
14636
14638
|
onTracksMouseMove: Q,
|
|
14637
14639
|
onTracksMouseUp: ye,
|
|
14638
14640
|
scrollContainerRef: vt,
|
|
@@ -14652,8 +14654,8 @@ const Gy = ({
|
|
|
14652
14654
|
minPosition: 0,
|
|
14653
14655
|
maxPosition: Z,
|
|
14654
14656
|
onLoopRegionChange: (N, X) => {
|
|
14655
|
-
const U = N * pe / oe,
|
|
14656
|
-
re(U,
|
|
14657
|
+
const U = N * pe / oe, j = X * pe / oe;
|
|
14658
|
+
re(U, j);
|
|
14657
14659
|
}
|
|
14658
14660
|
}
|
|
14659
14661
|
)
|
|
@@ -14662,7 +14664,7 @@ const Gy = ({
|
|
|
14662
14664
|
le.map((N, X) => {
|
|
14663
14665
|
const U = ue[X];
|
|
14664
14666
|
if (!U) return null;
|
|
14665
|
-
const
|
|
14667
|
+
const j = U.clips.some((q) => q.midiNotes && q.midiNotes.length > 0), Ae = ae?.trackSpectrogramOverrides.get(U.id)?.renderMode ?? U.renderMode ?? (j ? "piano-roll" : "waveform"), De = Pa(
|
|
14666
14668
|
N,
|
|
14667
14669
|
f,
|
|
14668
14670
|
U.id,
|
|
@@ -14720,7 +14722,7 @@ const Gy = ({
|
|
|
14720
14722
|
onMouseDown: (Dt) => {
|
|
14721
14723
|
Dt.target.closest(
|
|
14722
14724
|
'[role="button"][aria-roledescription="draggable"]'
|
|
14723
|
-
) ||
|
|
14725
|
+
) || Ke(X);
|
|
14724
14726
|
},
|
|
14725
14727
|
children: et.data.map((Dt, qt) => /* @__PURE__ */ k(
|
|
14726
14728
|
gc,
|
|
@@ -14792,14 +14794,14 @@ const Gy = ({
|
|
|
14792
14794
|
);
|
|
14793
14795
|
}),
|
|
14794
14796
|
m.length > 0 && E && /* @__PURE__ */ k(E.AnnotationBoxesWrapper, { height: 30, width: Z, children: m.map((N, X) => {
|
|
14795
|
-
const U = N.start * oe / pe,
|
|
14797
|
+
const U = N.start * oe / pe, j = N.end * oe / pe, Ae = o ? o(N, X) : N.id;
|
|
14796
14798
|
return /* @__PURE__ */ k(
|
|
14797
14799
|
E.AnnotationBox,
|
|
14798
14800
|
{
|
|
14799
14801
|
annotationId: N.id,
|
|
14800
14802
|
annotationIndex: X,
|
|
14801
14803
|
startPosition: U,
|
|
14802
|
-
endPosition:
|
|
14804
|
+
endPosition: j,
|
|
14803
14805
|
label: Ae,
|
|
14804
14806
|
color: "#ff9800",
|
|
14805
14807
|
isActive: N.id === v,
|
|
@@ -14818,14 +14820,14 @@ const Gy = ({
|
|
|
14818
14820
|
}
|
|
14819
14821
|
),
|
|
14820
14822
|
(d || h === g) && (n ? /* @__PURE__ */ k(
|
|
14821
|
-
|
|
14823
|
+
Gy,
|
|
14822
14824
|
{
|
|
14823
14825
|
renderPlayhead: n,
|
|
14824
14826
|
color: p.playheadColor,
|
|
14825
14827
|
samplesPerPixel: pe,
|
|
14826
14828
|
sampleRate: oe
|
|
14827
14829
|
}
|
|
14828
|
-
) : /* @__PURE__ */ k(
|
|
14830
|
+
) : /* @__PURE__ */ k(Wy, { color: p.playheadColor }))
|
|
14829
14831
|
] })
|
|
14830
14832
|
}
|
|
14831
14833
|
)
|
|
@@ -14847,7 +14849,7 @@ const Gy = ({
|
|
|
14847
14849
|
document.body
|
|
14848
14850
|
)
|
|
14849
14851
|
] });
|
|
14850
|
-
},
|
|
14852
|
+
}, Xy = ({
|
|
14851
14853
|
height: e,
|
|
14852
14854
|
renderAnnotationItem: t,
|
|
14853
14855
|
onAnnotationUpdate: n,
|
|
@@ -14878,7 +14880,7 @@ const Gy = ({
|
|
|
14878
14880
|
renderAnnotationItem: t
|
|
14879
14881
|
}
|
|
14880
14882
|
);
|
|
14881
|
-
},
|
|
14883
|
+
}, A1 = ({
|
|
14882
14884
|
renderTrackControls: e,
|
|
14883
14885
|
renderTick: t,
|
|
14884
14886
|
renderTimestamp: n,
|
|
@@ -14898,10 +14900,10 @@ const Gy = ({
|
|
|
14898
14900
|
onRemoveTrack: m,
|
|
14899
14901
|
recordingState: v
|
|
14900
14902
|
}) => {
|
|
14901
|
-
const { annotations: y } = pt(), b =
|
|
14903
|
+
const { annotations: y } = pt(), b = Ly();
|
|
14902
14904
|
return /* @__PURE__ */ de(Wt, { children: [
|
|
14903
14905
|
/* @__PURE__ */ k(
|
|
14904
|
-
|
|
14906
|
+
Uy,
|
|
14905
14907
|
{
|
|
14906
14908
|
renderTrackControls: e,
|
|
14907
14909
|
renderTick: t ?? (n ? (_, S) => n(parseFloat(_) || 0, S) : void 0),
|
|
@@ -14918,7 +14920,7 @@ const Gy = ({
|
|
|
14918
14920
|
}
|
|
14919
14921
|
),
|
|
14920
14922
|
y.length > 0 && /* @__PURE__ */ k(
|
|
14921
|
-
|
|
14923
|
+
Xy,
|
|
14922
14924
|
{
|
|
14923
14925
|
height: s,
|
|
14924
14926
|
renderAnnotationItem: i,
|
|
@@ -14930,31 +14932,31 @@ const Gy = ({
|
|
|
14930
14932
|
)
|
|
14931
14933
|
] });
|
|
14932
14934
|
};
|
|
14933
|
-
var
|
|
14935
|
+
var Yy = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Pf = Yy ? Sn : K;
|
|
14934
14936
|
function Pn(e) {
|
|
14935
14937
|
const t = M(e);
|
|
14936
14938
|
return Pf(() => {
|
|
14937
14939
|
t.current = e;
|
|
14938
14940
|
}, [e]), t;
|
|
14939
14941
|
}
|
|
14940
|
-
function Fa(e, t, n =
|
|
14942
|
+
function Fa(e, t, n = K, r = Object.is) {
|
|
14941
14943
|
const o = M(e);
|
|
14942
14944
|
n(() => {
|
|
14943
14945
|
const a = o.current;
|
|
14944
14946
|
r(e, a) || (o.current = e, t(e, a));
|
|
14945
14947
|
}, [t, e]);
|
|
14946
14948
|
}
|
|
14947
|
-
var vc = Object.getOwnPropertySymbols,
|
|
14949
|
+
var vc = Object.getOwnPropertySymbols, Ky = Object.prototype.hasOwnProperty, jy = Object.prototype.propertyIsEnumerable, qy = (e, t) => {
|
|
14948
14950
|
var n = {};
|
|
14949
14951
|
for (var r in e)
|
|
14950
|
-
|
|
14952
|
+
Ky.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
14951
14953
|
if (e != null && vc)
|
|
14952
14954
|
for (var r of vc(e))
|
|
14953
14955
|
t.indexOf(r) < 0 && jy.call(e, r) && (n[r] = e[r]);
|
|
14954
14956
|
return n;
|
|
14955
|
-
},
|
|
14956
|
-
|
|
14957
|
-
),
|
|
14957
|
+
}, Jy = new Ei(), Qy = Ve(
|
|
14958
|
+
Jy
|
|
14959
|
+
), eb = Cc(
|
|
14958
14960
|
xc(({ children: e }, t) => {
|
|
14959
14961
|
const [n, r] = z(0), o = M(null), a = M(null), s = Ce(
|
|
14960
14962
|
() => ({
|
|
@@ -14989,7 +14991,7 @@ function Ff(e) {
|
|
|
14989
14991
|
onDragMove: s,
|
|
14990
14992
|
onDragOver: i,
|
|
14991
14993
|
onDragEnd: l
|
|
14992
|
-
} = t, c =
|
|
14994
|
+
} = t, c = qy(t, [
|
|
14993
14995
|
"children",
|
|
14994
14996
|
"onCollision",
|
|
14995
14997
|
"onBeforeDragStart",
|
|
@@ -14998,11 +15000,11 @@ function Ff(e) {
|
|
|
14998
15000
|
"onDragOver",
|
|
14999
15001
|
"onDragEnd"
|
|
15000
15002
|
]);
|
|
15001
|
-
const u = M(null), { plugins: f, modifiers: p, sensors: d } = c, h = Ut(f, zn.plugins), g = Ut(d, zn.sensors), m = Ut(p, zn.modifiers), v = Pn(o), y = Pn(a), b = Pn(i), w = Pn(s), _ = Pn(l), S = Pn(r), C =
|
|
15003
|
+
const u = M(null), { plugins: f, modifiers: p, sensors: d } = c, h = Ut(f, zn.plugins), g = Ut(d, zn.sensors), m = Ut(p, zn.modifiers), v = Pn(o), y = Pn(a), b = Pn(i), w = Pn(s), _ = Pn(l), S = Pn(r), C = tb(() => {
|
|
15002
15004
|
var x;
|
|
15003
15005
|
return (x = c.manager) != null ? x : new Ei(c);
|
|
15004
15006
|
});
|
|
15005
|
-
return
|
|
15007
|
+
return K(() => {
|
|
15006
15008
|
if (!u.current) throw new Error("Renderer not found");
|
|
15007
15009
|
const { renderer: x, trackRendering: E } = u.current, { monitor: I } = C;
|
|
15008
15010
|
C.renderer = x;
|
|
@@ -15051,31 +15053,31 @@ function Ff(e) {
|
|
|
15051
15053
|
m,
|
|
15052
15054
|
() => C && (C.modifiers = m),
|
|
15053
15055
|
...Oa
|
|
15054
|
-
), /* @__PURE__ */ de(
|
|
15055
|
-
/* @__PURE__ */ k(
|
|
15056
|
+
), /* @__PURE__ */ de(Qy.Provider, { value: C, children: [
|
|
15057
|
+
/* @__PURE__ */ k(eb, { ref: u, children: n }),
|
|
15056
15058
|
n
|
|
15057
15059
|
] });
|
|
15058
15060
|
}
|
|
15059
|
-
function
|
|
15061
|
+
function tb(e) {
|
|
15060
15062
|
const t = M(null);
|
|
15061
15063
|
return t.current || (t.current = e()), Dh(() => () => {
|
|
15062
15064
|
var n;
|
|
15063
15065
|
return (n = t.current) == null ? void 0 : n.destroy();
|
|
15064
15066
|
}, []), t.current;
|
|
15065
15067
|
}
|
|
15066
|
-
var
|
|
15068
|
+
var nb = Object.create, Of = Object.defineProperty, rb = Object.getOwnPropertyDescriptor, Lf = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), fa = (e) => {
|
|
15067
15069
|
throw TypeError(e);
|
|
15068
|
-
},
|
|
15070
|
+
}, ob = (e, t, n) => t in e ? Of(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ab = (e) => {
|
|
15069
15071
|
var t;
|
|
15070
|
-
return [, , ,
|
|
15071
|
-
}, Bf = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Wf = (e) => e !== void 0 && typeof e != "function" ? fa("Function expected") : e,
|
|
15072
|
+
return [, , , nb((t = e?.[Lf("metadata")]) != null ? t : null)];
|
|
15073
|
+
}, Bf = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Wf = (e) => e !== void 0 && typeof e != "function" ? fa("Function expected") : e, sb = (e, t, n, r, o) => ({ kind: Bf[e], name: t, metadata: r, addInitializer: (a) => n._ ? fa("Already initialized") : o.push(Wf(a || null)) }), ib = (e, t) => ob(t, Lf("metadata"), e[3]), lb = (e, t, n, r) => {
|
|
15072
15074
|
for (var o = 0, a = e[t >> 1], s = a && a.length; o < s; o++) a[o].call(n);
|
|
15073
15075
|
return r;
|
|
15074
15076
|
}, Vf = (e, t, n, r, o, a) => {
|
|
15075
|
-
for (var s, i, l, c, u = t & 7, f = !1, p = !1, d = 2, h = Bf[u + 5], g = e[d] || (e[d] = []), m = (o = o.prototype,
|
|
15076
|
-
l =
|
|
15077
|
+
for (var s, i, l, c, u = t & 7, f = !1, p = !1, d = 2, h = Bf[u + 5], g = e[d] || (e[d] = []), m = (o = o.prototype, rb(o, n)), v = r.length - 1; v >= 0; v--)
|
|
15078
|
+
l = sb(u, n, i = {}, e[3], g), l.static = f, l.private = p, c = l.access = { has: (y) => n in y }, c.get = (y) => y[n], s = (0, r[v])(m[h], l), i._ = 1, Wf(s) && (m[h] = s);
|
|
15077
15079
|
return m && Of(o, n, m), o;
|
|
15078
|
-
}, Nf = (e, t, n) => t.has(e) || fa("Cannot " + n),
|
|
15080
|
+
}, Nf = (e, t, n) => t.has(e) || fa("Cannot " + n), cb = (e, t, n) => (Nf(e, t, "read from private field"), t.get(e)), ub = (e, t, n) => t.has(e) ? fa("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), db = (e, t, n, r) => (Nf(e, t, "write to private field"), t.set(e, n), n), cr = class xs {
|
|
15079
15081
|
/**
|
|
15080
15082
|
* @param {number} Coordinate of the point on the horizontal axis
|
|
15081
15083
|
* @param {number} Coordinate of the point on the vertical axis
|
|
@@ -15116,7 +15118,7 @@ var tb = Object.create, Of = Object.defineProperty, nb = Object.getOwnPropertyDe
|
|
|
15116
15118
|
}, zf, Zf, Es, Io, Yr, Ni = class extends (Es = ln, Zf = [Re], zf = [Re], Es) {
|
|
15117
15119
|
constructor(e) {
|
|
15118
15120
|
const t = cr.from(e);
|
|
15119
|
-
super(t, (n, r) => cr.equals(n, r)),
|
|
15121
|
+
super(t, (n, r) => cr.equals(n, r)), lb(Yr, 5, this), ub(this, Io, 0), this.velocity = { x: 0, y: 0 };
|
|
15120
15122
|
}
|
|
15121
15123
|
get delta() {
|
|
15122
15124
|
return cr.delta(this.current, this.initial);
|
|
@@ -15137,9 +15139,9 @@ var tb = Object.create, Of = Object.defineProperty, nb = Object.getOwnPropertyDe
|
|
|
15137
15139
|
const { current: t } = this, n = cr.from(e), r = {
|
|
15138
15140
|
x: n.x - t.x,
|
|
15139
15141
|
y: n.y - t.y
|
|
15140
|
-
}, o = Date.now(), a = o -
|
|
15142
|
+
}, o = Date.now(), a = o - cb(this, Io), s = (i) => Math.round(i / a * 100);
|
|
15141
15143
|
an(() => {
|
|
15142
|
-
|
|
15144
|
+
db(this, Io, o), this.velocity = {
|
|
15143
15145
|
x: s(r.x),
|
|
15144
15146
|
y: s(r.y)
|
|
15145
15147
|
}, super.current = n;
|
|
@@ -15149,21 +15151,21 @@ var tb = Object.create, Of = Object.defineProperty, nb = Object.getOwnPropertyDe
|
|
|
15149
15151
|
super.reset(cr.from(e)), this.velocity = { x: 0, y: 0 };
|
|
15150
15152
|
}
|
|
15151
15153
|
};
|
|
15152
|
-
Yr =
|
|
15154
|
+
Yr = ab(Es);
|
|
15153
15155
|
Io = /* @__PURE__ */ new WeakMap();
|
|
15154
15156
|
Vf(Yr, 2, "delta", Zf, Ni);
|
|
15155
15157
|
Vf(Yr, 2, "direction", zf, Ni);
|
|
15156
|
-
|
|
15158
|
+
ib(Yr, Ni);
|
|
15157
15159
|
var Hf = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(Hf || {});
|
|
15158
15160
|
Object.values(Hf);
|
|
15159
|
-
var
|
|
15161
|
+
var fb = Object.defineProperty, hb = Object.defineProperties, pb = Object.getOwnPropertyDescriptors, yc = Object.getOwnPropertySymbols, mb = Object.prototype.hasOwnProperty, gb = Object.prototype.propertyIsEnumerable, bc = (e, t, n) => t in e ? fb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gf = (e, t) => {
|
|
15160
15162
|
for (var n in t || (t = {}))
|
|
15161
|
-
|
|
15163
|
+
mb.call(t, n) && bc(e, n, t[n]);
|
|
15162
15164
|
if (yc)
|
|
15163
15165
|
for (var n of yc(t))
|
|
15164
|
-
|
|
15166
|
+
gb.call(t, n) && bc(e, n, t[n]);
|
|
15165
15167
|
return e;
|
|
15166
|
-
}, Uf = (e, t) =>
|
|
15168
|
+
}, Uf = (e, t) => hb(e, pb(t)), Is = class extends Gn {
|
|
15167
15169
|
/**
|
|
15168
15170
|
* Applies the axis restriction to the drag operation.
|
|
15169
15171
|
*
|
|
@@ -15205,13 +15207,13 @@ var Yf = Xf.configure({
|
|
|
15205
15207
|
}
|
|
15206
15208
|
};
|
|
15207
15209
|
wc.configure = xn(wc);
|
|
15208
|
-
const
|
|
15210
|
+
const Kf = (e) => {
|
|
15209
15211
|
let t = !1;
|
|
15210
15212
|
const n = e.map((r) => r === fs ? (t = !0, fs.configure({ dropAnimation: null })) : r);
|
|
15211
15213
|
return t || console.warn(
|
|
15212
15214
|
"[waveform-playlist] noDropAnimationPlugins: Feedback plugin not found in defaults — drop animation may not be disabled. Check @dnd-kit/dom version."
|
|
15213
15215
|
), n;
|
|
15214
|
-
},
|
|
15216
|
+
}, vb = F.div`
|
|
15215
15217
|
position: absolute;
|
|
15216
15218
|
top: 0;
|
|
15217
15219
|
left: 0;
|
|
@@ -15221,11 +15223,11 @@ const jf = (e) => {
|
|
|
15221
15223
|
z-index: 100;
|
|
15222
15224
|
pointer-events: none;
|
|
15223
15225
|
will-change: transform;
|
|
15224
|
-
`,
|
|
15226
|
+
`, yb = ({
|
|
15225
15227
|
color: e = "#ff0000"
|
|
15226
15228
|
}) => {
|
|
15227
15229
|
const t = M(null), n = M(null), { isPlaying: r, currentTimeRef: o } = ua(), { samplesPerPixel: a, sampleRate: s, progressBarWidth: i } = Wi();
|
|
15228
|
-
return
|
|
15230
|
+
return K(() => {
|
|
15229
15231
|
const l = () => {
|
|
15230
15232
|
if (t.current) {
|
|
15231
15233
|
const u = (o.current ?? 0) * s / a;
|
|
@@ -15236,15 +15238,15 @@ const jf = (e) => {
|
|
|
15236
15238
|
return r ? n.current = requestAnimationFrame(l) : l(), () => {
|
|
15237
15239
|
n.current && (cancelAnimationFrame(n.current), n.current = null);
|
|
15238
15240
|
};
|
|
15239
|
-
}, [r, s, a, o]),
|
|
15241
|
+
}, [r, s, a, o]), K(() => {
|
|
15240
15242
|
if (!r && t.current) {
|
|
15241
15243
|
const c = (o.current ?? 0) * s / a;
|
|
15242
15244
|
t.current.style.transform = `translate3d(${c}px, 0, 0)`;
|
|
15243
15245
|
}
|
|
15244
|
-
}), /* @__PURE__ */ k(
|
|
15245
|
-
},
|
|
15246
|
+
}), /* @__PURE__ */ k(vb, { ref: t, $color: e, $width: i, "data-playhead": !0 });
|
|
15247
|
+
}, bb = F.div`
|
|
15246
15248
|
position: relative;
|
|
15247
|
-
`,
|
|
15249
|
+
`, wb = F.div`
|
|
15248
15250
|
position: absolute;
|
|
15249
15251
|
top: ${(e) => e.$top}px;
|
|
15250
15252
|
left: 0;
|
|
@@ -15254,7 +15256,7 @@ const jf = (e) => {
|
|
|
15254
15256
|
z-index: 0;
|
|
15255
15257
|
transform: translateZ(0);
|
|
15256
15258
|
backface-visibility: hidden;
|
|
15257
|
-
`,
|
|
15259
|
+
`, _b = F.div`
|
|
15258
15260
|
position: absolute;
|
|
15259
15261
|
top: ${(e) => e.$top}px;
|
|
15260
15262
|
left: 0;
|
|
@@ -15263,16 +15265,16 @@ const jf = (e) => {
|
|
|
15263
15265
|
pointer-events: none;
|
|
15264
15266
|
z-index: 1;
|
|
15265
15267
|
will-change: width;
|
|
15266
|
-
`,
|
|
15268
|
+
`, Sb = F.div`
|
|
15267
15269
|
position: relative;
|
|
15268
15270
|
z-index: 2;
|
|
15269
|
-
`,
|
|
15271
|
+
`, kb = ({
|
|
15270
15272
|
clipStartSample: e,
|
|
15271
15273
|
clipDurationSamples: t,
|
|
15272
15274
|
...n
|
|
15273
15275
|
}) => {
|
|
15274
15276
|
const r = M(null), o = M(null), a = Xr(), { waveHeight: s } = ia(), { isPlaying: i, currentTimeRef: l } = ua(), { samplesPerPixel: c, sampleRate: u } = Wi(), f = a?.waveProgressColor || "rgba(0, 0, 0, 0.1)";
|
|
15275
|
-
|
|
15277
|
+
K(() => {
|
|
15276
15278
|
const g = () => {
|
|
15277
15279
|
if (r.current) {
|
|
15278
15280
|
const v = (l.current ?? 0) * u, y = e + t;
|
|
@@ -15300,7 +15302,7 @@ const jf = (e) => {
|
|
|
15300
15302
|
t,
|
|
15301
15303
|
n.length,
|
|
15302
15304
|
l
|
|
15303
|
-
]),
|
|
15305
|
+
]), K(() => {
|
|
15304
15306
|
if (!i && r.current) {
|
|
15305
15307
|
const m = (l.current ?? 0) * u, v = e + t;
|
|
15306
15308
|
let y = 0;
|
|
@@ -15319,9 +15321,9 @@ const jf = (e) => {
|
|
|
15319
15321
|
let d;
|
|
15320
15322
|
p === "inverted" ? d = a?.selectedWaveFillColor || a?.waveFillColor || "white" : d = a?.selectedWaveOutlineColor || a?.waveOutlineColor || "grey";
|
|
15321
15323
|
const h = sn(d);
|
|
15322
|
-
return /* @__PURE__ */ de(
|
|
15324
|
+
return /* @__PURE__ */ de(bb, { children: [
|
|
15323
15325
|
/* @__PURE__ */ k(
|
|
15324
|
-
|
|
15326
|
+
wb,
|
|
15325
15327
|
{
|
|
15326
15328
|
$color: h,
|
|
15327
15329
|
$height: s,
|
|
@@ -15330,7 +15332,7 @@ const jf = (e) => {
|
|
|
15330
15332
|
}
|
|
15331
15333
|
),
|
|
15332
15334
|
/* @__PURE__ */ k(
|
|
15333
|
-
|
|
15335
|
+
_b,
|
|
15334
15336
|
{
|
|
15335
15337
|
ref: r,
|
|
15336
15338
|
$color: f,
|
|
@@ -15338,9 +15340,9 @@ const jf = (e) => {
|
|
|
15338
15340
|
$top: n.index * s
|
|
15339
15341
|
}
|
|
15340
15342
|
),
|
|
15341
|
-
/* @__PURE__ */ k(
|
|
15343
|
+
/* @__PURE__ */ k(Sb, { children: /* @__PURE__ */ k(gf, { ...n, isSelected: !0, transparentBackground: !0 }) })
|
|
15342
15344
|
] });
|
|
15343
|
-
}, _c = { current: 0 },
|
|
15345
|
+
}, _c = { current: 0 }, Cb = ({ renderPlayhead: e, color: t, samplesPerPixel: n, sampleRate: r }) => {
|
|
15344
15346
|
const { isPlaying: o, currentTimeRef: a } = ua();
|
|
15345
15347
|
return e({
|
|
15346
15348
|
position: (a.current ?? 0) * r / n,
|
|
@@ -15353,7 +15355,7 @@ const jf = (e) => {
|
|
|
15353
15355
|
sampleRate: r,
|
|
15354
15356
|
controlsOffset: 0
|
|
15355
15357
|
});
|
|
15356
|
-
},
|
|
15358
|
+
}, xb = ({
|
|
15357
15359
|
getAnnotationBoxLabel: e,
|
|
15358
15360
|
editable: t = !1,
|
|
15359
15361
|
linkEndpoints: n = !1,
|
|
@@ -15488,7 +15490,7 @@ const jf = (e) => {
|
|
|
15488
15490
|
isSelected: !0,
|
|
15489
15491
|
trackId: `media-element-track-${me}`,
|
|
15490
15492
|
children: B.data.map((ae, Ue) => /* @__PURE__ */ k(
|
|
15491
|
-
|
|
15493
|
+
kb,
|
|
15492
15494
|
{
|
|
15493
15495
|
index: Ue,
|
|
15494
15496
|
data: ae,
|
|
@@ -15514,7 +15516,7 @@ const jf = (e) => {
|
|
|
15514
15516
|
onDragMove: le,
|
|
15515
15517
|
onDragEnd: se,
|
|
15516
15518
|
modifiers: t ? [Yf] : [],
|
|
15517
|
-
plugins:
|
|
15519
|
+
plugins: Kf,
|
|
15518
15520
|
children: /* @__PURE__ */ k(u.AnnotationBoxesWrapper, { height: 30, width: te, children: l.map((G, me) => {
|
|
15519
15521
|
const Ne = G.start * y / _, ie = G.end * y / _, Fe = e ? e(G, me) : G.id;
|
|
15520
15522
|
return /* @__PURE__ */ k(
|
|
@@ -15544,20 +15546,20 @@ const jf = (e) => {
|
|
|
15544
15546
|
}
|
|
15545
15547
|
),
|
|
15546
15548
|
o ? /* @__PURE__ */ k(
|
|
15547
|
-
|
|
15549
|
+
Cb,
|
|
15548
15550
|
{
|
|
15549
15551
|
renderPlayhead: o,
|
|
15550
15552
|
color: s.playheadColor,
|
|
15551
15553
|
samplesPerPixel: _,
|
|
15552
15554
|
sampleRate: y
|
|
15553
15555
|
}
|
|
15554
|
-
) : /* @__PURE__ */ k(
|
|
15556
|
+
) : /* @__PURE__ */ k(yb, { color: s.playheadColor })
|
|
15555
15557
|
] })
|
|
15556
15558
|
}
|
|
15557
15559
|
)
|
|
15558
15560
|
}
|
|
15559
15561
|
) });
|
|
15560
|
-
},
|
|
15562
|
+
}, Eb = ({
|
|
15561
15563
|
height: e,
|
|
15562
15564
|
renderAnnotationItem: t,
|
|
15563
15565
|
onAnnotationUpdate: n,
|
|
@@ -15589,7 +15591,7 @@ const jf = (e) => {
|
|
|
15589
15591
|
renderAnnotationItem: t
|
|
15590
15592
|
}
|
|
15591
15593
|
);
|
|
15592
|
-
},
|
|
15594
|
+
}, $1 = ({
|
|
15593
15595
|
annotationTextHeight: e,
|
|
15594
15596
|
getAnnotationBoxLabel: t,
|
|
15595
15597
|
renderAnnotationItem: n,
|
|
@@ -15604,7 +15606,7 @@ const jf = (e) => {
|
|
|
15604
15606
|
const { annotations: u } = Bi();
|
|
15605
15607
|
return /* @__PURE__ */ de(Wt, { children: [
|
|
15606
15608
|
/* @__PURE__ */ k(
|
|
15607
|
-
|
|
15609
|
+
xb,
|
|
15608
15610
|
{
|
|
15609
15611
|
getAnnotationBoxLabel: t,
|
|
15610
15612
|
editable: r,
|
|
@@ -15615,7 +15617,7 @@ const jf = (e) => {
|
|
|
15615
15617
|
}
|
|
15616
15618
|
),
|
|
15617
15619
|
u.length > 0 && /* @__PURE__ */ k(
|
|
15618
|
-
|
|
15620
|
+
Eb,
|
|
15619
15621
|
{
|
|
15620
15622
|
height: e,
|
|
15621
15623
|
renderAnnotationItem: n,
|
|
@@ -15627,7 +15629,7 @@ const jf = (e) => {
|
|
|
15627
15629
|
}
|
|
15628
15630
|
)
|
|
15629
15631
|
] });
|
|
15630
|
-
},
|
|
15632
|
+
}, D1 = ({
|
|
15631
15633
|
playback: e = !1,
|
|
15632
15634
|
clipSplitting: t = !1,
|
|
15633
15635
|
annotations: n = !1,
|
|
@@ -15649,10 +15651,10 @@ const jf = (e) => {
|
|
|
15649
15651
|
action: v,
|
|
15650
15652
|
description: "Split clip at playhead",
|
|
15651
15653
|
preventDefault: !0
|
|
15652
|
-
}), r.length > 0 && y.push(...r),
|
|
15654
|
+
}), r.length > 0 && y.push(...r), vy({
|
|
15653
15655
|
enabled: e || y.length > 0,
|
|
15654
15656
|
...e ? { additionalShortcuts: y } : { shortcuts: y }
|
|
15655
|
-
}),
|
|
15657
|
+
}), yy({
|
|
15656
15658
|
annotations: c,
|
|
15657
15659
|
activeAnnotationId: f,
|
|
15658
15660
|
onAnnotationsChange: d,
|
|
@@ -15700,7 +15702,7 @@ const Xo = class Xo extends Gn {
|
|
|
15700
15702
|
}
|
|
15701
15703
|
const { snapTo: i, bpm: l, timeSignature: c, sampleRate: u } = this.options;
|
|
15702
15704
|
if (i === "off") return n;
|
|
15703
|
-
const f = i === "bar" ? Ds(c) :
|
|
15705
|
+
const f = i === "bar" ? Ds(c) : jo(c);
|
|
15704
15706
|
if (a !== void 0) {
|
|
15705
15707
|
const m = a + n.x * s, v = Wa(m, l, u), y = Va(v, f);
|
|
15706
15708
|
return { x: (Nn(y, l, u) - a) / s, y: 0 };
|
|
@@ -15711,21 +15713,21 @@ const Xo = class Xo extends Gn {
|
|
|
15711
15713
|
};
|
|
15712
15714
|
Xo.configure = xn(Xo);
|
|
15713
15715
|
let Go = Xo;
|
|
15714
|
-
const
|
|
15715
|
-
},
|
|
15716
|
+
const Ib = () => {
|
|
15717
|
+
}, R1 = ({
|
|
15716
15718
|
snap: e = !1,
|
|
15717
15719
|
touchOptimized: t = !1,
|
|
15718
15720
|
children: n
|
|
15719
15721
|
}) => {
|
|
15720
15722
|
const { tracks: r, samplesPerPixel: o, sampleRate: a, playoutRef: s, isDraggingRef: i, onTracksChange: l } = mt(), { setSelectedTrackId: c } = $e(), u = hf(), f = e && u != null && u.scaleMode === "beats" && u.snapTo !== "off", p = e && !f;
|
|
15721
|
-
|
|
15723
|
+
K(() => {
|
|
15722
15724
|
l == null && console.warn(
|
|
15723
15725
|
"[waveform-playlist] ClipInteractionProvider: onTracksChange is not set on WaveformPlaylistProvider. Drag and trim edits will not be persisted."
|
|
15724
15726
|
);
|
|
15725
15727
|
}, [l]);
|
|
15726
15728
|
const d = Ce(() => {
|
|
15727
15729
|
if (f && u) {
|
|
15728
|
-
const { bpm: w, timeSignature: _, snapTo: S } = u, C = S === "bar" ? Ds(_) :
|
|
15730
|
+
const { bpm: w, timeSignature: _, snapTo: S } = u, C = S === "bar" ? Ds(_) : jo(_);
|
|
15729
15731
|
return (x) => {
|
|
15730
15732
|
const E = Wa(x, w, a), I = Va(E, C);
|
|
15731
15733
|
return Nn(I, w, a);
|
|
@@ -15741,7 +15743,7 @@ const Eb = () => {
|
|
|
15741
15743
|
onDragEnd: v
|
|
15742
15744
|
} = dy({
|
|
15743
15745
|
tracks: r,
|
|
15744
|
-
onTracksChange: l ??
|
|
15746
|
+
onTracksChange: l ?? Ib,
|
|
15745
15747
|
samplesPerPixel: o,
|
|
15746
15748
|
sampleRate: a,
|
|
15747
15749
|
engineRef: s,
|
|
@@ -15772,7 +15774,7 @@ const Eb = () => {
|
|
|
15772
15774
|
})
|
|
15773
15775
|
), w.push(As.configure({ tracks: r, samplesPerPixel: o })), w;
|
|
15774
15776
|
}, [f, p, u, r, o, a]);
|
|
15775
|
-
return /* @__PURE__ */ k(
|
|
15777
|
+
return /* @__PURE__ */ k(Oy, { value: !0, children: /* @__PURE__ */ k(
|
|
15776
15778
|
Ff,
|
|
15777
15779
|
{
|
|
15778
15780
|
sensors: h,
|
|
@@ -15780,86 +15782,86 @@ const Eb = () => {
|
|
|
15780
15782
|
onDragMove: m,
|
|
15781
15783
|
onDragEnd: v,
|
|
15782
15784
|
modifiers: b,
|
|
15783
|
-
plugins:
|
|
15785
|
+
plugins: Kf,
|
|
15784
15786
|
children: n
|
|
15785
15787
|
}
|
|
15786
15788
|
) });
|
|
15787
15789
|
};
|
|
15788
15790
|
export {
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15791
|
+
w1 as AnnotationIntegrationProvider,
|
|
15792
|
+
v1 as AudioPosition,
|
|
15793
|
+
b1 as AutomaticScrollCheckbox,
|
|
15794
|
+
f1 as ClearAllButton,
|
|
15793
15795
|
As as ClipCollisionModifier,
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15796
|
+
R1 as ClipInteractionProvider,
|
|
15797
|
+
_1 as ContinuousPlayCheckbox,
|
|
15798
|
+
C1 as DownloadAnnotationsButton,
|
|
15799
|
+
k1 as EditableCheckbox,
|
|
15800
|
+
x1 as ExportWavButton,
|
|
15801
|
+
i1 as FastForwardButton,
|
|
15802
|
+
D1 as KeyboardShortcuts,
|
|
15803
|
+
S1 as LinkEndpointsCheckbox,
|
|
15804
|
+
u1 as LoopButton,
|
|
15805
|
+
m1 as MasterVolumeControl,
|
|
15806
|
+
Eb as MediaElementAnnotationList,
|
|
15807
|
+
xb as MediaElementPlaylist,
|
|
15808
|
+
n1 as MediaElementPlaylistProvider,
|
|
15809
|
+
$1 as MediaElementWaveform,
|
|
15810
|
+
o1 as PauseButton,
|
|
15811
|
+
r1 as PlayButton,
|
|
15812
|
+
Xy as PlaylistAnnotationList,
|
|
15813
|
+
Uy as PlaylistVisualization,
|
|
15814
|
+
s1 as RewindButton,
|
|
15815
|
+
y1 as SelectionTimeInputs,
|
|
15816
|
+
d1 as SetLoopRegionButton,
|
|
15817
|
+
l1 as SkipBackwardButton,
|
|
15818
|
+
c1 as SkipForwardButton,
|
|
15817
15819
|
Go as SnapToGridModifier,
|
|
15818
|
-
|
|
15819
|
-
|
|
15820
|
-
|
|
15820
|
+
E1 as SpectrogramIntegrationProvider,
|
|
15821
|
+
a1 as StopButton,
|
|
15822
|
+
g1 as TimeFormatSelect,
|
|
15821
15823
|
oh as Tone,
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15824
|
+
A1 as Waveform,
|
|
15825
|
+
t1 as WaveformPlaylistProvider,
|
|
15826
|
+
h1 as ZoomInButton,
|
|
15827
|
+
p1 as ZoomOutButton,
|
|
15828
|
+
qb as createEffectChain,
|
|
15827
15829
|
Ho as createEffectInstance,
|
|
15828
15830
|
jb as effectCategories,
|
|
15829
15831
|
ca as effectDefinitions,
|
|
15830
15832
|
Sf as getEffectDefinition,
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
|
|
15833
|
+
Kb as getEffectsByCategory,
|
|
15834
|
+
Yb as getShortcutLabel,
|
|
15835
|
+
Gb as getWaveformDataMetadata,
|
|
15836
|
+
Hb as loadPeaksFromWaveformData,
|
|
15835
15837
|
wf as loadWaveformData,
|
|
15836
|
-
|
|
15838
|
+
Kf as noDropAnimationPlugins,
|
|
15837
15839
|
fy as useAnnotationDragHandlers,
|
|
15838
15840
|
or as useAnnotationIntegration,
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
+
yy as useAnnotationKeyboardControls,
|
|
15842
|
+
Xb as useAudioTracks,
|
|
15841
15843
|
dy as useClipDragHandlers,
|
|
15842
|
-
|
|
15844
|
+
Ly as useClipInteractionEnabled,
|
|
15843
15845
|
my as useClipSplitting,
|
|
15844
15846
|
py as useDragSensors,
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15847
|
+
Jb as useDynamicEffects,
|
|
15848
|
+
e1 as useDynamicTracks,
|
|
15849
|
+
Cy as useExportWav,
|
|
15848
15850
|
ks as useKeyboardShortcuts,
|
|
15849
|
-
|
|
15851
|
+
Ub as useMasterAnalyser,
|
|
15850
15852
|
sy as useMasterVolume,
|
|
15851
15853
|
ua as useMediaElementAnimation,
|
|
15852
15854
|
Df as useMediaElementControls,
|
|
15853
15855
|
Wi as useMediaElementData,
|
|
15854
15856
|
Bi as useMediaElementState,
|
|
15855
15857
|
ht as usePlaybackAnimation,
|
|
15856
|
-
|
|
15858
|
+
vy as usePlaybackShortcuts,
|
|
15857
15859
|
$e as usePlaylistControls,
|
|
15858
15860
|
mt as usePlaylistData,
|
|
15859
15861
|
pt as usePlaylistState,
|
|
15860
|
-
|
|
15862
|
+
I1 as useSpectrogramIntegration,
|
|
15861
15863
|
oy as useTimeFormat,
|
|
15862
|
-
|
|
15864
|
+
Qb as useTrackDynamicEffects,
|
|
15863
15865
|
ay as useZoomControls,
|
|
15864
15866
|
ny as waveformDataToPeaks
|
|
15865
15867
|
};
|