@94ai/nf-text-overflow 3.3.37 → 3.3.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.
@@ -2,7 +2,1034 @@
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
- const __sfc_main = vueDemi.defineComponent({
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$b = function(exec2) {
10
+ try {
11
+ return !!exec2();
12
+ } catch (error) {
13
+ return true;
14
+ }
15
+ };
16
+ var fails$a = fails$b;
17
+ var functionBindNative = !fails$a(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$1 = Function.prototype;
24
+ var call$6 = FunctionPrototype$1.call;
25
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$1.bind.bind(call$6, call$6);
26
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
27
+ return function() {
28
+ return call$6.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$a = (
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 = Function.prototype;
46
+ var apply$1 = FunctionPrototype.apply;
47
+ var call$5 = FunctionPrototype.call;
48
+ var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$5.bind(apply$1) : function() {
49
+ return call$5.apply(apply$1, arguments);
50
+ });
51
+ var uncurryThis$c = functionUncurryThis;
52
+ var toString$1 = uncurryThis$c({}.toString);
53
+ var stringSlice = uncurryThis$c("".slice);
54
+ var classofRaw$2 = function(it) {
55
+ return stringSlice(toString$1(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$a = $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$9 = fails$b;
78
+ var descriptors = !fails$9(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$4 = Function.prototype.call;
87
+ var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
88
+ return call$4.apply(call$4, 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$3 = 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$8 = fails$b;
110
+ var classof$4 = classofRaw$2;
111
+ var $Object$3 = Object;
112
+ var split = uncurryThis$a("".split);
113
+ var indexedObject = fails$8(function() {
114
+ return !$Object$3("z").propertyIsEnumerable(0);
115
+ }) ? function(it) {
116
+ return classof$4(it) === "String" ? split(it, "") : $Object$3(it);
117
+ } : $Object$3;
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 new $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$4 = function(it) {
131
+ return IndexedObject$2(requireObjectCoercible$1(it));
132
+ };
133
+ var isCallable$9 = isCallable$a;
134
+ var $documentAll = documentAll_1;
135
+ var documentAll = $documentAll.all;
136
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function(it) {
137
+ return typeof it == "object" ? it !== null : isCallable$9(it) || it === documentAll;
138
+ } : function(it) {
139
+ return typeof it == "object" ? it !== null : isCallable$9(it);
140
+ };
141
+ var path$4 = {};
142
+ var path$3 = path$4;
143
+ var global$9 = global$a;
144
+ var isCallable$8 = isCallable$a;
145
+ var aFunction = function(variable) {
146
+ return isCallable$8(variable) ? variable : void 0;
147
+ };
148
+ var getBuiltIn$2 = function(namespace, method2) {
149
+ return arguments.length < 2 ? aFunction(path$3[namespace]) || aFunction(global$9[namespace]) : path$3[namespace] && path$3[namespace][method2] || global$9[namespace] && global$9[namespace][method2];
150
+ };
151
+ var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
152
+ var global$8 = global$a;
153
+ var userAgent = engineUserAgent;
154
+ var process = global$8.process;
155
+ var Deno = global$8.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$7 = fails$b;
174
+ var global$7 = global$a;
175
+ var $String$2 = global$7.String;
176
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(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$1 = getBuiltIn$2;
184
+ var isCallable$7 = isCallable$a;
185
+ var isPrototypeOf$2 = objectIsPrototypeOf;
186
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
187
+ var $Object$2 = Object;
188
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
189
+ return typeof it == "symbol";
190
+ } : function(it) {
191
+ var $Symbol = getBuiltIn$1("Symbol");
192
+ return isCallable$7($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(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$6 = isCallable$a;
203
+ var tryToString = tryToString$1;
204
+ var $TypeError$4 = TypeError;
205
+ var aCallable$2 = function(argument) {
206
+ if (isCallable$6(argument))
207
+ return argument;
208
+ throw new $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$3 = functionCall;
217
+ var isCallable$5 = isCallable$a;
218
+ var isObject$5 = isObject$6;
219
+ var $TypeError$3 = TypeError;
220
+ var ordinaryToPrimitive$1 = function(input, pref) {
221
+ var fn, val;
222
+ if (pref === "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$3(fn, input)))
223
+ return val;
224
+ if (isCallable$5(fn = input.valueOf) && !isObject$5(val = call$3(fn, input)))
225
+ return val;
226
+ if (pref !== "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$3(fn, input)))
227
+ return val;
228
+ throw new $TypeError$3("Can't convert object to primitive value");
229
+ };
230
+ var shared$1 = { exports: {} };
231
+ var global$6 = global$a;
232
+ var defineProperty$1 = Object.defineProperty;
233
+ var defineGlobalProperty$1 = function(key, value) {
234
+ try {
235
+ defineProperty$1(global$6, key, {
236
+ value,
237
+ configurable: true,
238
+ writable: true
239
+ });
240
+ } catch (error) {
241
+ global$6[key] = value;
242
+ }
243
+ return value;
244
+ };
245
+ var global$5 = global$a;
246
+ var defineGlobalProperty = defineGlobalProperty$1;
247
+ var SHARED = "__core-js_shared__";
248
+ var store$2 = global$5[SHARED] || defineGlobalProperty(SHARED, {});
249
+ var sharedStore = store$2;
250
+ var store$1 = sharedStore;
251
+ (shared$1.exports = function(key, value) {
252
+ return store$1[key] || (store$1[key] = value !== void 0 ? value : {});
253
+ })("versions", []).push({
254
+ version: "3.33.2",
255
+ mode: "pure",
256
+ copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
257
+ license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
258
+ source: "https://github.com/zloirock/core-js"
259
+ });
260
+ var sharedExports = shared$1.exports;
261
+ var requireObjectCoercible = requireObjectCoercible$2;
262
+ var $Object$1 = Object;
263
+ var toObject$3 = function(argument) {
264
+ return $Object$1(requireObjectCoercible(argument));
265
+ };
266
+ var uncurryThis$9 = functionUncurryThis;
267
+ var toObject$2 = toObject$3;
268
+ var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
269
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
270
+ return hasOwnProperty(toObject$2(it), key);
271
+ };
272
+ var uncurryThis$8 = functionUncurryThis;
273
+ var id = 0;
274
+ var postfix = Math.random();
275
+ var toString = uncurryThis$8(1 .toString);
276
+ var uid$1 = function(key) {
277
+ return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
278
+ };
279
+ var global$4 = global$a;
280
+ var shared = sharedExports;
281
+ var hasOwn$4 = hasOwnProperty_1;
282
+ var uid = uid$1;
283
+ var NATIVE_SYMBOL = symbolConstructorDetection;
284
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
285
+ var Symbol$1 = global$4.Symbol;
286
+ var WellKnownSymbolsStore = shared("wks");
287
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
288
+ var wellKnownSymbol$6 = function(name) {
289
+ if (!hasOwn$4(WellKnownSymbolsStore, name)) {
290
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$4(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
291
+ }
292
+ return WellKnownSymbolsStore[name];
293
+ };
294
+ var call$2 = functionCall;
295
+ var isObject$4 = isObject$6;
296
+ var isSymbol$1 = isSymbol$2;
297
+ var getMethod = getMethod$1;
298
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
299
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
300
+ var $TypeError$2 = TypeError;
301
+ var TO_PRIMITIVE = wellKnownSymbol$5("toPrimitive");
302
+ var toPrimitive$1 = function(input, pref) {
303
+ if (!isObject$4(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$2(exoticToPrim, input, pref);
311
+ if (!isObject$4(result) || isSymbol$1(result))
312
+ return result;
313
+ throw new $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$3 = global$a;
326
+ var isObject$3 = isObject$6;
327
+ var document$1 = global$3.document;
328
+ var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
329
+ var documentCreateElement = function(it) {
330
+ return EXISTS ? document$1.createElement(it) : {};
331
+ };
332
+ var DESCRIPTORS$5 = descriptors;
333
+ var fails$6 = fails$b;
334
+ var createElement = documentCreateElement;
335
+ var ie8DomDefine = !DESCRIPTORS$5 && !fails$6(function() {
336
+ return Object.defineProperty(createElement("div"), "a", {
337
+ get: function() {
338
+ return 7;
339
+ }
340
+ }).a !== 7;
341
+ });
342
+ var DESCRIPTORS$4 = descriptors;
343
+ var call$1 = functionCall;
344
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
345
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
346
+ var toIndexedObject$3 = toIndexedObject$4;
347
+ var toPropertyKey$2 = toPropertyKey$3;
348
+ var hasOwn$3 = hasOwnProperty_1;
349
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
350
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
351
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
352
+ O = toIndexedObject$3(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$3(O, P))
360
+ return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
361
+ };
362
+ var fails$5 = fails$b;
363
+ var isCallable$4 = isCallable$a;
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$4(detection) ? fails$5(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$3 = descriptors;
388
+ var fails$4 = fails$b;
389
+ var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$4(function() {
390
+ return Object.defineProperty(function() {
391
+ }, "prototype", {
392
+ value: 42,
393
+ writable: false
394
+ }).prototype !== 42;
395
+ });
396
+ var isObject$2 = isObject$6;
397
+ var $String = String;
398
+ var $TypeError$1 = TypeError;
399
+ var anObject$1 = function(argument) {
400
+ if (isObject$2(argument))
401
+ return argument;
402
+ throw new $TypeError$1($String(argument) + " is not an object");
403
+ };
404
+ var DESCRIPTORS$2 = descriptors;
405
+ var IE8_DOM_DEFINE = ie8DomDefine;
406
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
407
+ var anObject = anObject$1;
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 = "configurable";
414
+ var WRITABLE = "writable";
415
+ objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
416
+ anObject(O);
417
+ P = toPropertyKey$1(P);
418
+ anObject(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 in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
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(O);
433
+ P = toPropertyKey$1(P);
434
+ anObject(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 new $TypeError("Accessors not supported");
442
+ if ("value" in Attributes)
443
+ O[P] = Attributes.value;
444
+ return O;
445
+ };
446
+ var DESCRIPTORS$1 = descriptors;
447
+ var definePropertyModule$1 = objectDefineProperty;
448
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
449
+ var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function(object, key, value) {
450
+ return definePropertyModule$1.f(object, key, createPropertyDescriptor$1(1, value));
451
+ } : function(object, key, value) {
452
+ object[key] = value;
453
+ return object;
454
+ };
455
+ var global$2 = global$a;
456
+ var apply = functionApply;
457
+ var uncurryThis$6 = functionUncurryThisClause;
458
+ var isCallable$3 = isCallable$a;
459
+ var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
460
+ var isForced = isForced_1;
461
+ var path$2 = path$4;
462
+ var bind$1 = functionBindContext;
463
+ var createNonEnumerableProperty = createNonEnumerableProperty$1;
464
+ var hasOwn$2 = 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$2 : STATIC ? global$2[TARGET] : (global$2[TARGET] || {}).prototype;
489
+ var target = GLOBAL ? path$2 : path$2[TARGET] || createNonEnumerableProperty(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$2(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$2);
508
+ else if (options.wrap && USE_NATIVE)
509
+ resultProperty = wrapConstructor(sourceProperty);
510
+ else if (PROTO && isCallable$3(sourceProperty))
511
+ resultProperty = uncurryThis$6(sourceProperty);
512
+ else
513
+ resultProperty = sourceProperty;
514
+ if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
515
+ createNonEnumerableProperty(resultProperty, "sham", true);
516
+ }
517
+ createNonEnumerableProperty(target, key, resultProperty);
518
+ if (PROTO) {
519
+ VIRTUAL_PROTOTYPE = TARGET + "Prototype";
520
+ if (!hasOwn$2(path$2, VIRTUAL_PROTOTYPE)) {
521
+ createNonEnumerableProperty(path$2, VIRTUAL_PROTOTYPE, {});
522
+ }
523
+ createNonEnumerableProperty(path$2[VIRTUAL_PROTOTYPE], key, sourceProperty);
524
+ if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
525
+ createNonEnumerableProperty(targetPrototype, key, sourceProperty);
526
+ }
527
+ }
528
+ }
529
+ };
530
+ var classof$3 = classofRaw$2;
531
+ var isArray$2 = Array.isArray || function isArray(argument) {
532
+ return classof$3(argument) === "Array";
533
+ };
534
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
535
+ var TO_STRING_TAG$1 = wellKnownSymbol$4("toStringTag");
536
+ var test = {};
537
+ test[TO_STRING_TAG$1] = "z";
538
+ var toStringTagSupport = String(test) === "[object z]";
539
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
540
+ var isCallable$2 = isCallable$a;
541
+ var classofRaw = classofRaw$2;
542
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
543
+ var TO_STRING_TAG = wellKnownSymbol$3("toStringTag");
544
+ var $Object = 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$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
555
+ var O, tag, result;
556
+ return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$2(O.callee) ? "Arguments" : result;
557
+ };
558
+ var uncurryThis$5 = functionUncurryThis;
559
+ var isCallable$1 = isCallable$a;
560
+ var store = sharedStore;
561
+ var functionToString = uncurryThis$5(Function.toString);
562
+ if (!isCallable$1(store.inspectSource)) {
563
+ store.inspectSource = function(it) {
564
+ return functionToString(it);
565
+ };
566
+ }
567
+ var inspectSource$1 = store.inspectSource;
568
+ var uncurryThis$4 = functionUncurryThis;
569
+ var fails$3 = fails$b;
570
+ var isCallable = isCallable$a;
571
+ var classof$1 = classof$2;
572
+ var getBuiltIn = getBuiltIn$2;
573
+ var inspectSource = inspectSource$1;
574
+ var noop = function() {
575
+ };
576
+ var empty = [];
577
+ var construct = getBuiltIn("Reflect", "construct");
578
+ var constructorRegExp = /^\s*(?:class|function)\b/;
579
+ var exec = uncurryThis$4(constructorRegExp.exec);
580
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
581
+ var isConstructorModern = function isConstructor(argument) {
582
+ if (!isCallable(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(argument))
593
+ return false;
594
+ switch (classof$1(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$3(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 = objectDefineProperty;
642
+ var createPropertyDescriptor = createPropertyDescriptor$3;
643
+ var createProperty$1 = function(object, key, value) {
644
+ var propertyKey = toPropertyKey(key);
645
+ if (propertyKey in object)
646
+ definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
647
+ else
648
+ object[propertyKey] = value;
649
+ };
650
+ var fails$2 = fails$b;
651
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
652
+ var V8_VERSION = engineV8Version;
653
+ var SPECIES$2 = wellKnownSymbol$2("species");
654
+ var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
655
+ return V8_VERSION >= 51 || !fails$2(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 $$2 = _export;
669
+ var isArray$1 = isArray$2;
670
+ var isConstructor$1 = isConstructor$2;
671
+ var isObject$1 = isObject$6;
672
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
673
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
674
+ var toIndexedObject$2 = toIndexedObject$4;
675
+ var createProperty = createProperty$1;
676
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
677
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
678
+ var nativeSlice = arraySlice;
679
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
680
+ var SPECIES$1 = wellKnownSymbol$1("species");
681
+ var $Array$1 = Array;
682
+ var max = Math.max;
683
+ $$2({
684
+ target: "Array",
685
+ proto: true,
686
+ forced: !HAS_SPECIES_SUPPORT
687
+ }, {
688
+ slice: function slice(start, end) {
689
+ var O = toIndexedObject$2(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$1(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 global$1 = global$a;
716
+ var path$1 = path$4;
717
+ var getBuiltInPrototypeMethod$2 = function(CONSTRUCTOR, METHOD) {
718
+ var Namespace = path$1[CONSTRUCTOR + "Prototype"];
719
+ var pureMethod = Namespace && Namespace[METHOD];
720
+ if (pureMethod)
721
+ return pureMethod;
722
+ var NativeConstructor = global$1[CONSTRUCTOR];
723
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
724
+ return NativePrototype && NativePrototype[METHOD];
725
+ };
726
+ var getBuiltInPrototypeMethod$1 = getBuiltInPrototypeMethod$2;
727
+ var slice$6 = getBuiltInPrototypeMethod$1("Array", "slice");
728
+ var isPrototypeOf$1 = objectIsPrototypeOf;
729
+ var method$1 = slice$6;
730
+ var ArrayPrototype$1 = Array.prototype;
731
+ var slice$5 = function(it) {
732
+ var own = it.slice;
733
+ return it === ArrayPrototype$1 || isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice ? method$1 : own;
734
+ };
735
+ var parent$8 = slice$5;
736
+ var slice$4 = parent$8;
737
+ var parent$7 = slice$4;
738
+ var slice$3 = parent$7;
739
+ var parent$6 = slice$3;
740
+ var slice$2 = parent$6;
741
+ var slice$1 = slice$2;
742
+ var slice2 = slice$1;
743
+ const _sliceInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(slice2);
744
+ var isArray2 = isArray$2;
745
+ var isConstructor3 = isConstructor$2;
746
+ var isObject = isObject$6;
747
+ var wellKnownSymbol = wellKnownSymbol$6;
748
+ var SPECIES = wellKnownSymbol("species");
749
+ var $Array = Array;
750
+ var arraySpeciesConstructor$1 = function(originalArray) {
751
+ var C;
752
+ if (isArray2(originalArray)) {
753
+ C = originalArray.constructor;
754
+ if (isConstructor3(C) && (C === $Array || isArray2(C.prototype)))
755
+ C = void 0;
756
+ else if (isObject(C)) {
757
+ C = C[SPECIES];
758
+ if (C === null)
759
+ C = void 0;
760
+ }
761
+ }
762
+ return C === void 0 ? $Array : C;
763
+ };
764
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
765
+ var arraySpeciesCreate$1 = function(originalArray, length) {
766
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
767
+ };
768
+ var bind = functionBindContext;
769
+ var uncurryThis$2 = functionUncurryThis;
770
+ var IndexedObject$1 = indexedObject;
771
+ var toObject$1 = toObject$3;
772
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
773
+ var arraySpeciesCreate = arraySpeciesCreate$1;
774
+ var push$1 = uncurryThis$2([].push);
775
+ var createMethod$1 = function(TYPE) {
776
+ var IS_MAP = TYPE === 1;
777
+ var IS_FILTER = TYPE === 2;
778
+ var IS_SOME = TYPE === 3;
779
+ var IS_EVERY = TYPE === 4;
780
+ var IS_FIND_INDEX = TYPE === 6;
781
+ var IS_FILTER_REJECT = TYPE === 7;
782
+ var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
783
+ return function($this, callbackfn, that, specificCreate) {
784
+ var O = toObject$1($this);
785
+ var self2 = IndexedObject$1(O);
786
+ var boundFunction = bind(callbackfn, that);
787
+ var length = lengthOfArrayLike$1(self2);
788
+ var index = 0;
789
+ var create = specificCreate || arraySpeciesCreate;
790
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0;
791
+ var value, result;
792
+ for (; length > index; index++)
793
+ if (NO_HOLES || index in self2) {
794
+ value = self2[index];
795
+ result = boundFunction(value, index, O);
796
+ if (TYPE) {
797
+ if (IS_MAP)
798
+ target[index] = result;
799
+ else if (result)
800
+ switch (TYPE) {
801
+ case 3:
802
+ return true;
803
+ case 5:
804
+ return value;
805
+ case 6:
806
+ return index;
807
+ case 2:
808
+ push$1(target, value);
809
+ }
810
+ else
811
+ switch (TYPE) {
812
+ case 4:
813
+ return false;
814
+ case 7:
815
+ push$1(target, value);
816
+ }
817
+ }
818
+ }
819
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
820
+ };
821
+ };
822
+ var arrayIteration = {
823
+ // `Array.prototype.forEach` method
824
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
825
+ forEach: createMethod$1(0),
826
+ // `Array.prototype.map` method
827
+ // https://tc39.es/ecma262/#sec-array.prototype.map
828
+ map: createMethod$1(1),
829
+ // `Array.prototype.filter` method
830
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
831
+ filter: createMethod$1(2),
832
+ // `Array.prototype.some` method
833
+ // https://tc39.es/ecma262/#sec-array.prototype.some
834
+ some: createMethod$1(3),
835
+ // `Array.prototype.every` method
836
+ // https://tc39.es/ecma262/#sec-array.prototype.every
837
+ every: createMethod$1(4),
838
+ // `Array.prototype.find` method
839
+ // https://tc39.es/ecma262/#sec-array.prototype.find
840
+ find: createMethod$1(5),
841
+ // `Array.prototype.findIndex` method
842
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
843
+ findIndex: createMethod$1(6),
844
+ // `Array.prototype.filterReject` method
845
+ // https://github.com/tc39/proposal-array-filtering
846
+ filterReject: createMethod$1(7)
847
+ };
848
+ var fails$1 = fails$b;
849
+ var arrayMethodIsStrict$1 = function(METHOD_NAME, argument) {
850
+ var method2 = [][METHOD_NAME];
851
+ return !!method2 && fails$1(function() {
852
+ method2.call(null, argument || function() {
853
+ return 1;
854
+ }, 1);
855
+ });
856
+ };
857
+ var $forEach = arrayIteration.forEach;
858
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
859
+ var STRICT_METHOD = arrayMethodIsStrict("forEach");
860
+ var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn) {
861
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
862
+ } : [].forEach;
863
+ var $$1 = _export;
864
+ var forEach$7 = arrayForEach;
865
+ $$1({
866
+ target: "Array",
867
+ proto: true,
868
+ forced: [].forEach !== forEach$7
869
+ }, {
870
+ forEach: forEach$7
871
+ });
872
+ var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$2;
873
+ var forEach$6 = getBuiltInPrototypeMethod("Array", "forEach");
874
+ var parent$5 = forEach$6;
875
+ var forEach$5 = parent$5;
876
+ var classof = classof$2;
877
+ var hasOwn$1 = hasOwnProperty_1;
878
+ var isPrototypeOf = objectIsPrototypeOf;
879
+ var method = forEach$5;
880
+ var ArrayPrototype = Array.prototype;
881
+ var DOMIterables = {
882
+ DOMTokenList: true,
883
+ NodeList: true
884
+ };
885
+ var forEach$4 = function(it) {
886
+ var own = it.forEach;
887
+ return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach || hasOwn$1(DOMIterables, classof(it)) ? method : own;
888
+ };
889
+ var parent$4 = forEach$4;
890
+ var forEach$3 = parent$4;
891
+ var parent$3 = forEach$3;
892
+ var forEach$2 = parent$3;
893
+ var forEach$1 = forEach$2;
894
+ var forEach2 = forEach$1;
895
+ const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
896
+ var toIndexedObject$1 = toIndexedObject$4;
897
+ var toAbsoluteIndex = toAbsoluteIndex$2;
898
+ var lengthOfArrayLike = lengthOfArrayLike$3;
899
+ var createMethod = function(IS_INCLUDES) {
900
+ return function($this, el, fromIndex) {
901
+ var O = toIndexedObject$1($this);
902
+ var length = lengthOfArrayLike(O);
903
+ var index = toAbsoluteIndex(fromIndex, length);
904
+ var value;
905
+ if (IS_INCLUDES && el !== el)
906
+ while (length > index) {
907
+ value = O[index++];
908
+ if (value !== value)
909
+ return true;
910
+ }
911
+ else
912
+ for (; length > index; index++) {
913
+ if ((IS_INCLUDES || index in O) && O[index] === el)
914
+ return IS_INCLUDES || index || 0;
915
+ }
916
+ return !IS_INCLUDES && -1;
917
+ };
918
+ };
919
+ var arrayIncludes = {
920
+ // `Array.prototype.includes` method
921
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
922
+ includes: createMethod(true),
923
+ // `Array.prototype.indexOf` method
924
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
925
+ indexOf: createMethod(false)
926
+ };
927
+ var hiddenKeys$1 = {};
928
+ var uncurryThis$1 = functionUncurryThis;
929
+ var hasOwn2 = hasOwnProperty_1;
930
+ var toIndexedObject = toIndexedObject$4;
931
+ var indexOf = arrayIncludes.indexOf;
932
+ var hiddenKeys = hiddenKeys$1;
933
+ var push = uncurryThis$1([].push);
934
+ var objectKeysInternal = function(object, names) {
935
+ var O = toIndexedObject(object);
936
+ var i = 0;
937
+ var result = [];
938
+ var key;
939
+ for (key in O)
940
+ !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
941
+ while (names.length > i)
942
+ if (hasOwn2(O, key = names[i++])) {
943
+ ~indexOf(result, key) || push(result, key);
944
+ }
945
+ return result;
946
+ };
947
+ var enumBugKeys$1 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
948
+ var internalObjectKeys = objectKeysInternal;
949
+ var enumBugKeys = enumBugKeys$1;
950
+ var objectKeys$1 = Object.keys || function keys(O) {
951
+ return internalObjectKeys(O, enumBugKeys);
952
+ };
953
+ var objectGetOwnPropertySymbols = {};
954
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
955
+ var DESCRIPTORS = descriptors;
956
+ var uncurryThis = functionUncurryThis;
957
+ var call = functionCall;
958
+ var fails = fails$b;
959
+ var objectKeys = objectKeys$1;
960
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
961
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
962
+ var toObject = toObject$3;
963
+ var IndexedObject = indexedObject;
964
+ var $assign = Object.assign;
965
+ var defineProperty3 = Object.defineProperty;
966
+ var concat = uncurryThis([].concat);
967
+ var objectAssign = !$assign || fails(function() {
968
+ if (DESCRIPTORS && $assign({
969
+ b: 1
970
+ }, $assign(defineProperty3({}, "a", {
971
+ enumerable: true,
972
+ get: function() {
973
+ defineProperty3(this, "b", {
974
+ value: 3,
975
+ enumerable: false
976
+ });
977
+ }
978
+ }), {
979
+ b: 2
980
+ })).b !== 1)
981
+ return true;
982
+ var A = {};
983
+ var B = {};
984
+ var symbol = Symbol("assign detection");
985
+ var alphabet = "abcdefghijklmnopqrst";
986
+ A[symbol] = 7;
987
+ alphabet.split("").forEach(function(chr) {
988
+ B[chr] = chr;
989
+ });
990
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet;
991
+ }) ? function assign(target, source) {
992
+ var T = toObject(target);
993
+ var argumentsLength = arguments.length;
994
+ var index = 1;
995
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
996
+ var propertyIsEnumerable2 = propertyIsEnumerableModule.f;
997
+ while (argumentsLength > index) {
998
+ var S = IndexedObject(arguments[index++]);
999
+ var keys2 = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1000
+ var length = keys2.length;
1001
+ var j = 0;
1002
+ var key;
1003
+ while (length > j) {
1004
+ key = keys2[j++];
1005
+ if (!DESCRIPTORS || call(propertyIsEnumerable2, S, key))
1006
+ T[key] = S[key];
1007
+ }
1008
+ }
1009
+ return T;
1010
+ } : $assign;
1011
+ var $ = _export;
1012
+ var assign$6 = objectAssign;
1013
+ $({
1014
+ target: "Object",
1015
+ stat: true,
1016
+ arity: 2,
1017
+ forced: Object.assign !== assign$6
1018
+ }, {
1019
+ assign: assign$6
1020
+ });
1021
+ var path = path$4;
1022
+ var assign$5 = path.Object.assign;
1023
+ var parent$2 = assign$5;
1024
+ var assign$4 = parent$2;
1025
+ var parent$1 = assign$4;
1026
+ var assign$3 = parent$1;
1027
+ var parent = assign$3;
1028
+ var assign$2 = parent;
1029
+ var assign$1 = assign$2;
1030
+ var assign2 = assign$1;
1031
+ const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assign2);
1032
+ var __sfc_main = vueDemi.defineComponent({
6
1033
  name: "nf-text-overflow"
7
1034
  });
8
1035
  __sfc_main.props = {
@@ -10,57 +1037,61 @@ __sfc_main.props = {
10
1037
  key: "content",
11
1038
  required: false,
12
1039
  type: String,
13
- default: ""
1040
+ "default": ""
14
1041
  },
15
1042
  expandText: {
16
1043
  key: "expandText",
17
1044
  required: false,
18
1045
  type: String,
19
- default: "展开"
1046
+ "default": "展开"
20
1047
  },
21
1048
  collapseText: {
22
1049
  key: "collapseText",
23
1050
  required: false,
24
1051
  type: String,
25
- default: "收起"
1052
+ "default": "收起"
26
1053
  },
27
1054
  rows: {
28
1055
  key: "rows",
29
1056
  required: false,
30
1057
  type: [String, Number],
31
- default: 1
1058
+ "default": 1
32
1059
  },
33
1060
  rowHeight: {
34
1061
  key: "rowHeight",
35
1062
  required: false,
36
1063
  type: [String, Number],
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) => {
1064
+ "default": 20
1065
+ }
1066
+ };
1067
+ __sfc_main.setup = function(__props, __ctx) {
1068
+ var props = __props;
1069
+ var emit = __ctx.emit;
1070
+ var text = vueDemi.ref("");
1071
+ var expanded = vueDemi.ref(false);
1072
+ var hasAction = vueDemi.ref(false);
1073
+ var textbox = vueDemi.ref();
1074
+ var contentHeight = vueDemi.ref();
1075
+ var hasDefaultSlot = vueDemi.computed(function() {
1076
+ return !!vueDemi.useSlots()["default"];
1077
+ });
1078
+ var maxContentHeight = vueDemi.computed(function() {
1079
+ return Number(props.rows) * Number(props.rowHeight);
1080
+ });
1081
+ var pxToNum = function pxToNum2(value) {
51
1082
  if (!value)
52
1083
  return 0;
53
- const match = value.match(/^\d*(\.\d*)?/);
54
- return match ? Number(match[0]) : 0;
1084
+ var match2 = value.match(/^\d*(\.\d*)?/);
1085
+ return match2 ? Number(match2[0]) : 0;
55
1086
  };
56
- const calcEllipsised = () => {
57
- const cloneContainer = () => {
1087
+ var calcEllipsised = function calcEllipsised2() {
1088
+ var cloneContainer = function cloneContainer2() {
58
1089
  if (!textbox.value)
59
1090
  return;
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) => {
1091
+ var originStyle = window.getComputedStyle(textbox.value);
1092
+ var container2 = document.createElement("div");
1093
+ var styleNames = _sliceInstanceProperty(Array.prototype).apply(originStyle);
1094
+ _forEachInstanceProperty(styleNames).call(styleNames, function(name) {
64
1095
  container2.style.setProperty(name, originStyle.getPropertyValue(name));
65
1096
  });
66
1097
  container2.style.position = "fixed";
@@ -73,16 +1104,14 @@ __sfc_main.setup = (__props, __ctx) => {
73
1104
  document.body.appendChild(container2);
74
1105
  return container2;
75
1106
  };
76
- const calcEllipsisText = (container2, maxHeight2) => {
77
- const {
78
- content
79
- } = props;
80
- let left = 0;
81
- let right = content.length;
82
- let res = -1;
1107
+ var calcEllipsisText = function calcEllipsisText2(container2, maxHeight2) {
1108
+ var content = props.content;
1109
+ var left = 0;
1110
+ var right = content.length;
1111
+ var res = -1;
83
1112
  while (left <= right) {
84
- const mid = Math.floor((left + right) / 2);
85
- container2.innerText = content.slice(0, mid);
1113
+ var mid = Math.floor((left + right) / 2);
1114
+ container2.innerText = _sliceInstanceProperty(content).call(content, 0, mid);
86
1115
  if (container2.offsetHeight <= maxHeight2) {
87
1116
  left = mid + 1;
88
1117
  res = mid;
@@ -90,17 +1119,13 @@ __sfc_main.setup = (__props, __ctx) => {
90
1119
  right = mid - 1;
91
1120
  }
92
1121
  }
93
- return content.slice(0, res);
1122
+ return _sliceInstanceProperty(content).call(content, 0, res);
94
1123
  };
95
- const container = cloneContainer();
1124
+ var container = cloneContainer();
96
1125
  if (!container)
97
1126
  return;
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);
1127
+ var _container$style = container.style, paddingBottom = _container$style.paddingBottom, paddingTop = _container$style.paddingTop, lineHeight = _container$style.lineHeight;
1128
+ var maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
104
1129
  if (maxHeight < container.offsetHeight) {
105
1130
  hasAction.value = true;
106
1131
  text.value = calcEllipsisText(container, maxHeight);
@@ -110,35 +1135,37 @@ __sfc_main.setup = (__props, __ctx) => {
110
1135
  }
111
1136
  document.body.removeChild(container);
112
1137
  };
113
- const calcContentHeight = () => {
1138
+ var calcContentHeight = function calcContentHeight2() {
114
1139
  if (!textbox.value)
115
1140
  return;
116
- const height = textbox.value.offsetHeight;
1141
+ var height = textbox.value.offsetHeight;
117
1142
  if (height > maxContentHeight.value) {
118
1143
  hasAction.value = true;
119
- contentHeight.value = `${maxContentHeight.value}px`;
1144
+ contentHeight.value = "".concat(maxContentHeight.value, "px");
120
1145
  }
121
1146
  };
122
- const init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
123
- const onClickAction = (event) => {
1147
+ var init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
1148
+ var onClickAction = function onClickAction2(event) {
124
1149
  expanded.value = !expanded.value;
125
1150
  if (hasDefaultSlot.value) {
126
- contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
1151
+ contentHeight.value = expanded.value ? "auto" : "".concat(maxContentHeight.value, "px");
127
1152
  }
128
1153
  emit("clickAction", {
129
1154
  event,
130
1155
  expanded: expanded.value
131
1156
  });
132
1157
  };
133
- vueDemi.onMounted(() => {
1158
+ vueDemi.onMounted(function() {
134
1159
  init();
135
1160
  window.addEventListener("resize", init);
136
1161
  });
137
- vueDemi.onUnmounted(() => {
1162
+ vueDemi.onUnmounted(function() {
138
1163
  window.removeEventListener("resize", init);
139
1164
  });
140
- vueDemi.watch(() => [props.content, props.rows], init);
141
- return Object.assign({
1165
+ vueDemi.watch(function() {
1166
+ return [props.content, props.rows];
1167
+ }, init);
1168
+ return _Object$assign({
142
1169
  text,
143
1170
  expanded,
144
1171
  hasAction,
@@ -159,7 +1186,7 @@ var _sfc_render = function render() {
159
1186
  staticClass: "nf-text-overflow__content",
160
1187
  style: {
161
1188
  height: _vm.contentHeight,
162
- lineHeight: `${_vm.rowHeight}px`
1189
+ lineHeight: "".concat(_vm.rowHeight, "px")
163
1190
  }
164
1191
  }, [_vm._t("default", function() {
165
1192
  return [_vm._v(_vm._s(_vm.expanded ? _vm.content : _vm.text))];
@@ -170,13 +1197,13 @@ var _sfc_render = function render() {
170
1197
  }
171
1198
  }, [_vm._v(" " + _vm._s(_vm.expanded ? _vm.collapseText : _vm.expandText) + " "), _c("i", {
172
1199
  staticClass: "nf-text-overflow__icon",
173
- class: [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
1200
+ "class": [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
174
1201
  })]) : _vm._e()]);
175
1202
  };
176
1203
  var _sfc_staticRenderFns = [];
177
1204
  var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
178
1205
  const NfTextOverflow = __component__.exports;
179
- NfTextOverflow.install = (app) => {
1206
+ NfTextOverflow.install = function(app) {
180
1207
  app.component("nf-text-overflow", NfTextOverflow);
181
1208
  };
182
1209
  exports.default = NfTextOverflow;