UNPKG

42.1 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 _classCallCheck(instance, Constructor) {
12 if (!(instance instanceof Constructor)) {
13 throw new TypeError("Cannot call a class as a function");
14 }
15 }
16
17 function _defineProperties(target, props) {
18 for (var i = 0; i < props.length; i++) {
19 var descriptor = props[i];
20 descriptor.enumerable = descriptor.enumerable || false;
21 descriptor.configurable = true;
22 if ("value" in descriptor) descriptor.writable = true;
23 Object.defineProperty(target, descriptor.key, descriptor);
24 }
25 }
26
27 function _createClass(Constructor, protoProps, staticProps) {
28 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29 if (staticProps) _defineProperties(Constructor, staticProps);
30 Object.defineProperty(Constructor, "prototype", {
31 writable: false
32 });
33 return Constructor;
34 }
35
36 function _inherits(subClass, superClass) {
37 if (typeof superClass !== "function" && superClass !== null) {
38 throw new TypeError("Super expression must either be null or a function");
39 }
40
41 subClass.prototype = Object.create(superClass && superClass.prototype, {
42 constructor: {
43 value: subClass,
44 writable: true,
45 configurable: true
46 }
47 });
48 Object.defineProperty(subClass, "prototype", {
49 writable: false
50 });
51 if (superClass) _setPrototypeOf(subClass, superClass);
52 }
53
54 function _getPrototypeOf(o) {
55 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
56 return o.__proto__ || Object.getPrototypeOf(o);
57 };
58 return _getPrototypeOf(o);
59 }
60
61 function _setPrototypeOf(o, p) {
62 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
63 o.__proto__ = p;
64 return o;
65 };
66
67 return _setPrototypeOf(o, p);
68 }
69
70 function _isNativeReflectConstruct() {
71 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
72 if (Reflect.construct.sham) return false;
73 if (typeof Proxy === "function") return true;
74
75 try {
76 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
77 return true;
78 } catch (e) {
79 return false;
80 }
81 }
82
83 function _assertThisInitialized(self) {
84 if (self === void 0) {
85 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
86 }
87
88 return self;
89 }
90
91 function _possibleConstructorReturn(self, call) {
92 if (call && (typeof call === "object" || typeof call === "function")) {
93 return call;
94 } else if (call !== void 0) {
95 throw new TypeError("Derived constructors may only return object or undefined");
96 }
97
98 return _assertThisInitialized(self);
99 }
100
101 function _createSuper(Derived) {
102 var hasNativeReflectConstruct = _isNativeReflectConstruct();
103
104 return function _createSuperInternal() {
105 var Super = _getPrototypeOf(Derived),
106 result;
107
108 if (hasNativeReflectConstruct) {
109 var NewTarget = _getPrototypeOf(this).constructor;
110
111 result = Reflect.construct(Super, arguments, NewTarget);
112 } else {
113 result = Super.apply(this, arguments);
114 }
115
116 return _possibleConstructorReturn(this, result);
117 };
118 }
119
120 function _superPropBase(object, property) {
121 while (!Object.prototype.hasOwnProperty.call(object, property)) {
122 object = _getPrototypeOf(object);
123 if (object === null) break;
124 }
125
126 return object;
127 }
128
129 function _get() {
130 if (typeof Reflect !== "undefined" && Reflect.get) {
131 _get = Reflect.get;
132 } else {
133 _get = function _get(target, property, receiver) {
134 var base = _superPropBase(target, property);
135
136 if (!base) return;
137 var desc = Object.getOwnPropertyDescriptor(base, property);
138
139 if (desc.get) {
140 return desc.get.call(arguments.length < 3 ? target : receiver);
141 }
142
143 return desc.value;
144 };
145 }
146
147 return _get.apply(this, arguments);
148 }
149
150 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
151
152 function createCommonjsModule(fn, module) {
153 return module = { exports: {} }, fn(module, module.exports), module.exports;
154 }
155
156 var check = function (it) {
157 return it && it.Math == Math && it;
158 };
159
160 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
161 var global_1 =
162 // eslint-disable-next-line es-x/no-global-this -- safe
163 check(typeof globalThis == 'object' && globalThis) ||
164 check(typeof window == 'object' && window) ||
165 // eslint-disable-next-line no-restricted-globals -- safe
166 check(typeof self == 'object' && self) ||
167 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
168 // eslint-disable-next-line no-new-func -- fallback
169 (function () { return this; })() || Function('return this')();
170
171 var fails = function (exec) {
172 try {
173 return !!exec();
174 } catch (error) {
175 return true;
176 }
177 };
178
179 // Detect IE8's incomplete defineProperty implementation
180 var descriptors = !fails(function () {
181 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
182 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
183 });
184
185 var functionBindNative = !fails(function () {
186 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
187 var test = (function () { /* empty */ }).bind();
188 // eslint-disable-next-line no-prototype-builtins -- safe
189 return typeof test != 'function' || test.hasOwnProperty('prototype');
190 });
191
192 var call$1 = Function.prototype.call;
193
194 var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
195 return call$1.apply(call$1, arguments);
196 };
197
198 var $propertyIsEnumerable = {}.propertyIsEnumerable;
199 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
200 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
201
202 // Nashorn ~ JDK8 bug
203 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
204
205 // `Object.prototype.propertyIsEnumerable` method implementation
206 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
207 var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
208 var descriptor = getOwnPropertyDescriptor$1(this, V);
209 return !!descriptor && descriptor.enumerable;
210 } : $propertyIsEnumerable;
211
212 var objectPropertyIsEnumerable = {
213 f: f$4
214 };
215
216 var createPropertyDescriptor = function (bitmap, value) {
217 return {
218 enumerable: !(bitmap & 1),
219 configurable: !(bitmap & 2),
220 writable: !(bitmap & 4),
221 value: value
222 };
223 };
224
225 var FunctionPrototype$1 = Function.prototype;
226 var bind = FunctionPrototype$1.bind;
227 var call = FunctionPrototype$1.call;
228 var uncurryThis = functionBindNative && bind.bind(call, call);
229
230 var functionUncurryThis = functionBindNative ? function (fn) {
231 return fn && uncurryThis(fn);
232 } : function (fn) {
233 return fn && function () {
234 return call.apply(fn, arguments);
235 };
236 };
237
238 var toString$1 = functionUncurryThis({}.toString);
239 var stringSlice = functionUncurryThis(''.slice);
240
241 var classofRaw = function (it) {
242 return stringSlice(toString$1(it), 8, -1);
243 };
244
245 var Object$4 = global_1.Object;
246 var split = functionUncurryThis(''.split);
247
248 // fallback for non-array-like ES3 and non-enumerable old V8 strings
249 var indexedObject = fails(function () {
250 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
251 // eslint-disable-next-line no-prototype-builtins -- safe
252 return !Object$4('z').propertyIsEnumerable(0);
253 }) ? function (it) {
254 return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
255 } : Object$4;
256
257 var TypeError$8 = global_1.TypeError;
258
259 // `RequireObjectCoercible` abstract operation
260 // https://tc39.es/ecma262/#sec-requireobjectcoercible
261 var requireObjectCoercible = function (it) {
262 if (it == undefined) throw TypeError$8("Can't call method on " + it);
263 return it;
264 };
265
266 // toObject with fallback for non-array-like ES3 strings
267
268
269
270 var toIndexedObject = function (it) {
271 return indexedObject(requireObjectCoercible(it));
272 };
273
274 // `IsCallable` abstract operation
275 // https://tc39.es/ecma262/#sec-iscallable
276 var isCallable = function (argument) {
277 return typeof argument == 'function';
278 };
279
280 var isObject = function (it) {
281 return typeof it == 'object' ? it !== null : isCallable(it);
282 };
283
284 var aFunction = function (argument) {
285 return isCallable(argument) ? argument : undefined;
286 };
287
288 var getBuiltIn = function (namespace, method) {
289 return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
290 };
291
292 var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
293
294 var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
295
296 var process = global_1.process;
297 var Deno = global_1.Deno;
298 var versions = process && process.versions || Deno && Deno.version;
299 var v8 = versions && versions.v8;
300 var match, version;
301
302 if (v8) {
303 match = v8.split('.');
304 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
305 // but their correct versions are not interesting for us
306 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
307 }
308
309 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
310 // so check `userAgent` even if `.v8` exists, but 0
311 if (!version && engineUserAgent) {
312 match = engineUserAgent.match(/Edge\/(\d+)/);
313 if (!match || match[1] >= 74) {
314 match = engineUserAgent.match(/Chrome\/(\d+)/);
315 if (match) version = +match[1];
316 }
317 }
318
319 var engineV8Version = version;
320
321 /* eslint-disable es-x/no-symbol -- required for testing */
322
323
324
325 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
326 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
327 var symbol = Symbol();
328 // Chrome 38 Symbol has incorrect toString conversion
329 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
330 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
331 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
332 !Symbol.sham && engineV8Version && engineV8Version < 41;
333 });
334
335 /* eslint-disable es-x/no-symbol -- required for testing */
336
337
338 var useSymbolAsUid = nativeSymbol
339 && !Symbol.sham
340 && typeof Symbol.iterator == 'symbol';
341
342 var Object$3 = global_1.Object;
343
344 var isSymbol = useSymbolAsUid ? function (it) {
345 return typeof it == 'symbol';
346 } : function (it) {
347 var $Symbol = getBuiltIn('Symbol');
348 return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
349 };
350
351 var String$2 = global_1.String;
352
353 var tryToString = function (argument) {
354 try {
355 return String$2(argument);
356 } catch (error) {
357 return 'Object';
358 }
359 };
360
361 var TypeError$7 = global_1.TypeError;
362
363 // `Assert: IsCallable(argument) is true`
364 var aCallable = function (argument) {
365 if (isCallable(argument)) return argument;
366 throw TypeError$7(tryToString(argument) + ' is not a function');
367 };
368
369 // `GetMethod` abstract operation
370 // https://tc39.es/ecma262/#sec-getmethod
371 var getMethod = function (V, P) {
372 var func = V[P];
373 return func == null ? undefined : aCallable(func);
374 };
375
376 var TypeError$6 = global_1.TypeError;
377
378 // `OrdinaryToPrimitive` abstract operation
379 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
380 var ordinaryToPrimitive = function (input, pref) {
381 var fn, val;
382 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
383 if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
384 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
385 throw TypeError$6("Can't convert object to primitive value");
386 };
387
388 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
389 var defineProperty = Object.defineProperty;
390
391 var setGlobal = function (key, value) {
392 try {
393 defineProperty(global_1, key, { value: value, configurable: true, writable: true });
394 } catch (error) {
395 global_1[key] = value;
396 } return value;
397 };
398
399 var SHARED = '__core-js_shared__';
400 var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
401
402 var sharedStore = store$1;
403
404 var shared = createCommonjsModule(function (module) {
405 (module.exports = function (key, value) {
406 return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
407 })('versions', []).push({
408 version: '3.22.4',
409 mode: 'global',
410 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
411 license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
412 source: 'https://github.com/zloirock/core-js'
413 });
414 });
415
416 var Object$2 = global_1.Object;
417
418 // `ToObject` abstract operation
419 // https://tc39.es/ecma262/#sec-toobject
420 var toObject = function (argument) {
421 return Object$2(requireObjectCoercible(argument));
422 };
423
424 var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
425
426 // `HasOwnProperty` abstract operation
427 // https://tc39.es/ecma262/#sec-hasownproperty
428 // eslint-disable-next-line es-x/no-object-hasown -- safe
429 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
430 return hasOwnProperty(toObject(it), key);
431 };
432
433 var id = 0;
434 var postfix = Math.random();
435 var toString = functionUncurryThis(1.0.toString);
436
437 var uid = function (key) {
438 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
439 };
440
441 var WellKnownSymbolsStore = shared('wks');
442 var Symbol$1 = global_1.Symbol;
443 var symbolFor = Symbol$1 && Symbol$1['for'];
444 var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
445
446 var wellKnownSymbol = function (name) {
447 if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
448 var description = 'Symbol.' + name;
449 if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
450 WellKnownSymbolsStore[name] = Symbol$1[name];
451 } else if (useSymbolAsUid && symbolFor) {
452 WellKnownSymbolsStore[name] = symbolFor(description);
453 } else {
454 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
455 }
456 } return WellKnownSymbolsStore[name];
457 };
458
459 var TypeError$5 = global_1.TypeError;
460 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
461
462 // `ToPrimitive` abstract operation
463 // https://tc39.es/ecma262/#sec-toprimitive
464 var toPrimitive = function (input, pref) {
465 if (!isObject(input) || isSymbol(input)) return input;
466 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
467 var result;
468 if (exoticToPrim) {
469 if (pref === undefined) pref = 'default';
470 result = functionCall(exoticToPrim, input, pref);
471 if (!isObject(result) || isSymbol(result)) return result;
472 throw TypeError$5("Can't convert object to primitive value");
473 }
474 if (pref === undefined) pref = 'number';
475 return ordinaryToPrimitive(input, pref);
476 };
477
478 // `ToPropertyKey` abstract operation
479 // https://tc39.es/ecma262/#sec-topropertykey
480 var toPropertyKey = function (argument) {
481 var key = toPrimitive(argument, 'string');
482 return isSymbol(key) ? key : key + '';
483 };
484
485 var document = global_1.document;
486 // typeof document.createElement is 'object' in old IE
487 var EXISTS$1 = isObject(document) && isObject(document.createElement);
488
489 var documentCreateElement = function (it) {
490 return EXISTS$1 ? document.createElement(it) : {};
491 };
492
493 // Thanks to IE8 for its funny defineProperty
494 var ie8DomDefine = !descriptors && !fails(function () {
495 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
496 return Object.defineProperty(documentCreateElement('div'), 'a', {
497 get: function () { return 7; }
498 }).a != 7;
499 });
500
501 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
502 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
503
504 // `Object.getOwnPropertyDescriptor` method
505 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
506 var f$3 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
507 O = toIndexedObject(O);
508 P = toPropertyKey(P);
509 if (ie8DomDefine) try {
510 return $getOwnPropertyDescriptor$1(O, P);
511 } catch (error) { /* empty */ }
512 if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
513 };
514
515 var objectGetOwnPropertyDescriptor = {
516 f: f$3
517 };
518
519 // V8 ~ Chrome 36-
520 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
521 var v8PrototypeDefineBug = descriptors && fails(function () {
522 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
523 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
524 value: 42,
525 writable: false
526 }).prototype != 42;
527 });
528
529 var String$1 = global_1.String;
530 var TypeError$4 = global_1.TypeError;
531
532 // `Assert: Type(argument) is Object`
533 var anObject = function (argument) {
534 if (isObject(argument)) return argument;
535 throw TypeError$4(String$1(argument) + ' is not an object');
536 };
537
538 var TypeError$3 = global_1.TypeError;
539 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
540 var $defineProperty = Object.defineProperty;
541 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
542 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
543 var ENUMERABLE = 'enumerable';
544 var CONFIGURABLE$1 = 'configurable';
545 var WRITABLE = 'writable';
546
547 // `Object.defineProperty` method
548 // https://tc39.es/ecma262/#sec-object.defineproperty
549 var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
550 anObject(O);
551 P = toPropertyKey(P);
552 anObject(Attributes);
553 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
554 var current = $getOwnPropertyDescriptor(O, P);
555 if (current && current[WRITABLE]) {
556 O[P] = Attributes.value;
557 Attributes = {
558 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
559 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
560 writable: false
561 };
562 }
563 } return $defineProperty(O, P, Attributes);
564 } : $defineProperty : function defineProperty(O, P, Attributes) {
565 anObject(O);
566 P = toPropertyKey(P);
567 anObject(Attributes);
568 if (ie8DomDefine) try {
569 return $defineProperty(O, P, Attributes);
570 } catch (error) { /* empty */ }
571 if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
572 if ('value' in Attributes) O[P] = Attributes.value;
573 return O;
574 };
575
576 var objectDefineProperty = {
577 f: f$2
578 };
579
580 var createNonEnumerableProperty = descriptors ? function (object, key, value) {
581 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
582 } : function (object, key, value) {
583 object[key] = value;
584 return object;
585 };
586
587 var FunctionPrototype = Function.prototype;
588 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
589 var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
590
591 var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
592 // additional protection from minified / mangled / dropped function names
593 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
594 var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
595
596 var functionName = {
597 EXISTS: EXISTS,
598 PROPER: PROPER,
599 CONFIGURABLE: CONFIGURABLE
600 };
601
602 var functionToString = functionUncurryThis(Function.toString);
603
604 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
605 if (!isCallable(sharedStore.inspectSource)) {
606 sharedStore.inspectSource = function (it) {
607 return functionToString(it);
608 };
609 }
610
611 var inspectSource = sharedStore.inspectSource;
612
613 var WeakMap$1 = global_1.WeakMap;
614
615 var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
616
617 var keys = shared('keys');
618
619 var sharedKey = function (key) {
620 return keys[key] || (keys[key] = uid(key));
621 };
622
623 var hiddenKeys$1 = {};
624
625 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
626 var TypeError$2 = global_1.TypeError;
627 var WeakMap = global_1.WeakMap;
628 var set, get, has;
629
630 var enforce = function (it) {
631 return has(it) ? get(it) : set(it, {});
632 };
633
634 var getterFor = function (TYPE) {
635 return function (it) {
636 var state;
637 if (!isObject(it) || (state = get(it)).type !== TYPE) {
638 throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
639 } return state;
640 };
641 };
642
643 if (nativeWeakMap || sharedStore.state) {
644 var store = sharedStore.state || (sharedStore.state = new WeakMap());
645 var wmget = functionUncurryThis(store.get);
646 var wmhas = functionUncurryThis(store.has);
647 var wmset = functionUncurryThis(store.set);
648 set = function (it, metadata) {
649 if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
650 metadata.facade = it;
651 wmset(store, it, metadata);
652 return metadata;
653 };
654 get = function (it) {
655 return wmget(store, it) || {};
656 };
657 has = function (it) {
658 return wmhas(store, it);
659 };
660 } else {
661 var STATE = sharedKey('state');
662 hiddenKeys$1[STATE] = true;
663 set = function (it, metadata) {
664 if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
665 metadata.facade = it;
666 createNonEnumerableProperty(it, STATE, metadata);
667 return metadata;
668 };
669 get = function (it) {
670 return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
671 };
672 has = function (it) {
673 return hasOwnProperty_1(it, STATE);
674 };
675 }
676
677 var internalState = {
678 set: set,
679 get: get,
680 has: has,
681 enforce: enforce,
682 getterFor: getterFor
683 };
684
685 var makeBuiltIn_1 = createCommonjsModule(function (module) {
686 var defineProperty = objectDefineProperty.f;
687 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
688
689
690
691 var enforceInternalState = internalState.enforce;
692 var getInternalState = internalState.get;
693
694 var CONFIGURABLE_LENGTH = !fails(function () {
695 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
696 });
697
698 var TEMPLATE = String(String).split('String');
699
700 var makeBuiltIn = module.exports = function (value, name, options) {
701 if (String(name).slice(0, 7) === 'Symbol(') {
702 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
703 }
704 if (options && options.getter) name = 'get ' + name;
705 if (options && options.setter) name = 'set ' + name;
706 if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
707 defineProperty(value, 'name', { value: name, configurable: true });
708 }
709 if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
710 defineProperty(value, 'length', { value: options.arity });
711 }
712 var state = enforceInternalState(value);
713 if (!hasOwnProperty_1(state, 'source')) {
714 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
715 } return value;
716 };
717
718 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
719 // eslint-disable-next-line no-extend-native -- required
720 Function.prototype.toString = makeBuiltIn(function toString() {
721 return isCallable(this) && getInternalState(this).source || inspectSource(this);
722 }, 'toString');
723 });
724
725 var defineBuiltIn = function (O, key, value, options) {
726 var unsafe = options ? !!options.unsafe : false;
727 var simple = options ? !!options.enumerable : false;
728 var noTargetGet = options ? !!options.noTargetGet : false;
729 var name = options && options.name !== undefined ? options.name : key;
730 if (isCallable(value)) makeBuiltIn_1(value, name, options);
731 if (O === global_1) {
732 if (simple) O[key] = value;
733 else setGlobal(key, value);
734 return O;
735 } else if (!unsafe) {
736 delete O[key];
737 } else if (!noTargetGet && O[key]) {
738 simple = true;
739 }
740 if (simple) O[key] = value;
741 else createNonEnumerableProperty(O, key, value);
742 return O;
743 };
744
745 var ceil = Math.ceil;
746 var floor = Math.floor;
747
748 // `ToIntegerOrInfinity` abstract operation
749 // https://tc39.es/ecma262/#sec-tointegerorinfinity
750 var toIntegerOrInfinity = function (argument) {
751 var number = +argument;
752 // eslint-disable-next-line no-self-compare -- safe
753 return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
754 };
755
756 var max = Math.max;
757 var min$1 = Math.min;
758
759 // Helper for a popular repeating case of the spec:
760 // Let integer be ? ToInteger(index).
761 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
762 var toAbsoluteIndex = function (index, length) {
763 var integer = toIntegerOrInfinity(index);
764 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
765 };
766
767 var min = Math.min;
768
769 // `ToLength` abstract operation
770 // https://tc39.es/ecma262/#sec-tolength
771 var toLength = function (argument) {
772 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
773 };
774
775 // `LengthOfArrayLike` abstract operation
776 // https://tc39.es/ecma262/#sec-lengthofarraylike
777 var lengthOfArrayLike = function (obj) {
778 return toLength(obj.length);
779 };
780
781 // `Array.prototype.{ indexOf, includes }` methods implementation
782 var createMethod = function (IS_INCLUDES) {
783 return function ($this, el, fromIndex) {
784 var O = toIndexedObject($this);
785 var length = lengthOfArrayLike(O);
786 var index = toAbsoluteIndex(fromIndex, length);
787 var value;
788 // Array#includes uses SameValueZero equality algorithm
789 // eslint-disable-next-line no-self-compare -- NaN check
790 if (IS_INCLUDES && el != el) while (length > index) {
791 value = O[index++];
792 // eslint-disable-next-line no-self-compare -- NaN check
793 if (value != value) return true;
794 // Array#indexOf ignores holes, Array#includes - not
795 } else for (;length > index; index++) {
796 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
797 } return !IS_INCLUDES && -1;
798 };
799 };
800
801 var arrayIncludes = {
802 // `Array.prototype.includes` method
803 // https://tc39.es/ecma262/#sec-array.prototype.includes
804 includes: createMethod(true),
805 // `Array.prototype.indexOf` method
806 // https://tc39.es/ecma262/#sec-array.prototype.indexof
807 indexOf: createMethod(false)
808 };
809
810 var indexOf = arrayIncludes.indexOf;
811
812
813 var push = functionUncurryThis([].push);
814
815 var objectKeysInternal = function (object, names) {
816 var O = toIndexedObject(object);
817 var i = 0;
818 var result = [];
819 var key;
820 for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push(result, key);
821 // Don't enum bug & hidden keys
822 while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
823 ~indexOf(result, key) || push(result, key);
824 }
825 return result;
826 };
827
828 // IE8- don't enum bug keys
829 var enumBugKeys = [
830 'constructor',
831 'hasOwnProperty',
832 'isPrototypeOf',
833 'propertyIsEnumerable',
834 'toLocaleString',
835 'toString',
836 'valueOf'
837 ];
838
839 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
840
841 // `Object.getOwnPropertyNames` method
842 // https://tc39.es/ecma262/#sec-object.getownpropertynames
843 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
844 var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
845 return objectKeysInternal(O, hiddenKeys);
846 };
847
848 var objectGetOwnPropertyNames = {
849 f: f$1
850 };
851
852 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
853 var f = Object.getOwnPropertySymbols;
854
855 var objectGetOwnPropertySymbols = {
856 f: f
857 };
858
859 var concat = functionUncurryThis([].concat);
860
861 // all object keys, includes non-enumerable and symbols
862 var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
863 var keys = objectGetOwnPropertyNames.f(anObject(it));
864 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
865 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
866 };
867
868 var copyConstructorProperties = function (target, source, exceptions) {
869 var keys = ownKeys(source);
870 var defineProperty = objectDefineProperty.f;
871 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
872 for (var i = 0; i < keys.length; i++) {
873 var key = keys[i];
874 if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
875 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
876 }
877 }
878 };
879
880 var replacement = /#|\.prototype\./;
881
882 var isForced = function (feature, detection) {
883 var value = data[normalize(feature)];
884 return value == POLYFILL ? true
885 : value == NATIVE ? false
886 : isCallable(detection) ? fails(detection)
887 : !!detection;
888 };
889
890 var normalize = isForced.normalize = function (string) {
891 return String(string).replace(replacement, '.').toLowerCase();
892 };
893
894 var data = isForced.data = {};
895 var NATIVE = isForced.NATIVE = 'N';
896 var POLYFILL = isForced.POLYFILL = 'P';
897
898 var isForced_1 = isForced;
899
900 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
901
902
903
904
905
906
907 /*
908 options.target - name of the target object
909 options.global - target is the global object
910 options.stat - export as static methods of target
911 options.proto - export as prototype methods of target
912 options.real - real prototype method for the `pure` version
913 options.forced - export even if the native feature is available
914 options.bind - bind methods to the target, required for the `pure` version
915 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
916 options.unsafe - use the simple assignment of property instead of delete + defineProperty
917 options.sham - add a flag to not completely full polyfills
918 options.enumerable - export as enumerable property
919 options.noTargetGet - prevent calling a getter on target
920 options.name - the .name of the function if it does not match the key
921 */
922 var _export = function (options, source) {
923 var TARGET = options.target;
924 var GLOBAL = options.global;
925 var STATIC = options.stat;
926 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
927 if (GLOBAL) {
928 target = global_1;
929 } else if (STATIC) {
930 target = global_1[TARGET] || setGlobal(TARGET, {});
931 } else {
932 target = (global_1[TARGET] || {}).prototype;
933 }
934 if (target) for (key in source) {
935 sourceProperty = source[key];
936 if (options.noTargetGet) {
937 descriptor = getOwnPropertyDescriptor(target, key);
938 targetProperty = descriptor && descriptor.value;
939 } else targetProperty = target[key];
940 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
941 // contained in target
942 if (!FORCED && targetProperty !== undefined) {
943 if (typeof sourceProperty == typeof targetProperty) continue;
944 copyConstructorProperties(sourceProperty, targetProperty);
945 }
946 // add a flag to not completely full polyfills
947 if (options.sham || (targetProperty && targetProperty.sham)) {
948 createNonEnumerableProperty(sourceProperty, 'sham', true);
949 }
950 defineBuiltIn(target, key, sourceProperty, options);
951 }
952 };
953
954 // `IsArray` abstract operation
955 // https://tc39.es/ecma262/#sec-isarray
956 // eslint-disable-next-line es-x/no-array-isarray -- safe
957 var isArray = Array.isArray || function isArray(argument) {
958 return classofRaw(argument) == 'Array';
959 };
960
961 var createProperty = function (object, key, value) {
962 var propertyKey = toPropertyKey(key);
963 if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
964 else object[propertyKey] = value;
965 };
966
967 var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
968 var test = {};
969
970 test[TO_STRING_TAG$1] = 'z';
971
972 var toStringTagSupport = String(test) === '[object z]';
973
974 var TO_STRING_TAG = wellKnownSymbol('toStringTag');
975 var Object$1 = global_1.Object;
976
977 // ES3 wrong here
978 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
979
980 // fallback for IE11 Script Access Denied error
981 var tryGet = function (it, key) {
982 try {
983 return it[key];
984 } catch (error) { /* empty */ }
985 };
986
987 // getting tag from ES6+ `Object.prototype.toString`
988 var classof = toStringTagSupport ? classofRaw : function (it) {
989 var O, tag, result;
990 return it === undefined ? 'Undefined' : it === null ? 'Null'
991 // @@toStringTag case
992 : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
993 // builtinTag case
994 : CORRECT_ARGUMENTS ? classofRaw(O)
995 // ES3 arguments fallback
996 : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
997 };
998
999 var noop = function () { /* empty */ };
1000 var empty = [];
1001 var construct = getBuiltIn('Reflect', 'construct');
1002 var constructorRegExp = /^\s*(?:class|function)\b/;
1003 var exec = functionUncurryThis(constructorRegExp.exec);
1004 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1005
1006 var isConstructorModern = function isConstructor(argument) {
1007 if (!isCallable(argument)) return false;
1008 try {
1009 construct(noop, empty, argument);
1010 return true;
1011 } catch (error) {
1012 return false;
1013 }
1014 };
1015
1016 var isConstructorLegacy = function isConstructor(argument) {
1017 if (!isCallable(argument)) return false;
1018 switch (classof(argument)) {
1019 case 'AsyncFunction':
1020 case 'GeneratorFunction':
1021 case 'AsyncGeneratorFunction': return false;
1022 }
1023 try {
1024 // we can't check .prototype since constructors produced by .bind haven't it
1025 // `Function#toString` throws on some built-it function in some legacy engines
1026 // (for example, `DOMQuad` and similar in FF41-)
1027 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1028 } catch (error) {
1029 return true;
1030 }
1031 };
1032
1033 isConstructorLegacy.sham = true;
1034
1035 // `IsConstructor` abstract operation
1036 // https://tc39.es/ecma262/#sec-isconstructor
1037 var isConstructor = !construct || fails(function () {
1038 var called;
1039 return isConstructorModern(isConstructorModern.call)
1040 || !isConstructorModern(Object)
1041 || !isConstructorModern(function () { called = true; })
1042 || called;
1043 }) ? isConstructorLegacy : isConstructorModern;
1044
1045 var SPECIES$1 = wellKnownSymbol('species');
1046 var Array$1 = global_1.Array;
1047
1048 // a part of `ArraySpeciesCreate` abstract operation
1049 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1050 var arraySpeciesConstructor = function (originalArray) {
1051 var C;
1052 if (isArray(originalArray)) {
1053 C = originalArray.constructor;
1054 // cross-realm fallback
1055 if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1056 else if (isObject(C)) {
1057 C = C[SPECIES$1];
1058 if (C === null) C = undefined;
1059 }
1060 } return C === undefined ? Array$1 : C;
1061 };
1062
1063 // `ArraySpeciesCreate` abstract operation
1064 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1065 var arraySpeciesCreate = function (originalArray, length) {
1066 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1067 };
1068
1069 var SPECIES = wellKnownSymbol('species');
1070
1071 var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1072 // We can't use this feature detection in V8 since it causes
1073 // deoptimization and serious performance degradation
1074 // https://github.com/zloirock/core-js/issues/677
1075 return engineV8Version >= 51 || !fails(function () {
1076 var array = [];
1077 var constructor = array.constructor = {};
1078 constructor[SPECIES] = function () {
1079 return { foo: 1 };
1080 };
1081 return array[METHOD_NAME](Boolean).foo !== 1;
1082 });
1083 };
1084
1085 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1086 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1087 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1088 var TypeError$1 = global_1.TypeError;
1089
1090 // We can't use this feature detection in V8 since it causes
1091 // deoptimization and serious performance degradation
1092 // https://github.com/zloirock/core-js/issues/679
1093 var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1094 var array = [];
1095 array[IS_CONCAT_SPREADABLE] = false;
1096 return array.concat()[0] !== array;
1097 });
1098
1099 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1100
1101 var isConcatSpreadable = function (O) {
1102 if (!isObject(O)) return false;
1103 var spreadable = O[IS_CONCAT_SPREADABLE];
1104 return spreadable !== undefined ? !!spreadable : isArray(O);
1105 };
1106
1107 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1108
1109 // `Array.prototype.concat` method
1110 // https://tc39.es/ecma262/#sec-array.prototype.concat
1111 // with adding support of @@isConcatSpreadable and @@species
1112 _export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1113 // eslint-disable-next-line no-unused-vars -- required for `.length`
1114 concat: function concat(arg) {
1115 var O = toObject(this);
1116 var A = arraySpeciesCreate(O, 0);
1117 var n = 0;
1118 var i, k, length, len, E;
1119 for (i = -1, length = arguments.length; i < length; i++) {
1120 E = i === -1 ? O : arguments[i];
1121 if (isConcatSpreadable(E)) {
1122 len = lengthOfArrayLike(E);
1123 if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1124 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1125 } else {
1126 if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1127 createProperty(A, n++, E);
1128 }
1129 }
1130 A.length = n;
1131 return A;
1132 }
1133 });
1134
1135 /**
1136 * @author: Dennis Hernández
1137 * @webSite: http://djhvscf.github.io/Blog
1138 * @version: v2.0.0
1139 */
1140
1141 var isInit = function isInit(that) {
1142 return that.$el.data('resizableColumns') !== undefined;
1143 };
1144
1145 var initResizable = function initResizable(that) {
1146 if (that.options.resizable && !that.options.cardView && !isInit(that) && that.$el.is(':visible')) {
1147 that.$el.resizableColumns({
1148 store: window.store
1149 });
1150 }
1151 };
1152
1153 var destroy = function destroy(that) {
1154 if (isInit(that)) {
1155 that.$el.data('resizableColumns').destroy();
1156 }
1157 };
1158
1159 var reInitResizable = function reInitResizable(that) {
1160 destroy(that);
1161 initResizable(that);
1162 };
1163
1164 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1165 resizable: false
1166 });
1167
1168 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1169 _inherits(_class, _$$BootstrapTable);
1170
1171 var _super = _createSuper(_class);
1172
1173 function _class() {
1174 _classCallCheck(this, _class);
1175
1176 return _super.apply(this, arguments);
1177 }
1178
1179 _createClass(_class, [{
1180 key: "initBody",
1181 value: function initBody() {
1182 var _get2,
1183 _this = this;
1184
1185 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1186 args[_key] = arguments[_key];
1187 }
1188
1189 (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
1190
1191 this.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
1192 reInitResizable(_this);
1193 });
1194 reInitResizable(this);
1195 }
1196 }, {
1197 key: "toggleView",
1198 value: function toggleView() {
1199 var _get3;
1200
1201 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1202 args[_key2] = arguments[_key2];
1203 }
1204
1205 (_get3 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get3, [this].concat(args));
1206
1207 if (this.options.resizable && this.options.cardView) {
1208 // Destroy the plugin
1209 destroy(this);
1210 }
1211 }
1212 }, {
1213 key: "resetView",
1214 value: function resetView() {
1215 var _get4,
1216 _this2 = this;
1217
1218 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1219 args[_key3] = arguments[_key3];
1220 }
1221
1222 (_get4 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get4, [this].concat(args));
1223
1224 if (this.options.resizable) {
1225 // because in fitHeader function, we use setTimeout(func, 100);
1226 setTimeout(function () {
1227 initResizable(_this2);
1228 }, 100);
1229 }
1230 }
1231 }]);
1232
1233 return _class;
1234 }($__default["default"].BootstrapTable);
1235
1236}));