@94ai/nf-audio 3.3.38 → 3.3.39

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.
@@ -1,867 +1,16 @@
1
1
  import { ref, watch, onUnmounted } from "vue-demi";
2
2
  import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
3
3
  import { Message } from "element-ui";
4
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
5
- function getDefaultExportFromCjs(x) {
6
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7
- }
8
- var check = function(it) {
9
- return it && it.Math === Math && it;
10
- };
11
- var global$d = (
12
- // eslint-disable-next-line es/no-global-this -- safe
13
- check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
14
- check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
15
- function() {
16
- return this;
17
- }() || commonjsGlobal || Function("return this")()
18
- );
19
- var fails$9 = function(exec2) {
20
- try {
21
- return !!exec2();
22
- } catch (error) {
23
- return true;
24
- }
25
- };
26
- var fails$8 = fails$9;
27
- var functionBindNative = !fails$8(function() {
28
- var test2 = (function() {
29
- }).bind();
30
- return typeof test2 != "function" || test2.hasOwnProperty("prototype");
31
- });
32
- var NATIVE_BIND$3 = functionBindNative;
33
- var FunctionPrototype$1 = Function.prototype;
34
- var apply$2 = FunctionPrototype$1.apply;
35
- var call$6 = FunctionPrototype$1.call;
36
- var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$3 ? call$6.bind(apply$2) : function() {
37
- return call$6.apply(apply$2, arguments);
38
- });
39
- var NATIVE_BIND$2 = functionBindNative;
40
- var FunctionPrototype = Function.prototype;
41
- var call$5 = FunctionPrototype.call;
42
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype.bind.bind(call$5, call$5);
43
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function(fn) {
44
- return function() {
45
- return call$5.apply(fn, arguments);
46
- };
47
- };
48
- var uncurryThis$c = functionUncurryThis;
49
- var toString$4 = uncurryThis$c({}.toString);
50
- var stringSlice = uncurryThis$c("".slice);
51
- var classofRaw$2 = function(it) {
52
- return stringSlice(toString$4(it), 8, -1);
53
- };
54
- var classofRaw$1 = classofRaw$2;
55
- var uncurryThis$b = functionUncurryThis;
56
- var functionUncurryThisClause = function(fn) {
57
- if (classofRaw$1(fn) === "Function")
58
- return uncurryThis$b(fn);
59
- };
60
- var documentAll$2 = typeof document == "object" && document.all;
61
- var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
62
- var documentAll_1 = {
63
- all: documentAll$2,
64
- IS_HTMLDDA
65
- };
66
- var $documentAll$1 = documentAll_1;
67
- var documentAll$1 = $documentAll$1.all;
68
- var isCallable$9 = $documentAll$1.IS_HTMLDDA ? function(argument) {
69
- return typeof argument == "function" || argument === documentAll$1;
70
- } : function(argument) {
71
- return typeof argument == "function";
72
- };
73
- var objectGetOwnPropertyDescriptor = {};
74
- var fails$7 = fails$9;
75
- var descriptors = !fails$7(function() {
76
- return Object.defineProperty({}, 1, {
77
- get: function() {
78
- return 7;
79
- }
80
- })[1] !== 7;
81
- });
82
- var NATIVE_BIND$1 = functionBindNative;
83
- var call$4 = Function.prototype.call;
84
- var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
85
- return call$4.apply(call$4, arguments);
86
- };
87
- var objectPropertyIsEnumerable = {};
88
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
89
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
90
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
91
- 1: 2
92
- }, 1);
93
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
94
- var descriptor = getOwnPropertyDescriptor$1(this, V);
95
- return !!descriptor && descriptor.enumerable;
96
- } : $propertyIsEnumerable;
97
- var createPropertyDescriptor$2 = function(bitmap, value) {
98
- return {
99
- enumerable: !(bitmap & 1),
100
- configurable: !(bitmap & 2),
101
- writable: !(bitmap & 4),
102
- value
103
- };
104
- };
105
- var uncurryThis$a = functionUncurryThis;
106
- var fails$6 = fails$9;
107
- var classof$2 = classofRaw$2;
108
- var $Object$3 = Object;
109
- var split = uncurryThis$a("".split);
110
- var indexedObject = fails$6(function() {
111
- return !$Object$3("z").propertyIsEnumerable(0);
112
- }) ? function(it) {
113
- return classof$2(it) === "String" ? split(it, "") : $Object$3(it);
114
- } : $Object$3;
115
- var isNullOrUndefined$2 = function(it) {
116
- return it === null || it === void 0;
117
- };
118
- var isNullOrUndefined$1 = isNullOrUndefined$2;
119
- var $TypeError$6 = TypeError;
120
- var requireObjectCoercible$3 = function(it) {
121
- if (isNullOrUndefined$1(it))
122
- throw new $TypeError$6("Can't call method on " + it);
123
- return it;
124
- };
125
- var IndexedObject$1 = indexedObject;
126
- var requireObjectCoercible$2 = requireObjectCoercible$3;
127
- var toIndexedObject$3 = function(it) {
128
- return IndexedObject$1(requireObjectCoercible$2(it));
129
- };
130
- var isCallable$8 = isCallable$9;
131
- var $documentAll = documentAll_1;
132
- var documentAll = $documentAll.all;
133
- var isObject$4 = $documentAll.IS_HTMLDDA ? function(it) {
134
- return typeof it == "object" ? it !== null : isCallable$8(it) || it === documentAll;
135
- } : function(it) {
136
- return typeof it == "object" ? it !== null : isCallable$8(it);
137
- };
138
- var path$5 = {};
139
- var path$4 = path$5;
140
- var global$c = global$d;
141
- var isCallable$7 = isCallable$9;
142
- var aFunction = function(variable) {
143
- return isCallable$7(variable) ? variable : void 0;
144
- };
145
- var getBuiltIn$1 = function(namespace, method) {
146
- return arguments.length < 2 ? aFunction(path$4[namespace]) || aFunction(global$c[namespace]) : path$4[namespace] && path$4[namespace][method] || global$c[namespace] && global$c[namespace][method];
147
- };
148
- var uncurryThis$9 = functionUncurryThis;
149
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
150
- var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
151
- var global$b = global$d;
152
- var userAgent = engineUserAgent;
153
- var process = global$b.process;
154
- var Deno = global$b.Deno;
155
- var versions = process && process.versions || Deno && Deno.version;
156
- var v8 = versions && versions.v8;
157
- var match, version;
158
- if (v8) {
159
- match = v8.split(".");
160
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
161
- }
162
- if (!version && userAgent) {
163
- match = userAgent.match(/Edge\/(\d+)/);
164
- if (!match || match[1] >= 74) {
165
- match = userAgent.match(/Chrome\/(\d+)/);
166
- if (match)
167
- version = +match[1];
168
- }
169
- }
170
- var engineV8Version = version;
171
- var V8_VERSION = engineV8Version;
172
- var fails$5 = fails$9;
173
- var global$a = global$d;
174
- var $String$3 = global$a.String;
175
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function() {
176
- var symbol = Symbol("symbol detection");
177
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
178
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
179
- });
180
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
181
- var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
182
- var getBuiltIn = getBuiltIn$1;
183
- var isCallable$6 = isCallable$9;
184
- var isPrototypeOf = objectIsPrototypeOf;
185
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
186
- var $Object$2 = Object;
187
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
188
- return typeof it == "symbol";
189
- } : function(it) {
190
- var $Symbol = getBuiltIn("Symbol");
191
- return isCallable$6($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
192
- };
193
- var $String$2 = String;
194
- var tryToString$1 = function(argument) {
195
- try {
196
- return $String$2(argument);
197
- } catch (error) {
198
- return "Object";
199
- }
200
- };
201
- var isCallable$5 = isCallable$9;
202
- var tryToString = tryToString$1;
203
- var $TypeError$5 = TypeError;
204
- var aCallable$2 = function(argument) {
205
- if (isCallable$5(argument))
206
- return argument;
207
- throw new $TypeError$5(tryToString(argument) + " is not a function");
208
- };
209
- var aCallable$1 = aCallable$2;
210
- var isNullOrUndefined = isNullOrUndefined$2;
211
- var getMethod$1 = function(V, P) {
212
- var func = V[P];
213
- return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
214
- };
215
- var call$3 = functionCall;
216
- var isCallable$4 = isCallable$9;
217
- var isObject$3 = isObject$4;
218
- var $TypeError$4 = TypeError;
219
- var ordinaryToPrimitive$1 = function(input, pref) {
220
- var fn, val;
221
- if (pref === "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
222
- return val;
223
- if (isCallable$4(fn = input.valueOf) && !isObject$3(val = call$3(fn, input)))
224
- return val;
225
- if (pref !== "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
226
- return val;
227
- throw new $TypeError$4("Can't convert object to primitive value");
228
- };
229
- var shared$1 = { exports: {} };
230
- var global$9 = global$d;
231
- var defineProperty$1 = Object.defineProperty;
232
- var defineGlobalProperty$1 = function(key, value) {
233
- try {
234
- defineProperty$1(global$9, key, {
235
- value,
236
- configurable: true,
237
- writable: true
238
- });
239
- } catch (error) {
240
- global$9[key] = value;
241
- }
242
- return value;
243
- };
244
- var global$8 = global$d;
245
- var defineGlobalProperty = defineGlobalProperty$1;
246
- var SHARED = "__core-js_shared__";
247
- var store$1 = global$8[SHARED] || defineGlobalProperty(SHARED, {});
248
- var sharedStore = store$1;
249
- var store = sharedStore;
250
- (shared$1.exports = function(key, value) {
251
- return store[key] || (store[key] = value !== void 0 ? value : {});
252
- })("versions", []).push({
253
- version: "3.33.2",
254
- mode: "pure",
255
- copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
256
- license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
257
- source: "https://github.com/zloirock/core-js"
258
- });
259
- var sharedExports = shared$1.exports;
260
- var requireObjectCoercible$1 = requireObjectCoercible$3;
261
- var $Object$1 = Object;
262
- var toObject$2 = function(argument) {
263
- return $Object$1(requireObjectCoercible$1(argument));
264
- };
265
- var uncurryThis$8 = functionUncurryThis;
266
- var toObject$1 = toObject$2;
267
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
268
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
269
- return hasOwnProperty(toObject$1(it), key);
270
- };
271
- var uncurryThis$7 = functionUncurryThis;
272
- var id = 0;
273
- var postfix = Math.random();
274
- var toString$3 = uncurryThis$7(1 .toString);
275
- var uid$1 = function(key) {
276
- return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$3(++id + postfix, 36);
277
- };
278
- var global$7 = global$d;
279
- var shared = sharedExports;
280
- var hasOwn$3 = hasOwnProperty_1;
281
- var uid = uid$1;
282
- var NATIVE_SYMBOL = symbolConstructorDetection;
283
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
284
- var Symbol$2 = global$7.Symbol;
285
- var WellKnownSymbolsStore = shared("wks");
286
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2["for"] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
287
- var wellKnownSymbol$3 = function(name) {
288
- if (!hasOwn$3(WellKnownSymbolsStore, name)) {
289
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$3(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol("Symbol." + name);
290
- }
291
- return WellKnownSymbolsStore[name];
292
- };
293
- var call$2 = functionCall;
294
- var isObject$2 = isObject$4;
295
- var isSymbol$1 = isSymbol$2;
296
- var getMethod = getMethod$1;
297
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
298
- var wellKnownSymbol$2 = wellKnownSymbol$3;
299
- var $TypeError$3 = TypeError;
300
- var TO_PRIMITIVE = wellKnownSymbol$2("toPrimitive");
301
- var toPrimitive$1 = function(input, pref) {
302
- if (!isObject$2(input) || isSymbol$1(input))
303
- return input;
304
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
305
- var result;
306
- if (exoticToPrim) {
307
- if (pref === void 0)
308
- pref = "default";
309
- result = call$2(exoticToPrim, input, pref);
310
- if (!isObject$2(result) || isSymbol$1(result))
311
- return result;
312
- throw new $TypeError$3("Can't convert object to primitive value");
313
- }
314
- if (pref === void 0)
315
- pref = "number";
316
- return ordinaryToPrimitive(input, pref);
317
- };
318
- var toPrimitive = toPrimitive$1;
319
- var isSymbol = isSymbol$2;
320
- var toPropertyKey$2 = function(argument) {
321
- var key = toPrimitive(argument, "string");
322
- return isSymbol(key) ? key : key + "";
323
- };
324
- var global$6 = global$d;
325
- var isObject$1 = isObject$4;
326
- var document$1 = global$6.document;
327
- var EXISTS = isObject$1(document$1) && isObject$1(document$1.createElement);
328
- var documentCreateElement = function(it) {
329
- return EXISTS ? document$1.createElement(it) : {};
330
- };
331
- var DESCRIPTORS$5 = descriptors;
332
- var fails$4 = fails$9;
333
- var createElement = documentCreateElement;
334
- var ie8DomDefine = !DESCRIPTORS$5 && !fails$4(function() {
335
- return Object.defineProperty(createElement("div"), "a", {
336
- get: function() {
337
- return 7;
338
- }
339
- }).a !== 7;
340
- });
341
- var DESCRIPTORS$4 = descriptors;
342
- var call$1 = functionCall;
343
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
344
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
345
- var toIndexedObject$2 = toIndexedObject$3;
346
- var toPropertyKey$1 = toPropertyKey$2;
347
- var hasOwn$2 = hasOwnProperty_1;
348
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
349
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
350
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
351
- O = toIndexedObject$2(O);
352
- P = toPropertyKey$1(P);
353
- if (IE8_DOM_DEFINE$1)
354
- try {
355
- return $getOwnPropertyDescriptor$1(O, P);
356
- } catch (error) {
357
- }
358
- if (hasOwn$2(O, P))
359
- return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
360
- };
361
- var fails$3 = fails$9;
362
- var isCallable$3 = isCallable$9;
363
- var replacement = /#|\.prototype\./;
364
- var isForced$1 = function(feature, detection) {
365
- var value = data[normalize(feature)];
366
- return value === POLYFILL ? true : value === NATIVE ? false : isCallable$3(detection) ? fails$3(detection) : !!detection;
367
- };
368
- var normalize = isForced$1.normalize = function(string) {
369
- return String(string).replace(replacement, ".").toLowerCase();
370
- };
371
- var data = isForced$1.data = {};
372
- var NATIVE = isForced$1.NATIVE = "N";
373
- var POLYFILL = isForced$1.POLYFILL = "P";
374
- var isForced_1 = isForced$1;
375
- var uncurryThis$6 = functionUncurryThisClause;
376
- var aCallable = aCallable$2;
377
- var NATIVE_BIND = functionBindNative;
378
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
379
- var functionBindContext = function(fn, that) {
380
- aCallable(fn);
381
- return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
382
- return fn.apply(that, arguments);
383
- };
384
- };
385
- var objectDefineProperty = {};
386
- var DESCRIPTORS$3 = descriptors;
387
- var fails$2 = fails$9;
388
- var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$2(function() {
389
- return Object.defineProperty(function() {
390
- }, "prototype", {
391
- value: 42,
392
- writable: false
393
- }).prototype !== 42;
394
- });
395
- var isObject = isObject$4;
396
- var $String$1 = String;
397
- var $TypeError$2 = TypeError;
398
- var anObject$1 = function(argument) {
399
- if (isObject(argument))
400
- return argument;
401
- throw new $TypeError$2($String$1(argument) + " is not an object");
402
- };
403
- var DESCRIPTORS$2 = descriptors;
404
- var IE8_DOM_DEFINE = ie8DomDefine;
405
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
406
- var anObject = anObject$1;
407
- var toPropertyKey = toPropertyKey$2;
408
- var $TypeError$1 = TypeError;
409
- var $defineProperty = Object.defineProperty;
410
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
411
- var ENUMERABLE = "enumerable";
412
- var CONFIGURABLE = "configurable";
413
- var WRITABLE = "writable";
414
- objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
415
- anObject(O);
416
- P = toPropertyKey(P);
417
- anObject(Attributes);
418
- if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
419
- var current = $getOwnPropertyDescriptor(O, P);
420
- if (current && current[WRITABLE]) {
421
- O[P] = Attributes.value;
422
- Attributes = {
423
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
424
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
425
- writable: false
426
- };
427
- }
428
- }
429
- return $defineProperty(O, P, Attributes);
430
- } : $defineProperty : function defineProperty2(O, P, Attributes) {
431
- anObject(O);
432
- P = toPropertyKey(P);
433
- anObject(Attributes);
434
- if (IE8_DOM_DEFINE)
435
- try {
436
- return $defineProperty(O, P, Attributes);
437
- } catch (error) {
438
- }
439
- if ("get" in Attributes || "set" in Attributes)
440
- throw new $TypeError$1("Accessors not supported");
441
- if ("value" in Attributes)
442
- O[P] = Attributes.value;
443
- return O;
444
- };
445
- var DESCRIPTORS$1 = descriptors;
446
- var definePropertyModule = objectDefineProperty;
447
- var createPropertyDescriptor = createPropertyDescriptor$2;
448
- var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function(object, key, value) {
449
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
450
- } : function(object, key, value) {
451
- object[key] = value;
452
- return object;
453
- };
454
- var global$5 = global$d;
455
- var apply$1 = functionApply;
456
- var uncurryThis$5 = functionUncurryThisClause;
457
- var isCallable$2 = isCallable$9;
458
- var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
459
- var isForced = isForced_1;
460
- var path$3 = path$5;
461
- var bind = functionBindContext;
462
- var createNonEnumerableProperty = createNonEnumerableProperty$1;
463
- var hasOwn$1 = hasOwnProperty_1;
464
- var wrapConstructor = function(NativeConstructor) {
465
- var Wrapper = function(a, b, c) {
466
- if (this instanceof Wrapper) {
467
- switch (arguments.length) {
468
- case 0:
469
- return new NativeConstructor();
470
- case 1:
471
- return new NativeConstructor(a);
472
- case 2:
473
- return new NativeConstructor(a, b);
474
- }
475
- return new NativeConstructor(a, b, c);
476
- }
477
- return apply$1(NativeConstructor, this, arguments);
478
- };
479
- Wrapper.prototype = NativeConstructor.prototype;
480
- return Wrapper;
481
- };
482
- var _export = function(options, source) {
483
- var TARGET = options.target;
484
- var GLOBAL = options.global;
485
- var STATIC = options.stat;
486
- var PROTO = options.proto;
487
- var nativeSource = GLOBAL ? global$5 : STATIC ? global$5[TARGET] : (global$5[TARGET] || {}).prototype;
488
- var target = GLOBAL ? path$3 : path$3[TARGET] || createNonEnumerableProperty(path$3, TARGET, {})[TARGET];
489
- var targetPrototype = target.prototype;
490
- var FORCED2, USE_NATIVE, VIRTUAL_PROTOTYPE;
491
- var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
492
- for (key in source) {
493
- FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
494
- USE_NATIVE = !FORCED2 && nativeSource && hasOwn$1(nativeSource, key);
495
- targetProperty = target[key];
496
- if (USE_NATIVE)
497
- if (options.dontCallGetSet) {
498
- descriptor = getOwnPropertyDescriptor2(nativeSource, key);
499
- nativeProperty = descriptor && descriptor.value;
500
- } else
501
- nativeProperty = nativeSource[key];
502
- sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
503
- if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
504
- continue;
505
- if (options.bind && USE_NATIVE)
506
- resultProperty = bind(sourceProperty, global$5);
507
- else if (options.wrap && USE_NATIVE)
508
- resultProperty = wrapConstructor(sourceProperty);
509
- else if (PROTO && isCallable$2(sourceProperty))
510
- resultProperty = uncurryThis$5(sourceProperty);
511
- else
512
- resultProperty = sourceProperty;
513
- if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
514
- createNonEnumerableProperty(resultProperty, "sham", true);
515
- }
516
- createNonEnumerableProperty(target, key, resultProperty);
517
- if (PROTO) {
518
- VIRTUAL_PROTOTYPE = TARGET + "Prototype";
519
- if (!hasOwn$1(path$3, VIRTUAL_PROTOTYPE)) {
520
- createNonEnumerableProperty(path$3, VIRTUAL_PROTOTYPE, {});
521
- }
522
- createNonEnumerableProperty(path$3[VIRTUAL_PROTOTYPE], key, sourceProperty);
523
- if (options.real && targetPrototype && (FORCED2 || !targetPrototype[key])) {
524
- createNonEnumerableProperty(targetPrototype, key, sourceProperty);
525
- }
526
- }
527
- }
528
- };
529
- var wellKnownSymbol$1 = wellKnownSymbol$3;
530
- var TO_STRING_TAG$1 = wellKnownSymbol$1("toStringTag");
531
- var test = {};
532
- test[TO_STRING_TAG$1] = "z";
533
- var toStringTagSupport = String(test) === "[object z]";
534
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
535
- var isCallable$1 = isCallable$9;
536
- var classofRaw = classofRaw$2;
537
- var wellKnownSymbol = wellKnownSymbol$3;
538
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
539
- var $Object = Object;
540
- var CORRECT_ARGUMENTS = classofRaw(function() {
541
- return arguments;
542
- }()) === "Arguments";
543
- var tryGet = function(it, key) {
544
- try {
545
- return it[key];
546
- } catch (error) {
547
- }
548
- };
549
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
550
- var O, tag, result;
551
- return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$1(O.callee) ? "Arguments" : result;
552
- };
553
- var classof = classof$1;
554
- var $String = String;
555
- var toString$2 = function(argument) {
556
- if (classof(argument) === "Symbol")
557
- throw new TypeError("Cannot convert a Symbol value to a string");
558
- return $String(argument);
559
- };
560
- var whitespaces$2 = " \n\v\f\r                 \u2028\u2029\uFEFF";
561
- var uncurryThis$4 = functionUncurryThis;
562
- var requireObjectCoercible = requireObjectCoercible$3;
563
- var toString$1 = toString$2;
564
- var whitespaces$1 = whitespaces$2;
565
- var replace = uncurryThis$4("".replace);
566
- var ltrim = RegExp("^[" + whitespaces$1 + "]+");
567
- var rtrim = RegExp("(^|[^" + whitespaces$1 + "])[" + whitespaces$1 + "]+$");
568
- var createMethod$1 = function(TYPE) {
569
- return function($this) {
570
- var string = toString$1(requireObjectCoercible($this));
571
- if (TYPE & 1)
572
- string = replace(string, ltrim, "");
573
- if (TYPE & 2)
574
- string = replace(string, rtrim, "$1");
575
- return string;
576
- };
577
- };
578
- var stringTrim = {
579
- // `String.prototype.{ trimLeft, trimStart }` methods
580
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
581
- start: createMethod$1(1),
582
- // `String.prototype.{ trimRight, trimEnd }` methods
583
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
584
- end: createMethod$1(2),
585
- // `String.prototype.trim` method
586
- // https://tc39.es/ecma262/#sec-string.prototype.trim
587
- trim: createMethod$1(3)
588
- };
589
- var global$4 = global$d;
590
- var fails$1 = fails$9;
591
- var uncurryThis$3 = functionUncurryThis;
592
- var toString = toString$2;
593
- var trim = stringTrim.trim;
594
- var whitespaces = whitespaces$2;
595
- var $parseInt$1 = global$4.parseInt;
596
- var Symbol$1 = global$4.Symbol;
597
- var ITERATOR = Symbol$1 && Symbol$1.iterator;
598
- var hex = /^[+-]?0x/i;
599
- var exec = uncurryThis$3(hex.exec);
600
- var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR && !fails$1(function() {
601
- $parseInt$1(Object(ITERATOR));
602
- });
603
- var numberParseInt = FORCED ? function parseInt2(string, radix) {
604
- var S = trim(toString(string));
605
- return $parseInt$1(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
606
- } : $parseInt$1;
607
- var $$3 = _export;
608
- var $parseInt = numberParseInt;
609
- $$3({
610
- global: true,
611
- forced: parseInt !== $parseInt
612
- }, {
613
- parseInt: $parseInt
614
- });
615
- var path$2 = path$5;
616
- var _parseInt$6 = path$2.parseInt;
617
- var parent$7 = _parseInt$6;
618
- var _parseInt$5 = parent$7;
619
- var parent$6 = _parseInt$5;
620
- var _parseInt$4 = parent$6;
621
- var parent$5 = _parseInt$4;
622
- var _parseInt$3 = parent$5;
623
- var _parseInt$2 = _parseInt$3;
624
- var _parseInt = _parseInt$2;
625
- const _parseInt$1 = /* @__PURE__ */ getDefaultExportFromCjs(_parseInt);
626
- var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
627
- var uncurryThis$2 = functionUncurryThis;
628
- var arraySlice$1 = uncurryThis$2([].slice);
629
- var $TypeError = TypeError;
630
- var validateArgumentsLength$1 = function(passed, required) {
631
- if (passed < required)
632
- throw new $TypeError("Not enough arguments");
633
- return passed;
634
- };
635
- var global$3 = global$d;
636
- var apply = functionApply;
637
- var isCallable = isCallable$9;
638
- var ENGINE_IS_BUN = engineIsBun;
639
- var USER_AGENT = engineUserAgent;
640
- var arraySlice = arraySlice$1;
641
- var validateArgumentsLength = validateArgumentsLength$1;
642
- var Function$1 = global$3.Function;
643
- var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
644
- var version2 = global$3.Bun.version.split(".");
645
- return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
646
- }();
647
- var schedulersFix$2 = function(scheduler, hasTimeArg) {
648
- var firstParamIndex = hasTimeArg ? 2 : 1;
649
- return WRAP ? function(handler, timeout) {
650
- var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;
651
- var fn = isCallable(handler) ? handler : Function$1(handler);
652
- var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];
653
- var callback = boundArgs ? function() {
654
- apply(fn, this, params);
655
- } : fn;
656
- return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);
657
- } : scheduler;
658
- };
659
- var $$2 = _export;
660
- var global$2 = global$d;
661
- var schedulersFix$1 = schedulersFix$2;
662
- var setInterval = schedulersFix$1(global$2.setInterval, true);
663
- $$2({
664
- global: true,
665
- bind: true,
666
- forced: global$2.setInterval !== setInterval
667
- }, {
668
- setInterval
669
- });
670
- var $$1 = _export;
671
- var global$1 = global$d;
672
- var schedulersFix = schedulersFix$2;
673
- var setTimeout$5 = schedulersFix(global$1.setTimeout, true);
674
- $$1({
675
- global: true,
676
- bind: true,
677
- forced: global$1.setTimeout !== setTimeout$5
678
- }, {
679
- setTimeout: setTimeout$5
680
- });
681
- var path$1 = path$5;
682
- var setTimeout$4 = path$1.setTimeout;
683
- var parent$4 = setTimeout$4;
684
- var setTimeout$3 = parent$4;
685
- var parent$3 = setTimeout$3;
686
- var setTimeout$2 = parent$3;
687
- var setTimeout$1 = setTimeout$2;
688
- var setTimeout = setTimeout$1;
689
- const _setTimeout = /* @__PURE__ */ getDefaultExportFromCjs(setTimeout);
690
- var ceil = Math.ceil;
691
- var floor = Math.floor;
692
- var mathTrunc = Math.trunc || function trunc(x) {
693
- var n = +x;
694
- return (n > 0 ? floor : ceil)(n);
695
- };
696
- var trunc2 = mathTrunc;
697
- var toIntegerOrInfinity$2 = function(argument) {
698
- var number = +argument;
699
- return number !== number || number === 0 ? 0 : trunc2(number);
700
- };
701
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
702
- var max = Math.max;
703
- var min$1 = Math.min;
704
- var toAbsoluteIndex$1 = function(index, length) {
705
- var integer = toIntegerOrInfinity$1(index);
706
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
707
- };
708
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
709
- var min = Math.min;
710
- var toLength$1 = function(argument) {
711
- return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
712
- };
713
- var toLength = toLength$1;
714
- var lengthOfArrayLike$1 = function(obj) {
715
- return toLength(obj.length);
716
- };
717
- var toIndexedObject$1 = toIndexedObject$3;
718
- var toAbsoluteIndex = toAbsoluteIndex$1;
719
- var lengthOfArrayLike = lengthOfArrayLike$1;
720
- var createMethod = function(IS_INCLUDES) {
721
- return function($this, el, fromIndex) {
722
- var O = toIndexedObject$1($this);
723
- var length = lengthOfArrayLike(O);
724
- var index = toAbsoluteIndex(fromIndex, length);
725
- var value;
726
- if (IS_INCLUDES && el !== el)
727
- while (length > index) {
728
- value = O[index++];
729
- if (value !== value)
730
- return true;
731
- }
732
- else
733
- for (; length > index; index++) {
734
- if ((IS_INCLUDES || index in O) && O[index] === el)
735
- return IS_INCLUDES || index || 0;
736
- }
737
- return !IS_INCLUDES && -1;
738
- };
739
- };
740
- var arrayIncludes = {
741
- // `Array.prototype.includes` method
742
- // https://tc39.es/ecma262/#sec-array.prototype.includes
743
- includes: createMethod(true),
744
- // `Array.prototype.indexOf` method
745
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
746
- indexOf: createMethod(false)
747
- };
748
- var hiddenKeys$1 = {};
749
- var uncurryThis$1 = functionUncurryThis;
750
- var hasOwn2 = hasOwnProperty_1;
751
- var toIndexedObject = toIndexedObject$3;
752
- var indexOf = arrayIncludes.indexOf;
753
- var hiddenKeys = hiddenKeys$1;
754
- var push = uncurryThis$1([].push);
755
- var objectKeysInternal = function(object, names) {
756
- var O = toIndexedObject(object);
757
- var i = 0;
758
- var result = [];
759
- var key;
760
- for (key in O)
761
- !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
762
- while (names.length > i)
763
- if (hasOwn2(O, key = names[i++])) {
764
- ~indexOf(result, key) || push(result, key);
765
- }
766
- return result;
767
- };
768
- var enumBugKeys$1 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
769
- var internalObjectKeys = objectKeysInternal;
770
- var enumBugKeys = enumBugKeys$1;
771
- var objectKeys$1 = Object.keys || function keys(O) {
772
- return internalObjectKeys(O, enumBugKeys);
773
- };
774
- var objectGetOwnPropertySymbols = {};
775
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
776
- var DESCRIPTORS = descriptors;
777
- var uncurryThis = functionUncurryThis;
778
- var call = functionCall;
779
- var fails = fails$9;
780
- var objectKeys = objectKeys$1;
781
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
782
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
783
- var toObject = toObject$2;
784
- var IndexedObject = indexedObject;
785
- var $assign = Object.assign;
786
- var defineProperty3 = Object.defineProperty;
787
- var concat = uncurryThis([].concat);
788
- var objectAssign = !$assign || fails(function() {
789
- if (DESCRIPTORS && $assign({
790
- b: 1
791
- }, $assign(defineProperty3({}, "a", {
792
- enumerable: true,
793
- get: function() {
794
- defineProperty3(this, "b", {
795
- value: 3,
796
- enumerable: false
797
- });
798
- }
799
- }), {
800
- b: 2
801
- })).b !== 1)
802
- return true;
803
- var A = {};
804
- var B = {};
805
- var symbol = Symbol("assign detection");
806
- var alphabet = "abcdefghijklmnopqrst";
807
- A[symbol] = 7;
808
- alphabet.split("").forEach(function(chr) {
809
- B[chr] = chr;
810
- });
811
- return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet;
812
- }) ? function assign(target, source) {
813
- var T = toObject(target);
814
- var argumentsLength = arguments.length;
815
- var index = 1;
816
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
817
- var propertyIsEnumerable2 = propertyIsEnumerableModule.f;
818
- while (argumentsLength > index) {
819
- var S = IndexedObject(arguments[index++]);
820
- var keys2 = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
821
- var length = keys2.length;
822
- var j = 0;
823
- var key;
824
- while (length > j) {
825
- key = keys2[j++];
826
- if (!DESCRIPTORS || call(propertyIsEnumerable2, S, key))
827
- T[key] = S[key];
828
- }
829
- }
830
- return T;
831
- } : $assign;
832
- var $ = _export;
833
- var assign$6 = objectAssign;
834
- $({
835
- target: "Object",
836
- stat: true,
837
- arity: 2,
838
- forced: Object.assign !== assign$6
839
- }, {
840
- assign: assign$6
841
- });
842
- var path = path$5;
843
- var assign$5 = path.Object.assign;
844
- var parent$2 = assign$5;
845
- var assign$4 = parent$2;
846
- var parent$1 = assign$4;
847
- var assign$3 = parent$1;
848
- var parent = assign$3;
849
- var assign$2 = parent;
850
- var assign$1 = assign$2;
851
- var assign2 = assign$1;
852
- const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assign2);
853
- var __sfc_main = {};
4
+ const __sfc_main = {};
854
5
  __sfc_main.props = {
855
6
  visible: [Boolean, String]
856
7
  };
857
- __sfc_main.setup = function(__props, __ctx) {
858
- var emits = __ctx.emit;
859
- var props = __props;
860
- var reference = ref();
861
- var popperRef = ref();
862
- watch(function() {
863
- return props.visible;
864
- }, function(newValue) {
8
+ __sfc_main.setup = (__props, __ctx) => {
9
+ const emits = __ctx.emit;
10
+ const props = __props;
11
+ const reference = ref();
12
+ const popperRef = ref();
13
+ watch(() => props.visible, (newValue) => {
865
14
  if (newValue) {
866
15
  window.addEventListener("mousedown", docClick);
867
16
  } else {
@@ -877,10 +26,10 @@ __sfc_main.setup = function(__props, __ctx) {
877
26
  function showPopper() {
878
27
  emits("update:visible", true);
879
28
  }
880
- onUnmounted(function() {
29
+ onUnmounted(() => {
881
30
  emits("update:visible", false);
882
31
  });
883
- return _Object$assign({
32
+ return Object.assign({
884
33
  reference,
885
34
  popperRef,
886
35
  showPopper
@@ -888,13 +37,13 @@ __sfc_main.setup = function(__props, __ctx) {
888
37
  showPopper
889
38
  });
890
39
  };
891
- var _sfc_main$2 = __sfc_main;
40
+ const _sfc_main$2 = __sfc_main;
892
41
  var _sfc_render$2 = function render() {
893
42
  var _vm = this, _c = _vm._self._c;
894
43
  _vm._self._setupProxy;
895
44
  return _c("div", {
896
45
  staticClass: "nf-volume-tool",
897
- "class": _vm.visible ? "nf-tool-show" : "nf-tool-hide",
46
+ class: _vm.visible ? "nf-tool-show" : "nf-tool-hide",
898
47
  on: {
899
48
  "click": _vm.showPopper
900
49
  }
@@ -918,22 +67,22 @@ var _sfc_render$2 = function render() {
918
67
  var _sfc_staticRenderFns$2 = [];
919
68
  var __component__$2 = /* @__PURE__ */ normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, null, null, null);
920
69
  const volumeTool = __component__$2.exports;
921
- var _sfc_main$1 = {
70
+ const _sfc_main$1 = {
922
71
  name: "more-btn",
923
72
  components: {},
924
- data: function data2() {
73
+ data() {
925
74
  return {
926
75
  multipleArray: ["1.0", "1.25", "1.5", "1.75", "2.0"],
927
76
  speed: ""
928
77
  };
929
78
  },
930
- mounted: function mounted() {
79
+ mounted() {
931
80
  },
932
81
  methods: {
933
- handleDown: function handleDown() {
82
+ handleDown() {
934
83
  this.$emit("down");
935
84
  },
936
- handleSpeed: function handleSpeed(speed) {
85
+ handleSpeed(speed) {
937
86
  this.speed = speed;
938
87
  this.$emit("speed", speed);
939
88
  }
@@ -961,9 +110,9 @@ var _sfc_render$1 = function render2() {
961
110
  return _c("div", {
962
111
  key: index,
963
112
  staticClass: "btn-item",
964
- "class": _vm.speed === item ? "active" : "",
113
+ class: _vm.speed === item ? "active" : "",
965
114
  on: {
966
- "click": function click($event) {
115
+ "click": function($event) {
967
116
  return _vm.handleSpeed(item);
968
117
  }
969
118
  }
@@ -992,7 +141,7 @@ var _sfc_render$1 = function render2() {
992
141
  var _sfc_staticRenderFns$1 = [];
993
142
  var __component__$1 = /* @__PURE__ */ normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
994
143
  const moreBtn = __component__$1.exports;
995
- var _sfc_main = {
144
+ const _sfc_main = {
996
145
  name: "nf-audio",
997
146
  components: {
998
147
  volumeTool,
@@ -1001,22 +150,22 @@ var _sfc_main = {
1001
150
  props: {
1002
151
  audioSrc: {
1003
152
  type: String,
1004
- "default": ""
153
+ default: ""
1005
154
  },
1006
155
  backSecond: {
1007
156
  type: Number,
1008
- "default": 3
157
+ default: 3
1009
158
  },
1010
159
  forwardSecond: {
1011
160
  type: Number,
1012
- "default": 10
161
+ default: 10
1013
162
  },
1014
163
  startTime: {
1015
164
  type: Number,
1016
- "default": 0
165
+ default: 0
1017
166
  }
1018
167
  },
1019
- data: function data3() {
168
+ data() {
1020
169
  return {
1021
170
  duration: "00:00",
1022
171
  currentDuration: "00:00",
@@ -1029,24 +178,24 @@ var _sfc_main = {
1029
178
  speed: 1
1030
179
  };
1031
180
  },
1032
- mounted: function mounted2() {
181
+ mounted() {
1033
182
  this.audio = this.$refs.audio;
1034
183
  },
1035
184
  methods: {
1036
185
  //后退
1037
- handleBack: function handleBack() {
186
+ handleBack() {
1038
187
  if (this.audio.currentTime > this.backSecond) {
1039
188
  this.audio.currentTime = this.audio.currentTime - this.backSecond;
1040
189
  }
1041
190
  },
1042
191
  //前进
1043
- handleForward: function handleForward() {
192
+ handleForward() {
1044
193
  if (this.audio.duration - this.audio.currentTime > this.forwardSecond) {
1045
194
  this.audio.currentTime = this.audio.currentTime + 10;
1046
195
  }
1047
196
  },
1048
197
  //暂停或播放
1049
- handlePauseOrPlay: function handlePauseOrPlay() {
198
+ handlePauseOrPlay() {
1050
199
  if (this.audio.readyState >= 2) {
1051
200
  this.audio.paused ? this.audio.play() : this.audio.pause();
1052
201
  this.audio.playbackRate = this.speed;
@@ -1057,36 +206,36 @@ var _sfc_main = {
1057
206
  }
1058
207
  },
1059
208
  //视频在可以播放时触发
1060
- getDuration: function getDuration() {
209
+ getDuration() {
1061
210
  this.duration = this.timeFormat(this.$refs.audio.duration);
1062
211
  this.audio.volume = this.volume;
1063
212
  },
1064
213
  //将单位为秒的的时间转换成mm:ss的形式
1065
- timeFormat: function timeFormat(number) {
1066
- var minute = _parseInt$1(number / 60);
1067
- var second = _parseInt$1(number % 60);
214
+ timeFormat(number) {
215
+ let minute = parseInt(number / 60);
216
+ let second = parseInt(number % 60);
1068
217
  minute = minute >= 10 ? minute : "0" + minute;
1069
218
  second = second >= 10 ? second : "0" + second;
1070
219
  return minute + ":" + second;
1071
220
  },
1072
221
  //进度条发生变化时触发
1073
- updateTime: function updateTime() {
222
+ updateTime() {
1074
223
  if (!this.$refs.progress)
1075
224
  return;
1076
225
  this.currentDuration = this.timeFormat(this.audio.currentTime);
1077
226
  if (!this.audio.paused) {
1078
- var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
227
+ let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1079
228
  this.$refs.currentProgress.style.width = MoveX + "px";
1080
229
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1081
230
  this.paused = false;
1082
231
  }
1083
232
  },
1084
- handleAudioEnded: function handleAudioEnded() {
233
+ handleAudioEnded() {
1085
234
  console.log("音频播放完毕!");
1086
235
  this.paused = true;
1087
236
  },
1088
237
  //点击进度条更新进度
1089
- clickProgress: function clickProgress(e) {
238
+ clickProgress(e) {
1090
239
  if (this.duration === "00:00") {
1091
240
  Message.warning("音频还未加载完成");
1092
241
  return false;
@@ -1096,75 +245,73 @@ var _sfc_main = {
1096
245
  }
1097
246
  },
1098
247
  //更新进度
1099
- updateProgress: function updateProgress(MoveX) {
1100
- var clickProgress2 = MoveX / this.$refs.progress.clientWidth;
1101
- this.audio.currentTime = this.audio.duration * clickProgress2;
248
+ updateProgress(MoveX) {
249
+ let clickProgress = MoveX / this.$refs.progress.clientWidth;
250
+ this.audio.currentTime = this.audio.duration * clickProgress;
1102
251
  this.$refs.currentProgress.style.width = MoveX + "px";
1103
252
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1104
253
  },
1105
254
  //鼠标弹起
1106
- handleMouseup: function handleMouseup() {
1107
- var _this = this;
255
+ handleMouseup() {
1108
256
  if (this.duration === "00:00") {
1109
257
  Message.warning("音频还未加载完成");
1110
258
  return false;
1111
259
  }
1112
- var timer = _setTimeout(function() {
1113
- _this.audio.play();
1114
- _this.paused = false;
260
+ const timer = setTimeout(() => {
261
+ this.audio.play();
262
+ this.paused = false;
1115
263
  clearTimeout(timer);
1116
264
  }, 200);
1117
- this.$once("hook:beforeDestroy", function() {
265
+ this.$once("hook:beforeDestroy", () => {
1118
266
  clearTimeout(timer);
1119
267
  });
1120
268
  },
1121
269
  //调整进度
1122
- handleMousedown: function handleMousedown() {
1123
- var _this2 = this;
270
+ handleMousedown() {
1124
271
  this.audio.pause();
1125
272
  this.paused = true;
1126
- var progress = this.$refs.progress;
1127
- var moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
1128
- var moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
1129
- var circleWidth = this.$refs.circle.clientWidth / 2;
1130
- var moveX = function moveX2(e) {
273
+ let progress = this.$refs.progress;
274
+ let moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
275
+ let moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
276
+ let circleWidth = this.$refs.circle.clientWidth / 2;
277
+ let moveX = (e) => {
1131
278
  if (e.pageX >= moveMax) {
1132
279
  return;
1133
280
  } else if (e.pageX <= moveMin) {
1134
281
  return;
1135
282
  }
1136
- _this2.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
1137
- _this2.updateProgress(e.pageX - moveMin);
283
+ this.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
284
+ this.updateProgress(e.pageX - moveMin);
1138
285
  };
1139
286
  document.addEventListener("mousemove", moveX);
1140
- document.addEventListener("mouseup", function() {
287
+ document.addEventListener("mouseup", () => {
1141
288
  document.removeEventListener("mousemove", moveX);
1142
289
  });
1143
290
  },
1144
- rangeVolume: function rangeVolume(val) {
291
+ rangeVolume(val) {
1145
292
  console.log(val);
1146
293
  },
1147
294
  /** 设置倍速播放 */
1148
- changeSpeed: function changeSpeed(command) {
1149
- var audioPlayer = this.$refs.audio;
295
+ changeSpeed(command) {
296
+ const audioPlayer = this.$refs.audio;
1150
297
  if (audioPlayer) {
1151
298
  audioPlayer.playbackRate = command;
1152
299
  }
1153
300
  this.speed = command;
1154
301
  },
1155
- downRecord: function downRecord() {
302
+ downRecord() {
1156
303
  this.$emit("downloadCallback");
1157
304
  },
1158
- calcMoveX: function calcMoveX() {
305
+ calcMoveX() {
1159
306
  if (!this.audio.paused) {
1160
- var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
307
+ let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1161
308
  this.$refs.currentProgress.style.width = MoveX + "px";
1162
309
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1163
310
  }
1164
311
  },
1165
- jumpToTime: function jumpToTime() {
312
+ jumpToTime() {
1166
313
  this.audio.pause();
1167
- var formatStartT = this.timeFormat(this.startTime);
314
+ const formatStartT = this.timeFormat(this.startTime);
1168
315
  if (this.duration === "00:00") {
1169
316
  Message.warning("音频还未加载完成");
1170
317
  return false;
@@ -1190,7 +337,7 @@ var _sfc_main = {
1190
337
  }
1191
338
  },
1192
339
  watch: {
1193
- volumeValue: function volumeValue(val) {
340
+ volumeValue(val) {
1194
341
  this.volume = val / 100;
1195
342
  this.audio.volume = val / 100;
1196
343
  }
@@ -1277,13 +424,13 @@ var _sfc_render = function render3() {
1277
424
  "visible": _vm.volumeVisible
1278
425
  },
1279
426
  on: {
1280
- "update:visible": function updateVisible($event) {
427
+ "update:visible": function($event) {
1281
428
  _vm.volumeVisible = $event;
1282
429
  }
1283
430
  },
1284
431
  scopedSlots: _vm._u([{
1285
432
  key: "reference",
1286
- fn: function fn() {
433
+ fn: function() {
1287
434
  return [_vm.volume == 0 ? _c("i", {
1288
435
  staticClass: "iconfont icon-yinliang_guanbi volume-mute"
1289
436
  }) : _c("i", {
@@ -1293,7 +440,7 @@ var _sfc_render = function render3() {
1293
440
  proxy: true
1294
441
  }])
1295
442
  }, [_c("el-slider", {
1296
- "class": _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
443
+ class: _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
1297
444
  attrs: {
1298
445
  "vertical": "",
1299
446
  "min": 0,
@@ -1306,7 +453,7 @@ var _sfc_render = function render3() {
1306
453
  },
1307
454
  model: {
1308
455
  value: _vm.volumeValue,
1309
- callback: function callback($$v) {
456
+ callback: function($$v) {
1310
457
  _vm.volumeValue = $$v;
1311
458
  },
1312
459
  expression: "volumeValue"
@@ -1315,7 +462,7 @@ var _sfc_render = function render3() {
1315
462
  staticClass: "option"
1316
463
  }, [_c("moreBtn", {
1317
464
  on: {
1318
- "down": function down($event) {
465
+ "down": function($event) {
1319
466
  return _vm.downRecord();
1320
467
  },
1321
468
  "speed": _vm.changeSpeed
@@ -1325,7 +472,7 @@ var _sfc_render = function render3() {
1325
472
  var _sfc_staticRenderFns = [];
1326
473
  var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
1327
474
  const NfAudio = __component__.exports;
1328
- NfAudio.install = function(app) {
475
+ NfAudio.install = (app) => {
1329
476
  app.component("nf-audio", NfAudio);
1330
477
  };
1331
478
  export {