Skip to content

Commit 55a0c91

Browse files
New build merging samhirtarif#137
1 parent 39523ff commit 55a0c91

File tree

5 files changed

+264
-887
lines changed

5 files changed

+264
-887
lines changed

dist/react-audio-visualize.es-e598a679.js renamed to dist/react-audio-visualize.es-35e44496.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ var ie = { exports: {} }, A = {};
99
* This source code is licensed under the MIT license found in the
1010
* LICENSE file in the root directory of this source tree.
1111
*/
12-
var xe;
12+
var $e;
1313
function dr() {
14-
if (xe)
14+
if ($e)
1515
return A;
16-
xe = 1;
16+
$e = 1;
1717
var p = Pe, y = Symbol.for("react.element"), O = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, g = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
1818
function S(i, s, d) {
1919
var a, o = {}, h = null, j = null;
@@ -40,11 +40,11 @@ var G = {};
4040
var Ne;
4141
function vr() {
4242
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
43-
var p = Pe, y = Symbol.for("react.element"), O = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, R = "@@iterator";
43+
var p = Pe, y = Symbol.for("react.element"), O = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), x = Symbol.iterator, R = "@@iterator";
4444
function P(e) {
4545
if (e === null || typeof e != "object")
4646
return null;
47-
var r = $ && e[$] || e[R];
47+
var r = x && e[x] || e[R];
4848
return typeof r == "function" ? r : null;
4949
}
5050
var m = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -192,7 +192,7 @@ function vr() {
192192
}
193193
}
194194
var K = m.ReactCurrentDispatcher, Q;
195-
function q(e, r, t) {
195+
function Y(e, r, t) {
196196
{
197197
if (Q === void 0)
198198
try {
@@ -205,16 +205,16 @@ function vr() {
205205
` + Q + e;
206206
}
207207
}
208-
var Z = !1, Y;
208+
var Z = !1, q;
209209
{
210210
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
211-
Y = new Ae();
211+
q = new Ae();
212212
}
213213
function ge(e, r) {
214214
if (!e || Z)
215215
return "";
216216
{
217-
var t = Y.get(e);
217+
var t = q.get(e);
218218
if (t !== void 0)
219219
return t;
220220
}
@@ -267,9 +267,9 @@ function vr() {
267267
if (w !== 1 || k !== 1)
268268
do
269269
if (w--, k--, k < 0 || c[w] !== C[k]) {
270-
var x = `
270+
var $ = `
271271
` + c[w].replace(" at new ", " at ");
272-
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, x), x;
272+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, $), $;
273273
}
274274
while (w >= 1 && k >= 0);
275275
break;
@@ -278,8 +278,8 @@ function vr() {
278278
} finally {
279279
Z = !1, K.current = v, Me(), Error.prepareStackTrace = f;
280280
}
281-
var W = e ? e.displayName || e.name : "", $e = W ? q(W) : "";
282-
return typeof e == "function" && Y.set(e, $e), $e;
281+
var W = e ? e.displayName || e.name : "", xe = W ? Y(W) : "";
282+
return typeof e == "function" && q.set(e, xe), xe;
283283
}
284284
function Be(e, r, t) {
285285
return ge(e, !1);
@@ -294,12 +294,12 @@ function vr() {
294294
if (typeof e == "function")
295295
return ge(e, Ve(e));
296296
if (typeof e == "string")
297-
return q(e);
297+
return Y(e);
298298
switch (e) {
299299
case d:
300-
return q("Suspense");
300+
return Y("Suspense");
301301
case a:
302-
return q("SuspenseList");
302+
return Y("SuspenseList");
303303
}
304304
if (typeof e == "object")
305305
switch (e.$$typeof) {
@@ -325,7 +325,7 @@ function vr() {
325325
} else
326326
be.setExtraStackFrame(null);
327327
}
328-
function qe(e, r, t, n, f) {
328+
function Ye(e, r, t, n, f) {
329329
{
330330
var v = Function.call.bind(J);
331331
for (var u in e)
@@ -344,9 +344,9 @@ function vr() {
344344
}
345345
}
346346
}
347-
var Ye = Array.isArray;
347+
var qe = Array.isArray;
348348
function ee(e) {
349-
return Ye(e);
349+
return qe(e);
350350
}
351351
function He(e) {
352352
{
@@ -563,7 +563,7 @@ Check the top-level render call using <` + t + ">.");
563563
return;
564564
if (t) {
565565
var n = F(r);
566-
qe(t, e.props, "prop", n, e);
566+
Ye(t, e.props, "prop", n, e);
567567
} else if (r.PropTypes !== void 0 && !ne) {
568568
ne = !0;
569569
var f = F(r);
@@ -599,17 +599,17 @@ Check the top-level render call using <` + t + ">.");
599599
if (k == null)
600600
return k;
601601
if (u) {
602-
var x = r.children;
603-
if (x !== void 0)
602+
var $ = r.children;
603+
if ($ !== void 0)
604604
if (n)
605-
if (ee(x)) {
606-
for (var W = 0; W < x.length; W++)
607-
Ce(x[W], e);
608-
Object.freeze && Object.freeze(x);
605+
if (ee($)) {
606+
for (var W = 0; W < $.length; W++)
607+
Ce($[W], e);
608+
Object.freeze && Object.freeze($);
609609
} else
610610
l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611611
else
612-
Ce(x, e);
612+
Ce($, e);
613613
}
614614
return e === b ? ir(k) : ar(k), k;
615615
}
@@ -657,14 +657,14 @@ const mr = (p, y, O, b) => {
657657
minDecibels: d = -90,
658658
smoothingTimeConstant: a = 0.4
659659
}) => {
660-
const [o, h] = B(), [j, $] = B(), [R, P] = B(), m = Fe(null);
660+
const [o, h] = B(), [j, x] = B(), [R, P] = B(), m = Fe(null);
661661
V(() => {
662662
if (!p.stream)
663663
return;
664664
const D = new AudioContext(), N = D.createAnalyser();
665665
P(N), N.fftSize = i, N.minDecibels = d, N.maxDecibels = s, N.smoothingTimeConstant = a;
666666
const z = D.createMediaStreamSource(p.stream);
667-
return z.connect(N), h(D), $(z), () => {
667+
return z.connect(N), h(D), x(z), () => {
668668
z.disconnect(), N.disconnect(), D.state !== "closed" && D.close();
669669
};
670670
}, [p.stream]), V(() => {
@@ -714,13 +714,13 @@ const mr = (p, y, O, b) => {
714714
for (let o = 0; o < S; o++) {
715715
const h = [];
716716
let j = 0;
717-
const $ = [];
717+
const x = [];
718718
let R = 0;
719719
for (let l = 0; l < i && o * i + l < p.length; l++) {
720720
const E = _[o * i + l];
721-
E <= 0 && (h.push(E), j++), E > 0 && ($.push(E), R++);
721+
E <= 0 && (h.push(E), j++), E > 0 && (x.push(E), R++);
722722
}
723-
const P = h.reduce((l, E) => l + E, 0) / j, m = { max: $.reduce((l, E) => l + E, 0) / R, min: P };
723+
const P = h.reduce((l, E) => l + E, 0) / j, m = { max: x.reduce((l, E) => l + E, 0) / R, min: P };
724724
m.max > a && (a = m.max), Math.abs(m.min) > a && (a = Math.abs(m.min)), d.push(m);
725725
}
726726
if (s * 0.8 > a * s) {
@@ -738,7 +738,7 @@ const mr = (p, y, O, b) => {
738738
a.clearRect(0, 0, y.width, y.height), g !== "transparent" && (a.fillStyle = g, a.fillRect(0, 0, y.width, y.height));
739739
const o = (i || 0) / s;
740740
p.forEach((h, j) => {
741-
const $ = j / p.length, R = o > $;
741+
const x = j / p.length, R = o > x;
742742
a.fillStyle = R && S ? S : _;
743743
const P = j * (O + b), m = d + h.min, l = O, E = d + h.max - m;
744744
a.beginPath(), a.roundRect ? (a.roundRect(P, m, l, E, 50), a.fill()) : a.fillRect(P, m, l, E);
@@ -756,7 +756,7 @@ const mr = (p, y, O, b) => {
756756
barColor: s = "rgb(184, 184, 184)",
757757
barPlayedColor: d = "rgb(160, 198, 255)"
758758
}, a) => {
759-
const o = Fe(null), [h, j] = B([]), [$, R] = B(0);
759+
const o = Fe(null), [h, j] = B([]), [x, R] = B(0);
760760
return yr(
761761
a,
762762
() => o.current,
@@ -814,9 +814,9 @@ const mr = (p, y, O, b) => {
814814
s,
815815
d,
816816
_,
817-
$
817+
x
818818
);
819-
}, [_, $]), /* @__PURE__ */ Ie.jsx(
819+
}, [_, x]), /* @__PURE__ */ Ie.jsx(
820820
"canvas",
821821
{
822822
ref: o,

0 commit comments

Comments
 (0)