zds-pickers 4.0.16 → 4.0.18

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.es.js CHANGED
@@ -1,14 +1,20 @@
1
1
  var nl = Object.defineProperty;
2
2
  var ol = (r, a, t) => a in r ? nl(r, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[a] = t;
3
3
  var ot = (r, a, t) => ol(r, typeof a != "symbol" ? a + "" : a, t);
4
- import le, { createElement as il, Fragment as cl, useState as Te, useCallback as Re, useEffect as ye, useRef as Fe, useMemo as Be, forwardRef as Se, Children as sl, isValidElement as ll, useLayoutEffect as ul } from "react";
4
+ import le, { createElement as il, Fragment as cl, useState as Se, useCallback as _e, useEffect as ye, useRef as Fe, useMemo as Be, forwardRef as fe, Children as sl, isValidElement as ll, useLayoutEffect as ul } from "react";
5
5
  import { jsx as O, jsxs as ne, Fragment as La } from "react/jsx-runtime";
6
6
  import nn, { components as Pl } from "react-select";
7
7
  import { drag as dl } from "d3-drag";
8
8
  import { scaleLinear as on } from "d3-scale";
9
9
  import { select as cn } from "d3-selection";
10
10
  import ml from "react-dom";
11
- const n1 = [
11
+ const za = (r) => Array.from(new Array(r).keys()), Ga = (r, a = 127, t = 0) => {
12
+ let e = typeof r == "string" ? Number.parseInt(r, 10) : r;
13
+ return (Number.isNaN(e) || e === null) && (e = t), e >= t ? e <= a ? e : a : t;
14
+ }, pl = (r, a) => (t) => t == null ? void 0 : t.find((e) => (e == null ? void 0 : e[r]) === a), hl = (...r) => (a) => Object.entries(a).filter(([t]) => !r.flat().map(String).includes(t)).reduce((t, [e, n]) => Object.assign(t, { [e]: n }), {}), o1 = (...r) => (a) => Object.entries(a).filter(([t]) => r.flat().map(String).includes(t)).reduce((t, [e, n]) => Object.assign(t, { [e]: n }), {}), i1 = (r, a) => (t) => ({
15
+ ...t,
16
+ [r]: a
17
+ }), fl = [
12
18
  "Bank Select",
13
19
  "Modulation Wheel",
14
20
  "Breath Controller",
@@ -157,7 +163,7 @@ const n1 = [
157
163
  // 1101
158
164
  pitchWheel: 14
159
165
  // 1110
160
- }, pl = 15, hl = 240, fl = [
166
+ }, gl = 15, Tl = 240, Sl = [
161
167
  { value: ke.noteOn, label: "Note On" },
162
168
  { value: ke.noteOff, label: "Note Stack" },
163
169
  { value: ke.controlChange, label: "Control Change" },
@@ -165,43 +171,43 @@ const n1 = [
165
171
  { value: ke.aftertouch, label: "Aftertouch" },
166
172
  { value: ke.channelPressure, label: "Channel Pressure" },
167
173
  { value: ke.pitchWheel, label: "Pitch Wheel" }
168
- ], o1 = (r) => {
174
+ ], c1 = (r) => {
169
175
  var a;
170
- return ((a = fl.filter(({ value: t }) => t === r)[0]) == null ? void 0 : a.label) || "???";
171
- }, i1 = (r, a) => r | a << 4, c1 = (r) => ({
172
- status: (r & hl) >> 4 | 8,
173
- channel: r & pl
174
- }), gl = 0, Tl = 1, Sl = 2, Cl = 3, vl = 4, Rl = 5, _l = 6, bl = 7, zi = [
176
+ return ((a = Sl.filter(({ value: t }) => t === r)[0]) == null ? void 0 : a.label) || "???";
177
+ }, s1 = (r, a) => r | a << 4, l1 = (r) => ({
178
+ status: (r & Tl) >> 4 | 8,
179
+ channel: r & gl
180
+ }), Cl = 0, vl = 1, Rl = 2, _l = 3, bl = 4, Hl = 5, yl = 6, Ml = 7, zi = [
175
181
  {
176
- value: bl,
182
+ value: Ml,
177
183
  label: "Always maxed out."
178
184
  },
179
185
  {
180
- value: _l,
186
+ value: yl,
181
187
  label: "Most sensitive."
182
188
  },
183
189
  {
184
- value: Rl,
190
+ value: Hl,
185
191
  label: "Moderately sensitive."
186
192
  },
187
193
  {
188
- value: vl,
194
+ value: bl,
189
195
  label: "A little sensitive."
190
196
  },
191
197
  {
192
- value: gl,
198
+ value: Cl,
193
199
  label: "Linear, no change."
194
200
  },
195
201
  {
196
- value: Tl,
202
+ value: vl,
197
203
  label: "A little less sensitive."
198
204
  },
199
205
  {
200
- value: Sl,
206
+ value: Rl,
201
207
  label: "Even less sensitive."
202
208
  },
203
209
  {
204
- value: Cl,
210
+ value: _l,
205
211
  label: "Least sensitive."
206
212
  }
207
213
  ], Fi = ({ children: r }) => il(cl, null, r);
@@ -221,15 +227,15 @@ function Ji(r) {
221
227
  const s = e - Xi[a] - 4 * t;
222
228
  return [n * o, n * s];
223
229
  }
224
- var Hl = [3, 0, 4, 1, 5, 2, 6];
225
- function yl(r) {
226
- const [a, t, e] = r, n = Hl[Ml(a)], o = Math.floor((a + 1) / 7);
230
+ var kl = [3, 0, 4, 1, 5, 2, 6];
231
+ function wl(r) {
232
+ const [a, t, e] = r, n = kl[Bl(a)], o = Math.floor((a + 1) / 7);
227
233
  if (t === void 0)
228
234
  return { step: n, alt: o, dir: e };
229
235
  const s = t + 4 * o + Xi[n];
230
236
  return { step: n, alt: o, oct: s, dir: e };
231
237
  }
232
- function Ml(r) {
238
+ function Bl(r) {
233
239
  const a = (r + 1) % 7;
234
240
  return a < 0 ? 7 + a : a;
235
241
  }
@@ -247,26 +253,26 @@ var sn = (r, a) => Array(Math.abs(a) + 1).join(r), Kt = Object.freeze({
247
253
  chroma: NaN,
248
254
  coord: [],
249
255
  oct: NaN
250
- }), kl = "([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})", wl = "(AA|A|P|M|m|d|dd)([-+]?\\d+)", Bl = new RegExp(
251
- "^" + kl + "|" + wl + "$"
256
+ }), Dl = "([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})", Ol = "(AA|A|P|M|m|d|dd)([-+]?\\d+)", Al = new RegExp(
257
+ "^" + Dl + "|" + Ol + "$"
252
258
  );
253
- function Dl(r) {
254
- const a = Bl.exec(`${r}`);
259
+ function El(r) {
260
+ const a = Al.exec(`${r}`);
255
261
  return a === null ? ["", ""] : a[1] ? [a[1], a[2]] : [a[4], a[3]];
256
262
  }
257
263
  var ln = {};
258
- function Ga(r) {
259
- return typeof r == "string" ? ln[r] || (ln[r] = Ol(r)) : Vi(r) ? Ga(El(r)) : Ii(r) ? Ga(r.name) : Kt;
264
+ function xa(r) {
265
+ return typeof r == "string" ? ln[r] || (ln[r] = Ll(r)) : Vi(r) ? xa(xl(r)) : Ii(r) ? xa(r.name) : Kt;
260
266
  }
261
267
  var un = [0, 2, 4, 5, 7, 9, 11], $i = "PMMPPMM";
262
- function Ol(r) {
263
- const a = Dl(r);
268
+ function Ll(r) {
269
+ const a = El(r);
264
270
  if (a[0] === "")
265
271
  return Kt;
266
272
  const t = +a[0], e = a[1], n = (Math.abs(t) - 1) % 7, o = $i[n];
267
273
  if (o === "M" && e === "P")
268
274
  return Kt;
269
- const s = o === "M" ? "majorable" : "perfectable", i = "" + t + e, c = t < 0 ? -1 : 1, l = t === 8 || t === -8 ? t : c * (n + 1), h = Al(s, e), u = Math.floor((Math.abs(t) - 1) / 7), p = c * (un[n] + h + 12 * u), d = (c * (un[n] + h) % 12 + 12) % 12, m = Ji({ step: n, alt: h, oct: u, dir: c });
275
+ const s = o === "M" ? "majorable" : "perfectable", i = "" + t + e, c = t < 0 ? -1 : 1, l = t === 8 || t === -8 ? t : c * (n + 1), h = Gl(s, e), u = Math.floor((Math.abs(t) - 1) / 7), p = c * (un[n] + h + 12 * u), d = (c * (un[n] + h) % 12 + 12) % 12, m = Ji({ step: n, alt: h, oct: u, dir: c });
270
276
  return {
271
277
  empty: !1,
272
278
  name: i,
@@ -283,17 +289,17 @@ function Ol(r) {
283
289
  oct: u
284
290
  };
285
291
  }
286
- function Al(r, a) {
292
+ function Gl(r, a) {
287
293
  return a === "M" && r === "majorable" || a === "P" && r === "perfectable" ? 0 : a === "m" && r === "majorable" ? -1 : /^A+$/.test(a) ? a.length : /^d+$/.test(a) ? -1 * (r === "perfectable" ? a.length : a.length + 1) : 0;
288
294
  }
289
- function El(r) {
295
+ function xl(r) {
290
296
  const { step: a, alt: t, oct: e = 0, dir: n } = r;
291
297
  if (!n)
292
298
  return "";
293
299
  const o = a + 1 + 7 * e, s = o === 0 ? a + 1 : o, i = n < 0 ? "-" : "", c = $i[a] === "M" ? "majorable" : "perfectable";
294
- return i + s + Ll(c, t);
300
+ return i + s + Kl(c, t);
295
301
  }
296
- function Ll(r, a) {
302
+ function Kl(r, a) {
297
303
  return a === 0 ? r === "majorable" ? "M" : "P" : a === -1 && r === "majorable" ? "m" : a > 0 ? sn("A", a) : sn("d", r === "perfectable" ? a : a + 1);
298
304
  }
299
305
  var Pn = (r, a) => Array(Math.abs(a) + 1).join(r), Yi = Object.freeze({
@@ -309,28 +315,28 @@ var Pn = (r, a) => Array(Math.abs(a) + 1).join(r), Yi = Object.freeze({
309
315
  coord: [],
310
316
  midi: null,
311
317
  freq: null
312
- }), dn = /* @__PURE__ */ new Map(), Gl = (r) => "CDEFGAB".charAt(r), xl = (r) => r < 0 ? Pn("b", -r) : Pn("#", r), Kl = (r) => r[0] === "b" ? -r.length : r.length;
318
+ }), dn = /* @__PURE__ */ new Map(), ql = (r) => "CDEFGAB".charAt(r), Nl = (r) => r < 0 ? Pn("b", -r) : Pn("#", r), Wl = (r) => r[0] === "b" ? -r.length : r.length;
313
319
  function De(r) {
314
320
  const a = JSON.stringify(r), t = dn.get(a);
315
321
  if (t)
316
322
  return t;
317
- const e = typeof r == "string" ? zl(r) : Vi(r) ? De(Fl(r)) : Ii(r) ? De(r.name) : Yi;
323
+ const e = typeof r == "string" ? Vl(r) : Vi(r) ? De(jl(r)) : Ii(r) ? De(r.name) : Yi;
318
324
  return dn.set(a, e), e;
319
325
  }
320
- var ql = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
321
- function Nl(r) {
322
- const a = ql.exec(r);
326
+ var Ul = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
327
+ function zl(r) {
328
+ const a = Ul.exec(r);
323
329
  return a ? [a[1].toUpperCase(), a[2].replace(/x/g, "##"), a[3], a[4]] : ["", "", "", ""];
324
330
  }
325
- function Wl(r) {
326
- return De(yl(r));
331
+ function Fl(r) {
332
+ return De(wl(r));
327
333
  }
328
- var Ul = (r, a) => (r % a + a) % a, it = [0, 2, 4, 5, 7, 9, 11];
329
- function zl(r) {
330
- const a = Nl(r);
334
+ var Il = (r, a) => (r % a + a) % a, it = [0, 2, 4, 5, 7, 9, 11];
335
+ function Vl(r) {
336
+ const a = zl(r);
331
337
  if (a[0] === "" || a[3] !== "")
332
338
  return Yi;
333
- const t = a[0], e = a[1], n = a[2], o = (t.charCodeAt(0) + 3) % 7, s = Kl(e), i = n.length ? +n : void 0, c = Ji({ step: o, alt: s, oct: i }), l = t + e + n, h = t + e, u = (it[o] + s + 120) % 12, p = i === void 0 ? Ul(it[o] + s, 12) - 12 * 99 : it[o] + s + 12 * (i + 1), d = p >= 0 && p <= 127 ? p : null, m = i === void 0 ? null : Math.pow(2, (p - 69) / 12) * 440;
339
+ const t = a[0], e = a[1], n = a[2], o = (t.charCodeAt(0) + 3) % 7, s = Wl(e), i = n.length ? +n : void 0, c = Ji({ step: o, alt: s, oct: i }), l = t + e + n, h = t + e, u = (it[o] + s + 120) % 12, p = i === void 0 ? Il(it[o] + s, 12) - 12 * 99 : it[o] + s + 12 * (i + 1), d = p >= 0 && p <= 127 ? p : null, m = i === void 0 ? null : Math.pow(2, (p - 69) / 12) * 440;
334
340
  return {
335
341
  empty: !1,
336
342
  acc: e,
@@ -347,19 +353,19 @@ function zl(r) {
347
353
  step: o
348
354
  };
349
355
  }
350
- function Fl(r) {
351
- const { step: a, alt: t, oct: e } = r, n = Gl(a);
356
+ function jl(r) {
357
+ const { step: a, alt: t, oct: e } = r, n = ql(a);
352
358
  if (!n)
353
359
  return "";
354
- const o = n + xl(t);
360
+ const o = n + Nl(t);
355
361
  return e || e === 0 ? o + e : o;
356
362
  }
357
- function Il(r, a) {
358
- const t = De(r), e = Array.isArray(a) ? a : Ga(a).coord;
363
+ function Xl(r, a) {
364
+ const t = De(r), e = Array.isArray(a) ? a : xa(a).coord;
359
365
  if (t.empty || !e || e.length < 2)
360
366
  return "";
361
367
  const n = t.coord, o = n.length === 1 ? [n[0] + e[0]] : [n[0] + e[0], n[1] + e[1]];
362
- return Wl(o).name;
368
+ return Fl(o).name;
363
369
  }
364
370
  function Qi(r, a) {
365
371
  const t = a.length, e = (r % t + t) % t;
@@ -372,16 +378,16 @@ var Oe = {
372
378
  chroma: "000000000000",
373
379
  normalized: "000000000000",
374
380
  intervals: []
375
- }, Zi = (r) => Number(r).toString(2).padStart(12, "0"), mn = (r) => parseInt(r, 2), Vl = /^[01]{12}$/;
381
+ }, Zi = (r) => Number(r).toString(2).padStart(12, "0"), mn = (r) => parseInt(r, 2), Jl = /^[01]{12}$/;
376
382
  function ec(r) {
377
- return Vl.test(r);
383
+ return Jl.test(r);
378
384
  }
379
- var jl = (r) => typeof r == "number" && r >= 0 && r <= 4095, Xl = (r) => r && ec(r.chroma), pn = { [Oe.chroma]: Oe };
385
+ var $l = (r) => typeof r == "number" && r >= 0 && r <= 4095, Yl = (r) => r && ec(r.chroma), pn = { [Oe.chroma]: Oe };
380
386
  function rc(r) {
381
- const a = ec(r) ? r : jl(r) ? Zi(r) : Array.isArray(r) ? Zl(r) : Xl(r) ? r.chroma : Oe.chroma;
382
- return pn[a] = pn[a] || Ql(a);
387
+ const a = ec(r) ? r : $l(r) ? Zi(r) : Array.isArray(r) ? au(r) : Yl(r) ? r.chroma : Oe.chroma;
388
+ return pn[a] = pn[a] || ru(a);
383
389
  }
384
- var Jl = [
390
+ var Ql = [
385
391
  "1P",
386
392
  "2m",
387
393
  "2M",
@@ -395,18 +401,18 @@ var Jl = [
395
401
  "7m",
396
402
  "7M"
397
403
  ];
398
- function $l(r) {
404
+ function Zl(r) {
399
405
  const a = [];
400
406
  for (let t = 0; t < 12; t++)
401
- r.charAt(t) === "1" && a.push(Jl[t]);
407
+ r.charAt(t) === "1" && a.push(Ql[t]);
402
408
  return a;
403
409
  }
404
- function Yl(r) {
410
+ function eu(r) {
405
411
  const a = r.split("");
406
412
  return a.map((t, e) => Qi(e, a).join(""));
407
413
  }
408
- function Ql(r) {
409
- const a = mn(r), t = Yl(r).map(mn).filter((o) => o >= 2048).sort()[0], e = Zi(t), n = $l(r);
414
+ function ru(r) {
415
+ const a = mn(r), t = eu(r).map(mn).filter((o) => o >= 2048).sort()[0], e = Zi(t), n = Zl(r);
410
416
  return {
411
417
  empty: !1,
412
418
  name: "",
@@ -416,16 +422,16 @@ function Ql(r) {
416
422
  intervals: n
417
423
  };
418
424
  }
419
- function Zl(r) {
425
+ function au(r) {
420
426
  if (r.length === 0)
421
427
  return Oe.chroma;
422
428
  let a;
423
429
  const t = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
424
430
  for (let e = 0; e < r.length; e++)
425
- a = De(r[e]), a.empty && (a = Ga(r[e])), a.empty || (t[a.chroma] = 1);
431
+ a = De(r[e]), a.empty && (a = xa(r[e])), a.empty || (t[a.chroma] = 1);
426
432
  return t.join("");
427
433
  }
428
- var eu = [
434
+ var tu = [
429
435
  // ==Major==
430
436
  ["1P 3M 5P", "major", "M ^ maj"],
431
437
  ["1P 3M 5P 7M", "major seventh", "maj7 Δ ma7 M7 Maj7 ^7"],
@@ -558,33 +564,33 @@ var eu = [
558
564
  ["1P 4P 5P 7m 9m 13m", "", "7sus4b9b13 7b9b13sus4"],
559
565
  ["1P 4P 7m 10m", "", "4 quartal"],
560
566
  ["1P 5P 7m 9m 11P", "", "11b9"]
561
- ], ru = eu;
567
+ ], nu = tu;
562
568
  ({
563
569
  ...Oe
564
570
  });
565
571
  var ac = [], Ea = {};
566
- function au(r, a, t) {
567
- const e = nu(r), n = {
572
+ function ou(r, a, t) {
573
+ const e = cu(r), n = {
568
574
  ...rc(r),
569
575
  name: t || "",
570
576
  quality: e,
571
577
  intervals: r,
572
578
  aliases: a
573
579
  };
574
- ac.push(n), n.name && (Ea[n.name] = n), Ea[n.setNum] = n, Ea[n.chroma] = n, n.aliases.forEach((o) => tu(n, o));
580
+ ac.push(n), n.name && (Ea[n.name] = n), Ea[n.setNum] = n, Ea[n.chroma] = n, n.aliases.forEach((o) => iu(n, o));
575
581
  }
576
- function tu(r, a) {
582
+ function iu(r, a) {
577
583
  Ea[a] = r;
578
584
  }
579
- function nu(r) {
585
+ function cu(r) {
580
586
  const a = (t) => r.indexOf(t) !== -1;
581
587
  return a("5A") ? "Augmented" : a("3M") ? "Major" : a("5d") ? "Diminished" : a("3m") ? "Minor" : "Unknown";
582
588
  }
583
- ru.forEach(
584
- ([r, a, t]) => au(r.split(" "), t.split(" "), a)
589
+ nu.forEach(
590
+ ([r, a, t]) => ou(r.split(" "), t.split(" "), a)
585
591
  );
586
592
  ac.sort((r, a) => r.setNum - a.setNum);
587
- var ou = [
593
+ var su = [
588
594
  // Basic scales
589
595
  ["1P 2M 3M 5P 6M", "major pentatonic", "pentatonic"],
590
596
  ["1P 2M 3M 4P 5P 6M 7M", "major", "ionian"],
@@ -726,23 +732,23 @@ var ou = [
726
732
  ["1P 2m 2M 3m 4P 4A 5P 6m 6M 7M", "messiaen's mode #7"],
727
733
  // 12-note scales
728
734
  ["1P 2m 2M 3m 3M 4P 5d 5P 6m 6M 7m 7M", "chromatic"]
729
- ], iu = ou, cu = {
735
+ ], lu = su, uu = {
730
736
  ...Oe,
731
737
  intervals: [],
732
738
  aliases: []
733
739
  }, ze = {};
734
- function su(r) {
735
- return ze[r] || cu;
740
+ function Pu(r) {
741
+ return ze[r] || uu;
736
742
  }
737
- function lu(r, a, t = []) {
743
+ function du(r, a, t = []) {
738
744
  const e = { ...rc(r), name: a, intervals: r, aliases: t };
739
- return ze[e.name] = e, ze[e.setNum] = e, ze[e.chroma] = e, e.aliases.forEach((n) => uu(e, n)), e;
745
+ return ze[e.name] = e, ze[e.setNum] = e, ze[e.chroma] = e, e.aliases.forEach((n) => mu(e, n)), e;
740
746
  }
741
- function uu(r, a) {
747
+ function mu(r, a) {
742
748
  ze[a] = r;
743
749
  }
744
- iu.forEach(
745
- ([r, a, ...t]) => lu(r.split(" "), a, t)
750
+ lu.forEach(
751
+ ([r, a, ...t]) => du(r.split(" "), a, t)
746
752
  );
747
753
  function zt(r) {
748
754
  return +r >= 0 && +r <= 127;
@@ -756,37 +762,37 @@ function tc(r) {
756
762
  function nc(r, a = 440) {
757
763
  return Math.pow(2, (r - 69) / 12) * a;
758
764
  }
759
- var Pu = Math.log(2), du = Math.log(440);
765
+ var pu = Math.log(2), hu = Math.log(440);
760
766
  function oc(r) {
761
- const a = 12 * (Math.log(r) - du) / Pu + 69;
767
+ const a = 12 * (Math.log(r) - hu) / pu + 69;
762
768
  return Math.round(a * 100) / 100;
763
769
  }
764
- var mu = "C C# D D# E F F# G G# A A# B".split(" "), pu = "C Db D Eb E F Gb G Ab A Bb B".split(" ");
770
+ var fu = "C C# D D# E F F# G G# A A# B".split(" "), gu = "C Db D Eb E F Gb G Ab A Bb B".split(" ");
765
771
  function ic(r, a = {}) {
766
772
  if (isNaN(r) || r === -1 / 0 || r === 1 / 0) return "";
767
773
  r = Math.round(r);
768
- const e = (a.sharps === !0 ? mu : pu)[r % 12];
774
+ const e = (a.sharps === !0 ? fu : gu)[r % 12];
769
775
  if (a.pitchClass)
770
776
  return e;
771
777
  const n = Math.floor(r / 12) - 1;
772
778
  return e + n;
773
779
  }
774
- function za(r) {
780
+ function Fa(r) {
775
781
  return r % 12;
776
782
  }
777
- function hu(r) {
783
+ function Tu(r) {
778
784
  return r.split("").reduce((a, t, e) => (e < 12 && t === "1" && a.push(e), a), []);
779
785
  }
780
- function fu(r) {
781
- return r.map(za).sort((a, t) => a - t).filter((a, t, e) => t === 0 || a !== e[t - 1]);
786
+ function Su(r) {
787
+ return r.map(Fa).sort((a, t) => a - t).filter((a, t, e) => t === 0 || a !== e[t - 1]);
782
788
  }
783
- function Fa(r) {
784
- return Array.isArray(r) ? fu(r) : hu(r);
789
+ function Ia(r) {
790
+ return Array.isArray(r) ? Su(r) : Tu(r);
785
791
  }
786
792
  function cc(r) {
787
- const a = Fa(r);
793
+ const a = Ia(r);
788
794
  return (t) => {
789
- const e = za(t);
795
+ const e = Fa(t);
790
796
  for (let n = 0; n < 12; n++) {
791
797
  if (a.includes(e + n)) return t + n;
792
798
  if (a.includes(e - n)) return t - n;
@@ -794,7 +800,7 @@ function cc(r) {
794
800
  };
795
801
  }
796
802
  function Ft(r, a) {
797
- const t = Fa(r), e = t.length;
803
+ const t = Ia(r), e = t.length;
798
804
  return (n) => {
799
805
  const o = n < 0 ? (e - -n % e) % e : n % e, s = Math.floor(n / e);
800
806
  return t[o] + s * 12 + a;
@@ -807,33 +813,33 @@ function sc(r, a) {
807
813
  return t(e > 0 ? e - 1 : e);
808
814
  };
809
815
  }
810
- var gu = {
811
- chroma: za,
816
+ var Cu = {
817
+ chroma: Fa,
812
818
  freqToMidi: oc,
813
819
  isMidi: zt,
814
820
  midiToFreq: nc,
815
821
  midiToNoteName: ic,
816
822
  pcsetNearest: cc,
817
- pcset: Fa,
823
+ pcset: Ia,
818
824
  pcsetDegrees: sc,
819
825
  pcsetSteps: Ft,
820
826
  toMidi: tc
821
827
  };
822
- const Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
828
+ const vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
823
829
  __proto__: null,
824
- chroma: za,
825
- default: gu,
830
+ chroma: Fa,
831
+ default: Cu,
826
832
  freqToMidi: oc,
827
833
  isMidi: zt,
828
834
  midiToFreq: nc,
829
835
  midiToNoteName: ic,
830
- pcset: Fa,
836
+ pcset: Ia,
831
837
  pcsetDegrees: sc,
832
838
  pcsetNearest: cc,
833
839
  pcsetSteps: Ft,
834
840
  toMidi: tc
835
841
  }, Symbol.toStringTag, { value: "Module" }));
836
- var Su = De, hn = (r) => Su(r).midi, It = [
842
+ var Ru = De, hn = (r) => Ru(r).midi, It = [
837
843
  [0, 2773, 0, "ionian", "", "Maj7", "major"],
838
844
  [1, 2902, 2, "dorian", "m", "m7"],
839
845
  [2, 3418, 4, "phrygian", "m", "m7"],
@@ -849,8 +855,8 @@ var Su = De, hn = (r) => Su(r).midi, It = [
849
855
  triad: "",
850
856
  seventh: "",
851
857
  aliases: []
852
- }, Cu = It.map(vu), qt = {};
853
- Cu.forEach((r) => {
858
+ }, _u = It.map(bu), qt = {};
859
+ _u.forEach((r) => {
854
860
  qt[r.name] = r, r.aliases.forEach((a) => {
855
861
  qt[a] = r;
856
862
  });
@@ -858,11 +864,11 @@ Cu.forEach((r) => {
858
864
  function lc(r) {
859
865
  return typeof r == "string" ? qt[r.toLowerCase()] || fn : r && r.name ? lc(r.name) : fn;
860
866
  }
861
- function vu(r) {
867
+ function bu(r) {
862
868
  const [a, t, e, n, o, s, i] = r, c = i ? [i] : [], l = Number(t).toString(2);
863
869
  return {
864
870
  empty: !1,
865
- intervals: su(n).intervals,
871
+ intervals: Pu(n).intervals,
866
872
  modeNum: a,
867
873
  chroma: l,
868
874
  normalized: l,
@@ -878,7 +884,7 @@ function uc(r) {
878
884
  return (a, t) => {
879
885
  const e = lc(a);
880
886
  if (e.empty) return [];
881
- const n = Qi(e.modeNum, r), o = e.intervals.map((s) => Il(t, s));
887
+ const n = Qi(e.modeNum, r), o = e.intervals.map((s) => Xl(t, s));
882
888
  return n.map((s, i) => o[i] + s);
883
889
  };
884
890
  }
@@ -888,7 +894,7 @@ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
888
894
  function Ie(r) {
889
895
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
890
896
  }
891
- function Ru(r) {
897
+ function Hu(r) {
892
898
  if (r.__esModule) return r;
893
899
  var a = r.default;
894
900
  if (typeof a == "function") {
@@ -908,7 +914,7 @@ function Ru(r) {
908
914
  }), t;
909
915
  }
910
916
  var ct, gn;
911
- function _u() {
917
+ function yu() {
912
918
  if (gn) return ct;
913
919
  gn = 1, ct = r;
914
920
  function r(a, t, e) {
@@ -925,8 +931,8 @@ function _u() {
925
931
  }
926
932
  return ct;
927
933
  }
928
- var bu = _u();
929
- const Vt = /* @__PURE__ */ Ie(bu);
934
+ var Mu = yu();
935
+ const Vt = /* @__PURE__ */ Ie(Mu);
930
936
  var Ze = { exports: {} }, er = { exports: {} }, J = {};
931
937
  /** @license React v16.13.1
932
938
  * react-is.production.min.js
@@ -937,7 +943,7 @@ var Ze = { exports: {} }, er = { exports: {} }, J = {};
937
943
  * LICENSE file in the root directory of this source tree.
938
944
  */
939
945
  var Tn;
940
- function Hu() {
946
+ function ku() {
941
947
  if (Tn) return J;
942
948
  Tn = 1;
943
949
  var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, n = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, f = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, x = r ? Symbol.for("react.responder") : 60118, A = r ? Symbol.for("react.scope") : 60119;
@@ -1012,7 +1018,7 @@ var $ = {};
1012
1018
  * LICENSE file in the root directory of this source tree.
1013
1019
  */
1014
1020
  var Sn;
1015
- function yu() {
1021
+ function wu() {
1016
1022
  return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
1017
1023
  var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, n = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, f = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, x = r ? Symbol.for("react.responder") : 60118, A = r ? Symbol.for("react.scope") : 60119;
1018
1024
  function R(B) {
@@ -1024,24 +1030,24 @@ function yu() {
1024
1030
  var ae = B.$$typeof;
1025
1031
  switch (ae) {
1026
1032
  case a:
1027
- var Ce = B.type;
1028
- switch (Ce) {
1033
+ var ve = B.type;
1034
+ switch (ve) {
1029
1035
  case c:
1030
1036
  case l:
1031
1037
  case e:
1032
1038
  case o:
1033
1039
  case n:
1034
1040
  case u:
1035
- return Ce;
1041
+ return ve;
1036
1042
  default:
1037
- var fe = Ce && Ce.$$typeof;
1038
- switch (fe) {
1043
+ var ge = ve && ve.$$typeof;
1044
+ switch (ge) {
1039
1045
  case i:
1040
1046
  case h:
1041
1047
  case m:
1042
1048
  case d:
1043
1049
  case s:
1044
- return fe;
1050
+ return ge;
1045
1051
  default:
1046
1052
  return ae;
1047
1053
  }
@@ -1096,7 +1102,7 @@ function yu() {
1096
1102
  }
1097
1103
  var Cn;
1098
1104
  function Pc() {
1099
- return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? er.exports = Hu() : er.exports = yu()), er.exports;
1105
+ return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? er.exports = ku() : er.exports = wu()), er.exports;
1100
1106
  }
1101
1107
  /*
1102
1108
  object-assign
@@ -1104,7 +1110,7 @@ object-assign
1104
1110
  @license MIT
1105
1111
  */
1106
1112
  var st, vn;
1107
- function Mu() {
1113
+ function Bu() {
1108
1114
  if (vn) return st;
1109
1115
  vn = 1;
1110
1116
  var r = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
@@ -1161,7 +1167,7 @@ function dc() {
1161
1167
  return _n || (_n = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
1162
1168
  }
1163
1169
  var Pt, bn;
1164
- function ku() {
1170
+ function Du() {
1165
1171
  if (bn) return Pt;
1166
1172
  bn = 1;
1167
1173
  var r = function() {
@@ -1210,10 +1216,10 @@ function ku() {
1210
1216
  }, Pt = n, Pt;
1211
1217
  }
1212
1218
  var dt, Hn;
1213
- function wu() {
1219
+ function Ou() {
1214
1220
  if (Hn) return dt;
1215
1221
  Hn = 1;
1216
- var r = Pc(), a = Mu(), t = /* @__PURE__ */ jt(), e = /* @__PURE__ */ dc(), n = /* @__PURE__ */ ku(), o = function() {
1222
+ var r = Pc(), a = Bu(), t = /* @__PURE__ */ jt(), e = /* @__PURE__ */ dc(), n = /* @__PURE__ */ Du(), o = function() {
1217
1223
  };
1218
1224
  process.env.NODE_ENV !== "production" && (o = function(i) {
1219
1225
  var c = "Warning: " + i;
@@ -1531,7 +1537,7 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
1531
1537
  }, dt;
1532
1538
  }
1533
1539
  var mt, yn;
1534
- function Bu() {
1540
+ function Au() {
1535
1541
  if (yn) return mt;
1536
1542
  yn = 1;
1537
1543
  var r = /* @__PURE__ */ jt();
@@ -1583,13 +1589,13 @@ function mc() {
1583
1589
  if (Mn) return Ze.exports;
1584
1590
  if (Mn = 1, process.env.NODE_ENV !== "production") {
1585
1591
  var r = Pc(), a = !0;
1586
- Ze.exports = /* @__PURE__ */ wu()(r.isElement, a);
1592
+ Ze.exports = /* @__PURE__ */ Ou()(r.isElement, a);
1587
1593
  } else
1588
- Ze.exports = /* @__PURE__ */ Bu()();
1594
+ Ze.exports = /* @__PURE__ */ Au()();
1589
1595
  return Ze.exports;
1590
1596
  }
1591
- var Du = /* @__PURE__ */ mc();
1592
- const L = /* @__PURE__ */ Ie(Du);
1597
+ var Eu = /* @__PURE__ */ mc();
1598
+ const L = /* @__PURE__ */ Ie(Eu);
1593
1599
  var pt = { exports: {} };
1594
1600
  /*!
1595
1601
  Copyright (c) 2018 Jed Watson.
@@ -1597,7 +1603,7 @@ var pt = { exports: {} };
1597
1603
  http://jedwatson.github.io/classnames
1598
1604
  */
1599
1605
  var kn;
1600
- function Ou() {
1606
+ function Lu() {
1601
1607
  return kn || (kn = 1, function(r) {
1602
1608
  (function() {
1603
1609
  var a = {}.hasOwnProperty;
@@ -1629,10 +1635,10 @@ function Ou() {
1629
1635
  })();
1630
1636
  }(pt)), pt.exports;
1631
1637
  }
1632
- var Au = Ou();
1633
- const Ve = /* @__PURE__ */ Ie(Au);
1638
+ var Gu = Lu();
1639
+ const Ve = /* @__PURE__ */ Ie(Gu);
1634
1640
  var ht, wn;
1635
- function Eu() {
1641
+ function xu() {
1636
1642
  if (wn) return ht;
1637
1643
  wn = 1;
1638
1644
  var r = 200, a = "__lodash_hash_undefined__", t = 9007199254740991, e = "[object Function]", n = "[object GeneratorFunction]", o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, i = typeof Qe == "object" && Qe && Qe.Object === Object && Qe, c = typeof self == "object" && self && self.Object === Object && self, l = i || c || Function("return this")();
@@ -1772,19 +1778,19 @@ function Eu() {
1772
1778
  };
1773
1779
  }
1774
1780
  function re(g) {
1775
- return ge(this, g).delete(g);
1781
+ return Te(this, g).delete(g);
1776
1782
  }
1777
1783
  function B(g) {
1778
- return ge(this, g).get(g);
1784
+ return Te(this, g).get(g);
1779
1785
  }
1780
1786
  function ae(g) {
1781
- return ge(this, g).has(g);
1787
+ return Te(this, g).has(g);
1782
1788
  }
1783
- function Ce(g, b) {
1784
- return ge(this, g).set(g, b), this;
1789
+ function ve(g, b) {
1790
+ return Te(this, g).set(g, b), this;
1785
1791
  }
1786
- z.prototype.clear = V, z.prototype.delete = re, z.prototype.get = B, z.prototype.has = ae, z.prototype.set = Ce;
1787
- function fe(g) {
1792
+ z.prototype.clear = V, z.prototype.delete = re, z.prototype.get = B, z.prototype.has = ae, z.prototype.set = ve;
1793
+ function ge(g) {
1788
1794
  var b = -1, E = g ? g.length : 0;
1789
1795
  for (this.__data__ = new z(); ++b < E; )
1790
1796
  this.add(g[b]);
@@ -1795,7 +1801,7 @@ function Eu() {
1795
1801
  function Ne(g) {
1796
1802
  return this.__data__.has(g);
1797
1803
  }
1798
- fe.prototype.add = fe.prototype.push = qe, fe.prototype.has = Ne;
1804
+ ge.prototype.add = ge.prototype.push = qe, ge.prototype.has = Ne;
1799
1805
  function te(g, b) {
1800
1806
  for (var E = g.length; E--; )
1801
1807
  if (et(g[E][0], b))
@@ -1803,14 +1809,14 @@ function Eu() {
1803
1809
  return -1;
1804
1810
  }
1805
1811
  function Pe(g, b, E, X) {
1806
- var ce = -1, de = u, ve = !0, Me = g.length, Le = [], nt = b.length;
1812
+ var ce = -1, de = u, Re = !0, Me = g.length, Le = [], nt = b.length;
1807
1813
  if (!Me)
1808
1814
  return Le;
1809
- b.length >= r && (de = v, ve = !1, b = new fe(b));
1815
+ b.length >= r && (de = v, Re = !1, b = new ge(b));
1810
1816
  e:
1811
1817
  for (; ++ce < Me; ) {
1812
1818
  var He = g[ce], Ge = He;
1813
- if (He = He !== 0 ? He : 0, ve && Ge === Ge) {
1819
+ if (He = He !== 0 ? He : 0, Re && Ge === Ge) {
1814
1820
  for (var Ye = nt; Ye--; )
1815
1821
  if (b[Ye] === Ge)
1816
1822
  continue e;
@@ -1820,8 +1826,8 @@ function Eu() {
1820
1826
  return Le;
1821
1827
  }
1822
1828
  function Ae(g, b, E, X, ce) {
1823
- var de = -1, ve = g.length;
1824
- for (ce || (ce = []); ++de < ve; ) {
1829
+ var de = -1, Re = g.length;
1830
+ for (ce || (ce = []); ++de < Re; ) {
1825
1831
  var Me = g[de];
1826
1832
  E(Me) && p(ce, Me);
1827
1833
  }
@@ -1838,12 +1844,12 @@ function Eu() {
1838
1844
  for (var E = arguments, X = -1, ce = oe(E.length - b, 0), de = Array(ce); ++X < ce; )
1839
1845
  de[X] = E[b + X];
1840
1846
  X = -1;
1841
- for (var ve = Array(b + 1); ++X < b; )
1842
- ve[X] = E[X];
1843
- return ve[b] = de, h(g, this, ve);
1847
+ for (var Re = Array(b + 1); ++X < b; )
1848
+ Re[X] = E[X];
1849
+ return Re[b] = de, h(g, this, Re);
1844
1850
  };
1845
1851
  }
1846
- function ge(g, b) {
1852
+ function Te(g, b) {
1847
1853
  var E = g.__data__;
1848
1854
  return $a(b) ? E[typeof b == "string" ? "string" : "hash"] : E.map;
1849
1855
  }
@@ -1899,9 +1905,9 @@ function Eu() {
1899
1905
  }
1900
1906
  return ht = Za, ht;
1901
1907
  }
1902
- var Lu = Eu();
1903
- const Bn = /* @__PURE__ */ Ie(Lu);
1904
- function Gu(r, a) {
1908
+ var Ku = xu();
1909
+ const Bn = /* @__PURE__ */ Ie(Ku);
1910
+ function qu(r, a) {
1905
1911
  var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
1906
1912
  if (t != null) {
1907
1913
  var e, n, o, s, i = [], c = !0, l = !1;
@@ -1919,18 +1925,18 @@ function Gu(r, a) {
1919
1925
  return i;
1920
1926
  }
1921
1927
  }
1922
- function Ia(r, a) {
1928
+ function Va(r, a) {
1923
1929
  if (!(r instanceof a))
1924
1930
  throw new TypeError("Cannot call a class as a function");
1925
1931
  }
1926
- function xu(r, a) {
1932
+ function Nu(r, a) {
1927
1933
  for (var t = 0; t < a.length; t++) {
1928
1934
  var e = a[t];
1929
1935
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, pc(e.key), e);
1930
1936
  }
1931
1937
  }
1932
- function Va(r, a, t) {
1933
- return a && xu(r.prototype, a), Object.defineProperty(r, "prototype", {
1938
+ function ja(r, a, t) {
1939
+ return a && Nu(r.prototype, a), Object.defineProperty(r, "prototype", {
1934
1940
  writable: !1
1935
1941
  }), r;
1936
1942
  }
@@ -1952,7 +1958,7 @@ function Nt() {
1952
1958
  return r;
1953
1959
  }, Nt.apply(this, arguments);
1954
1960
  }
1955
- function ja(r, a) {
1961
+ function Xa(r, a) {
1956
1962
  if (typeof a != "function" && a !== null)
1957
1963
  throw new TypeError("Super expression must either be null or a function");
1958
1964
  r.prototype = Object.create(a && a.prototype, {
@@ -1965,17 +1971,17 @@ function ja(r, a) {
1965
1971
  writable: !1
1966
1972
  }), a && Wt(r, a);
1967
1973
  }
1968
- function xa(r) {
1969
- return xa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1974
+ function Ka(r) {
1975
+ return Ka = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1970
1976
  return t.__proto__ || Object.getPrototypeOf(t);
1971
- }, xa(r);
1977
+ }, Ka(r);
1972
1978
  }
1973
1979
  function Wt(r, a) {
1974
1980
  return Wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
1975
1981
  return e.__proto__ = n, e;
1976
1982
  }, Wt(r, a);
1977
1983
  }
1978
- function Ku() {
1984
+ function Wu() {
1979
1985
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1980
1986
  if (typeof Proxy == "function") return !0;
1981
1987
  try {
@@ -1985,16 +1991,16 @@ function Ku() {
1985
1991
  return !1;
1986
1992
  }
1987
1993
  }
1988
- function qu(r, a) {
1994
+ function Uu(r, a) {
1989
1995
  if (r == null) return {};
1990
1996
  var t = {}, e = Object.keys(r), n, o;
1991
1997
  for (o = 0; o < e.length; o++)
1992
1998
  n = e[o], !(a.indexOf(n) >= 0) && (t[n] = r[n]);
1993
1999
  return t;
1994
2000
  }
1995
- function Nu(r, a) {
2001
+ function zu(r, a) {
1996
2002
  if (r == null) return {};
1997
- var t = qu(r, a), e, n;
2003
+ var t = Uu(r, a), e, n;
1998
2004
  if (Object.getOwnPropertySymbols) {
1999
2005
  var o = Object.getOwnPropertySymbols(r);
2000
2006
  for (n = 0; n < o.length; n++)
@@ -2007,32 +2013,32 @@ function se(r) {
2007
2013
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2008
2014
  return r;
2009
2015
  }
2010
- function Wu(r, a) {
2016
+ function Fu(r, a) {
2011
2017
  if (a && (typeof a == "object" || typeof a == "function"))
2012
2018
  return a;
2013
2019
  if (a !== void 0)
2014
2020
  throw new TypeError("Derived constructors may only return object or undefined");
2015
2021
  return se(r);
2016
2022
  }
2017
- function Xa(r) {
2018
- var a = Ku();
2023
+ function Ja(r) {
2024
+ var a = Wu();
2019
2025
  return function() {
2020
- var e = xa(r), n;
2026
+ var e = Ka(r), n;
2021
2027
  if (a) {
2022
- var o = xa(this).constructor;
2028
+ var o = Ka(this).constructor;
2023
2029
  n = Reflect.construct(e, arguments, o);
2024
2030
  } else
2025
2031
  n = e.apply(this, arguments);
2026
- return Wu(this, n);
2032
+ return Fu(this, n);
2027
2033
  };
2028
2034
  }
2029
- function Uu(r, a) {
2030
- return zu(r) || Gu(r, a) || Fu(r, a) || Iu();
2035
+ function Iu(r, a) {
2036
+ return Vu(r) || qu(r, a) || ju(r, a) || Xu();
2031
2037
  }
2032
- function zu(r) {
2038
+ function Vu(r) {
2033
2039
  if (Array.isArray(r)) return r;
2034
2040
  }
2035
- function Fu(r, a) {
2041
+ function ju(r, a) {
2036
2042
  if (r) {
2037
2043
  if (typeof r == "string") return Dn(r, a);
2038
2044
  var t = Object.prototype.toString.call(r).slice(8, -1);
@@ -2045,11 +2051,11 @@ function Dn(r, a) {
2045
2051
  for (var t = 0, e = new Array(a); t < a; t++) e[t] = r[t];
2046
2052
  return e;
2047
2053
  }
2048
- function Iu() {
2054
+ function Xu() {
2049
2055
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2050
2056
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2051
2057
  }
2052
- function Vu(r, a) {
2058
+ function Ju(r, a) {
2053
2059
  if (typeof r != "object" || r === null) return r;
2054
2060
  var t = r[Symbol.toPrimitive];
2055
2061
  if (t !== void 0) {
@@ -2060,10 +2066,10 @@ function Vu(r, a) {
2060
2066
  return (a === "string" ? String : Number)(r);
2061
2067
  }
2062
2068
  function pc(r) {
2063
- var a = Vu(r, "string");
2069
+ var a = Ju(r, "string");
2064
2070
  return typeof a == "symbol" ? a : String(a);
2065
2071
  }
2066
- var ju = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], Xu = ["Db", "Eb", "Gb", "Ab", "Bb"], Ju = {
2072
+ var $u = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], Yu = ["Db", "Eb", "Gb", "Ab", "Bb"], Qu = {
2067
2073
  C: 0,
2068
2074
  "C#": 1,
2069
2075
  Db: 1,
@@ -2081,54 +2087,54 @@ var ju = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], Xu =
2081
2087
  "A#": 10,
2082
2088
  Bb: 10,
2083
2089
  B: 11
2084
- }, Ka = 12, Xt = Ka, Jt = 127, $u = /([a-g])([#b]?)(\d+)/, Ut = 12;
2085
- function Yu(r) {
2090
+ }, qa = 12, Xt = qa, Jt = 127, Zu = /([a-g])([#b]?)(\d+)/, Ut = 12;
2091
+ function eP(r) {
2086
2092
  if (!r)
2087
2093
  throw Error("Invalid note argument");
2088
- var a = $u.exec(r.toLowerCase());
2094
+ var a = Zu.exec(r.toLowerCase());
2089
2095
  if (!a)
2090
2096
  throw Error("Invalid note argument");
2091
- var t = Uu(a, 4), e = t[1], n = t[2], o = t[3], s = "".concat(e.toUpperCase()).concat(n), i = Ju[s];
2097
+ var t = Iu(a, 4), e = t[1], n = t[2], o = t[3], s = "".concat(e.toUpperCase()).concat(n), i = Qu[s];
2092
2098
  if (i == null)
2093
2099
  throw Error("Invalid note argument");
2094
- return Ka + i + Ut * parseInt(o, 10);
2100
+ return qa + i + Ut * parseInt(o, 10);
2095
2101
  }
2096
- function Qu(r) {
2097
- var a = (r - Ka) % Ut, t = Math.floor((r - Ka) / Ut), e = ju[a];
2102
+ function rP(r) {
2103
+ var a = (r - qa) % Ut, t = Math.floor((r - qa) / Ut), e = $u[a];
2098
2104
  return {
2099
2105
  note: "".concat(e).concat(t),
2100
2106
  pitchName: e,
2101
2107
  octave: t,
2102
2108
  midiNumber: r,
2103
- isAccidental: Xu.includes(e)
2109
+ isAccidental: Yu.includes(e)
2104
2110
  };
2105
2111
  }
2106
- function Zu() {
2112
+ function aP() {
2107
2113
  return Vt(Xt, Jt + 1).reduce(function(r, a) {
2108
- return r[a] = Qu(a), r;
2114
+ return r[a] = rP(a), r;
2109
2115
  }, {});
2110
2116
  }
2111
- var eP = Zu();
2117
+ var tP = aP();
2112
2118
  function hc(r) {
2113
- var a = eP[r];
2119
+ var a = tP[r];
2114
2120
  if (!a)
2115
2121
  throw Error("Invalid MIDI number");
2116
2122
  return a;
2117
2123
  }
2118
- var rP = Vt(Xt, Jt + 1).filter(function(r) {
2124
+ var nP = Vt(Xt, Jt + 1).filter(function(r) {
2119
2125
  return !hc(r).isAccidental;
2120
- }), qa = {
2121
- fromNote: Yu,
2126
+ }), Na = {
2127
+ fromNote: eP,
2122
2128
  getAttributes: hc,
2123
2129
  MIN_MIDI_NUMBER: Xt,
2124
2130
  MAX_MIDI_NUMBER: Jt,
2125
- NATURAL_MIDI_NUMBERS: rP
2126
- }, aP = 60, $t = /* @__PURE__ */ function(r) {
2127
- ja(t, r);
2128
- var a = Xa(t);
2131
+ NATURAL_MIDI_NUMBERS: nP
2132
+ }, oP = 60, $t = /* @__PURE__ */ function(r) {
2133
+ Xa(t, r);
2134
+ var a = Ja(t);
2129
2135
  function t() {
2130
2136
  var e;
2131
- Ia(this, t);
2137
+ Va(this, t);
2132
2138
  for (var n = arguments.length, o = new Array(n), s = 0; s < n; s++)
2133
2139
  o[s] = arguments[s];
2134
2140
  return e = a.call.apply(a, [this].concat(o)), Q(se(e), "onPlayNoteInput", function() {
@@ -2137,12 +2143,12 @@ var rP = Vt(Xt, Jt + 1).filter(function(r) {
2137
2143
  e.props.onStopNoteInput(e.props.midiNumber), e.props.onKeyMouseLeave && e.props.onKeyMouseLeave(e.props.midiNumber);
2138
2144
  }), e;
2139
2145
  }
2140
- return Va(t, [{
2146
+ return ja(t, [{
2141
2147
  key: "getAbsoluteKeyPosition",
2142
2148
  value: (
2143
2149
  // Key position is represented by the number of natural key widths from the left
2144
2150
  function(n) {
2145
- var o = 7, s = qa.getAttributes(n), i = s.octave, c = s.pitchName, l = this.props.pitchPositions[c], h = o * i;
2151
+ var o = 7, s = Na.getAttributes(n), i = s.octave, c = s.pitchName, l = this.props.pitchPositions[c], h = o * i;
2146
2152
  return l + h;
2147
2153
  }
2148
2154
  )
@@ -2162,7 +2168,7 @@ var rP = Vt(Xt, Jt + 1).filter(function(r) {
2162
2168
  "ReactPiano__Key--natural": !u,
2163
2169
  "ReactPiano__Key--disabled": d,
2164
2170
  "ReactPiano__Key--active": p,
2165
- "ReactPiano__Key--middleC": c === aP
2171
+ "ReactPiano__Key--middleC": c === oP
2166
2172
  }),
2167
2173
  style: {
2168
2174
  left: f,
@@ -2233,12 +2239,12 @@ function ft(r) {
2233
2239
  return "".concat(r * 100, "%");
2234
2240
  }
2235
2241
  var Yt = /* @__PURE__ */ function(r) {
2236
- ja(t, r);
2237
- var a = Xa(t);
2242
+ Xa(t, r);
2243
+ var a = Ja(t);
2238
2244
  function t() {
2239
- return Ia(this, t), a.apply(this, arguments);
2245
+ return Va(this, t), a.apply(this, arguments);
2240
2246
  }
2241
- return Va(t, [{
2247
+ return ja(t, [{
2242
2248
  key: "getMidiNumbers",
2243
2249
  value: (
2244
2250
  // Range of midi numbers on keyboard
@@ -2250,7 +2256,7 @@ var Yt = /* @__PURE__ */ function(r) {
2250
2256
  key: "getNaturalKeyCount",
2251
2257
  value: function() {
2252
2258
  return this.getMidiNumbers().filter(function(n) {
2253
- var o = qa.getAttributes(n), s = o.isAccidental;
2259
+ var o = Na.getAttributes(n), s = o.isAccidental;
2254
2260
  return !s;
2255
2261
  }).length;
2256
2262
  }
@@ -2284,7 +2290,7 @@ var Yt = /* @__PURE__ */ function(r) {
2284
2290
  height: this.getHeight()
2285
2291
  }
2286
2292
  }, this.getMidiNumbers().map(function(s) {
2287
- var i = qa.getAttributes(s);
2293
+ var i = Na.getAttributes(s);
2288
2294
  i.note;
2289
2295
  var c = i.isAccidental, l = !n.props.disabled && n.props.activeNotes.includes(s);
2290
2296
  return /* @__PURE__ */ le.createElement($t, {
@@ -2313,7 +2319,7 @@ var Yt = /* @__PURE__ */ function(r) {
2313
2319
  }]), t;
2314
2320
  }(le.Component);
2315
2321
  Q(Yt, "propTypes", {
2316
- noteRange: tP,
2322
+ noteRange: iP,
2317
2323
  activeNotes: L.arrayOf(L.number),
2318
2324
  onKeyMouseEnter: L.func,
2319
2325
  onKeyMouseLeave: L.func,
@@ -2339,9 +2345,9 @@ Q(Yt, "defaultProps", {
2339
2345
  useTouchEvents: !1
2340
2346
  });
2341
2347
  function On(r) {
2342
- return typeof r != "number" ? !1 : qa.NATURAL_MIDI_NUMBERS.includes(r);
2348
+ return typeof r != "number" ? !1 : Na.NATURAL_MIDI_NUMBERS.includes(r);
2343
2349
  }
2344
- function tP(r, a, t) {
2350
+ function iP(r, a, t) {
2345
2351
  var e = r[a], n = e.first, o = e.last;
2346
2352
  if (!n || !o)
2347
2353
  return new Error("Invalid prop ".concat(a, " supplied to ").concat(t, ". ").concat(a, " must be an object with .first and .last values."));
@@ -2351,11 +2357,11 @@ function tP(r, a, t) {
2351
2357
  return new Error("Invalid prop ".concat(a, " supplied to ").concat(t, ". ").concat(a, ".first must be smaller than ").concat(a, ".last."));
2352
2358
  }
2353
2359
  var Qt = /* @__PURE__ */ function(r) {
2354
- ja(t, r);
2355
- var a = Xa(t);
2360
+ Xa(t, r);
2361
+ var a = Ja(t);
2356
2362
  function t() {
2357
2363
  var e;
2358
- Ia(this, t);
2364
+ Va(this, t);
2359
2365
  for (var n = arguments.length, o = new Array(n), s = 0; s < n; s++)
2360
2366
  o[s] = arguments[s];
2361
2367
  return e = a.call.apply(a, [this].concat(o)), Q(se(e), "state", {
@@ -2419,7 +2425,7 @@ var Qt = /* @__PURE__ */ function(r) {
2419
2425
  });
2420
2426
  }), e;
2421
2427
  }
2422
- return Va(t, [{
2428
+ return ja(t, [{
2423
2429
  key: "componentDidMount",
2424
2430
  value: function() {
2425
2431
  window.addEventListener("keydown", this.onKeyDown), window.addEventListener("keyup", this.onKeyUp);
@@ -2508,12 +2514,12 @@ Q(Qt, "defaultProps", {
2508
2514
  }, t) : null;
2509
2515
  }
2510
2516
  });
2511
- var nP = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], Zt = /* @__PURE__ */ function(r) {
2512
- ja(t, r);
2513
- var a = Xa(t);
2517
+ var cP = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], Zt = /* @__PURE__ */ function(r) {
2518
+ Xa(t, r);
2519
+ var a = Ja(t);
2514
2520
  function t() {
2515
2521
  var e;
2516
- Ia(this, t);
2522
+ Va(this, t);
2517
2523
  for (var n = arguments.length, o = new Array(n), s = 0; s < n; s++)
2518
2524
  o[s] = arguments[s];
2519
2525
  return e = a.call.apply(a, [this].concat(o)), Q(se(e), "state", {
@@ -2538,7 +2544,7 @@ var nP = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], Zt = /* @__PURE_
2538
2544
  });
2539
2545
  }), e;
2540
2546
  }
2541
- return Va(t, [{
2547
+ return ja(t, [{
2542
2548
  key: "componentDidUpdate",
2543
2549
  value: function(n) {
2544
2550
  n.activeNotes !== this.props.activeNotes && this.state.activeNotes !== this.props.activeNotes && this.setState({
@@ -2550,7 +2556,7 @@ var nP = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], Zt = /* @__PURE_
2550
2556
  value: function() {
2551
2557
  var n = this.props;
2552
2558
  n.activeNotes, n.onPlayNoteInput, n.onStopNoteInput;
2553
- var o = Nu(n, nP);
2559
+ var o = zu(n, cP);
2554
2560
  return /* @__PURE__ */ le.createElement(Qt, Nt({
2555
2561
  activeNotes: this.state.activeNotes,
2556
2562
  onPlayNoteInput: this.handlePlayNoteInput,
@@ -2577,7 +2583,7 @@ Q(Zt, "propTypes", {
2577
2583
  }))
2578
2584
  });
2579
2585
  var gt = { exports: {} }, Tt = { exports: {} }, St, An;
2580
- function oP() {
2586
+ function sP() {
2581
2587
  if (An) return St;
2582
2588
  An = 1;
2583
2589
  function r(t) {
@@ -2595,7 +2601,7 @@ function oP() {
2595
2601
  return St = { decode: a }, St;
2596
2602
  }
2597
2603
  var Ct, En;
2598
- function iP() {
2604
+ function lP() {
2599
2605
  return En || (En = 1, Ct = function(r, a) {
2600
2606
  return new Promise(function(t, e) {
2601
2607
  var n = new XMLHttpRequest();
@@ -2608,9 +2614,9 @@ function iP() {
2608
2614
  }), Ct;
2609
2615
  }
2610
2616
  var Ln;
2611
- function cP() {
2617
+ function uP() {
2612
2618
  return Ln || (Ln = 1, function(r) {
2613
- var a = oP(), t = iP();
2619
+ var a = sP(), t = lP();
2614
2620
  function e(T) {
2615
2621
  return function(_) {
2616
2622
  return typeof _ == "string" && T.test(_);
@@ -2703,7 +2709,7 @@ function cP() {
2703
2709
  }(Tt)), Tt.exports;
2704
2710
  }
2705
2711
  var vt = { exports: {} }, Rt, Gn;
2706
- function sP() {
2712
+ function PP() {
2707
2713
  if (Gn) return Rt;
2708
2714
  Gn = 1, Rt = r;
2709
2715
  function r(i) {
@@ -2772,10 +2778,10 @@ function sP() {
2772
2778
  return Rt;
2773
2779
  }
2774
2780
  var _t, xn;
2775
- function lP() {
2781
+ function dP() {
2776
2782
  if (xn) return _t;
2777
2783
  xn = 1;
2778
- var r = sP(), a = {}, t = {
2784
+ var r = PP(), a = {}, t = {
2779
2785
  gain: 1,
2780
2786
  attack: 0.01,
2781
2787
  decay: 0.1,
@@ -2852,7 +2858,7 @@ function lP() {
2852
2858
  return _t = e, _t;
2853
2859
  }
2854
2860
  var bt, Kn;
2855
- function uP() {
2861
+ function mP() {
2856
2862
  if (Kn) return bt;
2857
2863
  Kn = 1, bt = function(a) {
2858
2864
  return a.on = function(t, e) {
@@ -2869,7 +2875,7 @@ function uP() {
2869
2875
  return bt;
2870
2876
  }
2871
2877
  var Ht, qn;
2872
- function PP() {
2878
+ function pP() {
2873
2879
  if (qn) return Ht;
2874
2880
  qn = 1;
2875
2881
  var r = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
@@ -2896,10 +2902,10 @@ function PP() {
2896
2902
  }), Ht = o, Ht;
2897
2903
  }
2898
2904
  var yt, Nn;
2899
- function dP() {
2905
+ function hP() {
2900
2906
  if (Nn) return yt;
2901
2907
  Nn = 1;
2902
- var r = PP(), a = function(n) {
2908
+ var r = pP(), a = function(n) {
2903
2909
  return n !== null && n !== [] && n >= 0 && n < 129;
2904
2910
  }, t = function(n) {
2905
2911
  return a(n) ? +n : r.midi(n);
@@ -2926,7 +2932,7 @@ function dP() {
2926
2932
  return yt;
2927
2933
  }
2928
2934
  var Mt, Wn;
2929
- function mP() {
2935
+ function fP() {
2930
2936
  if (Wn) return Mt;
2931
2937
  Wn = 1;
2932
2938
  var r = Array.isArray, a = function(e) {
@@ -2949,7 +2955,7 @@ function rr(r) {
2949
2955
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2950
2956
  }
2951
2957
  var kt = { exports: {} }, Un;
2952
- function pP() {
2958
+ function gP() {
2953
2959
  return Un || (Un = 1, function(r, a) {
2954
2960
  (function(t) {
2955
2961
  r.exports = t();
@@ -3014,10 +3020,10 @@ function pP() {
3014
3020
  }(kt)), kt.exports;
3015
3021
  }
3016
3022
  var wt, zn;
3017
- function hP() {
3023
+ function TP() {
3018
3024
  if (zn) return wt;
3019
3025
  zn = 1;
3020
- var r = pP();
3026
+ var r = gP();
3021
3027
  return wt = function(a) {
3022
3028
  return a.listenToMidi = function(t, e) {
3023
3029
  var n = {}, o = e || {}, s = o.gain || function(i) {
@@ -3039,9 +3045,9 @@ function hP() {
3039
3045
  }, wt;
3040
3046
  }
3041
3047
  var Fn;
3042
- function fP() {
3048
+ function SP() {
3043
3049
  return Fn || (Fn = 1, function(r) {
3044
- var a = lP(), t = uP(), e = dP(), n = mP(), o = hP();
3050
+ var a = dP(), t = mP(), e = hP(), n = fP(), o = TP();
3045
3051
  function s(i, c, l) {
3046
3052
  return o(n(e(t(a(i, c, l)))));
3047
3053
  }
@@ -3054,89 +3060,89 @@ function In(r, a) {
3054
3060
  function en(r) {
3055
3061
  return typeof r == "number";
3056
3062
  }
3057
- function gP(r) {
3063
+ function CP(r) {
3058
3064
  return typeof r == "string";
3059
3065
  }
3060
- function TP(r) {
3066
+ function vP(r) {
3061
3067
  return typeof r < "u";
3062
3068
  }
3063
3069
  function fc(r, a) {
3064
3070
  return Math.pow(2, (r - 69) / 12) * (a || 440);
3065
3071
  }
3066
3072
  var gc = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
3067
- function SP() {
3073
+ function RP() {
3068
3074
  return gc;
3069
3075
  }
3070
- var CP = [0, 2, 4, 5, 7, 9, 11];
3076
+ var _P = [0, 2, 4, 5, 7, 9, 11];
3071
3077
  function be(r, a, t) {
3072
3078
  if (typeof r != "string") return null;
3073
3079
  var e = gc.exec(r);
3074
3080
  if (!e || !a && e[4]) return null;
3075
3081
  var n = { letter: e[1].toUpperCase(), acc: e[2].replace(/x/g, "##") };
3076
3082
  n.pc = n.letter + n.acc, n.step = (n.letter.charCodeAt(0) + 3) % 7, n.alt = n.acc[0] === "b" ? -n.acc.length : n.acc.length;
3077
- var o = CP[n.step] + n.alt;
3083
+ var o = _P[n.step] + n.alt;
3078
3084
  return n.chroma = o < 0 ? 12 + o : o % 12, e[3] && (n.oct = +e[3], n.midi = o + 12 * (n.oct + 1), n.freq = fc(n.midi, t)), a && (n.tonicOf = e[4]), n;
3079
3085
  }
3080
- var vP = "CDEFGAB";
3081
- function RP(r) {
3086
+ var bP = "CDEFGAB";
3087
+ function HP(r) {
3082
3088
  return en(r) ? r < 0 ? In("b", -r) : In("#", r) : "";
3083
3089
  }
3084
- function _P(r) {
3090
+ function yP(r) {
3085
3091
  return en(r) ? "" + r : "";
3086
3092
  }
3087
3093
  function Tc(r, a, t) {
3088
- return r === null || typeof r > "u" ? null : r.step ? Tc(r.step, r.alt, r.oct) : r < 0 || r > 6 ? null : vP.charAt(r) + RP(a) + _P(t);
3094
+ return r === null || typeof r > "u" ? null : r.step ? Tc(r.step, r.alt, r.oct) : r < 0 || r > 6 ? null : bP.charAt(r) + HP(a) + yP(t);
3089
3095
  }
3090
3096
  function Sc(r) {
3091
- if ((en(r) || gP(r)) && r >= 0 && r < 128) return +r;
3097
+ if ((en(r) || CP(r)) && r >= 0 && r < 128) return +r;
3092
3098
  var a = be(r);
3093
- return a && TP(a.midi) ? a.midi : null;
3099
+ return a && vP(a.midi) ? a.midi : null;
3094
3100
  }
3095
- function bP(r, a) {
3101
+ function MP(r, a) {
3096
3102
  var t = Sc(r);
3097
3103
  return t === null ? null : fc(t, a);
3098
3104
  }
3099
- function HP(r) {
3105
+ function kP(r) {
3100
3106
  return (be(r) || {}).letter;
3101
3107
  }
3102
- function yP(r) {
3108
+ function wP(r) {
3103
3109
  return (be(r) || {}).acc;
3104
3110
  }
3105
- function MP(r) {
3111
+ function BP(r) {
3106
3112
  return (be(r) || {}).pc;
3107
3113
  }
3108
- function kP(r) {
3114
+ function DP(r) {
3109
3115
  return (be(r) || {}).step;
3110
3116
  }
3111
- function wP(r) {
3117
+ function OP(r) {
3112
3118
  return (be(r) || {}).alt;
3113
3119
  }
3114
- function BP(r) {
3120
+ function AP(r) {
3115
3121
  return (be(r) || {}).chroma;
3116
3122
  }
3117
- function DP(r) {
3123
+ function EP(r) {
3118
3124
  return (be(r) || {}).oct;
3119
3125
  }
3120
- const OP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3126
+ const LP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3121
3127
  __proto__: null,
3122
- acc: yP,
3123
- alt: wP,
3128
+ acc: wP,
3129
+ alt: OP,
3124
3130
  build: Tc,
3125
- chroma: BP,
3126
- freq: bP,
3127
- letter: HP,
3131
+ chroma: AP,
3132
+ freq: MP,
3133
+ letter: kP,
3128
3134
  midi: Sc,
3129
- oct: DP,
3135
+ oct: EP,
3130
3136
  parse: be,
3131
- pc: MP,
3132
- regex: SP,
3133
- step: kP
3134
- }, Symbol.toStringTag, { value: "Module" })), AP = /* @__PURE__ */ Ru(OP);
3137
+ pc: BP,
3138
+ regex: RP,
3139
+ step: DP
3140
+ }, Symbol.toStringTag, { value: "Module" })), GP = /* @__PURE__ */ Hu(LP);
3135
3141
  var Bt, Vn;
3136
- function EP() {
3142
+ function xP() {
3137
3143
  if (Vn) return Bt;
3138
3144
  Vn = 1;
3139
- var r = AP;
3145
+ var r = GP;
3140
3146
  function a(n, o) {
3141
3147
  if (console.warn("new Soundfont() is deprected"), console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"), !(this instanceof a)) return new a(n);
3142
3148
  this.nameToUrl = o || a.nameToUrl, this.ctx = n, this.instruments = {}, this.promises = [];
@@ -3183,9 +3189,9 @@ function EP() {
3183
3189
  return a.noteToMidi = r.midi, Bt = a, Bt;
3184
3190
  }
3185
3191
  var jn;
3186
- function LP() {
3192
+ function KP() {
3187
3193
  return jn || (jn = 1, function(r) {
3188
- var a = cP(), t = fP();
3194
+ var a = uP(), t = SP();
3189
3195
  function e(i, c, l) {
3190
3196
  if (arguments.length === 1) return function(m, f) {
3191
3197
  return e(i, m, f);
@@ -3202,12 +3208,12 @@ function LP() {
3202
3208
  function o(i, c, l) {
3203
3209
  return l = l === "ogg" ? l : "mp3", c = c === "FluidR3_GM" ? c : "MusyngKite", "https://gleitz.github.io/midi-js-soundfonts/" + c + "/" + i + "-" + l + ".js";
3204
3210
  }
3205
- var s = EP();
3211
+ var s = xP();
3206
3212
  s.instrument = e, s.nameToUrl = o, r.exports && (r.exports = s), typeof window < "u" && (window.Soundfont = s);
3207
3213
  }(gt)), gt.exports;
3208
3214
  }
3209
- var GP = LP();
3210
- const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc = (r) => {
3215
+ var qP = KP();
3216
+ const Xn = /* @__PURE__ */ Ie(qP), Jn = (r) => r != null && !Number.isNaN(r), Cc = (r) => {
3211
3217
  const {
3212
3218
  audioContext: a,
3213
3219
  format: t,
@@ -3216,7 +3222,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3216
3222
  onChange: o,
3217
3223
  render: s,
3218
3224
  soundfont: i
3219
- } = r, [c, l] = Te(!0), [h, u] = Te({}), [p, d] = Te(null), m = Re(
3225
+ } = r, [c, l] = Se(!0), [h, u] = Se({}), [p, d] = Se(null), m = _e(
3220
3226
  (A) => {
3221
3227
  d(null), Jn(e) ? Xn.instrument(a, A, {
3222
3228
  format: t,
@@ -3276,13 +3282,13 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3276
3282
  "A",
3277
3283
  "A#",
3278
3284
  "B"
3279
- ], xP = 12, KP = xP * 0.7, qP = new window.AudioContext(), NP = ({
3285
+ ], NP = 12, WP = NP * 0.7, UP = new window.AudioContext(), zP = ({
3280
3286
  octave: r,
3281
3287
  height: a,
3282
3288
  width: t,
3283
3289
  ...e
3284
3290
  }) => {
3285
- const o = (t / KP + 2) / a, s = hn(Dt[0] + String(r)) || 0, i = hn(Dt[Dt.length - 1] + String(r)) || 0;
3291
+ const o = (t / WP + 2) / a, s = hn(Dt[0] + String(r)) || 0, i = hn(Dt[Dt.length - 1] + String(r)) || 0;
3286
3292
  return /* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
3287
3293
  Zt,
3288
3294
  {
@@ -3292,7 +3298,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3292
3298
  ...e
3293
3299
  }
3294
3300
  ) });
3295
- }, s1 = ({
3301
+ }, u1 = ({
3296
3302
  format: r,
3297
3303
  height: a,
3298
3304
  hostname: t,
@@ -3309,7 +3315,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3309
3315
  }) => /* @__PURE__ */ O(
3310
3316
  Cc,
3311
3317
  {
3312
- audioContext: qP,
3318
+ audioContext: UP,
3313
3319
  format: r,
3314
3320
  hostname: t,
3315
3321
  instrumentName: e,
@@ -3325,7 +3331,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3325
3331
  n
3326
3332
  ] }) }),
3327
3333
  /* @__PURE__ */ O(
3328
- NP,
3334
+ zP,
3329
3335
  {
3330
3336
  disabled: d,
3331
3337
  height: a,
@@ -3342,7 +3348,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3342
3348
  )
3343
3349
  ] })
3344
3350
  }
3345
- ), $n = "__react_svg_text_measurement_id", WP = (r, a, t, e) => {
3351
+ ), $n = "__react_svg_text_measurement_id", FP = (r, a, t, e) => {
3346
3352
  const { lineHeight: n, spaceWidth: o, wordsWithComputedWidth: s } = a;
3347
3353
  return r.split(/\s+/).reduce((i, c) => {
3348
3354
  const l = s[c], h = i[i.length - 1];
@@ -3358,7 +3364,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3358
3364
  }
3359
3365
  return i;
3360
3366
  }, []);
3361
- }, UP = (r, a, t) => {
3367
+ }, IP = (r, a, t) => {
3362
3368
  var e;
3363
3369
  if (r && a) {
3364
3370
  Array.from(r).forEach(
@@ -3387,10 +3393,10 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3387
3393
  y: l = 0,
3388
3394
  transform: h = "",
3389
3395
  ...u
3390
- } = r, [p, d] = Te(), [m, f] = Te([]), [v, x] = Te(), A = Fe({}), R = Be(() => {
3396
+ } = r, [p, d] = Se(), [m, f] = Se([]), [v, x] = Se(), A = Fe({}), R = Be(() => {
3391
3397
  const C = m.filter(({ showLine: T }) => T);
3392
3398
  return C.length ? C : s.split(/\n/).map((T) => ({ words: [T], width: 0, showLine: !0 }));
3393
- }, [m, s]), S = Re(
3399
+ }, [m, s]), S = _e(
3394
3400
  (C) => {
3395
3401
  x(
3396
3402
  C !== null ? window.getComputedStyle(C) : void 0
@@ -3410,7 +3416,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3410
3416
  }
3411
3417
  A.current = C;
3412
3418
  }, []), ye(() => {
3413
- const C = UP(
3419
+ const C = IP(
3414
3420
  v,
3415
3421
  A.current,
3416
3422
  s
@@ -3419,7 +3425,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3419
3425
  }, [s, v]), ye(() => {
3420
3426
  if (o && p) {
3421
3427
  const C = s.split(/\n/).flatMap(
3422
- (T) => WP(T, p, o, n)
3428
+ (T) => FP(T, p, o, n)
3423
3429
  );
3424
3430
  f(C);
3425
3431
  }
@@ -3465,16 +3471,13 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3465
3471
  ] })
3466
3472
  }
3467
3473
  );
3468
- }, Ja = (r) => Array.from(new Array(r).keys()), Na = (r, a = 127, t = 0) => {
3469
- let e = typeof r == "string" ? Number.parseInt(r, 10) : r;
3470
- return (Number.isNaN(e) || e === null) && (e = t), e >= t ? e <= a ? e : a : t;
3471
- }, zP = (r, a) => (t) => t == null ? void 0 : t.find((e) => (e == null ? void 0 : e[r]) === a), FP = (...r) => (a) => Object.entries(a).filter(([t]) => !r.flat().map(String).includes(t)).reduce((t, [e, n]) => Object.assign(t, { [e]: n }), {}), { IndicatorsContainer: IP, Placeholder: Qn, ValueContainer: VP } = Pl, Zn = ({
3474
+ }, { IndicatorsContainer: VP, Placeholder: Qn, ValueContainer: jP } = Pl, Zn = ({
3472
3475
  children: r,
3473
3476
  ...a
3474
3477
  }) => {
3475
3478
  var e;
3476
3479
  const t = (e = a.selectProps) == null ? void 0 : e.actionButton;
3477
- return /* @__PURE__ */ O(IP, { ...a, children: /* @__PURE__ */ ne(
3480
+ return /* @__PURE__ */ O(VP, { ...a, children: /* @__PURE__ */ ne(
3478
3481
  "div",
3479
3482
  {
3480
3483
  onMouseDown: (n) => {
@@ -3487,10 +3490,10 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3487
3490
  ]
3488
3491
  }
3489
3492
  ) });
3490
- }, jP = ({
3493
+ }, XP = ({
3491
3494
  children: r,
3492
3495
  ...a
3493
- }) => /* @__PURE__ */ ne(VP, { ...a, children: [
3496
+ }) => /* @__PURE__ */ ne(jP, { ...a, children: [
3494
3497
  /* @__PURE__ */ O(
3495
3498
  Qn,
3496
3499
  {
@@ -3505,7 +3508,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3505
3508
  r,
3506
3509
  (t) => ll(t) && t.type !== Qn ? t : null
3507
3510
  )
3508
- ] }), _e = Se(
3511
+ ] }), Ce = fe(
3509
3512
  (r, a) => {
3510
3513
  const {
3511
3514
  components: t,
@@ -3517,14 +3520,14 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3517
3520
  shrinkLabel: c,
3518
3521
  value: l,
3519
3522
  ...h
3520
- } = r, u = Re(
3523
+ } = r, u = _e(
3521
3524
  (f) => {
3522
3525
  f && o(f.value);
3523
3526
  },
3524
3527
  [o]
3525
3528
  ), p = s.reduce((f, v) => "entries" in v ? f.concat(v.entries) : f.concat(v), []), d = p.find((f) => l === f.value) || void 0, m = Be(() => {
3526
3529
  const f = i ? {
3527
- menu: (v) => FP("width")(v),
3530
+ menu: (v) => hl("width")(v),
3528
3531
  menuList: (v) => ({
3529
3532
  ...v,
3530
3533
  overflowX: "hidden"
@@ -3563,7 +3566,7 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3563
3566
  classNamePrefix: "zds-pickers",
3564
3567
  components: {
3565
3568
  IndicatorsContainer: Zn,
3566
- ValueContainer: jP,
3569
+ ValueContainer: XP,
3567
3570
  ...t
3568
3571
  },
3569
3572
  isDisabled: e,
@@ -3595,11 +3598,18 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3595
3598
  )
3596
3599
  ] });
3597
3600
  }
3598
- ), XP = Ja(16).map((r) => ({
3601
+ ), P1 = fe((r, a) => /* @__PURE__ */ O(
3602
+ Ce,
3603
+ {
3604
+ ...r,
3605
+ options: fl,
3606
+ ref: a
3607
+ }
3608
+ )), JP = za(16).map((r) => ({
3599
3609
  value: r,
3600
3610
  label: r
3601
- })), l1 = Se(({ channels: r, className: a, ...t }, e) => {
3602
- const [n, o] = Te([]), s = Re(
3611
+ })), d1 = fe(({ channels: r, className: a, ...t }, e) => {
3612
+ const [n, o] = Se([]), s = _e(
3603
3613
  ({ value: i, label: c }, { context: l }) => {
3604
3614
  if (i === "separator")
3605
3615
  return /* @__PURE__ */ O("span", { className: "zds-mappings-user-mapping", children: c });
@@ -3622,14 +3632,14 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3622
3632
  [r]
3623
3633
  );
3624
3634
  return ye(() => {
3625
- const i = XP.sort(
3635
+ const i = JP.sort(
3626
3636
  (h, u) => typeof h.value == "number" && typeof u.value == "number" && r[h.value] && !r[u.value] ? -1 : typeof h.value == "number" && typeof u.value == "number" && !r[h.value] && r[u.value] ? 1 : typeof h.value == "number" && typeof u.value == "number" ? h.value - u.value : 0
3627
3637
  ), c = i.filter(
3628
3638
  ({ value: h }) => typeof h == "number" && !!r[h]
3629
3639
  ).length, l = i.some(({ value: h }) => h === "separator");
3630
3640
  c && c < 16 && !l && i.splice(c, 0, { label: /* @__PURE__ */ O("hr", {}), value: "separator" }), o(i);
3631
3641
  }, [r]), /* @__PURE__ */ O(
3632
- _e,
3642
+ Ce,
3633
3643
  {
3634
3644
  ...t,
3635
3645
  className: Ve(a, "channel-mapping-picker"),
@@ -3638,27 +3648,27 @@ const Xn = /* @__PURE__ */ Ie(GP), Jn = (r) => r != null && !Number.isNaN(r), Cc
3638
3648
  ref: e
3639
3649
  }
3640
3650
  );
3641
- }), JP = Ja(16).map((r) => ({
3651
+ }), $P = za(16).map((r) => ({
3642
3652
  value: r,
3643
3653
  label: `Channel ${r + 1}`
3644
- })), $P = (r, { context: a }) => a === "value" ? r.label : Number.parseInt(String(r.value)) + 1, YP = (r, a) => a ? String(r.label).toLowerCase().includes(a.toLowerCase()) : !0, u1 = Se(({ className: r, ...a }, t) => /* @__PURE__ */ O(
3645
- _e,
3654
+ })), YP = (r, { context: a }) => a === "value" ? r.label : Number.parseInt(String(r.value)) + 1, QP = (r, a) => a ? String(r.label).toLowerCase().includes(a.toLowerCase()) : !0, m1 = fe(({ className: r, ...a }, t) => /* @__PURE__ */ O(
3655
+ Ce,
3646
3656
  {
3647
3657
  ...a,
3648
3658
  className: Ve(r, "channel-picker"),
3649
- filterOptions: YP,
3650
- formatOptionLabel: $P,
3651
- options: JP,
3659
+ filterOptions: QP,
3660
+ formatOptionLabel: YP,
3661
+ options: $P,
3652
3662
  ref: t
3653
3663
  }
3654
3664
  )), rn = (r) => {
3655
- const [a, t] = Te(r);
3665
+ const [a, t] = Se(r);
3656
3666
  return ye(() => {
3657
3667
  t(r);
3658
3668
  }, [r]), [a, t];
3659
3669
  };
3660
3670
  var Ot, eo;
3661
- function QP() {
3671
+ function ZP() {
3662
3672
  return eo || (eo = 1, Ot = function(r) {
3663
3673
  var a = {};
3664
3674
  function t(e) {
@@ -4045,10 +4055,10 @@ function QP() {
4045
4055
  }])), Ot;
4046
4056
  }
4047
4057
  var At, ro;
4048
- function ZP() {
4049
- return ro || (ro = 1, At = QP()), At;
4058
+ function ed() {
4059
+ return ro || (ro = 1, At = ZP()), At;
4050
4060
  }
4051
- var Et = ZP();
4061
+ var Et = ed();
4052
4062
  class vc extends le.Component {
4053
4063
  render() {
4054
4064
  const a = this.props, t = {};
@@ -4078,13 +4088,13 @@ ot(vc, "defaultProps", {
4078
4088
  function ao(r) {
4079
4089
  return r * Math.PI / 180;
4080
4090
  }
4081
- function ed(r, a) {
4091
+ function rd(r, a) {
4082
4092
  return r >= 0 && a >= 0 ? 1 : r <= 0 && a >= 0 ? 2 : r <= 0 && a <= 0 ? 3 : r >= 0 && a <= 0 ? 4 : 1;
4083
4093
  }
4084
4094
  function Lt(r, a) {
4085
4095
  if (r === 0 && a === 0) return 0;
4086
4096
  let e = Math.atan(r / a) * 180 / Math.PI;
4087
- const n = ed(r, a);
4097
+ const n = rd(r, a);
4088
4098
  return n === 1 && (e = 90 - e), n === 2 && (e = 90 - e), n === 3 && (e = 270 - e), n === 4 && (e = 270 - e), e;
4089
4099
  }
4090
4100
  class to extends le.Component {
@@ -4109,7 +4119,7 @@ class to extends le.Component {
4109
4119
  );
4110
4120
  }
4111
4121
  }
4112
- class rd extends le.Component {
4122
+ class ad extends le.Component {
4113
4123
  render() {
4114
4124
  const { width: a = 2, color: t = "black", p1: e, p2: n, ...o } = this.props;
4115
4125
  return /* @__PURE__ */ O(
@@ -4126,7 +4136,7 @@ class rd extends le.Component {
4126
4136
  );
4127
4137
  }
4128
4138
  }
4129
- class ad extends le.Component {
4139
+ class td extends le.Component {
4130
4140
  render() {
4131
4141
  const { children: a, ...t } = this.props, e = {
4132
4142
  overlay: Object.assign(
@@ -4157,7 +4167,7 @@ class ad extends le.Component {
4157
4167
  );
4158
4168
  }
4159
4169
  }
4160
- class td extends le.Component {
4170
+ class nd extends le.Component {
4161
4171
  constructor() {
4162
4172
  super(...arguments);
4163
4173
  ot(this, "state", {
@@ -4180,7 +4190,7 @@ class td extends le.Component {
4180
4190
  }
4181
4191
  render() {
4182
4192
  const t = this.props.minimumDragDistance <= this.props.radius ? "green" : "grey", e = this.props.minimumDragDistance <= this.props.radius ? "#88E22D" : "#D8D8D8", n = this.props.minimumDragDistance >= this.props.radius;
4183
- return /* @__PURE__ */ O(ad, { children: /* @__PURE__ */ ne(
4193
+ return /* @__PURE__ */ O(td, { children: /* @__PURE__ */ ne(
4184
4194
  "svg",
4185
4195
  {
4186
4196
  style: { position: "absolute", top: "0", left: "0" },
@@ -4223,7 +4233,7 @@ class td extends le.Component {
4223
4233
  }
4224
4234
  ),
4225
4235
  /* @__PURE__ */ O(
4226
- rd,
4236
+ ad,
4227
4237
  {
4228
4238
  p1: { x: this.state.centerX, y: this.state.centerY },
4229
4239
  p2: {
@@ -4238,7 +4248,7 @@ class td extends le.Component {
4238
4248
  ) });
4239
4249
  }
4240
4250
  }
4241
- const nd = {
4251
+ const od = {
4242
4252
  knobX: 71,
4243
4253
  knobY: 71,
4244
4254
  svg: `
@@ -4293,7 +4303,7 @@ const nd = {
4293
4303
  </g>
4294
4304
  </svg>
4295
4305
  `
4296
- }, od = (r) => {
4306
+ }, id = (r) => {
4297
4307
  const {
4298
4308
  clampMax: a = 360,
4299
4309
  clampMin: t = 0,
@@ -4310,15 +4320,15 @@ const nd = {
4310
4320
  },
4311
4321
  preciseMode: u = !0,
4312
4322
  rotateDegrees: p = 0,
4313
- skin: d = nd,
4323
+ skin: d = od,
4314
4324
  step: m = 1,
4315
4325
  style: f,
4316
4326
  unlockDistance: v = 100,
4317
4327
  value: x,
4318
4328
  ...A
4319
- } = r, [R, S] = Te(x !== void 0), P = Fe(null), C = Fe(null);
4329
+ } = r, [R, S] = Se(x !== void 0), P = Fe(null), C = Fe(null);
4320
4330
  let T, _;
4321
- const [w, K] = Te({
4331
+ const [w, K] = Se({
4322
4332
  svgRef: void 0,
4323
4333
  dragging: !1,
4324
4334
  dragDistance: 0,
@@ -4355,33 +4365,33 @@ const nd = {
4355
4365
  let W = G.getBoundingClientRect();
4356
4366
  const I = W.width / 2, z = W.height / 2;
4357
4367
  let V, re, B, ae = !1;
4358
- function Ce(te) {
4368
+ function ve(te) {
4359
4369
  if (!(te != null && te.sourceEvent) || !G) return;
4360
4370
  const Pe = Z();
4361
4371
  W = G.getBoundingClientRect(), D.classed("dragging", !0), h(), V = { x: te.x - I, y: te.y - z }, re = Lt(V.x, V.y), B = j(Pe), ae = !1;
4362
4372
  }
4363
- function fe(te) {
4373
+ function ge(te) {
4364
4374
  const Pe = { x: te.x - I, y: te.y - z }, Ae = Math.sqrt(
4365
4375
  Pe.x ** 2 + Pe.y ** 2
4366
4376
  );
4367
4377
  u ? !ae && Ae >= v && (V = Pe, re = Lt(Pe.x, Pe.y), ae = !0) : ae = !0;
4368
4378
  const We = Lt(Pe.x, Pe.y) - re;
4369
- let ge = B + We;
4370
- ge = F(ge), ae && Y(ge), K((Ee) => ({
4379
+ let Te = B + We;
4380
+ Te = F(Te), ae && Y(Te), K((Ee) => ({
4371
4381
  ...Ee,
4372
4382
  dragDistance: Ae,
4373
4383
  mousePos: {
4374
4384
  x: te.sourceEvent.clientX,
4375
4385
  y: te.sourceEvent.clientY
4376
4386
  },
4377
- valueAngle: ae ? ge : B
4387
+ valueAngle: ae ? Te : B
4378
4388
  }));
4379
4389
  }
4380
4390
  function qe() {
4381
4391
  var te;
4382
4392
  D.classed("dragging", !1), K((Pe) => ({ ...Pe, dragging: !1 })), l(), (te = C.current) == null || te.focus();
4383
4393
  }
4384
- const Ne = dl().container(() => G).on("start", Ce).on("drag", fe).on("end", qe);
4394
+ const Ne = dl().container(() => G).on("start", ve).on("drag", ge).on("end", qe);
4385
4395
  D.call(Ne);
4386
4396
  }, ue = (D) => {
4387
4397
  R || K((G) => ({ ...G, uncontrolledValue: D })), n || c(D);
@@ -4464,7 +4474,7 @@ const nd = {
4464
4474
  }
4465
4475
  ),
4466
4476
  w.dragging && u && /* @__PURE__ */ O(
4467
- td,
4477
+ nd,
4468
4478
  {
4469
4479
  svgRef: w.svgRef,
4470
4480
  radius: w.dragDistance,
@@ -4474,7 +4484,7 @@ const nd = {
4474
4484
  }
4475
4485
  )
4476
4486
  ] });
4477
- }, id = {
4487
+ }, cd = {
4478
4488
  knobX: 71.44,
4479
4489
  knobY: 71.44,
4480
4490
  svg: `
@@ -4565,7 +4575,7 @@ const nd = {
4565
4575
  ]
4566
4576
  }
4567
4577
  ]
4568
- }, cd = (r) => {
4578
+ }, sd = (r) => {
4569
4579
  const {
4570
4580
  disabled: a = !1,
4571
4581
  max: t = 127,
@@ -4577,13 +4587,13 @@ const nd = {
4577
4587
  ...c
4578
4588
  } = r, [l, h] = rn(o), u = (d) => {
4579
4589
  if (a) return;
4580
- const m = Na(Number.parseInt(String(d), 10), t, e);
4590
+ const m = Ga(Number.parseInt(String(d), 10), t, e);
4581
4591
  h(m), n && n(m);
4582
- }, p = Re(
4592
+ }, p = _e(
4583
4593
  (d) => {
4584
4594
  if (!s || a) return;
4585
4595
  d.preventDefault();
4586
- const m = -d.deltaY * i, f = Na(l + m, t, e);
4596
+ const m = -d.deltaY * i, f = Ga(l + m, t, e);
4587
4597
  h(f), n && n(f);
4588
4598
  },
4589
4599
  [
@@ -4598,7 +4608,7 @@ const nd = {
4598
4608
  ]
4599
4609
  );
4600
4610
  return /* @__PURE__ */ O(
4601
- od,
4611
+ id,
4602
4612
  {
4603
4613
  clampMax: 320,
4604
4614
  clampMin: 40,
@@ -4608,7 +4618,7 @@ const nd = {
4608
4618
  onWheel: s ? p : void 0,
4609
4619
  preciseMode: !1,
4610
4620
  rotateDegrees: 180,
4611
- skin: id,
4621
+ skin: cd,
4612
4622
  style: { opacity: a ? 0.4 : 1 },
4613
4623
  unlockDistance: 0,
4614
4624
  defaultValue: l,
@@ -4618,7 +4628,7 @@ const nd = {
4618
4628
  ...c
4619
4629
  }
4620
4630
  );
4621
- }, P1 = Se((r, a) => {
4631
+ }, p1 = fe((r, a) => {
4622
4632
  const {
4623
4633
  disabled: t,
4624
4634
  highToLow: e,
@@ -4635,14 +4645,14 @@ const nd = {
4635
4645
  wheelSensitivity: m = 0.1,
4636
4646
  ...f
4637
4647
  } = r, v = Be(() => {
4638
- const x = Ja(c - l + 1).map((A) => l + A).map((A) => ({ value: A, label: String(A) }));
4648
+ const x = za(c - l + 1).map((A) => l + A).map((A) => ({ value: A, label: String(A) }));
4639
4649
  return e ? x.reverse() : x;
4640
4650
  }, [e, c, l]);
4641
4651
  return /* @__PURE__ */ ne("div", { className: "zds-pickers__container", children: [
4642
4652
  !!(!u && i) && /* @__PURE__ */ O("span", { className: "zds-pickers__label", children: i }),
4643
4653
  /* @__PURE__ */ ne("div", { style: { display: "inline-flex", gap: 10, alignItems: "center" }, children: [
4644
4654
  !!o && /* @__PURE__ */ O(
4645
- _e,
4655
+ Ce,
4646
4656
  {
4647
4657
  ...f,
4648
4658
  disabled: t,
@@ -4654,7 +4664,7 @@ const nd = {
4654
4664
  }
4655
4665
  ),
4656
4666
  /* @__PURE__ */ O(
4657
- cd,
4667
+ sd,
4658
4668
  {
4659
4669
  disabled: t,
4660
4670
  max: c,
@@ -4668,19 +4678,19 @@ const nd = {
4668
4678
  )
4669
4679
  ] })
4670
4680
  ] });
4671
- }), sd = [
4681
+ }), ld = [
4672
4682
  { value: 0, label: "Momentary" },
4673
4683
  { value: 1, label: "Latching" }
4674
- ], d1 = Se((r, a) => /* @__PURE__ */ O(
4675
- _e,
4684
+ ], h1 = fe((r, a) => /* @__PURE__ */ O(
4685
+ Ce,
4676
4686
  {
4677
4687
  ...r,
4678
- options: sd,
4688
+ options: ld,
4679
4689
  ref: a
4680
4690
  }
4681
4691
  ));
4682
4692
  var Gt = {}, we = {}, ee = {}, he = {}, Ue = {}, no;
4683
- function ld() {
4693
+ function ud() {
4684
4694
  if (no) return Ue;
4685
4695
  no = 1, Object.defineProperty(Ue, "__esModule", { value: !0 });
4686
4696
  function r(t) {
@@ -4700,7 +4710,7 @@ var oo;
4700
4710
  function y() {
4701
4711
  if (oo) return he;
4702
4712
  oo = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.emptyMapping = he.reverse = he.standardizeItem = he.standardizeGroup = void 0;
4703
- var r = ld(), a = he.standardizeGroup = function(o) {
4713
+ var r = ud(), a = he.standardizeGroup = function(o) {
4704
4714
  switch (String(o).toLocaleLowerCase()) {
4705
4715
  case "cymbals":
4706
4716
  case "cymbal":
@@ -4867,7 +4877,7 @@ function Rc() {
4867
4877
  }, ee;
4868
4878
  }
4869
4879
  var ar = {}, co;
4870
- function ud() {
4880
+ function Pd() {
4871
4881
  if (co) return ar;
4872
4882
  co = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
4873
4883
  var r = y(), a = t(r);
@@ -4904,7 +4914,7 @@ function ud() {
4904
4914
  ]), ar;
4905
4915
  }
4906
4916
  var tr = {}, so;
4907
- function Pd() {
4917
+ function dd() {
4908
4918
  if (so) return tr;
4909
4919
  so = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
4910
4920
  var r = y(), a = t(r);
@@ -4958,7 +4968,7 @@ function Pd() {
4958
4968
  ]), tr;
4959
4969
  }
4960
4970
  var nr = {}, lo;
4961
- function dd() {
4971
+ function md() {
4962
4972
  if (lo) return nr;
4963
4973
  lo = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
4964
4974
  var r = y(), a = t(r);
@@ -5014,7 +5024,7 @@ function dd() {
5014
5024
  ]), nr;
5015
5025
  }
5016
5026
  var or = {}, uo;
5017
- function md() {
5027
+ function pd() {
5018
5028
  if (uo) return or;
5019
5029
  uo = 1, Object.defineProperty(or, "__esModule", { value: !0 });
5020
5030
  var r = y(), a = t(r);
@@ -5091,7 +5101,7 @@ function md() {
5091
5101
  ]), or;
5092
5102
  }
5093
5103
  var ir = {}, Po;
5094
- function pd() {
5104
+ function hd() {
5095
5105
  if (Po) return ir;
5096
5106
  Po = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
5097
5107
  var r = y(), a = t(r);
@@ -5114,7 +5124,7 @@ function pd() {
5114
5124
  ]), ir;
5115
5125
  }
5116
5126
  var cr = {}, mo;
5117
- function hd() {
5127
+ function fd() {
5118
5128
  if (mo) return cr;
5119
5129
  mo = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
5120
5130
  var r = y(), a = t(r);
@@ -5185,7 +5195,7 @@ function hd() {
5185
5195
  ]), cr;
5186
5196
  }
5187
5197
  var sr = {}, po;
5188
- function fd() {
5198
+ function gd() {
5189
5199
  if (po) return sr;
5190
5200
  po = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
5191
5201
  var r = y(), a = t(r);
@@ -5300,7 +5310,7 @@ function fd() {
5300
5310
  ]), sr;
5301
5311
  }
5302
5312
  var lr = {}, ho;
5303
- function gd() {
5313
+ function Td() {
5304
5314
  if (ho) return lr;
5305
5315
  ho = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
5306
5316
  var r = y(), a = t(r);
@@ -5376,7 +5386,7 @@ function gd() {
5376
5386
  ]), lr;
5377
5387
  }
5378
5388
  var ur = {}, fo;
5379
- function Td() {
5389
+ function Sd() {
5380
5390
  if (fo) return ur;
5381
5391
  fo = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
5382
5392
  var r = y(), a = t(r);
@@ -5472,7 +5482,7 @@ function Td() {
5472
5482
  ]), ur;
5473
5483
  }
5474
5484
  var Pr = {}, go;
5475
- function Sd() {
5485
+ function Cd() {
5476
5486
  if (go) return Pr;
5477
5487
  go = 1, Object.defineProperty(Pr, "__esModule", { value: !0 });
5478
5488
  var r = y(), a = t(r);
@@ -5557,7 +5567,7 @@ function Sd() {
5557
5567
  ]), Pr;
5558
5568
  }
5559
5569
  var dr = {}, To;
5560
- function Cd() {
5570
+ function vd() {
5561
5571
  if (To) return dr;
5562
5572
  To = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
5563
5573
  var r = y(), a = t(r);
@@ -5623,7 +5633,7 @@ function Cd() {
5623
5633
  ]), dr;
5624
5634
  }
5625
5635
  var mr = {}, So;
5626
- function vd() {
5636
+ function Rd() {
5627
5637
  if (So) return mr;
5628
5638
  So = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
5629
5639
  var r = y(), a = t(r);
@@ -5719,7 +5729,7 @@ function vd() {
5719
5729
  ]), mr;
5720
5730
  }
5721
5731
  var pr = {}, Co;
5722
- function Rd() {
5732
+ function _d() {
5723
5733
  if (Co) return pr;
5724
5734
  Co = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
5725
5735
  var r = y(), a = t(r);
@@ -5794,7 +5804,7 @@ function Rd() {
5794
5804
  ]), pr;
5795
5805
  }
5796
5806
  var hr = {}, vo;
5797
- function _d() {
5807
+ function bd() {
5798
5808
  if (vo) return hr;
5799
5809
  vo = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
5800
5810
  var r = y(), a = t(r);
@@ -5882,7 +5892,7 @@ function _d() {
5882
5892
  ]), hr;
5883
5893
  }
5884
5894
  var fr = {}, Ro;
5885
- function bd() {
5895
+ function Hd() {
5886
5896
  if (Ro) return fr;
5887
5897
  Ro = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
5888
5898
  var r = y(), a = t(r);
@@ -6018,7 +6028,7 @@ function bd() {
6018
6028
  ]), fr;
6019
6029
  }
6020
6030
  var gr = {}, _o;
6021
- function Hd() {
6031
+ function yd() {
6022
6032
  if (_o) return gr;
6023
6033
  _o = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
6024
6034
  var r = y(), a = t(r);
@@ -6074,7 +6084,7 @@ function Hd() {
6074
6084
  ]), gr;
6075
6085
  }
6076
6086
  var Tr = {}, bo;
6077
- function yd() {
6087
+ function Md() {
6078
6088
  if (bo) return Tr;
6079
6089
  bo = 1, Object.defineProperty(Tr, "__esModule", { value: !0 });
6080
6090
  var r = y(), a = t(r);
@@ -6150,7 +6160,7 @@ function yd() {
6150
6160
  ]), Tr;
6151
6161
  }
6152
6162
  var Sr = {}, Ho;
6153
- function Md() {
6163
+ function kd() {
6154
6164
  if (Ho) return Sr;
6155
6165
  Ho = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
6156
6166
  var r = y(), a = t(r);
@@ -6221,7 +6231,7 @@ function Md() {
6221
6231
  ]), Sr;
6222
6232
  }
6223
6233
  var Cr = {}, yo;
6224
- function kd() {
6234
+ function wd() {
6225
6235
  if (yo) return Cr;
6226
6236
  yo = 1, Object.defineProperty(Cr, "__esModule", { value: !0 });
6227
6237
  var r = y(), a = t(r);
@@ -6358,7 +6368,7 @@ function kd() {
6358
6368
  ]), Cr;
6359
6369
  }
6360
6370
  var vr = {}, Mo;
6361
- function wd() {
6371
+ function Bd() {
6362
6372
  if (Mo) return vr;
6363
6373
  Mo = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
6364
6374
  var r = y(), a = t(r);
@@ -6402,7 +6412,7 @@ function wd() {
6402
6412
  ]), vr;
6403
6413
  }
6404
6414
  var Rr = {}, ko;
6405
- function Bd() {
6415
+ function Dd() {
6406
6416
  if (ko) return Rr;
6407
6417
  ko = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
6408
6418
  var r = y(), a = t(r);
@@ -6480,7 +6490,7 @@ function Bd() {
6480
6490
  ]), Rr;
6481
6491
  }
6482
6492
  var _r = {}, wo;
6483
- function Dd() {
6493
+ function Od() {
6484
6494
  if (wo) return _r;
6485
6495
  wo = 1, Object.defineProperty(_r, "__esModule", { value: !0 });
6486
6496
  var r = y(), a = t(r);
@@ -6557,7 +6567,7 @@ function Dd() {
6557
6567
  ]), _r;
6558
6568
  }
6559
6569
  var br = {}, Bo;
6560
- function Od() {
6570
+ function Ad() {
6561
6571
  if (Bo) return br;
6562
6572
  Bo = 1, Object.defineProperty(br, "__esModule", { value: !0 });
6563
6573
  var r = y(), a = t(r);
@@ -6589,7 +6599,7 @@ function Od() {
6589
6599
  ]), br;
6590
6600
  }
6591
6601
  var Hr = {}, Do;
6592
- function Ad() {
6602
+ function Ed() {
6593
6603
  if (Do) return Hr;
6594
6604
  Do = 1, Object.defineProperty(Hr, "__esModule", { value: !0 });
6595
6605
  var r = y(), a = t(r);
@@ -6675,7 +6685,7 @@ function Ad() {
6675
6685
  ]), Hr;
6676
6686
  }
6677
6687
  var yr = {}, Oo;
6678
- function Ed() {
6688
+ function Ld() {
6679
6689
  if (Oo) return yr;
6680
6690
  Oo = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
6681
6691
  var r = y(), a = t(r);
@@ -6761,7 +6771,7 @@ function Ed() {
6761
6771
  ]), yr;
6762
6772
  }
6763
6773
  var Mr = {}, Ao;
6764
- function Ld() {
6774
+ function Gd() {
6765
6775
  if (Ao) return Mr;
6766
6776
  Ao = 1, Object.defineProperty(Mr, "__esModule", { value: !0 });
6767
6777
  var r = y(), a = t(r);
@@ -6847,7 +6857,7 @@ function Ld() {
6847
6857
  ]), Mr;
6848
6858
  }
6849
6859
  var kr = {}, Eo;
6850
- function Gd() {
6860
+ function xd() {
6851
6861
  if (Eo) return kr;
6852
6862
  Eo = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
6853
6863
  var r = y(), a = t(r);
@@ -6933,7 +6943,7 @@ function Gd() {
6933
6943
  ]), kr;
6934
6944
  }
6935
6945
  var wr = {}, Lo;
6936
- function xd() {
6946
+ function Kd() {
6937
6947
  if (Lo) return wr;
6938
6948
  Lo = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
6939
6949
  var r = y(), a = t(r);
@@ -6974,7 +6984,7 @@ function xd() {
6974
6984
  ]), wr;
6975
6985
  }
6976
6986
  var Br = {}, Go;
6977
- function Kd() {
6987
+ function qd() {
6978
6988
  if (Go) return Br;
6979
6989
  Go = 1, Object.defineProperty(Br, "__esModule", { value: !0 });
6980
6990
  var r = y(), a = t(r);
@@ -7111,7 +7121,7 @@ function Kd() {
7111
7121
  ]), Br;
7112
7122
  }
7113
7123
  var Dr = {}, xo;
7114
- function qd() {
7124
+ function Nd() {
7115
7125
  if (xo) return Dr;
7116
7126
  xo = 1, Object.defineProperty(Dr, "__esModule", { value: !0 });
7117
7127
  var r = y(), a = t(r);
@@ -7248,7 +7258,7 @@ function qd() {
7248
7258
  ]), Dr;
7249
7259
  }
7250
7260
  var Or = {}, Ko;
7251
- function Nd() {
7261
+ function Wd() {
7252
7262
  if (Ko) return Or;
7253
7263
  Ko = 1, Object.defineProperty(Or, "__esModule", { value: !0 });
7254
7264
  var r = y(), a = t(r);
@@ -7385,7 +7395,7 @@ function Nd() {
7385
7395
  ]), Or;
7386
7396
  }
7387
7397
  var Ar = {}, qo;
7388
- function Wd() {
7398
+ function Ud() {
7389
7399
  if (qo) return Ar;
7390
7400
  qo = 1, Object.defineProperty(Ar, "__esModule", { value: !0 });
7391
7401
  var r = y(), a = t(r);
@@ -7502,7 +7512,7 @@ function Wd() {
7502
7512
  ]), Ar;
7503
7513
  }
7504
7514
  var Er = {}, No;
7505
- function Ud() {
7515
+ function zd() {
7506
7516
  if (No) return Er;
7507
7517
  No = 1, Object.defineProperty(Er, "__esModule", { value: !0 });
7508
7518
  var r = y(), a = t(r);
@@ -7584,7 +7594,7 @@ function Ud() {
7584
7594
  ]), Er;
7585
7595
  }
7586
7596
  var Lr = {}, Wo;
7587
- function zd() {
7597
+ function Fd() {
7588
7598
  if (Wo) return Lr;
7589
7599
  Wo = 1, Object.defineProperty(Lr, "__esModule", { value: !0 });
7590
7600
  var r = y(), a = t(r);
@@ -7693,7 +7703,7 @@ function zd() {
7693
7703
  ]), Lr;
7694
7704
  }
7695
7705
  var Gr = {}, Uo;
7696
- function Fd() {
7706
+ function Id() {
7697
7707
  if (Uo) return Gr;
7698
7708
  Uo = 1, Object.defineProperty(Gr, "__esModule", { value: !0 });
7699
7709
  var r = y(), a = t(r);
@@ -7733,7 +7743,7 @@ function Fd() {
7733
7743
  ]), Gr;
7734
7744
  }
7735
7745
  var xr = {}, zo;
7736
- function Id() {
7746
+ function Vd() {
7737
7747
  if (zo) return xr;
7738
7748
  zo = 1, Object.defineProperty(xr, "__esModule", { value: !0 });
7739
7749
  var r = y(), a = t(r);
@@ -7870,7 +7880,7 @@ function Id() {
7870
7880
  ]), xr;
7871
7881
  }
7872
7882
  var Kr = {}, Fo;
7873
- function Vd() {
7883
+ function jd() {
7874
7884
  if (Fo) return Kr;
7875
7885
  Fo = 1, Object.defineProperty(Kr, "__esModule", { value: !0 });
7876
7886
  var r = y(), a = t(r);
@@ -7916,7 +7926,7 @@ function Vd() {
7916
7926
  ]), Kr;
7917
7927
  }
7918
7928
  var qr = {}, Io;
7919
- function jd() {
7929
+ function Xd() {
7920
7930
  if (Io) return qr;
7921
7931
  Io = 1, Object.defineProperty(qr, "__esModule", { value: !0 });
7922
7932
  var r = y(), a = t(r);
@@ -7944,7 +7954,7 @@ function jd() {
7944
7954
  ]), qr;
7945
7955
  }
7946
7956
  var Nr = {}, Vo;
7947
- function Xd() {
7957
+ function Jd() {
7948
7958
  if (Vo) return Nr;
7949
7959
  Vo = 1, Object.defineProperty(Nr, "__esModule", { value: !0 });
7950
7960
  var r = y(), a = t(r);
@@ -8081,7 +8091,7 @@ function Xd() {
8081
8091
  ]), Nr;
8082
8092
  }
8083
8093
  var Wr = {}, jo;
8084
- function Jd() {
8094
+ function $d() {
8085
8095
  if (jo) return Wr;
8086
8096
  jo = 1, Object.defineProperty(Wr, "__esModule", { value: !0 });
8087
8097
  var r = y(), a = t(r);
@@ -8218,7 +8228,7 @@ function Jd() {
8218
8228
  ]), Wr;
8219
8229
  }
8220
8230
  var Ur = {}, Xo;
8221
- function $d() {
8231
+ function Yd() {
8222
8232
  if (Xo) return Ur;
8223
8233
  Xo = 1, Object.defineProperty(Ur, "__esModule", { value: !0 });
8224
8234
  var r = y(), a = t(r);
@@ -8355,7 +8365,7 @@ function $d() {
8355
8365
  ]), Ur;
8356
8366
  }
8357
8367
  var zr = {}, Jo;
8358
- function Yd() {
8368
+ function Qd() {
8359
8369
  if (Jo) return zr;
8360
8370
  Jo = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
8361
8371
  var r = y(), a = t(r);
@@ -8472,7 +8482,7 @@ function Yd() {
8472
8482
  ]), zr;
8473
8483
  }
8474
8484
  var Fr = {}, $o;
8475
- function Qd() {
8485
+ function Zd() {
8476
8486
  if ($o) return Fr;
8477
8487
  $o = 1, Object.defineProperty(Fr, "__esModule", { value: !0 });
8478
8488
  var r = y(), a = t(r);
@@ -8554,7 +8564,7 @@ function Qd() {
8554
8564
  ]), Fr;
8555
8565
  }
8556
8566
  var Ir = {}, Yo;
8557
- function Zd() {
8567
+ function em() {
8558
8568
  if (Yo) return Ir;
8559
8569
  Yo = 1, Object.defineProperty(Ir, "__esModule", { value: !0 });
8560
8570
  var r = y(), a = t(r);
@@ -8663,7 +8673,7 @@ function Zd() {
8663
8673
  ]), Ir;
8664
8674
  }
8665
8675
  var Vr = {}, Qo;
8666
- function em() {
8676
+ function rm() {
8667
8677
  if (Qo) return Vr;
8668
8678
  Qo = 1, Object.defineProperty(Vr, "__esModule", { value: !0 });
8669
8679
  var r = y(), a = t(r);
@@ -8709,7 +8719,7 @@ function em() {
8709
8719
  ]), Vr;
8710
8720
  }
8711
8721
  var jr = {}, Zo;
8712
- function rm() {
8722
+ function am() {
8713
8723
  if (Zo) return jr;
8714
8724
  Zo = 1, Object.defineProperty(jr, "__esModule", { value: !0 });
8715
8725
  var r = y(), a = t(r);
@@ -8781,7 +8791,7 @@ function rm() {
8781
8791
  ]), jr;
8782
8792
  }
8783
8793
  var Xr = {}, ei;
8784
- function am() {
8794
+ function tm() {
8785
8795
  if (ei) return Xr;
8786
8796
  ei = 1, Object.defineProperty(Xr, "__esModule", { value: !0 });
8787
8797
  var r = y(), a = t(r);
@@ -8870,7 +8880,7 @@ function am() {
8870
8880
  ]), Xr;
8871
8881
  }
8872
8882
  var Jr = {}, ri;
8873
- function tm() {
8883
+ function nm() {
8874
8884
  if (ri) return Jr;
8875
8885
  ri = 1, Object.defineProperty(Jr, "__esModule", { value: !0 });
8876
8886
  var r = y(), a = t(r);
@@ -8960,7 +8970,7 @@ function tm() {
8960
8970
  ]), Jr;
8961
8971
  }
8962
8972
  var $r = {}, ai;
8963
- function nm() {
8973
+ function om() {
8964
8974
  if (ai) return $r;
8965
8975
  ai = 1, Object.defineProperty($r, "__esModule", { value: !0 });
8966
8976
  var r = y(), a = t(r);
@@ -9049,7 +9059,7 @@ function nm() {
9049
9059
  ]), $r;
9050
9060
  }
9051
9061
  var Yr = {}, ti;
9052
- function om() {
9062
+ function im() {
9053
9063
  if (ti) return Yr;
9054
9064
  ti = 1, Object.defineProperty(Yr, "__esModule", { value: !0 });
9055
9065
  var r = y(), a = t(r);
@@ -9138,7 +9148,7 @@ function om() {
9138
9148
  ]), Yr;
9139
9149
  }
9140
9150
  var Qr = {}, ni;
9141
- function im() {
9151
+ function cm() {
9142
9152
  if (ni) return Qr;
9143
9153
  ni = 1, Object.defineProperty(Qr, "__esModule", { value: !0 });
9144
9154
  var r = y(), a = t(r);
@@ -9227,7 +9237,7 @@ function im() {
9227
9237
  ]), Qr;
9228
9238
  }
9229
9239
  var Zr = {}, oi;
9230
- function cm() {
9240
+ function sm() {
9231
9241
  if (oi) return Zr;
9232
9242
  oi = 1, Object.defineProperty(Zr, "__esModule", { value: !0 });
9233
9243
  var r = y(), a = t(r);
@@ -9316,7 +9326,7 @@ function cm() {
9316
9326
  ]), Zr;
9317
9327
  }
9318
9328
  var ea = {}, ii;
9319
- function sm() {
9329
+ function lm() {
9320
9330
  if (ii) return ea;
9321
9331
  ii = 1, Object.defineProperty(ea, "__esModule", { value: !0 });
9322
9332
  var r = y(), a = t(r);
@@ -9405,7 +9415,7 @@ function sm() {
9405
9415
  ]), ea;
9406
9416
  }
9407
9417
  var ra = {}, ci;
9408
- function lm() {
9418
+ function um() {
9409
9419
  if (ci) return ra;
9410
9420
  ci = 1, Object.defineProperty(ra, "__esModule", { value: !0 });
9411
9421
  var r = y(), a = t(r);
@@ -9494,7 +9504,7 @@ function lm() {
9494
9504
  ]), ra;
9495
9505
  }
9496
9506
  var aa = {}, si;
9497
- function um() {
9507
+ function Pm() {
9498
9508
  if (si) return aa;
9499
9509
  si = 1, Object.defineProperty(aa, "__esModule", { value: !0 });
9500
9510
  var r = y(), a = t(r);
@@ -9583,7 +9593,7 @@ function um() {
9583
9593
  ]), aa;
9584
9594
  }
9585
9595
  var ta = {}, li;
9586
- function Pm() {
9596
+ function dm() {
9587
9597
  if (li) return ta;
9588
9598
  li = 1, Object.defineProperty(ta, "__esModule", { value: !0 });
9589
9599
  var r = y(), a = t(r);
@@ -9673,7 +9683,7 @@ function Pm() {
9673
9683
  ]), ta;
9674
9684
  }
9675
9685
  var na = {}, ui;
9676
- function dm() {
9686
+ function mm() {
9677
9687
  if (ui) return na;
9678
9688
  ui = 1, Object.defineProperty(na, "__esModule", { value: !0 });
9679
9689
  var r = y(), a = t(r);
@@ -9704,7 +9714,7 @@ function dm() {
9704
9714
  ]), na;
9705
9715
  }
9706
9716
  var oa = {}, Pi;
9707
- function mm() {
9717
+ function pm() {
9708
9718
  if (Pi) return oa;
9709
9719
  Pi = 1, Object.defineProperty(oa, "__esModule", { value: !0 });
9710
9720
  var r = y(), a = t(r);
@@ -9769,7 +9779,7 @@ function mm() {
9769
9779
  ]), oa;
9770
9780
  }
9771
9781
  var ia = {}, di;
9772
- function pm() {
9782
+ function hm() {
9773
9783
  if (di) return ia;
9774
9784
  di = 1, Object.defineProperty(ia, "__esModule", { value: !0 });
9775
9785
  var r = y(), a = t(r);
@@ -9858,7 +9868,7 @@ function pm() {
9858
9868
  ]), ia;
9859
9869
  }
9860
9870
  var ca = {}, mi;
9861
- function hm() {
9871
+ function fm() {
9862
9872
  if (mi) return ca;
9863
9873
  mi = 1, Object.defineProperty(ca, "__esModule", { value: !0 });
9864
9874
  var r = y(), a = t(r);
@@ -9948,7 +9958,7 @@ function hm() {
9948
9958
  ]), ca;
9949
9959
  }
9950
9960
  var sa = {}, pi;
9951
- function fm() {
9961
+ function gm() {
9952
9962
  if (pi) return sa;
9953
9963
  pi = 1, Object.defineProperty(sa, "__esModule", { value: !0 });
9954
9964
  var r = y(), a = t(r);
@@ -10037,7 +10047,7 @@ function fm() {
10037
10047
  ]), sa;
10038
10048
  }
10039
10049
  var la = {}, hi;
10040
- function gm() {
10050
+ function Tm() {
10041
10051
  if (hi) return la;
10042
10052
  hi = 1, Object.defineProperty(la, "__esModule", { value: !0 });
10043
10053
  var r = y(), a = t(r);
@@ -10126,7 +10136,7 @@ function gm() {
10126
10136
  ]), la;
10127
10137
  }
10128
10138
  var ua = {}, fi;
10129
- function Tm() {
10139
+ function Sm() {
10130
10140
  if (fi) return ua;
10131
10141
  fi = 1, Object.defineProperty(ua, "__esModule", { value: !0 });
10132
10142
  var r = y(), a = t(r);
@@ -10215,7 +10225,7 @@ function Tm() {
10215
10225
  ]), ua;
10216
10226
  }
10217
10227
  var Pa = {}, gi;
10218
- function Sm() {
10228
+ function Cm() {
10219
10229
  if (gi) return Pa;
10220
10230
  gi = 1, Object.defineProperty(Pa, "__esModule", { value: !0 });
10221
10231
  var r = y(), a = t(r);
@@ -10304,7 +10314,7 @@ function Sm() {
10304
10314
  ]), Pa;
10305
10315
  }
10306
10316
  var da = {}, Ti;
10307
- function Cm() {
10317
+ function vm() {
10308
10318
  if (Ti) return da;
10309
10319
  Ti = 1, Object.defineProperty(da, "__esModule", { value: !0 });
10310
10320
  var r = y(), a = t(r);
@@ -10393,7 +10403,7 @@ function Cm() {
10393
10403
  ]), da;
10394
10404
  }
10395
10405
  var ma = {}, Si;
10396
- function vm() {
10406
+ function Rm() {
10397
10407
  if (Si) return ma;
10398
10408
  Si = 1, Object.defineProperty(ma, "__esModule", { value: !0 });
10399
10409
  var r = y(), a = t(r);
@@ -10482,7 +10492,7 @@ function vm() {
10482
10492
  ]), ma;
10483
10493
  }
10484
10494
  var pa = {}, Ci;
10485
- function Rm() {
10495
+ function _m() {
10486
10496
  if (Ci) return pa;
10487
10497
  Ci = 1, Object.defineProperty(pa, "__esModule", { value: !0 });
10488
10498
  var r = y(), a = t(r);
@@ -10571,7 +10581,7 @@ function Rm() {
10571
10581
  ]), pa;
10572
10582
  }
10573
10583
  var ha = {}, vi;
10574
- function _m() {
10584
+ function bm() {
10575
10585
  if (vi) return ha;
10576
10586
  vi = 1, Object.defineProperty(ha, "__esModule", { value: !0 });
10577
10587
  var r = y(), a = t(r);
@@ -10661,7 +10671,7 @@ function _m() {
10661
10671
  ]), ha;
10662
10672
  }
10663
10673
  var fa = {}, Ri;
10664
- function bm() {
10674
+ function Hm() {
10665
10675
  if (Ri) return fa;
10666
10676
  Ri = 1, Object.defineProperty(fa, "__esModule", { value: !0 });
10667
10677
  var r = y(), a = t(r);
@@ -10695,7 +10705,7 @@ function bm() {
10695
10705
  ]), fa;
10696
10706
  }
10697
10707
  var ga = {}, _i;
10698
- function Hm() {
10708
+ function ym() {
10699
10709
  if (_i) return ga;
10700
10710
  _i = 1, Object.defineProperty(ga, "__esModule", { value: !0 });
10701
10711
  var r = y(), a = t(r);
@@ -10832,7 +10842,7 @@ function Hm() {
10832
10842
  ]), ga;
10833
10843
  }
10834
10844
  var Ta = {}, bi;
10835
- function ym() {
10845
+ function Mm() {
10836
10846
  if (bi) return Ta;
10837
10847
  bi = 1, Object.defineProperty(Ta, "__esModule", { value: !0 });
10838
10848
  var r = y(), a = t(r);
@@ -10866,7 +10876,7 @@ function ym() {
10866
10876
  ]), Ta;
10867
10877
  }
10868
10878
  var Sa = {}, Hi;
10869
- function Mm() {
10879
+ function km() {
10870
10880
  if (Hi) return Sa;
10871
10881
  Hi = 1, Object.defineProperty(Sa, "__esModule", { value: !0 });
10872
10882
  var r = y(), a = t(r);
@@ -10903,7 +10913,7 @@ function Mm() {
10903
10913
  ]), Sa;
10904
10914
  }
10905
10915
  var Ca = {}, yi;
10906
- function km() {
10916
+ function wm() {
10907
10917
  if (yi) return Ca;
10908
10918
  yi = 1, Object.defineProperty(Ca, "__esModule", { value: !0 });
10909
10919
  var r = y(), a = t(r);
@@ -10975,7 +10985,7 @@ function km() {
10975
10985
  ]), Ca;
10976
10986
  }
10977
10987
  var va = {}, Mi;
10978
- function wm() {
10988
+ function Bm() {
10979
10989
  if (Mi) return va;
10980
10990
  Mi = 1, Object.defineProperty(va, "__esModule", { value: !0 });
10981
10991
  var r = y(), a = t(r);
@@ -11007,7 +11017,7 @@ function wm() {
11007
11017
  ]), va;
11008
11018
  }
11009
11019
  var Ra = {}, ki;
11010
- function Bm() {
11020
+ function Dm() {
11011
11021
  if (ki) return Ra;
11012
11022
  ki = 1, Object.defineProperty(Ra, "__esModule", { value: !0 });
11013
11023
  var r = y(), a = t(r);
@@ -11079,7 +11089,7 @@ function Bm() {
11079
11089
  ]), Ra;
11080
11090
  }
11081
11091
  var _a = {}, wi;
11082
- function Dm() {
11092
+ function Om() {
11083
11093
  if (wi) return _a;
11084
11094
  wi = 1, Object.defineProperty(_a, "__esModule", { value: !0 });
11085
11095
  var r = y(), a = t(r);
@@ -11160,7 +11170,7 @@ function Dm() {
11160
11170
  ]), _a;
11161
11171
  }
11162
11172
  var ba = {}, Bi;
11163
- function Om() {
11173
+ function Am() {
11164
11174
  if (Bi) return ba;
11165
11175
  Bi = 1, Object.defineProperty(ba, "__esModule", { value: !0 });
11166
11176
  var r = y(), a = t(r);
@@ -11231,7 +11241,7 @@ function Om() {
11231
11241
  ]), ba;
11232
11242
  }
11233
11243
  var Ha = {}, Di;
11234
- function Am() {
11244
+ function Em() {
11235
11245
  if (Di) return Ha;
11236
11246
  Di = 1, Object.defineProperty(Ha, "__esModule", { value: !0 });
11237
11247
  var r = y(), a = t(r);
@@ -11275,7 +11285,7 @@ function Am() {
11275
11285
  ]), Ha;
11276
11286
  }
11277
11287
  var ya = {}, Oi;
11278
- function Em() {
11288
+ function Lm() {
11279
11289
  if (Oi) return ya;
11280
11290
  Oi = 1, Object.defineProperty(ya, "__esModule", { value: !0 });
11281
11291
  var r = y(), a = t(r);
@@ -11346,7 +11356,7 @@ function Em() {
11346
11356
  ]), ya;
11347
11357
  }
11348
11358
  var Ma = {}, Ai;
11349
- function Lm() {
11359
+ function Gm() {
11350
11360
  if (Ai) return Ma;
11351
11361
  Ai = 1, Object.defineProperty(Ma, "__esModule", { value: !0 });
11352
11362
  var r = y(), a = t(r);
@@ -11392,7 +11402,7 @@ function Lm() {
11392
11402
  ]), Ma;
11393
11403
  }
11394
11404
  var ka = {}, Ei;
11395
- function Gm() {
11405
+ function xm() {
11396
11406
  if (Ei) return ka;
11397
11407
  Ei = 1, Object.defineProperty(ka, "__esModule", { value: !0 });
11398
11408
  var r = y(), a = t(r);
@@ -11422,7 +11432,7 @@ function Gm() {
11422
11432
  ]), ka;
11423
11433
  }
11424
11434
  var wa = {}, Li;
11425
- function xm() {
11435
+ function Km() {
11426
11436
  if (Li) return wa;
11427
11437
  Li = 1, Object.defineProperty(wa, "__esModule", { value: !0 });
11428
11438
  var r = y(), a = t(r);
@@ -11449,7 +11459,7 @@ function xm() {
11449
11459
  ]), wa;
11450
11460
  }
11451
11461
  var Ba = {}, Gi;
11452
- function Km() {
11462
+ function qm() {
11453
11463
  if (Gi) return Ba;
11454
11464
  Gi = 1, Object.defineProperty(Ba, "__esModule", { value: !0 });
11455
11465
  var r = y(), a = t(r);
@@ -11586,7 +11596,7 @@ function Km() {
11586
11596
  ]), Ba;
11587
11597
  }
11588
11598
  var Da = {}, xi;
11589
- function qm() {
11599
+ function Nm() {
11590
11600
  if (xi) return Da;
11591
11601
  xi = 1, Object.defineProperty(Da, "__esModule", { value: !0 });
11592
11602
  var r = y(), a = t(r);
@@ -11685,7 +11695,7 @@ function qm() {
11685
11695
  ]), Da;
11686
11696
  }
11687
11697
  var Oa = {}, Ki;
11688
- function Nm() {
11698
+ function Wm() {
11689
11699
  if (Ki) return Oa;
11690
11700
  Ki = 1, Object.defineProperty(Oa, "__esModule", { value: !0 });
11691
11701
  var r = y(), a = t(r);
@@ -11785,7 +11795,7 @@ var qi;
11785
11795
  function _c() {
11786
11796
  if (qi) return we;
11787
11797
  qi = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.getMapping = we.getStockNames = void 0;
11788
- var r = Rc(), a = ud(), t = k(a), e = Pd(), n = k(e), o = dd(), s = k(o), i = md(), c = k(i), l = pd(), h = k(l), u = hd(), p = k(u), d = fd(), m = k(d), f = gd(), v = k(f), x = Td(), A = k(x), R = Sd(), S = k(R), P = Cd(), C = k(P), T = vd(), _ = k(T), w = Rd(), K = k(w), F = _d(), j = k(F), ie = bd(), oe = k(ie), me = Hd(), Y = k(me), Z = yd(), pe = k(Z), ue = Md(), H = k(ue), M = kd(), U = k(M), q = wd(), N = k(q), D = Bd(), G = k(D), W = Dd(), I = k(W), z = Od(), V = k(z), re = Ad(), B = k(re), ae = Ed(), Ce = k(ae), fe = Ld(), qe = k(fe), Ne = Gd(), te = k(Ne), Pe = xd(), Ae = k(Pe), je = Kd(), We = k(je), ge = qd(), Ee = k(ge), $a = Nd(), Ya = k($a), Qa = Wd(), Za = k(Qa), et = Ud(), rt = k(et), Xe = zd(), Je = k(Xe), at = Fd(), $e = k(at), tt = Id(), g = k(tt), b = Vd(), E = k(b), X = jd(), ce = k(X), de = Xd(), ve = k(de), Me = Jd(), Le = k(Me), nt = $d(), He = k(nt), Ge = Yd(), Ye = k(Ge), yc = Qd(), Mc = k(yc), kc = Zd(), wc = k(kc), Bc = em(), Dc = k(Bc), Oc = rm(), Ac = k(Oc), Ec = am(), Lc = k(Ec), Gc = tm(), xc = k(Gc), Kc = nm(), qc = k(Kc), Nc = om(), Wc = k(Nc), Uc = im(), zc = k(Uc), Fc = cm(), Ic = k(Fc), Vc = sm(), jc = k(Vc), Xc = lm(), Jc = k(Xc), $c = um(), Yc = k($c), Qc = Pm(), Zc = k(Qc), es = dm(), rs = k(es), as = mm(), ts = k(as), ns = pm(), os = k(ns), is = hm(), cs = k(is), ss = fm(), ls = k(ss), us = gm(), Ps = k(us), ds = Tm(), ms = k(ds), ps = Sm(), hs = k(ps), fs = Cm(), gs = k(fs), Ts = vm(), Ss = k(Ts), Cs = Rm(), vs = k(Cs), Rs = _m(), _s = k(Rs), bs = bm(), Hs = k(bs), ys = Hm(), Ms = k(ys), ks = ym(), ws = k(ks), Bs = Mm(), Ds = k(Bs), Os = km(), As = k(Os), Es = wm(), Ls = k(Es), Gs = Bm(), xs = k(Gs), Ks = Dm(), qs = k(Ks), Ns = Om(), Ws = k(Ns), Us = Am(), zs = k(Us), Fs = Em(), Is = k(Fs), Vs = Lm(), js = k(Vs), Xs = Gm(), Js = k(Xs), $s = xm(), Ys = k($s), Qs = Km(), Zs = k(Qs), el = qm(), rl = k(el), al = Nm(), tl = k(al);
11798
+ var r = Rc(), a = Pd(), t = k(a), e = dd(), n = k(e), o = md(), s = k(o), i = pd(), c = k(i), l = hd(), h = k(l), u = fd(), p = k(u), d = gd(), m = k(d), f = Td(), v = k(f), x = Sd(), A = k(x), R = Cd(), S = k(R), P = vd(), C = k(P), T = Rd(), _ = k(T), w = _d(), K = k(w), F = bd(), j = k(F), ie = Hd(), oe = k(ie), me = yd(), Y = k(me), Z = Md(), pe = k(Z), ue = kd(), H = k(ue), M = wd(), U = k(M), q = Bd(), N = k(q), D = Dd(), G = k(D), W = Od(), I = k(W), z = Ad(), V = k(z), re = Ed(), B = k(re), ae = Ld(), ve = k(ae), ge = Gd(), qe = k(ge), Ne = xd(), te = k(Ne), Pe = Kd(), Ae = k(Pe), je = qd(), We = k(je), Te = Nd(), Ee = k(Te), $a = Wd(), Ya = k($a), Qa = Ud(), Za = k(Qa), et = zd(), rt = k(et), Xe = Fd(), Je = k(Xe), at = Id(), $e = k(at), tt = Vd(), g = k(tt), b = jd(), E = k(b), X = Xd(), ce = k(X), de = Jd(), Re = k(de), Me = $d(), Le = k(Me), nt = Yd(), He = k(nt), Ge = Qd(), Ye = k(Ge), yc = Zd(), Mc = k(yc), kc = em(), wc = k(kc), Bc = rm(), Dc = k(Bc), Oc = am(), Ac = k(Oc), Ec = tm(), Lc = k(Ec), Gc = nm(), xc = k(Gc), Kc = om(), qc = k(Kc), Nc = im(), Wc = k(Nc), Uc = cm(), zc = k(Uc), Fc = sm(), Ic = k(Fc), Vc = lm(), jc = k(Vc), Xc = um(), Jc = k(Xc), $c = Pm(), Yc = k($c), Qc = dm(), Zc = k(Qc), es = mm(), rs = k(es), as = pm(), ts = k(as), ns = hm(), os = k(ns), is = fm(), cs = k(is), ss = gm(), ls = k(ss), us = Tm(), Ps = k(us), ds = Sm(), ms = k(ds), ps = Cm(), hs = k(ps), fs = vm(), gs = k(fs), Ts = Rm(), Ss = k(Ts), Cs = _m(), vs = k(Cs), Rs = bm(), _s = k(Rs), bs = Hm(), Hs = k(bs), ys = ym(), Ms = k(ys), ks = Mm(), ws = k(ks), Bs = km(), Ds = k(Bs), Os = wm(), As = k(Os), Es = Bm(), Ls = k(Es), Gs = Dm(), xs = k(Gs), Ks = Om(), qs = k(Ks), Ns = Am(), Ws = k(Ns), Us = Em(), zs = k(Us), Fs = Lm(), Is = k(Fs), Vs = Gm(), js = k(Vs), Xs = xm(), Js = k(Xs), $s = Km(), Ys = k($s), Qs = qm(), Zs = k(Qs), el = Nm(), rl = k(el), al = Wm(), tl = k(al);
11789
11799
  function k(xe) {
11790
11800
  return xe && xe.__esModule ? xe : { default: xe };
11791
11801
  }
@@ -11931,7 +11941,7 @@ function _c() {
11931
11941
  case "Roland TD-10 Perc 1":
11932
11942
  return B.default;
11933
11943
  case "Roland TD-10 Perc 2":
11934
- return Ce.default;
11944
+ return ve.default;
11935
11945
  case "Roland TD-10 Perc 3":
11936
11946
  return qe.default;
11937
11947
  case "Roland TD-10 Perc 4":
@@ -11959,7 +11969,7 @@ function _c() {
11959
11969
  case "Roland TD-3":
11960
11970
  return ce.default;
11961
11971
  case "Roland TD-30 Perc 1 (Latin)":
11962
- return ve.default;
11972
+ return Re.default;
11963
11973
  case "Roland TD-30 Perc 2 (Indian)":
11964
11974
  return Le.default;
11965
11975
  case "Roland TD-30 Perc 3 (African)":
@@ -12058,7 +12068,7 @@ function _c() {
12058
12068
  }, we;
12059
12069
  }
12060
12070
  var Ni;
12061
- function Wm() {
12071
+ function Um() {
12062
12072
  return Ni || (Ni = 1, function(r) {
12063
12073
  Object.defineProperty(r, "__esModule", { value: !0 });
12064
12074
  var a = _c();
@@ -12107,8 +12117,8 @@ function Wm() {
12107
12117
  };
12108
12118
  }(Gt)), Gt;
12109
12119
  }
12110
- var Wa = Wm();
12111
- const m1 = Se(({ allowClearing: r, ...a }, t) => {
12120
+ var Wa = Um();
12121
+ const f1 = fe(({ allowClearing: r, ...a }, t) => {
12112
12122
  const e = Wa.getStockNames(), n = Wa.getUserMappingNames(), o = Be(() => [
12113
12123
  ...r ? [
12114
12124
  {
@@ -12132,17 +12142,17 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12132
12142
  }
12133
12143
  ], [r, e, n]);
12134
12144
  return /* @__PURE__ */ O(
12135
- _e,
12145
+ Ce,
12136
12146
  {
12137
12147
  ...a,
12138
12148
  options: o,
12139
12149
  ref: t
12140
12150
  }
12141
12151
  );
12142
- }), { midiToNoteName: Um } = Tu, zm = ({ note: r, name: a }) => `${r} ${a.length ? "-" : ""} ${a}`, Wi = (r, a) => ({
12152
+ }), { midiToNoteName: zm } = vu, Fm = ({ note: r, name: a }) => `${r} ${a.length ? "-" : ""} ${a}`, Wi = (r, a) => ({
12143
12153
  label: r,
12144
12154
  value: a + 1
12145
- }), p1 = Se((r, a) => {
12155
+ }), g1 = fe((r, a) => {
12146
12156
  const {
12147
12157
  channel: t,
12148
12158
  disabled: e = !1,
@@ -12151,16 +12161,16 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12151
12161
  onChange: s,
12152
12162
  value: i,
12153
12163
  ...c
12154
- } = r, l = Be(() => n ? Wa.emptyMapping().map(({ note: d }) => `${Um(d, { sharps: !1 }).replace("b", "♭").replace("#", "♯")} (#${d})`).map(Wi) : (o || Wa.emptyMapping()).map(zm).map(Wi), [n, o]), [h, u] = rn(i), p = Re(
12164
+ } = r, l = Be(() => n ? Wa.emptyMapping().map(({ note: d }) => `${zm(d, { sharps: !1 }).replace("b", "♭").replace("#", "♯")} (#${d})`).map(Wi) : (o || Wa.emptyMapping()).map(Fm).map(Wi), [n, o]), [h, u] = rn(i), p = _e(
12155
12165
  (d) => {
12156
12166
  if (typeof d == "string") return;
12157
- const m = Na(d, 128, 0);
12167
+ const m = Ga(d, 128, 0);
12158
12168
  m > 0 && s(m), u(d);
12159
12169
  },
12160
12170
  [s, u]
12161
12171
  );
12162
12172
  return /* @__PURE__ */ O(
12163
- _e,
12173
+ Ce,
12164
12174
  {
12165
12175
  ...c,
12166
12176
  disabled: e,
@@ -12170,8 +12180,8 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12170
12180
  value: h
12171
12181
  }
12172
12182
  );
12173
- }), bc = 21, Hc = 108, Fm = Hc - bc - 1, Im = Fm * 0.7, Vm = new window.AudioContext(), jm = ({ height: r, width: a, ...t }) => {
12174
- const n = (a / Im + 2) / r;
12183
+ }), bc = 21, Hc = 108, Im = Hc - bc - 1, Vm = Im * 0.7, jm = new window.AudioContext(), Xm = ({ height: r, width: a, ...t }) => {
12184
+ const n = (a / Vm + 2) / r;
12175
12185
  return /* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
12176
12186
  Zt,
12177
12187
  {
@@ -12181,7 +12191,7 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12181
12191
  ...t
12182
12192
  }
12183
12193
  ) });
12184
- }, h1 = ({
12194
+ }, T1 = ({
12185
12195
  format: r,
12186
12196
  height: a,
12187
12197
  hostname: t,
@@ -12196,14 +12206,14 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12196
12206
  }) => /* @__PURE__ */ O(
12197
12207
  Cc,
12198
12208
  {
12199
- audioContext: Vm,
12209
+ audioContext: jm,
12200
12210
  format: r,
12201
12211
  hostname: t,
12202
12212
  instrumentName: e,
12203
12213
  onChange: n,
12204
12214
  soundfont: l,
12205
12215
  render: ({ isLoading: u, playNote: p, stopNote: d }) => /* @__PURE__ */ O(
12206
- jm,
12216
+ Xm,
12207
12217
  {
12208
12218
  disabled: u,
12209
12219
  height: a,
@@ -12217,8 +12227,8 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12217
12227
  }
12218
12228
  )
12219
12229
  }
12220
- ), f1 = Se(({ labelOff: r = "Normally Off", labelOn: a = "Normally On", ...t }, e) => /* @__PURE__ */ O(
12221
- _e,
12230
+ ), S1 = fe(({ labelOff: r = "Normally Off", labelOn: a = "Normally On", ...t }, e) => /* @__PURE__ */ O(
12231
+ Ce,
12222
12232
  {
12223
12233
  ...t,
12224
12234
  options: [
@@ -12233,10 +12243,10 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12233
12243
  } : {
12234
12244
  width: 0,
12235
12245
  height: 0
12236
- }, Xm = (r) => {
12237
- const [a, t] = Te(
12246
+ }, Jm = (r) => {
12247
+ const [a, t] = Se(
12238
12248
  Ui(r ? r.current : null)
12239
- ), e = Re(() => {
12249
+ ), e = _e(() => {
12240
12250
  r.current && t(Ui(r.current));
12241
12251
  }, [r]);
12242
12252
  return ul(() => {
@@ -12254,7 +12264,7 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12254
12264
  };
12255
12265
  }
12256
12266
  }, [r.current]), a;
12257
- }, Ua = 20, xt = 15, Ke = Ua, Aa = Ua, Jm = (r) => {
12267
+ }, Ua = 20, xt = 15, Ke = Ua, Aa = Ua, $m = (r) => {
12258
12268
  const {
12259
12269
  Tooltip: a = Fi,
12260
12270
  autosize: t,
@@ -12262,7 +12272,7 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12262
12272
  inverted: n,
12263
12273
  onChange: o,
12264
12274
  value: s
12265
- } = r, i = Fe(null), c = Fe(null), { height: l, width: h } = Xm(i), u = t && h || 218, p = t && l || 150, d = u - Ua, m = p - Ua, f = u / 2, v = p / 2, x = { ref: c }, A = zi.map(
12275
+ } = r, i = Fe(null), c = Fe(null), { height: l, width: h } = Jm(i), u = t && h || 218, p = t && l || 150, d = u - Ua, m = p - Ua, f = u / 2, v = p / 2, x = { ref: c }, A = zi.map(
12266
12276
  // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
12267
12277
  ({ value: R, label: S }) => {
12268
12278
  let P = 0, C = 0, T = Ke, _ = n ? Aa : m, w = d, K = n ? m : Aa, F = f, j = v;
@@ -12412,22 +12422,22 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12412
12422
  ] })
12413
12423
  }
12414
12424
  );
12415
- }, g1 = Se((r, a) => {
12425
+ }, C1 = fe((r, a) => {
12416
12426
  const {
12417
12427
  Tooltip: t = Fi,
12418
12428
  inverted: e = !1,
12419
12429
  onChange: n,
12420
12430
  value: o,
12421
12431
  ...s
12422
- } = r, i = Re(
12432
+ } = r, i = _e(
12423
12433
  () => {
12424
12434
  var l;
12425
- return /* @__PURE__ */ O("div", { className: "singleValue", children: (l = zP("value", o)(zi)) == null ? void 0 : l.label });
12435
+ return /* @__PURE__ */ O("div", { className: "singleValue", children: (l = pl("value", o)(zi)) == null ? void 0 : l.label });
12426
12436
  },
12427
12437
  [o]
12428
- ), c = Re(
12438
+ ), c = _e(
12429
12439
  ({ setValue: l }) => /* @__PURE__ */ O(
12430
- Jm,
12440
+ $m,
12431
12441
  {
12432
12442
  autosize: !0,
12433
12443
  inverted: e,
@@ -12441,7 +12451,7 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12441
12451
  [t, e, n, o]
12442
12452
  );
12443
12453
  return /* @__PURE__ */ O(
12444
- _e,
12454
+ Ce,
12445
12455
  {
12446
12456
  ...s,
12447
12457
  components: {
@@ -12454,14 +12464,14 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12454
12464
  value: o
12455
12465
  }
12456
12466
  );
12457
- }), T1 = Se(({ statuses: r, ...a }, t) => /* @__PURE__ */ O(
12458
- _e,
12467
+ }), v1 = fe(({ statuses: r, ...a }, t) => /* @__PURE__ */ O(
12468
+ Ce,
12459
12469
  {
12460
12470
  ...a,
12461
12471
  options: r,
12462
12472
  ref: t
12463
12473
  }
12464
- )), S1 = Se((r, a) => {
12474
+ )), R1 = fe((r, a) => {
12465
12475
  const {
12466
12476
  disabled: t,
12467
12477
  highToLow: e,
@@ -12471,16 +12481,16 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12471
12481
  value: i = 0,
12472
12482
  ...c
12473
12483
  } = r, l = Be(() => {
12474
- const d = Ja(n - o + 1).map((m) => o + m).map((m) => ({ value: m, label: m }));
12484
+ const d = za(n - o + 1).map((m) => o + m).map((m) => ({ value: m, label: m }));
12475
12485
  return e ? d.reverse() : d;
12476
- }, [e, n, o]), [h, u] = rn(i), p = Re(
12486
+ }, [e, n, o]), [h, u] = rn(i), p = _e(
12477
12487
  (d) => {
12478
- s(Na(d, n, o)), u(Number.parseInt(String(d), 10));
12488
+ s(Ga(d, n, o)), u(Number.parseInt(String(d), 10));
12479
12489
  },
12480
12490
  [n, o, s, u]
12481
12491
  );
12482
12492
  return /* @__PURE__ */ O(
12483
- _e,
12493
+ Ce,
12484
12494
  {
12485
12495
  ...c,
12486
12496
  disabled: t,
@@ -12492,32 +12502,39 @@ const m1 = Se(({ allowClearing: r, ...a }, t) => {
12492
12502
  );
12493
12503
  });
12494
12504
  export {
12495
- l1 as ChannelMappingPicker,
12496
- u1 as ChannelPicker,
12505
+ P1 as CCPicker,
12506
+ d1 as ChannelMappingPicker,
12507
+ m1 as ChannelPicker,
12497
12508
  Fi as DefaultTooltip,
12498
- cd as Knob,
12499
- P1 as KnobPicker,
12500
- d1 as LatchPicker,
12501
- pl as MASK_CHANNEL,
12502
- hl as MASK_STATUS,
12509
+ sd as Knob,
12510
+ p1 as KnobPicker,
12511
+ h1 as LatchPicker,
12512
+ gl as MASK_CHANNEL,
12513
+ Tl as MASK_STATUS,
12503
12514
  $n as MEASUREMENT_ELEMENT_ID,
12504
- m1 as MappingPicker,
12505
- p1 as NotePicker,
12506
- s1 as OctavePlayer,
12507
- h1 as PianoPicker,
12508
- f1 as PolarityPicker,
12509
- Jm as ResponseCurve,
12510
- g1 as ResponseCurvePicker,
12511
- _e as Select,
12512
- T1 as StatusPicker,
12515
+ f1 as MappingPicker,
12516
+ g1 as NotePicker,
12517
+ u1 as OctavePlayer,
12518
+ T1 as PianoPicker,
12519
+ S1 as PolarityPicker,
12520
+ $m as ResponseCurve,
12521
+ C1 as ResponseCurvePicker,
12522
+ Ce as Select,
12523
+ v1 as StatusPicker,
12513
12524
  ke as Statuses,
12514
12525
  Yn as SvgText,
12515
- S1 as ValuePicker,
12516
- n1 as changeControllerOptions,
12517
- i1 as combineStatusWithChannel,
12518
- c1 as extractStatusAndChannel,
12519
- o1 as getStatusLabel,
12526
+ R1 as ValuePicker,
12527
+ za as arraySequence,
12528
+ Ga as assertRange,
12529
+ fl as changeControllerOptions,
12530
+ s1 as combineStatusWithChannel,
12531
+ l1 as extractStatusAndChannel,
12532
+ pl as findObj,
12533
+ c1 as getStatusLabel,
12534
+ hl as omit,
12535
+ o1 as pick,
12520
12536
  zi as responseCurves,
12521
- fl as statusOptions
12537
+ i1 as set,
12538
+ Sl as statusOptions
12522
12539
  };
12523
12540
  //# sourceMappingURL=index.es.js.map