@94ai/nf-svg-icon 3.2.47 → 100.1.1
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-svg-icon.cjs.js +45 -883
- package/lib/nf-svg-icon.esm-bundler.js +45 -883
- package/package.json +3 -3
|
@@ -13,887 +13,53 @@
|
|
|
13
13
|
import { defineComponent, computed } from "vue-demi";
|
|
14
14
|
import { useCssVars } from "vue";
|
|
15
15
|
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
16
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
17
|
-
function getDefaultExportFromCjs(x) {
|
|
18
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
19
|
-
}
|
|
20
|
-
var fails$b = function(exec2) {
|
|
21
|
-
try {
|
|
22
|
-
return !!exec2();
|
|
23
|
-
} catch (error) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var fails$a = fails$b;
|
|
28
|
-
var functionBindNative = !fails$a(function() {
|
|
29
|
-
var test2 = (function() {
|
|
30
|
-
}).bind();
|
|
31
|
-
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
32
|
-
});
|
|
33
|
-
var NATIVE_BIND$3 = functionBindNative;
|
|
34
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
35
|
-
var call$5 = FunctionPrototype$1.call;
|
|
36
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$1.bind.bind(call$5, call$5);
|
|
37
|
-
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
|
|
38
|
-
return function() {
|
|
39
|
-
return call$5.apply(fn, arguments);
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
var uncurryThis$b = functionUncurryThis;
|
|
43
|
-
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
44
|
-
var check = function(it) {
|
|
45
|
-
return it && it.Math === Math && it;
|
|
46
|
-
};
|
|
47
|
-
var global$a = (
|
|
48
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
49
|
-
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
50
|
-
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
51
|
-
function() {
|
|
52
|
-
return this;
|
|
53
|
-
}() || commonjsGlobal || Function("return this")()
|
|
54
|
-
);
|
|
55
|
-
var NATIVE_BIND$2 = functionBindNative;
|
|
56
|
-
var FunctionPrototype = Function.prototype;
|
|
57
|
-
var apply$1 = FunctionPrototype.apply;
|
|
58
|
-
var call$4 = FunctionPrototype.call;
|
|
59
|
-
var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$4.bind(apply$1) : function() {
|
|
60
|
-
return call$4.apply(apply$1, arguments);
|
|
61
|
-
});
|
|
62
|
-
var uncurryThis$a = functionUncurryThis;
|
|
63
|
-
var toString$4 = uncurryThis$a({}.toString);
|
|
64
|
-
var stringSlice = uncurryThis$a("".slice);
|
|
65
|
-
var classofRaw$2 = function(it) {
|
|
66
|
-
return stringSlice(toString$4(it), 8, -1);
|
|
67
|
-
};
|
|
68
|
-
var classofRaw$1 = classofRaw$2;
|
|
69
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
70
|
-
var functionUncurryThisClause = function(fn) {
|
|
71
|
-
if (classofRaw$1(fn) === "Function")
|
|
72
|
-
return uncurryThis$9(fn);
|
|
73
|
-
};
|
|
74
|
-
var documentAll$2 = typeof document == "object" && document.all;
|
|
75
|
-
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
76
|
-
var documentAll_1 = {
|
|
77
|
-
all: documentAll$2,
|
|
78
|
-
IS_HTMLDDA
|
|
79
|
-
};
|
|
80
|
-
var $documentAll$1 = documentAll_1;
|
|
81
|
-
var documentAll$1 = $documentAll$1.all;
|
|
82
|
-
var isCallable$a = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
83
|
-
return typeof argument == "function" || argument === documentAll$1;
|
|
84
|
-
} : function(argument) {
|
|
85
|
-
return typeof argument == "function";
|
|
86
|
-
};
|
|
87
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
88
|
-
var fails$9 = fails$b;
|
|
89
|
-
var descriptors = !fails$9(function() {
|
|
90
|
-
return Object.defineProperty({}, 1, {
|
|
91
|
-
get: function() {
|
|
92
|
-
return 7;
|
|
93
|
-
}
|
|
94
|
-
})[1] !== 7;
|
|
95
|
-
});
|
|
96
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
97
|
-
var call$3 = Function.prototype.call;
|
|
98
|
-
var functionCall = NATIVE_BIND$1 ? call$3.bind(call$3) : function() {
|
|
99
|
-
return call$3.apply(call$3, arguments);
|
|
100
|
-
};
|
|
101
|
-
var objectPropertyIsEnumerable = {};
|
|
102
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
103
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
104
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
|
|
105
|
-
1: 2
|
|
106
|
-
}, 1);
|
|
107
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
108
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
109
|
-
return !!descriptor && descriptor.enumerable;
|
|
110
|
-
} : $propertyIsEnumerable;
|
|
111
|
-
var createPropertyDescriptor$3 = function(bitmap, value) {
|
|
112
|
-
return {
|
|
113
|
-
enumerable: !(bitmap & 1),
|
|
114
|
-
configurable: !(bitmap & 2),
|
|
115
|
-
writable: !(bitmap & 4),
|
|
116
|
-
value
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
120
|
-
var fails$8 = fails$b;
|
|
121
|
-
var classof$4 = classofRaw$2;
|
|
122
|
-
var $Object$3 = Object;
|
|
123
|
-
var split = uncurryThis$8("".split);
|
|
124
|
-
var indexedObject = fails$8(function() {
|
|
125
|
-
return !$Object$3("z").propertyIsEnumerable(0);
|
|
126
|
-
}) ? function(it) {
|
|
127
|
-
return classof$4(it) === "String" ? split(it, "") : $Object$3(it);
|
|
128
|
-
} : $Object$3;
|
|
129
|
-
var isNullOrUndefined$2 = function(it) {
|
|
130
|
-
return it === null || it === void 0;
|
|
131
|
-
};
|
|
132
|
-
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
133
|
-
var $TypeError$6 = TypeError;
|
|
134
|
-
var requireObjectCoercible$3 = function(it) {
|
|
135
|
-
if (isNullOrUndefined$1(it))
|
|
136
|
-
throw $TypeError$6("Can't call method on " + it);
|
|
137
|
-
return it;
|
|
138
|
-
};
|
|
139
|
-
var IndexedObject = indexedObject;
|
|
140
|
-
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
141
|
-
var toIndexedObject$1 = function(it) {
|
|
142
|
-
return IndexedObject(requireObjectCoercible$2(it));
|
|
143
|
-
};
|
|
144
|
-
var isCallable$9 = isCallable$a;
|
|
145
|
-
var $documentAll = documentAll_1;
|
|
146
|
-
var documentAll = $documentAll.all;
|
|
147
|
-
var isObject$6 = $documentAll.IS_HTMLDDA ? function(it) {
|
|
148
|
-
return typeof it == "object" ? it !== null : isCallable$9(it) || it === documentAll;
|
|
149
|
-
} : function(it) {
|
|
150
|
-
return typeof it == "object" ? it !== null : isCallable$9(it);
|
|
151
|
-
};
|
|
152
|
-
var path$4 = {};
|
|
153
|
-
var path$3 = path$4;
|
|
154
|
-
var global$9 = global$a;
|
|
155
|
-
var isCallable$8 = isCallable$a;
|
|
156
|
-
var aFunction = function(variable) {
|
|
157
|
-
return isCallable$8(variable) ? variable : void 0;
|
|
158
|
-
};
|
|
159
|
-
var getBuiltIn$2 = function(namespace, method2) {
|
|
160
|
-
return arguments.length < 2 ? aFunction(path$3[namespace]) || aFunction(global$9[namespace]) : path$3[namespace] && path$3[namespace][method2] || global$9[namespace] && global$9[namespace][method2];
|
|
161
|
-
};
|
|
162
|
-
var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
|
|
163
|
-
var global$8 = global$a;
|
|
164
|
-
var userAgent = engineUserAgent;
|
|
165
|
-
var process = global$8.process;
|
|
166
|
-
var Deno = global$8.Deno;
|
|
167
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
168
|
-
var v8 = versions && versions.v8;
|
|
169
|
-
var match, version;
|
|
170
|
-
if (v8) {
|
|
171
|
-
match = v8.split(".");
|
|
172
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
173
|
-
}
|
|
174
|
-
if (!version && userAgent) {
|
|
175
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
176
|
-
if (!match || match[1] >= 74) {
|
|
177
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
178
|
-
if (match)
|
|
179
|
-
version = +match[1];
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
var engineV8Version = version;
|
|
183
|
-
var V8_VERSION$2 = engineV8Version;
|
|
184
|
-
var fails$7 = fails$b;
|
|
185
|
-
var global$7 = global$a;
|
|
186
|
-
var $String$3 = global$7.String;
|
|
187
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function() {
|
|
188
|
-
var symbol = Symbol("symbol detection");
|
|
189
|
-
return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
190
|
-
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
191
|
-
});
|
|
192
|
-
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
193
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
194
|
-
var getBuiltIn$1 = getBuiltIn$2;
|
|
195
|
-
var isCallable$7 = isCallable$a;
|
|
196
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
197
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
198
|
-
var $Object$2 = Object;
|
|
199
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
|
|
200
|
-
return typeof it == "symbol";
|
|
201
|
-
} : function(it) {
|
|
202
|
-
var $Symbol = getBuiltIn$1("Symbol");
|
|
203
|
-
return isCallable$7($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
|
|
204
|
-
};
|
|
205
|
-
var $String$2 = String;
|
|
206
|
-
var tryToString$1 = function(argument) {
|
|
207
|
-
try {
|
|
208
|
-
return $String$2(argument);
|
|
209
|
-
} catch (error) {
|
|
210
|
-
return "Object";
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
var isCallable$6 = isCallable$a;
|
|
214
|
-
var tryToString = tryToString$1;
|
|
215
|
-
var $TypeError$5 = TypeError;
|
|
216
|
-
var aCallable$2 = function(argument) {
|
|
217
|
-
if (isCallable$6(argument))
|
|
218
|
-
return argument;
|
|
219
|
-
throw $TypeError$5(tryToString(argument) + " is not a function");
|
|
220
|
-
};
|
|
221
|
-
var aCallable$1 = aCallable$2;
|
|
222
|
-
var isNullOrUndefined = isNullOrUndefined$2;
|
|
223
|
-
var getMethod$1 = function(V, P) {
|
|
224
|
-
var func = V[P];
|
|
225
|
-
return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
|
|
226
|
-
};
|
|
227
|
-
var call$2 = functionCall;
|
|
228
|
-
var isCallable$5 = isCallable$a;
|
|
229
|
-
var isObject$5 = isObject$6;
|
|
230
|
-
var $TypeError$4 = TypeError;
|
|
231
|
-
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
232
|
-
var fn, val;
|
|
233
|
-
if (pref === "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$2(fn, input)))
|
|
234
|
-
return val;
|
|
235
|
-
if (isCallable$5(fn = input.valueOf) && !isObject$5(val = call$2(fn, input)))
|
|
236
|
-
return val;
|
|
237
|
-
if (pref !== "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$2(fn, input)))
|
|
238
|
-
return val;
|
|
239
|
-
throw $TypeError$4("Can't convert object to primitive value");
|
|
240
|
-
};
|
|
241
|
-
var shared$1 = { exports: {} };
|
|
242
|
-
var global$6 = global$a;
|
|
243
|
-
var defineProperty = Object.defineProperty;
|
|
244
|
-
var defineGlobalProperty$1 = function(key, value) {
|
|
245
|
-
try {
|
|
246
|
-
defineProperty(global$6, key, {
|
|
247
|
-
value,
|
|
248
|
-
configurable: true,
|
|
249
|
-
writable: true
|
|
250
|
-
});
|
|
251
|
-
} catch (error) {
|
|
252
|
-
global$6[key] = value;
|
|
253
|
-
}
|
|
254
|
-
return value;
|
|
255
|
-
};
|
|
256
|
-
var global$5 = global$a;
|
|
257
|
-
var defineGlobalProperty = defineGlobalProperty$1;
|
|
258
|
-
var SHARED = "__core-js_shared__";
|
|
259
|
-
var store$2 = global$5[SHARED] || defineGlobalProperty(SHARED, {});
|
|
260
|
-
var sharedStore = store$2;
|
|
261
|
-
var store$1 = sharedStore;
|
|
262
|
-
(shared$1.exports = function(key, value) {
|
|
263
|
-
return store$1[key] || (store$1[key] = value !== void 0 ? value : {});
|
|
264
|
-
})("versions", []).push({
|
|
265
|
-
version: "3.32.1",
|
|
266
|
-
mode: "pure",
|
|
267
|
-
copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
|
|
268
|
-
license: "https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",
|
|
269
|
-
source: "https://github.com/zloirock/core-js"
|
|
270
|
-
});
|
|
271
|
-
var sharedExports = shared$1.exports;
|
|
272
|
-
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
273
|
-
var $Object$1 = Object;
|
|
274
|
-
var toObject$2 = function(argument) {
|
|
275
|
-
return $Object$1(requireObjectCoercible$1(argument));
|
|
276
|
-
};
|
|
277
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
278
|
-
var toObject$1 = toObject$2;
|
|
279
|
-
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
280
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
281
|
-
return hasOwnProperty(toObject$1(it), key);
|
|
282
|
-
};
|
|
283
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
284
|
-
var id = 0;
|
|
285
|
-
var postfix = Math.random();
|
|
286
|
-
var toString$3 = uncurryThis$6(1 .toString);
|
|
287
|
-
var uid$1 = function(key) {
|
|
288
|
-
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$3(++id + postfix, 36);
|
|
289
|
-
};
|
|
290
|
-
var global$4 = global$a;
|
|
291
|
-
var shared = sharedExports;
|
|
292
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
293
|
-
var uid = uid$1;
|
|
294
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
295
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
296
|
-
var Symbol$2 = global$4.Symbol;
|
|
297
|
-
var WellKnownSymbolsStore = shared("wks");
|
|
298
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2["for"] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
|
299
|
-
var wellKnownSymbol$6 = function(name) {
|
|
300
|
-
if (!hasOwn$2(WellKnownSymbolsStore, name)) {
|
|
301
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$2(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol("Symbol." + name);
|
|
302
|
-
}
|
|
303
|
-
return WellKnownSymbolsStore[name];
|
|
304
|
-
};
|
|
305
|
-
var call$1 = functionCall;
|
|
306
|
-
var isObject$4 = isObject$6;
|
|
307
|
-
var isSymbol$1 = isSymbol$2;
|
|
308
|
-
var getMethod = getMethod$1;
|
|
309
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
310
|
-
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
311
|
-
var $TypeError$3 = TypeError;
|
|
312
|
-
var TO_PRIMITIVE = wellKnownSymbol$5("toPrimitive");
|
|
313
|
-
var toPrimitive$1 = function(input, pref) {
|
|
314
|
-
if (!isObject$4(input) || isSymbol$1(input))
|
|
315
|
-
return input;
|
|
316
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
317
|
-
var result;
|
|
318
|
-
if (exoticToPrim) {
|
|
319
|
-
if (pref === void 0)
|
|
320
|
-
pref = "default";
|
|
321
|
-
result = call$1(exoticToPrim, input, pref);
|
|
322
|
-
if (!isObject$4(result) || isSymbol$1(result))
|
|
323
|
-
return result;
|
|
324
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
325
|
-
}
|
|
326
|
-
if (pref === void 0)
|
|
327
|
-
pref = "number";
|
|
328
|
-
return ordinaryToPrimitive(input, pref);
|
|
329
|
-
};
|
|
330
|
-
var toPrimitive = toPrimitive$1;
|
|
331
|
-
var isSymbol = isSymbol$2;
|
|
332
|
-
var toPropertyKey$3 = function(argument) {
|
|
333
|
-
var key = toPrimitive(argument, "string");
|
|
334
|
-
return isSymbol(key) ? key : key + "";
|
|
335
|
-
};
|
|
336
|
-
var global$3 = global$a;
|
|
337
|
-
var isObject$3 = isObject$6;
|
|
338
|
-
var document$1 = global$3.document;
|
|
339
|
-
var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
340
|
-
var documentCreateElement = function(it) {
|
|
341
|
-
return EXISTS ? document$1.createElement(it) : {};
|
|
342
|
-
};
|
|
343
|
-
var DESCRIPTORS$4 = descriptors;
|
|
344
|
-
var fails$6 = fails$b;
|
|
345
|
-
var createElement = documentCreateElement;
|
|
346
|
-
var ie8DomDefine = !DESCRIPTORS$4 && !fails$6(function() {
|
|
347
|
-
return Object.defineProperty(createElement("div"), "a", {
|
|
348
|
-
get: function() {
|
|
349
|
-
return 7;
|
|
350
|
-
}
|
|
351
|
-
}).a !== 7;
|
|
352
|
-
});
|
|
353
|
-
var DESCRIPTORS$3 = descriptors;
|
|
354
|
-
var call = functionCall;
|
|
355
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
356
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
357
|
-
var toIndexedObject = toIndexedObject$1;
|
|
358
|
-
var toPropertyKey$2 = toPropertyKey$3;
|
|
359
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
360
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
361
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
362
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
363
|
-
O = toIndexedObject(O);
|
|
364
|
-
P = toPropertyKey$2(P);
|
|
365
|
-
if (IE8_DOM_DEFINE$1)
|
|
366
|
-
try {
|
|
367
|
-
return $getOwnPropertyDescriptor$1(O, P);
|
|
368
|
-
} catch (error) {
|
|
369
|
-
}
|
|
370
|
-
if (hasOwn$1(O, P))
|
|
371
|
-
return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
372
|
-
};
|
|
373
|
-
var fails$5 = fails$b;
|
|
374
|
-
var isCallable$4 = isCallable$a;
|
|
375
|
-
var replacement = /#|\.prototype\./;
|
|
376
|
-
var isForced$1 = function(feature, detection) {
|
|
377
|
-
var value = data[normalize(feature)];
|
|
378
|
-
return value === POLYFILL ? true : value === NATIVE ? false : isCallable$4(detection) ? fails$5(detection) : !!detection;
|
|
379
|
-
};
|
|
380
|
-
var normalize = isForced$1.normalize = function(string) {
|
|
381
|
-
return String(string).replace(replacement, ".").toLowerCase();
|
|
382
|
-
};
|
|
383
|
-
var data = isForced$1.data = {};
|
|
384
|
-
var NATIVE = isForced$1.NATIVE = "N";
|
|
385
|
-
var POLYFILL = isForced$1.POLYFILL = "P";
|
|
386
|
-
var isForced_1 = isForced$1;
|
|
387
|
-
var uncurryThis$5 = functionUncurryThisClause;
|
|
388
|
-
var aCallable = aCallable$2;
|
|
389
|
-
var NATIVE_BIND = functionBindNative;
|
|
390
|
-
var bind$1 = uncurryThis$5(uncurryThis$5.bind);
|
|
391
|
-
var functionBindContext = function(fn, that) {
|
|
392
|
-
aCallable(fn);
|
|
393
|
-
return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
|
|
394
|
-
return fn.apply(that, arguments);
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
var objectDefineProperty = {};
|
|
398
|
-
var DESCRIPTORS$2 = descriptors;
|
|
399
|
-
var fails$4 = fails$b;
|
|
400
|
-
var v8PrototypeDefineBug = DESCRIPTORS$2 && fails$4(function() {
|
|
401
|
-
return Object.defineProperty(function() {
|
|
402
|
-
}, "prototype", {
|
|
403
|
-
value: 42,
|
|
404
|
-
writable: false
|
|
405
|
-
}).prototype !== 42;
|
|
406
|
-
});
|
|
407
|
-
var isObject$2 = isObject$6;
|
|
408
|
-
var $String$1 = String;
|
|
409
|
-
var $TypeError$2 = TypeError;
|
|
410
|
-
var anObject$1 = function(argument) {
|
|
411
|
-
if (isObject$2(argument))
|
|
412
|
-
return argument;
|
|
413
|
-
throw $TypeError$2($String$1(argument) + " is not an object");
|
|
414
|
-
};
|
|
415
|
-
var DESCRIPTORS$1 = descriptors;
|
|
416
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
417
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
418
|
-
var anObject = anObject$1;
|
|
419
|
-
var toPropertyKey$1 = toPropertyKey$3;
|
|
420
|
-
var $TypeError$1 = TypeError;
|
|
421
|
-
var $defineProperty = Object.defineProperty;
|
|
422
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
423
|
-
var ENUMERABLE = "enumerable";
|
|
424
|
-
var CONFIGURABLE = "configurable";
|
|
425
|
-
var WRITABLE = "writable";
|
|
426
|
-
objectDefineProperty.f = DESCRIPTORS$1 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty2(O, P, Attributes) {
|
|
427
|
-
anObject(O);
|
|
428
|
-
P = toPropertyKey$1(P);
|
|
429
|
-
anObject(Attributes);
|
|
430
|
-
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
431
|
-
var current = $getOwnPropertyDescriptor(O, P);
|
|
432
|
-
if (current && current[WRITABLE]) {
|
|
433
|
-
O[P] = Attributes.value;
|
|
434
|
-
Attributes = {
|
|
435
|
-
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
436
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
437
|
-
writable: false
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
return $defineProperty(O, P, Attributes);
|
|
442
|
-
} : $defineProperty : function defineProperty3(O, P, Attributes) {
|
|
443
|
-
anObject(O);
|
|
444
|
-
P = toPropertyKey$1(P);
|
|
445
|
-
anObject(Attributes);
|
|
446
|
-
if (IE8_DOM_DEFINE)
|
|
447
|
-
try {
|
|
448
|
-
return $defineProperty(O, P, Attributes);
|
|
449
|
-
} catch (error) {
|
|
450
|
-
}
|
|
451
|
-
if ("get" in Attributes || "set" in Attributes)
|
|
452
|
-
throw $TypeError$1("Accessors not supported");
|
|
453
|
-
if ("value" in Attributes)
|
|
454
|
-
O[P] = Attributes.value;
|
|
455
|
-
return O;
|
|
456
|
-
};
|
|
457
|
-
var DESCRIPTORS = descriptors;
|
|
458
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
459
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
460
|
-
var createNonEnumerableProperty$1 = DESCRIPTORS ? function(object, key, value) {
|
|
461
|
-
return definePropertyModule$1.f(object, key, createPropertyDescriptor$1(1, value));
|
|
462
|
-
} : function(object, key, value) {
|
|
463
|
-
object[key] = value;
|
|
464
|
-
return object;
|
|
465
|
-
};
|
|
466
|
-
var global$2 = global$a;
|
|
467
|
-
var apply = functionApply;
|
|
468
|
-
var uncurryThis$4 = functionUncurryThisClause;
|
|
469
|
-
var isCallable$3 = isCallable$a;
|
|
470
|
-
var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
|
|
471
|
-
var isForced = isForced_1;
|
|
472
|
-
var path$2 = path$4;
|
|
473
|
-
var bind = functionBindContext;
|
|
474
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$1;
|
|
475
|
-
var hasOwn2 = hasOwnProperty_1;
|
|
476
|
-
var wrapConstructor = function(NativeConstructor) {
|
|
477
|
-
var Wrapper = function(a, b, c) {
|
|
478
|
-
if (this instanceof Wrapper) {
|
|
479
|
-
switch (arguments.length) {
|
|
480
|
-
case 0:
|
|
481
|
-
return new NativeConstructor();
|
|
482
|
-
case 1:
|
|
483
|
-
return new NativeConstructor(a);
|
|
484
|
-
case 2:
|
|
485
|
-
return new NativeConstructor(a, b);
|
|
486
|
-
}
|
|
487
|
-
return new NativeConstructor(a, b, c);
|
|
488
|
-
}
|
|
489
|
-
return apply(NativeConstructor, this, arguments);
|
|
490
|
-
};
|
|
491
|
-
Wrapper.prototype = NativeConstructor.prototype;
|
|
492
|
-
return Wrapper;
|
|
493
|
-
};
|
|
494
|
-
var _export = function(options, source) {
|
|
495
|
-
var TARGET = options.target;
|
|
496
|
-
var GLOBAL = options.global;
|
|
497
|
-
var STATIC = options.stat;
|
|
498
|
-
var PROTO = options.proto;
|
|
499
|
-
var nativeSource = GLOBAL ? global$2 : STATIC ? global$2[TARGET] : (global$2[TARGET] || {}).prototype;
|
|
500
|
-
var target = GLOBAL ? path$2 : path$2[TARGET] || createNonEnumerableProperty(path$2, TARGET, {})[TARGET];
|
|
501
|
-
var targetPrototype = target.prototype;
|
|
502
|
-
var FORCED2, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
503
|
-
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
|
|
504
|
-
for (key in source) {
|
|
505
|
-
FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
506
|
-
USE_NATIVE = !FORCED2 && nativeSource && hasOwn2(nativeSource, key);
|
|
507
|
-
targetProperty = target[key];
|
|
508
|
-
if (USE_NATIVE)
|
|
509
|
-
if (options.dontCallGetSet) {
|
|
510
|
-
descriptor = getOwnPropertyDescriptor2(nativeSource, key);
|
|
511
|
-
nativeProperty = descriptor && descriptor.value;
|
|
512
|
-
} else
|
|
513
|
-
nativeProperty = nativeSource[key];
|
|
514
|
-
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
515
|
-
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
516
|
-
continue;
|
|
517
|
-
if (options.bind && USE_NATIVE)
|
|
518
|
-
resultProperty = bind(sourceProperty, global$2);
|
|
519
|
-
else if (options.wrap && USE_NATIVE)
|
|
520
|
-
resultProperty = wrapConstructor(sourceProperty);
|
|
521
|
-
else if (PROTO && isCallable$3(sourceProperty))
|
|
522
|
-
resultProperty = uncurryThis$4(sourceProperty);
|
|
523
|
-
else
|
|
524
|
-
resultProperty = sourceProperty;
|
|
525
|
-
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
526
|
-
createNonEnumerableProperty(resultProperty, "sham", true);
|
|
527
|
-
}
|
|
528
|
-
createNonEnumerableProperty(target, key, resultProperty);
|
|
529
|
-
if (PROTO) {
|
|
530
|
-
VIRTUAL_PROTOTYPE = TARGET + "Prototype";
|
|
531
|
-
if (!hasOwn2(path$2, VIRTUAL_PROTOTYPE)) {
|
|
532
|
-
createNonEnumerableProperty(path$2, VIRTUAL_PROTOTYPE, {});
|
|
533
|
-
}
|
|
534
|
-
createNonEnumerableProperty(path$2[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
535
|
-
if (options.real && targetPrototype && (FORCED2 || !targetPrototype[key])) {
|
|
536
|
-
createNonEnumerableProperty(targetPrototype, key, sourceProperty);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
var classof$3 = classofRaw$2;
|
|
542
|
-
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
543
|
-
return classof$3(argument) === "Array";
|
|
544
|
-
};
|
|
545
|
-
var ceil = Math.ceil;
|
|
546
|
-
var floor = Math.floor;
|
|
547
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
548
|
-
var n = +x;
|
|
549
|
-
return (n > 0 ? floor : ceil)(n);
|
|
550
|
-
};
|
|
551
|
-
var trunc2 = mathTrunc;
|
|
552
|
-
var toIntegerOrInfinity$1 = function(argument) {
|
|
553
|
-
var number = +argument;
|
|
554
|
-
return number !== number || number === 0 ? 0 : trunc2(number);
|
|
555
|
-
};
|
|
556
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$1;
|
|
557
|
-
var min = Math.min;
|
|
558
|
-
var toLength$1 = function(argument) {
|
|
559
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
|
|
560
|
-
};
|
|
561
|
-
var toLength = toLength$1;
|
|
562
|
-
var lengthOfArrayLike$1 = function(obj) {
|
|
563
|
-
return toLength(obj.length);
|
|
564
|
-
};
|
|
565
|
-
var $TypeError = TypeError;
|
|
566
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
567
|
-
var doesNotExceedSafeInteger$1 = function(it) {
|
|
568
|
-
if (it > MAX_SAFE_INTEGER)
|
|
569
|
-
throw $TypeError("Maximum allowed index exceeded");
|
|
570
|
-
return it;
|
|
571
|
-
};
|
|
572
|
-
var toPropertyKey = toPropertyKey$3;
|
|
573
|
-
var definePropertyModule = objectDefineProperty;
|
|
574
|
-
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
575
|
-
var createProperty$1 = function(object, key, value) {
|
|
576
|
-
var propertyKey = toPropertyKey(key);
|
|
577
|
-
if (propertyKey in object)
|
|
578
|
-
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
579
|
-
else
|
|
580
|
-
object[propertyKey] = value;
|
|
581
|
-
};
|
|
582
|
-
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
583
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$4("toStringTag");
|
|
584
|
-
var test = {};
|
|
585
|
-
test[TO_STRING_TAG$1] = "z";
|
|
586
|
-
var toStringTagSupport = String(test) === "[object z]";
|
|
587
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
588
|
-
var isCallable$2 = isCallable$a;
|
|
589
|
-
var classofRaw = classofRaw$2;
|
|
590
|
-
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
591
|
-
var TO_STRING_TAG = wellKnownSymbol$3("toStringTag");
|
|
592
|
-
var $Object = Object;
|
|
593
|
-
var CORRECT_ARGUMENTS = classofRaw(function() {
|
|
594
|
-
return arguments;
|
|
595
|
-
}()) === "Arguments";
|
|
596
|
-
var tryGet = function(it, key) {
|
|
597
|
-
try {
|
|
598
|
-
return it[key];
|
|
599
|
-
} catch (error) {
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
|
|
603
|
-
var O, tag, result;
|
|
604
|
-
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$2(O.callee) ? "Arguments" : result;
|
|
605
|
-
};
|
|
606
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
607
|
-
var isCallable$1 = isCallable$a;
|
|
608
|
-
var store = sharedStore;
|
|
609
|
-
var functionToString = uncurryThis$3(Function.toString);
|
|
610
|
-
if (!isCallable$1(store.inspectSource)) {
|
|
611
|
-
store.inspectSource = function(it) {
|
|
612
|
-
return functionToString(it);
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
var inspectSource$1 = store.inspectSource;
|
|
616
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
617
|
-
var fails$3 = fails$b;
|
|
618
|
-
var isCallable = isCallable$a;
|
|
619
|
-
var classof$1 = classof$2;
|
|
620
|
-
var getBuiltIn = getBuiltIn$2;
|
|
621
|
-
var inspectSource = inspectSource$1;
|
|
622
|
-
var noop = function() {
|
|
623
|
-
};
|
|
624
|
-
var empty = [];
|
|
625
|
-
var construct = getBuiltIn("Reflect", "construct");
|
|
626
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
627
|
-
var exec$1 = uncurryThis$2(constructorRegExp.exec);
|
|
628
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
629
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
630
|
-
if (!isCallable(argument))
|
|
631
|
-
return false;
|
|
632
|
-
try {
|
|
633
|
-
construct(noop, empty, argument);
|
|
634
|
-
return true;
|
|
635
|
-
} catch (error) {
|
|
636
|
-
return false;
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
var isConstructorLegacy = function isConstructor2(argument) {
|
|
640
|
-
if (!isCallable(argument))
|
|
641
|
-
return false;
|
|
642
|
-
switch (classof$1(argument)) {
|
|
643
|
-
case "AsyncFunction":
|
|
644
|
-
case "GeneratorFunction":
|
|
645
|
-
case "AsyncGeneratorFunction":
|
|
646
|
-
return false;
|
|
647
|
-
}
|
|
648
|
-
try {
|
|
649
|
-
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
|
650
|
-
} catch (error) {
|
|
651
|
-
return true;
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
isConstructorLegacy.sham = true;
|
|
655
|
-
var isConstructor$1 = !construct || fails$3(function() {
|
|
656
|
-
var called;
|
|
657
|
-
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
|
|
658
|
-
called = true;
|
|
659
|
-
}) || called;
|
|
660
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
661
|
-
var isArray$1 = isArray$2;
|
|
662
|
-
var isConstructor3 = isConstructor$1;
|
|
663
|
-
var isObject$1 = isObject$6;
|
|
664
|
-
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
665
|
-
var SPECIES$1 = wellKnownSymbol$2("species");
|
|
666
|
-
var $Array = Array;
|
|
667
|
-
var arraySpeciesConstructor$1 = function(originalArray) {
|
|
668
|
-
var C;
|
|
669
|
-
if (isArray$1(originalArray)) {
|
|
670
|
-
C = originalArray.constructor;
|
|
671
|
-
if (isConstructor3(C) && (C === $Array || isArray$1(C.prototype)))
|
|
672
|
-
C = void 0;
|
|
673
|
-
else if (isObject$1(C)) {
|
|
674
|
-
C = C[SPECIES$1];
|
|
675
|
-
if (C === null)
|
|
676
|
-
C = void 0;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
return C === void 0 ? $Array : C;
|
|
680
|
-
};
|
|
681
|
-
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
682
|
-
var arraySpeciesCreate$1 = function(originalArray, length) {
|
|
683
|
-
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
684
|
-
};
|
|
685
|
-
var fails$2 = fails$b;
|
|
686
|
-
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
687
|
-
var V8_VERSION$1 = engineV8Version;
|
|
688
|
-
var SPECIES = wellKnownSymbol$1("species");
|
|
689
|
-
var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
|
|
690
|
-
return V8_VERSION$1 >= 51 || !fails$2(function() {
|
|
691
|
-
var array = [];
|
|
692
|
-
var constructor = array.constructor = {};
|
|
693
|
-
constructor[SPECIES] = function() {
|
|
694
|
-
return {
|
|
695
|
-
foo: 1
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
699
|
-
});
|
|
700
|
-
};
|
|
701
|
-
var $$1 = _export;
|
|
702
|
-
var fails$1 = fails$b;
|
|
703
|
-
var isArray2 = isArray$2;
|
|
704
|
-
var isObject = isObject$6;
|
|
705
|
-
var toObject = toObject$2;
|
|
706
|
-
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
707
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
708
|
-
var createProperty = createProperty$1;
|
|
709
|
-
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
710
|
-
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
711
|
-
var wellKnownSymbol = wellKnownSymbol$6;
|
|
712
|
-
var V8_VERSION = engineV8Version;
|
|
713
|
-
var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
|
|
714
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function() {
|
|
715
|
-
var array = [];
|
|
716
|
-
array[IS_CONCAT_SPREADABLE] = false;
|
|
717
|
-
return array.concat()[0] !== array;
|
|
718
|
-
});
|
|
719
|
-
var isConcatSpreadable = function(O) {
|
|
720
|
-
if (!isObject(O))
|
|
721
|
-
return false;
|
|
722
|
-
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
723
|
-
return spreadable !== void 0 ? !!spreadable : isArray2(O);
|
|
724
|
-
};
|
|
725
|
-
var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport("concat");
|
|
726
|
-
$$1({
|
|
727
|
-
target: "Array",
|
|
728
|
-
proto: true,
|
|
729
|
-
arity: 1,
|
|
730
|
-
forced: FORCED$1
|
|
731
|
-
}, {
|
|
732
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
733
|
-
concat: function concat(arg) {
|
|
734
|
-
var O = toObject(this);
|
|
735
|
-
var A = arraySpeciesCreate(O, 0);
|
|
736
|
-
var n = 0;
|
|
737
|
-
var i, k, length, len, E;
|
|
738
|
-
for (i = -1, length = arguments.length; i < length; i++) {
|
|
739
|
-
E = i === -1 ? O : arguments[i];
|
|
740
|
-
if (isConcatSpreadable(E)) {
|
|
741
|
-
len = lengthOfArrayLike(E);
|
|
742
|
-
doesNotExceedSafeInteger(n + len);
|
|
743
|
-
for (k = 0; k < len; k++, n++)
|
|
744
|
-
if (k in E)
|
|
745
|
-
createProperty(A, n, E[k]);
|
|
746
|
-
} else {
|
|
747
|
-
doesNotExceedSafeInteger(n + 1);
|
|
748
|
-
createProperty(A, n++, E);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
A.length = n;
|
|
752
|
-
return A;
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
var path$1 = path$4;
|
|
756
|
-
var entryVirtual$1 = function(CONSTRUCTOR) {
|
|
757
|
-
return path$1[CONSTRUCTOR + "Prototype"];
|
|
758
|
-
};
|
|
759
|
-
var entryVirtual = entryVirtual$1;
|
|
760
|
-
var concat$6 = entryVirtual("Array").concat;
|
|
761
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
762
|
-
var method = concat$6;
|
|
763
|
-
var ArrayPrototype = Array.prototype;
|
|
764
|
-
var concat$5 = function(it) {
|
|
765
|
-
var own = it.concat;
|
|
766
|
-
return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.concat ? method : own;
|
|
767
|
-
};
|
|
768
|
-
var parent$5 = concat$5;
|
|
769
|
-
var concat$4 = parent$5;
|
|
770
|
-
var parent$4 = concat$4;
|
|
771
|
-
var concat$3 = parent$4;
|
|
772
|
-
var parent$3 = concat$3;
|
|
773
|
-
var concat$2 = parent$3;
|
|
774
|
-
var concat$1 = concat$2;
|
|
775
|
-
var concat2 = concat$1;
|
|
776
|
-
const _concatInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(concat2);
|
|
777
|
-
var classof = classof$2;
|
|
778
|
-
var $String = String;
|
|
779
|
-
var toString$2 = function(argument) {
|
|
780
|
-
if (classof(argument) === "Symbol")
|
|
781
|
-
throw TypeError("Cannot convert a Symbol value to a string");
|
|
782
|
-
return $String(argument);
|
|
783
|
-
};
|
|
784
|
-
var whitespaces$2 = " \n\v\f\r \u2028\u2029\uFEFF";
|
|
785
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
786
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
787
|
-
var toString$1 = toString$2;
|
|
788
|
-
var whitespaces$1 = whitespaces$2;
|
|
789
|
-
var replace = uncurryThis$1("".replace);
|
|
790
|
-
var ltrim = RegExp("^[" + whitespaces$1 + "]+");
|
|
791
|
-
var rtrim = RegExp("(^|[^" + whitespaces$1 + "])[" + whitespaces$1 + "]+$");
|
|
792
|
-
var createMethod = function(TYPE) {
|
|
793
|
-
return function($this) {
|
|
794
|
-
var string = toString$1(requireObjectCoercible($this));
|
|
795
|
-
if (TYPE & 1)
|
|
796
|
-
string = replace(string, ltrim, "");
|
|
797
|
-
if (TYPE & 2)
|
|
798
|
-
string = replace(string, rtrim, "$1");
|
|
799
|
-
return string;
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
var stringTrim = {
|
|
803
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
804
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
805
|
-
start: createMethod(1),
|
|
806
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
807
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
808
|
-
end: createMethod(2),
|
|
809
|
-
// `String.prototype.trim` method
|
|
810
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
811
|
-
trim: createMethod(3)
|
|
812
|
-
};
|
|
813
|
-
var global$1 = global$a;
|
|
814
|
-
var fails = fails$b;
|
|
815
|
-
var uncurryThis = functionUncurryThis;
|
|
816
|
-
var toString = toString$2;
|
|
817
|
-
var trim = stringTrim.trim;
|
|
818
|
-
var whitespaces = whitespaces$2;
|
|
819
|
-
var $parseInt$1 = global$1.parseInt;
|
|
820
|
-
var Symbol$1 = global$1.Symbol;
|
|
821
|
-
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
822
|
-
var hex = /^[+-]?0x/i;
|
|
823
|
-
var exec = uncurryThis(hex.exec);
|
|
824
|
-
var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR && !fails(function() {
|
|
825
|
-
$parseInt$1(Object(ITERATOR));
|
|
826
|
-
});
|
|
827
|
-
var numberParseInt = FORCED ? function parseInt2(string, radix) {
|
|
828
|
-
var S = trim(toString(string));
|
|
829
|
-
return $parseInt$1(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
|
|
830
|
-
} : $parseInt$1;
|
|
831
|
-
var $ = _export;
|
|
832
|
-
var $parseInt = numberParseInt;
|
|
833
|
-
$({
|
|
834
|
-
global: true,
|
|
835
|
-
forced: parseInt !== $parseInt
|
|
836
|
-
}, {
|
|
837
|
-
parseInt: $parseInt
|
|
838
|
-
});
|
|
839
|
-
var path = path$4;
|
|
840
|
-
var _parseInt$6 = path.parseInt;
|
|
841
|
-
var parent$2 = _parseInt$6;
|
|
842
|
-
var _parseInt$5 = parent$2;
|
|
843
|
-
var parent$1 = _parseInt$5;
|
|
844
|
-
var _parseInt$4 = parent$1;
|
|
845
|
-
var parent = _parseInt$4;
|
|
846
|
-
var _parseInt$3 = parent;
|
|
847
|
-
var _parseInt$2 = _parseInt$3;
|
|
848
|
-
var _parseInt = _parseInt$2;
|
|
849
|
-
const _parseInt$1 = /* @__PURE__ */ getDefaultExportFromCjs(_parseInt);
|
|
850
16
|
function HexToRgb(str) {
|
|
851
|
-
|
|
17
|
+
const r = /^#?[0-9A-Fa-f]{6}$/;
|
|
852
18
|
if (!r.test(str))
|
|
853
19
|
return;
|
|
854
20
|
str = str.replace("#", "");
|
|
855
|
-
|
|
856
|
-
for (
|
|
857
|
-
hxs[i] =
|
|
21
|
+
const hxs = str.match(/../g);
|
|
22
|
+
for (let i = 0; i < 3; i++) {
|
|
23
|
+
hxs[i] = parseInt(hxs[i], 16);
|
|
858
24
|
}
|
|
859
25
|
return hxs;
|
|
860
26
|
}
|
|
861
27
|
function RgbToHex(a, b, c) {
|
|
862
|
-
|
|
28
|
+
const r = /^\d{1,3}$/;
|
|
863
29
|
if (!r.test(String(a)) || !r.test(String(b)) || !r.test(String(c)))
|
|
864
30
|
return;
|
|
865
|
-
|
|
866
|
-
for (
|
|
31
|
+
const hexs = [a.toString(16), b.toString(16), c.toString(16)];
|
|
32
|
+
for (let i = 0; i < 3; i++)
|
|
867
33
|
if (hexs[i].length === 1)
|
|
868
34
|
hexs[i] = "0" + hexs[i];
|
|
869
35
|
return "#" + hexs.join("");
|
|
870
36
|
}
|
|
871
37
|
function getDarkColor(color, level) {
|
|
872
|
-
|
|
38
|
+
const r = /^#?[0-9A-Fa-f]{6}$/;
|
|
873
39
|
if (!r.test(color))
|
|
874
40
|
return color;
|
|
875
|
-
|
|
876
|
-
for (
|
|
41
|
+
const rgbc = HexToRgb(color);
|
|
42
|
+
for (let i = 0; i < 3; i++) {
|
|
877
43
|
rgbc[i] = Math.floor(rgbc[i] * (1 - level));
|
|
878
44
|
}
|
|
879
45
|
return RgbToHex(rgbc[0], rgbc[1], rgbc[2]);
|
|
880
46
|
}
|
|
881
47
|
function getLightColor(color, level) {
|
|
882
|
-
|
|
48
|
+
const r = /^#?[0-9A-Fa-f]{6}$/;
|
|
883
49
|
if (!r.test(color))
|
|
884
50
|
return color;
|
|
885
|
-
|
|
886
|
-
for (
|
|
51
|
+
const rgbc = HexToRgb(color);
|
|
52
|
+
for (let i = 0; i < 3; i++) {
|
|
887
53
|
rgbc[i] = Math.floor((255 - rgbc[i]) * level + rgbc[i]);
|
|
888
54
|
}
|
|
889
55
|
return RgbToHex(rgbc[0], rgbc[1], rgbc[2]);
|
|
890
56
|
}
|
|
891
|
-
|
|
57
|
+
const __default__ = defineComponent({
|
|
892
58
|
name: "nf-svg-icon",
|
|
893
59
|
props: {
|
|
894
60
|
prefix: {
|
|
895
61
|
type: String,
|
|
896
|
-
|
|
62
|
+
default: "icon"
|
|
897
63
|
},
|
|
898
64
|
name: {
|
|
899
65
|
type: String,
|
|
@@ -901,43 +67,42 @@ var __default__ = defineComponent({
|
|
|
901
67
|
},
|
|
902
68
|
color: {
|
|
903
69
|
type: String,
|
|
904
|
-
|
|
70
|
+
default: "#333"
|
|
905
71
|
},
|
|
906
72
|
bgColor: {
|
|
907
73
|
type: String,
|
|
908
|
-
|
|
74
|
+
default: "transparent"
|
|
909
75
|
},
|
|
910
76
|
outerSize: {
|
|
911
77
|
type: String,
|
|
912
|
-
|
|
78
|
+
default: "35px"
|
|
913
79
|
},
|
|
914
80
|
innerSize: {
|
|
915
81
|
type: String,
|
|
916
|
-
|
|
82
|
+
default: "14px"
|
|
917
83
|
},
|
|
918
84
|
cursor: {
|
|
919
85
|
type: String,
|
|
920
|
-
|
|
86
|
+
default: "auto"
|
|
921
87
|
}
|
|
922
88
|
},
|
|
923
|
-
setup
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
return _concatInstanceProperty(_context = "#".concat(props.prefix, "-")).call(_context, props.name);
|
|
89
|
+
setup(props) {
|
|
90
|
+
const symbolId = computed(() => {
|
|
91
|
+
return `#${props.prefix}-${props.name}`;
|
|
927
92
|
});
|
|
928
|
-
|
|
929
|
-
return
|
|
93
|
+
const outerSizeNumber = computed(() => {
|
|
94
|
+
return parseInt(props.outerSize);
|
|
930
95
|
});
|
|
931
|
-
|
|
932
|
-
return
|
|
96
|
+
const innerSizeNumber = computed(() => {
|
|
97
|
+
return parseInt(props.innerSize);
|
|
933
98
|
});
|
|
934
|
-
|
|
935
|
-
return
|
|
99
|
+
const outerSizePx = computed(() => {
|
|
100
|
+
return `${outerSizeNumber.value}px`;
|
|
936
101
|
});
|
|
937
|
-
|
|
102
|
+
const hoverBgColor = computed(() => {
|
|
938
103
|
return getDarkColor(props.bgColor, 0.03);
|
|
939
104
|
});
|
|
940
|
-
|
|
105
|
+
const hoverColor = computed(() => {
|
|
941
106
|
return getLightColor(props.color, 0.9);
|
|
942
107
|
});
|
|
943
108
|
return {
|
|
@@ -950,33 +115,30 @@ var __default__ = defineComponent({
|
|
|
950
115
|
};
|
|
951
116
|
}
|
|
952
117
|
});
|
|
953
|
-
|
|
954
|
-
useCssVars(
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
var __setup__ = __default__.setup;
|
|
966
|
-
__default__.setup = __setup__ ? function(props, ctx) {
|
|
118
|
+
const __injectCSSVars__ = () => {
|
|
119
|
+
useCssVars((_vm, _setup) => ({
|
|
120
|
+
"281fb73e": _vm.outerSizePx,
|
|
121
|
+
"9bb3cbc8": _vm.cursor,
|
|
122
|
+
"433ae818": _vm.bgColor,
|
|
123
|
+
"158f9046": _vm.color,
|
|
124
|
+
"f106b8f0": _vm.hoverBgColor,
|
|
125
|
+
"aedbe166": _vm.hoverColor
|
|
126
|
+
}));
|
|
127
|
+
};
|
|
128
|
+
const __setup__ = __default__.setup;
|
|
129
|
+
__default__.setup = __setup__ ? (props, ctx) => {
|
|
967
130
|
__injectCSSVars__();
|
|
968
131
|
return __setup__(props, ctx);
|
|
969
132
|
} : __injectCSSVars__;
|
|
970
133
|
const nfSvgIcon_vue_vue_type_style_index_0_scoped_aa129a29_lang = "";
|
|
971
134
|
var _sfc_render = function render() {
|
|
972
|
-
var _context, _context2, _context3;
|
|
973
135
|
var _vm = this, _c = _vm._self._c;
|
|
974
136
|
_vm._self._setupProxy;
|
|
975
137
|
return _c("svg", _vm._b({
|
|
976
138
|
staticClass: "nf-svg-icon",
|
|
977
139
|
attrs: {
|
|
978
140
|
"aria-hidden": "true",
|
|
979
|
-
"viewBox":
|
|
141
|
+
"viewBox": `-${_vm.outerSizeNumber / 2 - _vm.innerSizeNumber / 2} -${_vm.outerSizeNumber / 2 - _vm.innerSizeNumber / 2} ${_vm.outerSizeNumber} ${_vm.outerSizeNumber}`
|
|
980
142
|
}
|
|
981
143
|
}, "svg", _vm.$attrs, false), [_c("use", {
|
|
982
144
|
attrs: {
|
|
@@ -990,7 +152,7 @@ var _sfc_render = function render() {
|
|
|
990
152
|
var _sfc_staticRenderFns = [];
|
|
991
153
|
var __component__ = /* @__PURE__ */ normalizeComponent(__default__, _sfc_render, _sfc_staticRenderFns, false, null, "aa129a29", null, null);
|
|
992
154
|
const NfSvgIcon = __component__.exports;
|
|
993
|
-
NfSvgIcon.install =
|
|
155
|
+
NfSvgIcon.install = (app) => {
|
|
994
156
|
app.component("nf-svg-icon", NfSvgIcon);
|
|
995
157
|
};
|
|
996
158
|
export {
|