UNPKG

87.2 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 ($$b) { '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 _unsupportedIterableToArray(o, minLen) {
121 if (!o) return;
122 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
123 var n = Object.prototype.toString.call(o).slice(8, -1);
124 if (n === "Object" && o.constructor) n = o.constructor.name;
125 if (n === "Map" || n === "Set") return Array.from(o);
126 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
127 }
128 function _arrayLikeToArray(arr, len) {
129 if (len == null || len > arr.length) len = arr.length;
130 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
131 return arr2;
132 }
133 function _createForOfIteratorHelper(o, allowArrayLike) {
134 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
135 if (!it) {
136 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
137 if (it) o = it;
138 var i = 0;
139 var F = function () {};
140 return {
141 s: F,
142 n: function () {
143 if (i >= o.length) return {
144 done: true
145 };
146 return {
147 done: false,
148 value: o[i++]
149 };
150 },
151 e: function (e) {
152 throw e;
153 },
154 f: F
155 };
156 }
157 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
158 }
159 var normalCompletion = true,
160 didErr = false,
161 err;
162 return {
163 s: function () {
164 it = it.call(o);
165 },
166 n: function () {
167 var step = it.next();
168 normalCompletion = step.done;
169 return step;
170 },
171 e: function (e) {
172 didErr = true;
173 err = e;
174 },
175 f: function () {
176 try {
177 if (!normalCompletion && it.return != null) it.return();
178 } finally {
179 if (didErr) throw err;
180 }
181 }
182 };
183 }
184 function _toPrimitive(input, hint) {
185 if (typeof input !== "object" || input === null) return input;
186 var prim = input[Symbol.toPrimitive];
187 if (prim !== undefined) {
188 var res = prim.call(input, hint || "default");
189 if (typeof res !== "object") return res;
190 throw new TypeError("@@toPrimitive must return a primitive value.");
191 }
192 return (hint === "string" ? String : Number)(input);
193 }
194 function _toPropertyKey(arg) {
195 var key = _toPrimitive(arg, "string");
196 return typeof key === "symbol" ? key : String(key);
197 }
198
199 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
200
201 var check = function (it) {
202 return it && it.Math == Math && it;
203 };
204
205 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
206 var global$a =
207 // eslint-disable-next-line es/no-global-this -- safe
208 check(typeof globalThis == 'object' && globalThis) ||
209 check(typeof window == 'object' && window) ||
210 // eslint-disable-next-line no-restricted-globals -- safe
211 check(typeof self == 'object' && self) ||
212 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
213 // eslint-disable-next-line no-new-func -- fallback
214 (function () { return this; })() || Function('return this')();
215
216 var objectGetOwnPropertyDescriptor = {};
217
218 var fails$f = function (exec) {
219 try {
220 return !!exec();
221 } catch (error) {
222 return true;
223 }
224 };
225
226 var fails$e = fails$f;
227
228 // Detect IE8's incomplete defineProperty implementation
229 var descriptors = !fails$e(function () {
230 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
231 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
232 });
233
234 var fails$d = fails$f;
235
236 var functionBindNative = !fails$d(function () {
237 // eslint-disable-next-line es/no-function-prototype-bind -- safe
238 var test = (function () { /* empty */ }).bind();
239 // eslint-disable-next-line no-prototype-builtins -- safe
240 return typeof test != 'function' || test.hasOwnProperty('prototype');
241 });
242
243 var NATIVE_BIND$2 = functionBindNative;
244
245 var call$5 = Function.prototype.call;
246
247 var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
248 return call$5.apply(call$5, arguments);
249 };
250
251 var objectPropertyIsEnumerable = {};
252
253 var $propertyIsEnumerable = {}.propertyIsEnumerable;
254 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
255 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
256
257 // Nashorn ~ JDK8 bug
258 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
259
260 // `Object.prototype.propertyIsEnumerable` method implementation
261 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
262 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
263 var descriptor = getOwnPropertyDescriptor$1(this, V);
264 return !!descriptor && descriptor.enumerable;
265 } : $propertyIsEnumerable;
266
267 var createPropertyDescriptor$3 = function (bitmap, value) {
268 return {
269 enumerable: !(bitmap & 1),
270 configurable: !(bitmap & 2),
271 writable: !(bitmap & 4),
272 value: value
273 };
274 };
275
276 var NATIVE_BIND$1 = functionBindNative;
277
278 var FunctionPrototype$1 = Function.prototype;
279 var call$4 = FunctionPrototype$1.call;
280 var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
281
282 var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
283 return function () {
284 return call$4.apply(fn, arguments);
285 };
286 };
287
288 var uncurryThis$h = functionUncurryThis;
289
290 var toString$4 = uncurryThis$h({}.toString);
291 var stringSlice$1 = uncurryThis$h(''.slice);
292
293 var classofRaw$2 = function (it) {
294 return stringSlice$1(toString$4(it), 8, -1);
295 };
296
297 var uncurryThis$g = functionUncurryThis;
298 var fails$c = fails$f;
299 var classof$5 = classofRaw$2;
300
301 var $Object$3 = Object;
302 var split = uncurryThis$g(''.split);
303
304 // fallback for non-array-like ES3 and non-enumerable old V8 strings
305 var indexedObject = fails$c(function () {
306 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
307 // eslint-disable-next-line no-prototype-builtins -- safe
308 return !$Object$3('z').propertyIsEnumerable(0);
309 }) ? function (it) {
310 return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
311 } : $Object$3;
312
313 // we can't use just `it == null` since of `document.all` special case
314 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
315 var isNullOrUndefined$2 = function (it) {
316 return it === null || it === undefined;
317 };
318
319 var isNullOrUndefined$1 = isNullOrUndefined$2;
320
321 var $TypeError$7 = TypeError;
322
323 // `RequireObjectCoercible` abstract operation
324 // https://tc39.es/ecma262/#sec-requireobjectcoercible
325 var requireObjectCoercible$2 = function (it) {
326 if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
327 return it;
328 };
329
330 // toObject with fallback for non-array-like ES3 strings
331 var IndexedObject$3 = indexedObject;
332 var requireObjectCoercible$1 = requireObjectCoercible$2;
333
334 var toIndexedObject$6 = function (it) {
335 return IndexedObject$3(requireObjectCoercible$1(it));
336 };
337
338 var documentAll$2 = typeof document == 'object' && document.all;
339
340 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
341 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
342 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
343
344 var documentAll_1 = {
345 all: documentAll$2,
346 IS_HTMLDDA: IS_HTMLDDA
347 };
348
349 var $documentAll$1 = documentAll_1;
350
351 var documentAll$1 = $documentAll$1.all;
352
353 // `IsCallable` abstract operation
354 // https://tc39.es/ecma262/#sec-iscallable
355 var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
356 return typeof argument == 'function' || argument === documentAll$1;
357 } : function (argument) {
358 return typeof argument == 'function';
359 };
360
361 var isCallable$b = isCallable$c;
362 var $documentAll = documentAll_1;
363
364 var documentAll = $documentAll.all;
365
366 var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
367 return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
368 } : function (it) {
369 return typeof it == 'object' ? it !== null : isCallable$b(it);
370 };
371
372 var global$9 = global$a;
373 var isCallable$a = isCallable$c;
374
375 var aFunction = function (argument) {
376 return isCallable$a(argument) ? argument : undefined;
377 };
378
379 var getBuiltIn$4 = function (namespace, method) {
380 return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
381 };
382
383 var uncurryThis$f = functionUncurryThis;
384
385 var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
386
387 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
388
389 var global$8 = global$a;
390 var userAgent$2 = engineUserAgent;
391
392 var process = global$8.process;
393 var Deno = global$8.Deno;
394 var versions = process && process.versions || Deno && Deno.version;
395 var v8 = versions && versions.v8;
396 var match, version;
397
398 if (v8) {
399 match = v8.split('.');
400 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
401 // but their correct versions are not interesting for us
402 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
403 }
404
405 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
406 // so check `userAgent` even if `.v8` exists, but 0
407 if (!version && userAgent$2) {
408 match = userAgent$2.match(/Edge\/(\d+)/);
409 if (!match || match[1] >= 74) {
410 match = userAgent$2.match(/Chrome\/(\d+)/);
411 if (match) version = +match[1];
412 }
413 }
414
415 var engineV8Version = version;
416
417 /* eslint-disable es/no-symbol -- required for testing */
418
419 var V8_VERSION$2 = engineV8Version;
420 var fails$b = fails$f;
421
422 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
423 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
424 var symbol = Symbol();
425 // Chrome 38 Symbol has incorrect toString conversion
426 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
427 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
428 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
429 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
430 });
431
432 /* eslint-disable es/no-symbol -- required for testing */
433
434 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
435
436 var useSymbolAsUid = NATIVE_SYMBOL$1
437 && !Symbol.sham
438 && typeof Symbol.iterator == 'symbol';
439
440 var getBuiltIn$3 = getBuiltIn$4;
441 var isCallable$9 = isCallable$c;
442 var isPrototypeOf = objectIsPrototypeOf;
443 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
444
445 var $Object$2 = Object;
446
447 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
448 return typeof it == 'symbol';
449 } : function (it) {
450 var $Symbol = getBuiltIn$3('Symbol');
451 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
452 };
453
454 var $String$3 = String;
455
456 var tryToString$2 = function (argument) {
457 try {
458 return $String$3(argument);
459 } catch (error) {
460 return 'Object';
461 }
462 };
463
464 var isCallable$8 = isCallable$c;
465 var tryToString$1 = tryToString$2;
466
467 var $TypeError$6 = TypeError;
468
469 // `Assert: IsCallable(argument) is true`
470 var aCallable$3 = function (argument) {
471 if (isCallable$8(argument)) return argument;
472 throw $TypeError$6(tryToString$1(argument) + ' is not a function');
473 };
474
475 var aCallable$2 = aCallable$3;
476 var isNullOrUndefined = isNullOrUndefined$2;
477
478 // `GetMethod` abstract operation
479 // https://tc39.es/ecma262/#sec-getmethod
480 var getMethod$1 = function (V, P) {
481 var func = V[P];
482 return isNullOrUndefined(func) ? undefined : aCallable$2(func);
483 };
484
485 var call$3 = functionCall;
486 var isCallable$7 = isCallable$c;
487 var isObject$7 = isObject$8;
488
489 var $TypeError$5 = TypeError;
490
491 // `OrdinaryToPrimitive` abstract operation
492 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
493 var ordinaryToPrimitive$1 = function (input, pref) {
494 var fn, val;
495 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
496 if (isCallable$7(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
497 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
498 throw $TypeError$5("Can't convert object to primitive value");
499 };
500
501 var sharedExports = {};
502 var shared$3 = {
503 get exports(){ return sharedExports; },
504 set exports(v){ sharedExports = v; },
505 };
506
507 var global$7 = global$a;
508
509 // eslint-disable-next-line es/no-object-defineproperty -- safe
510 var defineProperty$3 = Object.defineProperty;
511
512 var defineGlobalProperty$3 = function (key, value) {
513 try {
514 defineProperty$3(global$7, key, { value: value, configurable: true, writable: true });
515 } catch (error) {
516 global$7[key] = value;
517 } return value;
518 };
519
520 var global$6 = global$a;
521 var defineGlobalProperty$2 = defineGlobalProperty$3;
522
523 var SHARED = '__core-js_shared__';
524 var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
525
526 var sharedStore = store$3;
527
528 var store$2 = sharedStore;
529
530 (shared$3.exports = function (key, value) {
531 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
532 })('versions', []).push({
533 version: '3.29.0',
534 mode: 'global',
535 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
536 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
537 source: 'https://github.com/zloirock/core-js'
538 });
539
540 var requireObjectCoercible = requireObjectCoercible$2;
541
542 var $Object$1 = Object;
543
544 // `ToObject` abstract operation
545 // https://tc39.es/ecma262/#sec-toobject
546 var toObject$6 = function (argument) {
547 return $Object$1(requireObjectCoercible(argument));
548 };
549
550 var uncurryThis$e = functionUncurryThis;
551 var toObject$5 = toObject$6;
552
553 var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
554
555 // `HasOwnProperty` abstract operation
556 // https://tc39.es/ecma262/#sec-hasownproperty
557 // eslint-disable-next-line es/no-object-hasown -- safe
558 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
559 return hasOwnProperty(toObject$5(it), key);
560 };
561
562 var uncurryThis$d = functionUncurryThis;
563
564 var id = 0;
565 var postfix = Math.random();
566 var toString$3 = uncurryThis$d(1.0.toString);
567
568 var uid$2 = function (key) {
569 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
570 };
571
572 var global$5 = global$a;
573 var shared$2 = sharedExports;
574 var hasOwn$6 = hasOwnProperty_1;
575 var uid$1 = uid$2;
576 var NATIVE_SYMBOL = symbolConstructorDetection;
577 var USE_SYMBOL_AS_UID = useSymbolAsUid;
578
579 var Symbol$1 = global$5.Symbol;
580 var WellKnownSymbolsStore = shared$2('wks');
581 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
582
583 var wellKnownSymbol$8 = function (name) {
584 if (!hasOwn$6(WellKnownSymbolsStore, name)) {
585 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
586 ? Symbol$1[name]
587 : createWellKnownSymbol('Symbol.' + name);
588 } return WellKnownSymbolsStore[name];
589 };
590
591 var call$2 = functionCall;
592 var isObject$6 = isObject$8;
593 var isSymbol$1 = isSymbol$2;
594 var getMethod = getMethod$1;
595 var ordinaryToPrimitive = ordinaryToPrimitive$1;
596 var wellKnownSymbol$7 = wellKnownSymbol$8;
597
598 var $TypeError$4 = TypeError;
599 var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
600
601 // `ToPrimitive` abstract operation
602 // https://tc39.es/ecma262/#sec-toprimitive
603 var toPrimitive$1 = function (input, pref) {
604 if (!isObject$6(input) || isSymbol$1(input)) return input;
605 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
606 var result;
607 if (exoticToPrim) {
608 if (pref === undefined) pref = 'default';
609 result = call$2(exoticToPrim, input, pref);
610 if (!isObject$6(result) || isSymbol$1(result)) return result;
611 throw $TypeError$4("Can't convert object to primitive value");
612 }
613 if (pref === undefined) pref = 'number';
614 return ordinaryToPrimitive(input, pref);
615 };
616
617 var toPrimitive = toPrimitive$1;
618 var isSymbol = isSymbol$2;
619
620 // `ToPropertyKey` abstract operation
621 // https://tc39.es/ecma262/#sec-topropertykey
622 var toPropertyKey$3 = function (argument) {
623 var key = toPrimitive(argument, 'string');
624 return isSymbol(key) ? key : key + '';
625 };
626
627 var global$4 = global$a;
628 var isObject$5 = isObject$8;
629
630 var document$1 = global$4.document;
631 // typeof document.createElement is 'object' in old IE
632 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
633
634 var documentCreateElement$1 = function (it) {
635 return EXISTS$1 ? document$1.createElement(it) : {};
636 };
637
638 var DESCRIPTORS$8 = descriptors;
639 var fails$a = fails$f;
640 var createElement = documentCreateElement$1;
641
642 // Thanks to IE8 for its funny defineProperty
643 var ie8DomDefine = !DESCRIPTORS$8 && !fails$a(function () {
644 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
645 return Object.defineProperty(createElement('div'), 'a', {
646 get: function () { return 7; }
647 }).a != 7;
648 });
649
650 var DESCRIPTORS$7 = descriptors;
651 var call$1 = functionCall;
652 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
653 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
654 var toIndexedObject$5 = toIndexedObject$6;
655 var toPropertyKey$2 = toPropertyKey$3;
656 var hasOwn$5 = hasOwnProperty_1;
657 var IE8_DOM_DEFINE$1 = ie8DomDefine;
658
659 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
660 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
661
662 // `Object.getOwnPropertyDescriptor` method
663 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
664 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
665 O = toIndexedObject$5(O);
666 P = toPropertyKey$2(P);
667 if (IE8_DOM_DEFINE$1) try {
668 return $getOwnPropertyDescriptor$1(O, P);
669 } catch (error) { /* empty */ }
670 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
671 };
672
673 var objectDefineProperty = {};
674
675 var DESCRIPTORS$6 = descriptors;
676 var fails$9 = fails$f;
677
678 // V8 ~ Chrome 36-
679 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
680 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$9(function () {
681 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
682 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
683 value: 42,
684 writable: false
685 }).prototype != 42;
686 });
687
688 var isObject$4 = isObject$8;
689
690 var $String$2 = String;
691 var $TypeError$3 = TypeError;
692
693 // `Assert: Type(argument) is Object`
694 var anObject$4 = function (argument) {
695 if (isObject$4(argument)) return argument;
696 throw $TypeError$3($String$2(argument) + ' is not an object');
697 };
698
699 var DESCRIPTORS$5 = descriptors;
700 var IE8_DOM_DEFINE = ie8DomDefine;
701 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
702 var anObject$3 = anObject$4;
703 var toPropertyKey$1 = toPropertyKey$3;
704
705 var $TypeError$2 = TypeError;
706 // eslint-disable-next-line es/no-object-defineproperty -- safe
707 var $defineProperty = Object.defineProperty;
708 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
709 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
710 var ENUMERABLE = 'enumerable';
711 var CONFIGURABLE$1 = 'configurable';
712 var WRITABLE = 'writable';
713
714 // `Object.defineProperty` method
715 // https://tc39.es/ecma262/#sec-object.defineproperty
716 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
717 anObject$3(O);
718 P = toPropertyKey$1(P);
719 anObject$3(Attributes);
720 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
721 var current = $getOwnPropertyDescriptor(O, P);
722 if (current && current[WRITABLE]) {
723 O[P] = Attributes.value;
724 Attributes = {
725 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
726 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
727 writable: false
728 };
729 }
730 } return $defineProperty(O, P, Attributes);
731 } : $defineProperty : function defineProperty(O, P, Attributes) {
732 anObject$3(O);
733 P = toPropertyKey$1(P);
734 anObject$3(Attributes);
735 if (IE8_DOM_DEFINE) try {
736 return $defineProperty(O, P, Attributes);
737 } catch (error) { /* empty */ }
738 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
739 if ('value' in Attributes) O[P] = Attributes.value;
740 return O;
741 };
742
743 var DESCRIPTORS$4 = descriptors;
744 var definePropertyModule$4 = objectDefineProperty;
745 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
746
747 var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
748 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
749 } : function (object, key, value) {
750 object[key] = value;
751 return object;
752 };
753
754 var makeBuiltInExports = {};
755 var makeBuiltIn$2 = {
756 get exports(){ return makeBuiltInExports; },
757 set exports(v){ makeBuiltInExports = v; },
758 };
759
760 var DESCRIPTORS$3 = descriptors;
761 var hasOwn$4 = hasOwnProperty_1;
762
763 var FunctionPrototype = Function.prototype;
764 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
765 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
766
767 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
768 // additional protection from minified / mangled / dropped function names
769 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
770 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
771
772 var functionName = {
773 EXISTS: EXISTS,
774 PROPER: PROPER,
775 CONFIGURABLE: CONFIGURABLE
776 };
777
778 var uncurryThis$c = functionUncurryThis;
779 var isCallable$6 = isCallable$c;
780 var store$1 = sharedStore;
781
782 var functionToString = uncurryThis$c(Function.toString);
783
784 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
785 if (!isCallable$6(store$1.inspectSource)) {
786 store$1.inspectSource = function (it) {
787 return functionToString(it);
788 };
789 }
790
791 var inspectSource$2 = store$1.inspectSource;
792
793 var global$3 = global$a;
794 var isCallable$5 = isCallable$c;
795
796 var WeakMap$1 = global$3.WeakMap;
797
798 var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
799
800 var shared$1 = sharedExports;
801 var uid = uid$2;
802
803 var keys = shared$1('keys');
804
805 var sharedKey$2 = function (key) {
806 return keys[key] || (keys[key] = uid(key));
807 };
808
809 var hiddenKeys$4 = {};
810
811 var NATIVE_WEAK_MAP = weakMapBasicDetection;
812 var global$2 = global$a;
813 var isObject$3 = isObject$8;
814 var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
815 var hasOwn$3 = hasOwnProperty_1;
816 var shared = sharedStore;
817 var sharedKey$1 = sharedKey$2;
818 var hiddenKeys$3 = hiddenKeys$4;
819
820 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
821 var TypeError$1 = global$2.TypeError;
822 var WeakMap = global$2.WeakMap;
823 var set, get, has;
824
825 var enforce = function (it) {
826 return has(it) ? get(it) : set(it, {});
827 };
828
829 var getterFor = function (TYPE) {
830 return function (it) {
831 var state;
832 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
833 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
834 } return state;
835 };
836 };
837
838 if (NATIVE_WEAK_MAP || shared.state) {
839 var store = shared.state || (shared.state = new WeakMap());
840 /* eslint-disable no-self-assign -- prototype methods protection */
841 store.get = store.get;
842 store.has = store.has;
843 store.set = store.set;
844 /* eslint-enable no-self-assign -- prototype methods protection */
845 set = function (it, metadata) {
846 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
847 metadata.facade = it;
848 store.set(it, metadata);
849 return metadata;
850 };
851 get = function (it) {
852 return store.get(it) || {};
853 };
854 has = function (it) {
855 return store.has(it);
856 };
857 } else {
858 var STATE = sharedKey$1('state');
859 hiddenKeys$3[STATE] = true;
860 set = function (it, metadata) {
861 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
862 metadata.facade = it;
863 createNonEnumerableProperty$1(it, STATE, metadata);
864 return metadata;
865 };
866 get = function (it) {
867 return hasOwn$3(it, STATE) ? it[STATE] : {};
868 };
869 has = function (it) {
870 return hasOwn$3(it, STATE);
871 };
872 }
873
874 var internalState = {
875 set: set,
876 get: get,
877 has: has,
878 enforce: enforce,
879 getterFor: getterFor
880 };
881
882 var uncurryThis$b = functionUncurryThis;
883 var fails$8 = fails$f;
884 var isCallable$4 = isCallable$c;
885 var hasOwn$2 = hasOwnProperty_1;
886 var DESCRIPTORS$2 = descriptors;
887 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
888 var inspectSource$1 = inspectSource$2;
889 var InternalStateModule = internalState;
890
891 var enforceInternalState = InternalStateModule.enforce;
892 var getInternalState = InternalStateModule.get;
893 var $String$1 = String;
894 // eslint-disable-next-line es/no-object-defineproperty -- safe
895 var defineProperty$2 = Object.defineProperty;
896 var stringSlice = uncurryThis$b(''.slice);
897 var replace = uncurryThis$b(''.replace);
898 var join = uncurryThis$b([].join);
899
900 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$8(function () {
901 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
902 });
903
904 var TEMPLATE = String(String).split('String');
905
906 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
907 if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
908 name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
909 }
910 if (options && options.getter) name = 'get ' + name;
911 if (options && options.setter) name = 'set ' + name;
912 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
913 if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
914 else value.name = name;
915 }
916 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
917 defineProperty$2(value, 'length', { value: options.arity });
918 }
919 try {
920 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
921 if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
922 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
923 } else if (value.prototype) value.prototype = undefined;
924 } catch (error) { /* empty */ }
925 var state = enforceInternalState(value);
926 if (!hasOwn$2(state, 'source')) {
927 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
928 } return value;
929 };
930
931 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
932 // eslint-disable-next-line no-extend-native -- required
933 Function.prototype.toString = makeBuiltIn$1(function toString() {
934 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
935 }, 'toString');
936
937 var isCallable$3 = isCallable$c;
938 var definePropertyModule$3 = objectDefineProperty;
939 var makeBuiltIn = makeBuiltInExports;
940 var defineGlobalProperty$1 = defineGlobalProperty$3;
941
942 var defineBuiltIn$2 = function (O, key, value, options) {
943 if (!options) options = {};
944 var simple = options.enumerable;
945 var name = options.name !== undefined ? options.name : key;
946 if (isCallable$3(value)) makeBuiltIn(value, name, options);
947 if (options.global) {
948 if (simple) O[key] = value;
949 else defineGlobalProperty$1(key, value);
950 } else {
951 try {
952 if (!options.unsafe) delete O[key];
953 else if (O[key]) simple = true;
954 } catch (error) { /* empty */ }
955 if (simple) O[key] = value;
956 else definePropertyModule$3.f(O, key, {
957 value: value,
958 enumerable: false,
959 configurable: !options.nonConfigurable,
960 writable: !options.nonWritable
961 });
962 } return O;
963 };
964
965 var objectGetOwnPropertyNames = {};
966
967 var ceil = Math.ceil;
968 var floor$1 = Math.floor;
969
970 // `Math.trunc` method
971 // https://tc39.es/ecma262/#sec-math.trunc
972 // eslint-disable-next-line es/no-math-trunc -- safe
973 var mathTrunc = Math.trunc || function trunc(x) {
974 var n = +x;
975 return (n > 0 ? floor$1 : ceil)(n);
976 };
977
978 var trunc = mathTrunc;
979
980 // `ToIntegerOrInfinity` abstract operation
981 // https://tc39.es/ecma262/#sec-tointegerorinfinity
982 var toIntegerOrInfinity$3 = function (argument) {
983 var number = +argument;
984 // eslint-disable-next-line no-self-compare -- NaN check
985 return number !== number || number === 0 ? 0 : trunc(number);
986 };
987
988 var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
989
990 var max$2 = Math.max;
991 var min$1 = Math.min;
992
993 // Helper for a popular repeating case of the spec:
994 // Let integer be ? ToInteger(index).
995 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
996 var toAbsoluteIndex$3 = function (index, length) {
997 var integer = toIntegerOrInfinity$2(index);
998 return integer < 0 ? max$2(integer + length, 0) : min$1(integer, length);
999 };
1000
1001 var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
1002
1003 var min = Math.min;
1004
1005 // `ToLength` abstract operation
1006 // https://tc39.es/ecma262/#sec-tolength
1007 var toLength$1 = function (argument) {
1008 return argument > 0 ? min(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1009 };
1010
1011 var toLength = toLength$1;
1012
1013 // `LengthOfArrayLike` abstract operation
1014 // https://tc39.es/ecma262/#sec-lengthofarraylike
1015 var lengthOfArrayLike$8 = function (obj) {
1016 return toLength(obj.length);
1017 };
1018
1019 var toIndexedObject$4 = toIndexedObject$6;
1020 var toAbsoluteIndex$2 = toAbsoluteIndex$3;
1021 var lengthOfArrayLike$7 = lengthOfArrayLike$8;
1022
1023 // `Array.prototype.{ indexOf, includes }` methods implementation
1024 var createMethod$1 = function (IS_INCLUDES) {
1025 return function ($this, el, fromIndex) {
1026 var O = toIndexedObject$4($this);
1027 var length = lengthOfArrayLike$7(O);
1028 var index = toAbsoluteIndex$2(fromIndex, length);
1029 var value;
1030 // Array#includes uses SameValueZero equality algorithm
1031 // eslint-disable-next-line no-self-compare -- NaN check
1032 if (IS_INCLUDES && el != el) while (length > index) {
1033 value = O[index++];
1034 // eslint-disable-next-line no-self-compare -- NaN check
1035 if (value != value) return true;
1036 // Array#indexOf ignores holes, Array#includes - not
1037 } else for (;length > index; index++) {
1038 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1039 } return !IS_INCLUDES && -1;
1040 };
1041 };
1042
1043 var arrayIncludes = {
1044 // `Array.prototype.includes` method
1045 // https://tc39.es/ecma262/#sec-array.prototype.includes
1046 includes: createMethod$1(true),
1047 // `Array.prototype.indexOf` method
1048 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1049 indexOf: createMethod$1(false)
1050 };
1051
1052 var uncurryThis$a = functionUncurryThis;
1053 var hasOwn$1 = hasOwnProperty_1;
1054 var toIndexedObject$3 = toIndexedObject$6;
1055 var indexOf = arrayIncludes.indexOf;
1056 var hiddenKeys$2 = hiddenKeys$4;
1057
1058 var push$2 = uncurryThis$a([].push);
1059
1060 var objectKeysInternal = function (object, names) {
1061 var O = toIndexedObject$3(object);
1062 var i = 0;
1063 var result = [];
1064 var key;
1065 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
1066 // Don't enum bug & hidden keys
1067 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1068 ~indexOf(result, key) || push$2(result, key);
1069 }
1070 return result;
1071 };
1072
1073 // IE8- don't enum bug keys
1074 var enumBugKeys$3 = [
1075 'constructor',
1076 'hasOwnProperty',
1077 'isPrototypeOf',
1078 'propertyIsEnumerable',
1079 'toLocaleString',
1080 'toString',
1081 'valueOf'
1082 ];
1083
1084 var internalObjectKeys$1 = objectKeysInternal;
1085 var enumBugKeys$2 = enumBugKeys$3;
1086
1087 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1088
1089 // `Object.getOwnPropertyNames` method
1090 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1091 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1092 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1093 return internalObjectKeys$1(O, hiddenKeys$1);
1094 };
1095
1096 var objectGetOwnPropertySymbols = {};
1097
1098 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1099 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1100
1101 var getBuiltIn$2 = getBuiltIn$4;
1102 var uncurryThis$9 = functionUncurryThis;
1103 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1104 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1105 var anObject$2 = anObject$4;
1106
1107 var concat$1 = uncurryThis$9([].concat);
1108
1109 // all object keys, includes non-enumerable and symbols
1110 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1111 var keys = getOwnPropertyNamesModule.f(anObject$2(it));
1112 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1113 return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1114 };
1115
1116 var hasOwn = hasOwnProperty_1;
1117 var ownKeys = ownKeys$1;
1118 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1119 var definePropertyModule$2 = objectDefineProperty;
1120
1121 var copyConstructorProperties$1 = function (target, source, exceptions) {
1122 var keys = ownKeys(source);
1123 var defineProperty = definePropertyModule$2.f;
1124 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1125 for (var i = 0; i < keys.length; i++) {
1126 var key = keys[i];
1127 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1128 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1129 }
1130 }
1131 };
1132
1133 var fails$7 = fails$f;
1134 var isCallable$2 = isCallable$c;
1135
1136 var replacement = /#|\.prototype\./;
1137
1138 var isForced$1 = function (feature, detection) {
1139 var value = data[normalize(feature)];
1140 return value == POLYFILL ? true
1141 : value == NATIVE ? false
1142 : isCallable$2(detection) ? fails$7(detection)
1143 : !!detection;
1144 };
1145
1146 var normalize = isForced$1.normalize = function (string) {
1147 return String(string).replace(replacement, '.').toLowerCase();
1148 };
1149
1150 var data = isForced$1.data = {};
1151 var NATIVE = isForced$1.NATIVE = 'N';
1152 var POLYFILL = isForced$1.POLYFILL = 'P';
1153
1154 var isForced_1 = isForced$1;
1155
1156 var global$1 = global$a;
1157 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1158 var createNonEnumerableProperty = createNonEnumerableProperty$2;
1159 var defineBuiltIn$1 = defineBuiltIn$2;
1160 var defineGlobalProperty = defineGlobalProperty$3;
1161 var copyConstructorProperties = copyConstructorProperties$1;
1162 var isForced = isForced_1;
1163
1164 /*
1165 options.target - name of the target object
1166 options.global - target is the global object
1167 options.stat - export as static methods of target
1168 options.proto - export as prototype methods of target
1169 options.real - real prototype method for the `pure` version
1170 options.forced - export even if the native feature is available
1171 options.bind - bind methods to the target, required for the `pure` version
1172 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1173 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1174 options.sham - add a flag to not completely full polyfills
1175 options.enumerable - export as enumerable property
1176 options.dontCallGetSet - prevent calling a getter on target
1177 options.name - the .name of the function if it does not match the key
1178 */
1179 var _export = function (options, source) {
1180 var TARGET = options.target;
1181 var GLOBAL = options.global;
1182 var STATIC = options.stat;
1183 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1184 if (GLOBAL) {
1185 target = global$1;
1186 } else if (STATIC) {
1187 target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1188 } else {
1189 target = (global$1[TARGET] || {}).prototype;
1190 }
1191 if (target) for (key in source) {
1192 sourceProperty = source[key];
1193 if (options.dontCallGetSet) {
1194 descriptor = getOwnPropertyDescriptor(target, key);
1195 targetProperty = descriptor && descriptor.value;
1196 } else targetProperty = target[key];
1197 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1198 // contained in target
1199 if (!FORCED && targetProperty !== undefined) {
1200 if (typeof sourceProperty == typeof targetProperty) continue;
1201 copyConstructorProperties(sourceProperty, targetProperty);
1202 }
1203 // add a flag to not completely full polyfills
1204 if (options.sham || (targetProperty && targetProperty.sham)) {
1205 createNonEnumerableProperty(sourceProperty, 'sham', true);
1206 }
1207 defineBuiltIn$1(target, key, sourceProperty, options);
1208 }
1209 };
1210
1211 var classof$4 = classofRaw$2;
1212
1213 // `IsArray` abstract operation
1214 // https://tc39.es/ecma262/#sec-isarray
1215 // eslint-disable-next-line es/no-array-isarray -- safe
1216 var isArray$4 = Array.isArray || function isArray(argument) {
1217 return classof$4(argument) == 'Array';
1218 };
1219
1220 var $TypeError$1 = TypeError;
1221 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1222
1223 var doesNotExceedSafeInteger$2 = function (it) {
1224 if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
1225 return it;
1226 };
1227
1228 var toPropertyKey = toPropertyKey$3;
1229 var definePropertyModule$1 = objectDefineProperty;
1230 var createPropertyDescriptor = createPropertyDescriptor$3;
1231
1232 var createProperty$3 = function (object, key, value) {
1233 var propertyKey = toPropertyKey(key);
1234 if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
1235 else object[propertyKey] = value;
1236 };
1237
1238 var wellKnownSymbol$6 = wellKnownSymbol$8;
1239
1240 var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1241 var test$1 = {};
1242
1243 test$1[TO_STRING_TAG$1] = 'z';
1244
1245 var toStringTagSupport = String(test$1) === '[object z]';
1246
1247 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1248 var isCallable$1 = isCallable$c;
1249 var classofRaw$1 = classofRaw$2;
1250 var wellKnownSymbol$5 = wellKnownSymbol$8;
1251
1252 var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1253 var $Object = Object;
1254
1255 // ES3 wrong here
1256 var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1257
1258 // fallback for IE11 Script Access Denied error
1259 var tryGet = function (it, key) {
1260 try {
1261 return it[key];
1262 } catch (error) { /* empty */ }
1263 };
1264
1265 // getting tag from ES6+ `Object.prototype.toString`
1266 var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1267 var O, tag, result;
1268 return it === undefined ? 'Undefined' : it === null ? 'Null'
1269 // @@toStringTag case
1270 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1271 // builtinTag case
1272 : CORRECT_ARGUMENTS ? classofRaw$1(O)
1273 // ES3 arguments fallback
1274 : (result = classofRaw$1(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1275 };
1276
1277 var uncurryThis$8 = functionUncurryThis;
1278 var fails$6 = fails$f;
1279 var isCallable = isCallable$c;
1280 var classof$2 = classof$3;
1281 var getBuiltIn$1 = getBuiltIn$4;
1282 var inspectSource = inspectSource$2;
1283
1284 var noop = function () { /* empty */ };
1285 var empty = [];
1286 var construct = getBuiltIn$1('Reflect', 'construct');
1287 var constructorRegExp = /^\s*(?:class|function)\b/;
1288 var exec = uncurryThis$8(constructorRegExp.exec);
1289 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1290
1291 var isConstructorModern = function isConstructor(argument) {
1292 if (!isCallable(argument)) return false;
1293 try {
1294 construct(noop, empty, argument);
1295 return true;
1296 } catch (error) {
1297 return false;
1298 }
1299 };
1300
1301 var isConstructorLegacy = function isConstructor(argument) {
1302 if (!isCallable(argument)) return false;
1303 switch (classof$2(argument)) {
1304 case 'AsyncFunction':
1305 case 'GeneratorFunction':
1306 case 'AsyncGeneratorFunction': return false;
1307 }
1308 try {
1309 // we can't check .prototype since constructors produced by .bind haven't it
1310 // `Function#toString` throws on some built-it function in some legacy engines
1311 // (for example, `DOMQuad` and similar in FF41-)
1312 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1313 } catch (error) {
1314 return true;
1315 }
1316 };
1317
1318 isConstructorLegacy.sham = true;
1319
1320 // `IsConstructor` abstract operation
1321 // https://tc39.es/ecma262/#sec-isconstructor
1322 var isConstructor$2 = !construct || fails$6(function () {
1323 var called;
1324 return isConstructorModern(isConstructorModern.call)
1325 || !isConstructorModern(Object)
1326 || !isConstructorModern(function () { called = true; })
1327 || called;
1328 }) ? isConstructorLegacy : isConstructorModern;
1329
1330 var isArray$3 = isArray$4;
1331 var isConstructor$1 = isConstructor$2;
1332 var isObject$2 = isObject$8;
1333 var wellKnownSymbol$4 = wellKnownSymbol$8;
1334
1335 var SPECIES$2 = wellKnownSymbol$4('species');
1336 var $Array$2 = Array;
1337
1338 // a part of `ArraySpeciesCreate` abstract operation
1339 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1340 var arraySpeciesConstructor$1 = function (originalArray) {
1341 var C;
1342 if (isArray$3(originalArray)) {
1343 C = originalArray.constructor;
1344 // cross-realm fallback
1345 if (isConstructor$1(C) && (C === $Array$2 || isArray$3(C.prototype))) C = undefined;
1346 else if (isObject$2(C)) {
1347 C = C[SPECIES$2];
1348 if (C === null) C = undefined;
1349 }
1350 } return C === undefined ? $Array$2 : C;
1351 };
1352
1353 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1354
1355 // `ArraySpeciesCreate` abstract operation
1356 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1357 var arraySpeciesCreate$3 = function (originalArray, length) {
1358 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1359 };
1360
1361 var fails$5 = fails$f;
1362 var wellKnownSymbol$3 = wellKnownSymbol$8;
1363 var V8_VERSION$1 = engineV8Version;
1364
1365 var SPECIES$1 = wellKnownSymbol$3('species');
1366
1367 var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) {
1368 // We can't use this feature detection in V8 since it causes
1369 // deoptimization and serious performance degradation
1370 // https://github.com/zloirock/core-js/issues/677
1371 return V8_VERSION$1 >= 51 || !fails$5(function () {
1372 var array = [];
1373 var constructor = array.constructor = {};
1374 constructor[SPECIES$1] = function () {
1375 return { foo: 1 };
1376 };
1377 return array[METHOD_NAME](Boolean).foo !== 1;
1378 });
1379 };
1380
1381 var $$a = _export;
1382 var fails$4 = fails$f;
1383 var isArray$2 = isArray$4;
1384 var isObject$1 = isObject$8;
1385 var toObject$4 = toObject$6;
1386 var lengthOfArrayLike$6 = lengthOfArrayLike$8;
1387 var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1388 var createProperty$2 = createProperty$3;
1389 var arraySpeciesCreate$2 = arraySpeciesCreate$3;
1390 var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$4;
1391 var wellKnownSymbol$2 = wellKnownSymbol$8;
1392 var V8_VERSION = engineV8Version;
1393
1394 var IS_CONCAT_SPREADABLE = wellKnownSymbol$2('isConcatSpreadable');
1395
1396 // We can't use this feature detection in V8 since it causes
1397 // deoptimization and serious performance degradation
1398 // https://github.com/zloirock/core-js/issues/679
1399 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$4(function () {
1400 var array = [];
1401 array[IS_CONCAT_SPREADABLE] = false;
1402 return array.concat()[0] !== array;
1403 });
1404
1405 var isConcatSpreadable = function (O) {
1406 if (!isObject$1(O)) return false;
1407 var spreadable = O[IS_CONCAT_SPREADABLE];
1408 return spreadable !== undefined ? !!spreadable : isArray$2(O);
1409 };
1410
1411 var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$3('concat');
1412
1413 // `Array.prototype.concat` method
1414 // https://tc39.es/ecma262/#sec-array.prototype.concat
1415 // with adding support of @@isConcatSpreadable and @@species
1416 $$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
1417 // eslint-disable-next-line no-unused-vars -- required for `.length`
1418 concat: function concat(arg) {
1419 var O = toObject$4(this);
1420 var A = arraySpeciesCreate$2(O, 0);
1421 var n = 0;
1422 var i, k, length, len, E;
1423 for (i = -1, length = arguments.length; i < length; i++) {
1424 E = i === -1 ? O : arguments[i];
1425 if (isConcatSpreadable(E)) {
1426 len = lengthOfArrayLike$6(E);
1427 doesNotExceedSafeInteger$1(n + len);
1428 for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]);
1429 } else {
1430 doesNotExceedSafeInteger$1(n + 1);
1431 createProperty$2(A, n++, E);
1432 }
1433 }
1434 A.length = n;
1435 return A;
1436 }
1437 });
1438
1439 var internalObjectKeys = objectKeysInternal;
1440 var enumBugKeys$1 = enumBugKeys$3;
1441
1442 // `Object.keys` method
1443 // https://tc39.es/ecma262/#sec-object.keys
1444 // eslint-disable-next-line es/no-object-keys -- safe
1445 var objectKeys$2 = Object.keys || function keys(O) {
1446 return internalObjectKeys(O, enumBugKeys$1);
1447 };
1448
1449 var DESCRIPTORS$1 = descriptors;
1450 var uncurryThis$7 = functionUncurryThis;
1451 var call = functionCall;
1452 var fails$3 = fails$f;
1453 var objectKeys$1 = objectKeys$2;
1454 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1455 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1456 var toObject$3 = toObject$6;
1457 var IndexedObject$2 = indexedObject;
1458
1459 // eslint-disable-next-line es/no-object-assign -- safe
1460 var $assign = Object.assign;
1461 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1462 var defineProperty$1 = Object.defineProperty;
1463 var concat = uncurryThis$7([].concat);
1464
1465 // `Object.assign` method
1466 // https://tc39.es/ecma262/#sec-object.assign
1467 var objectAssign = !$assign || fails$3(function () {
1468 // should have correct order of operations (Edge bug)
1469 if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1470 enumerable: true,
1471 get: function () {
1472 defineProperty$1(this, 'b', {
1473 value: 3,
1474 enumerable: false
1475 });
1476 }
1477 }), { b: 2 })).b !== 1) return true;
1478 // should work with symbols and should have deterministic property order (V8 bug)
1479 var A = {};
1480 var B = {};
1481 // eslint-disable-next-line es/no-symbol -- safe
1482 var symbol = Symbol();
1483 var alphabet = 'abcdefghijklmnopqrst';
1484 A[symbol] = 7;
1485 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1486 return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1487 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1488 var T = toObject$3(target);
1489 var argumentsLength = arguments.length;
1490 var index = 1;
1491 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1492 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1493 while (argumentsLength > index) {
1494 var S = IndexedObject$2(arguments[index++]);
1495 var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1496 var length = keys.length;
1497 var j = 0;
1498 var key;
1499 while (length > j) {
1500 key = keys[j++];
1501 if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1502 }
1503 } return T;
1504 } : $assign;
1505
1506 var $$9 = _export;
1507 var assign = objectAssign;
1508
1509 // `Object.assign` method
1510 // https://tc39.es/ecma262/#sec-object.assign
1511 // eslint-disable-next-line es/no-object-assign -- required for testing
1512 $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1513 assign: assign
1514 });
1515
1516 var uncurryThis$6 = functionUncurryThis;
1517
1518 var arraySlice$1 = uncurryThis$6([].slice);
1519
1520 var $$8 = _export;
1521 var isArray$1 = isArray$4;
1522 var isConstructor = isConstructor$2;
1523 var isObject = isObject$8;
1524 var toAbsoluteIndex$1 = toAbsoluteIndex$3;
1525 var lengthOfArrayLike$5 = lengthOfArrayLike$8;
1526 var toIndexedObject$2 = toIndexedObject$6;
1527 var createProperty$1 = createProperty$3;
1528 var wellKnownSymbol$1 = wellKnownSymbol$8;
1529 var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$4;
1530 var nativeSlice = arraySlice$1;
1531
1532 var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('slice');
1533
1534 var SPECIES = wellKnownSymbol$1('species');
1535 var $Array$1 = Array;
1536 var max$1 = Math.max;
1537
1538 // `Array.prototype.slice` method
1539 // https://tc39.es/ecma262/#sec-array.prototype.slice
1540 // fallback for not array-like ES3 strings and DOM objects
1541 $$8({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
1542 slice: function slice(start, end) {
1543 var O = toIndexedObject$2(this);
1544 var length = lengthOfArrayLike$5(O);
1545 var k = toAbsoluteIndex$1(start, length);
1546 var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
1547 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
1548 var Constructor, result, n;
1549 if (isArray$1(O)) {
1550 Constructor = O.constructor;
1551 // cross-realm fallback
1552 if (isConstructor(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
1553 Constructor = undefined;
1554 } else if (isObject(Constructor)) {
1555 Constructor = Constructor[SPECIES];
1556 if (Constructor === null) Constructor = undefined;
1557 }
1558 if (Constructor === $Array$1 || Constructor === undefined) {
1559 return nativeSlice(O, k, fin);
1560 }
1561 }
1562 result = new (Constructor === undefined ? $Array$1 : Constructor)(max$1(fin - k, 0));
1563 for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
1564 result.length = n;
1565 return result;
1566 }
1567 });
1568
1569 var classofRaw = classofRaw$2;
1570 var uncurryThis$5 = functionUncurryThis;
1571
1572 var functionUncurryThisClause = function (fn) {
1573 // Nashorn bug:
1574 // https://github.com/zloirock/core-js/issues/1128
1575 // https://github.com/zloirock/core-js/issues/1130
1576 if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
1577 };
1578
1579 var fails$2 = fails$f;
1580
1581 var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
1582 var method = [][METHOD_NAME];
1583 return !!method && fails$2(function () {
1584 // eslint-disable-next-line no-useless-call -- required for testing
1585 method.call(null, argument || function () { return 1; }, 1);
1586 });
1587 };
1588
1589 /* eslint-disable es/no-array-prototype-indexof -- required for testing */
1590 var $$7 = _export;
1591 var uncurryThis$4 = functionUncurryThisClause;
1592 var $indexOf = arrayIncludes.indexOf;
1593 var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
1594
1595 var nativeIndexOf = uncurryThis$4([].indexOf);
1596
1597 var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
1598 var FORCED$2 = NEGATIVE_ZERO || !arrayMethodIsStrict$2('indexOf');
1599
1600 // `Array.prototype.indexOf` method
1601 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1602 $$7({ target: 'Array', proto: true, forced: FORCED$2 }, {
1603 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1604 var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
1605 return NEGATIVE_ZERO
1606 // convert -0 to +0
1607 ? nativeIndexOf(this, searchElement, fromIndex) || 0
1608 : $indexOf(this, searchElement, fromIndex);
1609 }
1610 });
1611
1612 var uncurryThis$3 = functionUncurryThisClause;
1613 var aCallable$1 = aCallable$3;
1614 var NATIVE_BIND = functionBindNative;
1615
1616 var bind$2 = uncurryThis$3(uncurryThis$3.bind);
1617
1618 // optional / simple context binding
1619 var functionBindContext = function (fn, that) {
1620 aCallable$1(fn);
1621 return that === undefined ? fn : NATIVE_BIND ? bind$2(fn, that) : function (/* ...args */) {
1622 return fn.apply(that, arguments);
1623 };
1624 };
1625
1626 var isArray = isArray$4;
1627 var lengthOfArrayLike$4 = lengthOfArrayLike$8;
1628 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
1629 var bind$1 = functionBindContext;
1630
1631 // `FlattenIntoArray` abstract operation
1632 // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
1633 var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
1634 var targetIndex = start;
1635 var sourceIndex = 0;
1636 var mapFn = mapper ? bind$1(mapper, thisArg) : false;
1637 var element, elementLen;
1638
1639 while (sourceIndex < sourceLen) {
1640 if (sourceIndex in source) {
1641 element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
1642
1643 if (depth > 0 && isArray(element)) {
1644 elementLen = lengthOfArrayLike$4(element);
1645 targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
1646 } else {
1647 doesNotExceedSafeInteger(targetIndex + 1);
1648 target[targetIndex] = element;
1649 }
1650
1651 targetIndex++;
1652 }
1653 sourceIndex++;
1654 }
1655 return targetIndex;
1656 };
1657
1658 var flattenIntoArray_1 = flattenIntoArray$1;
1659
1660 var $$6 = _export;
1661 var flattenIntoArray = flattenIntoArray_1;
1662 var toObject$2 = toObject$6;
1663 var lengthOfArrayLike$3 = lengthOfArrayLike$8;
1664 var toIntegerOrInfinity = toIntegerOrInfinity$3;
1665 var arraySpeciesCreate$1 = arraySpeciesCreate$3;
1666
1667 // `Array.prototype.flat` method
1668 // https://tc39.es/ecma262/#sec-array.prototype.flat
1669 $$6({ target: 'Array', proto: true }, {
1670 flat: function flat(/* depthArg = 1 */) {
1671 var depthArg = arguments.length ? arguments[0] : undefined;
1672 var O = toObject$2(this);
1673 var sourceLen = lengthOfArrayLike$3(O);
1674 var A = arraySpeciesCreate$1(O, 0);
1675 A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
1676 return A;
1677 }
1678 });
1679
1680 var objectDefineProperties = {};
1681
1682 var DESCRIPTORS = descriptors;
1683 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1684 var definePropertyModule = objectDefineProperty;
1685 var anObject$1 = anObject$4;
1686 var toIndexedObject$1 = toIndexedObject$6;
1687 var objectKeys = objectKeys$2;
1688
1689 // `Object.defineProperties` method
1690 // https://tc39.es/ecma262/#sec-object.defineproperties
1691 // eslint-disable-next-line es/no-object-defineproperties -- safe
1692 objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1693 anObject$1(O);
1694 var props = toIndexedObject$1(Properties);
1695 var keys = objectKeys(Properties);
1696 var length = keys.length;
1697 var index = 0;
1698 var key;
1699 while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1700 return O;
1701 };
1702
1703 var getBuiltIn = getBuiltIn$4;
1704
1705 var html$1 = getBuiltIn('document', 'documentElement');
1706
1707 /* global ActiveXObject -- old IE, WSH */
1708
1709 var anObject = anObject$4;
1710 var definePropertiesModule = objectDefineProperties;
1711 var enumBugKeys = enumBugKeys$3;
1712 var hiddenKeys = hiddenKeys$4;
1713 var html = html$1;
1714 var documentCreateElement = documentCreateElement$1;
1715 var sharedKey = sharedKey$2;
1716
1717 var GT = '>';
1718 var LT = '<';
1719 var PROTOTYPE = 'prototype';
1720 var SCRIPT = 'script';
1721 var IE_PROTO = sharedKey('IE_PROTO');
1722
1723 var EmptyConstructor = function () { /* empty */ };
1724
1725 var scriptTag = function (content) {
1726 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1727 };
1728
1729 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1730 var NullProtoObjectViaActiveX = function (activeXDocument) {
1731 activeXDocument.write(scriptTag(''));
1732 activeXDocument.close();
1733 var temp = activeXDocument.parentWindow.Object;
1734 activeXDocument = null; // avoid memory leak
1735 return temp;
1736 };
1737
1738 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1739 var NullProtoObjectViaIFrame = function () {
1740 // Thrash, waste and sodomy: IE GC bug
1741 var iframe = documentCreateElement('iframe');
1742 var JS = 'java' + SCRIPT + ':';
1743 var iframeDocument;
1744 iframe.style.display = 'none';
1745 html.appendChild(iframe);
1746 // https://github.com/zloirock/core-js/issues/475
1747 iframe.src = String(JS);
1748 iframeDocument = iframe.contentWindow.document;
1749 iframeDocument.open();
1750 iframeDocument.write(scriptTag('document.F=Object'));
1751 iframeDocument.close();
1752 return iframeDocument.F;
1753 };
1754
1755 // Check for document.domain and active x support
1756 // No need to use active x approach when document.domain is not set
1757 // see https://github.com/es-shims/es5-shim/issues/150
1758 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1759 // avoid IE GC bug
1760 var activeXDocument;
1761 var NullProtoObject = function () {
1762 try {
1763 activeXDocument = new ActiveXObject('htmlfile');
1764 } catch (error) { /* ignore */ }
1765 NullProtoObject = typeof document != 'undefined'
1766 ? document.domain && activeXDocument
1767 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1768 : NullProtoObjectViaIFrame()
1769 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1770 var length = enumBugKeys.length;
1771 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1772 return NullProtoObject();
1773 };
1774
1775 hiddenKeys[IE_PROTO] = true;
1776
1777 // `Object.create` method
1778 // https://tc39.es/ecma262/#sec-object.create
1779 // eslint-disable-next-line es/no-object-create -- safe
1780 var objectCreate = Object.create || function create(O, Properties) {
1781 var result;
1782 if (O !== null) {
1783 EmptyConstructor[PROTOTYPE] = anObject(O);
1784 result = new EmptyConstructor();
1785 EmptyConstructor[PROTOTYPE] = null;
1786 // add "__proto__" for Object.getPrototypeOf polyfill
1787 result[IE_PROTO] = O;
1788 } else result = NullProtoObject();
1789 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1790 };
1791
1792 var wellKnownSymbol = wellKnownSymbol$8;
1793 var create = objectCreate;
1794 var defineProperty = objectDefineProperty.f;
1795
1796 var UNSCOPABLES = wellKnownSymbol('unscopables');
1797 var ArrayPrototype = Array.prototype;
1798
1799 // Array.prototype[@@unscopables]
1800 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1801 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1802 defineProperty(ArrayPrototype, UNSCOPABLES, {
1803 configurable: true,
1804 value: create(null)
1805 });
1806 }
1807
1808 // add a key to Array.prototype[@@unscopables]
1809 var addToUnscopables$3 = function (key) {
1810 ArrayPrototype[UNSCOPABLES][key] = true;
1811 };
1812
1813 // this method was added to unscopables after implementation
1814 // in popular engines, so it's moved to a separate module
1815 var addToUnscopables$2 = addToUnscopables$3;
1816
1817 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1818 addToUnscopables$2('flat');
1819
1820 var tryToString = tryToString$2;
1821
1822 var $TypeError = TypeError;
1823
1824 var deletePropertyOrThrow$1 = function (O, P) {
1825 if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
1826 };
1827
1828 var classof$1 = classof$3;
1829
1830 var $String = String;
1831
1832 var toString$2 = function (argument) {
1833 if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1834 return $String(argument);
1835 };
1836
1837 var toAbsoluteIndex = toAbsoluteIndex$3;
1838 var lengthOfArrayLike$2 = lengthOfArrayLike$8;
1839 var createProperty = createProperty$3;
1840
1841 var $Array = Array;
1842 var max = Math.max;
1843
1844 var arraySliceSimple = function (O, start, end) {
1845 var length = lengthOfArrayLike$2(O);
1846 var k = toAbsoluteIndex(start, length);
1847 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1848 var result = $Array(max(fin - k, 0));
1849 for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1850 result.length = n;
1851 return result;
1852 };
1853
1854 var arraySlice = arraySliceSimple;
1855
1856 var floor = Math.floor;
1857
1858 var mergeSort = function (array, comparefn) {
1859 var length = array.length;
1860 var middle = floor(length / 2);
1861 return length < 8 ? insertionSort(array, comparefn) : merge(
1862 array,
1863 mergeSort(arraySlice(array, 0, middle), comparefn),
1864 mergeSort(arraySlice(array, middle), comparefn),
1865 comparefn
1866 );
1867 };
1868
1869 var insertionSort = function (array, comparefn) {
1870 var length = array.length;
1871 var i = 1;
1872 var element, j;
1873
1874 while (i < length) {
1875 j = i;
1876 element = array[i];
1877 while (j && comparefn(array[j - 1], element) > 0) {
1878 array[j] = array[--j];
1879 }
1880 if (j !== i++) array[j] = element;
1881 } return array;
1882 };
1883
1884 var merge = function (array, left, right, comparefn) {
1885 var llength = left.length;
1886 var rlength = right.length;
1887 var lindex = 0;
1888 var rindex = 0;
1889
1890 while (lindex < llength || rindex < rlength) {
1891 array[lindex + rindex] = (lindex < llength && rindex < rlength)
1892 ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
1893 : lindex < llength ? left[lindex++] : right[rindex++];
1894 } return array;
1895 };
1896
1897 var arraySort = mergeSort;
1898
1899 var userAgent$1 = engineUserAgent;
1900
1901 var firefox = userAgent$1.match(/firefox\/(\d+)/i);
1902
1903 var engineFfVersion = !!firefox && +firefox[1];
1904
1905 var UA = engineUserAgent;
1906
1907 var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
1908
1909 var userAgent = engineUserAgent;
1910
1911 var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
1912
1913 var engineWebkitVersion = !!webkit && +webkit[1];
1914
1915 var $$5 = _export;
1916 var uncurryThis$2 = functionUncurryThis;
1917 var aCallable = aCallable$3;
1918 var toObject$1 = toObject$6;
1919 var lengthOfArrayLike$1 = lengthOfArrayLike$8;
1920 var deletePropertyOrThrow = deletePropertyOrThrow$1;
1921 var toString$1 = toString$2;
1922 var fails$1 = fails$f;
1923 var internalSort = arraySort;
1924 var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
1925 var FF = engineFfVersion;
1926 var IE_OR_EDGE = engineIsIeOrEdge;
1927 var V8 = engineV8Version;
1928 var WEBKIT = engineWebkitVersion;
1929
1930 var test = [];
1931 var nativeSort = uncurryThis$2(test.sort);
1932 var push$1 = uncurryThis$2(test.push);
1933
1934 // IE8-
1935 var FAILS_ON_UNDEFINED = fails$1(function () {
1936 test.sort(undefined);
1937 });
1938 // V8 bug
1939 var FAILS_ON_NULL = fails$1(function () {
1940 test.sort(null);
1941 });
1942 // Old WebKit
1943 var STRICT_METHOD = arrayMethodIsStrict$1('sort');
1944
1945 var STABLE_SORT = !fails$1(function () {
1946 // feature detection can be too slow, so check engines versions
1947 if (V8) return V8 < 70;
1948 if (FF && FF > 3) return;
1949 if (IE_OR_EDGE) return true;
1950 if (WEBKIT) return WEBKIT < 603;
1951
1952 var result = '';
1953 var code, chr, value, index;
1954
1955 // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
1956 for (code = 65; code < 76; code++) {
1957 chr = String.fromCharCode(code);
1958
1959 switch (code) {
1960 case 66: case 69: case 70: case 72: value = 3; break;
1961 case 68: case 71: value = 4; break;
1962 default: value = 2;
1963 }
1964
1965 for (index = 0; index < 47; index++) {
1966 test.push({ k: chr + index, v: value });
1967 }
1968 }
1969
1970 test.sort(function (a, b) { return b.v - a.v; });
1971
1972 for (index = 0; index < test.length; index++) {
1973 chr = test[index].k.charAt(0);
1974 if (result.charAt(result.length - 1) !== chr) result += chr;
1975 }
1976
1977 return result !== 'DGBEFHACIJK';
1978 });
1979
1980 var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
1981
1982 var getSortCompare = function (comparefn) {
1983 return function (x, y) {
1984 if (y === undefined) return -1;
1985 if (x === undefined) return 1;
1986 if (comparefn !== undefined) return +comparefn(x, y) || 0;
1987 return toString$1(x) > toString$1(y) ? 1 : -1;
1988 };
1989 };
1990
1991 // `Array.prototype.sort` method
1992 // https://tc39.es/ecma262/#sec-array.prototype.sort
1993 $$5({ target: 'Array', proto: true, forced: FORCED$1 }, {
1994 sort: function sort(comparefn) {
1995 if (comparefn !== undefined) aCallable(comparefn);
1996
1997 var array = toObject$1(this);
1998
1999 if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
2000
2001 var items = [];
2002 var arrayLength = lengthOfArrayLike$1(array);
2003 var itemsLength, index;
2004
2005 for (index = 0; index < arrayLength; index++) {
2006 if (index in array) push$1(items, array[index]);
2007 }
2008
2009 internalSort(items, getSortCompare(comparefn));
2010
2011 itemsLength = lengthOfArrayLike$1(items);
2012 index = 0;
2013
2014 while (index < itemsLength) array[index] = items[index++];
2015 while (index < arrayLength) deletePropertyOrThrow(array, index++);
2016
2017 return array;
2018 }
2019 });
2020
2021 var $$4 = _export;
2022 var $includes = arrayIncludes.includes;
2023 var fails = fails$f;
2024 var addToUnscopables$1 = addToUnscopables$3;
2025
2026 // FF99+ bug
2027 var BROKEN_ON_SPARSE = fails(function () {
2028 // eslint-disable-next-line es/no-array-prototype-includes -- detection
2029 return !Array(1).includes();
2030 });
2031
2032 // `Array.prototype.includes` method
2033 // https://tc39.es/ecma262/#sec-array.prototype.includes
2034 $$4({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2035 includes: function includes(el /* , fromIndex = 0 */) {
2036 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2037 }
2038 });
2039
2040 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2041 addToUnscopables$1('includes');
2042
2043 var bind = functionBindContext;
2044 var uncurryThis$1 = functionUncurryThis;
2045 var IndexedObject$1 = indexedObject;
2046 var toObject = toObject$6;
2047 var lengthOfArrayLike = lengthOfArrayLike$8;
2048 var arraySpeciesCreate = arraySpeciesCreate$3;
2049
2050 var push = uncurryThis$1([].push);
2051
2052 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2053 var createMethod = function (TYPE) {
2054 var IS_MAP = TYPE == 1;
2055 var IS_FILTER = TYPE == 2;
2056 var IS_SOME = TYPE == 3;
2057 var IS_EVERY = TYPE == 4;
2058 var IS_FIND_INDEX = TYPE == 6;
2059 var IS_FILTER_REJECT = TYPE == 7;
2060 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2061 return function ($this, callbackfn, that, specificCreate) {
2062 var O = toObject($this);
2063 var self = IndexedObject$1(O);
2064 var boundFunction = bind(callbackfn, that);
2065 var length = lengthOfArrayLike(self);
2066 var index = 0;
2067 var create = specificCreate || arraySpeciesCreate;
2068 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
2069 var value, result;
2070 for (;length > index; index++) if (NO_HOLES || index in self) {
2071 value = self[index];
2072 result = boundFunction(value, index, O);
2073 if (TYPE) {
2074 if (IS_MAP) target[index] = result; // map
2075 else if (result) switch (TYPE) {
2076 case 3: return true; // some
2077 case 5: return value; // find
2078 case 6: return index; // findIndex
2079 case 2: push(target, value); // filter
2080 } else switch (TYPE) {
2081 case 4: return false; // every
2082 case 7: push(target, value); // filterReject
2083 }
2084 }
2085 }
2086 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2087 };
2088 };
2089
2090 var arrayIteration = {
2091 // `Array.prototype.forEach` method
2092 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2093 forEach: createMethod(0),
2094 // `Array.prototype.map` method
2095 // https://tc39.es/ecma262/#sec-array.prototype.map
2096 map: createMethod(1),
2097 // `Array.prototype.filter` method
2098 // https://tc39.es/ecma262/#sec-array.prototype.filter
2099 filter: createMethod(2),
2100 // `Array.prototype.some` method
2101 // https://tc39.es/ecma262/#sec-array.prototype.some
2102 some: createMethod(3),
2103 // `Array.prototype.every` method
2104 // https://tc39.es/ecma262/#sec-array.prototype.every
2105 every: createMethod(4),
2106 // `Array.prototype.find` method
2107 // https://tc39.es/ecma262/#sec-array.prototype.find
2108 find: createMethod(5),
2109 // `Array.prototype.findIndex` method
2110 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2111 findIndex: createMethod(6),
2112 // `Array.prototype.filterReject` method
2113 // https://github.com/tc39/proposal-array-filtering
2114 filterReject: createMethod(7)
2115 };
2116
2117 var $$3 = _export;
2118 var $find = arrayIteration.find;
2119 var addToUnscopables = addToUnscopables$3;
2120
2121 var FIND = 'find';
2122 var SKIPS_HOLES = true;
2123
2124 // Shouldn't skip holes
2125 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2126
2127 // `Array.prototype.find` method
2128 // https://tc39.es/ecma262/#sec-array.prototype.find
2129 $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2130 find: function find(callbackfn /* , that = undefined */) {
2131 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2132 }
2133 });
2134
2135 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2136 addToUnscopables(FIND);
2137
2138 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2139 var classof = classof$3;
2140
2141 // `Object.prototype.toString` method implementation
2142 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2143 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2144 return '[object ' + classof(this) + ']';
2145 };
2146
2147 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2148 var defineBuiltIn = defineBuiltIn$2;
2149 var toString = objectToString;
2150
2151 // `Object.prototype.toString` method
2152 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2153 if (!TO_STRING_TAG_SUPPORT) {
2154 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
2155 }
2156
2157 var $$2 = _export;
2158 var uncurryThis = functionUncurryThis;
2159 var IndexedObject = indexedObject;
2160 var toIndexedObject = toIndexedObject$6;
2161 var arrayMethodIsStrict = arrayMethodIsStrict$3;
2162
2163 var nativeJoin = uncurryThis([].join);
2164
2165 var ES3_STRINGS = IndexedObject != Object;
2166 var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
2167
2168 // `Array.prototype.join` method
2169 // https://tc39.es/ecma262/#sec-array.prototype.join
2170 $$2({ target: 'Array', proto: true, forced: FORCED }, {
2171 join: function join(separator) {
2172 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
2173 }
2174 });
2175
2176 var $$1 = _export;
2177 var $filter = arrayIteration.filter;
2178 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$4;
2179
2180 var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter');
2181
2182 // `Array.prototype.filter` method
2183 // https://tc39.es/ecma262/#sec-array.prototype.filter
2184 // with adding support of @@species
2185 $$1({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
2186 filter: function filter(callbackfn /* , thisArg */) {
2187 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2188 }
2189 });
2190
2191 var $ = _export;
2192 var $map = arrayIteration.map;
2193 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$4;
2194
2195 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
2196
2197 // `Array.prototype.map` method
2198 // https://tc39.es/ecma262/#sec-array.prototype.map
2199 // with adding support of @@species
2200 $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2201 map: function map(callbackfn /* , thisArg */) {
2202 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2203 }
2204 });
2205
2206 /**
2207 * @update zhixin wen <wenzhixin2010@gmail.com>
2208 */
2209
2210 var Utils = $$b.fn.bootstrapTable.utils;
2211 function printPageBuilderDefault(table) {
2212 return "\n <html>\n <head>\n <style type=\"text/css\" media=\"print\">\n @page {\n size: auto;\n margin: 25px 0 25px 0;\n }\n </style>\n <style type=\"text/css\" media=\"all\">\n table {\n border-collapse: collapse;\n font-size: 12px;\n }\n table, th, td {\n border: 1px solid grey;\n }\n th, td {\n text-align: center;\n vertical-align: middle;\n }\n p {\n font-weight: bold;\n margin-left:20px;\n }\n table {\n width:94%;\n margin-left:3%;\n margin-right:3%;\n }\n div.bs-table-print {\n text-align:center;\n }\n </style>\n </head>\n <title>Print Table</title>\n <body>\n <p>Printed on: ".concat(new Date(), " </p>\n <div class=\"bs-table-print\">").concat(table, "</div>\n </body>\n </html>");
2213 }
2214 Object.assign($$b.fn.bootstrapTable.locales, {
2215 formatPrint: function formatPrint() {
2216 return 'Print';
2217 }
2218 });
2219 Object.assign($$b.fn.bootstrapTable.defaults, $$b.fn.bootstrapTable.locales);
2220 Object.assign($$b.fn.bootstrapTable.defaults, {
2221 showPrint: false,
2222 printAsFilteredAndSortedOnUI: true,
2223 printSortColumn: undefined,
2224 printSortOrder: 'asc',
2225 printPageBuilder: function printPageBuilder(table) {
2226 return printPageBuilderDefault(table);
2227 }
2228 });
2229 Object.assign($$b.fn.bootstrapTable.columnDefaults, {
2230 printFilter: undefined,
2231 printIgnore: false,
2232 printFormatter: undefined
2233 });
2234 Object.assign($$b.fn.bootstrapTable.defaults.icons, {
2235 print: {
2236 bootstrap3: 'glyphicon-print icon-share',
2237 bootstrap5: 'bi-printer',
2238 'bootstrap-table': 'icon-printer'
2239 }[$$b.fn.bootstrapTable.theme] || 'fa-print'
2240 });
2241 $$b.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2242 _inherits(_class, _$$BootstrapTable);
2243 var _super = _createSuper(_class);
2244 function _class() {
2245 _classCallCheck(this, _class);
2246 return _super.apply(this, arguments);
2247 }
2248 _createClass(_class, [{
2249 key: "init",
2250 value: function init() {
2251 var _get2;
2252 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2253 args[_key] = arguments[_key];
2254 }
2255 (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
2256 if (!this.options.showPrint) {
2257 return;
2258 }
2259 this.mergedCells = [];
2260 }
2261 }, {
2262 key: "initToolbar",
2263 value: function initToolbar() {
2264 var _this = this,
2265 _get3;
2266 this.showToolbar = this.showToolbar || this.options.showPrint;
2267 if (this.options.showPrint) {
2268 this.buttons = Object.assign(this.buttons, {
2269 print: {
2270 text: this.options.formatPrint(),
2271 icon: this.options.icons.print,
2272 event: function event() {
2273 _this.doPrint(_this.options.printAsFilteredAndSortedOnUI ? _this.getData() : _this.options.data.slice(0));
2274 },
2275 attributes: {
2276 'aria-label': this.options.formatPrint(),
2277 title: this.options.formatPrint()
2278 }
2279 }
2280 });
2281 }
2282 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2283 args[_key2] = arguments[_key2];
2284 }
2285 (_get3 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get3, [this].concat(args));
2286 }
2287 }, {
2288 key: "mergeCells",
2289 value: function mergeCells(options) {
2290 _get(_getPrototypeOf(_class.prototype), "mergeCells", this).call(this, options);
2291 if (!this.options.showPrint) {
2292 return;
2293 }
2294 var col = this.getVisibleFields().indexOf(options.field);
2295 if (Utils.hasDetailViewIcon(this.options)) {
2296 col += 1;
2297 }
2298 this.mergedCells.push({
2299 row: options.index,
2300 col: col,
2301 rowspan: options.rowspan || 1,
2302 colspan: options.colspan || 1
2303 });
2304 }
2305 }, {
2306 key: "doPrint",
2307 value: function doPrint(data) {
2308 var _this3 = this;
2309 var _this2 = this;
2310 var formatValue = function formatValue(row, i, column) {
2311 var value_ = Utils.getItemField(row, column.field, _this2.options.escape, column.escape);
2312 var value = Utils.calculateObjectValue(column, column.printFormatter || column.formatter, [value_, row, i], value_);
2313 return typeof value === 'undefined' || value === null ? _this3.options.undefinedText : value;
2314 };
2315 var buildTable = function buildTable(data, columnsArray) {
2316 var dir = _this3.$el.attr('dir') || 'ltr';
2317 var html = ["<table dir=\"".concat(dir, "\"><thead>")];
2318 var _iterator = _createForOfIteratorHelper(columnsArray),
2319 _step;
2320 try {
2321 for (_iterator.s(); !(_step = _iterator.n()).done;) {
2322 var _columns2 = _step.value;
2323 html.push('<tr>');
2324 for (var _h = 0; _h < _columns2.length; _h++) {
2325 if (!_columns2[_h].printIgnore && _columns2[_h].visible) {
2326 html.push("<th\n ".concat(Utils.sprintf(' rowspan="%s"', _columns2[_h].rowspan), "\n ").concat(Utils.sprintf(' colspan="%s"', _columns2[_h].colspan), "\n >").concat(_columns2[_h].title, "</th>"));
2327 }
2328 }
2329 html.push('</tr>');
2330 }
2331 } catch (err) {
2332 _iterator.e(err);
2333 } finally {
2334 _iterator.f();
2335 }
2336 html.push('</thead><tbody>');
2337 var dontRender = [];
2338 if (_this3.mergedCells) {
2339 for (var mc = 0; mc < _this3.mergedCells.length; mc++) {
2340 var currentMergedCell = _this3.mergedCells[mc];
2341 for (var rs = 0; rs < currentMergedCell.rowspan; rs++) {
2342 var row = currentMergedCell.row + rs;
2343 for (var cs = 0; cs < currentMergedCell.colspan; cs++) {
2344 var col = currentMergedCell.col + cs;
2345 dontRender.push("".concat(row, ",").concat(col));
2346 }
2347 }
2348 }
2349 }
2350 for (var i = 0; i < data.length; i++) {
2351 html.push('<tr>');
2352 var columns = columnsArray.flat(1);
2353 columns.sort(function (c1, c2) {
2354 return c1.colspanIndex - c2.colspanIndex;
2355 });
2356 for (var j = 0; j < columns.length; j++) {
2357 if (columns[j].colspanGroup > 0) continue;
2358 var rowspan = 0;
2359 var colspan = 0;
2360 if (_this3.mergedCells) {
2361 for (var _mc = 0; _mc < _this3.mergedCells.length; _mc++) {
2362 var _currentMergedCell = _this3.mergedCells[_mc];
2363 if (_currentMergedCell.col === j && _currentMergedCell.row === i) {
2364 rowspan = _currentMergedCell.rowspan;
2365 colspan = _currentMergedCell.colspan;
2366 }
2367 }
2368 }
2369 if (!columns[j].printIgnore && columns[j].visible && columns[j].field && (!dontRender.includes("".concat(i, ",").concat(j)) || rowspan > 0 && colspan > 0)) {
2370 if (rowspan > 0 && colspan > 0) {
2371 html.push("<td ".concat(Utils.sprintf(' rowspan="%s"', rowspan), " ").concat(Utils.sprintf(' colspan="%s"', colspan), ">"), formatValue(data[i], i, columns[j]), '</td>');
2372 } else {
2373 html.push('<td>', formatValue(data[i], i, columns[j]), '</td>');
2374 }
2375 }
2376 }
2377 html.push('</tr>');
2378 }
2379 html.push('</tbody>');
2380 if (_this3.options.showFooter) {
2381 html.push('<footer><tr>');
2382 var _iterator2 = _createForOfIteratorHelper(columnsArray),
2383 _step2;
2384 try {
2385 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2386 var _columns = _step2.value;
2387 for (var h = 0; h < _columns.length; h++) {
2388 if (!_columns[h].printIgnore && _columns[h].visible) {
2389 var footerData = Utils.trToData(_columns, _this3.$el.find('>tfoot>tr'));
2390 var footerValue = Utils.calculateObjectValue(_columns[h], _columns[h].footerFormatter, [data], footerData[0] && footerData[0][_columns[h].field] || '');
2391 html.push("<th>".concat(footerValue, "</th>"));
2392 }
2393 }
2394 }
2395 } catch (err) {
2396 _iterator2.e(err);
2397 } finally {
2398 _iterator2.f();
2399 }
2400 html.push('</tr></footer>');
2401 }
2402 html.push('</table>');
2403 return html.join('');
2404 };
2405 var sortRows = function sortRows(data, colName, sortOrder) {
2406 if (!colName) {
2407 return data;
2408 }
2409 var reverse = sortOrder !== 'asc';
2410 reverse = -(+reverse || -1);
2411 return data.sort(function (a, b) {
2412 return reverse * a[colName].localeCompare(b[colName]);
2413 });
2414 };
2415 var filterRow = function filterRow(row, filters) {
2416 for (var index = 0; index < filters.length; ++index) {
2417 if (row[filters[index].colName] !== filters[index].value) {
2418 return false;
2419 }
2420 }
2421 return true;
2422 };
2423 var filterRows = function filterRows(data, filters) {
2424 return data.filter(function (row) {
2425 return filterRow(row, filters);
2426 });
2427 };
2428 var getColumnFilters = function getColumnFilters(columns) {
2429 return !columns || !columns[0] ? [] : columns[0].filter(function (col) {
2430 return col.printFilter;
2431 }).map(function (col) {
2432 return {
2433 colName: col.field,
2434 value: col.printFilter
2435 };
2436 });
2437 };
2438 data = filterRows(data, getColumnFilters(this.options.columns));
2439 data = sortRows(data, this.options.printSortColumn, this.options.printSortOrder);
2440 var table = buildTable(data, this.options.columns);
2441 var newWin = window.open('');
2442 var calculatedPrintPage = Utils.calculateObjectValue(this, this.options.printPageBuilder, [table], printPageBuilderDefault(table));
2443 newWin.document.write(calculatedPrintPage);
2444 newWin.document.close();
2445 newWin.focus();
2446 newWin.print();
2447 newWin.close();
2448 }
2449 }]);
2450 return _class;
2451 }($$b.BootstrapTable);
2452
2453}));