bootstrap-table-rails 1.19.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/bootstrap-table-rails.gemspec +2 -2
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +946 -358
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +858 -403
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +859 -404
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +7 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2900 -2041
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1066 -465
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +585 -268
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1443 -949
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +594 -278
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +595 -277
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +921 -542
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +912 -478
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2798 -1187
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1352 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +610 -296
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +902 -435
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +697 -375
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +623 -274
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +847 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +575 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +578 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +800 -324
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +615 -281
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +555 -222
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +582 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +916 -556
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +566 -256
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +505 -209
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +517 -221
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +500 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +522 -225
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +596 -278
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +592 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +596 -262
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +594 -275
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +590 -256
- metadata +9 -8
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
5
|
-
}(this, (function ($) { 'use strict';
|
5
|
+
})(this, (function ($) { 'use strict';
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
@@ -27,6 +27,9 @@
|
|
27
27
|
function _createClass(Constructor, protoProps, staticProps) {
|
28
28
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
29
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
30
|
+
Object.defineProperty(Constructor, "prototype", {
|
31
|
+
writable: false
|
32
|
+
});
|
30
33
|
return Constructor;
|
31
34
|
}
|
32
35
|
|
@@ -42,6 +45,9 @@
|
|
42
45
|
configurable: true
|
43
46
|
}
|
44
47
|
});
|
48
|
+
Object.defineProperty(subClass, "prototype", {
|
49
|
+
writable: false
|
50
|
+
});
|
45
51
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
46
52
|
}
|
47
53
|
|
@@ -85,6 +91,8 @@
|
|
85
91
|
function _possibleConstructorReturn(self, call) {
|
86
92
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
87
93
|
return call;
|
94
|
+
} else if (call !== void 0) {
|
95
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
88
96
|
}
|
89
97
|
|
90
98
|
return _assertThisInitialized(self);
|
@@ -118,7 +126,7 @@
|
|
118
126
|
return object;
|
119
127
|
}
|
120
128
|
|
121
|
-
function _get(
|
129
|
+
function _get() {
|
122
130
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
123
131
|
_get = Reflect.get;
|
124
132
|
} else {
|
@@ -129,14 +137,14 @@
|
|
129
137
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
130
138
|
|
131
139
|
if (desc.get) {
|
132
|
-
return desc.get.call(receiver);
|
140
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
133
141
|
}
|
134
142
|
|
135
143
|
return desc.value;
|
136
144
|
};
|
137
145
|
}
|
138
146
|
|
139
|
-
return _get(
|
147
|
+
return _get.apply(this, arguments);
|
140
148
|
}
|
141
149
|
|
142
150
|
function _unsupportedIterableToArray(o, minLen) {
|
@@ -157,9 +165,9 @@
|
|
157
165
|
}
|
158
166
|
|
159
167
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
160
|
-
var it;
|
168
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
161
169
|
|
162
|
-
if (
|
170
|
+
if (!it) {
|
163
171
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
164
172
|
if (it) o = it;
|
165
173
|
var i = 0;
|
@@ -192,7 +200,7 @@
|
|
192
200
|
err;
|
193
201
|
return {
|
194
202
|
s: function () {
|
195
|
-
it =
|
203
|
+
it = it.call(o);
|
196
204
|
},
|
197
205
|
n: function () {
|
198
206
|
var step = it.next();
|
@@ -225,7 +233,7 @@
|
|
225
233
|
|
226
234
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
227
235
|
var global_1 =
|
228
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
236
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
229
237
|
check(typeof globalThis == 'object' && globalThis) ||
|
230
238
|
check(typeof window == 'object' && window) ||
|
231
239
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -244,12 +252,25 @@
|
|
244
252
|
|
245
253
|
// Detect IE8's incomplete defineProperty implementation
|
246
254
|
var descriptors = !fails(function () {
|
247
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
255
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
248
256
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
249
257
|
});
|
250
258
|
|
259
|
+
var functionBindNative = !fails(function () {
|
260
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
261
|
+
var test = (function () { /* empty */ }).bind();
|
262
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
263
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
264
|
+
});
|
265
|
+
|
266
|
+
var call$1 = Function.prototype.call;
|
267
|
+
|
268
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
269
|
+
return call$1.apply(call$1, arguments);
|
270
|
+
};
|
271
|
+
|
251
272
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
252
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
273
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
253
274
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
254
275
|
|
255
276
|
// Nashorn ~ JDK8 bug
|
@@ -257,13 +278,13 @@
|
|
257
278
|
|
258
279
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
259
280
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
260
|
-
var f$
|
281
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
261
282
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
262
283
|
return !!descriptor && descriptor.enumerable;
|
263
284
|
} : $propertyIsEnumerable;
|
264
285
|
|
265
286
|
var objectPropertyIsEnumerable = {
|
266
|
-
f: f$
|
287
|
+
f: f$5
|
267
288
|
};
|
268
289
|
|
269
290
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -275,27 +296,44 @@
|
|
275
296
|
};
|
276
297
|
};
|
277
298
|
|
278
|
-
var
|
299
|
+
var FunctionPrototype$1 = Function.prototype;
|
300
|
+
var bind$1 = FunctionPrototype$1.bind;
|
301
|
+
var call = FunctionPrototype$1.call;
|
302
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
303
|
+
|
304
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
305
|
+
return fn && uncurryThis(fn);
|
306
|
+
} : function (fn) {
|
307
|
+
return fn && function () {
|
308
|
+
return call.apply(fn, arguments);
|
309
|
+
};
|
310
|
+
};
|
311
|
+
|
312
|
+
var toString$1 = functionUncurryThis({}.toString);
|
313
|
+
var stringSlice = functionUncurryThis(''.slice);
|
279
314
|
|
280
315
|
var classofRaw = function (it) {
|
281
|
-
return toString
|
316
|
+
return stringSlice(toString$1(it), 8, -1);
|
282
317
|
};
|
283
318
|
|
284
|
-
var
|
319
|
+
var Object$4 = global_1.Object;
|
320
|
+
var split = functionUncurryThis(''.split);
|
285
321
|
|
286
322
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
287
323
|
var indexedObject = fails(function () {
|
288
324
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
289
325
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
290
|
-
return !Object('z').propertyIsEnumerable(0);
|
326
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
291
327
|
}) ? function (it) {
|
292
|
-
return classofRaw(it) == 'String' ? split
|
293
|
-
} : Object;
|
328
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
329
|
+
} : Object$4;
|
330
|
+
|
331
|
+
var TypeError$9 = global_1.TypeError;
|
294
332
|
|
295
333
|
// `RequireObjectCoercible` abstract operation
|
296
334
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
297
335
|
var requireObjectCoercible = function (it) {
|
298
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
336
|
+
if (it == undefined) throw TypeError$9("Can't call method on " + it);
|
299
337
|
return it;
|
300
338
|
};
|
301
339
|
|
@@ -307,88 +345,310 @@
|
|
307
345
|
return indexedObject(requireObjectCoercible(it));
|
308
346
|
};
|
309
347
|
|
348
|
+
// `IsCallable` abstract operation
|
349
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
350
|
+
var isCallable = function (argument) {
|
351
|
+
return typeof argument == 'function';
|
352
|
+
};
|
353
|
+
|
310
354
|
var isObject = function (it) {
|
311
|
-
return typeof it
|
355
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
312
356
|
};
|
313
357
|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
var
|
319
|
-
|
358
|
+
var aFunction = function (argument) {
|
359
|
+
return isCallable(argument) ? argument : undefined;
|
360
|
+
};
|
361
|
+
|
362
|
+
var getBuiltIn = function (namespace, method) {
|
363
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
364
|
+
};
|
365
|
+
|
366
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
367
|
+
|
368
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
369
|
+
|
370
|
+
var process = global_1.process;
|
371
|
+
var Deno = global_1.Deno;
|
372
|
+
var versions = process && process.versions || Deno && Deno.version;
|
373
|
+
var v8 = versions && versions.v8;
|
374
|
+
var match, version;
|
375
|
+
|
376
|
+
if (v8) {
|
377
|
+
match = v8.split('.');
|
378
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
379
|
+
// but their correct versions are not interesting for us
|
380
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
381
|
+
}
|
382
|
+
|
383
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
384
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
385
|
+
if (!version && engineUserAgent) {
|
386
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
387
|
+
if (!match || match[1] >= 74) {
|
388
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
389
|
+
if (match) version = +match[1];
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
var engineV8Version = version;
|
394
|
+
|
395
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
400
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
401
|
+
var symbol = Symbol();
|
402
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
403
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
404
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
405
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
406
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
407
|
+
});
|
408
|
+
|
409
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
410
|
+
|
411
|
+
|
412
|
+
var useSymbolAsUid = nativeSymbol
|
413
|
+
&& !Symbol.sham
|
414
|
+
&& typeof Symbol.iterator == 'symbol';
|
415
|
+
|
416
|
+
var Object$3 = global_1.Object;
|
417
|
+
|
418
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
419
|
+
return typeof it == 'symbol';
|
420
|
+
} : function (it) {
|
421
|
+
var $Symbol = getBuiltIn('Symbol');
|
422
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
423
|
+
};
|
424
|
+
|
425
|
+
var String$3 = global_1.String;
|
426
|
+
|
427
|
+
var tryToString = function (argument) {
|
428
|
+
try {
|
429
|
+
return String$3(argument);
|
430
|
+
} catch (error) {
|
431
|
+
return 'Object';
|
432
|
+
}
|
433
|
+
};
|
434
|
+
|
435
|
+
var TypeError$8 = global_1.TypeError;
|
436
|
+
|
437
|
+
// `Assert: IsCallable(argument) is true`
|
438
|
+
var aCallable = function (argument) {
|
439
|
+
if (isCallable(argument)) return argument;
|
440
|
+
throw TypeError$8(tryToString(argument) + ' is not a function');
|
441
|
+
};
|
442
|
+
|
443
|
+
// `GetMethod` abstract operation
|
444
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
445
|
+
var getMethod = function (V, P) {
|
446
|
+
var func = V[P];
|
447
|
+
return func == null ? undefined : aCallable(func);
|
448
|
+
};
|
449
|
+
|
450
|
+
var TypeError$7 = global_1.TypeError;
|
451
|
+
|
452
|
+
// `OrdinaryToPrimitive` abstract operation
|
453
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
454
|
+
var ordinaryToPrimitive = function (input, pref) {
|
320
455
|
var fn, val;
|
321
|
-
if (
|
322
|
-
if (
|
323
|
-
if (
|
324
|
-
throw TypeError("Can't convert object to primitive value");
|
456
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
457
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
458
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
459
|
+
throw TypeError$7("Can't convert object to primitive value");
|
460
|
+
};
|
461
|
+
|
462
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
463
|
+
var defineProperty$1 = Object.defineProperty;
|
464
|
+
|
465
|
+
var setGlobal = function (key, value) {
|
466
|
+
try {
|
467
|
+
defineProperty$1(global_1, key, { value: value, configurable: true, writable: true });
|
468
|
+
} catch (error) {
|
469
|
+
global_1[key] = value;
|
470
|
+
} return value;
|
471
|
+
};
|
472
|
+
|
473
|
+
var SHARED = '__core-js_shared__';
|
474
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
475
|
+
|
476
|
+
var sharedStore = store$1;
|
477
|
+
|
478
|
+
var shared = createCommonjsModule(function (module) {
|
479
|
+
(module.exports = function (key, value) {
|
480
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
481
|
+
})('versions', []).push({
|
482
|
+
version: '3.22.4',
|
483
|
+
mode: 'global',
|
484
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
485
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
486
|
+
source: 'https://github.com/zloirock/core-js'
|
487
|
+
});
|
488
|
+
});
|
489
|
+
|
490
|
+
var Object$2 = global_1.Object;
|
491
|
+
|
492
|
+
// `ToObject` abstract operation
|
493
|
+
// https://tc39.es/ecma262/#sec-toobject
|
494
|
+
var toObject = function (argument) {
|
495
|
+
return Object$2(requireObjectCoercible(argument));
|
496
|
+
};
|
497
|
+
|
498
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
499
|
+
|
500
|
+
// `HasOwnProperty` abstract operation
|
501
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
502
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
503
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
504
|
+
return hasOwnProperty(toObject(it), key);
|
325
505
|
};
|
326
506
|
|
327
|
-
var
|
507
|
+
var id = 0;
|
508
|
+
var postfix = Math.random();
|
509
|
+
var toString = functionUncurryThis(1.0.toString);
|
510
|
+
|
511
|
+
var uid = function (key) {
|
512
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
513
|
+
};
|
514
|
+
|
515
|
+
var WellKnownSymbolsStore = shared('wks');
|
516
|
+
var Symbol$1 = global_1.Symbol;
|
517
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
518
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
519
|
+
|
520
|
+
var wellKnownSymbol = function (name) {
|
521
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
522
|
+
var description = 'Symbol.' + name;
|
523
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
524
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
525
|
+
} else if (useSymbolAsUid && symbolFor) {
|
526
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
527
|
+
} else {
|
528
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
529
|
+
}
|
530
|
+
} return WellKnownSymbolsStore[name];
|
531
|
+
};
|
532
|
+
|
533
|
+
var TypeError$6 = global_1.TypeError;
|
534
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
535
|
+
|
536
|
+
// `ToPrimitive` abstract operation
|
537
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
538
|
+
var toPrimitive = function (input, pref) {
|
539
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
540
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
541
|
+
var result;
|
542
|
+
if (exoticToPrim) {
|
543
|
+
if (pref === undefined) pref = 'default';
|
544
|
+
result = functionCall(exoticToPrim, input, pref);
|
545
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
546
|
+
throw TypeError$6("Can't convert object to primitive value");
|
547
|
+
}
|
548
|
+
if (pref === undefined) pref = 'number';
|
549
|
+
return ordinaryToPrimitive(input, pref);
|
550
|
+
};
|
328
551
|
|
329
|
-
|
330
|
-
|
552
|
+
// `ToPropertyKey` abstract operation
|
553
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
554
|
+
var toPropertyKey = function (argument) {
|
555
|
+
var key = toPrimitive(argument, 'string');
|
556
|
+
return isSymbol(key) ? key : key + '';
|
331
557
|
};
|
332
558
|
|
333
559
|
var document$1 = global_1.document;
|
334
560
|
// typeof document.createElement is 'object' in old IE
|
335
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
561
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
336
562
|
|
337
563
|
var documentCreateElement = function (it) {
|
338
|
-
return EXISTS ? document$1.createElement(it) : {};
|
564
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
339
565
|
};
|
340
566
|
|
341
|
-
//
|
567
|
+
// Thanks to IE8 for its funny defineProperty
|
342
568
|
var ie8DomDefine = !descriptors && !fails(function () {
|
343
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
569
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
344
570
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
345
571
|
get: function () { return 7; }
|
346
572
|
}).a != 7;
|
347
573
|
});
|
348
574
|
|
349
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
350
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
575
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
576
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
351
577
|
|
352
578
|
// `Object.getOwnPropertyDescriptor` method
|
353
579
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
354
|
-
var f$
|
580
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
355
581
|
O = toIndexedObject(O);
|
356
|
-
P =
|
582
|
+
P = toPropertyKey(P);
|
357
583
|
if (ie8DomDefine) try {
|
358
|
-
return $getOwnPropertyDescriptor(O, P);
|
584
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
359
585
|
} catch (error) { /* empty */ }
|
360
|
-
if (
|
586
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
361
587
|
};
|
362
588
|
|
363
589
|
var objectGetOwnPropertyDescriptor = {
|
364
|
-
f: f$
|
590
|
+
f: f$4
|
365
591
|
};
|
366
592
|
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
593
|
+
// V8 ~ Chrome 36-
|
594
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
595
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
596
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
597
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
598
|
+
value: 42,
|
599
|
+
writable: false
|
600
|
+
}).prototype != 42;
|
601
|
+
});
|
602
|
+
|
603
|
+
var String$2 = global_1.String;
|
604
|
+
var TypeError$5 = global_1.TypeError;
|
605
|
+
|
606
|
+
// `Assert: Type(argument) is Object`
|
607
|
+
var anObject = function (argument) {
|
608
|
+
if (isObject(argument)) return argument;
|
609
|
+
throw TypeError$5(String$2(argument) + ' is not an object');
|
371
610
|
};
|
372
611
|
|
373
|
-
|
612
|
+
var TypeError$4 = global_1.TypeError;
|
613
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
374
614
|
var $defineProperty = Object.defineProperty;
|
615
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
616
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
617
|
+
var ENUMERABLE = 'enumerable';
|
618
|
+
var CONFIGURABLE$1 = 'configurable';
|
619
|
+
var WRITABLE = 'writable';
|
375
620
|
|
376
621
|
// `Object.defineProperty` method
|
377
622
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
378
|
-
var f$
|
623
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
624
|
+
anObject(O);
|
625
|
+
P = toPropertyKey(P);
|
626
|
+
anObject(Attributes);
|
627
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
628
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
629
|
+
if (current && current[WRITABLE]) {
|
630
|
+
O[P] = Attributes.value;
|
631
|
+
Attributes = {
|
632
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
633
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
634
|
+
writable: false
|
635
|
+
};
|
636
|
+
}
|
637
|
+
} return $defineProperty(O, P, Attributes);
|
638
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
379
639
|
anObject(O);
|
380
|
-
P =
|
640
|
+
P = toPropertyKey(P);
|
381
641
|
anObject(Attributes);
|
382
642
|
if (ie8DomDefine) try {
|
383
643
|
return $defineProperty(O, P, Attributes);
|
384
644
|
} catch (error) { /* empty */ }
|
385
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
645
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
|
386
646
|
if ('value' in Attributes) O[P] = Attributes.value;
|
387
647
|
return O;
|
388
648
|
};
|
389
649
|
|
390
650
|
var objectDefineProperty = {
|
391
|
-
f: f$
|
651
|
+
f: f$3
|
392
652
|
};
|
393
653
|
|
394
654
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -398,25 +658,27 @@
|
|
398
658
|
return object;
|
399
659
|
};
|
400
660
|
|
401
|
-
var
|
402
|
-
|
403
|
-
|
404
|
-
} catch (error) {
|
405
|
-
global_1[key] = value;
|
406
|
-
} return value;
|
407
|
-
};
|
661
|
+
var FunctionPrototype = Function.prototype;
|
662
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
663
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
408
664
|
|
409
|
-
var
|
410
|
-
|
665
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
666
|
+
// additional protection from minified / mangled / dropped function names
|
667
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
668
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
411
669
|
|
412
|
-
var
|
670
|
+
var functionName = {
|
671
|
+
EXISTS: EXISTS,
|
672
|
+
PROPER: PROPER,
|
673
|
+
CONFIGURABLE: CONFIGURABLE
|
674
|
+
};
|
413
675
|
|
414
|
-
var functionToString = Function.toString;
|
676
|
+
var functionToString = functionUncurryThis(Function.toString);
|
415
677
|
|
416
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
417
|
-
if (
|
678
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
679
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
418
680
|
sharedStore.inspectSource = function (it) {
|
419
|
-
return functionToString
|
681
|
+
return functionToString(it);
|
420
682
|
};
|
421
683
|
}
|
422
684
|
|
@@ -424,24 +686,7 @@
|
|
424
686
|
|
425
687
|
var WeakMap$1 = global_1.WeakMap;
|
426
688
|
|
427
|
-
var nativeWeakMap =
|
428
|
-
|
429
|
-
var shared = createCommonjsModule(function (module) {
|
430
|
-
(module.exports = function (key, value) {
|
431
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
432
|
-
})('versions', []).push({
|
433
|
-
version: '3.10.1',
|
434
|
-
mode: 'global',
|
435
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
436
|
-
});
|
437
|
-
});
|
438
|
-
|
439
|
-
var id = 0;
|
440
|
-
var postfix = Math.random();
|
441
|
-
|
442
|
-
var uid = function (key) {
|
443
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
444
|
-
};
|
689
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
445
690
|
|
446
691
|
var keys = shared('keys');
|
447
692
|
|
@@ -451,6 +696,8 @@
|
|
451
696
|
|
452
697
|
var hiddenKeys$1 = {};
|
453
698
|
|
699
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
700
|
+
var TypeError$3 = global_1.TypeError;
|
454
701
|
var WeakMap = global_1.WeakMap;
|
455
702
|
var set, get, has;
|
456
703
|
|
@@ -462,40 +709,42 @@
|
|
462
709
|
return function (it) {
|
463
710
|
var state;
|
464
711
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
465
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
712
|
+
throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
|
466
713
|
} return state;
|
467
714
|
};
|
468
715
|
};
|
469
716
|
|
470
|
-
if (nativeWeakMap) {
|
717
|
+
if (nativeWeakMap || sharedStore.state) {
|
471
718
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
472
|
-
var wmget = store.get;
|
473
|
-
var wmhas = store.has;
|
474
|
-
var wmset = store.set;
|
719
|
+
var wmget = functionUncurryThis(store.get);
|
720
|
+
var wmhas = functionUncurryThis(store.has);
|
721
|
+
var wmset = functionUncurryThis(store.set);
|
475
722
|
set = function (it, metadata) {
|
723
|
+
if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
476
724
|
metadata.facade = it;
|
477
|
-
wmset
|
725
|
+
wmset(store, it, metadata);
|
478
726
|
return metadata;
|
479
727
|
};
|
480
728
|
get = function (it) {
|
481
|
-
return wmget
|
729
|
+
return wmget(store, it) || {};
|
482
730
|
};
|
483
731
|
has = function (it) {
|
484
|
-
return wmhas
|
732
|
+
return wmhas(store, it);
|
485
733
|
};
|
486
734
|
} else {
|
487
735
|
var STATE = sharedKey('state');
|
488
736
|
hiddenKeys$1[STATE] = true;
|
489
737
|
set = function (it, metadata) {
|
738
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
490
739
|
metadata.facade = it;
|
491
740
|
createNonEnumerableProperty(it, STATE, metadata);
|
492
741
|
return metadata;
|
493
742
|
};
|
494
743
|
get = function (it) {
|
495
|
-
return
|
744
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
496
745
|
};
|
497
746
|
has = function (it) {
|
498
|
-
return
|
747
|
+
return hasOwnProperty_1(it, STATE);
|
499
748
|
};
|
500
749
|
}
|
501
750
|
|
@@ -507,29 +756,56 @@
|
|
507
756
|
getterFor: getterFor
|
508
757
|
};
|
509
758
|
|
510
|
-
var
|
511
|
-
var
|
759
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
760
|
+
var defineProperty = objectDefineProperty.f;
|
761
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
762
|
+
|
763
|
+
|
764
|
+
|
512
765
|
var enforceInternalState = internalState.enforce;
|
766
|
+
var getInternalState = internalState.get;
|
767
|
+
|
768
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
769
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
770
|
+
});
|
771
|
+
|
513
772
|
var TEMPLATE = String(String).split('String');
|
514
773
|
|
515
|
-
|
774
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
775
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
776
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
777
|
+
}
|
778
|
+
if (options && options.getter) name = 'get ' + name;
|
779
|
+
if (options && options.setter) name = 'set ' + name;
|
780
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
781
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
782
|
+
}
|
783
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
784
|
+
defineProperty(value, 'length', { value: options.arity });
|
785
|
+
}
|
786
|
+
var state = enforceInternalState(value);
|
787
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
788
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
789
|
+
} return value;
|
790
|
+
};
|
791
|
+
|
792
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
793
|
+
// eslint-disable-next-line no-extend-native -- required
|
794
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
795
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
796
|
+
}, 'toString');
|
797
|
+
});
|
798
|
+
|
799
|
+
var defineBuiltIn = function (O, key, value, options) {
|
516
800
|
var unsafe = options ? !!options.unsafe : false;
|
517
801
|
var simple = options ? !!options.enumerable : false;
|
518
802
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
519
|
-
var
|
520
|
-
if (
|
521
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
522
|
-
createNonEnumerableProperty(value, 'name', key);
|
523
|
-
}
|
524
|
-
state = enforceInternalState(value);
|
525
|
-
if (!state.source) {
|
526
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
527
|
-
}
|
528
|
-
}
|
803
|
+
var name = options && options.name !== undefined ? options.name : key;
|
804
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
529
805
|
if (O === global_1) {
|
530
806
|
if (simple) O[key] = value;
|
531
807
|
else setGlobal(key, value);
|
532
|
-
return;
|
808
|
+
return O;
|
533
809
|
} else if (!unsafe) {
|
534
810
|
delete O[key];
|
535
811
|
} else if (!noTargetGet && O[key]) {
|
@@ -537,56 +813,50 @@
|
|
537
813
|
}
|
538
814
|
if (simple) O[key] = value;
|
539
815
|
else createNonEnumerableProperty(O, key, value);
|
540
|
-
|
541
|
-
})(Function.prototype, 'toString', function toString() {
|
542
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
543
|
-
});
|
544
|
-
});
|
545
|
-
|
546
|
-
var path = global_1;
|
547
|
-
|
548
|
-
var aFunction$1 = function (variable) {
|
549
|
-
return typeof variable == 'function' ? variable : undefined;
|
816
|
+
return O;
|
550
817
|
};
|
551
818
|
|
552
|
-
var
|
553
|
-
|
554
|
-
|
819
|
+
var ceil = Math.ceil;
|
820
|
+
var floor$1 = Math.floor;
|
821
|
+
|
822
|
+
// `ToIntegerOrInfinity` abstract operation
|
823
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
824
|
+
var toIntegerOrInfinity = function (argument) {
|
825
|
+
var number = +argument;
|
826
|
+
// eslint-disable-next-line no-self-compare -- safe
|
827
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
555
828
|
};
|
556
829
|
|
557
|
-
var
|
558
|
-
var
|
830
|
+
var max$2 = Math.max;
|
831
|
+
var min$1 = Math.min;
|
559
832
|
|
560
|
-
//
|
561
|
-
//
|
562
|
-
|
563
|
-
|
833
|
+
// Helper for a popular repeating case of the spec:
|
834
|
+
// Let integer be ? ToInteger(index).
|
835
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
836
|
+
var toAbsoluteIndex = function (index, length) {
|
837
|
+
var integer = toIntegerOrInfinity(index);
|
838
|
+
return integer < 0 ? max$2(integer + length, 0) : min$1(integer, length);
|
564
839
|
};
|
565
840
|
|
566
|
-
var min
|
841
|
+
var min = Math.min;
|
567
842
|
|
568
843
|
// `ToLength` abstract operation
|
569
844
|
// https://tc39.es/ecma262/#sec-tolength
|
570
845
|
var toLength = function (argument) {
|
571
|
-
return argument > 0 ? min
|
846
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
572
847
|
};
|
573
848
|
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
// Let integer be ? ToInteger(index).
|
579
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
580
|
-
var toAbsoluteIndex = function (index, length) {
|
581
|
-
var integer = toInteger(index);
|
582
|
-
return integer < 0 ? max$1(integer + length, 0) : min(integer, length);
|
849
|
+
// `LengthOfArrayLike` abstract operation
|
850
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
851
|
+
var lengthOfArrayLike = function (obj) {
|
852
|
+
return toLength(obj.length);
|
583
853
|
};
|
584
854
|
|
585
855
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
586
856
|
var createMethod$1 = function (IS_INCLUDES) {
|
587
857
|
return function ($this, el, fromIndex) {
|
588
858
|
var O = toIndexedObject($this);
|
589
|
-
var length =
|
859
|
+
var length = lengthOfArrayLike(O);
|
590
860
|
var index = toAbsoluteIndex(fromIndex, length);
|
591
861
|
var value;
|
592
862
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -614,15 +884,17 @@
|
|
614
884
|
var indexOf = arrayIncludes.indexOf;
|
615
885
|
|
616
886
|
|
887
|
+
var push$2 = functionUncurryThis([].push);
|
888
|
+
|
617
889
|
var objectKeysInternal = function (object, names) {
|
618
890
|
var O = toIndexedObject(object);
|
619
891
|
var i = 0;
|
620
892
|
var result = [];
|
621
893
|
var key;
|
622
|
-
for (key in O) !
|
894
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$2(result, key);
|
623
895
|
// Don't enum bug & hidden keys
|
624
|
-
while (names.length > i) if (
|
625
|
-
~indexOf(result, key) ||
|
896
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
897
|
+
~indexOf(result, key) || push$2(result, key);
|
626
898
|
}
|
627
899
|
return result;
|
628
900
|
};
|
@@ -642,36 +914,40 @@
|
|
642
914
|
|
643
915
|
// `Object.getOwnPropertyNames` method
|
644
916
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
645
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
646
|
-
var f$
|
917
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
918
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
647
919
|
return objectKeysInternal(O, hiddenKeys);
|
648
920
|
};
|
649
921
|
|
650
922
|
var objectGetOwnPropertyNames = {
|
651
|
-
f: f$
|
923
|
+
f: f$2
|
652
924
|
};
|
653
925
|
|
654
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
655
|
-
var f = Object.getOwnPropertySymbols;
|
926
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
927
|
+
var f$1 = Object.getOwnPropertySymbols;
|
656
928
|
|
657
929
|
var objectGetOwnPropertySymbols = {
|
658
|
-
f: f
|
930
|
+
f: f$1
|
659
931
|
};
|
660
932
|
|
933
|
+
var concat$1 = functionUncurryThis([].concat);
|
934
|
+
|
661
935
|
// all object keys, includes non-enumerable and symbols
|
662
936
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
663
937
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
664
938
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
665
|
-
return getOwnPropertySymbols ?
|
939
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
666
940
|
};
|
667
941
|
|
668
|
-
var copyConstructorProperties = function (target, source) {
|
942
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
669
943
|
var keys = ownKeys(source);
|
670
944
|
var defineProperty = objectDefineProperty.f;
|
671
945
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
672
946
|
for (var i = 0; i < keys.length; i++) {
|
673
947
|
var key = keys[i];
|
674
|
-
if (!
|
948
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
949
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
950
|
+
}
|
675
951
|
}
|
676
952
|
};
|
677
953
|
|
@@ -681,7 +957,7 @@
|
|
681
957
|
var value = data[normalize(feature)];
|
682
958
|
return value == POLYFILL ? true
|
683
959
|
: value == NATIVE ? false
|
684
|
-
:
|
960
|
+
: isCallable(detection) ? fails(detection)
|
685
961
|
: !!detection;
|
686
962
|
};
|
687
963
|
|
@@ -715,6 +991,7 @@
|
|
715
991
|
options.sham - add a flag to not completely full polyfills
|
716
992
|
options.enumerable - export as enumerable property
|
717
993
|
options.noTargetGet - prevent calling a getter on target
|
994
|
+
options.name - the .name of the function if it does not match the key
|
718
995
|
*/
|
719
996
|
var _export = function (options, source) {
|
720
997
|
var TARGET = options.target;
|
@@ -737,104 +1014,130 @@
|
|
737
1014
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
738
1015
|
// contained in target
|
739
1016
|
if (!FORCED && targetProperty !== undefined) {
|
740
|
-
if (typeof sourceProperty
|
1017
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
741
1018
|
copyConstructorProperties(sourceProperty, targetProperty);
|
742
1019
|
}
|
743
1020
|
// add a flag to not completely full polyfills
|
744
1021
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
745
1022
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
746
1023
|
}
|
747
|
-
|
748
|
-
redefine(target, key, sourceProperty, options);
|
1024
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
749
1025
|
}
|
750
1026
|
};
|
751
1027
|
|
752
1028
|
// `IsArray` abstract operation
|
753
1029
|
// https://tc39.es/ecma262/#sec-isarray
|
754
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
755
|
-
var isArray = Array.isArray || function isArray(
|
756
|
-
return classofRaw(
|
757
|
-
};
|
758
|
-
|
759
|
-
// `ToObject` abstract operation
|
760
|
-
// https://tc39.es/ecma262/#sec-toobject
|
761
|
-
var toObject = function (argument) {
|
762
|
-
return Object(requireObjectCoercible(argument));
|
1030
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1031
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1032
|
+
return classofRaw(argument) == 'Array';
|
763
1033
|
};
|
764
1034
|
|
765
1035
|
var createProperty = function (object, key, value) {
|
766
|
-
var propertyKey =
|
1036
|
+
var propertyKey = toPropertyKey(key);
|
767
1037
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
768
1038
|
else object[propertyKey] = value;
|
769
1039
|
};
|
770
1040
|
|
771
|
-
var
|
1041
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1042
|
+
var test$1 = {};
|
772
1043
|
|
773
|
-
|
1044
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
774
1045
|
|
775
|
-
var
|
776
|
-
var versions = process && process.versions;
|
777
|
-
var v8 = versions && versions.v8;
|
778
|
-
var match, version;
|
1046
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
779
1047
|
|
780
|
-
|
781
|
-
|
782
|
-
version = match[0] + match[1];
|
783
|
-
} else if (engineUserAgent) {
|
784
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
785
|
-
if (!match || match[1] >= 74) {
|
786
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
787
|
-
if (match) version = match[1];
|
788
|
-
}
|
789
|
-
}
|
1048
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1049
|
+
var Object$1 = global_1.Object;
|
790
1050
|
|
791
|
-
|
1051
|
+
// ES3 wrong here
|
1052
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
792
1053
|
|
793
|
-
//
|
794
|
-
var
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
800
|
-
});
|
801
|
-
|
802
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
1054
|
+
// fallback for IE11 Script Access Denied error
|
1055
|
+
var tryGet = function (it, key) {
|
1056
|
+
try {
|
1057
|
+
return it[key];
|
1058
|
+
} catch (error) { /* empty */ }
|
1059
|
+
};
|
803
1060
|
|
1061
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1062
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1063
|
+
var O, tag, result;
|
1064
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1065
|
+
// @@toStringTag case
|
1066
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1067
|
+
// builtinTag case
|
1068
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1069
|
+
// ES3 arguments fallback
|
1070
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1071
|
+
};
|
804
1072
|
|
805
|
-
var
|
806
|
-
|
807
|
-
|
1073
|
+
var noop = function () { /* empty */ };
|
1074
|
+
var empty = [];
|
1075
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1076
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1077
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1078
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
808
1079
|
|
809
|
-
var
|
810
|
-
|
811
|
-
|
1080
|
+
var isConstructorModern = function isConstructor(argument) {
|
1081
|
+
if (!isCallable(argument)) return false;
|
1082
|
+
try {
|
1083
|
+
construct(noop, empty, argument);
|
1084
|
+
return true;
|
1085
|
+
} catch (error) {
|
1086
|
+
return false;
|
1087
|
+
}
|
1088
|
+
};
|
812
1089
|
|
813
|
-
var
|
814
|
-
if (!
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
1090
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1091
|
+
if (!isCallable(argument)) return false;
|
1092
|
+
switch (classof(argument)) {
|
1093
|
+
case 'AsyncFunction':
|
1094
|
+
case 'GeneratorFunction':
|
1095
|
+
case 'AsyncGeneratorFunction': return false;
|
1096
|
+
}
|
1097
|
+
try {
|
1098
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1099
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1100
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1101
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1102
|
+
} catch (error) {
|
1103
|
+
return true;
|
1104
|
+
}
|
821
1105
|
};
|
822
1106
|
|
1107
|
+
isConstructorLegacy.sham = true;
|
1108
|
+
|
1109
|
+
// `IsConstructor` abstract operation
|
1110
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1111
|
+
var isConstructor = !construct || fails(function () {
|
1112
|
+
var called;
|
1113
|
+
return isConstructorModern(isConstructorModern.call)
|
1114
|
+
|| !isConstructorModern(Object)
|
1115
|
+
|| !isConstructorModern(function () { called = true; })
|
1116
|
+
|| called;
|
1117
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1118
|
+
|
823
1119
|
var SPECIES$2 = wellKnownSymbol('species');
|
1120
|
+
var Array$3 = global_1.Array;
|
824
1121
|
|
825
|
-
// `ArraySpeciesCreate` abstract operation
|
1122
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
826
1123
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
827
|
-
var
|
1124
|
+
var arraySpeciesConstructor = function (originalArray) {
|
828
1125
|
var C;
|
829
1126
|
if (isArray(originalArray)) {
|
830
1127
|
C = originalArray.constructor;
|
831
1128
|
// cross-realm fallback
|
832
|
-
if (
|
1129
|
+
if (isConstructor(C) && (C === Array$3 || isArray(C.prototype))) C = undefined;
|
833
1130
|
else if (isObject(C)) {
|
834
1131
|
C = C[SPECIES$2];
|
835
1132
|
if (C === null) C = undefined;
|
836
1133
|
}
|
837
|
-
} return
|
1134
|
+
} return C === undefined ? Array$3 : C;
|
1135
|
+
};
|
1136
|
+
|
1137
|
+
// `ArraySpeciesCreate` abstract operation
|
1138
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1139
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1140
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
838
1141
|
};
|
839
1142
|
|
840
1143
|
var SPECIES$1 = wellKnownSymbol('species');
|
@@ -856,6 +1159,7 @@
|
|
856
1159
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
857
1160
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
858
1161
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1162
|
+
var TypeError$2 = global_1.TypeError;
|
859
1163
|
|
860
1164
|
// We can't use this feature detection in V8 since it causes
|
861
1165
|
// deoptimization and serious performance degradation
|
@@ -879,7 +1183,7 @@
|
|
879
1183
|
// `Array.prototype.concat` method
|
880
1184
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
881
1185
|
// with adding support of @@isConcatSpreadable and @@species
|
882
|
-
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
1186
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
883
1187
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
884
1188
|
concat: function concat(arg) {
|
885
1189
|
var O = toObject(this);
|
@@ -889,11 +1193,11 @@
|
|
889
1193
|
for (i = -1, length = arguments.length; i < length; i++) {
|
890
1194
|
E = i === -1 ? O : arguments[i];
|
891
1195
|
if (isConcatSpreadable(E)) {
|
892
|
-
len =
|
893
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1196
|
+
len = lengthOfArrayLike(E);
|
1197
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
894
1198
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
895
1199
|
} else {
|
896
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1200
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
897
1201
|
createProperty(A, n++, E);
|
898
1202
|
}
|
899
1203
|
}
|
@@ -904,15 +1208,16 @@
|
|
904
1208
|
|
905
1209
|
// `Object.keys` method
|
906
1210
|
// https://tc39.es/ecma262/#sec-object.keys
|
907
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1211
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
908
1212
|
var objectKeys = Object.keys || function keys(O) {
|
909
1213
|
return objectKeysInternal(O, enumBugKeys);
|
910
1214
|
};
|
911
1215
|
|
912
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
1216
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
913
1217
|
var $assign = Object.assign;
|
914
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1218
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
915
1219
|
var defineProperty = Object.defineProperty;
|
1220
|
+
var concat = functionUncurryThis([].concat);
|
916
1221
|
|
917
1222
|
// `Object.assign` method
|
918
1223
|
// https://tc39.es/ecma262/#sec-object.assign
|
@@ -930,7 +1235,7 @@
|
|
930
1235
|
// should work with symbols and should have deterministic property order (V8 bug)
|
931
1236
|
var A = {};
|
932
1237
|
var B = {};
|
933
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
1238
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
934
1239
|
var symbol = Symbol();
|
935
1240
|
var alphabet = 'abcdefghijklmnopqrst';
|
936
1241
|
A[symbol] = 7;
|
@@ -944,29 +1249,31 @@
|
|
944
1249
|
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
945
1250
|
while (argumentsLength > index) {
|
946
1251
|
var S = indexedObject(arguments[index++]);
|
947
|
-
var keys = getOwnPropertySymbols ? objectKeys(S)
|
1252
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
948
1253
|
var length = keys.length;
|
949
1254
|
var j = 0;
|
950
1255
|
var key;
|
951
1256
|
while (length > j) {
|
952
1257
|
key = keys[j++];
|
953
|
-
if (!descriptors || propertyIsEnumerable
|
1258
|
+
if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
|
954
1259
|
}
|
955
1260
|
} return T;
|
956
1261
|
} : $assign;
|
957
1262
|
|
958
1263
|
// `Object.assign` method
|
959
1264
|
// https://tc39.es/ecma262/#sec-object.assign
|
960
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
961
|
-
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1265
|
+
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
1266
|
+
_export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, {
|
962
1267
|
assign: objectAssign
|
963
1268
|
});
|
964
1269
|
|
1270
|
+
var arraySlice = functionUncurryThis([].slice);
|
1271
|
+
|
965
1272
|
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('slice');
|
966
1273
|
|
967
1274
|
var SPECIES = wellKnownSymbol('species');
|
968
|
-
var
|
969
|
-
var max = Math.max;
|
1275
|
+
var Array$2 = global_1.Array;
|
1276
|
+
var max$1 = Math.max;
|
970
1277
|
|
971
1278
|
// `Array.prototype.slice` method
|
972
1279
|
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
@@ -974,7 +1281,7 @@
|
|
974
1281
|
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
975
1282
|
slice: function slice(start, end) {
|
976
1283
|
var O = toIndexedObject(this);
|
977
|
-
var length =
|
1284
|
+
var length = lengthOfArrayLike(O);
|
978
1285
|
var k = toAbsoluteIndex(start, length);
|
979
1286
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
980
1287
|
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
@@ -982,17 +1289,17 @@
|
|
982
1289
|
if (isArray(O)) {
|
983
1290
|
Constructor = O.constructor;
|
984
1291
|
// cross-realm fallback
|
985
|
-
if (
|
1292
|
+
if (isConstructor(Constructor) && (Constructor === Array$2 || isArray(Constructor.prototype))) {
|
986
1293
|
Constructor = undefined;
|
987
1294
|
} else if (isObject(Constructor)) {
|
988
1295
|
Constructor = Constructor[SPECIES];
|
989
1296
|
if (Constructor === null) Constructor = undefined;
|
990
1297
|
}
|
991
|
-
if (Constructor === Array || Constructor === undefined) {
|
992
|
-
return
|
1298
|
+
if (Constructor === Array$2 || Constructor === undefined) {
|
1299
|
+
return arraySlice(O, k, fin);
|
993
1300
|
}
|
994
1301
|
}
|
995
|
-
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
1302
|
+
result = new (Constructor === undefined ? Array$2 : Constructor)(max$1(fin - k, 0));
|
996
1303
|
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
997
1304
|
result.length = n;
|
998
1305
|
return result;
|
@@ -1002,77 +1309,63 @@
|
|
1002
1309
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1003
1310
|
var method = [][METHOD_NAME];
|
1004
1311
|
return !!method && fails(function () {
|
1005
|
-
// eslint-disable-next-line no-useless-call
|
1006
|
-
method.call(null, argument || function () {
|
1312
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1313
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1007
1314
|
});
|
1008
1315
|
};
|
1009
1316
|
|
1010
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1317
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
1318
|
+
|
1011
1319
|
|
1012
|
-
var $
|
1320
|
+
var $IndexOf = arrayIncludes.indexOf;
|
1013
1321
|
|
1014
1322
|
|
1015
|
-
var
|
1323
|
+
var un$IndexOf = functionUncurryThis([].indexOf);
|
1016
1324
|
|
1017
|
-
var NEGATIVE_ZERO = !!
|
1325
|
+
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
1018
1326
|
var STRICT_METHOD$2 = arrayMethodIsStrict('indexOf');
|
1019
1327
|
|
1020
1328
|
// `Array.prototype.indexOf` method
|
1021
1329
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1022
1330
|
_export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$2 }, {
|
1023
1331
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
1332
|
+
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
1024
1333
|
return NEGATIVE_ZERO
|
1025
1334
|
// convert -0 to +0
|
1026
|
-
?
|
1027
|
-
: $
|
1335
|
+
? un$IndexOf(this, searchElement, fromIndex) || 0
|
1336
|
+
: $IndexOf(this, searchElement, fromIndex);
|
1028
1337
|
}
|
1029
1338
|
});
|
1030
1339
|
|
1031
|
-
var
|
1032
|
-
if (typeof it != 'function') {
|
1033
|
-
throw TypeError(String(it) + ' is not a function');
|
1034
|
-
} return it;
|
1035
|
-
};
|
1340
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
1036
1341
|
|
1037
1342
|
// optional / simple context binding
|
1038
|
-
var functionBindContext = function (fn, that
|
1039
|
-
|
1040
|
-
|
1041
|
-
switch (length) {
|
1042
|
-
case 0: return function () {
|
1043
|
-
return fn.call(that);
|
1044
|
-
};
|
1045
|
-
case 1: return function (a) {
|
1046
|
-
return fn.call(that, a);
|
1047
|
-
};
|
1048
|
-
case 2: return function (a, b) {
|
1049
|
-
return fn.call(that, a, b);
|
1050
|
-
};
|
1051
|
-
case 3: return function (a, b, c) {
|
1052
|
-
return fn.call(that, a, b, c);
|
1053
|
-
};
|
1054
|
-
}
|
1055
|
-
return function (/* ...args */) {
|
1343
|
+
var functionBindContext = function (fn, that) {
|
1344
|
+
aCallable(fn);
|
1345
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
1056
1346
|
return fn.apply(that, arguments);
|
1057
1347
|
};
|
1058
1348
|
};
|
1059
1349
|
|
1350
|
+
var TypeError$1 = global_1.TypeError;
|
1351
|
+
|
1060
1352
|
// `FlattenIntoArray` abstract operation
|
1061
1353
|
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
1062
1354
|
var flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
|
1063
1355
|
var targetIndex = start;
|
1064
1356
|
var sourceIndex = 0;
|
1065
|
-
var mapFn = mapper ? functionBindContext(mapper, thisArg
|
1066
|
-
var element;
|
1357
|
+
var mapFn = mapper ? functionBindContext(mapper, thisArg) : false;
|
1358
|
+
var element, elementLen;
|
1067
1359
|
|
1068
1360
|
while (sourceIndex < sourceLen) {
|
1069
1361
|
if (sourceIndex in source) {
|
1070
1362
|
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
1071
1363
|
|
1072
1364
|
if (depth > 0 && isArray(element)) {
|
1073
|
-
|
1365
|
+
elementLen = lengthOfArrayLike(element);
|
1366
|
+
targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;
|
1074
1367
|
} else {
|
1075
|
-
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
|
1368
|
+
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError$1('Exceed the acceptable array length');
|
1076
1369
|
target[targetIndex] = element;
|
1077
1370
|
}
|
1078
1371
|
|
@@ -1091,54 +1384,42 @@
|
|
1091
1384
|
flat: function flat(/* depthArg = 1 */) {
|
1092
1385
|
var depthArg = arguments.length ? arguments[0] : undefined;
|
1093
1386
|
var O = toObject(this);
|
1094
|
-
var sourceLen =
|
1387
|
+
var sourceLen = lengthOfArrayLike(O);
|
1095
1388
|
var A = arraySpeciesCreate(O, 0);
|
1096
|
-
A.length = flattenIntoArray_1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 :
|
1389
|
+
A.length = flattenIntoArray_1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
|
1097
1390
|
return A;
|
1098
1391
|
}
|
1099
1392
|
});
|
1100
1393
|
|
1101
|
-
var test = [];
|
1102
|
-
var nativeSort = test.sort;
|
1103
|
-
|
1104
|
-
// IE8-
|
1105
|
-
var FAILS_ON_UNDEFINED = fails(function () {
|
1106
|
-
test.sort(undefined);
|
1107
|
-
});
|
1108
|
-
// V8 bug
|
1109
|
-
var FAILS_ON_NULL = fails(function () {
|
1110
|
-
test.sort(null);
|
1111
|
-
});
|
1112
|
-
// Old WebKit
|
1113
|
-
var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
|
1114
|
-
|
1115
|
-
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1;
|
1116
|
-
|
1117
|
-
// `Array.prototype.sort` method
|
1118
|
-
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
1119
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1120
|
-
sort: function sort(comparefn) {
|
1121
|
-
return comparefn === undefined
|
1122
|
-
? nativeSort.call(toObject(this))
|
1123
|
-
: nativeSort.call(toObject(this), aFunction(comparefn));
|
1124
|
-
}
|
1125
|
-
});
|
1126
|
-
|
1127
1394
|
// `Object.defineProperties` method
|
1128
1395
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1129
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1130
|
-
var
|
1396
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1397
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1131
1398
|
anObject(O);
|
1399
|
+
var props = toIndexedObject(Properties);
|
1132
1400
|
var keys = objectKeys(Properties);
|
1133
1401
|
var length = keys.length;
|
1134
1402
|
var index = 0;
|
1135
1403
|
var key;
|
1136
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
1404
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1137
1405
|
return O;
|
1138
1406
|
};
|
1139
1407
|
|
1408
|
+
var objectDefineProperties = {
|
1409
|
+
f: f
|
1410
|
+
};
|
1411
|
+
|
1140
1412
|
var html = getBuiltIn('document', 'documentElement');
|
1141
1413
|
|
1414
|
+
/* global ActiveXObject -- old IE, WSH */
|
1415
|
+
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
|
1421
|
+
|
1422
|
+
|
1142
1423
|
var GT = '>';
|
1143
1424
|
var LT = '<';
|
1144
1425
|
var PROTOTYPE = 'prototype';
|
@@ -1185,10 +1466,13 @@
|
|
1185
1466
|
var activeXDocument;
|
1186
1467
|
var NullProtoObject = function () {
|
1187
1468
|
try {
|
1188
|
-
|
1189
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1469
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1190
1470
|
} catch (error) { /* ignore */ }
|
1191
|
-
NullProtoObject =
|
1471
|
+
NullProtoObject = typeof document != 'undefined'
|
1472
|
+
? document.domain && activeXDocument
|
1473
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1474
|
+
: NullProtoObjectViaIFrame()
|
1475
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1192
1476
|
var length = enumBugKeys.length;
|
1193
1477
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1194
1478
|
return NullProtoObject();
|
@@ -1198,6 +1482,7 @@
|
|
1198
1482
|
|
1199
1483
|
// `Object.create` method
|
1200
1484
|
// https://tc39.es/ecma262/#sec-object.create
|
1485
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1201
1486
|
var objectCreate = Object.create || function create(O, Properties) {
|
1202
1487
|
var result;
|
1203
1488
|
if (O !== null) {
|
@@ -1207,7 +1492,7 @@
|
|
1207
1492
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
1208
1493
|
result[IE_PROTO] = O;
|
1209
1494
|
} else result = NullProtoObject();
|
1210
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1495
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1211
1496
|
};
|
1212
1497
|
|
1213
1498
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -1227,12 +1512,189 @@
|
|
1227
1512
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
1228
1513
|
};
|
1229
1514
|
|
1515
|
+
// this method was added to unscopables after implementation
|
1516
|
+
// in popular engines, so it's moved to a separate module
|
1517
|
+
|
1518
|
+
|
1519
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1520
|
+
addToUnscopables('flat');
|
1521
|
+
|
1522
|
+
var String$1 = global_1.String;
|
1523
|
+
|
1524
|
+
var toString_1 = function (argument) {
|
1525
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1526
|
+
return String$1(argument);
|
1527
|
+
};
|
1528
|
+
|
1529
|
+
var Array$1 = global_1.Array;
|
1530
|
+
var max = Math.max;
|
1531
|
+
|
1532
|
+
var arraySliceSimple = function (O, start, end) {
|
1533
|
+
var length = lengthOfArrayLike(O);
|
1534
|
+
var k = toAbsoluteIndex(start, length);
|
1535
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
1536
|
+
var result = Array$1(max(fin - k, 0));
|
1537
|
+
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
1538
|
+
result.length = n;
|
1539
|
+
return result;
|
1540
|
+
};
|
1541
|
+
|
1542
|
+
var floor = Math.floor;
|
1543
|
+
|
1544
|
+
var mergeSort = function (array, comparefn) {
|
1545
|
+
var length = array.length;
|
1546
|
+
var middle = floor(length / 2);
|
1547
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
1548
|
+
array,
|
1549
|
+
mergeSort(arraySliceSimple(array, 0, middle), comparefn),
|
1550
|
+
mergeSort(arraySliceSimple(array, middle), comparefn),
|
1551
|
+
comparefn
|
1552
|
+
);
|
1553
|
+
};
|
1554
|
+
|
1555
|
+
var insertionSort = function (array, comparefn) {
|
1556
|
+
var length = array.length;
|
1557
|
+
var i = 1;
|
1558
|
+
var element, j;
|
1559
|
+
|
1560
|
+
while (i < length) {
|
1561
|
+
j = i;
|
1562
|
+
element = array[i];
|
1563
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
1564
|
+
array[j] = array[--j];
|
1565
|
+
}
|
1566
|
+
if (j !== i++) array[j] = element;
|
1567
|
+
} return array;
|
1568
|
+
};
|
1569
|
+
|
1570
|
+
var merge = function (array, left, right, comparefn) {
|
1571
|
+
var llength = left.length;
|
1572
|
+
var rlength = right.length;
|
1573
|
+
var lindex = 0;
|
1574
|
+
var rindex = 0;
|
1575
|
+
|
1576
|
+
while (lindex < llength || rindex < rlength) {
|
1577
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
1578
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
1579
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
1580
|
+
} return array;
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
var arraySort = mergeSort;
|
1584
|
+
|
1585
|
+
var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
|
1586
|
+
|
1587
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
1588
|
+
|
1589
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
|
1590
|
+
|
1591
|
+
var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
|
1592
|
+
|
1593
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
1594
|
+
|
1595
|
+
var test = [];
|
1596
|
+
var un$Sort = functionUncurryThis(test.sort);
|
1597
|
+
var push$1 = functionUncurryThis(test.push);
|
1598
|
+
|
1599
|
+
// IE8-
|
1600
|
+
var FAILS_ON_UNDEFINED = fails(function () {
|
1601
|
+
test.sort(undefined);
|
1602
|
+
});
|
1603
|
+
// V8 bug
|
1604
|
+
var FAILS_ON_NULL = fails(function () {
|
1605
|
+
test.sort(null);
|
1606
|
+
});
|
1607
|
+
// Old WebKit
|
1608
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
|
1609
|
+
|
1610
|
+
var STABLE_SORT = !fails(function () {
|
1611
|
+
// feature detection can be too slow, so check engines versions
|
1612
|
+
if (engineV8Version) return engineV8Version < 70;
|
1613
|
+
if (engineFfVersion && engineFfVersion > 3) return;
|
1614
|
+
if (engineIsIeOrEdge) return true;
|
1615
|
+
if (engineWebkitVersion) return engineWebkitVersion < 603;
|
1616
|
+
|
1617
|
+
var result = '';
|
1618
|
+
var code, chr, value, index;
|
1619
|
+
|
1620
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
1621
|
+
for (code = 65; code < 76; code++) {
|
1622
|
+
chr = String.fromCharCode(code);
|
1623
|
+
|
1624
|
+
switch (code) {
|
1625
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
1626
|
+
case 68: case 71: value = 4; break;
|
1627
|
+
default: value = 2;
|
1628
|
+
}
|
1629
|
+
|
1630
|
+
for (index = 0; index < 47; index++) {
|
1631
|
+
test.push({ k: chr + index, v: value });
|
1632
|
+
}
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
1636
|
+
|
1637
|
+
for (index = 0; index < test.length; index++) {
|
1638
|
+
chr = test[index].k.charAt(0);
|
1639
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
return result !== 'DGBEFHACIJK';
|
1643
|
+
});
|
1644
|
+
|
1645
|
+
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
1646
|
+
|
1647
|
+
var getSortCompare = function (comparefn) {
|
1648
|
+
return function (x, y) {
|
1649
|
+
if (y === undefined) return -1;
|
1650
|
+
if (x === undefined) return 1;
|
1651
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
1652
|
+
return toString_1(x) > toString_1(y) ? 1 : -1;
|
1653
|
+
};
|
1654
|
+
};
|
1655
|
+
|
1656
|
+
// `Array.prototype.sort` method
|
1657
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
1658
|
+
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1659
|
+
sort: function sort(comparefn) {
|
1660
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
1661
|
+
|
1662
|
+
var array = toObject(this);
|
1663
|
+
|
1664
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
1665
|
+
|
1666
|
+
var items = [];
|
1667
|
+
var arrayLength = lengthOfArrayLike(array);
|
1668
|
+
var itemsLength, index;
|
1669
|
+
|
1670
|
+
for (index = 0; index < arrayLength; index++) {
|
1671
|
+
if (index in array) push$1(items, array[index]);
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
arraySort(items, getSortCompare(comparefn));
|
1675
|
+
|
1676
|
+
itemsLength = items.length;
|
1677
|
+
index = 0;
|
1678
|
+
|
1679
|
+
while (index < itemsLength) array[index] = items[index++];
|
1680
|
+
while (index < arrayLength) delete array[index++];
|
1681
|
+
|
1682
|
+
return array;
|
1683
|
+
}
|
1684
|
+
});
|
1685
|
+
|
1230
1686
|
var $includes = arrayIncludes.includes;
|
1231
1687
|
|
1232
1688
|
|
1689
|
+
|
1690
|
+
// FF99+ bug
|
1691
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
1692
|
+
return !Array(1).includes();
|
1693
|
+
});
|
1694
|
+
|
1233
1695
|
// `Array.prototype.includes` method
|
1234
1696
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1235
|
-
_export({ target: 'Array', proto: true }, {
|
1697
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
1236
1698
|
includes: function includes(el /* , fromIndex = 0 */) {
|
1237
1699
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
1238
1700
|
}
|
@@ -1241,25 +1703,25 @@
|
|
1241
1703
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1242
1704
|
addToUnscopables('includes');
|
1243
1705
|
|
1244
|
-
var push = [].push;
|
1706
|
+
var push = functionUncurryThis([].push);
|
1245
1707
|
|
1246
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1708
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1247
1709
|
var createMethod = function (TYPE) {
|
1248
1710
|
var IS_MAP = TYPE == 1;
|
1249
1711
|
var IS_FILTER = TYPE == 2;
|
1250
1712
|
var IS_SOME = TYPE == 3;
|
1251
1713
|
var IS_EVERY = TYPE == 4;
|
1252
1714
|
var IS_FIND_INDEX = TYPE == 6;
|
1253
|
-
var
|
1715
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
1254
1716
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1255
1717
|
return function ($this, callbackfn, that, specificCreate) {
|
1256
1718
|
var O = toObject($this);
|
1257
1719
|
var self = indexedObject(O);
|
1258
|
-
var boundFunction = functionBindContext(callbackfn, that
|
1259
|
-
var length =
|
1720
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1721
|
+
var length = lengthOfArrayLike(self);
|
1260
1722
|
var index = 0;
|
1261
1723
|
var create = specificCreate || arraySpeciesCreate;
|
1262
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1724
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1263
1725
|
var value, result;
|
1264
1726
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
1265
1727
|
value = self[index];
|
@@ -1270,10 +1732,10 @@
|
|
1270
1732
|
case 3: return true; // some
|
1271
1733
|
case 5: return value; // find
|
1272
1734
|
case 6: return index; // findIndex
|
1273
|
-
case 2: push
|
1735
|
+
case 2: push(target, value); // filter
|
1274
1736
|
} else switch (TYPE) {
|
1275
1737
|
case 4: return false; // every
|
1276
|
-
case 7: push
|
1738
|
+
case 7: push(target, value); // filterReject
|
1277
1739
|
}
|
1278
1740
|
}
|
1279
1741
|
}
|
@@ -1303,9 +1765,9 @@
|
|
1303
1765
|
// `Array.prototype.findIndex` method
|
1304
1766
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
1305
1767
|
findIndex: createMethod(6),
|
1306
|
-
// `Array.prototype.
|
1768
|
+
// `Array.prototype.filterReject` method
|
1307
1769
|
// https://github.com/tc39/proposal-array-filtering
|
1308
|
-
|
1770
|
+
filterReject: createMethod(7)
|
1309
1771
|
};
|
1310
1772
|
|
1311
1773
|
var $find = arrayIteration.find;
|
@@ -1328,7 +1790,19 @@
|
|
1328
1790
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1329
1791
|
addToUnscopables(FIND);
|
1330
1792
|
|
1331
|
-
|
1793
|
+
// `Object.prototype.toString` method implementation
|
1794
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1795
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1796
|
+
return '[object ' + classof(this) + ']';
|
1797
|
+
};
|
1798
|
+
|
1799
|
+
// `Object.prototype.toString` method
|
1800
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1801
|
+
if (!toStringTagSupport) {
|
1802
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
var un$Join = functionUncurryThis([].join);
|
1332
1806
|
|
1333
1807
|
var ES3_STRINGS = indexedObject != Object;
|
1334
1808
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
@@ -1337,7 +1811,7 @@
|
|
1337
1811
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1338
1812
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1339
1813
|
join: function join(separator) {
|
1340
|
-
return
|
1814
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1341
1815
|
}
|
1342
1816
|
});
|
1343
1817
|
|
@@ -1373,19 +1847,19 @@
|
|
1373
1847
|
* @update zhixin wen <wenzhixin2010@gmail.com>
|
1374
1848
|
*/
|
1375
1849
|
|
1376
|
-
var Utils = $__default[
|
1850
|
+
var Utils = $__default["default"].fn.bootstrapTable.utils;
|
1377
1851
|
|
1378
1852
|
function printPageBuilderDefault(table) {
|
1379
1853
|
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>");
|
1380
1854
|
}
|
1381
1855
|
|
1382
|
-
$__default[
|
1856
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
|
1383
1857
|
formatPrint: function formatPrint() {
|
1384
1858
|
return 'Print';
|
1385
1859
|
}
|
1386
1860
|
});
|
1387
|
-
$__default[
|
1388
|
-
$__default[
|
1861
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
|
1862
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1389
1863
|
showPrint: false,
|
1390
1864
|
printAsFilteredAndSortedOnUI: true,
|
1391
1865
|
printSortColumn: undefined,
|
@@ -1394,19 +1868,20 @@
|
|
1394
1868
|
return printPageBuilderDefault(table);
|
1395
1869
|
}
|
1396
1870
|
});
|
1397
|
-
$__default[
|
1871
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.COLUMN_DEFAULTS, {
|
1398
1872
|
printFilter: undefined,
|
1399
1873
|
printIgnore: false,
|
1400
1874
|
printFormatter: undefined
|
1401
1875
|
});
|
1402
|
-
$__default[
|
1876
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
|
1403
1877
|
print: {
|
1404
1878
|
bootstrap3: 'glyphicon-print icon-share',
|
1879
|
+
bootstrap5: 'bi-printer',
|
1405
1880
|
'bootstrap-table': 'icon-printer'
|
1406
|
-
}[$__default[
|
1881
|
+
}[$__default["default"].fn.bootstrapTable.theme] || 'fa-print'
|
1407
1882
|
});
|
1408
1883
|
|
1409
|
-
$__default[
|
1884
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1410
1885
|
_inherits(_class, _$$BootstrapTable);
|
1411
1886
|
|
1412
1887
|
var _super = _createSuper(_class);
|
@@ -1651,7 +2126,8 @@
|
|
1651
2126
|
data = sortRows(data, this.options.printSortColumn, this.options.printSortOrder);
|
1652
2127
|
var table = buildTable(data, this.options.columns);
|
1653
2128
|
var newWin = window.open('');
|
1654
|
-
|
2129
|
+
var calculatedPrintPage = Utils.calculateObjectValue(this, this.options.printPageBuilder, [table], printPageBuilderDefault(table));
|
2130
|
+
newWin.document.write(calculatedPrintPage);
|
1655
2131
|
newWin.document.close();
|
1656
2132
|
newWin.focus();
|
1657
2133
|
newWin.print();
|
@@ -1660,6 +2136,6 @@
|
|
1660
2136
|
}]);
|
1661
2137
|
|
1662
2138
|
return _class;
|
1663
|
-
}($__default[
|
2139
|
+
}($__default["default"].BootstrapTable);
|
1664
2140
|
|
1665
|
-
}))
|
2141
|
+
}));
|