UNPKG

112 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 ($) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($);
10
11 function _typeof(obj) {
12 "@babel/helpers - typeof";
13
14 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
15 _typeof = function (obj) {
16 return typeof obj;
17 };
18 } else {
19 _typeof = function (obj) {
20 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
21 };
22 }
23
24 return _typeof(obj);
25 }
26
27 function _classCallCheck(instance, Constructor) {
28 if (!(instance instanceof Constructor)) {
29 throw new TypeError("Cannot call a class as a function");
30 }
31 }
32
33 function _defineProperties(target, props) {
34 for (var i = 0; i < props.length; i++) {
35 var descriptor = props[i];
36 descriptor.enumerable = descriptor.enumerable || false;
37 descriptor.configurable = true;
38 if ("value" in descriptor) descriptor.writable = true;
39 Object.defineProperty(target, descriptor.key, descriptor);
40 }
41 }
42
43 function _createClass(Constructor, protoProps, staticProps) {
44 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
45 if (staticProps) _defineProperties(Constructor, staticProps);
46 return Constructor;
47 }
48
49 function _inherits(subClass, superClass) {
50 if (typeof superClass !== "function" && superClass !== null) {
51 throw new TypeError("Super expression must either be null or a function");
52 }
53
54 subClass.prototype = Object.create(superClass && superClass.prototype, {
55 constructor: {
56 value: subClass,
57 writable: true,
58 configurable: true
59 }
60 });
61 if (superClass) _setPrototypeOf(subClass, superClass);
62 }
63
64 function _getPrototypeOf(o) {
65 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
66 return o.__proto__ || Object.getPrototypeOf(o);
67 };
68 return _getPrototypeOf(o);
69 }
70
71 function _setPrototypeOf(o, p) {
72 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
73 o.__proto__ = p;
74 return o;
75 };
76
77 return _setPrototypeOf(o, p);
78 }
79
80 function _isNativeReflectConstruct() {
81 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
82 if (Reflect.construct.sham) return false;
83 if (typeof Proxy === "function") return true;
84
85 try {
86 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
87 return true;
88 } catch (e) {
89 return false;
90 }
91 }
92
93 function _assertThisInitialized(self) {
94 if (self === void 0) {
95 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
96 }
97
98 return self;
99 }
100
101 function _possibleConstructorReturn(self, call) {
102 if (call && (typeof call === "object" || typeof call === "function")) {
103 return call;
104 }
105
106 return _assertThisInitialized(self);
107 }
108
109 function _createSuper(Derived) {
110 var hasNativeReflectConstruct = _isNativeReflectConstruct();
111
112 return function _createSuperInternal() {
113 var Super = _getPrototypeOf(Derived),
114 result;
115
116 if (hasNativeReflectConstruct) {
117 var NewTarget = _getPrototypeOf(this).constructor;
118
119 result = Reflect.construct(Super, arguments, NewTarget);
120 } else {
121 result = Super.apply(this, arguments);
122 }
123
124 return _possibleConstructorReturn(this, result);
125 };
126 }
127
128 function _superPropBase(object, property) {
129 while (!Object.prototype.hasOwnProperty.call(object, property)) {
130 object = _getPrototypeOf(object);
131 if (object === null) break;
132 }
133
134 return object;
135 }
136
137 function _get(target, property, receiver) {
138 if (typeof Reflect !== "undefined" && Reflect.get) {
139 _get = Reflect.get;
140 } else {
141 _get = function _get(target, property, receiver) {
142 var base = _superPropBase(target, property);
143
144 if (!base) return;
145 var desc = Object.getOwnPropertyDescriptor(base, property);
146
147 if (desc.get) {
148 return desc.get.call(receiver);
149 }
150
151 return desc.value;
152 };
153 }
154
155 return _get(target, property, receiver || target);
156 }
157
158 function _toConsumableArray(arr) {
159 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
160 }
161
162 function _arrayWithoutHoles(arr) {
163 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
164 }
165
166 function _iterableToArray(iter) {
167 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
168 }
169
170 function _unsupportedIterableToArray(o, minLen) {
171 if (!o) return;
172 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
173 var n = Object.prototype.toString.call(o).slice(8, -1);
174 if (n === "Object" && o.constructor) n = o.constructor.name;
175 if (n === "Map" || n === "Set") return Array.from(o);
176 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
177 }
178
179 function _arrayLikeToArray(arr, len) {
180 if (len == null || len > arr.length) len = arr.length;
181
182 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
183
184 return arr2;
185 }
186
187 function _nonIterableSpread() {
188 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
189 }
190
191 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
192
193 function createCommonjsModule(fn, module) {
194 return module = { exports: {} }, fn(module, module.exports), module.exports;
195 }
196
197 var check = function (it) {
198 return it && it.Math == Math && it;
199 };
200
201 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
202 var global_1 =
203 /* global globalThis -- safe */
204 check(typeof globalThis == 'object' && globalThis) ||
205 check(typeof window == 'object' && window) ||
206 check(typeof self == 'object' && self) ||
207 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
208 // eslint-disable-next-line no-new-func -- fallback
209 (function () { return this; })() || Function('return this')();
210
211 var fails = function (exec) {
212 try {
213 return !!exec();
214 } catch (error) {
215 return true;
216 }
217 };
218
219 // Detect IE8's incomplete defineProperty implementation
220 var descriptors = !fails(function () {
221 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
222 });
223
224 var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
225 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
226
227 // Nashorn ~ JDK8 bug
228 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
229
230 // `Object.prototype.propertyIsEnumerable` method implementation
231 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
232 var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
233 var descriptor = getOwnPropertyDescriptor$1(this, V);
234 return !!descriptor && descriptor.enumerable;
235 } : nativePropertyIsEnumerable;
236
237 var objectPropertyIsEnumerable = {
238 f: f$4
239 };
240
241 var createPropertyDescriptor = function (bitmap, value) {
242 return {
243 enumerable: !(bitmap & 1),
244 configurable: !(bitmap & 2),
245 writable: !(bitmap & 4),
246 value: value
247 };
248 };
249
250 var toString = {}.toString;
251
252 var classofRaw = function (it) {
253 return toString.call(it).slice(8, -1);
254 };
255
256 var split = ''.split;
257
258 // fallback for non-array-like ES3 and non-enumerable old V8 strings
259 var indexedObject = fails(function () {
260 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
261 // eslint-disable-next-line no-prototype-builtins -- safe
262 return !Object('z').propertyIsEnumerable(0);
263 }) ? function (it) {
264 return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
265 } : Object;
266
267 // `RequireObjectCoercible` abstract operation
268 // https://tc39.es/ecma262/#sec-requireobjectcoercible
269 var requireObjectCoercible = function (it) {
270 if (it == undefined) throw TypeError("Can't call method on " + it);
271 return it;
272 };
273
274 // toObject with fallback for non-array-like ES3 strings
275
276
277
278 var toIndexedObject = function (it) {
279 return indexedObject(requireObjectCoercible(it));
280 };
281
282 var isObject = function (it) {
283 return typeof it === 'object' ? it !== null : typeof it === 'function';
284 };
285
286 // `ToPrimitive` abstract operation
287 // https://tc39.es/ecma262/#sec-toprimitive
288 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
289 // and the second argument - flag - preferred type is a string
290 var toPrimitive = function (input, PREFERRED_STRING) {
291 if (!isObject(input)) return input;
292 var fn, val;
293 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
294 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
295 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
296 throw TypeError("Can't convert object to primitive value");
297 };
298
299 var hasOwnProperty = {}.hasOwnProperty;
300
301 var has$1 = function (it, key) {
302 return hasOwnProperty.call(it, key);
303 };
304
305 var document$1 = global_1.document;
306 // typeof document.createElement is 'object' in old IE
307 var EXISTS = isObject(document$1) && isObject(document$1.createElement);
308
309 var documentCreateElement = function (it) {
310 return EXISTS ? document$1.createElement(it) : {};
311 };
312
313 // Thank's IE8 for his funny defineProperty
314 var ie8DomDefine = !descriptors && !fails(function () {
315 return Object.defineProperty(documentCreateElement('div'), 'a', {
316 get: function () { return 7; }
317 }).a != 7;
318 });
319
320 var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
321
322 // `Object.getOwnPropertyDescriptor` method
323 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
324 var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
325 O = toIndexedObject(O);
326 P = toPrimitive(P, true);
327 if (ie8DomDefine) try {
328 return nativeGetOwnPropertyDescriptor(O, P);
329 } catch (error) { /* empty */ }
330 if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
331 };
332
333 var objectGetOwnPropertyDescriptor = {
334 f: f$3
335 };
336
337 var anObject = function (it) {
338 if (!isObject(it)) {
339 throw TypeError(String(it) + ' is not an object');
340 } return it;
341 };
342
343 var nativeDefineProperty = Object.defineProperty;
344
345 // `Object.defineProperty` method
346 // https://tc39.es/ecma262/#sec-object.defineproperty
347 var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
348 anObject(O);
349 P = toPrimitive(P, true);
350 anObject(Attributes);
351 if (ie8DomDefine) try {
352 return nativeDefineProperty(O, P, Attributes);
353 } catch (error) { /* empty */ }
354 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
355 if ('value' in Attributes) O[P] = Attributes.value;
356 return O;
357 };
358
359 var objectDefineProperty = {
360 f: f$2
361 };
362
363 var createNonEnumerableProperty = descriptors ? function (object, key, value) {
364 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
365 } : function (object, key, value) {
366 object[key] = value;
367 return object;
368 };
369
370 var setGlobal = function (key, value) {
371 try {
372 createNonEnumerableProperty(global_1, key, value);
373 } catch (error) {
374 global_1[key] = value;
375 } return value;
376 };
377
378 var SHARED = '__core-js_shared__';
379 var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
380
381 var sharedStore = store$1;
382
383 var functionToString = Function.toString;
384
385 // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
386 if (typeof sharedStore.inspectSource != 'function') {
387 sharedStore.inspectSource = function (it) {
388 return functionToString.call(it);
389 };
390 }
391
392 var inspectSource = sharedStore.inspectSource;
393
394 var WeakMap$1 = global_1.WeakMap;
395
396 var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
397
398 var shared = createCommonjsModule(function (module) {
399 (module.exports = function (key, value) {
400 return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
401 })('versions', []).push({
402 version: '3.9.1',
403 mode: 'global',
404 copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
405 });
406 });
407
408 var id = 0;
409 var postfix = Math.random();
410
411 var uid = function (key) {
412 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
413 };
414
415 var keys = shared('keys');
416
417 var sharedKey = function (key) {
418 return keys[key] || (keys[key] = uid(key));
419 };
420
421 var hiddenKeys$1 = {};
422
423 var WeakMap = global_1.WeakMap;
424 var set, get, has;
425
426 var enforce = function (it) {
427 return has(it) ? get(it) : set(it, {});
428 };
429
430 var getterFor = function (TYPE) {
431 return function (it) {
432 var state;
433 if (!isObject(it) || (state = get(it)).type !== TYPE) {
434 throw TypeError('Incompatible receiver, ' + TYPE + ' required');
435 } return state;
436 };
437 };
438
439 if (nativeWeakMap) {
440 var store = sharedStore.state || (sharedStore.state = new WeakMap());
441 var wmget = store.get;
442 var wmhas = store.has;
443 var wmset = store.set;
444 set = function (it, metadata) {
445 metadata.facade = it;
446 wmset.call(store, it, metadata);
447 return metadata;
448 };
449 get = function (it) {
450 return wmget.call(store, it) || {};
451 };
452 has = function (it) {
453 return wmhas.call(store, it);
454 };
455 } else {
456 var STATE = sharedKey('state');
457 hiddenKeys$1[STATE] = true;
458 set = function (it, metadata) {
459 metadata.facade = it;
460 createNonEnumerableProperty(it, STATE, metadata);
461 return metadata;
462 };
463 get = function (it) {
464 return has$1(it, STATE) ? it[STATE] : {};
465 };
466 has = function (it) {
467 return has$1(it, STATE);
468 };
469 }
470
471 var internalState = {
472 set: set,
473 get: get,
474 has: has,
475 enforce: enforce,
476 getterFor: getterFor
477 };
478
479 var redefine = createCommonjsModule(function (module) {
480 var getInternalState = internalState.get;
481 var enforceInternalState = internalState.enforce;
482 var TEMPLATE = String(String).split('String');
483
484 (module.exports = function (O, key, value, options) {
485 var unsafe = options ? !!options.unsafe : false;
486 var simple = options ? !!options.enumerable : false;
487 var noTargetGet = options ? !!options.noTargetGet : false;
488 var state;
489 if (typeof value == 'function') {
490 if (typeof key == 'string' && !has$1(value, 'name')) {
491 createNonEnumerableProperty(value, 'name', key);
492 }
493 state = enforceInternalState(value);
494 if (!state.source) {
495 state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
496 }
497 }
498 if (O === global_1) {
499 if (simple) O[key] = value;
500 else setGlobal(key, value);
501 return;
502 } else if (!unsafe) {
503 delete O[key];
504 } else if (!noTargetGet && O[key]) {
505 simple = true;
506 }
507 if (simple) O[key] = value;
508 else createNonEnumerableProperty(O, key, value);
509 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
510 })(Function.prototype, 'toString', function toString() {
511 return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
512 });
513 });
514
515 var path = global_1;
516
517 var aFunction$1 = function (variable) {
518 return typeof variable == 'function' ? variable : undefined;
519 };
520
521 var getBuiltIn = function (namespace, method) {
522 return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
523 : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
524 };
525
526 var ceil = Math.ceil;
527 var floor$1 = Math.floor;
528
529 // `ToInteger` abstract operation
530 // https://tc39.es/ecma262/#sec-tointeger
531 var toInteger = function (argument) {
532 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
533 };
534
535 var min$3 = Math.min;
536
537 // `ToLength` abstract operation
538 // https://tc39.es/ecma262/#sec-tolength
539 var toLength = function (argument) {
540 return argument > 0 ? min$3(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
541 };
542
543 var max$1 = Math.max;
544 var min$2 = Math.min;
545
546 // Helper for a popular repeating case of the spec:
547 // Let integer be ? ToInteger(index).
548 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
549 var toAbsoluteIndex = function (index, length) {
550 var integer = toInteger(index);
551 return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
552 };
553
554 // `Array.prototype.{ indexOf, includes }` methods implementation
555 var createMethod$3 = function (IS_INCLUDES) {
556 return function ($this, el, fromIndex) {
557 var O = toIndexedObject($this);
558 var length = toLength(O.length);
559 var index = toAbsoluteIndex(fromIndex, length);
560 var value;
561 // Array#includes uses SameValueZero equality algorithm
562 // eslint-disable-next-line no-self-compare -- NaN check
563 if (IS_INCLUDES && el != el) while (length > index) {
564 value = O[index++];
565 // eslint-disable-next-line no-self-compare -- NaN check
566 if (value != value) return true;
567 // Array#indexOf ignores holes, Array#includes - not
568 } else for (;length > index; index++) {
569 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
570 } return !IS_INCLUDES && -1;
571 };
572 };
573
574 var arrayIncludes = {
575 // `Array.prototype.includes` method
576 // https://tc39.es/ecma262/#sec-array.prototype.includes
577 includes: createMethod$3(true),
578 // `Array.prototype.indexOf` method
579 // https://tc39.es/ecma262/#sec-array.prototype.indexof
580 indexOf: createMethod$3(false)
581 };
582
583 var indexOf = arrayIncludes.indexOf;
584
585
586 var objectKeysInternal = function (object, names) {
587 var O = toIndexedObject(object);
588 var i = 0;
589 var result = [];
590 var key;
591 for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
592 // Don't enum bug & hidden keys
593 while (names.length > i) if (has$1(O, key = names[i++])) {
594 ~indexOf(result, key) || result.push(key);
595 }
596 return result;
597 };
598
599 // IE8- don't enum bug keys
600 var enumBugKeys = [
601 'constructor',
602 'hasOwnProperty',
603 'isPrototypeOf',
604 'propertyIsEnumerable',
605 'toLocaleString',
606 'toString',
607 'valueOf'
608 ];
609
610 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
611
612 // `Object.getOwnPropertyNames` method
613 // https://tc39.es/ecma262/#sec-object.getownpropertynames
614 var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
615 return objectKeysInternal(O, hiddenKeys);
616 };
617
618 var objectGetOwnPropertyNames = {
619 f: f$1
620 };
621
622 var f = Object.getOwnPropertySymbols;
623
624 var objectGetOwnPropertySymbols = {
625 f: f
626 };
627
628 // all object keys, includes non-enumerable and symbols
629 var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
630 var keys = objectGetOwnPropertyNames.f(anObject(it));
631 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
632 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
633 };
634
635 var copyConstructorProperties = function (target, source) {
636 var keys = ownKeys(source);
637 var defineProperty = objectDefineProperty.f;
638 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
639 for (var i = 0; i < keys.length; i++) {
640 var key = keys[i];
641 if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
642 }
643 };
644
645 var replacement = /#|\.prototype\./;
646
647 var isForced = function (feature, detection) {
648 var value = data[normalize(feature)];
649 return value == POLYFILL ? true
650 : value == NATIVE ? false
651 : typeof detection == 'function' ? fails(detection)
652 : !!detection;
653 };
654
655 var normalize = isForced.normalize = function (string) {
656 return String(string).replace(replacement, '.').toLowerCase();
657 };
658
659 var data = isForced.data = {};
660 var NATIVE = isForced.NATIVE = 'N';
661 var POLYFILL = isForced.POLYFILL = 'P';
662
663 var isForced_1 = isForced;
664
665 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
666
667
668
669
670
671
672 /*
673 options.target - name of the target object
674 options.global - target is the global object
675 options.stat - export as static methods of target
676 options.proto - export as prototype methods of target
677 options.real - real prototype method for the `pure` version
678 options.forced - export even if the native feature is available
679 options.bind - bind methods to the target, required for the `pure` version
680 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
681 options.unsafe - use the simple assignment of property instead of delete + defineProperty
682 options.sham - add a flag to not completely full polyfills
683 options.enumerable - export as enumerable property
684 options.noTargetGet - prevent calling a getter on target
685 */
686 var _export = function (options, source) {
687 var TARGET = options.target;
688 var GLOBAL = options.global;
689 var STATIC = options.stat;
690 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
691 if (GLOBAL) {
692 target = global_1;
693 } else if (STATIC) {
694 target = global_1[TARGET] || setGlobal(TARGET, {});
695 } else {
696 target = (global_1[TARGET] || {}).prototype;
697 }
698 if (target) for (key in source) {
699 sourceProperty = source[key];
700 if (options.noTargetGet) {
701 descriptor = getOwnPropertyDescriptor(target, key);
702 targetProperty = descriptor && descriptor.value;
703 } else targetProperty = target[key];
704 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
705 // contained in target
706 if (!FORCED && targetProperty !== undefined) {
707 if (typeof sourceProperty === typeof targetProperty) continue;
708 copyConstructorProperties(sourceProperty, targetProperty);
709 }
710 // add a flag to not completely full polyfills
711 if (options.sham || (targetProperty && targetProperty.sham)) {
712 createNonEnumerableProperty(sourceProperty, 'sham', true);
713 }
714 // extend global
715 redefine(target, key, sourceProperty, options);
716 }
717 };
718
719 var aFunction = function (it) {
720 if (typeof it != 'function') {
721 throw TypeError(String(it) + ' is not a function');
722 } return it;
723 };
724
725 // optional / simple context binding
726 var functionBindContext = function (fn, that, length) {
727 aFunction(fn);
728 if (that === undefined) return fn;
729 switch (length) {
730 case 0: return function () {
731 return fn.call(that);
732 };
733 case 1: return function (a) {
734 return fn.call(that, a);
735 };
736 case 2: return function (a, b) {
737 return fn.call(that, a, b);
738 };
739 case 3: return function (a, b, c) {
740 return fn.call(that, a, b, c);
741 };
742 }
743 return function (/* ...args */) {
744 return fn.apply(that, arguments);
745 };
746 };
747
748 // `ToObject` abstract operation
749 // https://tc39.es/ecma262/#sec-toobject
750 var toObject = function (argument) {
751 return Object(requireObjectCoercible(argument));
752 };
753
754 // `IsArray` abstract operation
755 // https://tc39.es/ecma262/#sec-isarray
756 var isArray = Array.isArray || function isArray(arg) {
757 return classofRaw(arg) == 'Array';
758 };
759
760 var engineIsNode = classofRaw(global_1.process) == 'process';
761
762 var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
763
764 var process = global_1.process;
765 var versions = process && process.versions;
766 var v8 = versions && versions.v8;
767 var match, version;
768
769 if (v8) {
770 match = v8.split('.');
771 version = match[0] + match[1];
772 } else if (engineUserAgent) {
773 match = engineUserAgent.match(/Edge\/(\d+)/);
774 if (!match || match[1] >= 74) {
775 match = engineUserAgent.match(/Chrome\/(\d+)/);
776 if (match) version = match[1];
777 }
778 }
779
780 var engineV8Version = version && +version;
781
782 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
783 /* global Symbol -- required for testing */
784 return !Symbol.sham &&
785 // Chrome 38 Symbol has incorrect toString conversion
786 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
787 (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
788 });
789
790 var useSymbolAsUid = nativeSymbol
791 /* global Symbol -- safe */
792 && !Symbol.sham
793 && typeof Symbol.iterator == 'symbol';
794
795 var WellKnownSymbolsStore = shared('wks');
796 var Symbol$1 = global_1.Symbol;
797 var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
798
799 var wellKnownSymbol = function (name) {
800 if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
801 if (nativeSymbol && has$1(Symbol$1, name)) {
802 WellKnownSymbolsStore[name] = Symbol$1[name];
803 } else {
804 WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
805 }
806 } return WellKnownSymbolsStore[name];
807 };
808
809 var SPECIES$3 = wellKnownSymbol('species');
810
811 // `ArraySpeciesCreate` abstract operation
812 // https://tc39.es/ecma262/#sec-arrayspeciescreate
813 var arraySpeciesCreate = function (originalArray, length) {
814 var C;
815 if (isArray(originalArray)) {
816 C = originalArray.constructor;
817 // cross-realm fallback
818 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
819 else if (isObject(C)) {
820 C = C[SPECIES$3];
821 if (C === null) C = undefined;
822 }
823 } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
824 };
825
826 var push = [].push;
827
828 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
829 var createMethod$2 = function (TYPE) {
830 var IS_MAP = TYPE == 1;
831 var IS_FILTER = TYPE == 2;
832 var IS_SOME = TYPE == 3;
833 var IS_EVERY = TYPE == 4;
834 var IS_FIND_INDEX = TYPE == 6;
835 var IS_FILTER_OUT = TYPE == 7;
836 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
837 return function ($this, callbackfn, that, specificCreate) {
838 var O = toObject($this);
839 var self = indexedObject(O);
840 var boundFunction = functionBindContext(callbackfn, that, 3);
841 var length = toLength(self.length);
842 var index = 0;
843 var create = specificCreate || arraySpeciesCreate;
844 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
845 var value, result;
846 for (;length > index; index++) if (NO_HOLES || index in self) {
847 value = self[index];
848 result = boundFunction(value, index, O);
849 if (TYPE) {
850 if (IS_MAP) target[index] = result; // map
851 else if (result) switch (TYPE) {
852 case 3: return true; // some
853 case 5: return value; // find
854 case 6: return index; // findIndex
855 case 2: push.call(target, value); // filter
856 } else switch (TYPE) {
857 case 4: return false; // every
858 case 7: push.call(target, value); // filterOut
859 }
860 }
861 }
862 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
863 };
864 };
865
866 var arrayIteration = {
867 // `Array.prototype.forEach` method
868 // https://tc39.es/ecma262/#sec-array.prototype.foreach
869 forEach: createMethod$2(0),
870 // `Array.prototype.map` method
871 // https://tc39.es/ecma262/#sec-array.prototype.map
872 map: createMethod$2(1),
873 // `Array.prototype.filter` method
874 // https://tc39.es/ecma262/#sec-array.prototype.filter
875 filter: createMethod$2(2),
876 // `Array.prototype.some` method
877 // https://tc39.es/ecma262/#sec-array.prototype.some
878 some: createMethod$2(3),
879 // `Array.prototype.every` method
880 // https://tc39.es/ecma262/#sec-array.prototype.every
881 every: createMethod$2(4),
882 // `Array.prototype.find` method
883 // https://tc39.es/ecma262/#sec-array.prototype.find
884 find: createMethod$2(5),
885 // `Array.prototype.findIndex` method
886 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
887 findIndex: createMethod$2(6),
888 // `Array.prototype.filterOut` method
889 // https://github.com/tc39/proposal-array-filtering
890 filterOut: createMethod$2(7)
891 };
892
893 // `Object.keys` method
894 // https://tc39.es/ecma262/#sec-object.keys
895 var objectKeys = Object.keys || function keys(O) {
896 return objectKeysInternal(O, enumBugKeys);
897 };
898
899 // `Object.defineProperties` method
900 // https://tc39.es/ecma262/#sec-object.defineproperties
901 var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
902 anObject(O);
903 var keys = objectKeys(Properties);
904 var length = keys.length;
905 var index = 0;
906 var key;
907 while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
908 return O;
909 };
910
911 var html = getBuiltIn('document', 'documentElement');
912
913 var GT = '>';
914 var LT = '<';
915 var PROTOTYPE = 'prototype';
916 var SCRIPT = 'script';
917 var IE_PROTO = sharedKey('IE_PROTO');
918
919 var EmptyConstructor = function () { /* empty */ };
920
921 var scriptTag = function (content) {
922 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
923 };
924
925 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
926 var NullProtoObjectViaActiveX = function (activeXDocument) {
927 activeXDocument.write(scriptTag(''));
928 activeXDocument.close();
929 var temp = activeXDocument.parentWindow.Object;
930 activeXDocument = null; // avoid memory leak
931 return temp;
932 };
933
934 // Create object with fake `null` prototype: use iframe Object with cleared prototype
935 var NullProtoObjectViaIFrame = function () {
936 // Thrash, waste and sodomy: IE GC bug
937 var iframe = documentCreateElement('iframe');
938 var JS = 'java' + SCRIPT + ':';
939 var iframeDocument;
940 iframe.style.display = 'none';
941 html.appendChild(iframe);
942 // https://github.com/zloirock/core-js/issues/475
943 iframe.src = String(JS);
944 iframeDocument = iframe.contentWindow.document;
945 iframeDocument.open();
946 iframeDocument.write(scriptTag('document.F=Object'));
947 iframeDocument.close();
948 return iframeDocument.F;
949 };
950
951 // Check for document.domain and active x support
952 // No need to use active x approach when document.domain is not set
953 // see https://github.com/es-shims/es5-shim/issues/150
954 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
955 // avoid IE GC bug
956 var activeXDocument;
957 var NullProtoObject = function () {
958 try {
959 /* global ActiveXObject -- old IE */
960 activeXDocument = document.domain && new ActiveXObject('htmlfile');
961 } catch (error) { /* ignore */ }
962 NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
963 var length = enumBugKeys.length;
964 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
965 return NullProtoObject();
966 };
967
968 hiddenKeys$1[IE_PROTO] = true;
969
970 // `Object.create` method
971 // https://tc39.es/ecma262/#sec-object.create
972 var objectCreate = Object.create || function create(O, Properties) {
973 var result;
974 if (O !== null) {
975 EmptyConstructor[PROTOTYPE] = anObject(O);
976 result = new EmptyConstructor();
977 EmptyConstructor[PROTOTYPE] = null;
978 // add "__proto__" for Object.getPrototypeOf polyfill
979 result[IE_PROTO] = O;
980 } else result = NullProtoObject();
981 return Properties === undefined ? result : objectDefineProperties(result, Properties);
982 };
983
984 var UNSCOPABLES = wellKnownSymbol('unscopables');
985 var ArrayPrototype = Array.prototype;
986
987 // Array.prototype[@@unscopables]
988 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
989 if (ArrayPrototype[UNSCOPABLES] == undefined) {
990 objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
991 configurable: true,
992 value: objectCreate(null)
993 });
994 }
995
996 // add a key to Array.prototype[@@unscopables]
997 var addToUnscopables = function (key) {
998 ArrayPrototype[UNSCOPABLES][key] = true;
999 };
1000
1001 var $find = arrayIteration.find;
1002
1003
1004 var FIND = 'find';
1005 var SKIPS_HOLES = true;
1006
1007 // Shouldn't skip holes
1008 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1009
1010 // `Array.prototype.find` method
1011 // https://tc39.es/ecma262/#sec-array.prototype.find
1012 _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1013 find: function find(callbackfn /* , that = undefined */) {
1014 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1015 }
1016 });
1017
1018 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1019 addToUnscopables(FIND);
1020
1021 var SPECIES$2 = wellKnownSymbol('species');
1022
1023 var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1024 // We can't use this feature detection in V8 since it causes
1025 // deoptimization and serious performance degradation
1026 // https://github.com/zloirock/core-js/issues/677
1027 return engineV8Version >= 51 || !fails(function () {
1028 var array = [];
1029 var constructor = array.constructor = {};
1030 constructor[SPECIES$2] = function () {
1031 return { foo: 1 };
1032 };
1033 return array[METHOD_NAME](Boolean).foo !== 1;
1034 });
1035 };
1036
1037 var $filter = arrayIteration.filter;
1038
1039
1040 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
1041
1042 // `Array.prototype.filter` method
1043 // https://tc39.es/ecma262/#sec-array.prototype.filter
1044 // with adding support of @@species
1045 _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1046 filter: function filter(callbackfn /* , thisArg */) {
1047 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1048 }
1049 });
1050
1051 var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });
1052
1053 // `Object.keys` method
1054 // https://tc39.es/ecma262/#sec-object.keys
1055 _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
1056 keys: function keys(it) {
1057 return objectKeys(toObject(it));
1058 }
1059 });
1060
1061 var createProperty = function (object, key, value) {
1062 var propertyKey = toPrimitive(key);
1063 if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1064 else object[propertyKey] = value;
1065 };
1066
1067 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1068 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1069 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1070
1071 // We can't use this feature detection in V8 since it causes
1072 // deoptimization and serious performance degradation
1073 // https://github.com/zloirock/core-js/issues/679
1074 var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1075 var array = [];
1076 array[IS_CONCAT_SPREADABLE] = false;
1077 return array.concat()[0] !== array;
1078 });
1079
1080 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1081
1082 var isConcatSpreadable = function (O) {
1083 if (!isObject(O)) return false;
1084 var spreadable = O[IS_CONCAT_SPREADABLE];
1085 return spreadable !== undefined ? !!spreadable : isArray(O);
1086 };
1087
1088 var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1089
1090 // `Array.prototype.concat` method
1091 // https://tc39.es/ecma262/#sec-array.prototype.concat
1092 // with adding support of @@isConcatSpreadable and @@species
1093 _export({ target: 'Array', proto: true, forced: FORCED$2 }, {
1094 // eslint-disable-next-line no-unused-vars -- required for `.length`
1095 concat: function concat(arg) {
1096 var O = toObject(this);
1097 var A = arraySpeciesCreate(O, 0);
1098 var n = 0;
1099 var i, k, length, len, E;
1100 for (i = -1, length = arguments.length; i < length; i++) {
1101 E = i === -1 ? O : arguments[i];
1102 if (isConcatSpreadable(E)) {
1103 len = toLength(E.length);
1104 if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1105 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1106 } else {
1107 if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1108 createProperty(A, n++, E);
1109 }
1110 }
1111 A.length = n;
1112 return A;
1113 }
1114 });
1115
1116 var $includes = arrayIncludes.includes;
1117
1118
1119 // `Array.prototype.includes` method
1120 // https://tc39.es/ecma262/#sec-array.prototype.includes
1121 _export({ target: 'Array', proto: true }, {
1122 includes: function includes(el /* , fromIndex = 0 */) {
1123 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1124 }
1125 });
1126
1127 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1128 addToUnscopables('includes');
1129
1130 var MATCH$1 = wellKnownSymbol('match');
1131
1132 // `IsRegExp` abstract operation
1133 // https://tc39.es/ecma262/#sec-isregexp
1134 var isRegexp = function (it) {
1135 var isRegExp;
1136 return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
1137 };
1138
1139 var notARegexp = function (it) {
1140 if (isRegexp(it)) {
1141 throw TypeError("The method doesn't accept regular expressions");
1142 } return it;
1143 };
1144
1145 var MATCH = wellKnownSymbol('match');
1146
1147 var correctIsRegexpLogic = function (METHOD_NAME) {
1148 var regexp = /./;
1149 try {
1150 '/./'[METHOD_NAME](regexp);
1151 } catch (error1) {
1152 try {
1153 regexp[MATCH] = false;
1154 return '/./'[METHOD_NAME](regexp);
1155 } catch (error2) { /* empty */ }
1156 } return false;
1157 };
1158
1159 // `String.prototype.includes` method
1160 // https://tc39.es/ecma262/#sec-string.prototype.includes
1161 _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
1162 includes: function includes(searchString /* , position = 0 */) {
1163 return !!~String(requireObjectCoercible(this))
1164 .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
1165 }
1166 });
1167
1168 // iterable DOM collections
1169 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1170 var domIterables = {
1171 CSSRuleList: 0,
1172 CSSStyleDeclaration: 0,
1173 CSSValueList: 0,
1174 ClientRectList: 0,
1175 DOMRectList: 0,
1176 DOMStringList: 0,
1177 DOMTokenList: 1,
1178 DataTransferItemList: 0,
1179 FileList: 0,
1180 HTMLAllCollection: 0,
1181 HTMLCollection: 0,
1182 HTMLFormElement: 0,
1183 HTMLSelectElement: 0,
1184 MediaList: 0,
1185 MimeTypeArray: 0,
1186 NamedNodeMap: 0,
1187 NodeList: 1,
1188 PaintRequestList: 0,
1189 Plugin: 0,
1190 PluginArray: 0,
1191 SVGLengthList: 0,
1192 SVGNumberList: 0,
1193 SVGPathSegList: 0,
1194 SVGPointList: 0,
1195 SVGStringList: 0,
1196 SVGTransformList: 0,
1197 SourceBufferList: 0,
1198 StyleSheetList: 0,
1199 TextTrackCueList: 0,
1200 TextTrackList: 0,
1201 TouchList: 0
1202 };
1203
1204 var arrayMethodIsStrict = function (METHOD_NAME, argument) {
1205 var method = [][METHOD_NAME];
1206 return !!method && fails(function () {
1207 // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
1208 method.call(null, argument || function () { throw 1; }, 1);
1209 });
1210 };
1211
1212 var $forEach = arrayIteration.forEach;
1213
1214
1215 var STRICT_METHOD$3 = arrayMethodIsStrict('forEach');
1216
1217 // `Array.prototype.forEach` method implementation
1218 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1219 var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) {
1220 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1221 } : [].forEach;
1222
1223 for (var COLLECTION_NAME in domIterables) {
1224 var Collection = global_1[COLLECTION_NAME];
1225 var CollectionPrototype = Collection && Collection.prototype;
1226 // some Chrome versions have non-configurable methods on DOMTokenList
1227 if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
1228 createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
1229 } catch (error) {
1230 CollectionPrototype.forEach = arrayForEach;
1231 }
1232 }
1233
1234 var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1235 var test$1 = {};
1236
1237 test$1[TO_STRING_TAG$1] = 'z';
1238
1239 var toStringTagSupport = String(test$1) === '[object z]';
1240
1241 var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1242 // ES3 wrong here
1243 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1244
1245 // fallback for IE11 Script Access Denied error
1246 var tryGet = function (it, key) {
1247 try {
1248 return it[key];
1249 } catch (error) { /* empty */ }
1250 };
1251
1252 // getting tag from ES6+ `Object.prototype.toString`
1253 var classof = toStringTagSupport ? classofRaw : function (it) {
1254 var O, tag, result;
1255 return it === undefined ? 'Undefined' : it === null ? 'Null'
1256 // @@toStringTag case
1257 : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
1258 // builtinTag case
1259 : CORRECT_ARGUMENTS ? classofRaw(O)
1260 // ES3 arguments fallback
1261 : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1262 };
1263
1264 // `Object.prototype.toString` method implementation
1265 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1266 var objectToString = toStringTagSupport ? {}.toString : function toString() {
1267 return '[object ' + classof(this) + ']';
1268 };
1269
1270 // `Object.prototype.toString` method
1271 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1272 if (!toStringTagSupport) {
1273 redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1274 }
1275
1276 // `RegExp.prototype.flags` getter implementation
1277 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1278 var regexpFlags = function () {
1279 var that = anObject(this);
1280 var result = '';
1281 if (that.global) result += 'g';
1282 if (that.ignoreCase) result += 'i';
1283 if (that.multiline) result += 'm';
1284 if (that.dotAll) result += 's';
1285 if (that.unicode) result += 'u';
1286 if (that.sticky) result += 'y';
1287 return result;
1288 };
1289
1290 var TO_STRING = 'toString';
1291 var RegExpPrototype = RegExp.prototype;
1292 var nativeToString = RegExpPrototype[TO_STRING];
1293
1294 var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1295 // FF44- RegExp#toString has a wrong name
1296 var INCORRECT_NAME = nativeToString.name != TO_STRING;
1297
1298 // `RegExp.prototype.toString` method
1299 // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1300 if (NOT_GENERIC || INCORRECT_NAME) {
1301 redefine(RegExp.prototype, TO_STRING, function toString() {
1302 var R = anObject(this);
1303 var p = String(R.source);
1304 var rf = R.flags;
1305 var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
1306 return '/' + p + '/' + f;
1307 }, { unsafe: true });
1308 }
1309
1310 var $indexOf = arrayIncludes.indexOf;
1311
1312
1313 var nativeIndexOf = [].indexOf;
1314
1315 var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
1316 var STRICT_METHOD$2 = arrayMethodIsStrict('indexOf');
1317
1318 // `Array.prototype.indexOf` method
1319 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1320 _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$2 }, {
1321 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1322 return NEGATIVE_ZERO
1323 // convert -0 to +0
1324 ? nativeIndexOf.apply(this, arguments) || 0
1325 : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
1326 }
1327 });
1328
1329 // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1330 // so we use an intermediate function.
1331 function RE(s, f) {
1332 return RegExp(s, f);
1333 }
1334
1335 var UNSUPPORTED_Y$1 = fails(function () {
1336 // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1337 var re = RE('a', 'y');
1338 re.lastIndex = 2;
1339 return re.exec('abcd') != null;
1340 });
1341
1342 var BROKEN_CARET = fails(function () {
1343 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1344 var re = RE('^r', 'gy');
1345 re.lastIndex = 2;
1346 return re.exec('str') != null;
1347 });
1348
1349 var regexpStickyHelpers = {
1350 UNSUPPORTED_Y: UNSUPPORTED_Y$1,
1351 BROKEN_CARET: BROKEN_CARET
1352 };
1353
1354 var nativeExec = RegExp.prototype.exec;
1355 // This always refers to the native implementation, because the
1356 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1357 // which loads this file before patching the method.
1358 var nativeReplace = String.prototype.replace;
1359
1360 var patchedExec = nativeExec;
1361
1362 var UPDATES_LAST_INDEX_WRONG = (function () {
1363 var re1 = /a/;
1364 var re2 = /b*/g;
1365 nativeExec.call(re1, 'a');
1366 nativeExec.call(re2, 'a');
1367 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1368 })();
1369
1370 var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1371
1372 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1373 // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
1374 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1375
1376 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
1377
1378 if (PATCH) {
1379 patchedExec = function exec(str) {
1380 var re = this;
1381 var lastIndex, reCopy, match, i;
1382 var sticky = UNSUPPORTED_Y && re.sticky;
1383 var flags = regexpFlags.call(re);
1384 var source = re.source;
1385 var charsAdded = 0;
1386 var strCopy = str;
1387
1388 if (sticky) {
1389 flags = flags.replace('y', '');
1390 if (flags.indexOf('g') === -1) {
1391 flags += 'g';
1392 }
1393
1394 strCopy = String(str).slice(re.lastIndex);
1395 // Support anchored sticky behavior.
1396 if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1397 source = '(?: ' + source + ')';
1398 strCopy = ' ' + strCopy;
1399 charsAdded++;
1400 }
1401 // ^(? + rx + ) is needed, in combination with some str slicing, to
1402 // simulate the 'y' flag.
1403 reCopy = new RegExp('^(?:' + source + ')', flags);
1404 }
1405
1406 if (NPCG_INCLUDED) {
1407 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1408 }
1409 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1410
1411 match = nativeExec.call(sticky ? reCopy : re, strCopy);
1412
1413 if (sticky) {
1414 if (match) {
1415 match.input = match.input.slice(charsAdded);
1416 match[0] = match[0].slice(charsAdded);
1417 match.index = re.lastIndex;
1418 re.lastIndex += match[0].length;
1419 } else re.lastIndex = 0;
1420 } else if (UPDATES_LAST_INDEX_WRONG && match) {
1421 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1422 }
1423 if (NPCG_INCLUDED && match && match.length > 1) {
1424 // Fix browsers whose `exec` methods don't consistently return `undefined`
1425 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1426 nativeReplace.call(match[0], reCopy, function () {
1427 for (i = 1; i < arguments.length - 2; i++) {
1428 if (arguments[i] === undefined) match[i] = undefined;
1429 }
1430 });
1431 }
1432
1433 return match;
1434 };
1435 }
1436
1437 var regexpExec = patchedExec;
1438
1439 // `RegExp.prototype.exec` method
1440 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1441 _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1442 exec: regexpExec
1443 });
1444
1445 // a string of all valid unicode whitespaces
1446 var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1447 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1448
1449 var whitespace = '[' + whitespaces + ']';
1450 var ltrim = RegExp('^' + whitespace + whitespace + '*');
1451 var rtrim = RegExp(whitespace + whitespace + '*$');
1452
1453 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1454 var createMethod$1 = function (TYPE) {
1455 return function ($this) {
1456 var string = String(requireObjectCoercible($this));
1457 if (TYPE & 1) string = string.replace(ltrim, '');
1458 if (TYPE & 2) string = string.replace(rtrim, '');
1459 return string;
1460 };
1461 };
1462
1463 var stringTrim = {
1464 // `String.prototype.{ trimLeft, trimStart }` methods
1465 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1466 start: createMethod$1(1),
1467 // `String.prototype.{ trimRight, trimEnd }` methods
1468 // https://tc39.es/ecma262/#sec-string.prototype.trimend
1469 end: createMethod$1(2),
1470 // `String.prototype.trim` method
1471 // https://tc39.es/ecma262/#sec-string.prototype.trim
1472 trim: createMethod$1(3)
1473 };
1474
1475 var trim = stringTrim.trim;
1476
1477
1478 var $parseInt = global_1.parseInt;
1479 var hex = /^[+-]?0[Xx]/;
1480 var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
1481
1482 // `parseInt` method
1483 // https://tc39.es/ecma262/#sec-parseint-string-radix
1484 var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
1485 var S = trim(String(string));
1486 return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1487 } : $parseInt;
1488
1489 // `parseInt` method
1490 // https://tc39.es/ecma262/#sec-parseint-string-radix
1491 _export({ global: true, forced: parseInt != numberParseInt }, {
1492 parseInt: numberParseInt
1493 });
1494
1495 var non = '\u200B\u0085\u180E';
1496
1497 // check that a method works with the correct list
1498 // of whitespaces and has a correct name
1499 var stringTrimForced = function (METHOD_NAME) {
1500 return fails(function () {
1501 return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
1502 });
1503 };
1504
1505 var $trim = stringTrim.trim;
1506
1507
1508 // `String.prototype.trim` method
1509 // https://tc39.es/ecma262/#sec-string.prototype.trim
1510 _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
1511 trim: function trim() {
1512 return $trim(this);
1513 }
1514 });
1515
1516 var nativeAssign = Object.assign;
1517 var defineProperty = Object.defineProperty;
1518
1519 // `Object.assign` method
1520 // https://tc39.es/ecma262/#sec-object.assign
1521 var objectAssign = !nativeAssign || fails(function () {
1522 // should have correct order of operations (Edge bug)
1523 if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
1524 enumerable: true,
1525 get: function () {
1526 defineProperty(this, 'b', {
1527 value: 3,
1528 enumerable: false
1529 });
1530 }
1531 }), { b: 2 })).b !== 1) return true;
1532 // should work with symbols and should have deterministic property order (V8 bug)
1533 var A = {};
1534 var B = {};
1535 /* global Symbol -- required for testing */
1536 var symbol = Symbol();
1537 var alphabet = 'abcdefghijklmnopqrst';
1538 A[symbol] = 7;
1539 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1540 return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
1541 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1542 var T = toObject(target);
1543 var argumentsLength = arguments.length;
1544 var index = 1;
1545 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1546 var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1547 while (argumentsLength > index) {
1548 var S = indexedObject(arguments[index++]);
1549 var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
1550 var length = keys.length;
1551 var j = 0;
1552 var key;
1553 while (length > j) {
1554 key = keys[j++];
1555 if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
1556 }
1557 } return T;
1558 } : nativeAssign;
1559
1560 // `Object.assign` method
1561 // https://tc39.es/ecma262/#sec-object.assign
1562 _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1563 assign: objectAssign
1564 });
1565
1566 var test = [];
1567 var nativeSort = test.sort;
1568
1569 // IE8-
1570 var FAILS_ON_UNDEFINED = fails(function () {
1571 test.sort(undefined);
1572 });
1573 // V8 bug
1574 var FAILS_ON_NULL = fails(function () {
1575 test.sort(null);
1576 });
1577 // Old WebKit
1578 var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
1579
1580 var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1;
1581
1582 // `Array.prototype.sort` method
1583 // https://tc39.es/ecma262/#sec-array.prototype.sort
1584 _export({ target: 'Array', proto: true, forced: FORCED }, {
1585 sort: function sort(comparefn) {
1586 return comparefn === undefined
1587 ? nativeSort.call(toObject(this))
1588 : nativeSort.call(toObject(this), aFunction(comparefn));
1589 }
1590 });
1591
1592 // TODO: Remove from `core-js@4` since it's moved to entry points
1593
1594
1595
1596
1597
1598
1599
1600 var SPECIES$1 = wellKnownSymbol('species');
1601
1602 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1603 // #replace needs built-in support for named groups.
1604 // #match works fine because it just return the exec results, even if it has
1605 // a "grops" property.
1606 var re = /./;
1607 re.exec = function () {
1608 var result = [];
1609 result.groups = { a: '7' };
1610 return result;
1611 };
1612 return ''.replace(re, '$<a>') !== '7';
1613 });
1614
1615 // IE <= 11 replaces $0 with the whole match, as if it was $&
1616 // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1617 var REPLACE_KEEPS_$0 = (function () {
1618 return 'a'.replace(/./, '$0') === '$0';
1619 })();
1620
1621 var REPLACE = wellKnownSymbol('replace');
1622 // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1623 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1624 if (/./[REPLACE]) {
1625 return /./[REPLACE]('a', '$0') === '';
1626 }
1627 return false;
1628 })();
1629
1630 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1631 // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1632 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1633 // eslint-disable-next-line regexp/no-empty-group -- required for testing
1634 var re = /(?:)/;
1635 var originalExec = re.exec;
1636 re.exec = function () { return originalExec.apply(this, arguments); };
1637 var result = 'ab'.split(re);
1638 return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1639 });
1640
1641 var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1642 var SYMBOL = wellKnownSymbol(KEY);
1643
1644 var DELEGATES_TO_SYMBOL = !fails(function () {
1645 // String methods call symbol-named RegEp methods
1646 var O = {};
1647 O[SYMBOL] = function () { return 7; };
1648 return ''[KEY](O) != 7;
1649 });
1650
1651 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1652 // Symbol-named RegExp methods call .exec
1653 var execCalled = false;
1654 var re = /a/;
1655
1656 if (KEY === 'split') {
1657 // We can't use real regex here since it causes deoptimization
1658 // and serious performance degradation in V8
1659 // https://github.com/zloirock/core-js/issues/306
1660 re = {};
1661 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1662 // a new one. We need to return the patched regex when creating the new one.
1663 re.constructor = {};
1664 re.constructor[SPECIES$1] = function () { return re; };
1665 re.flags = '';
1666 re[SYMBOL] = /./[SYMBOL];
1667 }
1668
1669 re.exec = function () { execCalled = true; return null; };
1670
1671 re[SYMBOL]('');
1672 return !execCalled;
1673 });
1674
1675 if (
1676 !DELEGATES_TO_SYMBOL ||
1677 !DELEGATES_TO_EXEC ||
1678 (KEY === 'replace' && !(
1679 REPLACE_SUPPORTS_NAMED_GROUPS &&
1680 REPLACE_KEEPS_$0 &&
1681 !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1682 )) ||
1683 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1684 ) {
1685 var nativeRegExpMethod = /./[SYMBOL];
1686 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1687 if (regexp.exec === regexpExec) {
1688 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1689 // The native String method already delegates to @@method (this
1690 // polyfilled function), leasing to infinite recursion.
1691 // We avoid it by directly calling the native @@method method.
1692 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1693 }
1694 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1695 }
1696 return { done: false };
1697 }, {
1698 REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1699 REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1700 });
1701 var stringMethod = methods[0];
1702 var regexMethod = methods[1];
1703
1704 redefine(String.prototype, KEY, stringMethod);
1705 redefine(RegExp.prototype, SYMBOL, length == 2
1706 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1707 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1708 ? function (string, arg) { return regexMethod.call(string, this, arg); }
1709 // 21.2.5.6 RegExp.prototype[@@match](string)
1710 // 21.2.5.9 RegExp.prototype[@@search](string)
1711 : function (string) { return regexMethod.call(string, this); }
1712 );
1713 }
1714
1715 if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1716 };
1717
1718 // `String.prototype.{ codePointAt, at }` methods implementation
1719 var createMethod = function (CONVERT_TO_STRING) {
1720 return function ($this, pos) {
1721 var S = String(requireObjectCoercible($this));
1722 var position = toInteger(pos);
1723 var size = S.length;
1724 var first, second;
1725 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1726 first = S.charCodeAt(position);
1727 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1728 || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1729 ? CONVERT_TO_STRING ? S.charAt(position) : first
1730 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1731 };
1732 };
1733
1734 var stringMultibyte = {
1735 // `String.prototype.codePointAt` method
1736 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1737 codeAt: createMethod(false),
1738 // `String.prototype.at` method
1739 // https://github.com/mathiasbynens/String.prototype.at
1740 charAt: createMethod(true)
1741 };
1742
1743 var charAt = stringMultibyte.charAt;
1744
1745 // `AdvanceStringIndex` abstract operation
1746 // https://tc39.es/ecma262/#sec-advancestringindex
1747 var advanceStringIndex = function (S, index, unicode) {
1748 return index + (unicode ? charAt(S, index).length : 1);
1749 };
1750
1751 var floor = Math.floor;
1752 var replace = ''.replace;
1753 var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1754 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1755
1756 // https://tc39.es/ecma262/#sec-getsubstitution
1757 var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1758 var tailPos = position + matched.length;
1759 var m = captures.length;
1760 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1761 if (namedCaptures !== undefined) {
1762 namedCaptures = toObject(namedCaptures);
1763 symbols = SUBSTITUTION_SYMBOLS;
1764 }
1765 return replace.call(replacement, symbols, function (match, ch) {
1766 var capture;
1767 switch (ch.charAt(0)) {
1768 case '$': return '$';
1769 case '&': return matched;
1770 case '`': return str.slice(0, position);
1771 case "'": return str.slice(tailPos);
1772 case '<':
1773 capture = namedCaptures[ch.slice(1, -1)];
1774 break;
1775 default: // \d\d?
1776 var n = +ch;
1777 if (n === 0) return match;
1778 if (n > m) {
1779 var f = floor(n / 10);
1780 if (f === 0) return match;
1781 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1782 return match;
1783 }
1784 capture = captures[n - 1];
1785 }
1786 return capture === undefined ? '' : capture;
1787 });
1788 };
1789
1790 // `RegExpExec` abstract operation
1791 // https://tc39.es/ecma262/#sec-regexpexec
1792 var regexpExecAbstract = function (R, S) {
1793 var exec = R.exec;
1794 if (typeof exec === 'function') {
1795 var result = exec.call(R, S);
1796 if (typeof result !== 'object') {
1797 throw TypeError('RegExp exec method returned something other than an Object or null');
1798 }
1799 return result;
1800 }
1801
1802 if (classofRaw(R) !== 'RegExp') {
1803 throw TypeError('RegExp#exec called on incompatible receiver');
1804 }
1805
1806 return regexpExec.call(R, S);
1807 };
1808
1809 var max = Math.max;
1810 var min$1 = Math.min;
1811
1812 var maybeToString = function (it) {
1813 return it === undefined ? it : String(it);
1814 };
1815
1816 // @@replace logic
1817 fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1818 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1819 var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1820 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1821
1822 return [
1823 // `String.prototype.replace` method
1824 // https://tc39.es/ecma262/#sec-string.prototype.replace
1825 function replace(searchValue, replaceValue) {
1826 var O = requireObjectCoercible(this);
1827 var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1828 return replacer !== undefined
1829 ? replacer.call(searchValue, O, replaceValue)
1830 : nativeReplace.call(String(O), searchValue, replaceValue);
1831 },
1832 // `RegExp.prototype[@@replace]` method
1833 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1834 function (regexp, replaceValue) {
1835 if (
1836 (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1837 (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1838 ) {
1839 var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1840 if (res.done) return res.value;
1841 }
1842
1843 var rx = anObject(regexp);
1844 var S = String(this);
1845
1846 var functionalReplace = typeof replaceValue === 'function';
1847 if (!functionalReplace) replaceValue = String(replaceValue);
1848
1849 var global = rx.global;
1850 if (global) {
1851 var fullUnicode = rx.unicode;
1852 rx.lastIndex = 0;
1853 }
1854 var results = [];
1855 while (true) {
1856 var result = regexpExecAbstract(rx, S);
1857 if (result === null) break;
1858
1859 results.push(result);
1860 if (!global) break;
1861
1862 var matchStr = String(result[0]);
1863 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1864 }
1865
1866 var accumulatedResult = '';
1867 var nextSourcePosition = 0;
1868 for (var i = 0; i < results.length; i++) {
1869 result = results[i];
1870
1871 var matched = String(result[0]);
1872 var position = max(min$1(toInteger(result.index), S.length), 0);
1873 var captures = [];
1874 // NOTE: This is equivalent to
1875 // captures = result.slice(1).map(maybeToString)
1876 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1877 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1878 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1879 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1880 var namedCaptures = result.groups;
1881 if (functionalReplace) {
1882 var replacerArgs = [matched].concat(captures, position, S);
1883 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1884 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1885 } else {
1886 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1887 }
1888 if (position >= nextSourcePosition) {
1889 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1890 nextSourcePosition = position + matched.length;
1891 }
1892 }
1893 return accumulatedResult + S.slice(nextSourcePosition);
1894 }
1895 ];
1896 });
1897
1898 // @@match logic
1899 fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
1900 return [
1901 // `String.prototype.match` method
1902 // https://tc39.es/ecma262/#sec-string.prototype.match
1903 function match(regexp) {
1904 var O = requireObjectCoercible(this);
1905 var matcher = regexp == undefined ? undefined : regexp[MATCH];
1906 return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
1907 },
1908 // `RegExp.prototype[@@match]` method
1909 // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1910 function (regexp) {
1911 var res = maybeCallNative(nativeMatch, regexp, this);
1912 if (res.done) return res.value;
1913
1914 var rx = anObject(regexp);
1915 var S = String(this);
1916
1917 if (!rx.global) return regexpExecAbstract(rx, S);
1918
1919 var fullUnicode = rx.unicode;
1920 rx.lastIndex = 0;
1921 var A = [];
1922 var n = 0;
1923 var result;
1924 while ((result = regexpExecAbstract(rx, S)) !== null) {
1925 var matchStr = String(result[0]);
1926 A[n] = matchStr;
1927 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1928 n++;
1929 }
1930 return n === 0 ? null : A;
1931 }
1932 ];
1933 });
1934
1935 var SPECIES = wellKnownSymbol('species');
1936
1937 // `SpeciesConstructor` abstract operation
1938 // https://tc39.es/ecma262/#sec-speciesconstructor
1939 var speciesConstructor = function (O, defaultConstructor) {
1940 var C = anObject(O).constructor;
1941 var S;
1942 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
1943 };
1944
1945 var arrayPush = [].push;
1946 var min = Math.min;
1947 var MAX_UINT32 = 0xFFFFFFFF;
1948
1949 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1950 var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
1951
1952 // @@split logic
1953 fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
1954 var internalSplit;
1955 if (
1956 'abbc'.split(/(b)*/)[1] == 'c' ||
1957 // eslint-disable-next-line regexp/no-empty-group -- required for testing
1958 'test'.split(/(?:)/, -1).length != 4 ||
1959 'ab'.split(/(?:ab)*/).length != 2 ||
1960 '.'.split(/(.?)(.?)/).length != 4 ||
1961 // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
1962 '.'.split(/()()/).length > 1 ||
1963 ''.split(/.?/).length
1964 ) {
1965 // based on es5-shim implementation, need to rework it
1966 internalSplit = function (separator, limit) {
1967 var string = String(requireObjectCoercible(this));
1968 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1969 if (lim === 0) return [];
1970 if (separator === undefined) return [string];
1971 // If `separator` is not a regex, use native split
1972 if (!isRegexp(separator)) {
1973 return nativeSplit.call(string, separator, lim);
1974 }
1975 var output = [];
1976 var flags = (separator.ignoreCase ? 'i' : '') +
1977 (separator.multiline ? 'm' : '') +
1978 (separator.unicode ? 'u' : '') +
1979 (separator.sticky ? 'y' : '');
1980 var lastLastIndex = 0;
1981 // Make `global` and avoid `lastIndex` issues by working with a copy
1982 var separatorCopy = new RegExp(separator.source, flags + 'g');
1983 var match, lastIndex, lastLength;
1984 while (match = regexpExec.call(separatorCopy, string)) {
1985 lastIndex = separatorCopy.lastIndex;
1986 if (lastIndex > lastLastIndex) {
1987 output.push(string.slice(lastLastIndex, match.index));
1988 if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
1989 lastLength = match[0].length;
1990 lastLastIndex = lastIndex;
1991 if (output.length >= lim) break;
1992 }
1993 if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
1994 }
1995 if (lastLastIndex === string.length) {
1996 if (lastLength || !separatorCopy.test('')) output.push('');
1997 } else output.push(string.slice(lastLastIndex));
1998 return output.length > lim ? output.slice(0, lim) : output;
1999 };
2000 // Chakra, V8
2001 } else if ('0'.split(undefined, 0).length) {
2002 internalSplit = function (separator, limit) {
2003 return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
2004 };
2005 } else internalSplit = nativeSplit;
2006
2007 return [
2008 // `String.prototype.split` method
2009 // https://tc39.es/ecma262/#sec-string.prototype.split
2010 function split(separator, limit) {
2011 var O = requireObjectCoercible(this);
2012 var splitter = separator == undefined ? undefined : separator[SPLIT];
2013 return splitter !== undefined
2014 ? splitter.call(separator, O, limit)
2015 : internalSplit.call(String(O), separator, limit);
2016 },
2017 // `RegExp.prototype[@@split]` method
2018 // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
2019 //
2020 // NOTE: This cannot be properly polyfilled in engines that don't support
2021 // the 'y' flag.
2022 function (regexp, limit) {
2023 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
2024 if (res.done) return res.value;
2025
2026 var rx = anObject(regexp);
2027 var S = String(this);
2028 var C = speciesConstructor(rx, RegExp);
2029
2030 var unicodeMatching = rx.unicode;
2031 var flags = (rx.ignoreCase ? 'i' : '') +
2032 (rx.multiline ? 'm' : '') +
2033 (rx.unicode ? 'u' : '') +
2034 (SUPPORTS_Y ? 'y' : 'g');
2035
2036 // ^(? + rx + ) is needed, in combination with some S slicing, to
2037 // simulate the 'y' flag.
2038 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
2039 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2040 if (lim === 0) return [];
2041 if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
2042 var p = 0;
2043 var q = 0;
2044 var A = [];
2045 while (q < S.length) {
2046 splitter.lastIndex = SUPPORTS_Y ? q : 0;
2047 var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
2048 var e;
2049 if (
2050 z === null ||
2051 (e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
2052 ) {
2053 q = advanceStringIndex(S, q, unicodeMatching);
2054 } else {
2055 A.push(S.slice(p, q));
2056 if (A.length === lim) return A;
2057 for (var i = 1; i <= z.length - 1; i++) {
2058 A.push(z[i]);
2059 if (A.length === lim) return A;
2060 }
2061 q = p = e;
2062 }
2063 }
2064 A.push(S.slice(p));
2065 return A;
2066 }
2067 ];
2068 }, !SUPPORTS_Y);
2069
2070 var nativeJoin = [].join;
2071
2072 var ES3_STRINGS = indexedObject != Object;
2073 var STRICT_METHOD = arrayMethodIsStrict('join', ',');
2074
2075 // `Array.prototype.join` method
2076 // https://tc39.es/ecma262/#sec-array.prototype.join
2077 _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
2078 join: function join(separator) {
2079 return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
2080 }
2081 });
2082
2083 var Utils$1 = $__default['default'].fn.bootstrapTable.utils;
2084 var searchControls = 'select, input:not([type="checkbox"]):not([type="radio"])';
2085 function getOptionsFromSelectControl(selectControl) {
2086 return selectControl.get(selectControl.length - 1).options;
2087 }
2088 function getControlContainer(that) {
2089 if (that.options.filterControlContainer) {
2090 return $__default['default']("".concat(that.options.filterControlContainer));
2091 }
2092
2093 return that.$header;
2094 }
2095 function getSearchControls(that) {
2096 return getControlContainer(that).find(searchControls);
2097 }
2098 function hideUnusedSelectOptions(selectControl, uniqueValues) {
2099 var options = getOptionsFromSelectControl(selectControl);
2100
2101 for (var i = 0; i < options.length; i++) {
2102 if (options[i].value !== '') {
2103 if (!uniqueValues.hasOwnProperty(options[i].value)) {
2104 selectControl.find(Utils$1.sprintf('option[value=\'%s\']', options[i].value)).hide();
2105 } else {
2106 selectControl.find(Utils$1.sprintf('option[value=\'%s\']', options[i].value)).show();
2107 }
2108 }
2109 }
2110 }
2111 function existOptionInSelectControl(selectControl, value) {
2112 var options = getOptionsFromSelectControl(selectControl);
2113
2114 for (var i = 0; i < options.length; i++) {
2115 if (options[i].value === Utils$1.unescapeHTML(value.toString())) {
2116 // The value is not valid to add
2117 return true;
2118 }
2119 } // If we get here, the value is valid to add
2120
2121
2122 return false;
2123 }
2124 function addOptionToSelectControl(selectControl, _value, text, selected) {
2125 var value = _value === undefined || _value === null ? '' : _value.toString().trim();
2126 var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
2127
2128 if (!existOptionInSelectControl(selectControl, value)) {
2129 var option = $__default['default']("<option value=\"".concat(value, "\">").concat(text, "</option>"));
2130
2131 if (value === selected) {
2132 option.attr('selected', true);
2133 }
2134
2135 $selectControl.append(option);
2136 }
2137 }
2138 function sortSelectControl(selectControl, orderBy) {
2139 var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
2140 var $opts = $selectControl.find('option:gt(0)');
2141
2142 if (orderBy !== 'server') {
2143 $opts.sort(function (a, b) {
2144 return Utils$1.sort(a.textContent, b.textContent, orderBy === 'desc' ? -1 : 1);
2145 });
2146 }
2147
2148 $selectControl.find('option:gt(0)').remove();
2149 $selectControl.append($opts);
2150 }
2151 function fixHeaderCSS(_ref) {
2152 var $tableHeader = _ref.$tableHeader;
2153 $tableHeader.css('height', '89px');
2154 }
2155 function getElementClass($element) {
2156 return $element.attr('class').replace('form-control', '').replace('focus-temp', '').replace('search-input', '').trim();
2157 }
2158 function getCursorPosition(el) {
2159 if (Utils$1.isIEBrowser()) {
2160 if ($__default['default'](el).is('input[type=text]')) {
2161 var pos = 0;
2162
2163 if ('selectionStart' in el) {
2164 pos = el.selectionStart;
2165 } else if ('selection' in document) {
2166 el.focus();
2167 var Sel = document.selection.createRange();
2168 var SelLength = document.selection.createRange().text.length;
2169 Sel.moveStart('character', -el.value.length);
2170 pos = Sel.text.length - SelLength;
2171 }
2172
2173 return pos;
2174 }
2175
2176 return -1;
2177 }
2178
2179 return -1;
2180 }
2181 function setCursorPosition(el) {
2182 $__default['default'](el).val(el.value);
2183 }
2184 function copyValues(that) {
2185 var searchControls = getSearchControls(that);
2186 that.options.valuesFilterControl = [];
2187 searchControls.each(function () {
2188 var $field = $__default['default'](this);
2189
2190 if (that.options.height) {
2191 var fieldClass = getElementClass($field);
2192 $field = $__default['default'](".fixed-table-header .".concat(fieldClass));
2193 }
2194
2195 that.options.valuesFilterControl.push({
2196 field: $field.closest('[data-field]').data('field'),
2197 value: $field.val(),
2198 position: getCursorPosition($field.get(0)),
2199 hasFocus: $field.is(':focus')
2200 });
2201 });
2202 }
2203 function setValues(that) {
2204 var field = null;
2205 var result = [];
2206 var searchControls = getSearchControls(that);
2207
2208 if (that.options.valuesFilterControl.length > 0) {
2209 // Callback to apply after settings fields values
2210 var fieldToFocusCallback = null;
2211 searchControls.each(function (i, el) {
2212 var $this = $__default['default'](el);
2213 field = $this.closest('[data-field]').data('field');
2214 result = that.options.valuesFilterControl.filter(function (valueObj) {
2215 return valueObj.field === field;
2216 });
2217
2218 if (result.length > 0) {
2219 if ($this.is('[type=radio]')) {
2220 return;
2221 }
2222
2223 $this.val(result[0].value);
2224
2225 if (result[0].hasFocus && result[0].value !== '') {
2226 // set callback if the field had the focus.
2227 fieldToFocusCallback = function (fieldToFocus, carretPosition) {
2228 // Closure here to capture the field and cursor position
2229 var closedCallback = function closedCallback() {
2230 fieldToFocus.focus();
2231 setCursorPosition(fieldToFocus);
2232 };
2233
2234 return closedCallback;
2235 }($this.get(0), result[0].position);
2236 }
2237 }
2238 }); // Callback call.
2239
2240 if (fieldToFocusCallback !== null) {
2241 fieldToFocusCallback();
2242 }
2243 }
2244 }
2245 function collectBootstrapCookies() {
2246 var cookies = [];
2247 var foundCookies = document.cookie.match(/(?:bs.table.)(\w*)/g);
2248 var foundLocalStorage = localStorage;
2249
2250 if (foundCookies) {
2251 $__default['default'].each(foundCookies, function (i, _cookie) {
2252 var cookie = _cookie;
2253
2254 if (/./.test(cookie)) {
2255 cookie = cookie.split('.').pop();
2256 }
2257
2258 if ($__default['default'].inArray(cookie, cookies) === -1) {
2259 cookies.push(cookie);
2260 }
2261 });
2262 }
2263
2264 if (foundLocalStorage) {
2265 for (var i = 0; i < foundLocalStorage.length; i++) {
2266 var cookie = foundLocalStorage.key(i);
2267
2268 if (/./.test(cookie)) {
2269 cookie = cookie.split('.').pop();
2270 }
2271
2272 if (!cookies.includes(cookie)) {
2273 cookies.push(cookie);
2274 }
2275 }
2276 }
2277
2278 return cookies;
2279 }
2280 function escapeID(id) {
2281 // eslint-disable-next-line no-useless-escape
2282 return String(id).replace(/([:.\[\],])/g, '\\$1');
2283 }
2284 function isColumnSearchableViaSelect(_ref2) {
2285 var filterControl = _ref2.filterControl,
2286 searchable = _ref2.searchable;
2287 return filterControl && filterControl.toLowerCase() === 'select' && searchable;
2288 }
2289 function isFilterDataNotGiven(_ref3) {
2290 var filterData = _ref3.filterData;
2291 return filterData === undefined || filterData.toLowerCase() === 'column';
2292 }
2293 function hasSelectControlElement(selectControl) {
2294 return selectControl && selectControl.length > 0;
2295 }
2296 function initFilterSelectControls(that) {
2297 var data = that.data;
2298 var z = that.options.pagination ? that.options.sidePagination === 'server' ? that.pageTo : that.options.totalRows : that.pageTo;
2299 $__default['default'].each(that.header.fields, function (j, field) {
2300 var column = that.columns[that.fieldsColumnsIndex[field]];
2301 var selectControl = getControlContainer(that).find("select.bootstrap-table-filter-control-".concat(escapeID(column.field)));
2302
2303 if (isColumnSearchableViaSelect(column) && isFilterDataNotGiven(column) && hasSelectControlElement(selectControl)) {
2304 if (selectControl.get(selectControl.length - 1).options.length === 0) {
2305 // Added the default option, must use a non-breaking space(&nbsp;) to pass the W3C validator
2306 addOptionToSelectControl(selectControl, '', column.filterControlPlaceholder || '&nbsp;', column.filterDefault);
2307 }
2308
2309 var uniqueValues = {};
2310
2311 for (var i = 0; i < z; i++) {
2312 // Added a new value
2313 var fieldValue = Utils$1.getItemField(data[i], field, false);
2314 var formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j];
2315 var formattedValue = Utils$1.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue);
2316
2317 if (column.filterDataCollector) {
2318 formattedValue = Utils$1.calculateObjectValue(that.header, column.filterDataCollector, [fieldValue, data[i], formattedValue], formattedValue);
2319 }
2320
2321 if (column.searchFormatter) {
2322 fieldValue = formattedValue;
2323 }
2324
2325 uniqueValues[formattedValue] = fieldValue;
2326
2327 if (_typeof(formattedValue) === 'object' && formattedValue !== null) {
2328 formattedValue.forEach(function (value) {
2329 addOptionToSelectControl(selectControl, value, value, column.filterDefault);
2330 });
2331 continue;
2332 } // eslint-disable-next-line guard-for-in
2333
2334
2335 for (var key in uniqueValues) {
2336 addOptionToSelectControl(selectControl, uniqueValues[key], key, column.filterDefault);
2337 }
2338 }
2339
2340 sortSelectControl(selectControl, column.filterOrderBy);
2341
2342 if (that.options.hideUnusedSelectOptions) {
2343 hideUnusedSelectOptions(selectControl, uniqueValues);
2344 }
2345 }
2346 });
2347 }
2348 function getFilterDataMethod(objFilterDataMethod, searchTerm) {
2349 var keys = Object.keys(objFilterDataMethod);
2350
2351 for (var i = 0; i < keys.length; i++) {
2352 if (keys[i] === searchTerm) {
2353 return objFilterDataMethod[searchTerm];
2354 }
2355 }
2356
2357 return null;
2358 }
2359 function createControls(that, header) {
2360 var addedFilterControl = false;
2361 var html;
2362 $__default['default'].each(that.columns, function (_, column) {
2363 html = [];
2364
2365 if (!column.visible) {
2366 return;
2367 }
2368
2369 if (!column.filterControl && !that.options.filterControlContainer) {
2370 html.push('<div class="no-filter-control"></div>');
2371 } else if (that.options.filterControlContainer) {
2372 var $filterControls = $__default['default'](".bootstrap-table-filter-control-".concat(column.field));
2373 $__default['default'].each($filterControls, function (_, filterControl) {
2374 var $filterControl = $__default['default'](filterControl);
2375
2376 if (!$filterControl.is('[type=radio]')) {
2377 var placeholder = column.filterControlPlaceholder ? column.filterControlPlaceholder : '';
2378 $filterControl.attr('placeholder', placeholder).val(column.filterDefault);
2379 }
2380
2381 $filterControl.attr('data-field', column.field);
2382 });
2383 addedFilterControl = true;
2384 } else {
2385 var nameControl = column.filterControl.toLowerCase();
2386 html.push('<div class="filter-control">');
2387 addedFilterControl = true;
2388
2389 if (column.searchable && that.options.filterTemplate[nameControl]) {
2390 html.push(that.options.filterTemplate[nameControl](that, column.field, column.filterControlPlaceholder ? column.filterControlPlaceholder : '', column.filterDefault));
2391 }
2392 }
2393
2394 if (!column.filterControl && '' !== column.filterDefault && 'undefined' !== typeof column.filterDefault) {
2395 if ($__default['default'].isEmptyObject(that.filterColumnsPartial)) {
2396 that.filterColumnsPartial = {};
2397 }
2398
2399 that.filterColumnsPartial[column.field] = column.filterDefault;
2400 }
2401
2402 $__default['default'].each(header.find('th'), function (i, th) {
2403 var $th = $__default['default'](th);
2404
2405 if ($th.data('field') === column.field) {
2406 $th.find('.fht-cell').append(html.join(''));
2407 return false;
2408 }
2409 });
2410
2411 if (column.filterData && column.filterData.toLowerCase() !== 'column') {
2412 var filterDataType = getFilterDataMethod(
2413 /* eslint-disable no-use-before-define */
2414 filterDataMethods, column.filterData.substring(0, column.filterData.indexOf(':')));
2415 var filterDataSource;
2416 var selectControl;
2417
2418 if (filterDataType) {
2419 filterDataSource = column.filterData.substring(column.filterData.indexOf(':') + 1, column.filterData.length);
2420 selectControl = header.find(".bootstrap-table-filter-control-".concat(escapeID(column.field)));
2421 addOptionToSelectControl(selectControl, '', column.filterControlPlaceholder, column.filterDefault);
2422 filterDataType(filterDataSource, selectControl, that.options.filterOrderBy, column.filterDefault);
2423 } else {
2424 throw new SyntaxError('Error. You should use any of these allowed filter data methods: var, obj, json, url, func.' + ' Use like this: var: {key: "value"}');
2425 }
2426 }
2427 });
2428
2429 if (addedFilterControl) {
2430 header.off('keyup', 'input').on('keyup', 'input', function (_ref4, obj) {
2431 var currentTarget = _ref4.currentTarget,
2432 keyCode = _ref4.keyCode;
2433 syncControls(that); // Simulate enter key action from clear button
2434
2435 keyCode = obj ? obj.keyCode : keyCode;
2436
2437 if (that.options.searchOnEnterKey && keyCode !== 13) {
2438 return;
2439 }
2440
2441 if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
2442 return;
2443 }
2444
2445 var $currentTarget = $__default['default'](currentTarget);
2446
2447 if ($currentTarget.is(':checkbox') || $currentTarget.is(':radio')) {
2448 return;
2449 }
2450
2451 clearTimeout(currentTarget.timeoutId || 0);
2452 currentTarget.timeoutId = setTimeout(function () {
2453 that.onColumnSearch({
2454 currentTarget: currentTarget,
2455 keyCode: keyCode
2456 });
2457 }, that.options.searchTimeOut);
2458 });
2459 header.off('change', 'select:not(".ms-offscreen")').on('change', 'select:not(".ms-offscreen")', function (_ref5) {
2460 var currentTarget = _ref5.currentTarget,
2461 keyCode = _ref5.keyCode;
2462 syncControls(that);
2463 var $select = $__default['default'](currentTarget);
2464 var value = $select.val();
2465
2466 if (value && value.length > 0 && value.trim()) {
2467 $select.find('option[selected]').removeAttr('selected');
2468 $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
2469 } else {
2470 $select.find('option[selected]').removeAttr('selected');
2471 }
2472
2473 clearTimeout(currentTarget.timeoutId || 0);
2474 currentTarget.timeoutId = setTimeout(function () {
2475 that.onColumnSearch({
2476 currentTarget: currentTarget,
2477 keyCode: keyCode
2478 });
2479 }, that.options.searchTimeOut);
2480 });
2481 header.off('mouseup', 'input:not([type=radio])').on('mouseup', 'input:not([type=radio])', function (_ref6) {
2482 var currentTarget = _ref6.currentTarget,
2483 keyCode = _ref6.keyCode;
2484 var $input = $__default['default'](currentTarget);
2485 var oldValue = $input.val();
2486
2487 if (oldValue === '') {
2488 return;
2489 }
2490
2491 setTimeout(function () {
2492 syncControls(that);
2493 var newValue = $input.val();
2494
2495 if (newValue === '') {
2496 clearTimeout(currentTarget.timeoutId || 0);
2497 currentTarget.timeoutId = setTimeout(function () {
2498 that.onColumnSearch({
2499 currentTarget: currentTarget,
2500 keyCode: keyCode
2501 });
2502 }, that.options.searchTimeOut);
2503 }
2504 }, 1);
2505 });
2506 header.off('change', 'input[type=radio]').on('change', 'input[type=radio]', function (_ref7) {
2507 var currentTarget = _ref7.currentTarget,
2508 keyCode = _ref7.keyCode;
2509 clearTimeout(currentTarget.timeoutId || 0);
2510 currentTarget.timeoutId = setTimeout(function () {
2511 syncControls(that);
2512 that.onColumnSearch({
2513 currentTarget: currentTarget,
2514 keyCode: keyCode
2515 });
2516 }, that.options.searchTimeOut);
2517 });
2518
2519 if (header.find('.date-filter-control').length > 0) {
2520 $__default['default'].each(that.columns, function (i, _ref8) {
2521 var filterDefault = _ref8.filterDefault,
2522 filterControl = _ref8.filterControl,
2523 field = _ref8.field,
2524 filterDatepickerOptions = _ref8.filterDatepickerOptions;
2525
2526 if (filterControl !== undefined && filterControl.toLowerCase() === 'datepicker') {
2527 var $datepicker = header.find(".date-filter-control.bootstrap-table-filter-control-".concat(field));
2528 $datepicker.datepicker(filterDatepickerOptions);
2529
2530 if (filterDefault) {
2531 $datepicker.datepicker('setDate', filterDefault);
2532 }
2533
2534 $datepicker.on('changeDate', function (_ref9) {
2535 var currentTarget = _ref9.currentTarget,
2536 keyCode = _ref9.keyCode;
2537 clearTimeout(currentTarget.timeoutId || 0);
2538 currentTarget.timeoutId = setTimeout(function () {
2539 syncControls(that);
2540 that.onColumnSearch({
2541 currentTarget: currentTarget,
2542 keyCode: keyCode
2543 });
2544 }, that.options.searchTimeOut);
2545 });
2546 }
2547 });
2548 }
2549
2550 if (that.options.sidePagination !== 'server' && !that.options.height) {
2551 that.triggerSearch();
2552 }
2553
2554 if (!that.options.filterControlVisible) {
2555 header.find('.filter-control, .no-filter-control').hide();
2556 }
2557 } else {
2558 header.find('.filter-control, .no-filter-control').hide();
2559 }
2560
2561 that.trigger('created-controls');
2562 }
2563 function getDirectionOfSelectOptions(_alignment) {
2564 var alignment = _alignment === undefined ? 'left' : _alignment.toLowerCase();
2565
2566 switch (alignment) {
2567 case 'left':
2568 return 'ltr';
2569
2570 case 'right':
2571 return 'rtl';
2572
2573 case 'auto':
2574 return 'auto';
2575
2576 default:
2577 return 'ltr';
2578 }
2579 }
2580 function syncControls(that) {
2581 if (that.options.height) {
2582 var controlsTableHeader = that.$tableHeader.find(searchControls);
2583 that.$header.find(searchControls).each(function (_, control) {
2584 var $control = $__default['default'](control);
2585 var controlClass = getElementClass($control);
2586 var foundControl = controlsTableHeader.filter(function (_, ele) {
2587 var eleClass = getElementClass($__default['default'](ele));
2588 return controlClass === eleClass;
2589 });
2590
2591 if (foundControl.length === 0) {
2592 return;
2593 }
2594
2595 if ($control.is('select')) {
2596 $control.find('option:selected').removeAttr('selected');
2597 $control.find("option[value='".concat(foundControl.val(), "']")).attr('selected', true);
2598 } else {
2599 $control.val(foundControl.val());
2600 }
2601 });
2602 }
2603 }
2604 var filterDataMethods = {
2605 func: function func(filterDataSource, selectControl, filterOrderBy, selected) {
2606 var variableValues = window[filterDataSource].apply(); // eslint-disable-next-line guard-for-in
2607
2608 for (var key in variableValues) {
2609 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
2610 }
2611
2612 sortSelectControl(selectControl, filterOrderBy);
2613 },
2614 obj: function obj(filterDataSource, selectControl, filterOrderBy, selected) {
2615 var objectKeys = filterDataSource.split('.');
2616 var variableName = objectKeys.shift();
2617 var variableValues = window[variableName];
2618
2619 if (objectKeys.length > 0) {
2620 objectKeys.forEach(function (key) {
2621 variableValues = variableValues[key];
2622 });
2623 } // eslint-disable-next-line guard-for-in
2624
2625
2626 for (var key in variableValues) {
2627 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
2628 }
2629
2630 sortSelectControl(selectControl, filterOrderBy);
2631 },
2632 var: function _var(filterDataSource, selectControl, filterOrderBy, selected) {
2633 var variableValues = window[filterDataSource];
2634 var isArray = Array.isArray(variableValues);
2635
2636 for (var key in variableValues) {
2637 if (isArray) {
2638 addOptionToSelectControl(selectControl, variableValues[key], variableValues[key], selected);
2639 } else {
2640 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
2641 }
2642 }
2643
2644 sortSelectControl(selectControl, filterOrderBy);
2645 },
2646 url: function url(filterDataSource, selectControl, filterOrderBy, selected) {
2647 $__default['default'].ajax({
2648 url: filterDataSource,
2649 dataType: 'json',
2650 success: function success(data) {
2651 // eslint-disable-next-line guard-for-in
2652 for (var key in data) {
2653 addOptionToSelectControl(selectControl, key, data[key], selected);
2654 }
2655
2656 sortSelectControl(selectControl, filterOrderBy);
2657 }
2658 });
2659 },
2660 json: function json(filterDataSource, selectControl, filterOrderBy, selected) {
2661 var variableValues = JSON.parse(filterDataSource); // eslint-disable-next-line guard-for-in
2662
2663 for (var key in variableValues) {
2664 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
2665 }
2666
2667 sortSelectControl(selectControl, filterOrderBy);
2668 }
2669 };
2670
2671 var Utils = $__default['default'].fn.bootstrapTable.utils;
2672 $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2673 filterControl: false,
2674 filterControlVisible: true,
2675 // eslint-disable-next-line no-unused-vars
2676 onColumnSearch: function onColumnSearch(field, text) {
2677 return false;
2678 },
2679 onCreatedControls: function onCreatedControls() {
2680 return false;
2681 },
2682 alignmentSelectControlOptions: undefined,
2683 filterTemplate: {
2684 input: function input(that, field, placeholder, value) {
2685 return Utils.sprintf('<input type="search" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">', field, 'undefined' === typeof placeholder ? '' : placeholder, 'undefined' === typeof value ? '' : value);
2686 },
2687 select: function select(_ref, field) {
2688 var options = _ref.options;
2689 return Utils.sprintf('<select class="form-control bootstrap-table-filter-control-%s" style="width: 100%;" dir="%s"></select>', field, getDirectionOfSelectOptions(options.alignmentSelectControlOptions));
2690 },
2691 datepicker: function datepicker(that, field, value) {
2692 return Utils.sprintf('<input type="text" class="form-control date-filter-control bootstrap-table-filter-control-%s" style="width: 100%;" value="%s">', field, 'undefined' === typeof value ? '' : value);
2693 }
2694 },
2695 disableControlWhenSearch: false,
2696 searchOnEnterKey: false,
2697 showFilterControlSwitch: false,
2698 // internal variables
2699 valuesFilterControl: []
2700 });
2701 $__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
2702 filterControl: undefined,
2703 // input, select, datepicker
2704 filterDataCollector: undefined,
2705 filterData: undefined,
2706 filterDatepickerOptions: {},
2707 filterStrictSearch: false,
2708 filterStartsWithSearch: false,
2709 filterControlPlaceholder: '',
2710 filterDefault: '',
2711 filterOrderBy: 'asc' // asc || desc
2712
2713 });
2714 $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
2715 'column-search.bs.table': 'onColumnSearch',
2716 'created-controls.bs.table': 'onCreatedControls'
2717 });
2718 $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
2719 clear: {
2720 bootstrap3: 'glyphicon-trash icon-clear'
2721 }[$__default['default'].fn.bootstrapTable.theme] || 'fa-trash',
2722 filterControlSwitchHide: {
2723 bootstrap3: 'glyphicon-zoom-out icon-zoom-out',
2724 materialize: 'zoom_out'
2725 }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-minus',
2726 filterControlSwitchShow: {
2727 bootstrap3: 'glyphicon-zoom-in icon-zoom-in',
2728 materialize: 'zoom_in'
2729 }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-plus'
2730 });
2731 $__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
2732 formatFilterControlSwitch: function formatFilterControlSwitch() {
2733 return 'Hide/Show controls';
2734 },
2735 formatFilterControlSwitchHide: function formatFilterControlSwitchHide() {
2736 return 'Hide controls';
2737 },
2738 formatFilterControlSwitchShow: function formatFilterControlSwitchShow() {
2739 return 'Show controls';
2740 }
2741 });
2742 $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
2743 $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2744 formatClearSearch: function formatClearSearch() {
2745 return 'Clear filters';
2746 }
2747 });
2748 $__default['default'].fn.bootstrapTable.methods.push('triggerSearch');
2749 $__default['default'].fn.bootstrapTable.methods.push('clearFilterControl');
2750 $__default['default'].fn.bootstrapTable.methods.push('toggleFilterControl');
2751
2752 $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2753 _inherits(_class, _$$BootstrapTable);
2754
2755 var _super = _createSuper(_class);
2756
2757 function _class() {
2758 _classCallCheck(this, _class);
2759
2760 return _super.apply(this, arguments);
2761 }
2762
2763 _createClass(_class, [{
2764 key: "init",
2765 value: function init() {
2766 var _this = this;
2767
2768 // Make sure that the filterControl option is set
2769 if (this.options.filterControl) {
2770 // Make sure that the internal variables are set correctly
2771 this.options.valuesFilterControl = [];
2772 this.$el.on('reset-view.bs.table', function () {
2773 // Create controls on $tableHeader if the height is set
2774 if (!_this.options.height) {
2775 return;
2776 } // Avoid recreate the controls
2777
2778
2779 var $controlContainer = getControlContainer(_this);
2780
2781 if (($controlContainer.find('select').length > 0 || $controlContainer.find('input:not([type="checkbox"]):not([type="radio"])').length > 0) && !_this.options.filterControlContainer) {
2782 return;
2783 }
2784
2785 createControls(_this, $controlContainer);
2786 }).on('post-header.bs.table', function () {
2787 setValues(_this);
2788 }).on('post-body.bs.table', function () {
2789 if (_this.options.height && !_this.options.filterControlContainer) {
2790 fixHeaderCSS(_this);
2791 }
2792
2793 _this.$tableLoading.css('top', _this.$header.outerHeight() + 1);
2794 }).on('column-switch.bs.table', function () {
2795 setValues(_this);
2796 }).on('load-success.bs.table', function () {
2797 _this.enableControls(true);
2798 }).on('load-error.bs.table', function () {
2799 _this.enableControls(true);
2800 });
2801 }
2802
2803 _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
2804 }
2805 }, {
2806 key: "initHeader",
2807 value: function initHeader() {
2808 _get(_getPrototypeOf(_class.prototype), "initHeader", this).call(this);
2809
2810 if (!this.options.filterControl || this.options.height) {
2811 return;
2812 }
2813
2814 createControls(this, getControlContainer(this));
2815 }
2816 }, {
2817 key: "initBody",
2818 value: function initBody() {
2819 _get(_getPrototypeOf(_class.prototype), "initBody", this).call(this);
2820
2821 syncControls(this);
2822 initFilterSelectControls(this);
2823 }
2824 }, {
2825 key: "initSearch",
2826 value: function initSearch() {
2827 var _this2 = this;
2828
2829 var that = this;
2830 var fp = $__default['default'].isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
2831
2832 _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
2833
2834 if (this.options.sidePagination === 'server' || fp === null) {
2835 return;
2836 } // Check partial column filter
2837
2838
2839 that.data = fp ? that.data.filter(function (item, i) {
2840 var itemIsExpected = [];
2841 var keys1 = Object.keys(item);
2842 var keys2 = Object.keys(fp);
2843 var keys = keys1.concat(keys2.filter(function (item) {
2844 return !keys1.includes(item);
2845 }));
2846 keys.forEach(function (key) {
2847 var thisColumn = that.columns[that.fieldsColumnsIndex[key]];
2848 var fval = (fp[key] || '').toLowerCase();
2849 var value = Utils.unescapeHTML(Utils.getItemField(item, key, false));
2850 var tmpItemIsExpected;
2851
2852 if (fval === '') {
2853 tmpItemIsExpected = true;
2854 } else {
2855 // Fix #142: search use formatted data
2856 if (thisColumn && thisColumn.searchFormatter) {
2857 value = $__default['default'].fn.bootstrapTable.utils.calculateObjectValue(that.header, that.header.formatters[$__default['default'].inArray(key, that.header.fields)], [value, item, i], value);
2858 }
2859
2860 if ($__default['default'].inArray(key, that.header.fields) !== -1) {
2861 if (value === undefined || value === null) {
2862 tmpItemIsExpected = false;
2863 } else if (_typeof(value) === 'object') {
2864 value.forEach(function (objectValue) {
2865 if (tmpItemIsExpected) {
2866 return;
2867 }
2868
2869 if (_this2.options.searchAccentNeutralise) {
2870 objectValue = Utils.normalizeAccent(objectValue);
2871 }
2872
2873 tmpItemIsExpected = that.isValueExpected(fval, objectValue, thisColumn, key);
2874 });
2875 } else if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
2876 if (_this2.options.searchAccentNeutralise) {
2877 value = Utils.normalizeAccent(value);
2878 }
2879
2880 tmpItemIsExpected = that.isValueExpected(fval, value, thisColumn, key);
2881 }
2882 }
2883 }
2884
2885 itemIsExpected.push(tmpItemIsExpected);
2886 });
2887 return !itemIsExpected.includes(false);
2888 }) : that.data;
2889 that.unsortedData = _toConsumableArray(that.data);
2890 }
2891 }, {
2892 key: "isValueExpected",
2893 value: function isValueExpected(searchValue, value, column, key) {
2894 var tmpItemIsExpected = false;
2895
2896 if (column.filterStrictSearch) {
2897 tmpItemIsExpected = value.toString().toLowerCase() === searchValue.toString().toLowerCase();
2898 } else if (column.filterStartsWithSearch) {
2899 tmpItemIsExpected = "".concat(value).toLowerCase().indexOf(searchValue) === 0;
2900 } else {
2901 tmpItemIsExpected = "".concat(value).toLowerCase().includes(searchValue);
2902 }
2903
2904 var largerSmallerEqualsRegex = /(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm;
2905 var matches = largerSmallerEqualsRegex.exec(searchValue);
2906
2907 if (matches) {
2908 var operator = matches[1] || "".concat(matches[5], "l");
2909 var comparisonValue = matches[2] || matches[3];
2910 var int = parseInt(value, 10);
2911 var comparisonInt = parseInt(comparisonValue, 10);
2912
2913 switch (operator) {
2914 case '>':
2915 case '<l':
2916 tmpItemIsExpected = int > comparisonInt;
2917 break;
2918
2919 case '<':
2920 case '>l':
2921 tmpItemIsExpected = int < comparisonInt;
2922 break;
2923
2924 case '<=':
2925 case '=<':
2926 case '>=l':
2927 case '=>l':
2928 tmpItemIsExpected = int <= comparisonInt;
2929 break;
2930
2931 case '>=':
2932 case '=>':
2933 case '<=l':
2934 case '=<l':
2935 tmpItemIsExpected = int >= comparisonInt;
2936 break;
2937 }
2938 }
2939
2940 if (column.filterCustomSearch) {
2941 var customSearchResult = Utils.calculateObjectValue(this, column.filterCustomSearch, [searchValue, value, key, this.options.data], true);
2942
2943 if (customSearchResult !== null) {
2944 tmpItemIsExpected = customSearchResult;
2945 }
2946 }
2947
2948 return tmpItemIsExpected;
2949 }
2950 }, {
2951 key: "initColumnSearch",
2952 value: function initColumnSearch(filterColumnsDefaults) {
2953 copyValues(this);
2954
2955 if (filterColumnsDefaults) {
2956 this.filterColumnsPartial = filterColumnsDefaults;
2957 this.updatePagination(); // eslint-disable-next-line guard-for-in
2958
2959 for (var filter in filterColumnsDefaults) {
2960 this.trigger('column-search', filter, filterColumnsDefaults[filter]);
2961 }
2962 }
2963 }
2964 }, {
2965 key: "onColumnSearch",
2966 value: function onColumnSearch(_ref2) {
2967 var currentTarget = _ref2.currentTarget,
2968 keyCode = _ref2.keyCode;
2969
2970 if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
2971 return;
2972 }
2973
2974 copyValues(this);
2975 var text = $__default['default'].trim($__default['default'](currentTarget).val());
2976 var $field = $__default['default'](currentTarget).closest('[data-field]').data('field');
2977 this.trigger('column-search', $field, text);
2978
2979 if ($__default['default'].isEmptyObject(this.filterColumnsPartial)) {
2980 this.filterColumnsPartial = {};
2981 }
2982
2983 if (text) {
2984 this.filterColumnsPartial[$field] = text;
2985 } else {
2986 delete this.filterColumnsPartial[$field];
2987 }
2988
2989 this.options.pageNumber = 1;
2990 this.enableControls(false);
2991 this.onSearch({
2992 currentTarget: currentTarget
2993 }, false);
2994 }
2995 }, {
2996 key: "initToolbar",
2997 value: function initToolbar() {
2998 this.showToolbar = this.showToolbar || this.options.showFilterControlSwitch;
2999 this.showSearchClearButton = this.options.filterControl && this.options.showSearchClearButton;
3000
3001 if (this.options.showFilterControlSwitch) {
3002 this.buttons = Object.assign(this.buttons, {
3003 filterControlSwitch: {
3004 text: this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow(),
3005 icon: this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow,
3006 event: this.toggleFilterControl,
3007 attributes: {
3008 'aria-label': this.options.formatFilterControlSwitch(),
3009 title: this.options.formatFilterControlSwitch()
3010 }
3011 }
3012 });
3013 }
3014
3015 _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
3016 }
3017 }, {
3018 key: "resetSearch",
3019 value: function resetSearch(text) {
3020 if (this.options.filterControl && this.options.showSearchClearButton) {
3021 this.clearFilterControl();
3022 }
3023
3024 _get(_getPrototypeOf(_class.prototype), "resetSearch", this).call(this, text);
3025 }
3026 }, {
3027 key: "clearFilterControl",
3028 value: function clearFilterControl() {
3029 if (this.options.filterControl) {
3030 var that = this;
3031 var cookies = collectBootstrapCookies();
3032 var table = this.$el.closest('table');
3033 var controls = getSearchControls(that);
3034 var search = Utils.getSearchInput(this);
3035 var hasValues = false;
3036 var timeoutId = 0;
3037 $__default['default'].each(that.options.valuesFilterControl, function (i, item) {
3038 hasValues = hasValues ? true : item.value !== '';
3039 item.value = '';
3040 });
3041 $__default['default'].each(that.options.filterControls, function (i, item) {
3042 item.text = '';
3043 });
3044 setValues(that); // clear cookies once the filters are clean
3045
3046 clearTimeout(timeoutId);
3047 timeoutId = setTimeout(function () {
3048 if (cookies && cookies.length > 0) {
3049 $__default['default'].each(cookies, function (i, item) {
3050 if (that.deleteCookie !== undefined) {
3051 that.deleteCookie(item);
3052 }
3053 });
3054 }
3055 }, that.options.searchTimeOut); // If there is not any value in the controls exit this method
3056
3057 if (!hasValues) {
3058 return;
3059 } // Clear each type of filter if it exists.
3060 // Requires the body to reload each time a type of filter is found because we never know
3061 // which ones are going to be present.
3062
3063
3064 if (controls.length > 0) {
3065 this.filterColumnsPartial = {};
3066 $__default['default'](controls[0]).trigger(controls[0].tagName === 'INPUT' ? 'keyup' : 'change', {
3067 keyCode: 13
3068 });
3069 } else {
3070 return;
3071 }
3072
3073 if (search.length > 0) {
3074 that.resetSearch();
3075 } // use the default sort order if it exists. do nothing if it does not
3076
3077
3078 if (that.options.sortName !== table.data('sortName') || that.options.sortOrder !== table.data('sortOrder')) {
3079 var sorter = this.$header.find(Utils.sprintf('[data-field="%s"]', $__default['default'](controls[0]).closest('table').data('sortName')));
3080
3081 if (sorter.length > 0) {
3082 that.onSort({
3083 type: 'keypress',
3084 currentTarget: sorter
3085 });
3086 $__default['default'](sorter).find('.sortable').trigger('click');
3087 }
3088 }
3089 }
3090 }
3091 }, {
3092 key: "triggerSearch",
3093 value: function triggerSearch() {
3094 var searchControls = getSearchControls(this);
3095 searchControls.each(function () {
3096 var el = $__default['default'](this);
3097
3098 if (el.is('select')) {
3099 el.change();
3100 } else {
3101 el.keyup();
3102 }
3103 });
3104 }
3105 }, {
3106 key: "enableControls",
3107 value: function enableControls(enable) {
3108 if (this.options.disableControlWhenSearch && this.options.sidePagination === 'server') {
3109 var searchControls = getSearchControls(this);
3110
3111 if (!enable) {
3112 searchControls.prop('disabled', 'disabled');
3113 } else {
3114 searchControls.removeProp('disabled');
3115 }
3116 }
3117 }
3118 }, {
3119 key: "toggleFilterControl",
3120 value: function toggleFilterControl() {
3121 this.options.filterControlVisible = !this.options.filterControlVisible;
3122 var $filterControls = getControlContainer(this).find('.filter-control, .no-filter-control');
3123
3124 if (this.options.filterControlVisible) {
3125 $filterControls.show();
3126 } else {
3127 $filterControls.hide();
3128 this.clearFilterControl();
3129 }
3130
3131 var icon = this.options.showButtonIcons ? this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow : '';
3132 var text = this.options.showButtonText ? this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow() : '';
3133 this.$toolbar.find('>.columns').find('.filter-control-switch').html("".concat(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon), " ").concat(text));
3134 }
3135 }]);
3136
3137 return _class;
3138 }($__default['default'].BootstrapTable);
3139
3140})));