UNPKG

68.8 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5})(this, (function ($$3) { 'use strict';
6
7 function _classCallCheck(instance, Constructor) {
8 if (!(instance instanceof Constructor)) {
9 throw new TypeError("Cannot call a class as a function");
10 }
11 }
12 function _defineProperties(target, props) {
13 for (var i = 0; i < props.length; i++) {
14 var descriptor = props[i];
15 descriptor.enumerable = descriptor.enumerable || false;
16 descriptor.configurable = true;
17 if ("value" in descriptor) descriptor.writable = true;
18 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
19 }
20 }
21 function _createClass(Constructor, protoProps, staticProps) {
22 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23 if (staticProps) _defineProperties(Constructor, staticProps);
24 Object.defineProperty(Constructor, "prototype", {
25 writable: false
26 });
27 return Constructor;
28 }
29 function _inherits(subClass, superClass) {
30 if (typeof superClass !== "function" && superClass !== null) {
31 throw new TypeError("Super expression must either be null or a function");
32 }
33 subClass.prototype = Object.create(superClass && superClass.prototype, {
34 constructor: {
35 value: subClass,
36 writable: true,
37 configurable: true
38 }
39 });
40 Object.defineProperty(subClass, "prototype", {
41 writable: false
42 });
43 if (superClass) _setPrototypeOf(subClass, superClass);
44 }
45 function _getPrototypeOf(o) {
46 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
47 return o.__proto__ || Object.getPrototypeOf(o);
48 };
49 return _getPrototypeOf(o);
50 }
51 function _setPrototypeOf(o, p) {
52 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
53 o.__proto__ = p;
54 return o;
55 };
56 return _setPrototypeOf(o, p);
57 }
58 function _isNativeReflectConstruct() {
59 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
60 if (Reflect.construct.sham) return false;
61 if (typeof Proxy === "function") return true;
62 try {
63 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
64 return true;
65 } catch (e) {
66 return false;
67 }
68 }
69 function _assertThisInitialized(self) {
70 if (self === void 0) {
71 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
72 }
73 return self;
74 }
75 function _possibleConstructorReturn(self, call) {
76 if (call && (typeof call === "object" || typeof call === "function")) {
77 return call;
78 } else if (call !== void 0) {
79 throw new TypeError("Derived constructors may only return object or undefined");
80 }
81 return _assertThisInitialized(self);
82 }
83 function _createSuper(Derived) {
84 var hasNativeReflectConstruct = _isNativeReflectConstruct();
85 return function _createSuperInternal() {
86 var Super = _getPrototypeOf(Derived),
87 result;
88 if (hasNativeReflectConstruct) {
89 var NewTarget = _getPrototypeOf(this).constructor;
90 result = Reflect.construct(Super, arguments, NewTarget);
91 } else {
92 result = Super.apply(this, arguments);
93 }
94 return _possibleConstructorReturn(this, result);
95 };
96 }
97 function _superPropBase(object, property) {
98 while (!Object.prototype.hasOwnProperty.call(object, property)) {
99 object = _getPrototypeOf(object);
100 if (object === null) break;
101 }
102 return object;
103 }
104 function _get() {
105 if (typeof Reflect !== "undefined" && Reflect.get) {
106 _get = Reflect.get.bind();
107 } else {
108 _get = function _get(target, property, receiver) {
109 var base = _superPropBase(target, property);
110 if (!base) return;
111 var desc = Object.getOwnPropertyDescriptor(base, property);
112 if (desc.get) {
113 return desc.get.call(arguments.length < 3 ? target : receiver);
114 }
115 return desc.value;
116 };
117 }
118 return _get.apply(this, arguments);
119 }
120 function _toPrimitive(input, hint) {
121 if (typeof input !== "object" || input === null) return input;
122 var prim = input[Symbol.toPrimitive];
123 if (prim !== undefined) {
124 var res = prim.call(input, hint || "default");
125 if (typeof res !== "object") return res;
126 throw new TypeError("@@toPrimitive must return a primitive value.");
127 }
128 return (hint === "string" ? String : Number)(input);
129 }
130 function _toPropertyKey(arg) {
131 var key = _toPrimitive(arg, "string");
132 return typeof key === "symbol" ? key : String(key);
133 }
134
135 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
136
137 var check = function (it) {
138 return it && it.Math == Math && it;
139 };
140
141 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
142 var global$a =
143 // eslint-disable-next-line es/no-global-this -- safe
144 check(typeof globalThis == 'object' && globalThis) ||
145 check(typeof window == 'object' && window) ||
146 // eslint-disable-next-line no-restricted-globals -- safe
147 check(typeof self == 'object' && self) ||
148 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
149 // eslint-disable-next-line no-new-func -- fallback
150 (function () { return this; })() || Function('return this')();
151
152 var objectGetOwnPropertyDescriptor = {};
153
154 var fails$c = function (exec) {
155 try {
156 return !!exec();
157 } catch (error) {
158 return true;
159 }
160 };
161
162 var fails$b = fails$c;
163
164 // Detect IE8's incomplete defineProperty implementation
165 var descriptors = !fails$b(function () {
166 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
167 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
168 });
169
170 var fails$a = fails$c;
171
172 var functionBindNative = !fails$a(function () {
173 // eslint-disable-next-line es/no-function-prototype-bind -- safe
174 var test = (function () { /* empty */ }).bind();
175 // eslint-disable-next-line no-prototype-builtins -- safe
176 return typeof test != 'function' || test.hasOwnProperty('prototype');
177 });
178
179 var NATIVE_BIND$2 = functionBindNative;
180
181 var call$5 = Function.prototype.call;
182
183 var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
184 return call$5.apply(call$5, arguments);
185 };
186
187 var objectPropertyIsEnumerable = {};
188
189 var $propertyIsEnumerable = {}.propertyIsEnumerable;
190 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
191 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
192
193 // Nashorn ~ JDK8 bug
194 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
195
196 // `Object.prototype.propertyIsEnumerable` method implementation
197 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
198 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
199 var descriptor = getOwnPropertyDescriptor$1(this, V);
200 return !!descriptor && descriptor.enumerable;
201 } : $propertyIsEnumerable;
202
203 var createPropertyDescriptor$3 = function (bitmap, value) {
204 return {
205 enumerable: !(bitmap & 1),
206 configurable: !(bitmap & 2),
207 writable: !(bitmap & 4),
208 value: value
209 };
210 };
211
212 var NATIVE_BIND$1 = functionBindNative;
213
214 var FunctionPrototype$1 = Function.prototype;
215 var call$4 = FunctionPrototype$1.call;
216 var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
217
218 var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
219 return function () {
220 return call$4.apply(fn, arguments);
221 };
222 };
223
224 var uncurryThis$d = functionUncurryThis;
225
226 var toString$2 = uncurryThis$d({}.toString);
227 var stringSlice$1 = uncurryThis$d(''.slice);
228
229 var classofRaw$2 = function (it) {
230 return stringSlice$1(toString$2(it), 8, -1);
231 };
232
233 var uncurryThis$c = functionUncurryThis;
234 var fails$9 = fails$c;
235 var classof$4 = classofRaw$2;
236
237 var $Object$3 = Object;
238 var split = uncurryThis$c(''.split);
239
240 // fallback for non-array-like ES3 and non-enumerable old V8 strings
241 var indexedObject = fails$9(function () {
242 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
243 // eslint-disable-next-line no-prototype-builtins -- safe
244 return !$Object$3('z').propertyIsEnumerable(0);
245 }) ? function (it) {
246 return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
247 } : $Object$3;
248
249 // we can't use just `it == null` since of `document.all` special case
250 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
251 var isNullOrUndefined$2 = function (it) {
252 return it === null || it === undefined;
253 };
254
255 var isNullOrUndefined$1 = isNullOrUndefined$2;
256
257 var $TypeError$6 = TypeError;
258
259 // `RequireObjectCoercible` abstract operation
260 // https://tc39.es/ecma262/#sec-requireobjectcoercible
261 var requireObjectCoercible$2 = function (it) {
262 if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
263 return it;
264 };
265
266 // toObject with fallback for non-array-like ES3 strings
267 var IndexedObject$2 = indexedObject;
268 var requireObjectCoercible$1 = requireObjectCoercible$2;
269
270 var toIndexedObject$4 = function (it) {
271 return IndexedObject$2(requireObjectCoercible$1(it));
272 };
273
274 var documentAll$2 = typeof document == 'object' && document.all;
275
276 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
277 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
278 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
279
280 var documentAll_1 = {
281 all: documentAll$2,
282 IS_HTMLDDA: IS_HTMLDDA
283 };
284
285 var $documentAll$1 = documentAll_1;
286
287 var documentAll$1 = $documentAll$1.all;
288
289 // `IsCallable` abstract operation
290 // https://tc39.es/ecma262/#sec-iscallable
291 var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
292 return typeof argument == 'function' || argument === documentAll$1;
293 } : function (argument) {
294 return typeof argument == 'function';
295 };
296
297 var isCallable$b = isCallable$c;
298 var $documentAll = documentAll_1;
299
300 var documentAll = $documentAll.all;
301
302 var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
303 return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
304 } : function (it) {
305 return typeof it == 'object' ? it !== null : isCallable$b(it);
306 };
307
308 var global$9 = global$a;
309 var isCallable$a = isCallable$c;
310
311 var aFunction = function (argument) {
312 return isCallable$a(argument) ? argument : undefined;
313 };
314
315 var getBuiltIn$4 = function (namespace, method) {
316 return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
317 };
318
319 var uncurryThis$b = functionUncurryThis;
320
321 var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
322
323 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
324
325 var global$8 = global$a;
326 var userAgent = engineUserAgent;
327
328 var process = global$8.process;
329 var Deno = global$8.Deno;
330 var versions = process && process.versions || Deno && Deno.version;
331 var v8 = versions && versions.v8;
332 var match, version;
333
334 if (v8) {
335 match = v8.split('.');
336 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
337 // but their correct versions are not interesting for us
338 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
339 }
340
341 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
342 // so check `userAgent` even if `.v8` exists, but 0
343 if (!version && userAgent) {
344 match = userAgent.match(/Edge\/(\d+)/);
345 if (!match || match[1] >= 74) {
346 match = userAgent.match(/Chrome\/(\d+)/);
347 if (match) version = +match[1];
348 }
349 }
350
351 var engineV8Version = version;
352
353 /* eslint-disable es/no-symbol -- required for testing */
354
355 var V8_VERSION$2 = engineV8Version;
356 var fails$8 = fails$c;
357
358 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
359 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
360 var symbol = Symbol();
361 // Chrome 38 Symbol has incorrect toString conversion
362 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
363 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
364 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
365 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
366 });
367
368 /* eslint-disable es/no-symbol -- required for testing */
369
370 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
371
372 var useSymbolAsUid = NATIVE_SYMBOL$1
373 && !Symbol.sham
374 && typeof Symbol.iterator == 'symbol';
375
376 var getBuiltIn$3 = getBuiltIn$4;
377 var isCallable$9 = isCallable$c;
378 var isPrototypeOf = objectIsPrototypeOf;
379 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
380
381 var $Object$2 = Object;
382
383 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
384 return typeof it == 'symbol';
385 } : function (it) {
386 var $Symbol = getBuiltIn$3('Symbol');
387 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
388 };
389
390 var $String$2 = String;
391
392 var tryToString$1 = function (argument) {
393 try {
394 return $String$2(argument);
395 } catch (error) {
396 return 'Object';
397 }
398 };
399
400 var isCallable$8 = isCallable$c;
401 var tryToString = tryToString$1;
402
403 var $TypeError$5 = TypeError;
404
405 // `Assert: IsCallable(argument) is true`
406 var aCallable$2 = function (argument) {
407 if (isCallable$8(argument)) return argument;
408 throw $TypeError$5(tryToString(argument) + ' is not a function');
409 };
410
411 var aCallable$1 = aCallable$2;
412 var isNullOrUndefined = isNullOrUndefined$2;
413
414 // `GetMethod` abstract operation
415 // https://tc39.es/ecma262/#sec-getmethod
416 var getMethod$1 = function (V, P) {
417 var func = V[P];
418 return isNullOrUndefined(func) ? undefined : aCallable$1(func);
419 };
420
421 var call$3 = functionCall;
422 var isCallable$7 = isCallable$c;
423 var isObject$6 = isObject$7;
424
425 var $TypeError$4 = TypeError;
426
427 // `OrdinaryToPrimitive` abstract operation
428 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
429 var ordinaryToPrimitive$1 = function (input, pref) {
430 var fn, val;
431 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
432 if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
433 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
434 throw $TypeError$4("Can't convert object to primitive value");
435 };
436
437 var sharedExports = {};
438 var shared$3 = {
439 get exports(){ return sharedExports; },
440 set exports(v){ sharedExports = v; },
441 };
442
443 var global$7 = global$a;
444
445 // eslint-disable-next-line es/no-object-defineproperty -- safe
446 var defineProperty$3 = Object.defineProperty;
447
448 var defineGlobalProperty$3 = function (key, value) {
449 try {
450 defineProperty$3(global$7, key, { value: value, configurable: true, writable: true });
451 } catch (error) {
452 global$7[key] = value;
453 } return value;
454 };
455
456 var global$6 = global$a;
457 var defineGlobalProperty$2 = defineGlobalProperty$3;
458
459 var SHARED = '__core-js_shared__';
460 var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
461
462 var sharedStore = store$3;
463
464 var store$2 = sharedStore;
465
466 (shared$3.exports = function (key, value) {
467 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
468 })('versions', []).push({
469 version: '3.29.0',
470 mode: 'global',
471 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
472 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
473 source: 'https://github.com/zloirock/core-js'
474 });
475
476 var requireObjectCoercible = requireObjectCoercible$2;
477
478 var $Object$1 = Object;
479
480 // `ToObject` abstract operation
481 // https://tc39.es/ecma262/#sec-toobject
482 var toObject$4 = function (argument) {
483 return $Object$1(requireObjectCoercible(argument));
484 };
485
486 var uncurryThis$a = functionUncurryThis;
487 var toObject$3 = toObject$4;
488
489 var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
490
491 // `HasOwnProperty` abstract operation
492 // https://tc39.es/ecma262/#sec-hasownproperty
493 // eslint-disable-next-line es/no-object-hasown -- safe
494 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
495 return hasOwnProperty(toObject$3(it), key);
496 };
497
498 var uncurryThis$9 = functionUncurryThis;
499
500 var id = 0;
501 var postfix = Math.random();
502 var toString$1 = uncurryThis$9(1.0.toString);
503
504 var uid$2 = function (key) {
505 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
506 };
507
508 var global$5 = global$a;
509 var shared$2 = sharedExports;
510 var hasOwn$6 = hasOwnProperty_1;
511 var uid$1 = uid$2;
512 var NATIVE_SYMBOL = symbolConstructorDetection;
513 var USE_SYMBOL_AS_UID = useSymbolAsUid;
514
515 var Symbol$1 = global$5.Symbol;
516 var WellKnownSymbolsStore = shared$2('wks');
517 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
518
519 var wellKnownSymbol$7 = function (name) {
520 if (!hasOwn$6(WellKnownSymbolsStore, name)) {
521 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
522 ? Symbol$1[name]
523 : createWellKnownSymbol('Symbol.' + name);
524 } return WellKnownSymbolsStore[name];
525 };
526
527 var call$2 = functionCall;
528 var isObject$5 = isObject$7;
529 var isSymbol$1 = isSymbol$2;
530 var getMethod = getMethod$1;
531 var ordinaryToPrimitive = ordinaryToPrimitive$1;
532 var wellKnownSymbol$6 = wellKnownSymbol$7;
533
534 var $TypeError$3 = TypeError;
535 var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
536
537 // `ToPrimitive` abstract operation
538 // https://tc39.es/ecma262/#sec-toprimitive
539 var toPrimitive$1 = function (input, pref) {
540 if (!isObject$5(input) || isSymbol$1(input)) return input;
541 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
542 var result;
543 if (exoticToPrim) {
544 if (pref === undefined) pref = 'default';
545 result = call$2(exoticToPrim, input, pref);
546 if (!isObject$5(result) || isSymbol$1(result)) return result;
547 throw $TypeError$3("Can't convert object to primitive value");
548 }
549 if (pref === undefined) pref = 'number';
550 return ordinaryToPrimitive(input, pref);
551 };
552
553 var toPrimitive = toPrimitive$1;
554 var isSymbol = isSymbol$2;
555
556 // `ToPropertyKey` abstract operation
557 // https://tc39.es/ecma262/#sec-topropertykey
558 var toPropertyKey$3 = function (argument) {
559 var key = toPrimitive(argument, 'string');
560 return isSymbol(key) ? key : key + '';
561 };
562
563 var global$4 = global$a;
564 var isObject$4 = isObject$7;
565
566 var document$1 = global$4.document;
567 // typeof document.createElement is 'object' in old IE
568 var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
569
570 var documentCreateElement$1 = function (it) {
571 return EXISTS$1 ? document$1.createElement(it) : {};
572 };
573
574 var DESCRIPTORS$8 = descriptors;
575 var fails$7 = fails$c;
576 var createElement = documentCreateElement$1;
577
578 // Thanks to IE8 for its funny defineProperty
579 var ie8DomDefine = !DESCRIPTORS$8 && !fails$7(function () {
580 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
581 return Object.defineProperty(createElement('div'), 'a', {
582 get: function () { return 7; }
583 }).a != 7;
584 });
585
586 var DESCRIPTORS$7 = descriptors;
587 var call$1 = functionCall;
588 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
589 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
590 var toIndexedObject$3 = toIndexedObject$4;
591 var toPropertyKey$2 = toPropertyKey$3;
592 var hasOwn$5 = hasOwnProperty_1;
593 var IE8_DOM_DEFINE$1 = ie8DomDefine;
594
595 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
596 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
597
598 // `Object.getOwnPropertyDescriptor` method
599 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
600 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
601 O = toIndexedObject$3(O);
602 P = toPropertyKey$2(P);
603 if (IE8_DOM_DEFINE$1) try {
604 return $getOwnPropertyDescriptor$1(O, P);
605 } catch (error) { /* empty */ }
606 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
607 };
608
609 var objectDefineProperty = {};
610
611 var DESCRIPTORS$6 = descriptors;
612 var fails$6 = fails$c;
613
614 // V8 ~ Chrome 36-
615 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
616 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$6(function () {
617 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
618 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
619 value: 42,
620 writable: false
621 }).prototype != 42;
622 });
623
624 var isObject$3 = isObject$7;
625
626 var $String$1 = String;
627 var $TypeError$2 = TypeError;
628
629 // `Assert: Type(argument) is Object`
630 var anObject$4 = function (argument) {
631 if (isObject$3(argument)) return argument;
632 throw $TypeError$2($String$1(argument) + ' is not an object');
633 };
634
635 var DESCRIPTORS$5 = descriptors;
636 var IE8_DOM_DEFINE = ie8DomDefine;
637 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
638 var anObject$3 = anObject$4;
639 var toPropertyKey$1 = toPropertyKey$3;
640
641 var $TypeError$1 = TypeError;
642 // eslint-disable-next-line es/no-object-defineproperty -- safe
643 var $defineProperty = Object.defineProperty;
644 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
645 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
646 var ENUMERABLE = 'enumerable';
647 var CONFIGURABLE$1 = 'configurable';
648 var WRITABLE = 'writable';
649
650 // `Object.defineProperty` method
651 // https://tc39.es/ecma262/#sec-object.defineproperty
652 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
653 anObject$3(O);
654 P = toPropertyKey$1(P);
655 anObject$3(Attributes);
656 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
657 var current = $getOwnPropertyDescriptor(O, P);
658 if (current && current[WRITABLE]) {
659 O[P] = Attributes.value;
660 Attributes = {
661 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
662 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
663 writable: false
664 };
665 }
666 } return $defineProperty(O, P, Attributes);
667 } : $defineProperty : function defineProperty(O, P, Attributes) {
668 anObject$3(O);
669 P = toPropertyKey$1(P);
670 anObject$3(Attributes);
671 if (IE8_DOM_DEFINE) try {
672 return $defineProperty(O, P, Attributes);
673 } catch (error) { /* empty */ }
674 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
675 if ('value' in Attributes) O[P] = Attributes.value;
676 return O;
677 };
678
679 var DESCRIPTORS$4 = descriptors;
680 var definePropertyModule$4 = objectDefineProperty;
681 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
682
683 var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
684 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
685 } : function (object, key, value) {
686 object[key] = value;
687 return object;
688 };
689
690 var makeBuiltInExports = {};
691 var makeBuiltIn$2 = {
692 get exports(){ return makeBuiltInExports; },
693 set exports(v){ makeBuiltInExports = v; },
694 };
695
696 var DESCRIPTORS$3 = descriptors;
697 var hasOwn$4 = hasOwnProperty_1;
698
699 var FunctionPrototype = Function.prototype;
700 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
701 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
702
703 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
704 // additional protection from minified / mangled / dropped function names
705 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
706 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
707
708 var functionName = {
709 EXISTS: EXISTS,
710 PROPER: PROPER,
711 CONFIGURABLE: CONFIGURABLE
712 };
713
714 var uncurryThis$8 = functionUncurryThis;
715 var isCallable$6 = isCallable$c;
716 var store$1 = sharedStore;
717
718 var functionToString = uncurryThis$8(Function.toString);
719
720 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
721 if (!isCallable$6(store$1.inspectSource)) {
722 store$1.inspectSource = function (it) {
723 return functionToString(it);
724 };
725 }
726
727 var inspectSource$2 = store$1.inspectSource;
728
729 var global$3 = global$a;
730 var isCallable$5 = isCallable$c;
731
732 var WeakMap$1 = global$3.WeakMap;
733
734 var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
735
736 var shared$1 = sharedExports;
737 var uid = uid$2;
738
739 var keys = shared$1('keys');
740
741 var sharedKey$2 = function (key) {
742 return keys[key] || (keys[key] = uid(key));
743 };
744
745 var hiddenKeys$4 = {};
746
747 var NATIVE_WEAK_MAP = weakMapBasicDetection;
748 var global$2 = global$a;
749 var isObject$2 = isObject$7;
750 var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
751 var hasOwn$3 = hasOwnProperty_1;
752 var shared = sharedStore;
753 var sharedKey$1 = sharedKey$2;
754 var hiddenKeys$3 = hiddenKeys$4;
755
756 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
757 var TypeError$1 = global$2.TypeError;
758 var WeakMap = global$2.WeakMap;
759 var set, get, has;
760
761 var enforce = function (it) {
762 return has(it) ? get(it) : set(it, {});
763 };
764
765 var getterFor = function (TYPE) {
766 return function (it) {
767 var state;
768 if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
769 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
770 } return state;
771 };
772 };
773
774 if (NATIVE_WEAK_MAP || shared.state) {
775 var store = shared.state || (shared.state = new WeakMap());
776 /* eslint-disable no-self-assign -- prototype methods protection */
777 store.get = store.get;
778 store.has = store.has;
779 store.set = store.set;
780 /* eslint-enable no-self-assign -- prototype methods protection */
781 set = function (it, metadata) {
782 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
783 metadata.facade = it;
784 store.set(it, metadata);
785 return metadata;
786 };
787 get = function (it) {
788 return store.get(it) || {};
789 };
790 has = function (it) {
791 return store.has(it);
792 };
793 } else {
794 var STATE = sharedKey$1('state');
795 hiddenKeys$3[STATE] = true;
796 set = function (it, metadata) {
797 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
798 metadata.facade = it;
799 createNonEnumerableProperty$1(it, STATE, metadata);
800 return metadata;
801 };
802 get = function (it) {
803 return hasOwn$3(it, STATE) ? it[STATE] : {};
804 };
805 has = function (it) {
806 return hasOwn$3(it, STATE);
807 };
808 }
809
810 var internalState = {
811 set: set,
812 get: get,
813 has: has,
814 enforce: enforce,
815 getterFor: getterFor
816 };
817
818 var uncurryThis$7 = functionUncurryThis;
819 var fails$5 = fails$c;
820 var isCallable$4 = isCallable$c;
821 var hasOwn$2 = hasOwnProperty_1;
822 var DESCRIPTORS$2 = descriptors;
823 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
824 var inspectSource$1 = inspectSource$2;
825 var InternalStateModule = internalState;
826
827 var enforceInternalState = InternalStateModule.enforce;
828 var getInternalState = InternalStateModule.get;
829 var $String = String;
830 // eslint-disable-next-line es/no-object-defineproperty -- safe
831 var defineProperty$2 = Object.defineProperty;
832 var stringSlice = uncurryThis$7(''.slice);
833 var replace = uncurryThis$7(''.replace);
834 var join = uncurryThis$7([].join);
835
836 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
837 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
838 });
839
840 var TEMPLATE = String(String).split('String');
841
842 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
843 if (stringSlice($String(name), 0, 7) === 'Symbol(') {
844 name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
845 }
846 if (options && options.getter) name = 'get ' + name;
847 if (options && options.setter) name = 'set ' + name;
848 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
849 if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
850 else value.name = name;
851 }
852 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
853 defineProperty$2(value, 'length', { value: options.arity });
854 }
855 try {
856 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
857 if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
858 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
859 } else if (value.prototype) value.prototype = undefined;
860 } catch (error) { /* empty */ }
861 var state = enforceInternalState(value);
862 if (!hasOwn$2(state, 'source')) {
863 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
864 } return value;
865 };
866
867 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
868 // eslint-disable-next-line no-extend-native -- required
869 Function.prototype.toString = makeBuiltIn$1(function toString() {
870 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
871 }, 'toString');
872
873 var isCallable$3 = isCallable$c;
874 var definePropertyModule$3 = objectDefineProperty;
875 var makeBuiltIn = makeBuiltInExports;
876 var defineGlobalProperty$1 = defineGlobalProperty$3;
877
878 var defineBuiltIn$2 = function (O, key, value, options) {
879 if (!options) options = {};
880 var simple = options.enumerable;
881 var name = options.name !== undefined ? options.name : key;
882 if (isCallable$3(value)) makeBuiltIn(value, name, options);
883 if (options.global) {
884 if (simple) O[key] = value;
885 else defineGlobalProperty$1(key, value);
886 } else {
887 try {
888 if (!options.unsafe) delete O[key];
889 else if (O[key]) simple = true;
890 } catch (error) { /* empty */ }
891 if (simple) O[key] = value;
892 else definePropertyModule$3.f(O, key, {
893 value: value,
894 enumerable: false,
895 configurable: !options.nonConfigurable,
896 writable: !options.nonWritable
897 });
898 } return O;
899 };
900
901 var objectGetOwnPropertyNames = {};
902
903 var ceil = Math.ceil;
904 var floor = Math.floor;
905
906 // `Math.trunc` method
907 // https://tc39.es/ecma262/#sec-math.trunc
908 // eslint-disable-next-line es/no-math-trunc -- safe
909 var mathTrunc = Math.trunc || function trunc(x) {
910 var n = +x;
911 return (n > 0 ? floor : ceil)(n);
912 };
913
914 var trunc = mathTrunc;
915
916 // `ToIntegerOrInfinity` abstract operation
917 // https://tc39.es/ecma262/#sec-tointegerorinfinity
918 var toIntegerOrInfinity$2 = function (argument) {
919 var number = +argument;
920 // eslint-disable-next-line no-self-compare -- NaN check
921 return number !== number || number === 0 ? 0 : trunc(number);
922 };
923
924 var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
925
926 var max = Math.max;
927 var min$1 = Math.min;
928
929 // Helper for a popular repeating case of the spec:
930 // Let integer be ? ToInteger(index).
931 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
932 var toAbsoluteIndex$1 = function (index, length) {
933 var integer = toIntegerOrInfinity$1(index);
934 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
935 };
936
937 var toIntegerOrInfinity = toIntegerOrInfinity$2;
938
939 var min = Math.min;
940
941 // `ToLength` abstract operation
942 // https://tc39.es/ecma262/#sec-tolength
943 var toLength$1 = function (argument) {
944 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
945 };
946
947 var toLength = toLength$1;
948
949 // `LengthOfArrayLike` abstract operation
950 // https://tc39.es/ecma262/#sec-lengthofarraylike
951 var lengthOfArrayLike$3 = function (obj) {
952 return toLength(obj.length);
953 };
954
955 var toIndexedObject$2 = toIndexedObject$4;
956 var toAbsoluteIndex = toAbsoluteIndex$1;
957 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
958
959 // `Array.prototype.{ indexOf, includes }` methods implementation
960 var createMethod$1 = function (IS_INCLUDES) {
961 return function ($this, el, fromIndex) {
962 var O = toIndexedObject$2($this);
963 var length = lengthOfArrayLike$2(O);
964 var index = toAbsoluteIndex(fromIndex, length);
965 var value;
966 // Array#includes uses SameValueZero equality algorithm
967 // eslint-disable-next-line no-self-compare -- NaN check
968 if (IS_INCLUDES && el != el) while (length > index) {
969 value = O[index++];
970 // eslint-disable-next-line no-self-compare -- NaN check
971 if (value != value) return true;
972 // Array#indexOf ignores holes, Array#includes - not
973 } else for (;length > index; index++) {
974 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
975 } return !IS_INCLUDES && -1;
976 };
977 };
978
979 var arrayIncludes = {
980 // `Array.prototype.includes` method
981 // https://tc39.es/ecma262/#sec-array.prototype.includes
982 includes: createMethod$1(true),
983 // `Array.prototype.indexOf` method
984 // https://tc39.es/ecma262/#sec-array.prototype.indexof
985 indexOf: createMethod$1(false)
986 };
987
988 var uncurryThis$6 = functionUncurryThis;
989 var hasOwn$1 = hasOwnProperty_1;
990 var toIndexedObject$1 = toIndexedObject$4;
991 var indexOf = arrayIncludes.indexOf;
992 var hiddenKeys$2 = hiddenKeys$4;
993
994 var push$1 = uncurryThis$6([].push);
995
996 var objectKeysInternal = function (object, names) {
997 var O = toIndexedObject$1(object);
998 var i = 0;
999 var result = [];
1000 var key;
1001 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
1002 // Don't enum bug & hidden keys
1003 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1004 ~indexOf(result, key) || push$1(result, key);
1005 }
1006 return result;
1007 };
1008
1009 // IE8- don't enum bug keys
1010 var enumBugKeys$3 = [
1011 'constructor',
1012 'hasOwnProperty',
1013 'isPrototypeOf',
1014 'propertyIsEnumerable',
1015 'toLocaleString',
1016 'toString',
1017 'valueOf'
1018 ];
1019
1020 var internalObjectKeys$1 = objectKeysInternal;
1021 var enumBugKeys$2 = enumBugKeys$3;
1022
1023 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1024
1025 // `Object.getOwnPropertyNames` method
1026 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1027 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1028 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1029 return internalObjectKeys$1(O, hiddenKeys$1);
1030 };
1031
1032 var objectGetOwnPropertySymbols = {};
1033
1034 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1035 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1036
1037 var getBuiltIn$2 = getBuiltIn$4;
1038 var uncurryThis$5 = functionUncurryThis;
1039 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1040 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1041 var anObject$2 = anObject$4;
1042
1043 var concat$1 = uncurryThis$5([].concat);
1044
1045 // all object keys, includes non-enumerable and symbols
1046 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1047 var keys = getOwnPropertyNamesModule.f(anObject$2(it));
1048 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1049 return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1050 };
1051
1052 var hasOwn = hasOwnProperty_1;
1053 var ownKeys = ownKeys$1;
1054 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1055 var definePropertyModule$2 = objectDefineProperty;
1056
1057 var copyConstructorProperties$1 = function (target, source, exceptions) {
1058 var keys = ownKeys(source);
1059 var defineProperty = definePropertyModule$2.f;
1060 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1061 for (var i = 0; i < keys.length; i++) {
1062 var key = keys[i];
1063 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1064 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1065 }
1066 }
1067 };
1068
1069 var fails$4 = fails$c;
1070 var isCallable$2 = isCallable$c;
1071
1072 var replacement = /#|\.prototype\./;
1073
1074 var isForced$1 = function (feature, detection) {
1075 var value = data[normalize(feature)];
1076 return value == POLYFILL ? true
1077 : value == NATIVE ? false
1078 : isCallable$2(detection) ? fails$4(detection)
1079 : !!detection;
1080 };
1081
1082 var normalize = isForced$1.normalize = function (string) {
1083 return String(string).replace(replacement, '.').toLowerCase();
1084 };
1085
1086 var data = isForced$1.data = {};
1087 var NATIVE = isForced$1.NATIVE = 'N';
1088 var POLYFILL = isForced$1.POLYFILL = 'P';
1089
1090 var isForced_1 = isForced$1;
1091
1092 var global$1 = global$a;
1093 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1094 var createNonEnumerableProperty = createNonEnumerableProperty$2;
1095 var defineBuiltIn$1 = defineBuiltIn$2;
1096 var defineGlobalProperty = defineGlobalProperty$3;
1097 var copyConstructorProperties = copyConstructorProperties$1;
1098 var isForced = isForced_1;
1099
1100 /*
1101 options.target - name of the target object
1102 options.global - target is the global object
1103 options.stat - export as static methods of target
1104 options.proto - export as prototype methods of target
1105 options.real - real prototype method for the `pure` version
1106 options.forced - export even if the native feature is available
1107 options.bind - bind methods to the target, required for the `pure` version
1108 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1109 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1110 options.sham - add a flag to not completely full polyfills
1111 options.enumerable - export as enumerable property
1112 options.dontCallGetSet - prevent calling a getter on target
1113 options.name - the .name of the function if it does not match the key
1114 */
1115 var _export = function (options, source) {
1116 var TARGET = options.target;
1117 var GLOBAL = options.global;
1118 var STATIC = options.stat;
1119 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1120 if (GLOBAL) {
1121 target = global$1;
1122 } else if (STATIC) {
1123 target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1124 } else {
1125 target = (global$1[TARGET] || {}).prototype;
1126 }
1127 if (target) for (key in source) {
1128 sourceProperty = source[key];
1129 if (options.dontCallGetSet) {
1130 descriptor = getOwnPropertyDescriptor(target, key);
1131 targetProperty = descriptor && descriptor.value;
1132 } else targetProperty = target[key];
1133 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1134 // contained in target
1135 if (!FORCED && targetProperty !== undefined) {
1136 if (typeof sourceProperty == typeof targetProperty) continue;
1137 copyConstructorProperties(sourceProperty, targetProperty);
1138 }
1139 // add a flag to not completely full polyfills
1140 if (options.sham || (targetProperty && targetProperty.sham)) {
1141 createNonEnumerableProperty(sourceProperty, 'sham', true);
1142 }
1143 defineBuiltIn$1(target, key, sourceProperty, options);
1144 }
1145 };
1146
1147 var internalObjectKeys = objectKeysInternal;
1148 var enumBugKeys$1 = enumBugKeys$3;
1149
1150 // `Object.keys` method
1151 // https://tc39.es/ecma262/#sec-object.keys
1152 // eslint-disable-next-line es/no-object-keys -- safe
1153 var objectKeys$2 = Object.keys || function keys(O) {
1154 return internalObjectKeys(O, enumBugKeys$1);
1155 };
1156
1157 var DESCRIPTORS$1 = descriptors;
1158 var uncurryThis$4 = functionUncurryThis;
1159 var call = functionCall;
1160 var fails$3 = fails$c;
1161 var objectKeys$1 = objectKeys$2;
1162 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1163 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1164 var toObject$2 = toObject$4;
1165 var IndexedObject$1 = indexedObject;
1166
1167 // eslint-disable-next-line es/no-object-assign -- safe
1168 var $assign = Object.assign;
1169 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1170 var defineProperty$1 = Object.defineProperty;
1171 var concat = uncurryThis$4([].concat);
1172
1173 // `Object.assign` method
1174 // https://tc39.es/ecma262/#sec-object.assign
1175 var objectAssign = !$assign || fails$3(function () {
1176 // should have correct order of operations (Edge bug)
1177 if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1178 enumerable: true,
1179 get: function () {
1180 defineProperty$1(this, 'b', {
1181 value: 3,
1182 enumerable: false
1183 });
1184 }
1185 }), { b: 2 })).b !== 1) return true;
1186 // should work with symbols and should have deterministic property order (V8 bug)
1187 var A = {};
1188 var B = {};
1189 // eslint-disable-next-line es/no-symbol -- safe
1190 var symbol = Symbol();
1191 var alphabet = 'abcdefghijklmnopqrst';
1192 A[symbol] = 7;
1193 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1194 return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1195 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1196 var T = toObject$2(target);
1197 var argumentsLength = arguments.length;
1198 var index = 1;
1199 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1200 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1201 while (argumentsLength > index) {
1202 var S = IndexedObject$1(arguments[index++]);
1203 var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1204 var length = keys.length;
1205 var j = 0;
1206 var key;
1207 while (length > j) {
1208 key = keys[j++];
1209 if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1210 }
1211 } return T;
1212 } : $assign;
1213
1214 var $$2 = _export;
1215 var assign = objectAssign;
1216
1217 // `Object.assign` method
1218 // https://tc39.es/ecma262/#sec-object.assign
1219 // eslint-disable-next-line es/no-object-assign -- required for testing
1220 $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1221 assign: assign
1222 });
1223
1224 var classof$3 = classofRaw$2;
1225
1226 // `IsArray` abstract operation
1227 // https://tc39.es/ecma262/#sec-isarray
1228 // eslint-disable-next-line es/no-array-isarray -- safe
1229 var isArray$2 = Array.isArray || function isArray(argument) {
1230 return classof$3(argument) == 'Array';
1231 };
1232
1233 var $TypeError = TypeError;
1234 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1235
1236 var doesNotExceedSafeInteger$1 = function (it) {
1237 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
1238 return it;
1239 };
1240
1241 var toPropertyKey = toPropertyKey$3;
1242 var definePropertyModule$1 = objectDefineProperty;
1243 var createPropertyDescriptor = createPropertyDescriptor$3;
1244
1245 var createProperty$1 = function (object, key, value) {
1246 var propertyKey = toPropertyKey(key);
1247 if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
1248 else object[propertyKey] = value;
1249 };
1250
1251 var wellKnownSymbol$5 = wellKnownSymbol$7;
1252
1253 var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1254 var test = {};
1255
1256 test[TO_STRING_TAG$1] = 'z';
1257
1258 var toStringTagSupport = String(test) === '[object z]';
1259
1260 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1261 var isCallable$1 = isCallable$c;
1262 var classofRaw$1 = classofRaw$2;
1263 var wellKnownSymbol$4 = wellKnownSymbol$7;
1264
1265 var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1266 var $Object = Object;
1267
1268 // ES3 wrong here
1269 var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1270
1271 // fallback for IE11 Script Access Denied error
1272 var tryGet = function (it, key) {
1273 try {
1274 return it[key];
1275 } catch (error) { /* empty */ }
1276 };
1277
1278 // getting tag from ES6+ `Object.prototype.toString`
1279 var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1280 var O, tag, result;
1281 return it === undefined ? 'Undefined' : it === null ? 'Null'
1282 // @@toStringTag case
1283 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1284 // builtinTag case
1285 : CORRECT_ARGUMENTS ? classofRaw$1(O)
1286 // ES3 arguments fallback
1287 : (result = classofRaw$1(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1288 };
1289
1290 var uncurryThis$3 = functionUncurryThis;
1291 var fails$2 = fails$c;
1292 var isCallable = isCallable$c;
1293 var classof$1 = classof$2;
1294 var getBuiltIn$1 = getBuiltIn$4;
1295 var inspectSource = inspectSource$2;
1296
1297 var noop = function () { /* empty */ };
1298 var empty = [];
1299 var construct = getBuiltIn$1('Reflect', 'construct');
1300 var constructorRegExp = /^\s*(?:class|function)\b/;
1301 var exec = uncurryThis$3(constructorRegExp.exec);
1302 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1303
1304 var isConstructorModern = function isConstructor(argument) {
1305 if (!isCallable(argument)) return false;
1306 try {
1307 construct(noop, empty, argument);
1308 return true;
1309 } catch (error) {
1310 return false;
1311 }
1312 };
1313
1314 var isConstructorLegacy = function isConstructor(argument) {
1315 if (!isCallable(argument)) return false;
1316 switch (classof$1(argument)) {
1317 case 'AsyncFunction':
1318 case 'GeneratorFunction':
1319 case 'AsyncGeneratorFunction': return false;
1320 }
1321 try {
1322 // we can't check .prototype since constructors produced by .bind haven't it
1323 // `Function#toString` throws on some built-it function in some legacy engines
1324 // (for example, `DOMQuad` and similar in FF41-)
1325 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1326 } catch (error) {
1327 return true;
1328 }
1329 };
1330
1331 isConstructorLegacy.sham = true;
1332
1333 // `IsConstructor` abstract operation
1334 // https://tc39.es/ecma262/#sec-isconstructor
1335 var isConstructor$1 = !construct || fails$2(function () {
1336 var called;
1337 return isConstructorModern(isConstructorModern.call)
1338 || !isConstructorModern(Object)
1339 || !isConstructorModern(function () { called = true; })
1340 || called;
1341 }) ? isConstructorLegacy : isConstructorModern;
1342
1343 var isArray$1 = isArray$2;
1344 var isConstructor = isConstructor$1;
1345 var isObject$1 = isObject$7;
1346 var wellKnownSymbol$3 = wellKnownSymbol$7;
1347
1348 var SPECIES$1 = wellKnownSymbol$3('species');
1349 var $Array = Array;
1350
1351 // a part of `ArraySpeciesCreate` abstract operation
1352 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1353 var arraySpeciesConstructor$1 = function (originalArray) {
1354 var C;
1355 if (isArray$1(originalArray)) {
1356 C = originalArray.constructor;
1357 // cross-realm fallback
1358 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1359 else if (isObject$1(C)) {
1360 C = C[SPECIES$1];
1361 if (C === null) C = undefined;
1362 }
1363 } return C === undefined ? $Array : C;
1364 };
1365
1366 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1367
1368 // `ArraySpeciesCreate` abstract operation
1369 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1370 var arraySpeciesCreate$2 = function (originalArray, length) {
1371 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1372 };
1373
1374 var fails$1 = fails$c;
1375 var wellKnownSymbol$2 = wellKnownSymbol$7;
1376 var V8_VERSION$1 = engineV8Version;
1377
1378 var SPECIES = wellKnownSymbol$2('species');
1379
1380 var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
1381 // We can't use this feature detection in V8 since it causes
1382 // deoptimization and serious performance degradation
1383 // https://github.com/zloirock/core-js/issues/677
1384 return V8_VERSION$1 >= 51 || !fails$1(function () {
1385 var array = [];
1386 var constructor = array.constructor = {};
1387 constructor[SPECIES] = function () {
1388 return { foo: 1 };
1389 };
1390 return array[METHOD_NAME](Boolean).foo !== 1;
1391 });
1392 };
1393
1394 var $$1 = _export;
1395 var fails = fails$c;
1396 var isArray = isArray$2;
1397 var isObject = isObject$7;
1398 var toObject$1 = toObject$4;
1399 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1400 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1401 var createProperty = createProperty$1;
1402 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1403 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
1404 var wellKnownSymbol$1 = wellKnownSymbol$7;
1405 var V8_VERSION = engineV8Version;
1406
1407 var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
1408
1409 // We can't use this feature detection in V8 since it causes
1410 // deoptimization and serious performance degradation
1411 // https://github.com/zloirock/core-js/issues/679
1412 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
1413 var array = [];
1414 array[IS_CONCAT_SPREADABLE] = false;
1415 return array.concat()[0] !== array;
1416 });
1417
1418 var isConcatSpreadable = function (O) {
1419 if (!isObject(O)) return false;
1420 var spreadable = O[IS_CONCAT_SPREADABLE];
1421 return spreadable !== undefined ? !!spreadable : isArray(O);
1422 };
1423
1424 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
1425
1426 // `Array.prototype.concat` method
1427 // https://tc39.es/ecma262/#sec-array.prototype.concat
1428 // with adding support of @@isConcatSpreadable and @@species
1429 $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1430 // eslint-disable-next-line no-unused-vars -- required for `.length`
1431 concat: function concat(arg) {
1432 var O = toObject$1(this);
1433 var A = arraySpeciesCreate$1(O, 0);
1434 var n = 0;
1435 var i, k, length, len, E;
1436 for (i = -1, length = arguments.length; i < length; i++) {
1437 E = i === -1 ? O : arguments[i];
1438 if (isConcatSpreadable(E)) {
1439 len = lengthOfArrayLike$1(E);
1440 doesNotExceedSafeInteger(n + len);
1441 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1442 } else {
1443 doesNotExceedSafeInteger(n + 1);
1444 createProperty(A, n++, E);
1445 }
1446 }
1447 A.length = n;
1448 return A;
1449 }
1450 });
1451
1452 var classofRaw = classofRaw$2;
1453 var uncurryThis$2 = functionUncurryThis;
1454
1455 var functionUncurryThisClause = function (fn) {
1456 // Nashorn bug:
1457 // https://github.com/zloirock/core-js/issues/1128
1458 // https://github.com/zloirock/core-js/issues/1130
1459 if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1460 };
1461
1462 var uncurryThis$1 = functionUncurryThisClause;
1463 var aCallable = aCallable$2;
1464 var NATIVE_BIND = functionBindNative;
1465
1466 var bind$1 = uncurryThis$1(uncurryThis$1.bind);
1467
1468 // optional / simple context binding
1469 var functionBindContext = function (fn, that) {
1470 aCallable(fn);
1471 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1472 return fn.apply(that, arguments);
1473 };
1474 };
1475
1476 var bind = functionBindContext;
1477 var uncurryThis = functionUncurryThis;
1478 var IndexedObject = indexedObject;
1479 var toObject = toObject$4;
1480 var lengthOfArrayLike = lengthOfArrayLike$3;
1481 var arraySpeciesCreate = arraySpeciesCreate$2;
1482
1483 var push = uncurryThis([].push);
1484
1485 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1486 var createMethod = function (TYPE) {
1487 var IS_MAP = TYPE == 1;
1488 var IS_FILTER = TYPE == 2;
1489 var IS_SOME = TYPE == 3;
1490 var IS_EVERY = TYPE == 4;
1491 var IS_FIND_INDEX = TYPE == 6;
1492 var IS_FILTER_REJECT = TYPE == 7;
1493 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1494 return function ($this, callbackfn, that, specificCreate) {
1495 var O = toObject($this);
1496 var self = IndexedObject(O);
1497 var boundFunction = bind(callbackfn, that);
1498 var length = lengthOfArrayLike(self);
1499 var index = 0;
1500 var create = specificCreate || arraySpeciesCreate;
1501 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1502 var value, result;
1503 for (;length > index; index++) if (NO_HOLES || index in self) {
1504 value = self[index];
1505 result = boundFunction(value, index, O);
1506 if (TYPE) {
1507 if (IS_MAP) target[index] = result; // map
1508 else if (result) switch (TYPE) {
1509 case 3: return true; // some
1510 case 5: return value; // find
1511 case 6: return index; // findIndex
1512 case 2: push(target, value); // filter
1513 } else switch (TYPE) {
1514 case 4: return false; // every
1515 case 7: push(target, value); // filterReject
1516 }
1517 }
1518 }
1519 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1520 };
1521 };
1522
1523 var arrayIteration = {
1524 // `Array.prototype.forEach` method
1525 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1526 forEach: createMethod(0),
1527 // `Array.prototype.map` method
1528 // https://tc39.es/ecma262/#sec-array.prototype.map
1529 map: createMethod(1),
1530 // `Array.prototype.filter` method
1531 // https://tc39.es/ecma262/#sec-array.prototype.filter
1532 filter: createMethod(2),
1533 // `Array.prototype.some` method
1534 // https://tc39.es/ecma262/#sec-array.prototype.some
1535 some: createMethod(3),
1536 // `Array.prototype.every` method
1537 // https://tc39.es/ecma262/#sec-array.prototype.every
1538 every: createMethod(4),
1539 // `Array.prototype.find` method
1540 // https://tc39.es/ecma262/#sec-array.prototype.find
1541 find: createMethod(5),
1542 // `Array.prototype.findIndex` method
1543 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1544 findIndex: createMethod(6),
1545 // `Array.prototype.filterReject` method
1546 // https://github.com/tc39/proposal-array-filtering
1547 filterReject: createMethod(7)
1548 };
1549
1550 var objectDefineProperties = {};
1551
1552 var DESCRIPTORS = descriptors;
1553 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1554 var definePropertyModule = objectDefineProperty;
1555 var anObject$1 = anObject$4;
1556 var toIndexedObject = toIndexedObject$4;
1557 var objectKeys = objectKeys$2;
1558
1559 // `Object.defineProperties` method
1560 // https://tc39.es/ecma262/#sec-object.defineproperties
1561 // eslint-disable-next-line es/no-object-defineproperties -- safe
1562 objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1563 anObject$1(O);
1564 var props = toIndexedObject(Properties);
1565 var keys = objectKeys(Properties);
1566 var length = keys.length;
1567 var index = 0;
1568 var key;
1569 while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1570 return O;
1571 };
1572
1573 var getBuiltIn = getBuiltIn$4;
1574
1575 var html$1 = getBuiltIn('document', 'documentElement');
1576
1577 /* global ActiveXObject -- old IE, WSH */
1578
1579 var anObject = anObject$4;
1580 var definePropertiesModule = objectDefineProperties;
1581 var enumBugKeys = enumBugKeys$3;
1582 var hiddenKeys = hiddenKeys$4;
1583 var html = html$1;
1584 var documentCreateElement = documentCreateElement$1;
1585 var sharedKey = sharedKey$2;
1586
1587 var GT = '>';
1588 var LT = '<';
1589 var PROTOTYPE = 'prototype';
1590 var SCRIPT = 'script';
1591 var IE_PROTO = sharedKey('IE_PROTO');
1592
1593 var EmptyConstructor = function () { /* empty */ };
1594
1595 var scriptTag = function (content) {
1596 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1597 };
1598
1599 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1600 var NullProtoObjectViaActiveX = function (activeXDocument) {
1601 activeXDocument.write(scriptTag(''));
1602 activeXDocument.close();
1603 var temp = activeXDocument.parentWindow.Object;
1604 activeXDocument = null; // avoid memory leak
1605 return temp;
1606 };
1607
1608 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1609 var NullProtoObjectViaIFrame = function () {
1610 // Thrash, waste and sodomy: IE GC bug
1611 var iframe = documentCreateElement('iframe');
1612 var JS = 'java' + SCRIPT + ':';
1613 var iframeDocument;
1614 iframe.style.display = 'none';
1615 html.appendChild(iframe);
1616 // https://github.com/zloirock/core-js/issues/475
1617 iframe.src = String(JS);
1618 iframeDocument = iframe.contentWindow.document;
1619 iframeDocument.open();
1620 iframeDocument.write(scriptTag('document.F=Object'));
1621 iframeDocument.close();
1622 return iframeDocument.F;
1623 };
1624
1625 // Check for document.domain and active x support
1626 // No need to use active x approach when document.domain is not set
1627 // see https://github.com/es-shims/es5-shim/issues/150
1628 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1629 // avoid IE GC bug
1630 var activeXDocument;
1631 var NullProtoObject = function () {
1632 try {
1633 activeXDocument = new ActiveXObject('htmlfile');
1634 } catch (error) { /* ignore */ }
1635 NullProtoObject = typeof document != 'undefined'
1636 ? document.domain && activeXDocument
1637 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1638 : NullProtoObjectViaIFrame()
1639 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1640 var length = enumBugKeys.length;
1641 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1642 return NullProtoObject();
1643 };
1644
1645 hiddenKeys[IE_PROTO] = true;
1646
1647 // `Object.create` method
1648 // https://tc39.es/ecma262/#sec-object.create
1649 // eslint-disable-next-line es/no-object-create -- safe
1650 var objectCreate = Object.create || function create(O, Properties) {
1651 var result;
1652 if (O !== null) {
1653 EmptyConstructor[PROTOTYPE] = anObject(O);
1654 result = new EmptyConstructor();
1655 EmptyConstructor[PROTOTYPE] = null;
1656 // add "__proto__" for Object.getPrototypeOf polyfill
1657 result[IE_PROTO] = O;
1658 } else result = NullProtoObject();
1659 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1660 };
1661
1662 var wellKnownSymbol = wellKnownSymbol$7;
1663 var create = objectCreate;
1664 var defineProperty = objectDefineProperty.f;
1665
1666 var UNSCOPABLES = wellKnownSymbol('unscopables');
1667 var ArrayPrototype = Array.prototype;
1668
1669 // Array.prototype[@@unscopables]
1670 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1671 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1672 defineProperty(ArrayPrototype, UNSCOPABLES, {
1673 configurable: true,
1674 value: create(null)
1675 });
1676 }
1677
1678 // add a key to Array.prototype[@@unscopables]
1679 var addToUnscopables$1 = function (key) {
1680 ArrayPrototype[UNSCOPABLES][key] = true;
1681 };
1682
1683 var $ = _export;
1684 var $find = arrayIteration.find;
1685 var addToUnscopables = addToUnscopables$1;
1686
1687 var FIND = 'find';
1688 var SKIPS_HOLES = true;
1689
1690 // Shouldn't skip holes
1691 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1692
1693 // `Array.prototype.find` method
1694 // https://tc39.es/ecma262/#sec-array.prototype.find
1695 $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1696 find: function find(callbackfn /* , that = undefined */) {
1697 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1698 }
1699 });
1700
1701 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1702 addToUnscopables(FIND);
1703
1704 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1705 var classof = classof$2;
1706
1707 // `Object.prototype.toString` method implementation
1708 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1709 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1710 return '[object ' + classof(this) + ']';
1711 };
1712
1713 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1714 var defineBuiltIn = defineBuiltIn$2;
1715 var toString = objectToString;
1716
1717 // `Object.prototype.toString` method
1718 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1719 if (!TO_STRING_TAG_SUPPORT) {
1720 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
1721 }
1722
1723 /**
1724 * @author vincent loh <vincent.ml@gmail.com>
1725 * @update J Manuel Corona <jmcg92@gmail.com>
1726 * @update zhixin wen <wenzhixin2010@gmail.com>
1727 */
1728
1729 var Utils = $$3.fn.bootstrapTable.utils;
1730 Object.assign($$3.fn.bootstrapTable.defaults, {
1731 stickyHeader: false,
1732 stickyHeaderOffsetY: 0,
1733 stickyHeaderOffsetLeft: 0,
1734 stickyHeaderOffsetRight: 0
1735 });
1736 $$3.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1737 _inherits(_class, _$$BootstrapTable);
1738 var _super = _createSuper(_class);
1739 function _class() {
1740 _classCallCheck(this, _class);
1741 return _super.apply(this, arguments);
1742 }
1743 _createClass(_class, [{
1744 key: "initHeader",
1745 value: function initHeader() {
1746 var _get2,
1747 _this = this;
1748 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1749 args[_key] = arguments[_key];
1750 }
1751 (_get2 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get2, [this].concat(args));
1752 if (!this.options.stickyHeader) {
1753 return;
1754 }
1755 this.$tableBody.find('.sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end').remove();
1756 this.$el.before('<div class="sticky-header-container"></div>');
1757 this.$el.before('<div class="sticky_anchor_begin"></div>');
1758 this.$el.after('<div class="sticky_anchor_end"></div>');
1759 this.$header.addClass('sticky-header');
1760
1761 // clone header just once, to be used as sticky header
1762 // deep clone header, using source header affects tbody>td width
1763 this.$stickyContainer = this.$tableBody.find('.sticky-header-container');
1764 this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin');
1765 this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');
1766 this.$stickyHeader = this.$header.clone(true, true);
1767
1768 // render sticky on window scroll or resize
1769 var resizeEvent = Utils.getEventName('resize.sticky-header-table', this.$el.attr('id'));
1770 var scrollEvent = Utils.getEventName('scroll.sticky-header-table', this.$el.attr('id'));
1771 $$3(window).off(resizeEvent).on(resizeEvent, function () {
1772 return _this.renderStickyHeader();
1773 });
1774 $$3(window).off(scrollEvent).on(scrollEvent, function () {
1775 return _this.renderStickyHeader();
1776 });
1777 this.$tableBody.off('scroll').on('scroll', function () {
1778 return _this.matchPositionX();
1779 });
1780 }
1781 }, {
1782 key: "onColumnSearch",
1783 value: function onColumnSearch(_ref) {
1784 var currentTarget = _ref.currentTarget,
1785 keyCode = _ref.keyCode;
1786 _get(_getPrototypeOf(_class.prototype), "onColumnSearch", this).call(this, {
1787 currentTarget: currentTarget,
1788 keyCode: keyCode
1789 });
1790 this.renderStickyHeader();
1791 }
1792 }, {
1793 key: "resetView",
1794 value: function resetView() {
1795 var _get3,
1796 _this2 = this;
1797 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1798 args[_key2] = arguments[_key2];
1799 }
1800 (_get3 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get3, [this].concat(args));
1801 $$3('.bootstrap-table.fullscreen').off('scroll').on('scroll', function () {
1802 return _this2.renderStickyHeader();
1803 });
1804 }
1805 }, {
1806 key: "getCaret",
1807 value: function getCaret() {
1808 var _get4;
1809 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1810 args[_key3] = arguments[_key3];
1811 }
1812 (_get4 = _get(_getPrototypeOf(_class.prototype), "getCaret", this)).call.apply(_get4, [this].concat(args));
1813 if (this.$stickyHeader) {
1814 var $ths = this.$stickyHeader.find('th');
1815 this.$header.find('th').each(function (i, th) {
1816 $ths.eq(i).find('.sortable').attr('class', $$3(th).find('.sortable').attr('class'));
1817 });
1818 }
1819 }
1820 }, {
1821 key: "horizontalScroll",
1822 value: function horizontalScroll() {
1823 var _this3 = this;
1824 _get(_getPrototypeOf(_class.prototype), "horizontalScroll", this).call(this);
1825 this.$tableBody.on('scroll', function () {
1826 return _this3.matchPositionX();
1827 });
1828 }
1829 }, {
1830 key: "renderStickyHeader",
1831 value: function renderStickyHeader() {
1832 var _this4 = this;
1833 var that = this;
1834 this.$stickyHeader = this.$header.clone(true, true);
1835 if (this.options.filterControl) {
1836 $$3(this.$stickyHeader).off('keyup change mouseup').on('keyup change mouse', function (e) {
1837 var $target = $$3(e.target);
1838 var value = $target.val();
1839 var field = $target.parents('th').data('field');
1840 var $coreTh = that.$header.find("th[data-field=\"".concat(field, "\"]"));
1841 if ($target.is('input')) {
1842 $coreTh.find('input').val(value);
1843 } else if ($target.is('select')) {
1844 var $select = $coreTh.find('select');
1845 $select.find('option[selected]').removeAttr('selected');
1846 $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
1847 }
1848 that.triggerSearch();
1849 });
1850 }
1851 var top = $$3(window).scrollTop();
1852 // top anchor scroll position, minus header height
1853 var start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY;
1854 // bottom anchor scroll position, minus header height, minus sticky height
1855 var end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height();
1856
1857 // show sticky when top anchor touches header, and when bottom anchor not exceeded
1858 if (top > start && top <= end) {
1859 // ensure clone and source column widths are the same
1860 this.$stickyHeader.find('tr').each(function (indexRows, rows) {
1861 var columns = $$3(rows).find('th');
1862 columns.each(function (indexColumns, celd) {
1863 $$3(celd).css('min-width', _this4.$header.find("tr:eq(".concat(indexRows, ")")).find("th:eq(".concat(indexColumns, ")")).css('width'));
1864 });
1865 });
1866 // match bootstrap table style
1867 this.$stickyContainer.show().addClass('fix-sticky fixed-table-container');
1868 // stick it in position
1869 var coords = this.$tableBody[0].getBoundingClientRect();
1870 var width = '100%';
1871 var stickyHeaderOffsetLeft = this.options.stickyHeaderOffsetLeft;
1872 var stickyHeaderOffsetRight = this.options.stickyHeaderOffsetRight;
1873 if (!stickyHeaderOffsetLeft) {
1874 stickyHeaderOffsetLeft = coords.left;
1875 }
1876 if (!stickyHeaderOffsetRight) {
1877 width = "".concat(coords.width, "px");
1878 }
1879 if (this.$el.closest('.bootstrap-table').hasClass('fullscreen')) {
1880 stickyHeaderOffsetLeft = 0;
1881 stickyHeaderOffsetRight = 0;
1882 width = '100%';
1883 }
1884 this.$stickyContainer.css('top', "".concat(this.options.stickyHeaderOffsetY, "px"));
1885 this.$stickyContainer.css('left', "".concat(stickyHeaderOffsetLeft, "px"));
1886 this.$stickyContainer.css('right', "".concat(stickyHeaderOffsetRight, "px"));
1887 this.$stickyContainer.css('width', "".concat(width));
1888 // create scrollable container for header
1889 this.$stickyTable = $$3('<table/>');
1890 this.$stickyTable.addClass(this.options.classes);
1891 // append cloned header to dom
1892 this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader));
1893 // match clone and source header positions when left-right scroll
1894 this.matchPositionX();
1895 } else {
1896 this.$stickyContainer.removeClass('fix-sticky').hide();
1897 }
1898 }
1899 }, {
1900 key: "matchPositionX",
1901 value: function matchPositionX() {
1902 this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft());
1903 }
1904 }]);
1905 return _class;
1906 }($$3.BootstrapTable);
1907
1908}));