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