@94ai/nf-text-overflow 3.1.37 → 3.1.38
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-text-overflow.cjs.js +58 -1522
- package/lib/nf-text-overflow.esm-bundler.js +57 -1521
- package/package/index.ts +8 -0
- package/package/nf-text-overflow.vue +151 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +1 -0
- package/package.json +3 -3
|
@@ -1,1414 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, useSlots, onMounted, onUnmounted, watch } from "vue-demi";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
5
|
-
}
|
|
6
|
-
var fails$c = function(exec2) {
|
|
7
|
-
try {
|
|
8
|
-
return !!exec2();
|
|
9
|
-
} catch (error) {
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
var fails$b = fails$c;
|
|
14
|
-
var functionBindNative = !fails$b(function() {
|
|
15
|
-
var test2 = (function() {
|
|
16
|
-
}).bind();
|
|
17
|
-
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
18
|
-
});
|
|
19
|
-
var NATIVE_BIND$3 = functionBindNative;
|
|
20
|
-
var FunctionPrototype$2 = Function.prototype;
|
|
21
|
-
var call$6 = FunctionPrototype$2.call;
|
|
22
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$6, call$6);
|
|
23
|
-
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
|
|
24
|
-
return function() {
|
|
25
|
-
return call$6.apply(fn, arguments);
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
var uncurryThis$c = functionUncurryThis;
|
|
29
|
-
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
30
|
-
var check = function(it) {
|
|
31
|
-
return it && it.Math == Math && it;
|
|
32
|
-
};
|
|
33
|
-
var global$c = (
|
|
34
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
35
|
-
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
36
|
-
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
37
|
-
function() {
|
|
38
|
-
return this;
|
|
39
|
-
}() || commonjsGlobal || Function("return this")()
|
|
40
|
-
);
|
|
41
|
-
var NATIVE_BIND$2 = functionBindNative;
|
|
42
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
43
|
-
var apply$1 = FunctionPrototype$1.apply;
|
|
44
|
-
var call$5 = FunctionPrototype$1.call;
|
|
45
|
-
var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$5.bind(apply$1) : function() {
|
|
46
|
-
return call$5.apply(apply$1, arguments);
|
|
47
|
-
});
|
|
48
|
-
var uncurryThis$b = functionUncurryThis;
|
|
49
|
-
var toString$2 = uncurryThis$b({}.toString);
|
|
50
|
-
var stringSlice = uncurryThis$b("".slice);
|
|
51
|
-
var classofRaw$2 = function(it) {
|
|
52
|
-
return stringSlice(toString$2(it), 8, -1);
|
|
53
|
-
};
|
|
54
|
-
var classofRaw$1 = classofRaw$2;
|
|
55
|
-
var uncurryThis$a = functionUncurryThis;
|
|
56
|
-
var functionUncurryThisClause = function(fn) {
|
|
57
|
-
if (classofRaw$1(fn) === "Function")
|
|
58
|
-
return uncurryThis$a(fn);
|
|
59
|
-
};
|
|
60
|
-
var documentAll$2 = typeof document == "object" && document.all;
|
|
61
|
-
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
62
|
-
var documentAll_1 = {
|
|
63
|
-
all: documentAll$2,
|
|
64
|
-
IS_HTMLDDA
|
|
65
|
-
};
|
|
66
|
-
var $documentAll$1 = documentAll_1;
|
|
67
|
-
var documentAll$1 = $documentAll$1.all;
|
|
68
|
-
var isCallable$d = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
69
|
-
return typeof argument == "function" || argument === documentAll$1;
|
|
70
|
-
} : function(argument) {
|
|
71
|
-
return typeof argument == "function";
|
|
72
|
-
};
|
|
73
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
74
|
-
var fails$a = fails$c;
|
|
75
|
-
var descriptors = !fails$a(function() {
|
|
76
|
-
return Object.defineProperty({}, 1, {
|
|
77
|
-
get: function() {
|
|
78
|
-
return 7;
|
|
79
|
-
}
|
|
80
|
-
})[1] != 7;
|
|
81
|
-
});
|
|
82
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
83
|
-
var call$4 = Function.prototype.call;
|
|
84
|
-
var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
|
|
85
|
-
return call$4.apply(call$4, arguments);
|
|
86
|
-
};
|
|
87
|
-
var objectPropertyIsEnumerable = {};
|
|
88
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
89
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
90
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
|
|
91
|
-
1: 2
|
|
92
|
-
}, 1);
|
|
93
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
94
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
95
|
-
return !!descriptor && descriptor.enumerable;
|
|
96
|
-
} : $propertyIsEnumerable;
|
|
97
|
-
var createPropertyDescriptor$4 = function(bitmap, value) {
|
|
98
|
-
return {
|
|
99
|
-
enumerable: !(bitmap & 1),
|
|
100
|
-
configurable: !(bitmap & 2),
|
|
101
|
-
writable: !(bitmap & 4),
|
|
102
|
-
value
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
106
|
-
var fails$9 = fails$c;
|
|
107
|
-
var classof$6 = classofRaw$2;
|
|
108
|
-
var $Object$4 = Object;
|
|
109
|
-
var split = uncurryThis$9("".split);
|
|
110
|
-
var indexedObject = fails$9(function() {
|
|
111
|
-
return !$Object$4("z").propertyIsEnumerable(0);
|
|
112
|
-
}) ? function(it) {
|
|
113
|
-
return classof$6(it) == "String" ? split(it, "") : $Object$4(it);
|
|
114
|
-
} : $Object$4;
|
|
115
|
-
var isNullOrUndefined$2 = function(it) {
|
|
116
|
-
return it === null || it === void 0;
|
|
117
|
-
};
|
|
118
|
-
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
119
|
-
var $TypeError$5 = TypeError;
|
|
120
|
-
var requireObjectCoercible$2 = function(it) {
|
|
121
|
-
if (isNullOrUndefined$1(it))
|
|
122
|
-
throw $TypeError$5("Can't call method on " + it);
|
|
123
|
-
return it;
|
|
124
|
-
};
|
|
125
|
-
var IndexedObject$1 = indexedObject;
|
|
126
|
-
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
127
|
-
var toIndexedObject$6 = function(it) {
|
|
128
|
-
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
129
|
-
};
|
|
130
|
-
var isCallable$c = isCallable$d;
|
|
131
|
-
var $documentAll = documentAll_1;
|
|
132
|
-
var documentAll = $documentAll.all;
|
|
133
|
-
var isObject$8 = $documentAll.IS_HTMLDDA ? function(it) {
|
|
134
|
-
return typeof it == "object" ? it !== null : isCallable$c(it) || it === documentAll;
|
|
135
|
-
} : function(it) {
|
|
136
|
-
return typeof it == "object" ? it !== null : isCallable$c(it);
|
|
137
|
-
};
|
|
138
|
-
var path$3 = {};
|
|
139
|
-
var path$2 = path$3;
|
|
140
|
-
var global$b = global$c;
|
|
141
|
-
var isCallable$b = isCallable$d;
|
|
142
|
-
var aFunction = function(variable) {
|
|
143
|
-
return isCallable$b(variable) ? variable : void 0;
|
|
144
|
-
};
|
|
145
|
-
var getBuiltIn$3 = function(namespace, method2) {
|
|
146
|
-
return arguments.length < 2 ? aFunction(path$2[namespace]) || aFunction(global$b[namespace]) : path$2[namespace] && path$2[namespace][method2] || global$b[namespace] && global$b[namespace][method2];
|
|
147
|
-
};
|
|
148
|
-
var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
|
|
149
|
-
var global$a = global$c;
|
|
150
|
-
var userAgent = engineUserAgent;
|
|
151
|
-
var process = global$a.process;
|
|
152
|
-
var Deno = global$a.Deno;
|
|
153
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
154
|
-
var v8 = versions && versions.v8;
|
|
155
|
-
var match, version;
|
|
156
|
-
if (v8) {
|
|
157
|
-
match = v8.split(".");
|
|
158
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
159
|
-
}
|
|
160
|
-
if (!version && userAgent) {
|
|
161
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
162
|
-
if (!match || match[1] >= 74) {
|
|
163
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
164
|
-
if (match)
|
|
165
|
-
version = +match[1];
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
var engineV8Version = version;
|
|
169
|
-
var V8_VERSION$1 = engineV8Version;
|
|
170
|
-
var fails$8 = fails$c;
|
|
171
|
-
var global$9 = global$c;
|
|
172
|
-
var $String$2 = global$9.String;
|
|
173
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function() {
|
|
174
|
-
var symbol = Symbol();
|
|
175
|
-
return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
176
|
-
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
177
|
-
});
|
|
178
|
-
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
179
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
180
|
-
var getBuiltIn$2 = getBuiltIn$3;
|
|
181
|
-
var isCallable$a = isCallable$d;
|
|
182
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
183
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
184
|
-
var $Object$3 = Object;
|
|
185
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
|
|
186
|
-
return typeof it == "symbol";
|
|
187
|
-
} : function(it) {
|
|
188
|
-
var $Symbol = getBuiltIn$2("Symbol");
|
|
189
|
-
return isCallable$a($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
190
|
-
};
|
|
191
|
-
var $String$1 = String;
|
|
192
|
-
var tryToString$1 = function(argument) {
|
|
193
|
-
try {
|
|
194
|
-
return $String$1(argument);
|
|
195
|
-
} catch (error) {
|
|
196
|
-
return "Object";
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
var isCallable$9 = isCallable$d;
|
|
200
|
-
var tryToString = tryToString$1;
|
|
201
|
-
var $TypeError$4 = TypeError;
|
|
202
|
-
var aCallable$2 = function(argument) {
|
|
203
|
-
if (isCallable$9(argument))
|
|
204
|
-
return argument;
|
|
205
|
-
throw $TypeError$4(tryToString(argument) + " is not a function");
|
|
206
|
-
};
|
|
207
|
-
var aCallable$1 = aCallable$2;
|
|
208
|
-
var isNullOrUndefined = isNullOrUndefined$2;
|
|
209
|
-
var getMethod$1 = function(V, P) {
|
|
210
|
-
var func = V[P];
|
|
211
|
-
return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
|
|
212
|
-
};
|
|
213
|
-
var call$3 = functionCall;
|
|
214
|
-
var isCallable$8 = isCallable$d;
|
|
215
|
-
var isObject$7 = isObject$8;
|
|
216
|
-
var $TypeError$3 = TypeError;
|
|
217
|
-
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
218
|
-
var fn, val;
|
|
219
|
-
if (pref === "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
|
|
220
|
-
return val;
|
|
221
|
-
if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$3(fn, input)))
|
|
222
|
-
return val;
|
|
223
|
-
if (pref !== "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
|
|
224
|
-
return val;
|
|
225
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
226
|
-
};
|
|
227
|
-
var shared$3 = { exports: {} };
|
|
228
|
-
var global$8 = global$c;
|
|
229
|
-
var defineProperty$1 = Object.defineProperty;
|
|
230
|
-
var defineGlobalProperty$1 = function(key, value) {
|
|
231
|
-
try {
|
|
232
|
-
defineProperty$1(global$8, key, {
|
|
233
|
-
value,
|
|
234
|
-
configurable: true,
|
|
235
|
-
writable: true
|
|
236
|
-
});
|
|
237
|
-
} catch (error) {
|
|
238
|
-
global$8[key] = value;
|
|
239
|
-
}
|
|
240
|
-
return value;
|
|
241
|
-
};
|
|
242
|
-
var global$7 = global$c;
|
|
243
|
-
var defineGlobalProperty = defineGlobalProperty$1;
|
|
244
|
-
var SHARED = "__core-js_shared__";
|
|
245
|
-
var store$3 = global$7[SHARED] || defineGlobalProperty(SHARED, {});
|
|
246
|
-
var sharedStore = store$3;
|
|
247
|
-
var store$2 = sharedStore;
|
|
248
|
-
(shared$3.exports = function(key, value) {
|
|
249
|
-
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
250
|
-
})("versions", []).push({
|
|
251
|
-
version: "3.31.1",
|
|
252
|
-
mode: "pure",
|
|
253
|
-
copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
|
|
254
|
-
license: "https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",
|
|
255
|
-
source: "https://github.com/zloirock/core-js"
|
|
256
|
-
});
|
|
257
|
-
var sharedExports = shared$3.exports;
|
|
258
|
-
var requireObjectCoercible = requireObjectCoercible$2;
|
|
259
|
-
var $Object$2 = Object;
|
|
260
|
-
var toObject$3 = function(argument) {
|
|
261
|
-
return $Object$2(requireObjectCoercible(argument));
|
|
262
|
-
};
|
|
263
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
264
|
-
var toObject$2 = toObject$3;
|
|
265
|
-
var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
|
|
266
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
267
|
-
return hasOwnProperty(toObject$2(it), key);
|
|
268
|
-
};
|
|
269
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
270
|
-
var id = 0;
|
|
271
|
-
var postfix = Math.random();
|
|
272
|
-
var toString$1 = uncurryThis$7(1 .toString);
|
|
273
|
-
var uid$2 = function(key) {
|
|
274
|
-
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$1(++id + postfix, 36);
|
|
275
|
-
};
|
|
276
|
-
var global$6 = global$c;
|
|
277
|
-
var shared$2 = sharedExports;
|
|
278
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
279
|
-
var uid$1 = uid$2;
|
|
280
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
281
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
282
|
-
var Symbol$1 = global$6.Symbol;
|
|
283
|
-
var WellKnownSymbolsStore = shared$2("wks");
|
|
284
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
285
|
-
var wellKnownSymbol$a = function(name) {
|
|
286
|
-
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
287
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
|
|
288
|
-
}
|
|
289
|
-
return WellKnownSymbolsStore[name];
|
|
290
|
-
};
|
|
291
|
-
var call$2 = functionCall;
|
|
292
|
-
var isObject$6 = isObject$8;
|
|
293
|
-
var isSymbol$1 = isSymbol$2;
|
|
294
|
-
var getMethod = getMethod$1;
|
|
295
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
296
|
-
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
297
|
-
var $TypeError$2 = TypeError;
|
|
298
|
-
var TO_PRIMITIVE = wellKnownSymbol$9("toPrimitive");
|
|
299
|
-
var toPrimitive$1 = function(input, pref) {
|
|
300
|
-
if (!isObject$6(input) || isSymbol$1(input))
|
|
301
|
-
return input;
|
|
302
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
303
|
-
var result;
|
|
304
|
-
if (exoticToPrim) {
|
|
305
|
-
if (pref === void 0)
|
|
306
|
-
pref = "default";
|
|
307
|
-
result = call$2(exoticToPrim, input, pref);
|
|
308
|
-
if (!isObject$6(result) || isSymbol$1(result))
|
|
309
|
-
return result;
|
|
310
|
-
throw $TypeError$2("Can't convert object to primitive value");
|
|
311
|
-
}
|
|
312
|
-
if (pref === void 0)
|
|
313
|
-
pref = "number";
|
|
314
|
-
return ordinaryToPrimitive(input, pref);
|
|
315
|
-
};
|
|
316
|
-
var toPrimitive = toPrimitive$1;
|
|
317
|
-
var isSymbol = isSymbol$2;
|
|
318
|
-
var toPropertyKey$3 = function(argument) {
|
|
319
|
-
var key = toPrimitive(argument, "string");
|
|
320
|
-
return isSymbol(key) ? key : key + "";
|
|
321
|
-
};
|
|
322
|
-
var global$5 = global$c;
|
|
323
|
-
var isObject$5 = isObject$8;
|
|
324
|
-
var document$1 = global$5.document;
|
|
325
|
-
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
326
|
-
var documentCreateElement$1 = function(it) {
|
|
327
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
328
|
-
};
|
|
329
|
-
var DESCRIPTORS$6 = descriptors;
|
|
330
|
-
var fails$7 = fails$c;
|
|
331
|
-
var createElement = documentCreateElement$1;
|
|
332
|
-
var ie8DomDefine = !DESCRIPTORS$6 && !fails$7(function() {
|
|
333
|
-
return Object.defineProperty(createElement("div"), "a", {
|
|
334
|
-
get: function() {
|
|
335
|
-
return 7;
|
|
336
|
-
}
|
|
337
|
-
}).a != 7;
|
|
338
|
-
});
|
|
339
|
-
var DESCRIPTORS$5 = descriptors;
|
|
340
|
-
var call$1 = functionCall;
|
|
341
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
342
|
-
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
343
|
-
var toIndexedObject$5 = toIndexedObject$6;
|
|
344
|
-
var toPropertyKey$2 = toPropertyKey$3;
|
|
345
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
346
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
347
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
348
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
349
|
-
O = toIndexedObject$5(O);
|
|
350
|
-
P = toPropertyKey$2(P);
|
|
351
|
-
if (IE8_DOM_DEFINE$1)
|
|
352
|
-
try {
|
|
353
|
-
return $getOwnPropertyDescriptor$1(O, P);
|
|
354
|
-
} catch (error) {
|
|
355
|
-
}
|
|
356
|
-
if (hasOwn$7(O, P))
|
|
357
|
-
return createPropertyDescriptor$3(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
358
|
-
};
|
|
359
|
-
var fails$6 = fails$c;
|
|
360
|
-
var isCallable$7 = isCallable$d;
|
|
361
|
-
var replacement = /#|\.prototype\./;
|
|
362
|
-
var isForced$1 = function(feature, detection) {
|
|
363
|
-
var value = data[normalize(feature)];
|
|
364
|
-
return value == POLYFILL ? true : value == NATIVE ? false : isCallable$7(detection) ? fails$6(detection) : !!detection;
|
|
365
|
-
};
|
|
366
|
-
var normalize = isForced$1.normalize = function(string) {
|
|
367
|
-
return String(string).replace(replacement, ".").toLowerCase();
|
|
368
|
-
};
|
|
369
|
-
var data = isForced$1.data = {};
|
|
370
|
-
var NATIVE = isForced$1.NATIVE = "N";
|
|
371
|
-
var POLYFILL = isForced$1.POLYFILL = "P";
|
|
372
|
-
var isForced_1 = isForced$1;
|
|
373
|
-
var uncurryThis$6 = functionUncurryThisClause;
|
|
374
|
-
var aCallable = aCallable$2;
|
|
375
|
-
var NATIVE_BIND = functionBindNative;
|
|
376
|
-
var bind$2 = uncurryThis$6(uncurryThis$6.bind);
|
|
377
|
-
var functionBindContext = function(fn, that) {
|
|
378
|
-
aCallable(fn);
|
|
379
|
-
return that === void 0 ? fn : NATIVE_BIND ? bind$2(fn, that) : function() {
|
|
380
|
-
return fn.apply(that, arguments);
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
var objectDefineProperty = {};
|
|
384
|
-
var DESCRIPTORS$4 = descriptors;
|
|
385
|
-
var fails$5 = fails$c;
|
|
386
|
-
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function() {
|
|
387
|
-
return Object.defineProperty(function() {
|
|
388
|
-
}, "prototype", {
|
|
389
|
-
value: 42,
|
|
390
|
-
writable: false
|
|
391
|
-
}).prototype != 42;
|
|
392
|
-
});
|
|
393
|
-
var isObject$4 = isObject$8;
|
|
394
|
-
var $String = String;
|
|
395
|
-
var $TypeError$1 = TypeError;
|
|
396
|
-
var anObject$3 = function(argument) {
|
|
397
|
-
if (isObject$4(argument))
|
|
398
|
-
return argument;
|
|
399
|
-
throw $TypeError$1($String(argument) + " is not an object");
|
|
400
|
-
};
|
|
401
|
-
var DESCRIPTORS$3 = descriptors;
|
|
402
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
403
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
404
|
-
var anObject$2 = anObject$3;
|
|
405
|
-
var toPropertyKey$1 = toPropertyKey$3;
|
|
406
|
-
var $TypeError = TypeError;
|
|
407
|
-
var $defineProperty = Object.defineProperty;
|
|
408
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
409
|
-
var ENUMERABLE = "enumerable";
|
|
410
|
-
var CONFIGURABLE$1 = "configurable";
|
|
411
|
-
var WRITABLE = "writable";
|
|
412
|
-
objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
413
|
-
anObject$2(O);
|
|
414
|
-
P = toPropertyKey$1(P);
|
|
415
|
-
anObject$2(Attributes);
|
|
416
|
-
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
417
|
-
var current = $getOwnPropertyDescriptor(O, P);
|
|
418
|
-
if (current && current[WRITABLE]) {
|
|
419
|
-
O[P] = Attributes.value;
|
|
420
|
-
Attributes = {
|
|
421
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
422
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
423
|
-
writable: false
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return $defineProperty(O, P, Attributes);
|
|
428
|
-
} : $defineProperty : function defineProperty2(O, P, Attributes) {
|
|
429
|
-
anObject$2(O);
|
|
430
|
-
P = toPropertyKey$1(P);
|
|
431
|
-
anObject$2(Attributes);
|
|
432
|
-
if (IE8_DOM_DEFINE)
|
|
433
|
-
try {
|
|
434
|
-
return $defineProperty(O, P, Attributes);
|
|
435
|
-
} catch (error) {
|
|
436
|
-
}
|
|
437
|
-
if ("get" in Attributes || "set" in Attributes)
|
|
438
|
-
throw $TypeError("Accessors not supported");
|
|
439
|
-
if ("value" in Attributes)
|
|
440
|
-
O[P] = Attributes.value;
|
|
441
|
-
return O;
|
|
442
|
-
};
|
|
443
|
-
var DESCRIPTORS$2 = descriptors;
|
|
444
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
445
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
446
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$2 ? function(object, key, value) {
|
|
447
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
448
|
-
} : function(object, key, value) {
|
|
449
|
-
object[key] = value;
|
|
450
|
-
return object;
|
|
451
|
-
};
|
|
452
|
-
var global$4 = global$c;
|
|
453
|
-
var apply = functionApply;
|
|
454
|
-
var uncurryThis$5 = functionUncurryThisClause;
|
|
455
|
-
var isCallable$6 = isCallable$d;
|
|
456
|
-
var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
|
|
457
|
-
var isForced = isForced_1;
|
|
458
|
-
var path$1 = path$3;
|
|
459
|
-
var bind$1 = functionBindContext;
|
|
460
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
461
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
462
|
-
var wrapConstructor = function(NativeConstructor) {
|
|
463
|
-
var Wrapper = function(a, b, c) {
|
|
464
|
-
if (this instanceof Wrapper) {
|
|
465
|
-
switch (arguments.length) {
|
|
466
|
-
case 0:
|
|
467
|
-
return new NativeConstructor();
|
|
468
|
-
case 1:
|
|
469
|
-
return new NativeConstructor(a);
|
|
470
|
-
case 2:
|
|
471
|
-
return new NativeConstructor(a, b);
|
|
472
|
-
}
|
|
473
|
-
return new NativeConstructor(a, b, c);
|
|
474
|
-
}
|
|
475
|
-
return apply(NativeConstructor, this, arguments);
|
|
476
|
-
};
|
|
477
|
-
Wrapper.prototype = NativeConstructor.prototype;
|
|
478
|
-
return Wrapper;
|
|
479
|
-
};
|
|
480
|
-
var _export = function(options, source) {
|
|
481
|
-
var TARGET = options.target;
|
|
482
|
-
var GLOBAL = options.global;
|
|
483
|
-
var STATIC = options.stat;
|
|
484
|
-
var PROTO = options.proto;
|
|
485
|
-
var nativeSource = GLOBAL ? global$4 : STATIC ? global$4[TARGET] : (global$4[TARGET] || {}).prototype;
|
|
486
|
-
var target = GLOBAL ? path$1 : path$1[TARGET] || createNonEnumerableProperty$4(path$1, TARGET, {})[TARGET];
|
|
487
|
-
var targetPrototype = target.prototype;
|
|
488
|
-
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
489
|
-
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
|
|
490
|
-
for (key in source) {
|
|
491
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
492
|
-
USE_NATIVE = !FORCED && nativeSource && hasOwn$6(nativeSource, key);
|
|
493
|
-
targetProperty = target[key];
|
|
494
|
-
if (USE_NATIVE)
|
|
495
|
-
if (options.dontCallGetSet) {
|
|
496
|
-
descriptor = getOwnPropertyDescriptor2(nativeSource, key);
|
|
497
|
-
nativeProperty = descriptor && descriptor.value;
|
|
498
|
-
} else
|
|
499
|
-
nativeProperty = nativeSource[key];
|
|
500
|
-
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
501
|
-
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
502
|
-
continue;
|
|
503
|
-
if (options.bind && USE_NATIVE)
|
|
504
|
-
resultProperty = bind$1(sourceProperty, global$4);
|
|
505
|
-
else if (options.wrap && USE_NATIVE)
|
|
506
|
-
resultProperty = wrapConstructor(sourceProperty);
|
|
507
|
-
else if (PROTO && isCallable$6(sourceProperty))
|
|
508
|
-
resultProperty = uncurryThis$5(sourceProperty);
|
|
509
|
-
else
|
|
510
|
-
resultProperty = sourceProperty;
|
|
511
|
-
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
512
|
-
createNonEnumerableProperty$4(resultProperty, "sham", true);
|
|
513
|
-
}
|
|
514
|
-
createNonEnumerableProperty$4(target, key, resultProperty);
|
|
515
|
-
if (PROTO) {
|
|
516
|
-
VIRTUAL_PROTOTYPE = TARGET + "Prototype";
|
|
517
|
-
if (!hasOwn$6(path$1, VIRTUAL_PROTOTYPE)) {
|
|
518
|
-
createNonEnumerableProperty$4(path$1, VIRTUAL_PROTOTYPE, {});
|
|
519
|
-
}
|
|
520
|
-
createNonEnumerableProperty$4(path$1[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
521
|
-
if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
|
|
522
|
-
createNonEnumerableProperty$4(targetPrototype, key, sourceProperty);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
var classof$5 = classofRaw$2;
|
|
528
|
-
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
529
|
-
return classof$5(argument) == "Array";
|
|
530
|
-
};
|
|
531
|
-
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
532
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$8("toStringTag");
|
|
533
|
-
var test = {};
|
|
534
|
-
test[TO_STRING_TAG$3] = "z";
|
|
535
|
-
var toStringTagSupport = String(test) === "[object z]";
|
|
536
|
-
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
537
|
-
var isCallable$5 = isCallable$d;
|
|
538
|
-
var classofRaw = classofRaw$2;
|
|
539
|
-
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
540
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$7("toStringTag");
|
|
541
|
-
var $Object$1 = 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$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
|
|
552
|
-
var O, tag, result;
|
|
553
|
-
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable$5(O.callee) ? "Arguments" : result;
|
|
554
|
-
};
|
|
555
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
556
|
-
var isCallable$4 = isCallable$d;
|
|
557
|
-
var store$1 = sharedStore;
|
|
558
|
-
var functionToString = uncurryThis$4(Function.toString);
|
|
559
|
-
if (!isCallable$4(store$1.inspectSource)) {
|
|
560
|
-
store$1.inspectSource = function(it) {
|
|
561
|
-
return functionToString(it);
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
var inspectSource$1 = store$1.inspectSource;
|
|
565
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
566
|
-
var fails$4 = fails$c;
|
|
567
|
-
var isCallable$3 = isCallable$d;
|
|
568
|
-
var classof$3 = classof$4;
|
|
569
|
-
var getBuiltIn$1 = getBuiltIn$3;
|
|
570
|
-
var inspectSource = inspectSource$1;
|
|
571
|
-
var noop = function() {
|
|
572
|
-
};
|
|
573
|
-
var empty = [];
|
|
574
|
-
var construct = getBuiltIn$1("Reflect", "construct");
|
|
575
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
576
|
-
var exec = uncurryThis$3(constructorRegExp.exec);
|
|
577
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
578
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
579
|
-
if (!isCallable$3(argument))
|
|
580
|
-
return false;
|
|
581
|
-
try {
|
|
582
|
-
construct(noop, empty, argument);
|
|
583
|
-
return true;
|
|
584
|
-
} catch (error) {
|
|
585
|
-
return false;
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
var isConstructorLegacy = function isConstructor2(argument) {
|
|
589
|
-
if (!isCallable$3(argument))
|
|
590
|
-
return false;
|
|
591
|
-
switch (classof$3(argument)) {
|
|
592
|
-
case "AsyncFunction":
|
|
593
|
-
case "GeneratorFunction":
|
|
594
|
-
case "AsyncGeneratorFunction":
|
|
595
|
-
return false;
|
|
596
|
-
}
|
|
597
|
-
try {
|
|
598
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
599
|
-
} catch (error) {
|
|
600
|
-
return true;
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
isConstructorLegacy.sham = true;
|
|
604
|
-
var isConstructor$2 = !construct || fails$4(function() {
|
|
605
|
-
var called;
|
|
606
|
-
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
|
|
607
|
-
called = true;
|
|
608
|
-
}) || called;
|
|
609
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
610
|
-
var ceil = Math.ceil;
|
|
611
|
-
var floor = Math.floor;
|
|
612
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
613
|
-
var n = +x;
|
|
614
|
-
return (n > 0 ? floor : ceil)(n);
|
|
615
|
-
};
|
|
616
|
-
var trunc2 = mathTrunc;
|
|
617
|
-
var toIntegerOrInfinity$2 = function(argument) {
|
|
618
|
-
var number = +argument;
|
|
619
|
-
return number !== number || number === 0 ? 0 : trunc2(number);
|
|
620
|
-
};
|
|
621
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
622
|
-
var max$1 = Math.max;
|
|
623
|
-
var min$1 = Math.min;
|
|
624
|
-
var toAbsoluteIndex$2 = function(index, length) {
|
|
625
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
626
|
-
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
|
627
|
-
};
|
|
628
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
629
|
-
var min = Math.min;
|
|
630
|
-
var toLength$1 = function(argument) {
|
|
631
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
|
|
632
|
-
};
|
|
633
|
-
var toLength = toLength$1;
|
|
634
|
-
var lengthOfArrayLike$3 = function(obj) {
|
|
635
|
-
return toLength(obj.length);
|
|
636
|
-
};
|
|
637
|
-
var toPropertyKey = toPropertyKey$3;
|
|
638
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
639
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
640
|
-
var createProperty$1 = function(object, key, value) {
|
|
641
|
-
var propertyKey = toPropertyKey(key);
|
|
642
|
-
if (propertyKey in object)
|
|
643
|
-
definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$1(0, value));
|
|
644
|
-
else
|
|
645
|
-
object[propertyKey] = value;
|
|
646
|
-
};
|
|
647
|
-
var fails$3 = fails$c;
|
|
648
|
-
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
649
|
-
var V8_VERSION = engineV8Version;
|
|
650
|
-
var SPECIES$2 = wellKnownSymbol$6("species");
|
|
651
|
-
var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
|
|
652
|
-
return V8_VERSION >= 51 || !fails$3(function() {
|
|
653
|
-
var array = [];
|
|
654
|
-
var constructor = array.constructor = {};
|
|
655
|
-
constructor[SPECIES$2] = function() {
|
|
656
|
-
return {
|
|
657
|
-
foo: 1
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
|
-
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
661
|
-
});
|
|
662
|
-
};
|
|
663
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
664
|
-
var arraySlice = uncurryThis$2([].slice);
|
|
665
|
-
var $$2 = _export;
|
|
666
|
-
var isArray$1 = isArray$2;
|
|
667
|
-
var isConstructor$1 = isConstructor$2;
|
|
668
|
-
var isObject$3 = isObject$8;
|
|
669
|
-
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
670
|
-
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
671
|
-
var toIndexedObject$4 = toIndexedObject$6;
|
|
672
|
-
var createProperty = createProperty$1;
|
|
673
|
-
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
674
|
-
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
675
|
-
var nativeSlice = arraySlice;
|
|
676
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
|
|
677
|
-
var SPECIES$1 = wellKnownSymbol$5("species");
|
|
678
|
-
var $Array$1 = Array;
|
|
679
|
-
var max = Math.max;
|
|
680
|
-
$$2({
|
|
681
|
-
target: "Array",
|
|
682
|
-
proto: true,
|
|
683
|
-
forced: !HAS_SPECIES_SUPPORT
|
|
684
|
-
}, {
|
|
685
|
-
slice: function slice(start, end) {
|
|
686
|
-
var O = toIndexedObject$4(this);
|
|
687
|
-
var length = lengthOfArrayLike$2(O);
|
|
688
|
-
var k = toAbsoluteIndex$1(start, length);
|
|
689
|
-
var fin = toAbsoluteIndex$1(end === void 0 ? length : end, length);
|
|
690
|
-
var Constructor, result, n;
|
|
691
|
-
if (isArray$1(O)) {
|
|
692
|
-
Constructor = O.constructor;
|
|
693
|
-
if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
|
|
694
|
-
Constructor = void 0;
|
|
695
|
-
} else if (isObject$3(Constructor)) {
|
|
696
|
-
Constructor = Constructor[SPECIES$1];
|
|
697
|
-
if (Constructor === null)
|
|
698
|
-
Constructor = void 0;
|
|
699
|
-
}
|
|
700
|
-
if (Constructor === $Array$1 || Constructor === void 0) {
|
|
701
|
-
return nativeSlice(O, k, fin);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
result = new (Constructor === void 0 ? $Array$1 : Constructor)(max(fin - k, 0));
|
|
705
|
-
for (n = 0; k < fin; k++, n++)
|
|
706
|
-
if (k in O)
|
|
707
|
-
createProperty(result, n, O[k]);
|
|
708
|
-
result.length = n;
|
|
709
|
-
return result;
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
var path = path$3;
|
|
713
|
-
var entryVirtual$2 = function(CONSTRUCTOR) {
|
|
714
|
-
return path[CONSTRUCTOR + "Prototype"];
|
|
715
|
-
};
|
|
716
|
-
var entryVirtual$1 = entryVirtual$2;
|
|
717
|
-
var slice$6 = entryVirtual$1("Array").slice;
|
|
718
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
719
|
-
var method$1 = slice$6;
|
|
720
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
721
|
-
var slice$5 = function(it) {
|
|
722
|
-
var own = it.slice;
|
|
723
|
-
return it === ArrayPrototype$1 || isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice ? method$1 : own;
|
|
724
|
-
};
|
|
725
|
-
var parent$5 = slice$5;
|
|
726
|
-
var slice$4 = parent$5;
|
|
727
|
-
var parent$4 = slice$4;
|
|
728
|
-
var slice$3 = parent$4;
|
|
729
|
-
var parent$3 = slice$3;
|
|
730
|
-
var slice$2 = parent$3;
|
|
731
|
-
var slice$1 = slice$2;
|
|
732
|
-
var slice2 = slice$1;
|
|
733
|
-
const _sliceInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(slice2);
|
|
734
|
-
var iterators = {};
|
|
735
|
-
var global$3 = global$c;
|
|
736
|
-
var isCallable$2 = isCallable$d;
|
|
737
|
-
var WeakMap$1 = global$3.WeakMap;
|
|
738
|
-
var weakMapBasicDetection = isCallable$2(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
739
|
-
var shared$1 = sharedExports;
|
|
740
|
-
var uid = uid$2;
|
|
741
|
-
var keys = shared$1("keys");
|
|
742
|
-
var sharedKey$3 = function(key) {
|
|
743
|
-
return keys[key] || (keys[key] = uid(key));
|
|
744
|
-
};
|
|
745
|
-
var hiddenKeys$3 = {};
|
|
746
|
-
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
747
|
-
var global$2 = global$c;
|
|
748
|
-
var isObject$2 = isObject$8;
|
|
749
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
750
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
751
|
-
var shared = sharedStore;
|
|
752
|
-
var sharedKey$2 = sharedKey$3;
|
|
753
|
-
var hiddenKeys$2 = hiddenKeys$3;
|
|
754
|
-
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
|
|
755
|
-
var TypeError$1 = global$2.TypeError;
|
|
756
|
-
var WeakMap = global$2.WeakMap;
|
|
757
|
-
var set, get, has;
|
|
758
|
-
var enforce = function(it) {
|
|
759
|
-
return has(it) ? get(it) : set(it, {});
|
|
760
|
-
};
|
|
761
|
-
var getterFor = function(TYPE) {
|
|
762
|
-
return function(it) {
|
|
763
|
-
var state;
|
|
764
|
-
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
765
|
-
throw TypeError$1("Incompatible receiver, " + TYPE + " required");
|
|
766
|
-
}
|
|
767
|
-
return state;
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
771
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
772
|
-
store.get = store.get;
|
|
773
|
-
store.has = store.has;
|
|
774
|
-
store.set = store.set;
|
|
775
|
-
set = function(it, metadata) {
|
|
776
|
-
if (store.has(it))
|
|
777
|
-
throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
778
|
-
metadata.facade = it;
|
|
779
|
-
store.set(it, metadata);
|
|
780
|
-
return metadata;
|
|
781
|
-
};
|
|
782
|
-
get = function(it) {
|
|
783
|
-
return store.get(it) || {};
|
|
784
|
-
};
|
|
785
|
-
has = function(it) {
|
|
786
|
-
return store.has(it);
|
|
787
|
-
};
|
|
788
|
-
} else {
|
|
789
|
-
var STATE = sharedKey$2("state");
|
|
790
|
-
hiddenKeys$2[STATE] = true;
|
|
791
|
-
set = function(it, metadata) {
|
|
792
|
-
if (hasOwn$5(it, STATE))
|
|
793
|
-
throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
794
|
-
metadata.facade = it;
|
|
795
|
-
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
796
|
-
return metadata;
|
|
797
|
-
};
|
|
798
|
-
get = function(it) {
|
|
799
|
-
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
800
|
-
};
|
|
801
|
-
has = function(it) {
|
|
802
|
-
return hasOwn$5(it, STATE);
|
|
803
|
-
};
|
|
804
|
-
}
|
|
805
|
-
var internalState = {
|
|
806
|
-
set,
|
|
807
|
-
get,
|
|
808
|
-
has,
|
|
809
|
-
enforce,
|
|
810
|
-
getterFor
|
|
811
|
-
};
|
|
812
|
-
var DESCRIPTORS$1 = descriptors;
|
|
813
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
814
|
-
var FunctionPrototype = Function.prototype;
|
|
815
|
-
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
816
|
-
var EXISTS = hasOwn$4(FunctionPrototype, "name");
|
|
817
|
-
var PROPER = EXISTS && (function something() {
|
|
818
|
-
}).name === "something";
|
|
819
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || DESCRIPTORS$1 && getDescriptor(FunctionPrototype, "name").configurable);
|
|
820
|
-
var functionName = {
|
|
821
|
-
EXISTS,
|
|
822
|
-
PROPER,
|
|
823
|
-
CONFIGURABLE
|
|
824
|
-
};
|
|
825
|
-
var objectDefineProperties = {};
|
|
826
|
-
var toIndexedObject$3 = toIndexedObject$6;
|
|
827
|
-
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
828
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
829
|
-
var createMethod$1 = function(IS_INCLUDES) {
|
|
830
|
-
return function($this, el, fromIndex) {
|
|
831
|
-
var O = toIndexedObject$3($this);
|
|
832
|
-
var length = lengthOfArrayLike$1(O);
|
|
833
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
834
|
-
var value;
|
|
835
|
-
if (IS_INCLUDES && el != el)
|
|
836
|
-
while (length > index) {
|
|
837
|
-
value = O[index++];
|
|
838
|
-
if (value != value)
|
|
839
|
-
return true;
|
|
840
|
-
}
|
|
841
|
-
else
|
|
842
|
-
for (; length > index; index++) {
|
|
843
|
-
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
844
|
-
return IS_INCLUDES || index || 0;
|
|
845
|
-
}
|
|
846
|
-
return !IS_INCLUDES && -1;
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
var arrayIncludes = {
|
|
850
|
-
// `Array.prototype.includes` method
|
|
851
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
852
|
-
includes: createMethod$1(true),
|
|
853
|
-
// `Array.prototype.indexOf` method
|
|
854
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
855
|
-
indexOf: createMethod$1(false)
|
|
856
|
-
};
|
|
857
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
858
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
859
|
-
var toIndexedObject$2 = toIndexedObject$6;
|
|
860
|
-
var indexOf = arrayIncludes.indexOf;
|
|
861
|
-
var hiddenKeys$1 = hiddenKeys$3;
|
|
862
|
-
var push$1 = uncurryThis$1([].push);
|
|
863
|
-
var objectKeysInternal = function(object, names) {
|
|
864
|
-
var O = toIndexedObject$2(object);
|
|
865
|
-
var i = 0;
|
|
866
|
-
var result = [];
|
|
867
|
-
var key;
|
|
868
|
-
for (key in O)
|
|
869
|
-
!hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push$1(result, key);
|
|
870
|
-
while (names.length > i)
|
|
871
|
-
if (hasOwn$3(O, key = names[i++])) {
|
|
872
|
-
~indexOf(result, key) || push$1(result, key);
|
|
873
|
-
}
|
|
874
|
-
return result;
|
|
875
|
-
};
|
|
876
|
-
var enumBugKeys$2 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
877
|
-
var internalObjectKeys = objectKeysInternal;
|
|
878
|
-
var enumBugKeys$1 = enumBugKeys$2;
|
|
879
|
-
var objectKeys$1 = Object.keys || function keys2(O) {
|
|
880
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
881
|
-
};
|
|
882
|
-
var DESCRIPTORS = descriptors;
|
|
883
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
884
|
-
var definePropertyModule = objectDefineProperty;
|
|
885
|
-
var anObject$1 = anObject$3;
|
|
886
|
-
var toIndexedObject$1 = toIndexedObject$6;
|
|
887
|
-
var objectKeys = objectKeys$1;
|
|
888
|
-
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
889
|
-
anObject$1(O);
|
|
890
|
-
var props = toIndexedObject$1(Properties);
|
|
891
|
-
var keys3 = objectKeys(Properties);
|
|
892
|
-
var length = keys3.length;
|
|
893
|
-
var index = 0;
|
|
894
|
-
var key;
|
|
895
|
-
while (length > index)
|
|
896
|
-
definePropertyModule.f(O, key = keys3[index++], props[key]);
|
|
897
|
-
return O;
|
|
898
|
-
};
|
|
899
|
-
var getBuiltIn = getBuiltIn$3;
|
|
900
|
-
var html$1 = getBuiltIn("document", "documentElement");
|
|
901
|
-
var anObject = anObject$3;
|
|
902
|
-
var definePropertiesModule = objectDefineProperties;
|
|
903
|
-
var enumBugKeys = enumBugKeys$2;
|
|
904
|
-
var hiddenKeys = hiddenKeys$3;
|
|
905
|
-
var html = html$1;
|
|
906
|
-
var documentCreateElement = documentCreateElement$1;
|
|
907
|
-
var sharedKey$1 = sharedKey$3;
|
|
908
|
-
var GT = ">";
|
|
909
|
-
var LT = "<";
|
|
910
|
-
var PROTOTYPE = "prototype";
|
|
911
|
-
var SCRIPT = "script";
|
|
912
|
-
var IE_PROTO$1 = sharedKey$1("IE_PROTO");
|
|
913
|
-
var EmptyConstructor = function() {
|
|
914
|
-
};
|
|
915
|
-
var scriptTag = function(content) {
|
|
916
|
-
return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
|
|
917
|
-
};
|
|
918
|
-
var NullProtoObjectViaActiveX = function(activeXDocument2) {
|
|
919
|
-
activeXDocument2.write(scriptTag(""));
|
|
920
|
-
activeXDocument2.close();
|
|
921
|
-
var temp = activeXDocument2.parentWindow.Object;
|
|
922
|
-
activeXDocument2 = null;
|
|
923
|
-
return temp;
|
|
924
|
-
};
|
|
925
|
-
var NullProtoObjectViaIFrame = function() {
|
|
926
|
-
var iframe = documentCreateElement("iframe");
|
|
927
|
-
var JS = "java" + SCRIPT + ":";
|
|
928
|
-
var iframeDocument;
|
|
929
|
-
iframe.style.display = "none";
|
|
930
|
-
html.appendChild(iframe);
|
|
931
|
-
iframe.src = String(JS);
|
|
932
|
-
iframeDocument = iframe.contentWindow.document;
|
|
933
|
-
iframeDocument.open();
|
|
934
|
-
iframeDocument.write(scriptTag("document.F=Object"));
|
|
935
|
-
iframeDocument.close();
|
|
936
|
-
return iframeDocument.F;
|
|
937
|
-
};
|
|
938
|
-
var activeXDocument;
|
|
939
|
-
var NullProtoObject = function() {
|
|
940
|
-
try {
|
|
941
|
-
activeXDocument = new ActiveXObject("htmlfile");
|
|
942
|
-
} catch (error) {
|
|
943
|
-
}
|
|
944
|
-
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
945
|
-
var length = enumBugKeys.length;
|
|
946
|
-
while (length--)
|
|
947
|
-
delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
948
|
-
return NullProtoObject();
|
|
949
|
-
};
|
|
950
|
-
hiddenKeys[IE_PROTO$1] = true;
|
|
951
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
952
|
-
var result;
|
|
953
|
-
if (O !== null) {
|
|
954
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
955
|
-
result = new EmptyConstructor();
|
|
956
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
957
|
-
result[IE_PROTO$1] = O;
|
|
958
|
-
} else
|
|
959
|
-
result = NullProtoObject();
|
|
960
|
-
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
|
|
961
|
-
};
|
|
962
|
-
var fails$2 = fails$c;
|
|
963
|
-
var correctPrototypeGetter = !fails$2(function() {
|
|
964
|
-
function F() {
|
|
965
|
-
}
|
|
966
|
-
F.prototype.constructor = null;
|
|
967
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
968
|
-
});
|
|
969
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
970
|
-
var isCallable$1 = isCallable$d;
|
|
971
|
-
var toObject$1 = toObject$3;
|
|
972
|
-
var sharedKey = sharedKey$3;
|
|
973
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
974
|
-
var IE_PROTO = sharedKey("IE_PROTO");
|
|
975
|
-
var $Object = Object;
|
|
976
|
-
var ObjectPrototype = $Object.prototype;
|
|
977
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
|
|
978
|
-
var object = toObject$1(O);
|
|
979
|
-
if (hasOwn$2(object, IE_PROTO))
|
|
980
|
-
return object[IE_PROTO];
|
|
981
|
-
var constructor = object.constructor;
|
|
982
|
-
if (isCallable$1(constructor) && object instanceof constructor) {
|
|
983
|
-
return constructor.prototype;
|
|
984
|
-
}
|
|
985
|
-
return object instanceof $Object ? ObjectPrototype : null;
|
|
986
|
-
};
|
|
987
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
988
|
-
var defineBuiltIn$2 = function(target, key, value, options) {
|
|
989
|
-
if (options && options.enumerable)
|
|
990
|
-
target[key] = value;
|
|
991
|
-
else
|
|
992
|
-
createNonEnumerableProperty$2(target, key, value);
|
|
993
|
-
return target;
|
|
994
|
-
};
|
|
995
|
-
var fails$1 = fails$c;
|
|
996
|
-
var isCallable = isCallable$d;
|
|
997
|
-
var isObject$1 = isObject$8;
|
|
998
|
-
var create$1 = objectCreate;
|
|
999
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1000
|
-
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
1001
|
-
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1002
|
-
var ITERATOR$1 = wellKnownSymbol$4("iterator");
|
|
1003
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1004
|
-
var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1005
|
-
if ([].keys) {
|
|
1006
|
-
arrayIterator = [].keys();
|
|
1007
|
-
if (!("next" in arrayIterator))
|
|
1008
|
-
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1009
|
-
else {
|
|
1010
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1011
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
1012
|
-
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$1) || fails$1(function() {
|
|
1016
|
-
var test2 = {};
|
|
1017
|
-
return IteratorPrototype$1[ITERATOR$1].call(test2) !== test2;
|
|
1018
|
-
});
|
|
1019
|
-
if (NEW_ITERATOR_PROTOTYPE)
|
|
1020
|
-
IteratorPrototype$1 = {};
|
|
1021
|
-
else
|
|
1022
|
-
IteratorPrototype$1 = create$1(IteratorPrototype$1);
|
|
1023
|
-
if (!isCallable(IteratorPrototype$1[ITERATOR$1])) {
|
|
1024
|
-
defineBuiltIn$1(IteratorPrototype$1, ITERATOR$1, function() {
|
|
1025
|
-
return this;
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
var iteratorsCore = {
|
|
1029
|
-
IteratorPrototype: IteratorPrototype$1,
|
|
1030
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1031
|
-
};
|
|
1032
|
-
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
1033
|
-
var classof$2 = classof$4;
|
|
1034
|
-
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1035
|
-
return "[object " + classof$2(this) + "]";
|
|
1036
|
-
};
|
|
1037
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1038
|
-
var defineProperty3 = objectDefineProperty.f;
|
|
1039
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1040
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1041
|
-
var toString2 = objectToString;
|
|
1042
|
-
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1043
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$3("toStringTag");
|
|
1044
|
-
var setToStringTag$2 = function(it, TAG, STATIC, SET_METHOD) {
|
|
1045
|
-
if (it) {
|
|
1046
|
-
var target = STATIC ? it : it.prototype;
|
|
1047
|
-
if (!hasOwn$1(target, TO_STRING_TAG$1)) {
|
|
1048
|
-
defineProperty3(target, TO_STRING_TAG$1, {
|
|
1049
|
-
configurable: true,
|
|
1050
|
-
value: TAG
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
|
|
1054
|
-
createNonEnumerableProperty$1(target, "toString", toString2);
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
};
|
|
1058
|
-
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
1059
|
-
var create2 = objectCreate;
|
|
1060
|
-
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
1061
|
-
var setToStringTag$1 = setToStringTag$2;
|
|
1062
|
-
var Iterators$3 = iterators;
|
|
1063
|
-
var returnThis$1 = function() {
|
|
1064
|
-
return this;
|
|
1065
|
-
};
|
|
1066
|
-
var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1067
|
-
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1068
|
-
IteratorConstructor.prototype = create2(IteratorPrototype, {
|
|
1069
|
-
next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
|
|
1070
|
-
});
|
|
1071
|
-
setToStringTag$1(IteratorConstructor, TO_STRING_TAG2, false, true);
|
|
1072
|
-
Iterators$3[TO_STRING_TAG2] = returnThis$1;
|
|
1073
|
-
return IteratorConstructor;
|
|
1074
|
-
};
|
|
1075
|
-
var $$1 = _export;
|
|
1076
|
-
var call = functionCall;
|
|
1077
|
-
var FunctionName = functionName;
|
|
1078
|
-
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1079
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1080
|
-
var setToStringTag = setToStringTag$2;
|
|
1081
|
-
var defineBuiltIn = defineBuiltIn$2;
|
|
1082
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1083
|
-
var Iterators$2 = iterators;
|
|
1084
|
-
var IteratorsCore = iteratorsCore;
|
|
1085
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1086
|
-
FunctionName.CONFIGURABLE;
|
|
1087
|
-
IteratorsCore.IteratorPrototype;
|
|
1088
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1089
|
-
var ITERATOR = wellKnownSymbol$2("iterator");
|
|
1090
|
-
var KEYS = "keys";
|
|
1091
|
-
var VALUES = "values";
|
|
1092
|
-
var ENTRIES = "entries";
|
|
1093
|
-
var returnThis = function() {
|
|
1094
|
-
return this;
|
|
1095
|
-
};
|
|
1096
|
-
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1097
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1098
|
-
var getIterationMethod = function(KIND) {
|
|
1099
|
-
if (KIND === DEFAULT && defaultIterator)
|
|
1100
|
-
return defaultIterator;
|
|
1101
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
|
|
1102
|
-
return IterablePrototype[KIND];
|
|
1103
|
-
switch (KIND) {
|
|
1104
|
-
case KEYS:
|
|
1105
|
-
return function keys3() {
|
|
1106
|
-
return new IteratorConstructor(this, KIND);
|
|
1107
|
-
};
|
|
1108
|
-
case VALUES:
|
|
1109
|
-
return function values() {
|
|
1110
|
-
return new IteratorConstructor(this, KIND);
|
|
1111
|
-
};
|
|
1112
|
-
case ENTRIES:
|
|
1113
|
-
return function entries() {
|
|
1114
|
-
return new IteratorConstructor(this, KIND);
|
|
1115
|
-
};
|
|
1116
|
-
}
|
|
1117
|
-
return function() {
|
|
1118
|
-
return new IteratorConstructor(this);
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1122
|
-
var INCORRECT_VALUES_NAME = false;
|
|
1123
|
-
var IterablePrototype = Iterable.prototype;
|
|
1124
|
-
var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
|
|
1125
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1126
|
-
var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1127
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
1128
|
-
if (anyNativeIterator) {
|
|
1129
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1130
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1131
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG2, true, true);
|
|
1132
|
-
Iterators$2[TO_STRING_TAG2] = returnThis;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1136
|
-
{
|
|
1137
|
-
INCORRECT_VALUES_NAME = true;
|
|
1138
|
-
defaultIterator = function values() {
|
|
1139
|
-
return call(nativeIterator, this);
|
|
1140
|
-
};
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
if (DEFAULT) {
|
|
1144
|
-
methods = {
|
|
1145
|
-
values: getIterationMethod(VALUES),
|
|
1146
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1147
|
-
entries: getIterationMethod(ENTRIES)
|
|
1148
|
-
};
|
|
1149
|
-
if (FORCED)
|
|
1150
|
-
for (KEY in methods) {
|
|
1151
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1152
|
-
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
else
|
|
1156
|
-
$$1({
|
|
1157
|
-
target: NAME,
|
|
1158
|
-
proto: true,
|
|
1159
|
-
forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
|
|
1160
|
-
}, methods);
|
|
1161
|
-
}
|
|
1162
|
-
if (FORCED && IterablePrototype[ITERATOR] !== defaultIterator) {
|
|
1163
|
-
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, {
|
|
1164
|
-
name: DEFAULT
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
Iterators$2[NAME] = defaultIterator;
|
|
1168
|
-
return methods;
|
|
1169
|
-
};
|
|
1170
|
-
var createIterResultObject$1 = function(value, done) {
|
|
1171
|
-
return {
|
|
1172
|
-
value,
|
|
1173
|
-
done
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
var toIndexedObject = toIndexedObject$6;
|
|
1177
|
-
var Iterators$1 = iterators;
|
|
1178
|
-
var InternalStateModule = internalState;
|
|
1179
|
-
objectDefineProperty.f;
|
|
1180
|
-
var defineIterator = iteratorDefine;
|
|
1181
|
-
var createIterResultObject = createIterResultObject$1;
|
|
1182
|
-
var ARRAY_ITERATOR = "Array Iterator";
|
|
1183
|
-
var setInternalState = InternalStateModule.set;
|
|
1184
|
-
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1185
|
-
defineIterator(Array, "Array", function(iterated, kind) {
|
|
1186
|
-
setInternalState(this, {
|
|
1187
|
-
type: ARRAY_ITERATOR,
|
|
1188
|
-
target: toIndexedObject(iterated),
|
|
1189
|
-
// target
|
|
1190
|
-
index: 0,
|
|
1191
|
-
// next index
|
|
1192
|
-
kind
|
|
1193
|
-
// kind
|
|
1194
|
-
});
|
|
1195
|
-
}, function() {
|
|
1196
|
-
var state = getInternalState(this);
|
|
1197
|
-
var target = state.target;
|
|
1198
|
-
var kind = state.kind;
|
|
1199
|
-
var index = state.index++;
|
|
1200
|
-
if (!target || index >= target.length) {
|
|
1201
|
-
state.target = void 0;
|
|
1202
|
-
return createIterResultObject(void 0, true);
|
|
1203
|
-
}
|
|
1204
|
-
if (kind == "keys")
|
|
1205
|
-
return createIterResultObject(index, false);
|
|
1206
|
-
if (kind == "values")
|
|
1207
|
-
return createIterResultObject(target[index], false);
|
|
1208
|
-
return createIterResultObject([index, target[index]], false);
|
|
1209
|
-
}, "values");
|
|
1210
|
-
Iterators$1.Arguments = Iterators$1.Array;
|
|
1211
|
-
var domIterables = {
|
|
1212
|
-
CSSRuleList: 0,
|
|
1213
|
-
CSSStyleDeclaration: 0,
|
|
1214
|
-
CSSValueList: 0,
|
|
1215
|
-
ClientRectList: 0,
|
|
1216
|
-
DOMRectList: 0,
|
|
1217
|
-
DOMStringList: 0,
|
|
1218
|
-
DOMTokenList: 1,
|
|
1219
|
-
DataTransferItemList: 0,
|
|
1220
|
-
FileList: 0,
|
|
1221
|
-
HTMLAllCollection: 0,
|
|
1222
|
-
HTMLCollection: 0,
|
|
1223
|
-
HTMLFormElement: 0,
|
|
1224
|
-
HTMLSelectElement: 0,
|
|
1225
|
-
MediaList: 0,
|
|
1226
|
-
MimeTypeArray: 0,
|
|
1227
|
-
NamedNodeMap: 0,
|
|
1228
|
-
NodeList: 1,
|
|
1229
|
-
PaintRequestList: 0,
|
|
1230
|
-
Plugin: 0,
|
|
1231
|
-
PluginArray: 0,
|
|
1232
|
-
SVGLengthList: 0,
|
|
1233
|
-
SVGNumberList: 0,
|
|
1234
|
-
SVGPathSegList: 0,
|
|
1235
|
-
SVGPointList: 0,
|
|
1236
|
-
SVGStringList: 0,
|
|
1237
|
-
SVGTransformList: 0,
|
|
1238
|
-
SourceBufferList: 0,
|
|
1239
|
-
StyleSheetList: 0,
|
|
1240
|
-
TextTrackCueList: 0,
|
|
1241
|
-
TextTrackList: 0,
|
|
1242
|
-
TouchList: 0
|
|
1243
|
-
};
|
|
1244
|
-
var DOMIterables$1 = domIterables;
|
|
1245
|
-
var global$1 = global$c;
|
|
1246
|
-
var classof$1 = classof$4;
|
|
1247
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1248
|
-
var Iterators = iterators;
|
|
1249
|
-
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1250
|
-
var TO_STRING_TAG = wellKnownSymbol$1("toStringTag");
|
|
1251
|
-
for (var COLLECTION_NAME in DOMIterables$1) {
|
|
1252
|
-
var Collection = global$1[COLLECTION_NAME];
|
|
1253
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
|
1254
|
-
if (CollectionPrototype && classof$1(CollectionPrototype) !== TO_STRING_TAG) {
|
|
1255
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1256
|
-
}
|
|
1257
|
-
Iterators[COLLECTION_NAME] = Iterators.Array;
|
|
1258
|
-
}
|
|
1259
|
-
var isArray2 = isArray$2;
|
|
1260
|
-
var isConstructor3 = isConstructor$2;
|
|
1261
|
-
var isObject = isObject$8;
|
|
1262
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1263
|
-
var SPECIES = wellKnownSymbol("species");
|
|
1264
|
-
var $Array = Array;
|
|
1265
|
-
var arraySpeciesConstructor$1 = function(originalArray) {
|
|
1266
|
-
var C;
|
|
1267
|
-
if (isArray2(originalArray)) {
|
|
1268
|
-
C = originalArray.constructor;
|
|
1269
|
-
if (isConstructor3(C) && (C === $Array || isArray2(C.prototype)))
|
|
1270
|
-
C = void 0;
|
|
1271
|
-
else if (isObject(C)) {
|
|
1272
|
-
C = C[SPECIES];
|
|
1273
|
-
if (C === null)
|
|
1274
|
-
C = void 0;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
return C === void 0 ? $Array : C;
|
|
1278
|
-
};
|
|
1279
|
-
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
1280
|
-
var arraySpeciesCreate$1 = function(originalArray, length) {
|
|
1281
|
-
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1282
|
-
};
|
|
1283
|
-
var bind = functionBindContext;
|
|
1284
|
-
var uncurryThis = functionUncurryThis;
|
|
1285
|
-
var IndexedObject = indexedObject;
|
|
1286
|
-
var toObject = toObject$3;
|
|
1287
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
1288
|
-
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
1289
|
-
var push = uncurryThis([].push);
|
|
1290
|
-
var createMethod = function(TYPE) {
|
|
1291
|
-
var IS_MAP = TYPE == 1;
|
|
1292
|
-
var IS_FILTER = TYPE == 2;
|
|
1293
|
-
var IS_SOME = TYPE == 3;
|
|
1294
|
-
var IS_EVERY = TYPE == 4;
|
|
1295
|
-
var IS_FIND_INDEX = TYPE == 6;
|
|
1296
|
-
var IS_FILTER_REJECT = TYPE == 7;
|
|
1297
|
-
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1298
|
-
return function($this, callbackfn, that, specificCreate) {
|
|
1299
|
-
var O = toObject($this);
|
|
1300
|
-
var self2 = IndexedObject(O);
|
|
1301
|
-
var boundFunction = bind(callbackfn, that);
|
|
1302
|
-
var length = lengthOfArrayLike(self2);
|
|
1303
|
-
var index = 0;
|
|
1304
|
-
var create3 = specificCreate || arraySpeciesCreate;
|
|
1305
|
-
var target = IS_MAP ? create3($this, length) : IS_FILTER || IS_FILTER_REJECT ? create3($this, 0) : void 0;
|
|
1306
|
-
var value, result;
|
|
1307
|
-
for (; length > index; index++)
|
|
1308
|
-
if (NO_HOLES || index in self2) {
|
|
1309
|
-
value = self2[index];
|
|
1310
|
-
result = boundFunction(value, index, O);
|
|
1311
|
-
if (TYPE) {
|
|
1312
|
-
if (IS_MAP)
|
|
1313
|
-
target[index] = result;
|
|
1314
|
-
else if (result)
|
|
1315
|
-
switch (TYPE) {
|
|
1316
|
-
case 3:
|
|
1317
|
-
return true;
|
|
1318
|
-
case 5:
|
|
1319
|
-
return value;
|
|
1320
|
-
case 6:
|
|
1321
|
-
return index;
|
|
1322
|
-
case 2:
|
|
1323
|
-
push(target, value);
|
|
1324
|
-
}
|
|
1325
|
-
else
|
|
1326
|
-
switch (TYPE) {
|
|
1327
|
-
case 4:
|
|
1328
|
-
return false;
|
|
1329
|
-
case 7:
|
|
1330
|
-
push(target, value);
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
1335
|
-
};
|
|
1336
|
-
};
|
|
1337
|
-
var arrayIteration = {
|
|
1338
|
-
// `Array.prototype.forEach` method
|
|
1339
|
-
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1340
|
-
forEach: createMethod(0),
|
|
1341
|
-
// `Array.prototype.map` method
|
|
1342
|
-
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1343
|
-
map: createMethod(1),
|
|
1344
|
-
// `Array.prototype.filter` method
|
|
1345
|
-
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1346
|
-
filter: createMethod(2),
|
|
1347
|
-
// `Array.prototype.some` method
|
|
1348
|
-
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
1349
|
-
some: createMethod(3),
|
|
1350
|
-
// `Array.prototype.every` method
|
|
1351
|
-
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
1352
|
-
every: createMethod(4),
|
|
1353
|
-
// `Array.prototype.find` method
|
|
1354
|
-
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1355
|
-
find: createMethod(5),
|
|
1356
|
-
// `Array.prototype.findIndex` method
|
|
1357
|
-
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
1358
|
-
findIndex: createMethod(6),
|
|
1359
|
-
// `Array.prototype.filterReject` method
|
|
1360
|
-
// https://github.com/tc39/proposal-array-filtering
|
|
1361
|
-
filterReject: createMethod(7)
|
|
1362
|
-
};
|
|
1363
|
-
var fails = fails$c;
|
|
1364
|
-
var arrayMethodIsStrict$1 = function(METHOD_NAME, argument) {
|
|
1365
|
-
var method2 = [][METHOD_NAME];
|
|
1366
|
-
return !!method2 && fails(function() {
|
|
1367
|
-
method2.call(null, argument || function() {
|
|
1368
|
-
return 1;
|
|
1369
|
-
}, 1);
|
|
1370
|
-
});
|
|
1371
|
-
};
|
|
1372
|
-
var $forEach = arrayIteration.forEach;
|
|
1373
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1374
|
-
var STRICT_METHOD = arrayMethodIsStrict("forEach");
|
|
1375
|
-
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn) {
|
|
1376
|
-
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
1377
|
-
} : [].forEach;
|
|
1378
|
-
var $ = _export;
|
|
1379
|
-
var forEach$7 = arrayForEach;
|
|
1380
|
-
$({
|
|
1381
|
-
target: "Array",
|
|
1382
|
-
proto: true,
|
|
1383
|
-
forced: [].forEach != forEach$7
|
|
1384
|
-
}, {
|
|
1385
|
-
forEach: forEach$7
|
|
1386
|
-
});
|
|
1387
|
-
var entryVirtual = entryVirtual$2;
|
|
1388
|
-
var forEach$6 = entryVirtual("Array").forEach;
|
|
1389
|
-
var parent$2 = forEach$6;
|
|
1390
|
-
var forEach$5 = parent$2;
|
|
1391
|
-
var classof = classof$4;
|
|
1392
|
-
var hasOwn2 = hasOwnProperty_1;
|
|
1393
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1394
|
-
var method = forEach$5;
|
|
1395
|
-
var ArrayPrototype = Array.prototype;
|
|
1396
|
-
var DOMIterables = {
|
|
1397
|
-
DOMTokenList: true,
|
|
1398
|
-
NodeList: true
|
|
1399
|
-
};
|
|
1400
|
-
var forEach$4 = function(it) {
|
|
1401
|
-
var own = it.forEach;
|
|
1402
|
-
return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach || hasOwn2(DOMIterables, classof(it)) ? method : own;
|
|
1403
|
-
};
|
|
1404
|
-
var parent$1 = forEach$4;
|
|
1405
|
-
var forEach$3 = parent$1;
|
|
1406
|
-
var parent = forEach$3;
|
|
1407
|
-
var forEach$2 = parent;
|
|
1408
|
-
var forEach$1 = forEach$2;
|
|
1409
|
-
var forEach2 = forEach$1;
|
|
1410
|
-
const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
|
|
1411
|
-
var __sfc_main = defineComponent({
|
|
2
|
+
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
3
|
+
const __sfc_main = defineComponent({
|
|
1412
4
|
name: "nf-text-overflow"
|
|
1413
5
|
});
|
|
1414
6
|
__sfc_main.props = {
|
|
@@ -1416,61 +8,57 @@ __sfc_main.props = {
|
|
|
1416
8
|
key: "content",
|
|
1417
9
|
required: false,
|
|
1418
10
|
type: String,
|
|
1419
|
-
|
|
11
|
+
default: ""
|
|
1420
12
|
},
|
|
1421
13
|
expandText: {
|
|
1422
14
|
key: "expandText",
|
|
1423
15
|
required: false,
|
|
1424
16
|
type: String,
|
|
1425
|
-
|
|
17
|
+
default: "展开"
|
|
1426
18
|
},
|
|
1427
19
|
collapseText: {
|
|
1428
20
|
key: "collapseText",
|
|
1429
21
|
required: false,
|
|
1430
22
|
type: String,
|
|
1431
|
-
|
|
23
|
+
default: "收起"
|
|
1432
24
|
},
|
|
1433
25
|
rows: {
|
|
1434
26
|
key: "rows",
|
|
1435
27
|
required: false,
|
|
1436
28
|
type: [String, Number],
|
|
1437
|
-
|
|
29
|
+
default: 1
|
|
1438
30
|
},
|
|
1439
31
|
rowHeight: {
|
|
1440
32
|
key: "rowHeight",
|
|
1441
33
|
required: false,
|
|
1442
34
|
type: [String, Number],
|
|
1443
|
-
|
|
1444
|
-
}
|
|
1445
|
-
};
|
|
1446
|
-
__sfc_main.setup =
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
var maxContentHeight = computed(function() {
|
|
1458
|
-
return Number(props.rows) * Number(props.rowHeight);
|
|
1459
|
-
});
|
|
1460
|
-
var pxToNum = function pxToNum2(value) {
|
|
35
|
+
default: 20
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__sfc_main.setup = (__props, __ctx) => {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const emit = __ctx.emit;
|
|
41
|
+
const text = ref("");
|
|
42
|
+
const expanded = ref(false);
|
|
43
|
+
const hasAction = ref(false);
|
|
44
|
+
const textbox = ref();
|
|
45
|
+
const contentHeight = ref();
|
|
46
|
+
const hasDefaultSlot = computed(() => !!useSlots().default);
|
|
47
|
+
const maxContentHeight = computed(() => Number(props.rows) * Number(props.rowHeight));
|
|
48
|
+
const pxToNum = (value) => {
|
|
1461
49
|
if (!value)
|
|
1462
50
|
return 0;
|
|
1463
|
-
|
|
1464
|
-
return
|
|
51
|
+
const match = value.match(/^\d*(\.\d*)?/);
|
|
52
|
+
return match ? Number(match[0]) : 0;
|
|
1465
53
|
};
|
|
1466
|
-
|
|
1467
|
-
|
|
54
|
+
const calcEllipsised = () => {
|
|
55
|
+
const cloneContainer = () => {
|
|
1468
56
|
if (!textbox.value)
|
|
1469
57
|
return;
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
58
|
+
const originStyle = window.getComputedStyle(textbox.value);
|
|
59
|
+
const container2 = document.createElement("div");
|
|
60
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
|
61
|
+
styleNames.forEach((name) => {
|
|
1474
62
|
container2.style.setProperty(name, originStyle.getPropertyValue(name));
|
|
1475
63
|
});
|
|
1476
64
|
container2.style.position = "fixed";
|
|
@@ -1483,14 +71,16 @@ __sfc_main.setup = function(__props, __ctx) {
|
|
|
1483
71
|
document.body.appendChild(container2);
|
|
1484
72
|
return container2;
|
|
1485
73
|
};
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
74
|
+
const calcEllipsisText = (container2, maxHeight2) => {
|
|
75
|
+
const {
|
|
76
|
+
content
|
|
77
|
+
} = props;
|
|
78
|
+
let left = 0;
|
|
79
|
+
let right = content.length;
|
|
80
|
+
let res = -1;
|
|
1491
81
|
while (left <= right) {
|
|
1492
|
-
|
|
1493
|
-
container2.innerText =
|
|
82
|
+
const mid = Math.floor((left + right) / 2);
|
|
83
|
+
container2.innerText = content.slice(0, mid);
|
|
1494
84
|
if (container2.offsetHeight <= maxHeight2) {
|
|
1495
85
|
left = mid + 1;
|
|
1496
86
|
res = mid;
|
|
@@ -1498,13 +88,17 @@ __sfc_main.setup = function(__props, __ctx) {
|
|
|
1498
88
|
right = mid - 1;
|
|
1499
89
|
}
|
|
1500
90
|
}
|
|
1501
|
-
return
|
|
91
|
+
return content.slice(0, res);
|
|
1502
92
|
};
|
|
1503
|
-
|
|
93
|
+
const container = cloneContainer();
|
|
1504
94
|
if (!container)
|
|
1505
95
|
return;
|
|
1506
|
-
|
|
1507
|
-
|
|
96
|
+
const {
|
|
97
|
+
paddingBottom,
|
|
98
|
+
paddingTop,
|
|
99
|
+
lineHeight
|
|
100
|
+
} = container.style;
|
|
101
|
+
const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
|
1508
102
|
if (maxHeight < container.offsetHeight) {
|
|
1509
103
|
hasAction.value = true;
|
|
1510
104
|
text.value = calcEllipsisText(container, maxHeight);
|
|
@@ -1514,33 +108,31 @@ __sfc_main.setup = function(__props, __ctx) {
|
|
|
1514
108
|
}
|
|
1515
109
|
document.body.removeChild(container);
|
|
1516
110
|
};
|
|
1517
|
-
|
|
111
|
+
const calcContentHeight = () => {
|
|
1518
112
|
if (!textbox.value)
|
|
1519
113
|
return;
|
|
1520
|
-
|
|
114
|
+
const height = textbox.value.offsetHeight;
|
|
1521
115
|
if (height > maxContentHeight.value) {
|
|
1522
116
|
hasAction.value = true;
|
|
1523
|
-
contentHeight.value =
|
|
117
|
+
contentHeight.value = `${maxContentHeight.value}px`;
|
|
1524
118
|
}
|
|
1525
119
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
120
|
+
const init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
|
|
121
|
+
const onClickAction = (event) => {
|
|
1528
122
|
expanded.value = !expanded.value;
|
|
1529
123
|
if (hasDefaultSlot.value) {
|
|
1530
|
-
contentHeight.value = expanded.value ? "auto" :
|
|
124
|
+
contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
|
|
1531
125
|
}
|
|
1532
126
|
emit("clickAction", event);
|
|
1533
127
|
};
|
|
1534
|
-
onMounted(
|
|
128
|
+
onMounted(() => {
|
|
1535
129
|
init();
|
|
1536
130
|
window.addEventListener("resize", init);
|
|
1537
131
|
});
|
|
1538
|
-
onUnmounted(
|
|
132
|
+
onUnmounted(() => {
|
|
1539
133
|
window.removeEventListener("resize", init);
|
|
1540
134
|
});
|
|
1541
|
-
watch(
|
|
1542
|
-
return [props.content, props.rows];
|
|
1543
|
-
}, init);
|
|
135
|
+
watch(() => [props.content, props.rows], init);
|
|
1544
136
|
return {
|
|
1545
137
|
text,
|
|
1546
138
|
expanded,
|
|
@@ -1550,62 +142,6 @@ __sfc_main.setup = function(__props, __ctx) {
|
|
|
1550
142
|
onClickAction
|
|
1551
143
|
};
|
|
1552
144
|
};
|
|
1553
|
-
function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
1554
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
1555
|
-
if (render2) {
|
|
1556
|
-
options.render = render2;
|
|
1557
|
-
options.staticRenderFns = staticRenderFns;
|
|
1558
|
-
options._compiled = true;
|
|
1559
|
-
}
|
|
1560
|
-
if (functionalTemplate) {
|
|
1561
|
-
options.functional = true;
|
|
1562
|
-
}
|
|
1563
|
-
if (scopeId) {
|
|
1564
|
-
options._scopeId = "data-v-" + scopeId;
|
|
1565
|
-
}
|
|
1566
|
-
var hook;
|
|
1567
|
-
if (moduleIdentifier) {
|
|
1568
|
-
hook = function(context) {
|
|
1569
|
-
context = context || // cached call
|
|
1570
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
1571
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
1572
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
1573
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1574
|
-
}
|
|
1575
|
-
if (injectStyles) {
|
|
1576
|
-
injectStyles.call(this, context);
|
|
1577
|
-
}
|
|
1578
|
-
if (context && context._registeredComponents) {
|
|
1579
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
options._ssrRegister = hook;
|
|
1583
|
-
} else if (injectStyles) {
|
|
1584
|
-
hook = shadowMode ? function() {
|
|
1585
|
-
injectStyles.call(
|
|
1586
|
-
this,
|
|
1587
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
1588
|
-
);
|
|
1589
|
-
} : injectStyles;
|
|
1590
|
-
}
|
|
1591
|
-
if (hook) {
|
|
1592
|
-
if (options.functional) {
|
|
1593
|
-
options._injectStyles = hook;
|
|
1594
|
-
var originalRender = options.render;
|
|
1595
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1596
|
-
hook.call(context);
|
|
1597
|
-
return originalRender(h, context);
|
|
1598
|
-
};
|
|
1599
|
-
} else {
|
|
1600
|
-
var existing = options.beforeCreate;
|
|
1601
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
return {
|
|
1605
|
-
exports: scriptExports,
|
|
1606
|
-
options
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
145
|
var _sfc_render = function render() {
|
|
1610
146
|
var _vm = this, _c = _vm._self._c;
|
|
1611
147
|
_vm._self._setupProxy;
|
|
@@ -1616,7 +152,7 @@ var _sfc_render = function render() {
|
|
|
1616
152
|
staticClass: "nf-text-overflow__content",
|
|
1617
153
|
style: {
|
|
1618
154
|
height: _vm.contentHeight,
|
|
1619
|
-
lineHeight:
|
|
155
|
+
lineHeight: `${_vm.rowHeight}px`
|
|
1620
156
|
}
|
|
1621
157
|
}, [_vm._t("default", function() {
|
|
1622
158
|
return [_vm._v(_vm._s(_vm.expanded ? _vm.content : _vm.text))];
|
|
@@ -1627,13 +163,13 @@ var _sfc_render = function render() {
|
|
|
1627
163
|
}
|
|
1628
164
|
}, [_vm._v(" " + _vm._s(_vm.expanded ? _vm.collapseText : _vm.expandText) + " "), _c("i", {
|
|
1629
165
|
staticClass: "nf-text-overflow__icon",
|
|
1630
|
-
|
|
166
|
+
class: [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
|
|
1631
167
|
})]) : _vm._e()]);
|
|
1632
168
|
};
|
|
1633
169
|
var _sfc_staticRenderFns = [];
|
|
1634
170
|
var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
1635
171
|
const NfTextOverflow = __component__.exports;
|
|
1636
|
-
NfTextOverflow.install =
|
|
172
|
+
NfTextOverflow.install = (app) => {
|
|
1637
173
|
app.component("nf-text-overflow", NfTextOverflow);
|
|
1638
174
|
};
|
|
1639
175
|
export {
|