UNPKG

47.6 kBJavaScriptView Raw
1function _defineProperty(obj, key, value) {
2 if (key in obj) {
3 Object.defineProperty(obj, key, {
4 value: value,
5 enumerable: true,
6 configurable: true,
7 writable: true
8 });
9 } else {
10 obj[key] = value;
11 }
12
13 return obj;
14}
15
16function ownKeys$1(object, enumerableOnly) {
17 var keys = Object.keys(object);
18
19 if (Object.getOwnPropertySymbols) {
20 var symbols = Object.getOwnPropertySymbols(object);
21 if (enumerableOnly) symbols = symbols.filter(function (sym) {
22 return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23 });
24 keys.push.apply(keys, symbols);
25 }
26
27 return keys;
28}
29
30function _objectSpread2(target) {
31 for (var i = 1; i < arguments.length; i++) {
32 var source = arguments[i] != null ? arguments[i] : {};
33
34 if (i % 2) {
35 ownKeys$1(Object(source), true).forEach(function (key) {
36 _defineProperty(target, key, source[key]);
37 });
38 } else if (Object.getOwnPropertyDescriptors) {
39 Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
40 } else {
41 ownKeys$1(Object(source)).forEach(function (key) {
42 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
43 });
44 }
45 }
46
47 return target;
48}
49
50function _toConsumableArray(arr) {
51 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
52}
53
54function _arrayWithoutHoles(arr) {
55 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
56}
57
58function _iterableToArray(iter) {
59 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
60}
61
62function _unsupportedIterableToArray(o, minLen) {
63 if (!o) return;
64 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
65 var n = Object.prototype.toString.call(o).slice(8, -1);
66 if (n === "Object" && o.constructor) n = o.constructor.name;
67 if (n === "Map" || n === "Set") return Array.from(o);
68 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
69}
70
71function _arrayLikeToArray(arr, len) {
72 if (len == null || len > arr.length) len = arr.length;
73
74 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
75
76 return arr2;
77}
78
79function _nonIterableSpread() {
80 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81}
82
83function _createForOfIteratorHelper(o, allowArrayLike) {
84 var it;
85
86 if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
87 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
88 if (it) o = it;
89 var i = 0;
90
91 var F = function () {};
92
93 return {
94 s: F,
95 n: function () {
96 if (i >= o.length) return {
97 done: true
98 };
99 return {
100 done: false,
101 value: o[i++]
102 };
103 },
104 e: function (e) {
105 throw e;
106 },
107 f: F
108 };
109 }
110
111 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
112 }
113
114 var normalCompletion = true,
115 didErr = false,
116 err;
117 return {
118 s: function () {
119 it = o[Symbol.iterator]();
120 },
121 n: function () {
122 var step = it.next();
123 normalCompletion = step.done;
124 return step;
125 },
126 e: function (e) {
127 didErr = true;
128 err = e;
129 },
130 f: function () {
131 try {
132 if (!normalCompletion && it.return != null) it.return();
133 } finally {
134 if (didErr) throw err;
135 }
136 }
137 };
138}
139
140var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
141
142function createCommonjsModule(fn, module) {
143 return module = { exports: {} }, fn(module, module.exports), module.exports;
144}
145
146var check = function (it) {
147 return it && it.Math == Math && it;
148};
149
150// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
151var global_1 =
152 // eslint-disable-next-line es/no-global-this -- safe
153 check(typeof globalThis == 'object' && globalThis) ||
154 check(typeof window == 'object' && window) ||
155 // eslint-disable-next-line no-restricted-globals -- safe
156 check(typeof self == 'object' && self) ||
157 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
158 // eslint-disable-next-line no-new-func -- fallback
159 (function () { return this; })() || Function('return this')();
160
161var fails = function (exec) {
162 try {
163 return !!exec();
164 } catch (error) {
165 return true;
166 }
167};
168
169// Detect IE8's incomplete defineProperty implementation
170var descriptors = !fails(function () {
171 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
172 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
173});
174
175var $propertyIsEnumerable = {}.propertyIsEnumerable;
176// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
177var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
178
179// Nashorn ~ JDK8 bug
180var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
181
182// `Object.prototype.propertyIsEnumerable` method implementation
183// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
184var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
185 var descriptor = getOwnPropertyDescriptor$1(this, V);
186 return !!descriptor && descriptor.enumerable;
187} : $propertyIsEnumerable;
188
189var objectPropertyIsEnumerable = {
190 f: f$4
191};
192
193var createPropertyDescriptor = function (bitmap, value) {
194 return {
195 enumerable: !(bitmap & 1),
196 configurable: !(bitmap & 2),
197 writable: !(bitmap & 4),
198 value: value
199 };
200};
201
202var toString = {}.toString;
203
204var classofRaw = function (it) {
205 return toString.call(it).slice(8, -1);
206};
207
208var split = ''.split;
209
210// fallback for non-array-like ES3 and non-enumerable old V8 strings
211var indexedObject = fails(function () {
212 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
213 // eslint-disable-next-line no-prototype-builtins -- safe
214 return !Object('z').propertyIsEnumerable(0);
215}) ? function (it) {
216 return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
217} : Object;
218
219// `RequireObjectCoercible` abstract operation
220// https://tc39.es/ecma262/#sec-requireobjectcoercible
221var requireObjectCoercible = function (it) {
222 if (it == undefined) throw TypeError("Can't call method on " + it);
223 return it;
224};
225
226// toObject with fallback for non-array-like ES3 strings
227
228
229
230var toIndexedObject = function (it) {
231 return indexedObject(requireObjectCoercible(it));
232};
233
234var isObject = function (it) {
235 return typeof it === 'object' ? it !== null : typeof it === 'function';
236};
237
238// `ToPrimitive` abstract operation
239// https://tc39.es/ecma262/#sec-toprimitive
240// instead of the ES6 spec version, we didn't implement @@toPrimitive case
241// and the second argument - flag - preferred type is a string
242var toPrimitive = function (input, PREFERRED_STRING) {
243 if (!isObject(input)) return input;
244 var fn, val;
245 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
246 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
247 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
248 throw TypeError("Can't convert object to primitive value");
249};
250
251var hasOwnProperty = {}.hasOwnProperty;
252
253var has$1 = function (it, key) {
254 return hasOwnProperty.call(it, key);
255};
256
257var document = global_1.document;
258// typeof document.createElement is 'object' in old IE
259var EXISTS = isObject(document) && isObject(document.createElement);
260
261var documentCreateElement = function (it) {
262 return EXISTS ? document.createElement(it) : {};
263};
264
265// Thank's IE8 for his funny defineProperty
266var ie8DomDefine = !descriptors && !fails(function () {
267 // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
268 return Object.defineProperty(documentCreateElement('div'), 'a', {
269 get: function () { return 7; }
270 }).a != 7;
271});
272
273// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
274var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
275
276// `Object.getOwnPropertyDescriptor` method
277// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
278var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
279 O = toIndexedObject(O);
280 P = toPrimitive(P, true);
281 if (ie8DomDefine) try {
282 return $getOwnPropertyDescriptor(O, P);
283 } catch (error) { /* empty */ }
284 if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
285};
286
287var objectGetOwnPropertyDescriptor = {
288 f: f$3
289};
290
291var anObject = function (it) {
292 if (!isObject(it)) {
293 throw TypeError(String(it) + ' is not an object');
294 } return it;
295};
296
297// eslint-disable-next-line es/no-object-defineproperty -- safe
298var $defineProperty = Object.defineProperty;
299
300// `Object.defineProperty` method
301// https://tc39.es/ecma262/#sec-object.defineproperty
302var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
303 anObject(O);
304 P = toPrimitive(P, true);
305 anObject(Attributes);
306 if (ie8DomDefine) try {
307 return $defineProperty(O, P, Attributes);
308 } catch (error) { /* empty */ }
309 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
310 if ('value' in Attributes) O[P] = Attributes.value;
311 return O;
312};
313
314var objectDefineProperty = {
315 f: f$2
316};
317
318var createNonEnumerableProperty = descriptors ? function (object, key, value) {
319 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
320} : function (object, key, value) {
321 object[key] = value;
322 return object;
323};
324
325var setGlobal = function (key, value) {
326 try {
327 createNonEnumerableProperty(global_1, key, value);
328 } catch (error) {
329 global_1[key] = value;
330 } return value;
331};
332
333var SHARED = '__core-js_shared__';
334var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
335
336var sharedStore = store$1;
337
338var functionToString = Function.toString;
339
340// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
341if (typeof sharedStore.inspectSource != 'function') {
342 sharedStore.inspectSource = function (it) {
343 return functionToString.call(it);
344 };
345}
346
347var inspectSource = sharedStore.inspectSource;
348
349var WeakMap$1 = global_1.WeakMap;
350
351var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
352
353var shared = createCommonjsModule(function (module) {
354(module.exports = function (key, value) {
355 return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
356})('versions', []).push({
357 version: '3.10.1',
358 mode: 'global',
359 copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
360});
361});
362
363var id = 0;
364var postfix = Math.random();
365
366var uid = function (key) {
367 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
368};
369
370var keys = shared('keys');
371
372var sharedKey = function (key) {
373 return keys[key] || (keys[key] = uid(key));
374};
375
376var hiddenKeys$1 = {};
377
378var WeakMap = global_1.WeakMap;
379var set, get, has;
380
381var enforce = function (it) {
382 return has(it) ? get(it) : set(it, {});
383};
384
385var getterFor = function (TYPE) {
386 return function (it) {
387 var state;
388 if (!isObject(it) || (state = get(it)).type !== TYPE) {
389 throw TypeError('Incompatible receiver, ' + TYPE + ' required');
390 } return state;
391 };
392};
393
394if (nativeWeakMap) {
395 var store = sharedStore.state || (sharedStore.state = new WeakMap());
396 var wmget = store.get;
397 var wmhas = store.has;
398 var wmset = store.set;
399 set = function (it, metadata) {
400 metadata.facade = it;
401 wmset.call(store, it, metadata);
402 return metadata;
403 };
404 get = function (it) {
405 return wmget.call(store, it) || {};
406 };
407 has = function (it) {
408 return wmhas.call(store, it);
409 };
410} else {
411 var STATE = sharedKey('state');
412 hiddenKeys$1[STATE] = true;
413 set = function (it, metadata) {
414 metadata.facade = it;
415 createNonEnumerableProperty(it, STATE, metadata);
416 return metadata;
417 };
418 get = function (it) {
419 return has$1(it, STATE) ? it[STATE] : {};
420 };
421 has = function (it) {
422 return has$1(it, STATE);
423 };
424}
425
426var internalState = {
427 set: set,
428 get: get,
429 has: has,
430 enforce: enforce,
431 getterFor: getterFor
432};
433
434var redefine = createCommonjsModule(function (module) {
435var getInternalState = internalState.get;
436var enforceInternalState = internalState.enforce;
437var TEMPLATE = String(String).split('String');
438
439(module.exports = function (O, key, value, options) {
440 var unsafe = options ? !!options.unsafe : false;
441 var simple = options ? !!options.enumerable : false;
442 var noTargetGet = options ? !!options.noTargetGet : false;
443 var state;
444 if (typeof value == 'function') {
445 if (typeof key == 'string' && !has$1(value, 'name')) {
446 createNonEnumerableProperty(value, 'name', key);
447 }
448 state = enforceInternalState(value);
449 if (!state.source) {
450 state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
451 }
452 }
453 if (O === global_1) {
454 if (simple) O[key] = value;
455 else setGlobal(key, value);
456 return;
457 } else if (!unsafe) {
458 delete O[key];
459 } else if (!noTargetGet && O[key]) {
460 simple = true;
461 }
462 if (simple) O[key] = value;
463 else createNonEnumerableProperty(O, key, value);
464// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
465})(Function.prototype, 'toString', function toString() {
466 return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
467});
468});
469
470var path = global_1;
471
472var aFunction = function (variable) {
473 return typeof variable == 'function' ? variable : undefined;
474};
475
476var getBuiltIn = function (namespace, method) {
477 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
478 : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
479};
480
481var ceil = Math.ceil;
482var floor$1 = Math.floor;
483
484// `ToInteger` abstract operation
485// https://tc39.es/ecma262/#sec-tointeger
486var toInteger = function (argument) {
487 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
488};
489
490var min$2 = Math.min;
491
492// `ToLength` abstract operation
493// https://tc39.es/ecma262/#sec-tolength
494var toLength = function (argument) {
495 return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
496};
497
498var max$1 = Math.max;
499var min$1 = Math.min;
500
501// Helper for a popular repeating case of the spec:
502// Let integer be ? ToInteger(index).
503// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
504var toAbsoluteIndex = function (index, length) {
505 var integer = toInteger(index);
506 return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
507};
508
509// `Array.prototype.{ indexOf, includes }` methods implementation
510var createMethod$1 = function (IS_INCLUDES) {
511 return function ($this, el, fromIndex) {
512 var O = toIndexedObject($this);
513 var length = toLength(O.length);
514 var index = toAbsoluteIndex(fromIndex, length);
515 var value;
516 // Array#includes uses SameValueZero equality algorithm
517 // eslint-disable-next-line no-self-compare -- NaN check
518 if (IS_INCLUDES && el != el) while (length > index) {
519 value = O[index++];
520 // eslint-disable-next-line no-self-compare -- NaN check
521 if (value != value) return true;
522 // Array#indexOf ignores holes, Array#includes - not
523 } else for (;length > index; index++) {
524 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
525 } return !IS_INCLUDES && -1;
526 };
527};
528
529var arrayIncludes = {
530 // `Array.prototype.includes` method
531 // https://tc39.es/ecma262/#sec-array.prototype.includes
532 includes: createMethod$1(true),
533 // `Array.prototype.indexOf` method
534 // https://tc39.es/ecma262/#sec-array.prototype.indexof
535 indexOf: createMethod$1(false)
536};
537
538var indexOf = arrayIncludes.indexOf;
539
540
541var objectKeysInternal = function (object, names) {
542 var O = toIndexedObject(object);
543 var i = 0;
544 var result = [];
545 var key;
546 for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
547 // Don't enum bug & hidden keys
548 while (names.length > i) if (has$1(O, key = names[i++])) {
549 ~indexOf(result, key) || result.push(key);
550 }
551 return result;
552};
553
554// IE8- don't enum bug keys
555var enumBugKeys = [
556 'constructor',
557 'hasOwnProperty',
558 'isPrototypeOf',
559 'propertyIsEnumerable',
560 'toLocaleString',
561 'toString',
562 'valueOf'
563];
564
565var hiddenKeys = enumBugKeys.concat('length', 'prototype');
566
567// `Object.getOwnPropertyNames` method
568// https://tc39.es/ecma262/#sec-object.getownpropertynames
569// eslint-disable-next-line es/no-object-getownpropertynames -- safe
570var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
571 return objectKeysInternal(O, hiddenKeys);
572};
573
574var objectGetOwnPropertyNames = {
575 f: f$1
576};
577
578// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
579var f = Object.getOwnPropertySymbols;
580
581var objectGetOwnPropertySymbols = {
582 f: f
583};
584
585// all object keys, includes non-enumerable and symbols
586var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
587 var keys = objectGetOwnPropertyNames.f(anObject(it));
588 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
589 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
590};
591
592var copyConstructorProperties = function (target, source) {
593 var keys = ownKeys(source);
594 var defineProperty = objectDefineProperty.f;
595 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
596 for (var i = 0; i < keys.length; i++) {
597 var key = keys[i];
598 if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
599 }
600};
601
602var replacement = /#|\.prototype\./;
603
604var isForced = function (feature, detection) {
605 var value = data[normalize(feature)];
606 return value == POLYFILL ? true
607 : value == NATIVE ? false
608 : typeof detection == 'function' ? fails(detection)
609 : !!detection;
610};
611
612var normalize = isForced.normalize = function (string) {
613 return String(string).replace(replacement, '.').toLowerCase();
614};
615
616var data = isForced.data = {};
617var NATIVE = isForced.NATIVE = 'N';
618var POLYFILL = isForced.POLYFILL = 'P';
619
620var isForced_1 = isForced;
621
622var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
623
624
625
626
627
628
629/*
630 options.target - name of the target object
631 options.global - target is the global object
632 options.stat - export as static methods of target
633 options.proto - export as prototype methods of target
634 options.real - real prototype method for the `pure` version
635 options.forced - export even if the native feature is available
636 options.bind - bind methods to the target, required for the `pure` version
637 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
638 options.unsafe - use the simple assignment of property instead of delete + defineProperty
639 options.sham - add a flag to not completely full polyfills
640 options.enumerable - export as enumerable property
641 options.noTargetGet - prevent calling a getter on target
642*/
643var _export = function (options, source) {
644 var TARGET = options.target;
645 var GLOBAL = options.global;
646 var STATIC = options.stat;
647 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
648 if (GLOBAL) {
649 target = global_1;
650 } else if (STATIC) {
651 target = global_1[TARGET] || setGlobal(TARGET, {});
652 } else {
653 target = (global_1[TARGET] || {}).prototype;
654 }
655 if (target) for (key in source) {
656 sourceProperty = source[key];
657 if (options.noTargetGet) {
658 descriptor = getOwnPropertyDescriptor(target, key);
659 targetProperty = descriptor && descriptor.value;
660 } else targetProperty = target[key];
661 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
662 // contained in target
663 if (!FORCED && targetProperty !== undefined) {
664 if (typeof sourceProperty === typeof targetProperty) continue;
665 copyConstructorProperties(sourceProperty, targetProperty);
666 }
667 // add a flag to not completely full polyfills
668 if (options.sham || (targetProperty && targetProperty.sham)) {
669 createNonEnumerableProperty(sourceProperty, 'sham', true);
670 }
671 // extend global
672 redefine(target, key, sourceProperty, options);
673 }
674};
675
676// `RegExp.prototype.flags` getter implementation
677// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
678var regexpFlags = function () {
679 var that = anObject(this);
680 var result = '';
681 if (that.global) result += 'g';
682 if (that.ignoreCase) result += 'i';
683 if (that.multiline) result += 'm';
684 if (that.dotAll) result += 's';
685 if (that.unicode) result += 'u';
686 if (that.sticky) result += 'y';
687 return result;
688};
689
690// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
691// so we use an intermediate function.
692function RE(s, f) {
693 return RegExp(s, f);
694}
695
696var UNSUPPORTED_Y$1 = fails(function () {
697 // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
698 var re = RE('a', 'y');
699 re.lastIndex = 2;
700 return re.exec('abcd') != null;
701});
702
703var BROKEN_CARET = fails(function () {
704 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
705 var re = RE('^r', 'gy');
706 re.lastIndex = 2;
707 return re.exec('str') != null;
708});
709
710var regexpStickyHelpers = {
711 UNSUPPORTED_Y: UNSUPPORTED_Y$1,
712 BROKEN_CARET: BROKEN_CARET
713};
714
715var nativeExec = RegExp.prototype.exec;
716var nativeReplace = shared('native-string-replace', String.prototype.replace);
717
718var patchedExec = nativeExec;
719
720var UPDATES_LAST_INDEX_WRONG = (function () {
721 var re1 = /a/;
722 var re2 = /b*/g;
723 nativeExec.call(re1, 'a');
724 nativeExec.call(re2, 'a');
725 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
726})();
727
728var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
729
730// nonparticipating capturing group, copied from es5-shim's String#split patch.
731// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
732var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
733
734var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
735
736if (PATCH) {
737 patchedExec = function exec(str) {
738 var re = this;
739 var lastIndex, reCopy, match, i;
740 var sticky = UNSUPPORTED_Y && re.sticky;
741 var flags = regexpFlags.call(re);
742 var source = re.source;
743 var charsAdded = 0;
744 var strCopy = str;
745
746 if (sticky) {
747 flags = flags.replace('y', '');
748 if (flags.indexOf('g') === -1) {
749 flags += 'g';
750 }
751
752 strCopy = String(str).slice(re.lastIndex);
753 // Support anchored sticky behavior.
754 if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
755 source = '(?: ' + source + ')';
756 strCopy = ' ' + strCopy;
757 charsAdded++;
758 }
759 // ^(? + rx + ) is needed, in combination with some str slicing, to
760 // simulate the 'y' flag.
761 reCopy = new RegExp('^(?:' + source + ')', flags);
762 }
763
764 if (NPCG_INCLUDED) {
765 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
766 }
767 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
768
769 match = nativeExec.call(sticky ? reCopy : re, strCopy);
770
771 if (sticky) {
772 if (match) {
773 match.input = match.input.slice(charsAdded);
774 match[0] = match[0].slice(charsAdded);
775 match.index = re.lastIndex;
776 re.lastIndex += match[0].length;
777 } else re.lastIndex = 0;
778 } else if (UPDATES_LAST_INDEX_WRONG && match) {
779 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
780 }
781 if (NPCG_INCLUDED && match && match.length > 1) {
782 // Fix browsers whose `exec` methods don't consistently return `undefined`
783 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
784 nativeReplace.call(match[0], reCopy, function () {
785 for (i = 1; i < arguments.length - 2; i++) {
786 if (arguments[i] === undefined) match[i] = undefined;
787 }
788 });
789 }
790
791 return match;
792 };
793}
794
795var regexpExec = patchedExec;
796
797// `RegExp.prototype.exec` method
798// https://tc39.es/ecma262/#sec-regexp.prototype.exec
799_export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
800 exec: regexpExec
801});
802
803var engineIsNode = classofRaw(global_1.process) == 'process';
804
805var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
806
807var process = global_1.process;
808var versions = process && process.versions;
809var v8 = versions && versions.v8;
810var match, version;
811
812if (v8) {
813 match = v8.split('.');
814 version = match[0] + match[1];
815} else if (engineUserAgent) {
816 match = engineUserAgent.match(/Edge\/(\d+)/);
817 if (!match || match[1] >= 74) {
818 match = engineUserAgent.match(/Chrome\/(\d+)/);
819 if (match) version = match[1];
820 }
821}
822
823var engineV8Version = version && +version;
824
825// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
826var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
827 // eslint-disable-next-line es/no-symbol -- required for testing
828 return !Symbol.sham &&
829 // Chrome 38 Symbol has incorrect toString conversion
830 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
831 (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
832});
833
834/* eslint-disable es/no-symbol -- required for testing */
835
836
837var useSymbolAsUid = nativeSymbol
838 && !Symbol.sham
839 && typeof Symbol.iterator == 'symbol';
840
841var WellKnownSymbolsStore = shared('wks');
842var Symbol$1 = global_1.Symbol;
843var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
844
845var wellKnownSymbol = function (name) {
846 if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
847 if (nativeSymbol && has$1(Symbol$1, name)) {
848 WellKnownSymbolsStore[name] = Symbol$1[name];
849 } else {
850 WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
851 }
852 } return WellKnownSymbolsStore[name];
853};
854
855// TODO: Remove from `core-js@4` since it's moved to entry points
856
857
858
859
860
861
862var SPECIES$2 = wellKnownSymbol('species');
863
864var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
865 // #replace needs built-in support for named groups.
866 // #match works fine because it just return the exec results, even if it has
867 // a "grops" property.
868 var re = /./;
869 re.exec = function () {
870 var result = [];
871 result.groups = { a: '7' };
872 return result;
873 };
874 return ''.replace(re, '$<a>') !== '7';
875});
876
877// IE <= 11 replaces $0 with the whole match, as if it was $&
878// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
879var REPLACE_KEEPS_$0 = (function () {
880 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
881 return 'a'.replace(/./, '$0') === '$0';
882})();
883
884var REPLACE = wellKnownSymbol('replace');
885// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
886var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
887 if (/./[REPLACE]) {
888 return /./[REPLACE]('a', '$0') === '';
889 }
890 return false;
891})();
892
893// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
894// Weex JS has frozen built-in prototypes, so use try / catch wrapper
895var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
896 // eslint-disable-next-line regexp/no-empty-group -- required for testing
897 var re = /(?:)/;
898 var originalExec = re.exec;
899 re.exec = function () { return originalExec.apply(this, arguments); };
900 var result = 'ab'.split(re);
901 return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
902});
903
904var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
905 var SYMBOL = wellKnownSymbol(KEY);
906
907 var DELEGATES_TO_SYMBOL = !fails(function () {
908 // String methods call symbol-named RegEp methods
909 var O = {};
910 O[SYMBOL] = function () { return 7; };
911 return ''[KEY](O) != 7;
912 });
913
914 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
915 // Symbol-named RegExp methods call .exec
916 var execCalled = false;
917 var re = /a/;
918
919 if (KEY === 'split') {
920 // We can't use real regex here since it causes deoptimization
921 // and serious performance degradation in V8
922 // https://github.com/zloirock/core-js/issues/306
923 re = {};
924 // RegExp[@@split] doesn't call the regex's exec method, but first creates
925 // a new one. We need to return the patched regex when creating the new one.
926 re.constructor = {};
927 re.constructor[SPECIES$2] = function () { return re; };
928 re.flags = '';
929 re[SYMBOL] = /./[SYMBOL];
930 }
931
932 re.exec = function () { execCalled = true; return null; };
933
934 re[SYMBOL]('');
935 return !execCalled;
936 });
937
938 if (
939 !DELEGATES_TO_SYMBOL ||
940 !DELEGATES_TO_EXEC ||
941 (KEY === 'replace' && !(
942 REPLACE_SUPPORTS_NAMED_GROUPS &&
943 REPLACE_KEEPS_$0 &&
944 !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
945 )) ||
946 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
947 ) {
948 var nativeRegExpMethod = /./[SYMBOL];
949 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
950 if (regexp.exec === RegExp.prototype.exec) {
951 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
952 // The native String method already delegates to @@method (this
953 // polyfilled function), leasing to infinite recursion.
954 // We avoid it by directly calling the native @@method method.
955 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
956 }
957 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
958 }
959 return { done: false };
960 }, {
961 REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
962 REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
963 });
964 var stringMethod = methods[0];
965 var regexMethod = methods[1];
966
967 redefine(String.prototype, KEY, stringMethod);
968 redefine(RegExp.prototype, SYMBOL, length == 2
969 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
970 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
971 ? function (string, arg) { return regexMethod.call(string, this, arg); }
972 // 21.2.5.6 RegExp.prototype[@@match](string)
973 // 21.2.5.9 RegExp.prototype[@@search](string)
974 : function (string) { return regexMethod.call(string, this); }
975 );
976 }
977
978 if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
979};
980
981// `String.prototype.{ codePointAt, at }` methods implementation
982var createMethod = function (CONVERT_TO_STRING) {
983 return function ($this, pos) {
984 var S = String(requireObjectCoercible($this));
985 var position = toInteger(pos);
986 var size = S.length;
987 var first, second;
988 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
989 first = S.charCodeAt(position);
990 return first < 0xD800 || first > 0xDBFF || position + 1 === size
991 || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
992 ? CONVERT_TO_STRING ? S.charAt(position) : first
993 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
994 };
995};
996
997var stringMultibyte = {
998 // `String.prototype.codePointAt` method
999 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1000 codeAt: createMethod(false),
1001 // `String.prototype.at` method
1002 // https://github.com/mathiasbynens/String.prototype.at
1003 charAt: createMethod(true)
1004};
1005
1006var charAt = stringMultibyte.charAt;
1007
1008// `AdvanceStringIndex` abstract operation
1009// https://tc39.es/ecma262/#sec-advancestringindex
1010var advanceStringIndex = function (S, index, unicode) {
1011 return index + (unicode ? charAt(S, index).length : 1);
1012};
1013
1014// `ToObject` abstract operation
1015// https://tc39.es/ecma262/#sec-toobject
1016var toObject = function (argument) {
1017 return Object(requireObjectCoercible(argument));
1018};
1019
1020var floor = Math.floor;
1021var replace = ''.replace;
1022var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1023var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1024
1025// https://tc39.es/ecma262/#sec-getsubstitution
1026var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1027 var tailPos = position + matched.length;
1028 var m = captures.length;
1029 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1030 if (namedCaptures !== undefined) {
1031 namedCaptures = toObject(namedCaptures);
1032 symbols = SUBSTITUTION_SYMBOLS;
1033 }
1034 return replace.call(replacement, symbols, function (match, ch) {
1035 var capture;
1036 switch (ch.charAt(0)) {
1037 case '$': return '$';
1038 case '&': return matched;
1039 case '`': return str.slice(0, position);
1040 case "'": return str.slice(tailPos);
1041 case '<':
1042 capture = namedCaptures[ch.slice(1, -1)];
1043 break;
1044 default: // \d\d?
1045 var n = +ch;
1046 if (n === 0) return match;
1047 if (n > m) {
1048 var f = floor(n / 10);
1049 if (f === 0) return match;
1050 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1051 return match;
1052 }
1053 capture = captures[n - 1];
1054 }
1055 return capture === undefined ? '' : capture;
1056 });
1057};
1058
1059// `RegExpExec` abstract operation
1060// https://tc39.es/ecma262/#sec-regexpexec
1061var regexpExecAbstract = function (R, S) {
1062 var exec = R.exec;
1063 if (typeof exec === 'function') {
1064 var result = exec.call(R, S);
1065 if (typeof result !== 'object') {
1066 throw TypeError('RegExp exec method returned something other than an Object or null');
1067 }
1068 return result;
1069 }
1070
1071 if (classofRaw(R) !== 'RegExp') {
1072 throw TypeError('RegExp#exec called on incompatible receiver');
1073 }
1074
1075 return regexpExec.call(R, S);
1076};
1077
1078var max = Math.max;
1079var min = Math.min;
1080
1081var maybeToString = function (it) {
1082 return it === undefined ? it : String(it);
1083};
1084
1085// @@replace logic
1086fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1087 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1088 var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1089 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1090
1091 return [
1092 // `String.prototype.replace` method
1093 // https://tc39.es/ecma262/#sec-string.prototype.replace
1094 function replace(searchValue, replaceValue) {
1095 var O = requireObjectCoercible(this);
1096 var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1097 return replacer !== undefined
1098 ? replacer.call(searchValue, O, replaceValue)
1099 : nativeReplace.call(String(O), searchValue, replaceValue);
1100 },
1101 // `RegExp.prototype[@@replace]` method
1102 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1103 function (regexp, replaceValue) {
1104 if (
1105 (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1106 (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1107 ) {
1108 var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1109 if (res.done) return res.value;
1110 }
1111
1112 var rx = anObject(regexp);
1113 var S = String(this);
1114
1115 var functionalReplace = typeof replaceValue === 'function';
1116 if (!functionalReplace) replaceValue = String(replaceValue);
1117
1118 var global = rx.global;
1119 if (global) {
1120 var fullUnicode = rx.unicode;
1121 rx.lastIndex = 0;
1122 }
1123 var results = [];
1124 while (true) {
1125 var result = regexpExecAbstract(rx, S);
1126 if (result === null) break;
1127
1128 results.push(result);
1129 if (!global) break;
1130
1131 var matchStr = String(result[0]);
1132 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1133 }
1134
1135 var accumulatedResult = '';
1136 var nextSourcePosition = 0;
1137 for (var i = 0; i < results.length; i++) {
1138 result = results[i];
1139
1140 var matched = String(result[0]);
1141 var position = max(min(toInteger(result.index), S.length), 0);
1142 var captures = [];
1143 // NOTE: This is equivalent to
1144 // captures = result.slice(1).map(maybeToString)
1145 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1146 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1147 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1148 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1149 var namedCaptures = result.groups;
1150 if (functionalReplace) {
1151 var replacerArgs = [matched].concat(captures, position, S);
1152 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1153 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1154 } else {
1155 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1156 }
1157 if (position >= nextSourcePosition) {
1158 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1159 nextSourcePosition = position + matched.length;
1160 }
1161 }
1162 return accumulatedResult + S.slice(nextSourcePosition);
1163 }
1164 ];
1165});
1166
1167// `IsArray` abstract operation
1168// https://tc39.es/ecma262/#sec-isarray
1169// eslint-disable-next-line es/no-array-isarray -- safe
1170var isArray = Array.isArray || function isArray(arg) {
1171 return classofRaw(arg) == 'Array';
1172};
1173
1174var createProperty = function (object, key, value) {
1175 var propertyKey = toPrimitive(key);
1176 if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1177 else object[propertyKey] = value;
1178};
1179
1180var SPECIES$1 = wellKnownSymbol('species');
1181
1182// `ArraySpeciesCreate` abstract operation
1183// https://tc39.es/ecma262/#sec-arrayspeciescreate
1184var arraySpeciesCreate = function (originalArray, length) {
1185 var C;
1186 if (isArray(originalArray)) {
1187 C = originalArray.constructor;
1188 // cross-realm fallback
1189 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1190 else if (isObject(C)) {
1191 C = C[SPECIES$1];
1192 if (C === null) C = undefined;
1193 }
1194 } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1195};
1196
1197var SPECIES = wellKnownSymbol('species');
1198
1199var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1200 // We can't use this feature detection in V8 since it causes
1201 // deoptimization and serious performance degradation
1202 // https://github.com/zloirock/core-js/issues/677
1203 return engineV8Version >= 51 || !fails(function () {
1204 var array = [];
1205 var constructor = array.constructor = {};
1206 constructor[SPECIES] = function () {
1207 return { foo: 1 };
1208 };
1209 return array[METHOD_NAME](Boolean).foo !== 1;
1210 });
1211};
1212
1213var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1214var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1215var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1216
1217// We can't use this feature detection in V8 since it causes
1218// deoptimization and serious performance degradation
1219// https://github.com/zloirock/core-js/issues/679
1220var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1221 var array = [];
1222 array[IS_CONCAT_SPREADABLE] = false;
1223 return array.concat()[0] !== array;
1224});
1225
1226var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1227
1228var isConcatSpreadable = function (O) {
1229 if (!isObject(O)) return false;
1230 var spreadable = O[IS_CONCAT_SPREADABLE];
1231 return spreadable !== undefined ? !!spreadable : isArray(O);
1232};
1233
1234var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1235
1236// `Array.prototype.concat` method
1237// https://tc39.es/ecma262/#sec-array.prototype.concat
1238// with adding support of @@isConcatSpreadable and @@species
1239_export({ target: 'Array', proto: true, forced: FORCED }, {
1240 // eslint-disable-next-line no-unused-vars -- required for `.length`
1241 concat: function concat(arg) {
1242 var O = toObject(this);
1243 var A = arraySpeciesCreate(O, 0);
1244 var n = 0;
1245 var i, k, length, len, E;
1246 for (i = -1, length = arguments.length; i < length; i++) {
1247 E = i === -1 ? O : arguments[i];
1248 if (isConcatSpreadable(E)) {
1249 len = toLength(E.length);
1250 if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1251 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1252 } else {
1253 if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1254 createProperty(A, n++, E);
1255 }
1256 }
1257 A.length = n;
1258 return A;
1259 }
1260});
1261
1262//
1263//
1264//
1265//
1266var $ = window.jQuery;
1267
1268var deepCopy = function deepCopy(arg) {
1269 if (arg === undefined) {
1270 return arg;
1271 }
1272
1273 return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
1274};
1275
1276var script = {
1277 name: 'BootstrapTable',
1278 props: {
1279 columns: {
1280 type: Array,
1281 require: true
1282 },
1283 data: {
1284 type: [Array, Object],
1285 default: function _default() {
1286 return undefined;
1287 }
1288 },
1289 options: {
1290 type: Object,
1291 default: function _default() {
1292 return {};
1293 }
1294 }
1295 },
1296 mounted: function mounted() {
1297 var _this = this;
1298
1299 this.$table = $(this.$el);
1300 this.$table.on('all.bs.table', function (e, name, args) {
1301 var eventName = $.fn.bootstrapTable.events[name];
1302 eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
1303
1304 _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
1305
1306 _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
1307 });
1308
1309 this._initTable();
1310 },
1311 methods: _objectSpread2({
1312 _initTable: function _initTable() {
1313 var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
1314 columns: deepCopy(this.columns),
1315 data: deepCopy(this.data)
1316 });
1317
1318 if (!this._hasInit) {
1319 this.$table.bootstrapTable(options);
1320 this._hasInit = true;
1321 } else {
1322 this.refreshOptions(options);
1323 }
1324 }
1325 }, function () {
1326 var res = {};
1327
1328 var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
1329 _step;
1330
1331 try {
1332 var _loop = function _loop() {
1333 var method = _step.value;
1334
1335 res[method] = function () {
1336 var _this$$table;
1337
1338 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1339 args[_key] = arguments[_key];
1340 }
1341
1342 return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
1343 };
1344 };
1345
1346 for (_iterator.s(); !(_step = _iterator.n()).done;) {
1347 _loop();
1348 }
1349 } catch (err) {
1350 _iterator.e(err);
1351 } finally {
1352 _iterator.f();
1353 }
1354
1355 return res;
1356 }()),
1357 watch: {
1358 options: {
1359 handler: function handler() {
1360 this._initTable();
1361 },
1362 deep: true
1363 },
1364 columns: {
1365 handler: function handler() {
1366 this._initTable();
1367 },
1368 deep: true
1369 },
1370 data: {
1371 handler: function handler() {
1372 this.load(deepCopy(this.data));
1373 },
1374 deep: true
1375 }
1376 }
1377};
1378
1379function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1380 if (typeof shadowMode !== 'boolean') {
1381 createInjectorSSR = createInjector;
1382 createInjector = shadowMode;
1383 shadowMode = false;
1384 }
1385 // Vue.extend constructor export interop.
1386 const options = typeof script === 'function' ? script.options : script;
1387 // render functions
1388 if (template && template.render) {
1389 options.render = template.render;
1390 options.staticRenderFns = template.staticRenderFns;
1391 options._compiled = true;
1392 // functional template
1393 if (isFunctionalTemplate) {
1394 options.functional = true;
1395 }
1396 }
1397 // scopedId
1398 if (scopeId) {
1399 options._scopeId = scopeId;
1400 }
1401 let hook;
1402 if (moduleIdentifier) {
1403 // server build
1404 hook = function (context) {
1405 // 2.3 injection
1406 context =
1407 context || // cached call
1408 (this.$vnode && this.$vnode.ssrContext) || // stateful
1409 (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
1410 // 2.2 with runInNewContext: true
1411 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1412 context = __VUE_SSR_CONTEXT__;
1413 }
1414 // inject component styles
1415 if (style) {
1416 style.call(this, createInjectorSSR(context));
1417 }
1418 // register component module identifier for async chunk inference
1419 if (context && context._registeredComponents) {
1420 context._registeredComponents.add(moduleIdentifier);
1421 }
1422 };
1423 // used by ssr in case component is cached and beforeCreate
1424 // never gets called
1425 options._ssrRegister = hook;
1426 }
1427 else if (style) {
1428 hook = shadowMode
1429 ? function (context) {
1430 style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
1431 }
1432 : function (context) {
1433 style.call(this, createInjector(context));
1434 };
1435 }
1436 if (hook) {
1437 if (options.functional) {
1438 // register for functional component in vue file
1439 const originalRender = options.render;
1440 options.render = function renderWithStyleInjection(h, context) {
1441 hook.call(context);
1442 return originalRender(h, context);
1443 };
1444 }
1445 else {
1446 // inject component registration as beforeCreate hook
1447 const existing = options.beforeCreate;
1448 options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1449 }
1450 }
1451 return script;
1452}
1453
1454/* script */
1455const __vue_script__ = script;
1456
1457/* template */
1458var __vue_render__ = function() {
1459 var _vm = this;
1460 var _h = _vm.$createElement;
1461 var _c = _vm._self._c || _h;
1462 return _c("table")
1463};
1464var __vue_staticRenderFns__ = [];
1465__vue_render__._withStripped = true;
1466
1467 /* style */
1468 const __vue_inject_styles__ = undefined;
1469 /* scoped */
1470 const __vue_scope_id__ = undefined;
1471 /* module identifier */
1472 const __vue_module_identifier__ = undefined;
1473 /* functional template */
1474 const __vue_is_functional_template__ = false;
1475 /* style inject */
1476
1477 /* style inject SSR */
1478
1479 /* style inject shadow dom */
1480
1481
1482
1483 const __vue_component__ = /*#__PURE__*/normalizeComponent(
1484 { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
1485 __vue_inject_styles__,
1486 __vue_script__,
1487 __vue_scope_id__,
1488 __vue_is_functional_template__,
1489 __vue_module_identifier__,
1490 false,
1491 undefined,
1492 undefined,
1493 undefined
1494 );
1495
1496export default __vue_component__;