UNPKG

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