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