UNPKG

100 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5})(this, (function ($$7) { 'use strict';
6
7 function _classCallCheck(instance, Constructor) {
8 if (!(instance instanceof Constructor)) {
9 throw new TypeError("Cannot call a class as a function");
10 }
11 }
12 function _defineProperties(target, props) {
13 for (var i = 0; i < props.length; i++) {
14 var descriptor = props[i];
15 descriptor.enumerable = descriptor.enumerable || false;
16 descriptor.configurable = true;
17 if ("value" in descriptor) descriptor.writable = true;
18 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
19 }
20 }
21 function _createClass(Constructor, protoProps, staticProps) {
22 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23 if (staticProps) _defineProperties(Constructor, staticProps);
24 Object.defineProperty(Constructor, "prototype", {
25 writable: false
26 });
27 return Constructor;
28 }
29 function _defineProperty(obj, key, value) {
30 key = _toPropertyKey(key);
31 if (key in obj) {
32 Object.defineProperty(obj, key, {
33 value: value,
34 enumerable: true,
35 configurable: true,
36 writable: true
37 });
38 } else {
39 obj[key] = value;
40 }
41 return obj;
42 }
43 function _inherits(subClass, superClass) {
44 if (typeof superClass !== "function" && superClass !== null) {
45 throw new TypeError("Super expression must either be null or a function");
46 }
47 subClass.prototype = Object.create(superClass && superClass.prototype, {
48 constructor: {
49 value: subClass,
50 writable: true,
51 configurable: true
52 }
53 });
54 Object.defineProperty(subClass, "prototype", {
55 writable: false
56 });
57 if (superClass) _setPrototypeOf(subClass, superClass);
58 }
59 function _getPrototypeOf(o) {
60 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
61 return o.__proto__ || Object.getPrototypeOf(o);
62 };
63 return _getPrototypeOf(o);
64 }
65 function _setPrototypeOf(o, p) {
66 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
67 o.__proto__ = p;
68 return o;
69 };
70 return _setPrototypeOf(o, p);
71 }
72 function _isNativeReflectConstruct() {
73 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
74 if (Reflect.construct.sham) return false;
75 if (typeof Proxy === "function") return true;
76 try {
77 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
78 return true;
79 } catch (e) {
80 return false;
81 }
82 }
83 function _assertThisInitialized(self) {
84 if (self === void 0) {
85 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
86 }
87 return self;
88 }
89 function _possibleConstructorReturn(self, call) {
90 if (call && (typeof call === "object" || typeof call === "function")) {
91 return call;
92 } else if (call !== void 0) {
93 throw new TypeError("Derived constructors may only return object or undefined");
94 }
95 return _assertThisInitialized(self);
96 }
97 function _createSuper(Derived) {
98 var hasNativeReflectConstruct = _isNativeReflectConstruct();
99 return function _createSuperInternal() {
100 var Super = _getPrototypeOf(Derived),
101 result;
102 if (hasNativeReflectConstruct) {
103 var NewTarget = _getPrototypeOf(this).constructor;
104 result = Reflect.construct(Super, arguments, NewTarget);
105 } else {
106 result = Super.apply(this, arguments);
107 }
108 return _possibleConstructorReturn(this, result);
109 };
110 }
111 function _superPropBase(object, property) {
112 while (!Object.prototype.hasOwnProperty.call(object, property)) {
113 object = _getPrototypeOf(object);
114 if (object === null) break;
115 }
116 return object;
117 }
118 function _get() {
119 if (typeof Reflect !== "undefined" && Reflect.get) {
120 _get = Reflect.get.bind();
121 } else {
122 _get = function _get(target, property, receiver) {
123 var base = _superPropBase(target, property);
124 if (!base) return;
125 var desc = Object.getOwnPropertyDescriptor(base, property);
126 if (desc.get) {
127 return desc.get.call(arguments.length < 3 ? target : receiver);
128 }
129 return desc.value;
130 };
131 }
132 return _get.apply(this, arguments);
133 }
134 function _unsupportedIterableToArray(o, minLen) {
135 if (!o) return;
136 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
137 var n = Object.prototype.toString.call(o).slice(8, -1);
138 if (n === "Object" && o.constructor) n = o.constructor.name;
139 if (n === "Map" || n === "Set") return Array.from(o);
140 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
141 }
142 function _arrayLikeToArray(arr, len) {
143 if (len == null || len > arr.length) len = arr.length;
144 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
145 return arr2;
146 }
147 function _createForOfIteratorHelper(o, allowArrayLike) {
148 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
149 if (!it) {
150 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
151 if (it) o = it;
152 var i = 0;
153 var F = function () {};
154 return {
155 s: F,
156 n: function () {
157 if (i >= o.length) return {
158 done: true
159 };
160 return {
161 done: false,
162 value: o[i++]
163 };
164 },
165 e: function (e) {
166 throw e;
167 },
168 f: F
169 };
170 }
171 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
172 }
173 var normalCompletion = true,
174 didErr = false,
175 err;
176 return {
177 s: function () {
178 it = it.call(o);
179 },
180 n: function () {
181 var step = it.next();
182 normalCompletion = step.done;
183 return step;
184 },
185 e: function (e) {
186 didErr = true;
187 err = e;
188 },
189 f: function () {
190 try {
191 if (!normalCompletion && it.return != null) it.return();
192 } finally {
193 if (didErr) throw err;
194 }
195 }
196 };
197 }
198 function _toPrimitive(input, hint) {
199 if (typeof input !== "object" || input === null) return input;
200 var prim = input[Symbol.toPrimitive];
201 if (prim !== undefined) {
202 var res = prim.call(input, hint || "default");
203 if (typeof res !== "object") return res;
204 throw new TypeError("@@toPrimitive must return a primitive value.");
205 }
206 return (hint === "string" ? String : Number)(input);
207 }
208 function _toPropertyKey(arg) {
209 var key = _toPrimitive(arg, "string");
210 return typeof key === "symbol" ? key : String(key);
211 }
212
213 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
214
215 var check = function (it) {
216 return it && it.Math == Math && it;
217 };
218
219 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
220 var global$e =
221 // eslint-disable-next-line es/no-global-this -- safe
222 check(typeof globalThis == 'object' && globalThis) ||
223 check(typeof window == 'object' && window) ||
224 // eslint-disable-next-line no-restricted-globals -- safe
225 check(typeof self == 'object' && self) ||
226 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
227 // eslint-disable-next-line no-new-func -- fallback
228 (function () { return this; })() || Function('return this')();
229
230 var objectGetOwnPropertyDescriptor = {};
231
232 var fails$i = function (exec) {
233 try {
234 return !!exec();
235 } catch (error) {
236 return true;
237 }
238 };
239
240 var fails$h = fails$i;
241
242 // Detect IE8's incomplete defineProperty implementation
243 var descriptors = !fails$h(function () {
244 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
245 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
246 });
247
248 var fails$g = fails$i;
249
250 var functionBindNative = !fails$g(function () {
251 // eslint-disable-next-line es/no-function-prototype-bind -- safe
252 var test = (function () { /* empty */ }).bind();
253 // eslint-disable-next-line no-prototype-builtins -- safe
254 return typeof test != 'function' || test.hasOwnProperty('prototype');
255 });
256
257 var NATIVE_BIND$3 = functionBindNative;
258
259 var call$9 = Function.prototype.call;
260
261 var functionCall = NATIVE_BIND$3 ? call$9.bind(call$9) : function () {
262 return call$9.apply(call$9, arguments);
263 };
264
265 var objectPropertyIsEnumerable = {};
266
267 var $propertyIsEnumerable = {}.propertyIsEnumerable;
268 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
269 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
270
271 // Nashorn ~ JDK8 bug
272 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
273
274 // `Object.prototype.propertyIsEnumerable` method implementation
275 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
276 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
277 var descriptor = getOwnPropertyDescriptor$1(this, V);
278 return !!descriptor && descriptor.enumerable;
279 } : $propertyIsEnumerable;
280
281 var createPropertyDescriptor$3 = function (bitmap, value) {
282 return {
283 enumerable: !(bitmap & 1),
284 configurable: !(bitmap & 2),
285 writable: !(bitmap & 4),
286 value: value
287 };
288 };
289
290 var NATIVE_BIND$2 = functionBindNative;
291
292 var FunctionPrototype$2 = Function.prototype;
293 var call$8 = FunctionPrototype$2.call;
294 var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$8, call$8);
295
296 var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
297 return function () {
298 return call$8.apply(fn, arguments);
299 };
300 };
301
302 var uncurryThis$k = functionUncurryThis;
303
304 var toString$6 = uncurryThis$k({}.toString);
305 var stringSlice$5 = uncurryThis$k(''.slice);
306
307 var classofRaw$2 = function (it) {
308 return stringSlice$5(toString$6(it), 8, -1);
309 };
310
311 var uncurryThis$j = functionUncurryThis;
312 var fails$f = fails$i;
313 var classof$6 = classofRaw$2;
314
315 var $Object$3 = Object;
316 var split = uncurryThis$j(''.split);
317
318 // fallback for non-array-like ES3 and non-enumerable old V8 strings
319 var indexedObject = fails$f(function () {
320 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
321 // eslint-disable-next-line no-prototype-builtins -- safe
322 return !$Object$3('z').propertyIsEnumerable(0);
323 }) ? function (it) {
324 return classof$6(it) == 'String' ? split(it, '') : $Object$3(it);
325 } : $Object$3;
326
327 // we can't use just `it == null` since of `document.all` special case
328 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
329 var isNullOrUndefined$3 = function (it) {
330 return it === null || it === undefined;
331 };
332
333 var isNullOrUndefined$2 = isNullOrUndefined$3;
334
335 var $TypeError$7 = TypeError;
336
337 // `RequireObjectCoercible` abstract operation
338 // https://tc39.es/ecma262/#sec-requireobjectcoercible
339 var requireObjectCoercible$4 = function (it) {
340 if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
341 return it;
342 };
343
344 // toObject with fallback for non-array-like ES3 strings
345 var IndexedObject$3 = indexedObject;
346 var requireObjectCoercible$3 = requireObjectCoercible$4;
347
348 var toIndexedObject$6 = function (it) {
349 return IndexedObject$3(requireObjectCoercible$3(it));
350 };
351
352 var documentAll$2 = typeof document == 'object' && document.all;
353
354 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
355 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
356 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
357
358 var documentAll_1 = {
359 all: documentAll$2,
360 IS_HTMLDDA: IS_HTMLDDA
361 };
362
363 var $documentAll$1 = documentAll_1;
364
365 var documentAll$1 = $documentAll$1.all;
366
367 // `IsCallable` abstract operation
368 // https://tc39.es/ecma262/#sec-iscallable
369 var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
370 return typeof argument == 'function' || argument === documentAll$1;
371 } : function (argument) {
372 return typeof argument == 'function';
373 };
374
375 var isCallable$d = isCallable$e;
376 var $documentAll = documentAll_1;
377
378 var documentAll = $documentAll.all;
379
380 var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
381 return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
382 } : function (it) {
383 return typeof it == 'object' ? it !== null : isCallable$d(it);
384 };
385
386 var global$d = global$e;
387 var isCallable$c = isCallable$e;
388
389 var aFunction = function (argument) {
390 return isCallable$c(argument) ? argument : undefined;
391 };
392
393 var getBuiltIn$4 = function (namespace, method) {
394 return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
395 };
396
397 var uncurryThis$i = functionUncurryThis;
398
399 var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
400
401 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
402
403 var global$c = global$e;
404 var userAgent = engineUserAgent;
405
406 var process = global$c.process;
407 var Deno = global$c.Deno;
408 var versions = process && process.versions || Deno && Deno.version;
409 var v8 = versions && versions.v8;
410 var match, version;
411
412 if (v8) {
413 match = v8.split('.');
414 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
415 // but their correct versions are not interesting for us
416 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
417 }
418
419 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
420 // so check `userAgent` even if `.v8` exists, but 0
421 if (!version && userAgent) {
422 match = userAgent.match(/Edge\/(\d+)/);
423 if (!match || match[1] >= 74) {
424 match = userAgent.match(/Chrome\/(\d+)/);
425 if (match) version = +match[1];
426 }
427 }
428
429 var engineV8Version = version;
430
431 /* eslint-disable es/no-symbol -- required for testing */
432
433 var V8_VERSION$2 = engineV8Version;
434 var fails$e = fails$i;
435
436 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
437 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
438 var symbol = Symbol();
439 // Chrome 38 Symbol has incorrect toString conversion
440 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
441 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
442 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
443 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
444 });
445
446 /* eslint-disable es/no-symbol -- required for testing */
447
448 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
449
450 var useSymbolAsUid = NATIVE_SYMBOL$1
451 && !Symbol.sham
452 && typeof Symbol.iterator == 'symbol';
453
454 var getBuiltIn$3 = getBuiltIn$4;
455 var isCallable$b = isCallable$e;
456 var isPrototypeOf = objectIsPrototypeOf;
457 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
458
459 var $Object$2 = Object;
460
461 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
462 return typeof it == 'symbol';
463 } : function (it) {
464 var $Symbol = getBuiltIn$3('Symbol');
465 return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
466 };
467
468 var $String$3 = String;
469
470 var tryToString$1 = function (argument) {
471 try {
472 return $String$3(argument);
473 } catch (error) {
474 return 'Object';
475 }
476 };
477
478 var isCallable$a = isCallable$e;
479 var tryToString = tryToString$1;
480
481 var $TypeError$6 = TypeError;
482
483 // `Assert: IsCallable(argument) is true`
484 var aCallable$2 = function (argument) {
485 if (isCallable$a(argument)) return argument;
486 throw $TypeError$6(tryToString(argument) + ' is not a function');
487 };
488
489 var aCallable$1 = aCallable$2;
490 var isNullOrUndefined$1 = isNullOrUndefined$3;
491
492 // `GetMethod` abstract operation
493 // https://tc39.es/ecma262/#sec-getmethod
494 var getMethod$2 = function (V, P) {
495 var func = V[P];
496 return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
497 };
498
499 var call$7 = functionCall;
500 var isCallable$9 = isCallable$e;
501 var isObject$7 = isObject$8;
502
503 var $TypeError$5 = TypeError;
504
505 // `OrdinaryToPrimitive` abstract operation
506 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
507 var ordinaryToPrimitive$1 = function (input, pref) {
508 var fn, val;
509 if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
510 if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$7(fn, input))) return val;
511 if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
512 throw $TypeError$5("Can't convert object to primitive value");
513 };
514
515 var sharedExports = {};
516 var shared$4 = {
517 get exports(){ return sharedExports; },
518 set exports(v){ sharedExports = v; },
519 };
520
521 var global$b = global$e;
522
523 // eslint-disable-next-line es/no-object-defineproperty -- safe
524 var defineProperty$3 = Object.defineProperty;
525
526 var defineGlobalProperty$3 = function (key, value) {
527 try {
528 defineProperty$3(global$b, key, { value: value, configurable: true, writable: true });
529 } catch (error) {
530 global$b[key] = value;
531 } return value;
532 };
533
534 var global$a = global$e;
535 var defineGlobalProperty$2 = defineGlobalProperty$3;
536
537 var SHARED = '__core-js_shared__';
538 var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
539
540 var sharedStore = store$3;
541
542 var store$2 = sharedStore;
543
544 (shared$4.exports = function (key, value) {
545 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
546 })('versions', []).push({
547 version: '3.29.0',
548 mode: 'global',
549 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
550 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
551 source: 'https://github.com/zloirock/core-js'
552 });
553
554 var requireObjectCoercible$2 = requireObjectCoercible$4;
555
556 var $Object$1 = Object;
557
558 // `ToObject` abstract operation
559 // https://tc39.es/ecma262/#sec-toobject
560 var toObject$5 = function (argument) {
561 return $Object$1(requireObjectCoercible$2(argument));
562 };
563
564 var uncurryThis$h = functionUncurryThis;
565 var toObject$4 = toObject$5;
566
567 var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
568
569 // `HasOwnProperty` abstract operation
570 // https://tc39.es/ecma262/#sec-hasownproperty
571 // eslint-disable-next-line es/no-object-hasown -- safe
572 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
573 return hasOwnProperty(toObject$4(it), key);
574 };
575
576 var uncurryThis$g = functionUncurryThis;
577
578 var id = 0;
579 var postfix = Math.random();
580 var toString$5 = uncurryThis$g(1.0.toString);
581
582 var uid$2 = function (key) {
583 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
584 };
585
586 var global$9 = global$e;
587 var shared$3 = sharedExports;
588 var hasOwn$6 = hasOwnProperty_1;
589 var uid$1 = uid$2;
590 var NATIVE_SYMBOL = symbolConstructorDetection;
591 var USE_SYMBOL_AS_UID = useSymbolAsUid;
592
593 var Symbol$1 = global$9.Symbol;
594 var WellKnownSymbolsStore = shared$3('wks');
595 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
596
597 var wellKnownSymbol$a = function (name) {
598 if (!hasOwn$6(WellKnownSymbolsStore, name)) {
599 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
600 ? Symbol$1[name]
601 : createWellKnownSymbol('Symbol.' + name);
602 } return WellKnownSymbolsStore[name];
603 };
604
605 var call$6 = functionCall;
606 var isObject$6 = isObject$8;
607 var isSymbol$1 = isSymbol$2;
608 var getMethod$1 = getMethod$2;
609 var ordinaryToPrimitive = ordinaryToPrimitive$1;
610 var wellKnownSymbol$9 = wellKnownSymbol$a;
611
612 var $TypeError$4 = TypeError;
613 var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
614
615 // `ToPrimitive` abstract operation
616 // https://tc39.es/ecma262/#sec-toprimitive
617 var toPrimitive$1 = function (input, pref) {
618 if (!isObject$6(input) || isSymbol$1(input)) return input;
619 var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
620 var result;
621 if (exoticToPrim) {
622 if (pref === undefined) pref = 'default';
623 result = call$6(exoticToPrim, input, pref);
624 if (!isObject$6(result) || isSymbol$1(result)) return result;
625 throw $TypeError$4("Can't convert object to primitive value");
626 }
627 if (pref === undefined) pref = 'number';
628 return ordinaryToPrimitive(input, pref);
629 };
630
631 var toPrimitive = toPrimitive$1;
632 var isSymbol = isSymbol$2;
633
634 // `ToPropertyKey` abstract operation
635 // https://tc39.es/ecma262/#sec-topropertykey
636 var toPropertyKey$3 = function (argument) {
637 var key = toPrimitive(argument, 'string');
638 return isSymbol(key) ? key : key + '';
639 };
640
641 var global$8 = global$e;
642 var isObject$5 = isObject$8;
643
644 var document$1 = global$8.document;
645 // typeof document.createElement is 'object' in old IE
646 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
647
648 var documentCreateElement$2 = function (it) {
649 return EXISTS$1 ? document$1.createElement(it) : {};
650 };
651
652 var DESCRIPTORS$8 = descriptors;
653 var fails$d = fails$i;
654 var createElement = documentCreateElement$2;
655
656 // Thanks to IE8 for its funny defineProperty
657 var ie8DomDefine = !DESCRIPTORS$8 && !fails$d(function () {
658 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
659 return Object.defineProperty(createElement('div'), 'a', {
660 get: function () { return 7; }
661 }).a != 7;
662 });
663
664 var DESCRIPTORS$7 = descriptors;
665 var call$5 = functionCall;
666 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
667 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
668 var toIndexedObject$5 = toIndexedObject$6;
669 var toPropertyKey$2 = toPropertyKey$3;
670 var hasOwn$5 = hasOwnProperty_1;
671 var IE8_DOM_DEFINE$1 = ie8DomDefine;
672
673 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
674 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
675
676 // `Object.getOwnPropertyDescriptor` method
677 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
678 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
679 O = toIndexedObject$5(O);
680 P = toPropertyKey$2(P);
681 if (IE8_DOM_DEFINE$1) try {
682 return $getOwnPropertyDescriptor$1(O, P);
683 } catch (error) { /* empty */ }
684 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
685 };
686
687 var objectDefineProperty = {};
688
689 var DESCRIPTORS$6 = descriptors;
690 var fails$c = fails$i;
691
692 // V8 ~ Chrome 36-
693 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
694 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$c(function () {
695 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
696 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
697 value: 42,
698 writable: false
699 }).prototype != 42;
700 });
701
702 var isObject$4 = isObject$8;
703
704 var $String$2 = String;
705 var $TypeError$3 = TypeError;
706
707 // `Assert: Type(argument) is Object`
708 var anObject$7 = function (argument) {
709 if (isObject$4(argument)) return argument;
710 throw $TypeError$3($String$2(argument) + ' is not an object');
711 };
712
713 var DESCRIPTORS$5 = descriptors;
714 var IE8_DOM_DEFINE = ie8DomDefine;
715 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
716 var anObject$6 = anObject$7;
717 var toPropertyKey$1 = toPropertyKey$3;
718
719 var $TypeError$2 = TypeError;
720 // eslint-disable-next-line es/no-object-defineproperty -- safe
721 var $defineProperty = Object.defineProperty;
722 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
723 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
724 var ENUMERABLE = 'enumerable';
725 var CONFIGURABLE$1 = 'configurable';
726 var WRITABLE = 'writable';
727
728 // `Object.defineProperty` method
729 // https://tc39.es/ecma262/#sec-object.defineproperty
730 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
731 anObject$6(O);
732 P = toPropertyKey$1(P);
733 anObject$6(Attributes);
734 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
735 var current = $getOwnPropertyDescriptor(O, P);
736 if (current && current[WRITABLE]) {
737 O[P] = Attributes.value;
738 Attributes = {
739 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
740 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
741 writable: false
742 };
743 }
744 } return $defineProperty(O, P, Attributes);
745 } : $defineProperty : function defineProperty(O, P, Attributes) {
746 anObject$6(O);
747 P = toPropertyKey$1(P);
748 anObject$6(Attributes);
749 if (IE8_DOM_DEFINE) try {
750 return $defineProperty(O, P, Attributes);
751 } catch (error) { /* empty */ }
752 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
753 if ('value' in Attributes) O[P] = Attributes.value;
754 return O;
755 };
756
757 var DESCRIPTORS$4 = descriptors;
758 var definePropertyModule$4 = objectDefineProperty;
759 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
760
761 var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
762 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
763 } : function (object, key, value) {
764 object[key] = value;
765 return object;
766 };
767
768 var makeBuiltInExports = {};
769 var makeBuiltIn$2 = {
770 get exports(){ return makeBuiltInExports; },
771 set exports(v){ makeBuiltInExports = v; },
772 };
773
774 var DESCRIPTORS$3 = descriptors;
775 var hasOwn$4 = hasOwnProperty_1;
776
777 var FunctionPrototype$1 = Function.prototype;
778 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
779 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
780
781 var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
782 // additional protection from minified / mangled / dropped function names
783 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
784 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
785
786 var functionName = {
787 EXISTS: EXISTS,
788 PROPER: PROPER,
789 CONFIGURABLE: CONFIGURABLE
790 };
791
792 var uncurryThis$f = functionUncurryThis;
793 var isCallable$8 = isCallable$e;
794 var store$1 = sharedStore;
795
796 var functionToString = uncurryThis$f(Function.toString);
797
798 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
799 if (!isCallable$8(store$1.inspectSource)) {
800 store$1.inspectSource = function (it) {
801 return functionToString(it);
802 };
803 }
804
805 var inspectSource$2 = store$1.inspectSource;
806
807 var global$7 = global$e;
808 var isCallable$7 = isCallable$e;
809
810 var WeakMap$1 = global$7.WeakMap;
811
812 var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
813
814 var shared$2 = sharedExports;
815 var uid = uid$2;
816
817 var keys = shared$2('keys');
818
819 var sharedKey$2 = function (key) {
820 return keys[key] || (keys[key] = uid(key));
821 };
822
823 var hiddenKeys$4 = {};
824
825 var NATIVE_WEAK_MAP = weakMapBasicDetection;
826 var global$6 = global$e;
827 var isObject$3 = isObject$8;
828 var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
829 var hasOwn$3 = hasOwnProperty_1;
830 var shared$1 = sharedStore;
831 var sharedKey$1 = sharedKey$2;
832 var hiddenKeys$3 = hiddenKeys$4;
833
834 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
835 var TypeError$1 = global$6.TypeError;
836 var WeakMap = global$6.WeakMap;
837 var set, get, has;
838
839 var enforce = function (it) {
840 return has(it) ? get(it) : set(it, {});
841 };
842
843 var getterFor = function (TYPE) {
844 return function (it) {
845 var state;
846 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
847 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
848 } return state;
849 };
850 };
851
852 if (NATIVE_WEAK_MAP || shared$1.state) {
853 var store = shared$1.state || (shared$1.state = new WeakMap());
854 /* eslint-disable no-self-assign -- prototype methods protection */
855 store.get = store.get;
856 store.has = store.has;
857 store.set = store.set;
858 /* eslint-enable no-self-assign -- prototype methods protection */
859 set = function (it, metadata) {
860 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
861 metadata.facade = it;
862 store.set(it, metadata);
863 return metadata;
864 };
865 get = function (it) {
866 return store.get(it) || {};
867 };
868 has = function (it) {
869 return store.has(it);
870 };
871 } else {
872 var STATE = sharedKey$1('state');
873 hiddenKeys$3[STATE] = true;
874 set = function (it, metadata) {
875 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
876 metadata.facade = it;
877 createNonEnumerableProperty$3(it, STATE, metadata);
878 return metadata;
879 };
880 get = function (it) {
881 return hasOwn$3(it, STATE) ? it[STATE] : {};
882 };
883 has = function (it) {
884 return hasOwn$3(it, STATE);
885 };
886 }
887
888 var internalState = {
889 set: set,
890 get: get,
891 has: has,
892 enforce: enforce,
893 getterFor: getterFor
894 };
895
896 var uncurryThis$e = functionUncurryThis;
897 var fails$b = fails$i;
898 var isCallable$6 = isCallable$e;
899 var hasOwn$2 = hasOwnProperty_1;
900 var DESCRIPTORS$2 = descriptors;
901 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
902 var inspectSource$1 = inspectSource$2;
903 var InternalStateModule = internalState;
904
905 var enforceInternalState = InternalStateModule.enforce;
906 var getInternalState$1 = InternalStateModule.get;
907 var $String$1 = String;
908 // eslint-disable-next-line es/no-object-defineproperty -- safe
909 var defineProperty$2 = Object.defineProperty;
910 var stringSlice$4 = uncurryThis$e(''.slice);
911 var replace$2 = uncurryThis$e(''.replace);
912 var join = uncurryThis$e([].join);
913
914 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$b(function () {
915 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
916 });
917
918 var TEMPLATE = String(String).split('String');
919
920 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
921 if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
922 name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
923 }
924 if (options && options.getter) name = 'get ' + name;
925 if (options && options.setter) name = 'set ' + name;
926 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
927 if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
928 else value.name = name;
929 }
930 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
931 defineProperty$2(value, 'length', { value: options.arity });
932 }
933 try {
934 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
935 if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
936 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
937 } else if (value.prototype) value.prototype = undefined;
938 } catch (error) { /* empty */ }
939 var state = enforceInternalState(value);
940 if (!hasOwn$2(state, 'source')) {
941 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
942 } return value;
943 };
944
945 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
946 // eslint-disable-next-line no-extend-native -- required
947 Function.prototype.toString = makeBuiltIn$1(function toString() {
948 return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
949 }, 'toString');
950
951 var isCallable$5 = isCallable$e;
952 var definePropertyModule$3 = objectDefineProperty;
953 var makeBuiltIn = makeBuiltInExports;
954 var defineGlobalProperty$1 = defineGlobalProperty$3;
955
956 var defineBuiltIn$3 = function (O, key, value, options) {
957 if (!options) options = {};
958 var simple = options.enumerable;
959 var name = options.name !== undefined ? options.name : key;
960 if (isCallable$5(value)) makeBuiltIn(value, name, options);
961 if (options.global) {
962 if (simple) O[key] = value;
963 else defineGlobalProperty$1(key, value);
964 } else {
965 try {
966 if (!options.unsafe) delete O[key];
967 else if (O[key]) simple = true;
968 } catch (error) { /* empty */ }
969 if (simple) O[key] = value;
970 else definePropertyModule$3.f(O, key, {
971 value: value,
972 enumerable: false,
973 configurable: !options.nonConfigurable,
974 writable: !options.nonWritable
975 });
976 } return O;
977 };
978
979 var objectGetOwnPropertyNames = {};
980
981 var ceil = Math.ceil;
982 var floor$1 = Math.floor;
983
984 // `Math.trunc` method
985 // https://tc39.es/ecma262/#sec-math.trunc
986 // eslint-disable-next-line es/no-math-trunc -- safe
987 var mathTrunc = Math.trunc || function trunc(x) {
988 var n = +x;
989 return (n > 0 ? floor$1 : ceil)(n);
990 };
991
992 var trunc = mathTrunc;
993
994 // `ToIntegerOrInfinity` abstract operation
995 // https://tc39.es/ecma262/#sec-tointegerorinfinity
996 var toIntegerOrInfinity$4 = function (argument) {
997 var number = +argument;
998 // eslint-disable-next-line no-self-compare -- NaN check
999 return number !== number || number === 0 ? 0 : trunc(number);
1000 };
1001
1002 var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
1003
1004 var max$2 = Math.max;
1005 var min$2 = Math.min;
1006
1007 // Helper for a popular repeating case of the spec:
1008 // Let integer be ? ToInteger(index).
1009 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1010 var toAbsoluteIndex$2 = function (index, length) {
1011 var integer = toIntegerOrInfinity$3(index);
1012 return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
1013 };
1014
1015 var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
1016
1017 var min$1 = Math.min;
1018
1019 // `ToLength` abstract operation
1020 // https://tc39.es/ecma262/#sec-tolength
1021 var toLength$2 = function (argument) {
1022 return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1023 };
1024
1025 var toLength$1 = toLength$2;
1026
1027 // `LengthOfArrayLike` abstract operation
1028 // https://tc39.es/ecma262/#sec-lengthofarraylike
1029 var lengthOfArrayLike$4 = function (obj) {
1030 return toLength$1(obj.length);
1031 };
1032
1033 var toIndexedObject$4 = toIndexedObject$6;
1034 var toAbsoluteIndex$1 = toAbsoluteIndex$2;
1035 var lengthOfArrayLike$3 = lengthOfArrayLike$4;
1036
1037 // `Array.prototype.{ indexOf, includes }` methods implementation
1038 var createMethod$2 = function (IS_INCLUDES) {
1039 return function ($this, el, fromIndex) {
1040 var O = toIndexedObject$4($this);
1041 var length = lengthOfArrayLike$3(O);
1042 var index = toAbsoluteIndex$1(fromIndex, length);
1043 var value;
1044 // Array#includes uses SameValueZero equality algorithm
1045 // eslint-disable-next-line no-self-compare -- NaN check
1046 if (IS_INCLUDES && el != el) while (length > index) {
1047 value = O[index++];
1048 // eslint-disable-next-line no-self-compare -- NaN check
1049 if (value != value) return true;
1050 // Array#indexOf ignores holes, Array#includes - not
1051 } else for (;length > index; index++) {
1052 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1053 } return !IS_INCLUDES && -1;
1054 };
1055 };
1056
1057 var arrayIncludes = {
1058 // `Array.prototype.includes` method
1059 // https://tc39.es/ecma262/#sec-array.prototype.includes
1060 includes: createMethod$2(true),
1061 // `Array.prototype.indexOf` method
1062 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1063 indexOf: createMethod$2(false)
1064 };
1065
1066 var uncurryThis$d = functionUncurryThis;
1067 var hasOwn$1 = hasOwnProperty_1;
1068 var toIndexedObject$3 = toIndexedObject$6;
1069 var indexOf$1 = arrayIncludes.indexOf;
1070 var hiddenKeys$2 = hiddenKeys$4;
1071
1072 var push$2 = uncurryThis$d([].push);
1073
1074 var objectKeysInternal = function (object, names) {
1075 var O = toIndexedObject$3(object);
1076 var i = 0;
1077 var result = [];
1078 var key;
1079 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
1080 // Don't enum bug & hidden keys
1081 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1082 ~indexOf$1(result, key) || push$2(result, key);
1083 }
1084 return result;
1085 };
1086
1087 // IE8- don't enum bug keys
1088 var enumBugKeys$3 = [
1089 'constructor',
1090 'hasOwnProperty',
1091 'isPrototypeOf',
1092 'propertyIsEnumerable',
1093 'toLocaleString',
1094 'toString',
1095 'valueOf'
1096 ];
1097
1098 var internalObjectKeys$1 = objectKeysInternal;
1099 var enumBugKeys$2 = enumBugKeys$3;
1100
1101 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1102
1103 // `Object.getOwnPropertyNames` method
1104 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1105 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1106 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1107 return internalObjectKeys$1(O, hiddenKeys$1);
1108 };
1109
1110 var objectGetOwnPropertySymbols = {};
1111
1112 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1113 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1114
1115 var getBuiltIn$2 = getBuiltIn$4;
1116 var uncurryThis$c = functionUncurryThis;
1117 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1118 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1119 var anObject$5 = anObject$7;
1120
1121 var concat$2 = uncurryThis$c([].concat);
1122
1123 // all object keys, includes non-enumerable and symbols
1124 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1125 var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1126 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1127 return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1128 };
1129
1130 var hasOwn = hasOwnProperty_1;
1131 var ownKeys = ownKeys$1;
1132 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1133 var definePropertyModule$2 = objectDefineProperty;
1134
1135 var copyConstructorProperties$1 = function (target, source, exceptions) {
1136 var keys = ownKeys(source);
1137 var defineProperty = definePropertyModule$2.f;
1138 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1139 for (var i = 0; i < keys.length; i++) {
1140 var key = keys[i];
1141 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1142 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1143 }
1144 }
1145 };
1146
1147 var fails$a = fails$i;
1148 var isCallable$4 = isCallable$e;
1149
1150 var replacement = /#|\.prototype\./;
1151
1152 var isForced$1 = function (feature, detection) {
1153 var value = data[normalize(feature)];
1154 return value == POLYFILL ? true
1155 : value == NATIVE ? false
1156 : isCallable$4(detection) ? fails$a(detection)
1157 : !!detection;
1158 };
1159
1160 var normalize = isForced$1.normalize = function (string) {
1161 return String(string).replace(replacement, '.').toLowerCase();
1162 };
1163
1164 var data = isForced$1.data = {};
1165 var NATIVE = isForced$1.NATIVE = 'N';
1166 var POLYFILL = isForced$1.POLYFILL = 'P';
1167
1168 var isForced_1 = isForced$1;
1169
1170 var global$5 = global$e;
1171 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1172 var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1173 var defineBuiltIn$2 = defineBuiltIn$3;
1174 var defineGlobalProperty = defineGlobalProperty$3;
1175 var copyConstructorProperties = copyConstructorProperties$1;
1176 var isForced = isForced_1;
1177
1178 /*
1179 options.target - name of the target object
1180 options.global - target is the global object
1181 options.stat - export as static methods of target
1182 options.proto - export as prototype methods of target
1183 options.real - real prototype method for the `pure` version
1184 options.forced - export even if the native feature is available
1185 options.bind - bind methods to the target, required for the `pure` version
1186 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1187 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1188 options.sham - add a flag to not completely full polyfills
1189 options.enumerable - export as enumerable property
1190 options.dontCallGetSet - prevent calling a getter on target
1191 options.name - the .name of the function if it does not match the key
1192 */
1193 var _export = function (options, source) {
1194 var TARGET = options.target;
1195 var GLOBAL = options.global;
1196 var STATIC = options.stat;
1197 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1198 if (GLOBAL) {
1199 target = global$5;
1200 } else if (STATIC) {
1201 target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1202 } else {
1203 target = (global$5[TARGET] || {}).prototype;
1204 }
1205 if (target) for (key in source) {
1206 sourceProperty = source[key];
1207 if (options.dontCallGetSet) {
1208 descriptor = getOwnPropertyDescriptor(target, key);
1209 targetProperty = descriptor && descriptor.value;
1210 } else targetProperty = target[key];
1211 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1212 // contained in target
1213 if (!FORCED && targetProperty !== undefined) {
1214 if (typeof sourceProperty == typeof targetProperty) continue;
1215 copyConstructorProperties(sourceProperty, targetProperty);
1216 }
1217 // add a flag to not completely full polyfills
1218 if (options.sham || (targetProperty && targetProperty.sham)) {
1219 createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1220 }
1221 defineBuiltIn$2(target, key, sourceProperty, options);
1222 }
1223 };
1224
1225 var internalObjectKeys = objectKeysInternal;
1226 var enumBugKeys$1 = enumBugKeys$3;
1227
1228 // `Object.keys` method
1229 // https://tc39.es/ecma262/#sec-object.keys
1230 // eslint-disable-next-line es/no-object-keys -- safe
1231 var objectKeys$2 = Object.keys || function keys(O) {
1232 return internalObjectKeys(O, enumBugKeys$1);
1233 };
1234
1235 var DESCRIPTORS$1 = descriptors;
1236 var uncurryThis$b = functionUncurryThis;
1237 var call$4 = functionCall;
1238 var fails$9 = fails$i;
1239 var objectKeys$1 = objectKeys$2;
1240 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1241 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1242 var toObject$3 = toObject$5;
1243 var IndexedObject$2 = indexedObject;
1244
1245 // eslint-disable-next-line es/no-object-assign -- safe
1246 var $assign = Object.assign;
1247 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1248 var defineProperty$1 = Object.defineProperty;
1249 var concat$1 = uncurryThis$b([].concat);
1250
1251 // `Object.assign` method
1252 // https://tc39.es/ecma262/#sec-object.assign
1253 var objectAssign = !$assign || fails$9(function () {
1254 // should have correct order of operations (Edge bug)
1255 if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1256 enumerable: true,
1257 get: function () {
1258 defineProperty$1(this, 'b', {
1259 value: 3,
1260 enumerable: false
1261 });
1262 }
1263 }), { b: 2 })).b !== 1) return true;
1264 // should work with symbols and should have deterministic property order (V8 bug)
1265 var A = {};
1266 var B = {};
1267 // eslint-disable-next-line es/no-symbol -- safe
1268 var symbol = Symbol();
1269 var alphabet = 'abcdefghijklmnopqrst';
1270 A[symbol] = 7;
1271 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1272 return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1273 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1274 var T = toObject$3(target);
1275 var argumentsLength = arguments.length;
1276 var index = 1;
1277 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1278 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1279 while (argumentsLength > index) {
1280 var S = IndexedObject$2(arguments[index++]);
1281 var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1282 var length = keys.length;
1283 var j = 0;
1284 var key;
1285 while (length > j) {
1286 key = keys[j++];
1287 if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
1288 }
1289 } return T;
1290 } : $assign;
1291
1292 var $$6 = _export;
1293 var assign = objectAssign;
1294
1295 // `Object.assign` method
1296 // https://tc39.es/ecma262/#sec-object.assign
1297 // eslint-disable-next-line es/no-object-assign -- required for testing
1298 $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1299 assign: assign
1300 });
1301
1302 var wellKnownSymbol$8 = wellKnownSymbol$a;
1303
1304 var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
1305 var test = {};
1306
1307 test[TO_STRING_TAG$1] = 'z';
1308
1309 var toStringTagSupport = String(test) === '[object z]';
1310
1311 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1312 var isCallable$3 = isCallable$e;
1313 var classofRaw$1 = classofRaw$2;
1314 var wellKnownSymbol$7 = wellKnownSymbol$a;
1315
1316 var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
1317 var $Object = Object;
1318
1319 // ES3 wrong here
1320 var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1321
1322 // fallback for IE11 Script Access Denied error
1323 var tryGet = function (it, key) {
1324 try {
1325 return it[key];
1326 } catch (error) { /* empty */ }
1327 };
1328
1329 // getting tag from ES6+ `Object.prototype.toString`
1330 var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1331 var O, tag, result;
1332 return it === undefined ? 'Undefined' : it === null ? 'Null'
1333 // @@toStringTag case
1334 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1335 // builtinTag case
1336 : CORRECT_ARGUMENTS ? classofRaw$1(O)
1337 // ES3 arguments fallback
1338 : (result = classofRaw$1(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
1339 };
1340
1341 var classof$4 = classof$5;
1342
1343 var $String = String;
1344
1345 var toString$4 = function (argument) {
1346 if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1347 return $String(argument);
1348 };
1349
1350 var anObject$4 = anObject$7;
1351
1352 // `RegExp.prototype.flags` getter implementation
1353 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1354 var regexpFlags$1 = function () {
1355 var that = anObject$4(this);
1356 var result = '';
1357 if (that.hasIndices) result += 'd';
1358 if (that.global) result += 'g';
1359 if (that.ignoreCase) result += 'i';
1360 if (that.multiline) result += 'm';
1361 if (that.dotAll) result += 's';
1362 if (that.unicode) result += 'u';
1363 if (that.unicodeSets) result += 'v';
1364 if (that.sticky) result += 'y';
1365 return result;
1366 };
1367
1368 var fails$8 = fails$i;
1369 var global$4 = global$e;
1370
1371 // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1372 var $RegExp$2 = global$4.RegExp;
1373
1374 var UNSUPPORTED_Y$1 = fails$8(function () {
1375 var re = $RegExp$2('a', 'y');
1376 re.lastIndex = 2;
1377 return re.exec('abcd') != null;
1378 });
1379
1380 // UC Browser bug
1381 // https://github.com/zloirock/core-js/issues/1008
1382 var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$8(function () {
1383 return !$RegExp$2('a', 'y').sticky;
1384 });
1385
1386 var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$8(function () {
1387 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1388 var re = $RegExp$2('^r', 'gy');
1389 re.lastIndex = 2;
1390 return re.exec('str') != null;
1391 });
1392
1393 var regexpStickyHelpers = {
1394 BROKEN_CARET: BROKEN_CARET,
1395 MISSED_STICKY: MISSED_STICKY,
1396 UNSUPPORTED_Y: UNSUPPORTED_Y$1
1397 };
1398
1399 var objectDefineProperties = {};
1400
1401 var DESCRIPTORS = descriptors;
1402 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1403 var definePropertyModule$1 = objectDefineProperty;
1404 var anObject$3 = anObject$7;
1405 var toIndexedObject$2 = toIndexedObject$6;
1406 var objectKeys = objectKeys$2;
1407
1408 // `Object.defineProperties` method
1409 // https://tc39.es/ecma262/#sec-object.defineproperties
1410 // eslint-disable-next-line es/no-object-defineproperties -- safe
1411 objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1412 anObject$3(O);
1413 var props = toIndexedObject$2(Properties);
1414 var keys = objectKeys(Properties);
1415 var length = keys.length;
1416 var index = 0;
1417 var key;
1418 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1419 return O;
1420 };
1421
1422 var getBuiltIn$1 = getBuiltIn$4;
1423
1424 var html$1 = getBuiltIn$1('document', 'documentElement');
1425
1426 /* global ActiveXObject -- old IE, WSH */
1427
1428 var anObject$2 = anObject$7;
1429 var definePropertiesModule = objectDefineProperties;
1430 var enumBugKeys = enumBugKeys$3;
1431 var hiddenKeys = hiddenKeys$4;
1432 var html = html$1;
1433 var documentCreateElement$1 = documentCreateElement$2;
1434 var sharedKey = sharedKey$2;
1435
1436 var GT = '>';
1437 var LT = '<';
1438 var PROTOTYPE = 'prototype';
1439 var SCRIPT = 'script';
1440 var IE_PROTO = sharedKey('IE_PROTO');
1441
1442 var EmptyConstructor = function () { /* empty */ };
1443
1444 var scriptTag = function (content) {
1445 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1446 };
1447
1448 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1449 var NullProtoObjectViaActiveX = function (activeXDocument) {
1450 activeXDocument.write(scriptTag(''));
1451 activeXDocument.close();
1452 var temp = activeXDocument.parentWindow.Object;
1453 activeXDocument = null; // avoid memory leak
1454 return temp;
1455 };
1456
1457 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1458 var NullProtoObjectViaIFrame = function () {
1459 // Thrash, waste and sodomy: IE GC bug
1460 var iframe = documentCreateElement$1('iframe');
1461 var JS = 'java' + SCRIPT + ':';
1462 var iframeDocument;
1463 iframe.style.display = 'none';
1464 html.appendChild(iframe);
1465 // https://github.com/zloirock/core-js/issues/475
1466 iframe.src = String(JS);
1467 iframeDocument = iframe.contentWindow.document;
1468 iframeDocument.open();
1469 iframeDocument.write(scriptTag('document.F=Object'));
1470 iframeDocument.close();
1471 return iframeDocument.F;
1472 };
1473
1474 // Check for document.domain and active x support
1475 // No need to use active x approach when document.domain is not set
1476 // see https://github.com/es-shims/es5-shim/issues/150
1477 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1478 // avoid IE GC bug
1479 var activeXDocument;
1480 var NullProtoObject = function () {
1481 try {
1482 activeXDocument = new ActiveXObject('htmlfile');
1483 } catch (error) { /* ignore */ }
1484 NullProtoObject = typeof document != 'undefined'
1485 ? document.domain && activeXDocument
1486 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1487 : NullProtoObjectViaIFrame()
1488 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1489 var length = enumBugKeys.length;
1490 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1491 return NullProtoObject();
1492 };
1493
1494 hiddenKeys[IE_PROTO] = true;
1495
1496 // `Object.create` method
1497 // https://tc39.es/ecma262/#sec-object.create
1498 // eslint-disable-next-line es/no-object-create -- safe
1499 var objectCreate = Object.create || function create(O, Properties) {
1500 var result;
1501 if (O !== null) {
1502 EmptyConstructor[PROTOTYPE] = anObject$2(O);
1503 result = new EmptyConstructor();
1504 EmptyConstructor[PROTOTYPE] = null;
1505 // add "__proto__" for Object.getPrototypeOf polyfill
1506 result[IE_PROTO] = O;
1507 } else result = NullProtoObject();
1508 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1509 };
1510
1511 var fails$7 = fails$i;
1512 var global$3 = global$e;
1513
1514 // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1515 var $RegExp$1 = global$3.RegExp;
1516
1517 var regexpUnsupportedDotAll = fails$7(function () {
1518 var re = $RegExp$1('.', 's');
1519 return !(re.dotAll && re.exec('\n') && re.flags === 's');
1520 });
1521
1522 var fails$6 = fails$i;
1523 var global$2 = global$e;
1524
1525 // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1526 var $RegExp = global$2.RegExp;
1527
1528 var regexpUnsupportedNcg = fails$6(function () {
1529 var re = $RegExp('(?<a>b)', 'g');
1530 return re.exec('b').groups.a !== 'b' ||
1531 'b'.replace(re, '$<a>c') !== 'bc';
1532 });
1533
1534 /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1535 /* eslint-disable regexp/no-useless-quantifier -- testing */
1536 var call$3 = functionCall;
1537 var uncurryThis$a = functionUncurryThis;
1538 var toString$3 = toString$4;
1539 var regexpFlags = regexpFlags$1;
1540 var stickyHelpers = regexpStickyHelpers;
1541 var shared = sharedExports;
1542 var create$1 = objectCreate;
1543 var getInternalState = internalState.get;
1544 var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1545 var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1546
1547 var nativeReplace = shared('native-string-replace', String.prototype.replace);
1548 var nativeExec = RegExp.prototype.exec;
1549 var patchedExec = nativeExec;
1550 var charAt$3 = uncurryThis$a(''.charAt);
1551 var indexOf = uncurryThis$a(''.indexOf);
1552 var replace$1 = uncurryThis$a(''.replace);
1553 var stringSlice$3 = uncurryThis$a(''.slice);
1554
1555 var UPDATES_LAST_INDEX_WRONG = (function () {
1556 var re1 = /a/;
1557 var re2 = /b*/g;
1558 call$3(nativeExec, re1, 'a');
1559 call$3(nativeExec, re2, 'a');
1560 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1561 })();
1562
1563 var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1564
1565 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1566 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1567
1568 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1569
1570 if (PATCH) {
1571 patchedExec = function exec(string) {
1572 var re = this;
1573 var state = getInternalState(re);
1574 var str = toString$3(string);
1575 var raw = state.raw;
1576 var result, reCopy, lastIndex, match, i, object, group;
1577
1578 if (raw) {
1579 raw.lastIndex = re.lastIndex;
1580 result = call$3(patchedExec, raw, str);
1581 re.lastIndex = raw.lastIndex;
1582 return result;
1583 }
1584
1585 var groups = state.groups;
1586 var sticky = UNSUPPORTED_Y && re.sticky;
1587 var flags = call$3(regexpFlags, re);
1588 var source = re.source;
1589 var charsAdded = 0;
1590 var strCopy = str;
1591
1592 if (sticky) {
1593 flags = replace$1(flags, 'y', '');
1594 if (indexOf(flags, 'g') === -1) {
1595 flags += 'g';
1596 }
1597
1598 strCopy = stringSlice$3(str, re.lastIndex);
1599 // Support anchored sticky behavior.
1600 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1601 source = '(?: ' + source + ')';
1602 strCopy = ' ' + strCopy;
1603 charsAdded++;
1604 }
1605 // ^(? + rx + ) is needed, in combination with some str slicing, to
1606 // simulate the 'y' flag.
1607 reCopy = new RegExp('^(?:' + source + ')', flags);
1608 }
1609
1610 if (NPCG_INCLUDED) {
1611 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1612 }
1613 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1614
1615 match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
1616
1617 if (sticky) {
1618 if (match) {
1619 match.input = stringSlice$3(match.input, charsAdded);
1620 match[0] = stringSlice$3(match[0], charsAdded);
1621 match.index = re.lastIndex;
1622 re.lastIndex += match[0].length;
1623 } else re.lastIndex = 0;
1624 } else if (UPDATES_LAST_INDEX_WRONG && match) {
1625 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1626 }
1627 if (NPCG_INCLUDED && match && match.length > 1) {
1628 // Fix browsers whose `exec` methods don't consistently return `undefined`
1629 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1630 call$3(nativeReplace, match[0], reCopy, function () {
1631 for (i = 1; i < arguments.length - 2; i++) {
1632 if (arguments[i] === undefined) match[i] = undefined;
1633 }
1634 });
1635 }
1636
1637 if (match && groups) {
1638 match.groups = object = create$1(null);
1639 for (i = 0; i < groups.length; i++) {
1640 group = groups[i];
1641 object[group[0]] = match[group[1]];
1642 }
1643 }
1644
1645 return match;
1646 };
1647 }
1648
1649 var regexpExec$2 = patchedExec;
1650
1651 var $$5 = _export;
1652 var exec$1 = regexpExec$2;
1653
1654 // `RegExp.prototype.exec` method
1655 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1656 $$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1657 exec: exec$1
1658 });
1659
1660 var NATIVE_BIND$1 = functionBindNative;
1661
1662 var FunctionPrototype = Function.prototype;
1663 var apply$1 = FunctionPrototype.apply;
1664 var call$2 = FunctionPrototype.call;
1665
1666 // eslint-disable-next-line es/no-reflect -- safe
1667 var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$2.bind(apply$1) : function () {
1668 return call$2.apply(apply$1, arguments);
1669 });
1670
1671 var classofRaw = classofRaw$2;
1672 var uncurryThis$9 = functionUncurryThis;
1673
1674 var functionUncurryThisClause = function (fn) {
1675 // Nashorn bug:
1676 // https://github.com/zloirock/core-js/issues/1128
1677 // https://github.com/zloirock/core-js/issues/1130
1678 if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
1679 };
1680
1681 // TODO: Remove from `core-js@4` since it's moved to entry points
1682
1683 var uncurryThis$8 = functionUncurryThisClause;
1684 var defineBuiltIn$1 = defineBuiltIn$3;
1685 var regexpExec$1 = regexpExec$2;
1686 var fails$5 = fails$i;
1687 var wellKnownSymbol$6 = wellKnownSymbol$a;
1688 var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1689
1690 var SPECIES$3 = wellKnownSymbol$6('species');
1691 var RegExpPrototype = RegExp.prototype;
1692
1693 var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1694 var SYMBOL = wellKnownSymbol$6(KEY);
1695
1696 var DELEGATES_TO_SYMBOL = !fails$5(function () {
1697 // String methods call symbol-named RegEp methods
1698 var O = {};
1699 O[SYMBOL] = function () { return 7; };
1700 return ''[KEY](O) != 7;
1701 });
1702
1703 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$5(function () {
1704 // Symbol-named RegExp methods call .exec
1705 var execCalled = false;
1706 var re = /a/;
1707
1708 if (KEY === 'split') {
1709 // We can't use real regex here since it causes deoptimization
1710 // and serious performance degradation in V8
1711 // https://github.com/zloirock/core-js/issues/306
1712 re = {};
1713 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1714 // a new one. We need to return the patched regex when creating the new one.
1715 re.constructor = {};
1716 re.constructor[SPECIES$3] = function () { return re; };
1717 re.flags = '';
1718 re[SYMBOL] = /./[SYMBOL];
1719 }
1720
1721 re.exec = function () { execCalled = true; return null; };
1722
1723 re[SYMBOL]('');
1724 return !execCalled;
1725 });
1726
1727 if (
1728 !DELEGATES_TO_SYMBOL ||
1729 !DELEGATES_TO_EXEC ||
1730 FORCED
1731 ) {
1732 var uncurriedNativeRegExpMethod = uncurryThis$8(/./[SYMBOL]);
1733 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1734 var uncurriedNativeMethod = uncurryThis$8(nativeMethod);
1735 var $exec = regexp.exec;
1736 if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1737 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1738 // The native String method already delegates to @@method (this
1739 // polyfilled function), leasing to infinite recursion.
1740 // We avoid it by directly calling the native @@method method.
1741 return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1742 }
1743 return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1744 }
1745 return { done: false };
1746 });
1747
1748 defineBuiltIn$1(String.prototype, KEY, methods[0]);
1749 defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
1750 }
1751
1752 if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
1753 };
1754
1755 var uncurryThis$7 = functionUncurryThis;
1756 var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1757 var toString$2 = toString$4;
1758 var requireObjectCoercible$1 = requireObjectCoercible$4;
1759
1760 var charAt$2 = uncurryThis$7(''.charAt);
1761 var charCodeAt = uncurryThis$7(''.charCodeAt);
1762 var stringSlice$2 = uncurryThis$7(''.slice);
1763
1764 var createMethod$1 = function (CONVERT_TO_STRING) {
1765 return function ($this, pos) {
1766 var S = toString$2(requireObjectCoercible$1($this));
1767 var position = toIntegerOrInfinity$1(pos);
1768 var size = S.length;
1769 var first, second;
1770 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1771 first = charCodeAt(S, position);
1772 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1773 || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1774 ? CONVERT_TO_STRING
1775 ? charAt$2(S, position)
1776 : first
1777 : CONVERT_TO_STRING
1778 ? stringSlice$2(S, position, position + 2)
1779 : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1780 };
1781 };
1782
1783 var stringMultibyte = {
1784 // `String.prototype.codePointAt` method
1785 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1786 codeAt: createMethod$1(false),
1787 // `String.prototype.at` method
1788 // https://github.com/mathiasbynens/String.prototype.at
1789 charAt: createMethod$1(true)
1790 };
1791
1792 var charAt$1 = stringMultibyte.charAt;
1793
1794 // `AdvanceStringIndex` abstract operation
1795 // https://tc39.es/ecma262/#sec-advancestringindex
1796 var advanceStringIndex$1 = function (S, index, unicode) {
1797 return index + (unicode ? charAt$1(S, index).length : 1);
1798 };
1799
1800 var uncurryThis$6 = functionUncurryThis;
1801 var toObject$2 = toObject$5;
1802
1803 var floor = Math.floor;
1804 var charAt = uncurryThis$6(''.charAt);
1805 var replace = uncurryThis$6(''.replace);
1806 var stringSlice$1 = uncurryThis$6(''.slice);
1807 // eslint-disable-next-line redos/no-vulnerable -- safe
1808 var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1809 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1810
1811 // `GetSubstitution` abstract operation
1812 // https://tc39.es/ecma262/#sec-getsubstitution
1813 var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
1814 var tailPos = position + matched.length;
1815 var m = captures.length;
1816 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1817 if (namedCaptures !== undefined) {
1818 namedCaptures = toObject$2(namedCaptures);
1819 symbols = SUBSTITUTION_SYMBOLS;
1820 }
1821 return replace(replacement, symbols, function (match, ch) {
1822 var capture;
1823 switch (charAt(ch, 0)) {
1824 case '$': return '$';
1825 case '&': return matched;
1826 case '`': return stringSlice$1(str, 0, position);
1827 case "'": return stringSlice$1(str, tailPos);
1828 case '<':
1829 capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1830 break;
1831 default: // \d\d?
1832 var n = +ch;
1833 if (n === 0) return match;
1834 if (n > m) {
1835 var f = floor(n / 10);
1836 if (f === 0) return match;
1837 if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1838 return match;
1839 }
1840 capture = captures[n - 1];
1841 }
1842 return capture === undefined ? '' : capture;
1843 });
1844 };
1845
1846 var call$1 = functionCall;
1847 var anObject$1 = anObject$7;
1848 var isCallable$2 = isCallable$e;
1849 var classof$3 = classofRaw$2;
1850 var regexpExec = regexpExec$2;
1851
1852 var $TypeError$1 = TypeError;
1853
1854 // `RegExpExec` abstract operation
1855 // https://tc39.es/ecma262/#sec-regexpexec
1856 var regexpExecAbstract = function (R, S) {
1857 var exec = R.exec;
1858 if (isCallable$2(exec)) {
1859 var result = call$1(exec, R, S);
1860 if (result !== null) anObject$1(result);
1861 return result;
1862 }
1863 if (classof$3(R) === 'RegExp') return call$1(regexpExec, R, S);
1864 throw $TypeError$1('RegExp#exec called on incompatible receiver');
1865 };
1866
1867 var apply = functionApply;
1868 var call = functionCall;
1869 var uncurryThis$5 = functionUncurryThis;
1870 var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1871 var fails$4 = fails$i;
1872 var anObject = anObject$7;
1873 var isCallable$1 = isCallable$e;
1874 var isNullOrUndefined = isNullOrUndefined$3;
1875 var toIntegerOrInfinity = toIntegerOrInfinity$4;
1876 var toLength = toLength$2;
1877 var toString$1 = toString$4;
1878 var requireObjectCoercible = requireObjectCoercible$4;
1879 var advanceStringIndex = advanceStringIndex$1;
1880 var getMethod = getMethod$2;
1881 var getSubstitution = getSubstitution$1;
1882 var regExpExec = regexpExecAbstract;
1883 var wellKnownSymbol$5 = wellKnownSymbol$a;
1884
1885 var REPLACE = wellKnownSymbol$5('replace');
1886 var max$1 = Math.max;
1887 var min = Math.min;
1888 var concat = uncurryThis$5([].concat);
1889 var push$1 = uncurryThis$5([].push);
1890 var stringIndexOf = uncurryThis$5(''.indexOf);
1891 var stringSlice = uncurryThis$5(''.slice);
1892
1893 var maybeToString = function (it) {
1894 return it === undefined ? it : String(it);
1895 };
1896
1897 // IE <= 11 replaces $0 with the whole match, as if it was $&
1898 // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1899 var REPLACE_KEEPS_$0 = (function () {
1900 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1901 return 'a'.replace(/./, '$0') === '$0';
1902 })();
1903
1904 // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1905 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1906 if (/./[REPLACE]) {
1907 return /./[REPLACE]('a', '$0') === '';
1908 }
1909 return false;
1910 })();
1911
1912 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$4(function () {
1913 var re = /./;
1914 re.exec = function () {
1915 var result = [];
1916 result.groups = { a: '7' };
1917 return result;
1918 };
1919 // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1920 return ''.replace(re, '$<a>') !== '7';
1921 });
1922
1923 // @@replace logic
1924 fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1925 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1926
1927 return [
1928 // `String.prototype.replace` method
1929 // https://tc39.es/ecma262/#sec-string.prototype.replace
1930 function replace(searchValue, replaceValue) {
1931 var O = requireObjectCoercible(this);
1932 var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
1933 return replacer
1934 ? call(replacer, searchValue, O, replaceValue)
1935 : call(nativeReplace, toString$1(O), searchValue, replaceValue);
1936 },
1937 // `RegExp.prototype[@@replace]` method
1938 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1939 function (string, replaceValue) {
1940 var rx = anObject(this);
1941 var S = toString$1(string);
1942
1943 if (
1944 typeof replaceValue == 'string' &&
1945 stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1946 stringIndexOf(replaceValue, '$<') === -1
1947 ) {
1948 var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1949 if (res.done) return res.value;
1950 }
1951
1952 var functionalReplace = isCallable$1(replaceValue);
1953 if (!functionalReplace) replaceValue = toString$1(replaceValue);
1954
1955 var global = rx.global;
1956 if (global) {
1957 var fullUnicode = rx.unicode;
1958 rx.lastIndex = 0;
1959 }
1960 var results = [];
1961 while (true) {
1962 var result = regExpExec(rx, S);
1963 if (result === null) break;
1964
1965 push$1(results, result);
1966 if (!global) break;
1967
1968 var matchStr = toString$1(result[0]);
1969 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1970 }
1971
1972 var accumulatedResult = '';
1973 var nextSourcePosition = 0;
1974 for (var i = 0; i < results.length; i++) {
1975 result = results[i];
1976
1977 var matched = toString$1(result[0]);
1978 var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
1979 var captures = [];
1980 // NOTE: This is equivalent to
1981 // captures = result.slice(1).map(maybeToString)
1982 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1983 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1984 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1985 for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
1986 var namedCaptures = result.groups;
1987 if (functionalReplace) {
1988 var replacerArgs = concat([matched], captures, position, S);
1989 if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
1990 var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
1991 } else {
1992 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1993 }
1994 if (position >= nextSourcePosition) {
1995 accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1996 nextSourcePosition = position + matched.length;
1997 }
1998 }
1999 return accumulatedResult + stringSlice(S, nextSourcePosition);
2000 }
2001 ];
2002 }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2003
2004 var classof$2 = classofRaw$2;
2005
2006 // `IsArray` abstract operation
2007 // https://tc39.es/ecma262/#sec-isarray
2008 // eslint-disable-next-line es/no-array-isarray -- safe
2009 var isArray$3 = Array.isArray || function isArray(argument) {
2010 return classof$2(argument) == 'Array';
2011 };
2012
2013 var uncurryThis$4 = functionUncurryThis;
2014 var fails$3 = fails$i;
2015 var isCallable = isCallable$e;
2016 var classof$1 = classof$5;
2017 var getBuiltIn = getBuiltIn$4;
2018 var inspectSource = inspectSource$2;
2019
2020 var noop = function () { /* empty */ };
2021 var empty = [];
2022 var construct = getBuiltIn('Reflect', 'construct');
2023 var constructorRegExp = /^\s*(?:class|function)\b/;
2024 var exec = uncurryThis$4(constructorRegExp.exec);
2025 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
2026
2027 var isConstructorModern = function isConstructor(argument) {
2028 if (!isCallable(argument)) return false;
2029 try {
2030 construct(noop, empty, argument);
2031 return true;
2032 } catch (error) {
2033 return false;
2034 }
2035 };
2036
2037 var isConstructorLegacy = function isConstructor(argument) {
2038 if (!isCallable(argument)) return false;
2039 switch (classof$1(argument)) {
2040 case 'AsyncFunction':
2041 case 'GeneratorFunction':
2042 case 'AsyncGeneratorFunction': return false;
2043 }
2044 try {
2045 // we can't check .prototype since constructors produced by .bind haven't it
2046 // `Function#toString` throws on some built-it function in some legacy engines
2047 // (for example, `DOMQuad` and similar in FF41-)
2048 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
2049 } catch (error) {
2050 return true;
2051 }
2052 };
2053
2054 isConstructorLegacy.sham = true;
2055
2056 // `IsConstructor` abstract operation
2057 // https://tc39.es/ecma262/#sec-isconstructor
2058 var isConstructor$2 = !construct || fails$3(function () {
2059 var called;
2060 return isConstructorModern(isConstructorModern.call)
2061 || !isConstructorModern(Object)
2062 || !isConstructorModern(function () { called = true; })
2063 || called;
2064 }) ? isConstructorLegacy : isConstructorModern;
2065
2066 var toPropertyKey = toPropertyKey$3;
2067 var definePropertyModule = objectDefineProperty;
2068 var createPropertyDescriptor = createPropertyDescriptor$3;
2069
2070 var createProperty$2 = function (object, key, value) {
2071 var propertyKey = toPropertyKey(key);
2072 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
2073 else object[propertyKey] = value;
2074 };
2075
2076 var fails$2 = fails$i;
2077 var wellKnownSymbol$4 = wellKnownSymbol$a;
2078 var V8_VERSION$1 = engineV8Version;
2079
2080 var SPECIES$2 = wellKnownSymbol$4('species');
2081
2082 var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
2083 // We can't use this feature detection in V8 since it causes
2084 // deoptimization and serious performance degradation
2085 // https://github.com/zloirock/core-js/issues/677
2086 return V8_VERSION$1 >= 51 || !fails$2(function () {
2087 var array = [];
2088 var constructor = array.constructor = {};
2089 constructor[SPECIES$2] = function () {
2090 return { foo: 1 };
2091 };
2092 return array[METHOD_NAME](Boolean).foo !== 1;
2093 });
2094 };
2095
2096 var uncurryThis$3 = functionUncurryThis;
2097
2098 var arraySlice = uncurryThis$3([].slice);
2099
2100 var $$4 = _export;
2101 var isArray$2 = isArray$3;
2102 var isConstructor$1 = isConstructor$2;
2103 var isObject$2 = isObject$8;
2104 var toAbsoluteIndex = toAbsoluteIndex$2;
2105 var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2106 var toIndexedObject$1 = toIndexedObject$6;
2107 var createProperty$1 = createProperty$2;
2108 var wellKnownSymbol$3 = wellKnownSymbol$a;
2109 var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
2110 var nativeSlice = arraySlice;
2111
2112 var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
2113
2114 var SPECIES$1 = wellKnownSymbol$3('species');
2115 var $Array$1 = Array;
2116 var max = Math.max;
2117
2118 // `Array.prototype.slice` method
2119 // https://tc39.es/ecma262/#sec-array.prototype.slice
2120 // fallback for not array-like ES3 strings and DOM objects
2121 $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
2122 slice: function slice(start, end) {
2123 var O = toIndexedObject$1(this);
2124 var length = lengthOfArrayLike$2(O);
2125 var k = toAbsoluteIndex(start, length);
2126 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2127 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
2128 var Constructor, result, n;
2129 if (isArray$2(O)) {
2130 Constructor = O.constructor;
2131 // cross-realm fallback
2132 if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$2(Constructor.prototype))) {
2133 Constructor = undefined;
2134 } else if (isObject$2(Constructor)) {
2135 Constructor = Constructor[SPECIES$1];
2136 if (Constructor === null) Constructor = undefined;
2137 }
2138 if (Constructor === $Array$1 || Constructor === undefined) {
2139 return nativeSlice(O, k, fin);
2140 }
2141 }
2142 result = new (Constructor === undefined ? $Array$1 : Constructor)(max(fin - k, 0));
2143 for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
2144 result.length = n;
2145 return result;
2146 }
2147 });
2148
2149 var uncurryThis$2 = functionUncurryThisClause;
2150 var aCallable = aCallable$2;
2151 var NATIVE_BIND = functionBindNative;
2152
2153 var bind$1 = uncurryThis$2(uncurryThis$2.bind);
2154
2155 // optional / simple context binding
2156 var functionBindContext = function (fn, that) {
2157 aCallable(fn);
2158 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
2159 return fn.apply(that, arguments);
2160 };
2161 };
2162
2163 var isArray$1 = isArray$3;
2164 var isConstructor = isConstructor$2;
2165 var isObject$1 = isObject$8;
2166 var wellKnownSymbol$2 = wellKnownSymbol$a;
2167
2168 var SPECIES = wellKnownSymbol$2('species');
2169 var $Array = Array;
2170
2171 // a part of `ArraySpeciesCreate` abstract operation
2172 // https://tc39.es/ecma262/#sec-arrayspeciescreate
2173 var arraySpeciesConstructor$1 = function (originalArray) {
2174 var C;
2175 if (isArray$1(originalArray)) {
2176 C = originalArray.constructor;
2177 // cross-realm fallback
2178 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
2179 else if (isObject$1(C)) {
2180 C = C[SPECIES];
2181 if (C === null) C = undefined;
2182 }
2183 } return C === undefined ? $Array : C;
2184 };
2185
2186 var arraySpeciesConstructor = arraySpeciesConstructor$1;
2187
2188 // `ArraySpeciesCreate` abstract operation
2189 // https://tc39.es/ecma262/#sec-arrayspeciescreate
2190 var arraySpeciesCreate$2 = function (originalArray, length) {
2191 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2192 };
2193
2194 var bind = functionBindContext;
2195 var uncurryThis$1 = functionUncurryThis;
2196 var IndexedObject$1 = indexedObject;
2197 var toObject$1 = toObject$5;
2198 var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2199 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
2200
2201 var push = uncurryThis$1([].push);
2202
2203 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2204 var createMethod = function (TYPE) {
2205 var IS_MAP = TYPE == 1;
2206 var IS_FILTER = TYPE == 2;
2207 var IS_SOME = TYPE == 3;
2208 var IS_EVERY = TYPE == 4;
2209 var IS_FIND_INDEX = TYPE == 6;
2210 var IS_FILTER_REJECT = TYPE == 7;
2211 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2212 return function ($this, callbackfn, that, specificCreate) {
2213 var O = toObject$1($this);
2214 var self = IndexedObject$1(O);
2215 var boundFunction = bind(callbackfn, that);
2216 var length = lengthOfArrayLike$1(self);
2217 var index = 0;
2218 var create = specificCreate || arraySpeciesCreate$1;
2219 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
2220 var value, result;
2221 for (;length > index; index++) if (NO_HOLES || index in self) {
2222 value = self[index];
2223 result = boundFunction(value, index, O);
2224 if (TYPE) {
2225 if (IS_MAP) target[index] = result; // map
2226 else if (result) switch (TYPE) {
2227 case 3: return true; // some
2228 case 5: return value; // find
2229 case 6: return index; // findIndex
2230 case 2: push(target, value); // filter
2231 } else switch (TYPE) {
2232 case 4: return false; // every
2233 case 7: push(target, value); // filterReject
2234 }
2235 }
2236 }
2237 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2238 };
2239 };
2240
2241 var arrayIteration = {
2242 // `Array.prototype.forEach` method
2243 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2244 forEach: createMethod(0),
2245 // `Array.prototype.map` method
2246 // https://tc39.es/ecma262/#sec-array.prototype.map
2247 map: createMethod(1),
2248 // `Array.prototype.filter` method
2249 // https://tc39.es/ecma262/#sec-array.prototype.filter
2250 filter: createMethod(2),
2251 // `Array.prototype.some` method
2252 // https://tc39.es/ecma262/#sec-array.prototype.some
2253 some: createMethod(3),
2254 // `Array.prototype.every` method
2255 // https://tc39.es/ecma262/#sec-array.prototype.every
2256 every: createMethod(4),
2257 // `Array.prototype.find` method
2258 // https://tc39.es/ecma262/#sec-array.prototype.find
2259 find: createMethod(5),
2260 // `Array.prototype.findIndex` method
2261 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2262 findIndex: createMethod(6),
2263 // `Array.prototype.filterReject` method
2264 // https://github.com/tc39/proposal-array-filtering
2265 filterReject: createMethod(7)
2266 };
2267
2268 var $$3 = _export;
2269 var $map = arrayIteration.map;
2270 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
2271
2272 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
2273
2274 // `Array.prototype.map` method
2275 // https://tc39.es/ecma262/#sec-array.prototype.map
2276 // with adding support of @@species
2277 $$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2278 map: function map(callbackfn /* , thisArg */) {
2279 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2280 }
2281 });
2282
2283 var wellKnownSymbol$1 = wellKnownSymbol$a;
2284 var create = objectCreate;
2285 var defineProperty = objectDefineProperty.f;
2286
2287 var UNSCOPABLES = wellKnownSymbol$1('unscopables');
2288 var ArrayPrototype = Array.prototype;
2289
2290 // Array.prototype[@@unscopables]
2291 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2292 if (ArrayPrototype[UNSCOPABLES] == undefined) {
2293 defineProperty(ArrayPrototype, UNSCOPABLES, {
2294 configurable: true,
2295 value: create(null)
2296 });
2297 }
2298
2299 // add a key to Array.prototype[@@unscopables]
2300 var addToUnscopables$1 = function (key) {
2301 ArrayPrototype[UNSCOPABLES][key] = true;
2302 };
2303
2304 var $$2 = _export;
2305 var $find = arrayIteration.find;
2306 var addToUnscopables = addToUnscopables$1;
2307
2308 var FIND = 'find';
2309 var SKIPS_HOLES = true;
2310
2311 // Shouldn't skip holes
2312 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2313
2314 // `Array.prototype.find` method
2315 // https://tc39.es/ecma262/#sec-array.prototype.find
2316 $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2317 find: function find(callbackfn /* , that = undefined */) {
2318 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2319 }
2320 });
2321
2322 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2323 addToUnscopables(FIND);
2324
2325 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2326 var classof = classof$5;
2327
2328 // `Object.prototype.toString` method implementation
2329 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2330 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2331 return '[object ' + classof(this) + ']';
2332 };
2333
2334 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2335 var defineBuiltIn = defineBuiltIn$3;
2336 var toString = objectToString;
2337
2338 // `Object.prototype.toString` method
2339 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2340 if (!TO_STRING_TAG_SUPPORT) {
2341 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
2342 }
2343
2344 var $TypeError = TypeError;
2345 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2346
2347 var doesNotExceedSafeInteger$1 = function (it) {
2348 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2349 return it;
2350 };
2351
2352 var $$1 = _export;
2353 var fails$1 = fails$i;
2354 var isArray = isArray$3;
2355 var isObject = isObject$8;
2356 var toObject = toObject$5;
2357 var lengthOfArrayLike = lengthOfArrayLike$4;
2358 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2359 var createProperty = createProperty$2;
2360 var arraySpeciesCreate = arraySpeciesCreate$2;
2361 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
2362 var wellKnownSymbol = wellKnownSymbol$a;
2363 var V8_VERSION = engineV8Version;
2364
2365 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
2366
2367 // We can't use this feature detection in V8 since it causes
2368 // deoptimization and serious performance degradation
2369 // https://github.com/zloirock/core-js/issues/679
2370 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
2371 var array = [];
2372 array[IS_CONCAT_SPREADABLE] = false;
2373 return array.concat()[0] !== array;
2374 });
2375
2376 var isConcatSpreadable = function (O) {
2377 if (!isObject(O)) return false;
2378 var spreadable = O[IS_CONCAT_SPREADABLE];
2379 return spreadable !== undefined ? !!spreadable : isArray(O);
2380 };
2381
2382 var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
2383
2384 // `Array.prototype.concat` method
2385 // https://tc39.es/ecma262/#sec-array.prototype.concat
2386 // with adding support of @@isConcatSpreadable and @@species
2387 $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
2388 // eslint-disable-next-line no-unused-vars -- required for `.length`
2389 concat: function concat(arg) {
2390 var O = toObject(this);
2391 var A = arraySpeciesCreate(O, 0);
2392 var n = 0;
2393 var i, k, length, len, E;
2394 for (i = -1, length = arguments.length; i < length; i++) {
2395 E = i === -1 ? O : arguments[i];
2396 if (isConcatSpreadable(E)) {
2397 len = lengthOfArrayLike(E);
2398 doesNotExceedSafeInteger(n + len);
2399 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2400 } else {
2401 doesNotExceedSafeInteger(n + 1);
2402 createProperty(A, n++, E);
2403 }
2404 }
2405 A.length = n;
2406 return A;
2407 }
2408 });
2409
2410 var fails = fails$i;
2411
2412 var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
2413 var method = [][METHOD_NAME];
2414 return !!method && fails(function () {
2415 // eslint-disable-next-line no-useless-call -- required for testing
2416 method.call(null, argument || function () { return 1; }, 1);
2417 });
2418 };
2419
2420 var $ = _export;
2421 var uncurryThis = functionUncurryThis;
2422 var IndexedObject = indexedObject;
2423 var toIndexedObject = toIndexedObject$6;
2424 var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
2425
2426 var nativeJoin = uncurryThis([].join);
2427
2428 var ES3_STRINGS = IndexedObject != Object;
2429 var FORCED = ES3_STRINGS || !arrayMethodIsStrict$1('join', ',');
2430
2431 // `Array.prototype.join` method
2432 // https://tc39.es/ecma262/#sec-array.prototype.join
2433 $({ target: 'Array', proto: true, forced: FORCED }, {
2434 join: function join(separator) {
2435 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
2436 }
2437 });
2438
2439 // iterable DOM collections
2440 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2441 var domIterables = {
2442 CSSRuleList: 0,
2443 CSSStyleDeclaration: 0,
2444 CSSValueList: 0,
2445 ClientRectList: 0,
2446 DOMRectList: 0,
2447 DOMStringList: 0,
2448 DOMTokenList: 1,
2449 DataTransferItemList: 0,
2450 FileList: 0,
2451 HTMLAllCollection: 0,
2452 HTMLCollection: 0,
2453 HTMLFormElement: 0,
2454 HTMLSelectElement: 0,
2455 MediaList: 0,
2456 MimeTypeArray: 0,
2457 NamedNodeMap: 0,
2458 NodeList: 1,
2459 PaintRequestList: 0,
2460 Plugin: 0,
2461 PluginArray: 0,
2462 SVGLengthList: 0,
2463 SVGNumberList: 0,
2464 SVGPathSegList: 0,
2465 SVGPointList: 0,
2466 SVGStringList: 0,
2467 SVGTransformList: 0,
2468 SourceBufferList: 0,
2469 StyleSheetList: 0,
2470 TextTrackCueList: 0,
2471 TextTrackList: 0,
2472 TouchList: 0
2473 };
2474
2475 // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2476 var documentCreateElement = documentCreateElement$2;
2477
2478 var classList = documentCreateElement('span').classList;
2479 var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2480
2481 var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2482
2483 var $forEach = arrayIteration.forEach;
2484 var arrayMethodIsStrict = arrayMethodIsStrict$2;
2485
2486 var STRICT_METHOD = arrayMethodIsStrict('forEach');
2487
2488 // `Array.prototype.forEach` method implementation
2489 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2490 var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
2491 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2492 // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2493 } : [].forEach;
2494
2495 var global$1 = global$e;
2496 var DOMIterables = domIterables;
2497 var DOMTokenListPrototype = domTokenListPrototype;
2498 var forEach = arrayForEach;
2499 var createNonEnumerableProperty = createNonEnumerableProperty$4;
2500
2501 var handlePrototype = function (CollectionPrototype) {
2502 // some Chrome versions have non-configurable methods on DOMTokenList
2503 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
2504 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
2505 } catch (error) {
2506 CollectionPrototype.forEach = forEach;
2507 }
2508 };
2509
2510 for (var COLLECTION_NAME in DOMIterables) {
2511 if (DOMIterables[COLLECTION_NAME]) {
2512 handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
2513 }
2514 }
2515
2516 handlePrototype(DOMTokenListPrototype);
2517
2518 /**
2519 * @author zhixin wen <wenzhixin2010@gmail.com>
2520 * extensions: https://github.com/hhurz/tableExport.jquery.plugin
2521 */
2522
2523 var Utils = $$7.fn.bootstrapTable.utils;
2524 var TYPE_NAME = {
2525 json: 'JSON',
2526 xml: 'XML',
2527 png: 'PNG',
2528 csv: 'CSV',
2529 txt: 'TXT',
2530 sql: 'SQL',
2531 doc: 'MS-Word',
2532 excel: 'MS-Excel',
2533 xlsx: 'MS-Excel (OpenXML)',
2534 powerpoint: 'MS-Powerpoint',
2535 pdf: 'PDF'
2536 };
2537 Object.assign($$7.fn.bootstrapTable.defaults, {
2538 showExport: false,
2539 exportDataType: 'basic',
2540 // basic, all, selected
2541 exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
2542 exportOptions: {},
2543 exportFooter: false
2544 });
2545 Object.assign($$7.fn.bootstrapTable.columnDefaults, {
2546 forceExport: false,
2547 forceHide: false
2548 });
2549 Object.assign($$7.fn.bootstrapTable.defaults.icons, {
2550 export: {
2551 bootstrap3: 'glyphicon-export icon-share',
2552 bootstrap5: 'bi-download',
2553 materialize: 'file_download',
2554 'bootstrap-table': 'icon-download'
2555 }[$$7.fn.bootstrapTable.theme] || 'fa-download'
2556 });
2557 Object.assign($$7.fn.bootstrapTable.locales, {
2558 formatExport: function formatExport() {
2559 return 'Export data';
2560 }
2561 });
2562 Object.assign($$7.fn.bootstrapTable.defaults, $$7.fn.bootstrapTable.locales);
2563 $$7.fn.bootstrapTable.methods.push('exportTable');
2564 Object.assign($$7.fn.bootstrapTable.defaults, {
2565 // eslint-disable-next-line no-unused-vars
2566 onExportSaved: function onExportSaved(exportedRows) {
2567 return false;
2568 },
2569 onExportStarted: function onExportStarted() {
2570 return false;
2571 }
2572 });
2573 Object.assign($$7.fn.bootstrapTable.events, {
2574 'export-saved.bs.table': 'onExportSaved',
2575 'export-started.bs.table': 'onExportStarted'
2576 });
2577 $$7.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2578 _inherits(_class, _$$BootstrapTable);
2579 var _super = _createSuper(_class);
2580 function _class() {
2581 _classCallCheck(this, _class);
2582 return _super.apply(this, arguments);
2583 }
2584 _createClass(_class, [{
2585 key: "initToolbar",
2586 value: function initToolbar() {
2587 var _this = this,
2588 _get2;
2589 var o = this.options;
2590 var exportTypes = o.exportTypes;
2591 this.showToolbar = this.showToolbar || o.showExport;
2592 if (this.options.showExport) {
2593 if (typeof exportTypes === 'string') {
2594 var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');
2595 exportTypes = types.map(function (t) {
2596 return t.slice(1, -1);
2597 });
2598 }
2599 if (typeof o.exportOptions === 'string') {
2600 o.exportOptions = Utils.calculateObjectValue(null, o.exportOptions);
2601 }
2602 this.$export = this.$toolbar.find('>.columns div.export');
2603 if (this.$export.length) {
2604 this.updateExportButton();
2605 return;
2606 }
2607 this.buttons = Object.assign(this.buttons, {
2608 export: {
2609 html: function html() {
2610 if (exportTypes.length === 1) {
2611 return "\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(_this.constants.buttonsClass, "\"\n aria-label=\"").concat(o.formatExport(), "\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ");
2612 }
2613 var html = [];
2614 html.push("\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(_this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"").concat(o.formatExport(), "\"\n ").concat(_this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(_this.constants.html.dropdownCaret, "\n </button>\n ").concat(_this.constants.html.toolbarDropdown[0], "\n "));
2615 var _iterator = _createForOfIteratorHelper(exportTypes),
2616 _step;
2617 try {
2618 for (_iterator.s(); !(_step = _iterator.n()).done;) {
2619 var type = _step.value;
2620 if (TYPE_NAME.hasOwnProperty(type)) {
2621 var $item = $$7(Utils.sprintf(_this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2622 $item.attr('data-type', type);
2623 html.push($item.prop('outerHTML'));
2624 }
2625 }
2626 } catch (err) {
2627 _iterator.e(err);
2628 } finally {
2629 _iterator.f();
2630 }
2631 html.push(_this.constants.html.toolbarDropdown[1], '</div>');
2632 return html.join('');
2633 }
2634 }
2635 });
2636 }
2637 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2638 args[_key] = arguments[_key];
2639 }
2640 (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
2641 this.$export = this.$toolbar.find('>.columns div.export');
2642 if (!this.options.showExport) {
2643 return;
2644 }
2645 this.updateExportButton();
2646 var $exportButtons = this.$export.find('[data-type]');
2647 if (exportTypes.length === 1) {
2648 $exportButtons = this.$export;
2649 }
2650 $exportButtons.click(function (e) {
2651 e.preventDefault();
2652 _this.exportTable({
2653 type: $$7(e.currentTarget).data('type')
2654 });
2655 });
2656 this.handleToolbar();
2657 }
2658 }, {
2659 key: "handleToolbar",
2660 value: function handleToolbar() {
2661 if (!this.$export) {
2662 return;
2663 }
2664 if (_get(_getPrototypeOf(_class.prototype), "handleToolbar", this)) {
2665 _get(_getPrototypeOf(_class.prototype), "handleToolbar", this).call(this);
2666 }
2667 }
2668 }, {
2669 key: "exportTable",
2670 value: function exportTable(options) {
2671 var _this2 = this;
2672 var o = this.options;
2673 var stateField = this.header.stateField;
2674 var isCardView = o.cardView;
2675 var doExport = function doExport(callback) {
2676 _this2.trigger('export-started');
2677 if (stateField) {
2678 _this2.hideColumn(stateField);
2679 }
2680 if (isCardView) {
2681 _this2.toggleView();
2682 }
2683 _this2.columns.forEach(function (row) {
2684 if (row.forceHide) {
2685 _this2.hideColumn(row.field);
2686 }
2687 });
2688 var data = _this2.getData();
2689 if (o.detailView && o.detailViewIcon) {
2690 var detailViewIndex = o.detailViewAlign === 'left' ? 0 : _this2.getVisibleFields().length + Utils.getDetailViewIndexOffset(_this2.options);
2691 o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || []);
2692 }
2693 if (o.exportFooter && o.height) {
2694 var $footerRow = _this2.$tableFooter.find('tr').first();
2695 var footerData = {};
2696 var footerHtml = [];
2697 $$7.each($footerRow.children(), function (index, footerCell) {
2698 var footerCellHtml = $$7(footerCell).children('.th-inner').first().html();
2699 footerData[_this2.columns[index].field] = footerCellHtml === '&nbsp;' ? null : footerCellHtml;
2700
2701 // grab footer cell text into cell index-based array
2702 footerHtml.push(footerCellHtml);
2703 });
2704 _this2.$body.append(_this2.$body.children().last()[0].outerHTML);
2705 var $lastTableRow = _this2.$body.children().last();
2706 $$7.each($lastTableRow.children(), function (index, lastTableRowCell) {
2707 $$7(lastTableRowCell).html(footerHtml[index]);
2708 });
2709 }
2710 var hiddenColumns = _this2.getHiddenColumns();
2711 hiddenColumns.forEach(function (row) {
2712 if (row.forceExport) {
2713 _this2.showColumn(row.field);
2714 }
2715 });
2716 if (typeof o.exportOptions.fileName === 'function') {
2717 options.fileName = o.exportOptions.fileName();
2718 }
2719 _this2.$el.tableExport(Utils.extend({
2720 onAfterSaveToFile: function onAfterSaveToFile() {
2721 if (o.exportFooter) {
2722 _this2.load(data);
2723 }
2724 if (stateField) {
2725 _this2.showColumn(stateField);
2726 }
2727 if (isCardView) {
2728 _this2.toggleView();
2729 }
2730 hiddenColumns.forEach(function (row) {
2731 if (row.forceExport) {
2732 _this2.hideColumn(row.field);
2733 }
2734 });
2735 _this2.columns.forEach(function (row) {
2736 if (row.forceHide) {
2737 _this2.showColumn(row.field);
2738 }
2739 });
2740 if (callback) callback();
2741 }
2742 }, o.exportOptions, options));
2743 };
2744 if (o.exportDataType === 'all' && o.pagination) {
2745 var eventName = o.sidePagination === 'server' ? 'post-body.bs.table' : 'page-change.bs.table';
2746 var virtualScroll = this.options.virtualScroll;
2747 this.$el.one(eventName, function () {
2748 setTimeout(function () {
2749 doExport(function () {
2750 _this2.options.virtualScroll = virtualScroll;
2751 _this2.togglePagination();
2752 });
2753 }, 0);
2754 });
2755 this.options.virtualScroll = false;
2756 this.togglePagination();
2757 this.trigger('export-saved', this.getData());
2758 } else if (o.exportDataType === 'selected') {
2759 var data = this.getData();
2760 var selectedData = this.getSelections();
2761 var pagination = o.pagination;
2762 if (!selectedData.length) {
2763 return;
2764 }
2765 if (o.sidePagination === 'server') {
2766 data = _defineProperty({
2767 total: o.totalRows
2768 }, this.options.dataField, data);
2769 selectedData = _defineProperty({
2770 total: selectedData.length
2771 }, this.options.dataField, selectedData);
2772 }
2773 this.load(selectedData);
2774 if (pagination) {
2775 this.togglePagination();
2776 }
2777 doExport(function () {
2778 if (pagination) {
2779 _this2.togglePagination();
2780 }
2781 _this2.load(data);
2782 });
2783 this.trigger('export-saved', selectedData);
2784 } else {
2785 doExport();
2786 this.trigger('export-saved', this.getData(true));
2787 }
2788 }
2789 }, {
2790 key: "updateSelected",
2791 value: function updateSelected() {
2792 _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
2793 this.updateExportButton();
2794 }
2795 }, {
2796 key: "updateExportButton",
2797 value: function updateExportButton() {
2798 if (this.options.exportDataType === 'selected') {
2799 this.$export.find('> button').prop('disabled', !this.getSelections().length);
2800 }
2801 }
2802 }]);
2803 return _class;
2804 }($$7.BootstrapTable);
2805
2806}));