bootstrap-table-rails 1.18.3 → 1.20.0
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/README.md +1 -1
- 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 +939 -357
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +947 -392
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +953 -396
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +3 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +3034 -2119
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1017 -430
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +564 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1488 -961
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +579 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +574 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +486 -189
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +909 -538
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +921 -501
- 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 +2712 -1132
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1326 -747
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +586 -275
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +892 -425
- 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 +670 -357
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +590 -252
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +820 -386
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +549 -240
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +557 -251
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +773 -304
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +586 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +547 -205
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +487 -189
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +559 -247
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +901 -551
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +600 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +480 -191
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +492 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +490 -200
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +475 -185
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +497 -207
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +511 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +511 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +564 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +560 -238
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +564 -242
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +562 -255
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +558 -236
- metadata +8 -6
data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js
CHANGED
@@ -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,9 +233,10 @@
|
|
225
233
|
|
226
234
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
227
235
|
var global_1 =
|
228
|
-
|
236
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
229
237
|
check(typeof globalThis == 'object' && globalThis) ||
|
230
238
|
check(typeof window == 'object' && window) ||
|
239
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
231
240
|
check(typeof self == 'object' && self) ||
|
232
241
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
233
242
|
// eslint-disable-next-line no-new-func -- fallback
|
@@ -243,21 +252,35 @@
|
|
243
252
|
|
244
253
|
// Detect IE8's incomplete defineProperty implementation
|
245
254
|
var descriptors = !fails(function () {
|
255
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
246
256
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
247
257
|
});
|
248
258
|
|
249
|
-
var
|
259
|
+
var functionBindNative = !fails(function () {
|
260
|
+
var test = (function () { /* empty */ }).bind();
|
261
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
262
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
263
|
+
});
|
264
|
+
|
265
|
+
var call$1 = Function.prototype.call;
|
266
|
+
|
267
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
268
|
+
return call$1.apply(call$1, arguments);
|
269
|
+
};
|
270
|
+
|
271
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
272
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
250
273
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
251
274
|
|
252
275
|
// Nashorn ~ JDK8 bug
|
253
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 &&
|
276
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
254
277
|
|
255
278
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
256
279
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
257
280
|
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
258
281
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
259
282
|
return !!descriptor && descriptor.enumerable;
|
260
|
-
} :
|
283
|
+
} : $propertyIsEnumerable;
|
261
284
|
|
262
285
|
var objectPropertyIsEnumerable = {
|
263
286
|
f: f$4
|
@@ -272,27 +295,44 @@
|
|
272
295
|
};
|
273
296
|
};
|
274
297
|
|
275
|
-
var
|
298
|
+
var FunctionPrototype$1 = Function.prototype;
|
299
|
+
var bind$1 = FunctionPrototype$1.bind;
|
300
|
+
var call = FunctionPrototype$1.call;
|
301
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
302
|
+
|
303
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
304
|
+
return fn && uncurryThis(fn);
|
305
|
+
} : function (fn) {
|
306
|
+
return fn && function () {
|
307
|
+
return call.apply(fn, arguments);
|
308
|
+
};
|
309
|
+
};
|
310
|
+
|
311
|
+
var toString$1 = functionUncurryThis({}.toString);
|
312
|
+
var stringSlice = functionUncurryThis(''.slice);
|
276
313
|
|
277
314
|
var classofRaw = function (it) {
|
278
|
-
return toString
|
315
|
+
return stringSlice(toString$1(it), 8, -1);
|
279
316
|
};
|
280
317
|
|
281
|
-
var
|
318
|
+
var Object$4 = global_1.Object;
|
319
|
+
var split = functionUncurryThis(''.split);
|
282
320
|
|
283
321
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
284
322
|
var indexedObject = fails(function () {
|
285
323
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
286
324
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
287
|
-
return !Object('z').propertyIsEnumerable(0);
|
325
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
288
326
|
}) ? function (it) {
|
289
|
-
return classofRaw(it) == 'String' ? split
|
290
|
-
} : Object;
|
327
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
328
|
+
} : Object$4;
|
329
|
+
|
330
|
+
var TypeError$8 = global_1.TypeError;
|
291
331
|
|
292
332
|
// `RequireObjectCoercible` abstract operation
|
293
333
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
294
334
|
var requireObjectCoercible = function (it) {
|
295
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
335
|
+
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
296
336
|
return it;
|
297
337
|
};
|
298
338
|
|
@@ -304,79 +344,303 @@
|
|
304
344
|
return indexedObject(requireObjectCoercible(it));
|
305
345
|
};
|
306
346
|
|
347
|
+
// `IsCallable` abstract operation
|
348
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
349
|
+
var isCallable = function (argument) {
|
350
|
+
return typeof argument == 'function';
|
351
|
+
};
|
352
|
+
|
307
353
|
var isObject = function (it) {
|
308
|
-
return typeof it
|
354
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
309
355
|
};
|
310
356
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
var
|
316
|
-
|
357
|
+
var aFunction = function (argument) {
|
358
|
+
return isCallable(argument) ? argument : undefined;
|
359
|
+
};
|
360
|
+
|
361
|
+
var getBuiltIn = function (namespace, method) {
|
362
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
363
|
+
};
|
364
|
+
|
365
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
366
|
+
|
367
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
368
|
+
|
369
|
+
var process = global_1.process;
|
370
|
+
var Deno = global_1.Deno;
|
371
|
+
var versions = process && process.versions || Deno && Deno.version;
|
372
|
+
var v8 = versions && versions.v8;
|
373
|
+
var match, version;
|
374
|
+
|
375
|
+
if (v8) {
|
376
|
+
match = v8.split('.');
|
377
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
378
|
+
// but their correct versions are not interesting for us
|
379
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
380
|
+
}
|
381
|
+
|
382
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
383
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
384
|
+
if (!version && engineUserAgent) {
|
385
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
386
|
+
if (!match || match[1] >= 74) {
|
387
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
388
|
+
if (match) version = +match[1];
|
389
|
+
}
|
390
|
+
}
|
391
|
+
|
392
|
+
var engineV8Version = version;
|
393
|
+
|
394
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
399
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
400
|
+
var symbol = Symbol();
|
401
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
402
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
403
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
404
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
405
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
406
|
+
});
|
407
|
+
|
408
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
409
|
+
|
410
|
+
|
411
|
+
var useSymbolAsUid = nativeSymbol
|
412
|
+
&& !Symbol.sham
|
413
|
+
&& typeof Symbol.iterator == 'symbol';
|
414
|
+
|
415
|
+
var Object$3 = global_1.Object;
|
416
|
+
|
417
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
418
|
+
return typeof it == 'symbol';
|
419
|
+
} : function (it) {
|
420
|
+
var $Symbol = getBuiltIn('Symbol');
|
421
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
422
|
+
};
|
423
|
+
|
424
|
+
var String$3 = global_1.String;
|
425
|
+
|
426
|
+
var tryToString = function (argument) {
|
427
|
+
try {
|
428
|
+
return String$3(argument);
|
429
|
+
} catch (error) {
|
430
|
+
return 'Object';
|
431
|
+
}
|
432
|
+
};
|
433
|
+
|
434
|
+
var TypeError$7 = global_1.TypeError;
|
435
|
+
|
436
|
+
// `Assert: IsCallable(argument) is true`
|
437
|
+
var aCallable = function (argument) {
|
438
|
+
if (isCallable(argument)) return argument;
|
439
|
+
throw TypeError$7(tryToString(argument) + ' is not a function');
|
440
|
+
};
|
441
|
+
|
442
|
+
// `GetMethod` abstract operation
|
443
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
444
|
+
var getMethod = function (V, P) {
|
445
|
+
var func = V[P];
|
446
|
+
return func == null ? undefined : aCallable(func);
|
447
|
+
};
|
448
|
+
|
449
|
+
var TypeError$6 = global_1.TypeError;
|
450
|
+
|
451
|
+
// `OrdinaryToPrimitive` abstract operation
|
452
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
453
|
+
var ordinaryToPrimitive = function (input, pref) {
|
317
454
|
var fn, val;
|
318
|
-
if (
|
319
|
-
if (
|
320
|
-
if (
|
321
|
-
throw TypeError("Can't convert object to primitive value");
|
455
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
456
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
457
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
458
|
+
throw TypeError$6("Can't convert object to primitive value");
|
322
459
|
};
|
323
460
|
|
324
|
-
|
461
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
462
|
+
var defineProperty = Object.defineProperty;
|
325
463
|
|
326
|
-
var
|
327
|
-
|
464
|
+
var setGlobal = function (key, value) {
|
465
|
+
try {
|
466
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
467
|
+
} catch (error) {
|
468
|
+
global_1[key] = value;
|
469
|
+
} return value;
|
470
|
+
};
|
471
|
+
|
472
|
+
var SHARED = '__core-js_shared__';
|
473
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
474
|
+
|
475
|
+
var sharedStore = store$1;
|
476
|
+
|
477
|
+
var shared = createCommonjsModule(function (module) {
|
478
|
+
(module.exports = function (key, value) {
|
479
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
480
|
+
})('versions', []).push({
|
481
|
+
version: '3.21.1',
|
482
|
+
mode: 'global',
|
483
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
484
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
485
|
+
source: 'https://github.com/zloirock/core-js'
|
486
|
+
});
|
487
|
+
});
|
488
|
+
|
489
|
+
var Object$2 = global_1.Object;
|
490
|
+
|
491
|
+
// `ToObject` abstract operation
|
492
|
+
// https://tc39.es/ecma262/#sec-toobject
|
493
|
+
var toObject = function (argument) {
|
494
|
+
return Object$2(requireObjectCoercible(argument));
|
495
|
+
};
|
496
|
+
|
497
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
498
|
+
|
499
|
+
// `HasOwnProperty` abstract operation
|
500
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
501
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
502
|
+
return hasOwnProperty(toObject(it), key);
|
503
|
+
};
|
504
|
+
|
505
|
+
var id = 0;
|
506
|
+
var postfix = Math.random();
|
507
|
+
var toString = functionUncurryThis(1.0.toString);
|
508
|
+
|
509
|
+
var uid = function (key) {
|
510
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
511
|
+
};
|
512
|
+
|
513
|
+
var WellKnownSymbolsStore = shared('wks');
|
514
|
+
var Symbol$2 = global_1.Symbol;
|
515
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
516
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
|
517
|
+
|
518
|
+
var wellKnownSymbol = function (name) {
|
519
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
520
|
+
var description = 'Symbol.' + name;
|
521
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$2, name)) {
|
522
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
523
|
+
} else if (useSymbolAsUid && symbolFor) {
|
524
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
525
|
+
} else {
|
526
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
527
|
+
}
|
528
|
+
} return WellKnownSymbolsStore[name];
|
529
|
+
};
|
530
|
+
|
531
|
+
var TypeError$5 = global_1.TypeError;
|
532
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
533
|
+
|
534
|
+
// `ToPrimitive` abstract operation
|
535
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
536
|
+
var toPrimitive = function (input, pref) {
|
537
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
538
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
539
|
+
var result;
|
540
|
+
if (exoticToPrim) {
|
541
|
+
if (pref === undefined) pref = 'default';
|
542
|
+
result = functionCall(exoticToPrim, input, pref);
|
543
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
544
|
+
throw TypeError$5("Can't convert object to primitive value");
|
545
|
+
}
|
546
|
+
if (pref === undefined) pref = 'number';
|
547
|
+
return ordinaryToPrimitive(input, pref);
|
548
|
+
};
|
549
|
+
|
550
|
+
// `ToPropertyKey` abstract operation
|
551
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
552
|
+
var toPropertyKey = function (argument) {
|
553
|
+
var key = toPrimitive(argument, 'string');
|
554
|
+
return isSymbol(key) ? key : key + '';
|
328
555
|
};
|
329
556
|
|
330
557
|
var document = global_1.document;
|
331
558
|
// typeof document.createElement is 'object' in old IE
|
332
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
559
|
+
var EXISTS$1 = isObject(document) && isObject(document.createElement);
|
333
560
|
|
334
561
|
var documentCreateElement = function (it) {
|
335
|
-
return EXISTS ? document.createElement(it) : {};
|
562
|
+
return EXISTS$1 ? document.createElement(it) : {};
|
336
563
|
};
|
337
564
|
|
338
|
-
//
|
565
|
+
// Thanks to IE8 for its funny defineProperty
|
339
566
|
var ie8DomDefine = !descriptors && !fails(function () {
|
567
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
340
568
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
341
569
|
get: function () { return 7; }
|
342
570
|
}).a != 7;
|
343
571
|
});
|
344
572
|
|
345
|
-
|
573
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
574
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
346
575
|
|
347
576
|
// `Object.getOwnPropertyDescriptor` method
|
348
577
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
349
|
-
var f$3 = descriptors ?
|
578
|
+
var f$3 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
350
579
|
O = toIndexedObject(O);
|
351
|
-
P =
|
580
|
+
P = toPropertyKey(P);
|
352
581
|
if (ie8DomDefine) try {
|
353
|
-
return
|
582
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
354
583
|
} catch (error) { /* empty */ }
|
355
|
-
if (
|
584
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
356
585
|
};
|
357
586
|
|
358
587
|
var objectGetOwnPropertyDescriptor = {
|
359
588
|
f: f$3
|
360
589
|
};
|
361
590
|
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
591
|
+
// V8 ~ Chrome 36-
|
592
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
593
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
594
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
595
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
596
|
+
value: 42,
|
597
|
+
writable: false
|
598
|
+
}).prototype != 42;
|
599
|
+
});
|
600
|
+
|
601
|
+
var String$2 = global_1.String;
|
602
|
+
var TypeError$4 = global_1.TypeError;
|
603
|
+
|
604
|
+
// `Assert: Type(argument) is Object`
|
605
|
+
var anObject = function (argument) {
|
606
|
+
if (isObject(argument)) return argument;
|
607
|
+
throw TypeError$4(String$2(argument) + ' is not an object');
|
366
608
|
};
|
367
609
|
|
368
|
-
var
|
610
|
+
var TypeError$3 = global_1.TypeError;
|
611
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
612
|
+
var $defineProperty = Object.defineProperty;
|
613
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
614
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
615
|
+
var ENUMERABLE = 'enumerable';
|
616
|
+
var CONFIGURABLE$1 = 'configurable';
|
617
|
+
var WRITABLE = 'writable';
|
369
618
|
|
370
619
|
// `Object.defineProperty` method
|
371
620
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
372
|
-
var f$2 = descriptors ?
|
621
|
+
var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
622
|
+
anObject(O);
|
623
|
+
P = toPropertyKey(P);
|
624
|
+
anObject(Attributes);
|
625
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
626
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
627
|
+
if (current && current[WRITABLE]) {
|
628
|
+
O[P] = Attributes.value;
|
629
|
+
Attributes = {
|
630
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
631
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
632
|
+
writable: false
|
633
|
+
};
|
634
|
+
}
|
635
|
+
} return $defineProperty(O, P, Attributes);
|
636
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
373
637
|
anObject(O);
|
374
|
-
P =
|
638
|
+
P = toPropertyKey(P);
|
375
639
|
anObject(Attributes);
|
376
640
|
if (ie8DomDefine) try {
|
377
|
-
return
|
641
|
+
return $defineProperty(O, P, Attributes);
|
378
642
|
} catch (error) { /* empty */ }
|
379
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
643
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
|
380
644
|
if ('value' in Attributes) O[P] = Attributes.value;
|
381
645
|
return O;
|
382
646
|
};
|
@@ -392,25 +656,12 @@
|
|
392
656
|
return object;
|
393
657
|
};
|
394
658
|
|
395
|
-
var
|
396
|
-
try {
|
397
|
-
createNonEnumerableProperty(global_1, key, value);
|
398
|
-
} catch (error) {
|
399
|
-
global_1[key] = value;
|
400
|
-
} return value;
|
401
|
-
};
|
402
|
-
|
403
|
-
var SHARED = '__core-js_shared__';
|
404
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
405
|
-
|
406
|
-
var sharedStore = store$1;
|
407
|
-
|
408
|
-
var functionToString = Function.toString;
|
659
|
+
var functionToString = functionUncurryThis(Function.toString);
|
409
660
|
|
410
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
411
|
-
if (
|
661
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
662
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
412
663
|
sharedStore.inspectSource = function (it) {
|
413
|
-
return functionToString
|
664
|
+
return functionToString(it);
|
414
665
|
};
|
415
666
|
}
|
416
667
|
|
@@ -418,24 +669,7 @@
|
|
418
669
|
|
419
670
|
var WeakMap$1 = global_1.WeakMap;
|
420
671
|
|
421
|
-
var nativeWeakMap =
|
422
|
-
|
423
|
-
var shared = createCommonjsModule(function (module) {
|
424
|
-
(module.exports = function (key, value) {
|
425
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
426
|
-
})('versions', []).push({
|
427
|
-
version: '3.9.1',
|
428
|
-
mode: 'global',
|
429
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
430
|
-
});
|
431
|
-
});
|
432
|
-
|
433
|
-
var id = 0;
|
434
|
-
var postfix = Math.random();
|
435
|
-
|
436
|
-
var uid = function (key) {
|
437
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
438
|
-
};
|
672
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
439
673
|
|
440
674
|
var keys = shared('keys');
|
441
675
|
|
@@ -445,6 +679,8 @@
|
|
445
679
|
|
446
680
|
var hiddenKeys$1 = {};
|
447
681
|
|
682
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
683
|
+
var TypeError$2 = global_1.TypeError;
|
448
684
|
var WeakMap = global_1.WeakMap;
|
449
685
|
var set, get, has;
|
450
686
|
|
@@ -456,40 +692,42 @@
|
|
456
692
|
return function (it) {
|
457
693
|
var state;
|
458
694
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
459
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
695
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
460
696
|
} return state;
|
461
697
|
};
|
462
698
|
};
|
463
699
|
|
464
|
-
if (nativeWeakMap) {
|
700
|
+
if (nativeWeakMap || sharedStore.state) {
|
465
701
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
466
|
-
var wmget = store.get;
|
467
|
-
var wmhas = store.has;
|
468
|
-
var wmset = store.set;
|
702
|
+
var wmget = functionUncurryThis(store.get);
|
703
|
+
var wmhas = functionUncurryThis(store.has);
|
704
|
+
var wmset = functionUncurryThis(store.set);
|
469
705
|
set = function (it, metadata) {
|
706
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
470
707
|
metadata.facade = it;
|
471
|
-
wmset
|
708
|
+
wmset(store, it, metadata);
|
472
709
|
return metadata;
|
473
710
|
};
|
474
711
|
get = function (it) {
|
475
|
-
return wmget
|
712
|
+
return wmget(store, it) || {};
|
476
713
|
};
|
477
714
|
has = function (it) {
|
478
|
-
return wmhas
|
715
|
+
return wmhas(store, it);
|
479
716
|
};
|
480
717
|
} else {
|
481
718
|
var STATE = sharedKey('state');
|
482
719
|
hiddenKeys$1[STATE] = true;
|
483
720
|
set = function (it, metadata) {
|
721
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
484
722
|
metadata.facade = it;
|
485
723
|
createNonEnumerableProperty(it, STATE, metadata);
|
486
724
|
return metadata;
|
487
725
|
};
|
488
726
|
get = function (it) {
|
489
|
-
return
|
727
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
490
728
|
};
|
491
729
|
has = function (it) {
|
492
|
-
return
|
730
|
+
return hasOwnProperty_1(it, STATE);
|
493
731
|
};
|
494
732
|
}
|
495
733
|
|
@@ -501,7 +739,24 @@
|
|
501
739
|
getterFor: getterFor
|
502
740
|
};
|
503
741
|
|
742
|
+
var FunctionPrototype = Function.prototype;
|
743
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
744
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
745
|
+
|
746
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
747
|
+
// additional protection from minified / mangled / dropped function names
|
748
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
749
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
750
|
+
|
751
|
+
var functionName = {
|
752
|
+
EXISTS: EXISTS,
|
753
|
+
PROPER: PROPER,
|
754
|
+
CONFIGURABLE: CONFIGURABLE
|
755
|
+
};
|
756
|
+
|
504
757
|
var redefine = createCommonjsModule(function (module) {
|
758
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
759
|
+
|
505
760
|
var getInternalState = internalState.get;
|
506
761
|
var enforceInternalState = internalState.enforce;
|
507
762
|
var TEMPLATE = String(String).split('String');
|
@@ -510,14 +765,18 @@
|
|
510
765
|
var unsafe = options ? !!options.unsafe : false;
|
511
766
|
var simple = options ? !!options.enumerable : false;
|
512
767
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
768
|
+
var name = options && options.name !== undefined ? options.name : key;
|
513
769
|
var state;
|
514
|
-
if (
|
515
|
-
if (
|
516
|
-
|
770
|
+
if (isCallable(value)) {
|
771
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
772
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
773
|
+
}
|
774
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
775
|
+
createNonEnumerableProperty(value, 'name', name);
|
517
776
|
}
|
518
777
|
state = enforceInternalState(value);
|
519
778
|
if (!state.source) {
|
520
|
-
state.source = TEMPLATE.join(typeof
|
779
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
521
780
|
}
|
522
781
|
}
|
523
782
|
if (O === global_1) {
|
@@ -533,54 +792,51 @@
|
|
533
792
|
else createNonEnumerableProperty(O, key, value);
|
534
793
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
535
794
|
})(Function.prototype, 'toString', function toString() {
|
536
|
-
return
|
795
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
537
796
|
});
|
538
797
|
});
|
539
798
|
|
540
|
-
var path = global_1;
|
541
|
-
|
542
|
-
var aFunction$1 = function (variable) {
|
543
|
-
return typeof variable == 'function' ? variable : undefined;
|
544
|
-
};
|
545
|
-
|
546
|
-
var getBuiltIn = function (namespace, method) {
|
547
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
548
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
549
|
-
};
|
550
|
-
|
551
799
|
var ceil = Math.ceil;
|
552
800
|
var floor = Math.floor;
|
553
801
|
|
554
|
-
// `
|
555
|
-
// https://tc39.es/ecma262/#sec-
|
556
|
-
var
|
557
|
-
|
802
|
+
// `ToIntegerOrInfinity` abstract operation
|
803
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
804
|
+
var toIntegerOrInfinity = function (argument) {
|
805
|
+
var number = +argument;
|
806
|
+
// eslint-disable-next-line no-self-compare -- safe
|
807
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
558
808
|
};
|
559
809
|
|
810
|
+
var max = Math.max;
|
560
811
|
var min$1 = Math.min;
|
561
812
|
|
813
|
+
// Helper for a popular repeating case of the spec:
|
814
|
+
// Let integer be ? ToInteger(index).
|
815
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
816
|
+
var toAbsoluteIndex = function (index, length) {
|
817
|
+
var integer = toIntegerOrInfinity(index);
|
818
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
819
|
+
};
|
820
|
+
|
821
|
+
var min = Math.min;
|
822
|
+
|
562
823
|
// `ToLength` abstract operation
|
563
824
|
// https://tc39.es/ecma262/#sec-tolength
|
564
825
|
var toLength = function (argument) {
|
565
|
-
return argument > 0 ? min
|
826
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
566
827
|
};
|
567
828
|
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
// Let integer be ? ToInteger(index).
|
573
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
574
|
-
var toAbsoluteIndex = function (index, length) {
|
575
|
-
var integer = toInteger(index);
|
576
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
829
|
+
// `LengthOfArrayLike` abstract operation
|
830
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
831
|
+
var lengthOfArrayLike = function (obj) {
|
832
|
+
return toLength(obj.length);
|
577
833
|
};
|
578
834
|
|
579
835
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
580
|
-
var createMethod$
|
836
|
+
var createMethod$2 = function (IS_INCLUDES) {
|
581
837
|
return function ($this, el, fromIndex) {
|
582
838
|
var O = toIndexedObject($this);
|
583
|
-
var length =
|
839
|
+
var length = lengthOfArrayLike(O);
|
584
840
|
var index = toAbsoluteIndex(fromIndex, length);
|
585
841
|
var value;
|
586
842
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -599,24 +855,26 @@
|
|
599
855
|
var arrayIncludes = {
|
600
856
|
// `Array.prototype.includes` method
|
601
857
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
602
|
-
includes: createMethod$
|
858
|
+
includes: createMethod$2(true),
|
603
859
|
// `Array.prototype.indexOf` method
|
604
860
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
605
|
-
indexOf: createMethod$
|
861
|
+
indexOf: createMethod$2(false)
|
606
862
|
};
|
607
863
|
|
608
864
|
var indexOf = arrayIncludes.indexOf;
|
609
865
|
|
610
866
|
|
867
|
+
var push$1 = functionUncurryThis([].push);
|
868
|
+
|
611
869
|
var objectKeysInternal = function (object, names) {
|
612
870
|
var O = toIndexedObject(object);
|
613
871
|
var i = 0;
|
614
872
|
var result = [];
|
615
873
|
var key;
|
616
|
-
for (key in O) !
|
874
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
617
875
|
// Don't enum bug & hidden keys
|
618
|
-
while (names.length > i) if (
|
619
|
-
~indexOf(result, key) ||
|
876
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
877
|
+
~indexOf(result, key) || push$1(result, key);
|
620
878
|
}
|
621
879
|
return result;
|
622
880
|
};
|
@@ -636,6 +894,7 @@
|
|
636
894
|
|
637
895
|
// `Object.getOwnPropertyNames` method
|
638
896
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
897
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
639
898
|
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
640
899
|
return objectKeysInternal(O, hiddenKeys);
|
641
900
|
};
|
@@ -644,26 +903,31 @@
|
|
644
903
|
f: f$1
|
645
904
|
};
|
646
905
|
|
906
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
647
907
|
var f = Object.getOwnPropertySymbols;
|
648
908
|
|
649
909
|
var objectGetOwnPropertySymbols = {
|
650
910
|
f: f
|
651
911
|
};
|
652
912
|
|
913
|
+
var concat = functionUncurryThis([].concat);
|
914
|
+
|
653
915
|
// all object keys, includes non-enumerable and symbols
|
654
916
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
655
917
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
656
918
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
657
|
-
return getOwnPropertySymbols ?
|
919
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
658
920
|
};
|
659
921
|
|
660
|
-
var copyConstructorProperties = function (target, source) {
|
922
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
661
923
|
var keys = ownKeys(source);
|
662
924
|
var defineProperty = objectDefineProperty.f;
|
663
925
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
664
926
|
for (var i = 0; i < keys.length; i++) {
|
665
927
|
var key = keys[i];
|
666
|
-
if (!
|
928
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
929
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
930
|
+
}
|
667
931
|
}
|
668
932
|
};
|
669
933
|
|
@@ -673,7 +937,7 @@
|
|
673
937
|
var value = data[normalize(feature)];
|
674
938
|
return value == POLYFILL ? true
|
675
939
|
: value == NATIVE ? false
|
676
|
-
:
|
940
|
+
: isCallable(detection) ? fails(detection)
|
677
941
|
: !!detection;
|
678
942
|
};
|
679
943
|
|
@@ -707,6 +971,7 @@
|
|
707
971
|
options.sham - add a flag to not completely full polyfills
|
708
972
|
options.enumerable - export as enumerable property
|
709
973
|
options.noTargetGet - prevent calling a getter on target
|
974
|
+
options.name - the .name of the function if it does not match the key
|
710
975
|
*/
|
711
976
|
var _export = function (options, source) {
|
712
977
|
var TARGET = options.target;
|
@@ -729,7 +994,7 @@
|
|
729
994
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
730
995
|
// contained in target
|
731
996
|
if (!FORCED && targetProperty !== undefined) {
|
732
|
-
if (typeof sourceProperty
|
997
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
733
998
|
copyConstructorProperties(sourceProperty, targetProperty);
|
734
999
|
}
|
735
1000
|
// add a flag to not completely full polyfills
|
@@ -743,86 +1008,117 @@
|
|
743
1008
|
|
744
1009
|
// `IsArray` abstract operation
|
745
1010
|
// https://tc39.es/ecma262/#sec-isarray
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
// `ToObject` abstract operation
|
751
|
-
// https://tc39.es/ecma262/#sec-toobject
|
752
|
-
var toObject = function (argument) {
|
753
|
-
return Object(requireObjectCoercible(argument));
|
1011
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
1012
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1013
|
+
return classofRaw(argument) == 'Array';
|
754
1014
|
};
|
755
1015
|
|
756
1016
|
var createProperty = function (object, key, value) {
|
757
|
-
var propertyKey =
|
1017
|
+
var propertyKey = toPropertyKey(key);
|
758
1018
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
759
1019
|
else object[propertyKey] = value;
|
760
1020
|
};
|
761
1021
|
|
762
|
-
var
|
1022
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1023
|
+
var test = {};
|
763
1024
|
|
764
|
-
|
1025
|
+
test[TO_STRING_TAG$1] = 'z';
|
765
1026
|
|
766
|
-
var
|
767
|
-
var versions = process && process.versions;
|
768
|
-
var v8 = versions && versions.v8;
|
769
|
-
var match, version;
|
1027
|
+
var toStringTagSupport = String(test) === '[object z]';
|
770
1028
|
|
771
|
-
|
772
|
-
|
773
|
-
version = match[0] + match[1];
|
774
|
-
} else if (engineUserAgent) {
|
775
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
776
|
-
if (!match || match[1] >= 74) {
|
777
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
778
|
-
if (match) version = match[1];
|
779
|
-
}
|
780
|
-
}
|
1029
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1030
|
+
var Object$1 = global_1.Object;
|
781
1031
|
|
782
|
-
|
1032
|
+
// ES3 wrong here
|
1033
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
783
1034
|
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
});
|
1035
|
+
// fallback for IE11 Script Access Denied error
|
1036
|
+
var tryGet = function (it, key) {
|
1037
|
+
try {
|
1038
|
+
return it[key];
|
1039
|
+
} catch (error) { /* empty */ }
|
1040
|
+
};
|
791
1041
|
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
1042
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1043
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1044
|
+
var O, tag, result;
|
1045
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1046
|
+
// @@toStringTag case
|
1047
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1048
|
+
// builtinTag case
|
1049
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1050
|
+
// ES3 arguments fallback
|
1051
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1052
|
+
};
|
796
1053
|
|
797
|
-
var
|
798
|
-
var
|
799
|
-
var
|
1054
|
+
var noop = function () { /* empty */ };
|
1055
|
+
var empty = [];
|
1056
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1057
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1058
|
+
var exec$1 = functionUncurryThis(constructorRegExp.exec);
|
1059
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
800
1060
|
|
801
|
-
var
|
802
|
-
if (!
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
}
|
1061
|
+
var isConstructorModern = function isConstructor(argument) {
|
1062
|
+
if (!isCallable(argument)) return false;
|
1063
|
+
try {
|
1064
|
+
construct(noop, empty, argument);
|
1065
|
+
return true;
|
1066
|
+
} catch (error) {
|
1067
|
+
return false;
|
1068
|
+
}
|
1069
|
+
};
|
1070
|
+
|
1071
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1072
|
+
if (!isCallable(argument)) return false;
|
1073
|
+
switch (classof(argument)) {
|
1074
|
+
case 'AsyncFunction':
|
1075
|
+
case 'GeneratorFunction':
|
1076
|
+
case 'AsyncGeneratorFunction': return false;
|
1077
|
+
}
|
1078
|
+
try {
|
1079
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1080
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1081
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1082
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
1083
|
+
} catch (error) {
|
1084
|
+
return true;
|
1085
|
+
}
|
809
1086
|
};
|
810
1087
|
|
1088
|
+
isConstructorLegacy.sham = true;
|
1089
|
+
|
1090
|
+
// `IsConstructor` abstract operation
|
1091
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1092
|
+
var isConstructor = !construct || fails(function () {
|
1093
|
+
var called;
|
1094
|
+
return isConstructorModern(isConstructorModern.call)
|
1095
|
+
|| !isConstructorModern(Object)
|
1096
|
+
|| !isConstructorModern(function () { called = true; })
|
1097
|
+
|| called;
|
1098
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1099
|
+
|
811
1100
|
var SPECIES$1 = wellKnownSymbol('species');
|
1101
|
+
var Array$1 = global_1.Array;
|
812
1102
|
|
813
|
-
// `ArraySpeciesCreate` abstract operation
|
1103
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
814
1104
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
815
|
-
var
|
1105
|
+
var arraySpeciesConstructor = function (originalArray) {
|
816
1106
|
var C;
|
817
1107
|
if (isArray(originalArray)) {
|
818
1108
|
C = originalArray.constructor;
|
819
1109
|
// cross-realm fallback
|
820
|
-
if (
|
1110
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
821
1111
|
else if (isObject(C)) {
|
822
1112
|
C = C[SPECIES$1];
|
823
1113
|
if (C === null) C = undefined;
|
824
1114
|
}
|
825
|
-
} return
|
1115
|
+
} return C === undefined ? Array$1 : C;
|
1116
|
+
};
|
1117
|
+
|
1118
|
+
// `ArraySpeciesCreate` abstract operation
|
1119
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1120
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1121
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
826
1122
|
};
|
827
1123
|
|
828
1124
|
var SPECIES = wellKnownSymbol('species');
|
@@ -844,6 +1140,7 @@
|
|
844
1140
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
845
1141
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
846
1142
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1143
|
+
var TypeError$1 = global_1.TypeError;
|
847
1144
|
|
848
1145
|
// We can't use this feature detection in V8 since it causes
|
849
1146
|
// deoptimization and serious performance degradation
|
@@ -862,12 +1159,12 @@
|
|
862
1159
|
return spreadable !== undefined ? !!spreadable : isArray(O);
|
863
1160
|
};
|
864
1161
|
|
865
|
-
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
1162
|
+
var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
866
1163
|
|
867
1164
|
// `Array.prototype.concat` method
|
868
1165
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
869
1166
|
// with adding support of @@isConcatSpreadable and @@species
|
870
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1167
|
+
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
871
1168
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
872
1169
|
concat: function concat(arg) {
|
873
1170
|
var O = toObject(this);
|
@@ -877,11 +1174,11 @@
|
|
877
1174
|
for (i = -1, length = arguments.length; i < length; i++) {
|
878
1175
|
E = i === -1 ? O : arguments[i];
|
879
1176
|
if (isConcatSpreadable(E)) {
|
880
|
-
len =
|
881
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1177
|
+
len = lengthOfArrayLike(E);
|
1178
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
882
1179
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
883
1180
|
} else {
|
884
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1181
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
885
1182
|
createProperty(A, n++, E);
|
886
1183
|
}
|
887
1184
|
}
|
@@ -890,54 +1187,35 @@
|
|
890
1187
|
}
|
891
1188
|
});
|
892
1189
|
|
893
|
-
var
|
894
|
-
if (typeof it != 'function') {
|
895
|
-
throw TypeError(String(it) + ' is not a function');
|
896
|
-
} return it;
|
897
|
-
};
|
1190
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
898
1191
|
|
899
1192
|
// optional / simple context binding
|
900
|
-
var functionBindContext = function (fn, that
|
901
|
-
|
902
|
-
|
903
|
-
switch (length) {
|
904
|
-
case 0: return function () {
|
905
|
-
return fn.call(that);
|
906
|
-
};
|
907
|
-
case 1: return function (a) {
|
908
|
-
return fn.call(that, a);
|
909
|
-
};
|
910
|
-
case 2: return function (a, b) {
|
911
|
-
return fn.call(that, a, b);
|
912
|
-
};
|
913
|
-
case 3: return function (a, b, c) {
|
914
|
-
return fn.call(that, a, b, c);
|
915
|
-
};
|
916
|
-
}
|
917
|
-
return function (/* ...args */) {
|
1193
|
+
var functionBindContext = function (fn, that) {
|
1194
|
+
aCallable(fn);
|
1195
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
918
1196
|
return fn.apply(that, arguments);
|
919
1197
|
};
|
920
1198
|
};
|
921
1199
|
|
922
|
-
var push = [].push;
|
1200
|
+
var push = functionUncurryThis([].push);
|
923
1201
|
|
924
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
925
|
-
var createMethod = function (TYPE) {
|
1202
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1203
|
+
var createMethod$1 = function (TYPE) {
|
926
1204
|
var IS_MAP = TYPE == 1;
|
927
1205
|
var IS_FILTER = TYPE == 2;
|
928
1206
|
var IS_SOME = TYPE == 3;
|
929
1207
|
var IS_EVERY = TYPE == 4;
|
930
1208
|
var IS_FIND_INDEX = TYPE == 6;
|
931
|
-
var
|
1209
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
932
1210
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
933
1211
|
return function ($this, callbackfn, that, specificCreate) {
|
934
1212
|
var O = toObject($this);
|
935
1213
|
var self = indexedObject(O);
|
936
|
-
var boundFunction = functionBindContext(callbackfn, that
|
937
|
-
var length =
|
1214
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1215
|
+
var length = lengthOfArrayLike(self);
|
938
1216
|
var index = 0;
|
939
1217
|
var create = specificCreate || arraySpeciesCreate;
|
940
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1218
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
941
1219
|
var value, result;
|
942
1220
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
943
1221
|
value = self[index];
|
@@ -948,10 +1226,10 @@
|
|
948
1226
|
case 3: return true; // some
|
949
1227
|
case 5: return value; // find
|
950
1228
|
case 6: return index; // findIndex
|
951
|
-
case 2: push
|
1229
|
+
case 2: push(target, value); // filter
|
952
1230
|
} else switch (TYPE) {
|
953
1231
|
case 4: return false; // every
|
954
|
-
case 7: push
|
1232
|
+
case 7: push(target, value); // filterReject
|
955
1233
|
}
|
956
1234
|
}
|
957
1235
|
}
|
@@ -962,28 +1240,28 @@
|
|
962
1240
|
var arrayIteration = {
|
963
1241
|
// `Array.prototype.forEach` method
|
964
1242
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
965
|
-
forEach: createMethod(0),
|
1243
|
+
forEach: createMethod$1(0),
|
966
1244
|
// `Array.prototype.map` method
|
967
1245
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
968
|
-
map: createMethod(1),
|
1246
|
+
map: createMethod$1(1),
|
969
1247
|
// `Array.prototype.filter` method
|
970
1248
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
971
|
-
filter: createMethod(2),
|
1249
|
+
filter: createMethod$1(2),
|
972
1250
|
// `Array.prototype.some` method
|
973
1251
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
974
|
-
some: createMethod(3),
|
1252
|
+
some: createMethod$1(3),
|
975
1253
|
// `Array.prototype.every` method
|
976
1254
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
977
|
-
every: createMethod(4),
|
1255
|
+
every: createMethod$1(4),
|
978
1256
|
// `Array.prototype.find` method
|
979
1257
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
980
|
-
find: createMethod(5),
|
1258
|
+
find: createMethod$1(5),
|
981
1259
|
// `Array.prototype.findIndex` method
|
982
1260
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
983
|
-
findIndex: createMethod(6),
|
984
|
-
// `Array.prototype.
|
1261
|
+
findIndex: createMethod$1(6),
|
1262
|
+
// `Array.prototype.filterReject` method
|
985
1263
|
// https://github.com/tc39/proposal-array-filtering
|
986
|
-
|
1264
|
+
filterReject: createMethod$1(7)
|
987
1265
|
};
|
988
1266
|
|
989
1267
|
var $filter = arrayIteration.filter;
|
@@ -1000,15 +1278,27 @@
|
|
1000
1278
|
}
|
1001
1279
|
});
|
1002
1280
|
|
1281
|
+
// `Object.prototype.toString` method implementation
|
1282
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1283
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1284
|
+
return '[object ' + classof(this) + ']';
|
1285
|
+
};
|
1286
|
+
|
1287
|
+
// `Object.prototype.toString` method
|
1288
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1289
|
+
if (!toStringTagSupport) {
|
1290
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1291
|
+
}
|
1292
|
+
|
1003
1293
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1004
1294
|
var method = [][METHOD_NAME];
|
1005
1295
|
return !!method && fails(function () {
|
1006
|
-
// eslint-disable-next-line no-useless-call
|
1007
|
-
method.call(null, argument || function () {
|
1296
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1297
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1008
1298
|
});
|
1009
1299
|
};
|
1010
1300
|
|
1011
|
-
var
|
1301
|
+
var un$Join = functionUncurryThis([].join);
|
1012
1302
|
|
1013
1303
|
var ES3_STRINGS = indexedObject != Object;
|
1014
1304
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
@@ -1017,16 +1307,79 @@
|
|
1017
1307
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1018
1308
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1019
1309
|
join: function join(separator) {
|
1020
|
-
return
|
1310
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1021
1311
|
}
|
1022
1312
|
});
|
1023
1313
|
|
1314
|
+
var String$1 = global_1.String;
|
1315
|
+
|
1316
|
+
var toString_1 = function (argument) {
|
1317
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1318
|
+
return String$1(argument);
|
1319
|
+
};
|
1320
|
+
|
1321
|
+
// a string of all valid unicode whitespaces
|
1322
|
+
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1323
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1324
|
+
|
1325
|
+
var replace = functionUncurryThis(''.replace);
|
1326
|
+
var whitespace = '[' + whitespaces + ']';
|
1327
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1328
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
1329
|
+
|
1330
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1331
|
+
var createMethod = function (TYPE) {
|
1332
|
+
return function ($this) {
|
1333
|
+
var string = toString_1(requireObjectCoercible($this));
|
1334
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
1335
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
1336
|
+
return string;
|
1337
|
+
};
|
1338
|
+
};
|
1339
|
+
|
1340
|
+
var stringTrim = {
|
1341
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
1342
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
1343
|
+
start: createMethod(1),
|
1344
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
1345
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
1346
|
+
end: createMethod(2),
|
1347
|
+
// `String.prototype.trim` method
|
1348
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
1349
|
+
trim: createMethod(3)
|
1350
|
+
};
|
1351
|
+
|
1352
|
+
var trim = stringTrim.trim;
|
1353
|
+
|
1354
|
+
|
1355
|
+
var $parseInt = global_1.parseInt;
|
1356
|
+
var Symbol$1 = global_1.Symbol;
|
1357
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
1358
|
+
var hex = /^[+-]?0x/i;
|
1359
|
+
var exec = functionUncurryThis(hex.exec);
|
1360
|
+
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
1361
|
+
// MS Edge 18- broken with boxed symbols
|
1362
|
+
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
1363
|
+
|
1364
|
+
// `parseInt` method
|
1365
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1366
|
+
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
1367
|
+
var S = trim(toString_1(string));
|
1368
|
+
return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
1369
|
+
} : $parseInt;
|
1370
|
+
|
1371
|
+
// `parseInt` method
|
1372
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1373
|
+
_export({ global: true, forced: parseInt != numberParseInt }, {
|
1374
|
+
parseInt: numberParseInt
|
1375
|
+
});
|
1376
|
+
|
1024
1377
|
/**
|
1025
1378
|
* @author: YL
|
1026
1379
|
* @update: zhixin wen <wenzhixin2010@gmail.com>
|
1027
1380
|
*/
|
1028
1381
|
|
1029
|
-
$__default[
|
1382
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1030
1383
|
treeEnable: false,
|
1031
1384
|
treeShowField: null,
|
1032
1385
|
idField: 'id',
|
@@ -1034,7 +1387,7 @@
|
|
1034
1387
|
rootParentId: null
|
1035
1388
|
});
|
1036
1389
|
|
1037
|
-
$__default[
|
1390
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1038
1391
|
_inherits(_class, _$$BootstrapTable);
|
1039
1392
|
|
1040
1393
|
var _super = _createSuper(_class);
|
@@ -1120,7 +1473,7 @@
|
|
1120
1473
|
|
1121
1474
|
for (var i = 0; i <= len; i++) {
|
1122
1475
|
var node = nodes[i];
|
1123
|
-
var defaultItem = $__default[
|
1476
|
+
var defaultItem = $__default["default"].extend(true, {}, item);
|
1124
1477
|
node._level = defaultItem._level + 1;
|
1125
1478
|
node._parent = defaultItem;
|
1126
1479
|
|
@@ -1138,7 +1491,7 @@
|
|
1138
1491
|
return res;
|
1139
1492
|
};
|
1140
1493
|
|
1141
|
-
this.initTr(node, $__default[
|
1494
|
+
this.initTr(node, $__default["default"].inArray(node, data), data, parentDom);
|
1142
1495
|
}
|
1143
1496
|
}
|
1144
1497
|
}, {
|
@@ -1147,7 +1500,9 @@
|
|
1147
1500
|
var _this2 = this;
|
1148
1501
|
|
1149
1502
|
if (this.treeEnable) {
|
1150
|
-
|
1503
|
+
var parentId = parseInt(item[this.options.parentIdField], 10);
|
1504
|
+
|
1505
|
+
if (this.options.rootParentId === parentId || !parentId) {
|
1151
1506
|
if (item._level === undefined) {
|
1152
1507
|
item._level = 0;
|
1153
1508
|
} // jquery.treegrid.js
|
@@ -1186,6 +1541,6 @@
|
|
1186
1541
|
}]);
|
1187
1542
|
|
1188
1543
|
return _class;
|
1189
|
-
}($__default[
|
1544
|
+
}($__default["default"].BootstrapTable);
|
1190
1545
|
|
1191
|
-
}))
|
1546
|
+
}));
|