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
@@ -1,27 +1,11 @@
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
|
13
|
-
return obj;
|
14
|
-
}
|
15
|
-
|
16
1
|
function ownKeys$1(object, enumerableOnly) {
|
17
2
|
var keys = Object.keys(object);
|
18
3
|
|
19
4
|
if (Object.getOwnPropertySymbols) {
|
20
5
|
var symbols = Object.getOwnPropertySymbols(object);
|
21
|
-
|
6
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
22
7
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
23
|
-
});
|
24
|
-
keys.push.apply(keys, symbols);
|
8
|
+
})), keys.push.apply(keys, symbols);
|
25
9
|
}
|
26
10
|
|
27
11
|
return keys;
|
@@ -29,24 +13,32 @@ function ownKeys$1(object, enumerableOnly) {
|
|
29
13
|
|
30
14
|
function _objectSpread2(target) {
|
31
15
|
for (var i = 1; i < arguments.length; i++) {
|
32
|
-
var source = arguments[i]
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
39
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
40
|
-
} else {
|
41
|
-
ownKeys$1(Object(source)).forEach(function (key) {
|
42
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
43
|
-
});
|
44
|
-
}
|
16
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
17
|
+
i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
|
18
|
+
_defineProperty(target, key, source[key]);
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
|
20
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
21
|
+
});
|
45
22
|
}
|
46
23
|
|
47
24
|
return target;
|
48
25
|
}
|
49
26
|
|
27
|
+
function _defineProperty(obj, key, value) {
|
28
|
+
if (key in obj) {
|
29
|
+
Object.defineProperty(obj, key, {
|
30
|
+
value: value,
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true
|
34
|
+
});
|
35
|
+
} else {
|
36
|
+
obj[key] = value;
|
37
|
+
}
|
38
|
+
|
39
|
+
return obj;
|
40
|
+
}
|
41
|
+
|
50
42
|
function _toConsumableArray(arr) {
|
51
43
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
52
44
|
}
|
@@ -56,7 +48,7 @@ function _arrayWithoutHoles(arr) {
|
|
56
48
|
}
|
57
49
|
|
58
50
|
function _iterableToArray(iter) {
|
59
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
51
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
60
52
|
}
|
61
53
|
|
62
54
|
function _unsupportedIterableToArray(o, minLen) {
|
@@ -81,9 +73,9 @@ function _nonIterableSpread() {
|
|
81
73
|
}
|
82
74
|
|
83
75
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
84
|
-
var it;
|
76
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
85
77
|
|
86
|
-
if (
|
78
|
+
if (!it) {
|
87
79
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
88
80
|
if (it) o = it;
|
89
81
|
var i = 0;
|
@@ -116,7 +108,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
116
108
|
err;
|
117
109
|
return {
|
118
110
|
s: function () {
|
119
|
-
it =
|
111
|
+
it = it.call(o);
|
120
112
|
},
|
121
113
|
n: function () {
|
122
114
|
var step = it.next();
|
@@ -149,7 +141,7 @@ var check = function (it) {
|
|
149
141
|
|
150
142
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
151
143
|
var global_1 =
|
152
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
144
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
153
145
|
check(typeof globalThis == 'object' && globalThis) ||
|
154
146
|
check(typeof window == 'object' && window) ||
|
155
147
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -168,12 +160,25 @@ var fails = function (exec) {
|
|
168
160
|
|
169
161
|
// Detect IE8's incomplete defineProperty implementation
|
170
162
|
var descriptors = !fails(function () {
|
171
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
163
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
172
164
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
173
165
|
});
|
174
166
|
|
167
|
+
var functionBindNative = !fails(function () {
|
168
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
169
|
+
var test = (function () { /* empty */ }).bind();
|
170
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
171
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
172
|
+
});
|
173
|
+
|
174
|
+
var call$2 = Function.prototype.call;
|
175
|
+
|
176
|
+
var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
|
177
|
+
return call$2.apply(call$2, arguments);
|
178
|
+
};
|
179
|
+
|
175
180
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
176
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
181
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
177
182
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
178
183
|
|
179
184
|
// Nashorn ~ JDK8 bug
|
@@ -181,13 +186,13 @@ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1:
|
|
181
186
|
|
182
187
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
183
188
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
184
|
-
var f$
|
189
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
185
190
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
186
191
|
return !!descriptor && descriptor.enumerable;
|
187
192
|
} : $propertyIsEnumerable;
|
188
193
|
|
189
194
|
var objectPropertyIsEnumerable = {
|
190
|
-
f: f$
|
195
|
+
f: f$5
|
191
196
|
};
|
192
197
|
|
193
198
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -199,27 +204,44 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
199
204
|
};
|
200
205
|
};
|
201
206
|
|
202
|
-
var
|
207
|
+
var FunctionPrototype$2 = Function.prototype;
|
208
|
+
var bind = FunctionPrototype$2.bind;
|
209
|
+
var call$1 = FunctionPrototype$2.call;
|
210
|
+
var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
|
211
|
+
|
212
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
213
|
+
return fn && uncurryThis(fn);
|
214
|
+
} : function (fn) {
|
215
|
+
return fn && function () {
|
216
|
+
return call$1.apply(fn, arguments);
|
217
|
+
};
|
218
|
+
};
|
219
|
+
|
220
|
+
var toString$1 = functionUncurryThis({}.toString);
|
221
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
203
222
|
|
204
223
|
var classofRaw = function (it) {
|
205
|
-
return toString
|
224
|
+
return stringSlice$4(toString$1(it), 8, -1);
|
206
225
|
};
|
207
226
|
|
208
|
-
var
|
227
|
+
var Object$4 = global_1.Object;
|
228
|
+
var split = functionUncurryThis(''.split);
|
209
229
|
|
210
230
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
211
231
|
var indexedObject = fails(function () {
|
212
232
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
213
233
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
214
|
-
return !Object('z').propertyIsEnumerable(0);
|
234
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
215
235
|
}) ? function (it) {
|
216
|
-
return classofRaw(it) == 'String' ? split
|
217
|
-
} : Object;
|
236
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
237
|
+
} : Object$4;
|
238
|
+
|
239
|
+
var TypeError$9 = global_1.TypeError;
|
218
240
|
|
219
241
|
// `RequireObjectCoercible` abstract operation
|
220
242
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
221
243
|
var requireObjectCoercible = function (it) {
|
222
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
244
|
+
if (it == undefined) throw TypeError$9("Can't call method on " + it);
|
223
245
|
return it;
|
224
246
|
};
|
225
247
|
|
@@ -231,88 +253,310 @@ var toIndexedObject = function (it) {
|
|
231
253
|
return indexedObject(requireObjectCoercible(it));
|
232
254
|
};
|
233
255
|
|
256
|
+
// `IsCallable` abstract operation
|
257
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
258
|
+
var isCallable = function (argument) {
|
259
|
+
return typeof argument == 'function';
|
260
|
+
};
|
261
|
+
|
234
262
|
var isObject = function (it) {
|
235
|
-
return typeof it
|
263
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
236
264
|
};
|
237
265
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
var
|
243
|
-
|
266
|
+
var aFunction = function (argument) {
|
267
|
+
return isCallable(argument) ? argument : undefined;
|
268
|
+
};
|
269
|
+
|
270
|
+
var getBuiltIn = function (namespace, method) {
|
271
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
272
|
+
};
|
273
|
+
|
274
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
275
|
+
|
276
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
277
|
+
|
278
|
+
var process = global_1.process;
|
279
|
+
var Deno = global_1.Deno;
|
280
|
+
var versions = process && process.versions || Deno && Deno.version;
|
281
|
+
var v8 = versions && versions.v8;
|
282
|
+
var match, version;
|
283
|
+
|
284
|
+
if (v8) {
|
285
|
+
match = v8.split('.');
|
286
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
287
|
+
// but their correct versions are not interesting for us
|
288
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
289
|
+
}
|
290
|
+
|
291
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
292
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
293
|
+
if (!version && engineUserAgent) {
|
294
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
295
|
+
if (!match || match[1] >= 74) {
|
296
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
297
|
+
if (match) version = +match[1];
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
var engineV8Version = version;
|
302
|
+
|
303
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
308
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
309
|
+
var symbol = Symbol();
|
310
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
311
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
312
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
313
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
314
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
315
|
+
});
|
316
|
+
|
317
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
318
|
+
|
319
|
+
|
320
|
+
var useSymbolAsUid = nativeSymbol
|
321
|
+
&& !Symbol.sham
|
322
|
+
&& typeof Symbol.iterator == 'symbol';
|
323
|
+
|
324
|
+
var Object$3 = global_1.Object;
|
325
|
+
|
326
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
327
|
+
return typeof it == 'symbol';
|
328
|
+
} : function (it) {
|
329
|
+
var $Symbol = getBuiltIn('Symbol');
|
330
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
331
|
+
};
|
332
|
+
|
333
|
+
var String$3 = global_1.String;
|
334
|
+
|
335
|
+
var tryToString = function (argument) {
|
336
|
+
try {
|
337
|
+
return String$3(argument);
|
338
|
+
} catch (error) {
|
339
|
+
return 'Object';
|
340
|
+
}
|
341
|
+
};
|
342
|
+
|
343
|
+
var TypeError$8 = global_1.TypeError;
|
344
|
+
|
345
|
+
// `Assert: IsCallable(argument) is true`
|
346
|
+
var aCallable = function (argument) {
|
347
|
+
if (isCallable(argument)) return argument;
|
348
|
+
throw TypeError$8(tryToString(argument) + ' is not a function');
|
349
|
+
};
|
350
|
+
|
351
|
+
// `GetMethod` abstract operation
|
352
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
353
|
+
var getMethod = function (V, P) {
|
354
|
+
var func = V[P];
|
355
|
+
return func == null ? undefined : aCallable(func);
|
356
|
+
};
|
357
|
+
|
358
|
+
var TypeError$7 = global_1.TypeError;
|
359
|
+
|
360
|
+
// `OrdinaryToPrimitive` abstract operation
|
361
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
362
|
+
var ordinaryToPrimitive = function (input, pref) {
|
244
363
|
var fn, val;
|
245
|
-
if (
|
246
|
-
if (
|
247
|
-
if (
|
248
|
-
throw TypeError("Can't convert object to primitive value");
|
364
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
365
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
366
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
367
|
+
throw TypeError$7("Can't convert object to primitive value");
|
249
368
|
};
|
250
369
|
|
251
|
-
|
370
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
371
|
+
var defineProperty = Object.defineProperty;
|
252
372
|
|
253
|
-
var
|
254
|
-
|
373
|
+
var setGlobal = function (key, value) {
|
374
|
+
try {
|
375
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
376
|
+
} catch (error) {
|
377
|
+
global_1[key] = value;
|
378
|
+
} return value;
|
255
379
|
};
|
256
380
|
|
257
|
-
var
|
381
|
+
var SHARED = '__core-js_shared__';
|
382
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
383
|
+
|
384
|
+
var sharedStore = store$1;
|
385
|
+
|
386
|
+
var shared = createCommonjsModule(function (module) {
|
387
|
+
(module.exports = function (key, value) {
|
388
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
389
|
+
})('versions', []).push({
|
390
|
+
version: '3.22.4',
|
391
|
+
mode: 'global',
|
392
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
393
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
394
|
+
source: 'https://github.com/zloirock/core-js'
|
395
|
+
});
|
396
|
+
});
|
397
|
+
|
398
|
+
var Object$2 = global_1.Object;
|
399
|
+
|
400
|
+
// `ToObject` abstract operation
|
401
|
+
// https://tc39.es/ecma262/#sec-toobject
|
402
|
+
var toObject = function (argument) {
|
403
|
+
return Object$2(requireObjectCoercible(argument));
|
404
|
+
};
|
405
|
+
|
406
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
407
|
+
|
408
|
+
// `HasOwnProperty` abstract operation
|
409
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
410
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
411
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
412
|
+
return hasOwnProperty(toObject(it), key);
|
413
|
+
};
|
414
|
+
|
415
|
+
var id = 0;
|
416
|
+
var postfix = Math.random();
|
417
|
+
var toString = functionUncurryThis(1.0.toString);
|
418
|
+
|
419
|
+
var uid = function (key) {
|
420
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
421
|
+
};
|
422
|
+
|
423
|
+
var WellKnownSymbolsStore = shared('wks');
|
424
|
+
var Symbol$1 = global_1.Symbol;
|
425
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
426
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
427
|
+
|
428
|
+
var wellKnownSymbol = function (name) {
|
429
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
430
|
+
var description = 'Symbol.' + name;
|
431
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
432
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
433
|
+
} else if (useSymbolAsUid && symbolFor) {
|
434
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
435
|
+
} else {
|
436
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
437
|
+
}
|
438
|
+
} return WellKnownSymbolsStore[name];
|
439
|
+
};
|
440
|
+
|
441
|
+
var TypeError$6 = global_1.TypeError;
|
442
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
443
|
+
|
444
|
+
// `ToPrimitive` abstract operation
|
445
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
446
|
+
var toPrimitive = function (input, pref) {
|
447
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
448
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
449
|
+
var result;
|
450
|
+
if (exoticToPrim) {
|
451
|
+
if (pref === undefined) pref = 'default';
|
452
|
+
result = functionCall(exoticToPrim, input, pref);
|
453
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
454
|
+
throw TypeError$6("Can't convert object to primitive value");
|
455
|
+
}
|
456
|
+
if (pref === undefined) pref = 'number';
|
457
|
+
return ordinaryToPrimitive(input, pref);
|
458
|
+
};
|
459
|
+
|
460
|
+
// `ToPropertyKey` abstract operation
|
461
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
462
|
+
var toPropertyKey = function (argument) {
|
463
|
+
var key = toPrimitive(argument, 'string');
|
464
|
+
return isSymbol(key) ? key : key + '';
|
465
|
+
};
|
466
|
+
|
467
|
+
var document$1 = global_1.document;
|
258
468
|
// typeof document.createElement is 'object' in old IE
|
259
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
469
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
260
470
|
|
261
471
|
var documentCreateElement = function (it) {
|
262
|
-
return EXISTS ? document.createElement(it) : {};
|
472
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
263
473
|
};
|
264
474
|
|
265
|
-
//
|
475
|
+
// Thanks to IE8 for its funny defineProperty
|
266
476
|
var ie8DomDefine = !descriptors && !fails(function () {
|
267
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
477
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
268
478
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
269
479
|
get: function () { return 7; }
|
270
480
|
}).a != 7;
|
271
481
|
});
|
272
482
|
|
273
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
274
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
483
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
484
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
275
485
|
|
276
486
|
// `Object.getOwnPropertyDescriptor` method
|
277
487
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
278
|
-
var f$
|
488
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
279
489
|
O = toIndexedObject(O);
|
280
|
-
P =
|
490
|
+
P = toPropertyKey(P);
|
281
491
|
if (ie8DomDefine) try {
|
282
|
-
return $getOwnPropertyDescriptor(O, P);
|
492
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
283
493
|
} catch (error) { /* empty */ }
|
284
|
-
if (
|
494
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
285
495
|
};
|
286
496
|
|
287
497
|
var objectGetOwnPropertyDescriptor = {
|
288
|
-
f: f$
|
498
|
+
f: f$4
|
289
499
|
};
|
290
500
|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
501
|
+
// V8 ~ Chrome 36-
|
502
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
503
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
504
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
505
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
506
|
+
value: 42,
|
507
|
+
writable: false
|
508
|
+
}).prototype != 42;
|
509
|
+
});
|
510
|
+
|
511
|
+
var String$2 = global_1.String;
|
512
|
+
var TypeError$5 = global_1.TypeError;
|
513
|
+
|
514
|
+
// `Assert: Type(argument) is Object`
|
515
|
+
var anObject = function (argument) {
|
516
|
+
if (isObject(argument)) return argument;
|
517
|
+
throw TypeError$5(String$2(argument) + ' is not an object');
|
295
518
|
};
|
296
519
|
|
297
|
-
|
520
|
+
var TypeError$4 = global_1.TypeError;
|
521
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
298
522
|
var $defineProperty = Object.defineProperty;
|
523
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
524
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
525
|
+
var ENUMERABLE = 'enumerable';
|
526
|
+
var CONFIGURABLE$1 = 'configurable';
|
527
|
+
var WRITABLE = 'writable';
|
299
528
|
|
300
529
|
// `Object.defineProperty` method
|
301
530
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
302
|
-
var f$
|
531
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
303
532
|
anObject(O);
|
304
|
-
P =
|
533
|
+
P = toPropertyKey(P);
|
534
|
+
anObject(Attributes);
|
535
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
536
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
537
|
+
if (current && current[WRITABLE]) {
|
538
|
+
O[P] = Attributes.value;
|
539
|
+
Attributes = {
|
540
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
541
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
542
|
+
writable: false
|
543
|
+
};
|
544
|
+
}
|
545
|
+
} return $defineProperty(O, P, Attributes);
|
546
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
547
|
+
anObject(O);
|
548
|
+
P = toPropertyKey(P);
|
305
549
|
anObject(Attributes);
|
306
550
|
if (ie8DomDefine) try {
|
307
551
|
return $defineProperty(O, P, Attributes);
|
308
552
|
} catch (error) { /* empty */ }
|
309
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
553
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
|
310
554
|
if ('value' in Attributes) O[P] = Attributes.value;
|
311
555
|
return O;
|
312
556
|
};
|
313
557
|
|
314
558
|
var objectDefineProperty = {
|
315
|
-
f: f$
|
559
|
+
f: f$3
|
316
560
|
};
|
317
561
|
|
318
562
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -322,25 +566,27 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
322
566
|
return object;
|
323
567
|
};
|
324
568
|
|
325
|
-
var
|
326
|
-
|
327
|
-
|
328
|
-
} catch (error) {
|
329
|
-
global_1[key] = value;
|
330
|
-
} return value;
|
331
|
-
};
|
569
|
+
var FunctionPrototype$1 = Function.prototype;
|
570
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
571
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
332
572
|
|
333
|
-
var
|
334
|
-
|
573
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
574
|
+
// additional protection from minified / mangled / dropped function names
|
575
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
576
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
335
577
|
|
336
|
-
var
|
578
|
+
var functionName = {
|
579
|
+
EXISTS: EXISTS,
|
580
|
+
PROPER: PROPER,
|
581
|
+
CONFIGURABLE: CONFIGURABLE
|
582
|
+
};
|
337
583
|
|
338
|
-
var functionToString = Function.toString;
|
584
|
+
var functionToString = functionUncurryThis(Function.toString);
|
339
585
|
|
340
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
341
|
-
if (
|
586
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
587
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
342
588
|
sharedStore.inspectSource = function (it) {
|
343
|
-
return functionToString
|
589
|
+
return functionToString(it);
|
344
590
|
};
|
345
591
|
}
|
346
592
|
|
@@ -348,24 +594,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
348
594
|
|
349
595
|
var WeakMap$1 = global_1.WeakMap;
|
350
596
|
|
351
|
-
var nativeWeakMap =
|
352
|
-
|
353
|
-
var shared = createCommonjsModule(function (module) {
|
354
|
-
(module.exports = function (key, value) {
|
355
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
356
|
-
})('versions', []).push({
|
357
|
-
version: '3.10.1',
|
358
|
-
mode: 'global',
|
359
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
360
|
-
});
|
361
|
-
});
|
362
|
-
|
363
|
-
var id = 0;
|
364
|
-
var postfix = Math.random();
|
365
|
-
|
366
|
-
var uid = function (key) {
|
367
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
368
|
-
};
|
597
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
369
598
|
|
370
599
|
var keys = shared('keys');
|
371
600
|
|
@@ -375,6 +604,8 @@ var sharedKey = function (key) {
|
|
375
604
|
|
376
605
|
var hiddenKeys$1 = {};
|
377
606
|
|
607
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
608
|
+
var TypeError$3 = global_1.TypeError;
|
378
609
|
var WeakMap = global_1.WeakMap;
|
379
610
|
var set, get, has;
|
380
611
|
|
@@ -386,40 +617,42 @@ var getterFor = function (TYPE) {
|
|
386
617
|
return function (it) {
|
387
618
|
var state;
|
388
619
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
389
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
620
|
+
throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
|
390
621
|
} return state;
|
391
622
|
};
|
392
623
|
};
|
393
624
|
|
394
|
-
if (nativeWeakMap) {
|
625
|
+
if (nativeWeakMap || sharedStore.state) {
|
395
626
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
396
|
-
var wmget = store.get;
|
397
|
-
var wmhas = store.has;
|
398
|
-
var wmset = store.set;
|
627
|
+
var wmget = functionUncurryThis(store.get);
|
628
|
+
var wmhas = functionUncurryThis(store.has);
|
629
|
+
var wmset = functionUncurryThis(store.set);
|
399
630
|
set = function (it, metadata) {
|
631
|
+
if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
400
632
|
metadata.facade = it;
|
401
|
-
wmset
|
633
|
+
wmset(store, it, metadata);
|
402
634
|
return metadata;
|
403
635
|
};
|
404
636
|
get = function (it) {
|
405
|
-
return wmget
|
637
|
+
return wmget(store, it) || {};
|
406
638
|
};
|
407
639
|
has = function (it) {
|
408
|
-
return wmhas
|
640
|
+
return wmhas(store, it);
|
409
641
|
};
|
410
642
|
} else {
|
411
643
|
var STATE = sharedKey('state');
|
412
644
|
hiddenKeys$1[STATE] = true;
|
413
645
|
set = function (it, metadata) {
|
646
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
414
647
|
metadata.facade = it;
|
415
648
|
createNonEnumerableProperty(it, STATE, metadata);
|
416
649
|
return metadata;
|
417
650
|
};
|
418
651
|
get = function (it) {
|
419
|
-
return
|
652
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
420
653
|
};
|
421
654
|
has = function (it) {
|
422
|
-
return
|
655
|
+
return hasOwnProperty_1(it, STATE);
|
423
656
|
};
|
424
657
|
}
|
425
658
|
|
@@ -431,29 +664,56 @@ var internalState = {
|
|
431
664
|
getterFor: getterFor
|
432
665
|
};
|
433
666
|
|
434
|
-
var
|
435
|
-
var
|
667
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
668
|
+
var defineProperty = objectDefineProperty.f;
|
669
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
670
|
+
|
671
|
+
|
672
|
+
|
436
673
|
var enforceInternalState = internalState.enforce;
|
674
|
+
var getInternalState = internalState.get;
|
675
|
+
|
676
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
677
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
678
|
+
});
|
679
|
+
|
437
680
|
var TEMPLATE = String(String).split('String');
|
438
681
|
|
439
|
-
|
682
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
683
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
684
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
685
|
+
}
|
686
|
+
if (options && options.getter) name = 'get ' + name;
|
687
|
+
if (options && options.setter) name = 'set ' + name;
|
688
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
689
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
690
|
+
}
|
691
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
692
|
+
defineProperty(value, 'length', { value: options.arity });
|
693
|
+
}
|
694
|
+
var state = enforceInternalState(value);
|
695
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
696
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
697
|
+
} return value;
|
698
|
+
};
|
699
|
+
|
700
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
701
|
+
// eslint-disable-next-line no-extend-native -- required
|
702
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
703
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
704
|
+
}, 'toString');
|
705
|
+
});
|
706
|
+
|
707
|
+
var defineBuiltIn = function (O, key, value, options) {
|
440
708
|
var unsafe = options ? !!options.unsafe : false;
|
441
709
|
var simple = options ? !!options.enumerable : false;
|
442
710
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
443
|
-
var
|
444
|
-
if (
|
445
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
446
|
-
createNonEnumerableProperty(value, 'name', key);
|
447
|
-
}
|
448
|
-
state = enforceInternalState(value);
|
449
|
-
if (!state.source) {
|
450
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
451
|
-
}
|
452
|
-
}
|
711
|
+
var name = options && options.name !== undefined ? options.name : key;
|
712
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
453
713
|
if (O === global_1) {
|
454
714
|
if (simple) O[key] = value;
|
455
715
|
else setGlobal(key, value);
|
456
|
-
return;
|
716
|
+
return O;
|
457
717
|
} else if (!unsafe) {
|
458
718
|
delete O[key];
|
459
719
|
} else if (!noTargetGet && O[key]) {
|
@@ -461,56 +721,50 @@ var TEMPLATE = String(String).split('String');
|
|
461
721
|
}
|
462
722
|
if (simple) O[key] = value;
|
463
723
|
else createNonEnumerableProperty(O, key, value);
|
464
|
-
|
465
|
-
})(Function.prototype, 'toString', function toString() {
|
466
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
467
|
-
});
|
468
|
-
});
|
469
|
-
|
470
|
-
var path = global_1;
|
471
|
-
|
472
|
-
var aFunction = function (variable) {
|
473
|
-
return typeof variable == 'function' ? variable : undefined;
|
474
|
-
};
|
475
|
-
|
476
|
-
var getBuiltIn = function (namespace, method) {
|
477
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
|
478
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
724
|
+
return O;
|
479
725
|
};
|
480
726
|
|
481
727
|
var ceil = Math.ceil;
|
482
728
|
var floor$1 = Math.floor;
|
483
729
|
|
484
|
-
// `
|
485
|
-
// https://tc39.es/ecma262/#sec-
|
486
|
-
var
|
487
|
-
|
730
|
+
// `ToIntegerOrInfinity` abstract operation
|
731
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
732
|
+
var toIntegerOrInfinity = function (argument) {
|
733
|
+
var number = +argument;
|
734
|
+
// eslint-disable-next-line no-self-compare -- safe
|
735
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
488
736
|
};
|
489
737
|
|
738
|
+
var max$1 = Math.max;
|
490
739
|
var min$2 = Math.min;
|
491
740
|
|
741
|
+
// Helper for a popular repeating case of the spec:
|
742
|
+
// Let integer be ? ToInteger(index).
|
743
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
744
|
+
var toAbsoluteIndex = function (index, length) {
|
745
|
+
var integer = toIntegerOrInfinity(index);
|
746
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
747
|
+
};
|
748
|
+
|
749
|
+
var min$1 = Math.min;
|
750
|
+
|
492
751
|
// `ToLength` abstract operation
|
493
752
|
// https://tc39.es/ecma262/#sec-tolength
|
494
753
|
var toLength = function (argument) {
|
495
|
-
return argument > 0 ? min$
|
754
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
496
755
|
};
|
497
756
|
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
// Let integer be ? ToInteger(index).
|
503
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
504
|
-
var toAbsoluteIndex = function (index, length) {
|
505
|
-
var integer = toInteger(index);
|
506
|
-
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
757
|
+
// `LengthOfArrayLike` abstract operation
|
758
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
759
|
+
var lengthOfArrayLike = function (obj) {
|
760
|
+
return toLength(obj.length);
|
507
761
|
};
|
508
762
|
|
509
763
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
510
764
|
var createMethod$1 = function (IS_INCLUDES) {
|
511
765
|
return function ($this, el, fromIndex) {
|
512
766
|
var O = toIndexedObject($this);
|
513
|
-
var length =
|
767
|
+
var length = lengthOfArrayLike(O);
|
514
768
|
var index = toAbsoluteIndex(fromIndex, length);
|
515
769
|
var value;
|
516
770
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -535,18 +789,20 @@ var arrayIncludes = {
|
|
535
789
|
indexOf: createMethod$1(false)
|
536
790
|
};
|
537
791
|
|
538
|
-
var indexOf = arrayIncludes.indexOf;
|
792
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
793
|
+
|
539
794
|
|
795
|
+
var push$1 = functionUncurryThis([].push);
|
540
796
|
|
541
797
|
var objectKeysInternal = function (object, names) {
|
542
798
|
var O = toIndexedObject(object);
|
543
799
|
var i = 0;
|
544
800
|
var result = [];
|
545
801
|
var key;
|
546
|
-
for (key in O) !
|
802
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
547
803
|
// Don't enum bug & hidden keys
|
548
|
-
while (names.length > i) if (
|
549
|
-
~indexOf(result, key) ||
|
804
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
805
|
+
~indexOf$1(result, key) || push$1(result, key);
|
550
806
|
}
|
551
807
|
return result;
|
552
808
|
};
|
@@ -566,36 +822,40 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
566
822
|
|
567
823
|
// `Object.getOwnPropertyNames` method
|
568
824
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
569
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
570
|
-
var f$
|
825
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
826
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
571
827
|
return objectKeysInternal(O, hiddenKeys);
|
572
828
|
};
|
573
829
|
|
574
830
|
var objectGetOwnPropertyNames = {
|
575
|
-
f: f$
|
831
|
+
f: f$2
|
576
832
|
};
|
577
833
|
|
578
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
579
|
-
var f = Object.getOwnPropertySymbols;
|
834
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
835
|
+
var f$1 = Object.getOwnPropertySymbols;
|
580
836
|
|
581
837
|
var objectGetOwnPropertySymbols = {
|
582
|
-
f: f
|
838
|
+
f: f$1
|
583
839
|
};
|
584
840
|
|
841
|
+
var concat$1 = functionUncurryThis([].concat);
|
842
|
+
|
585
843
|
// all object keys, includes non-enumerable and symbols
|
586
844
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
587
845
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
588
846
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
589
|
-
return getOwnPropertySymbols ?
|
847
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
590
848
|
};
|
591
849
|
|
592
|
-
var copyConstructorProperties = function (target, source) {
|
850
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
593
851
|
var keys = ownKeys(source);
|
594
852
|
var defineProperty = objectDefineProperty.f;
|
595
853
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
596
854
|
for (var i = 0; i < keys.length; i++) {
|
597
855
|
var key = keys[i];
|
598
|
-
if (!
|
856
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
857
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
858
|
+
}
|
599
859
|
}
|
600
860
|
};
|
601
861
|
|
@@ -605,7 +865,7 @@ var isForced = function (feature, detection) {
|
|
605
865
|
var value = data[normalize(feature)];
|
606
866
|
return value == POLYFILL ? true
|
607
867
|
: value == NATIVE ? false
|
608
|
-
:
|
868
|
+
: isCallable(detection) ? fails(detection)
|
609
869
|
: !!detection;
|
610
870
|
};
|
611
871
|
|
@@ -639,6 +899,7 @@ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
639
899
|
options.sham - add a flag to not completely full polyfills
|
640
900
|
options.enumerable - export as enumerable property
|
641
901
|
options.noTargetGet - prevent calling a getter on target
|
902
|
+
options.name - the .name of the function if it does not match the key
|
642
903
|
*/
|
643
904
|
var _export = function (options, source) {
|
644
905
|
var TARGET = options.target;
|
@@ -661,23 +922,62 @@ var _export = function (options, source) {
|
|
661
922
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
662
923
|
// contained in target
|
663
924
|
if (!FORCED && targetProperty !== undefined) {
|
664
|
-
if (typeof sourceProperty
|
925
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
665
926
|
copyConstructorProperties(sourceProperty, targetProperty);
|
666
927
|
}
|
667
928
|
// add a flag to not completely full polyfills
|
668
929
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
669
930
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
670
931
|
}
|
671
|
-
|
672
|
-
redefine(target, key, sourceProperty, options);
|
932
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
673
933
|
}
|
674
934
|
};
|
675
935
|
|
936
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
937
|
+
var test = {};
|
938
|
+
|
939
|
+
test[TO_STRING_TAG$1] = 'z';
|
940
|
+
|
941
|
+
var toStringTagSupport = String(test) === '[object z]';
|
942
|
+
|
943
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
944
|
+
var Object$1 = global_1.Object;
|
945
|
+
|
946
|
+
// ES3 wrong here
|
947
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
948
|
+
|
949
|
+
// fallback for IE11 Script Access Denied error
|
950
|
+
var tryGet = function (it, key) {
|
951
|
+
try {
|
952
|
+
return it[key];
|
953
|
+
} catch (error) { /* empty */ }
|
954
|
+
};
|
955
|
+
|
956
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
957
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
958
|
+
var O, tag, result;
|
959
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
960
|
+
// @@toStringTag case
|
961
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
962
|
+
// builtinTag case
|
963
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
964
|
+
// ES3 arguments fallback
|
965
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
966
|
+
};
|
967
|
+
|
968
|
+
var String$1 = global_1.String;
|
969
|
+
|
970
|
+
var toString_1 = function (argument) {
|
971
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
972
|
+
return String$1(argument);
|
973
|
+
};
|
974
|
+
|
676
975
|
// `RegExp.prototype.flags` getter implementation
|
677
976
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
678
977
|
var regexpFlags = function () {
|
679
978
|
var that = anObject(this);
|
680
979
|
var result = '';
|
980
|
+
if (that.hasIndices) result += 'd';
|
681
981
|
if (that.global) result += 'g';
|
682
982
|
if (that.ignoreCase) result += 'i';
|
683
983
|
if (that.multiline) result += 'm';
|
@@ -687,71 +987,229 @@ var regexpFlags = function () {
|
|
687
987
|
return result;
|
688
988
|
};
|
689
989
|
|
690
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
691
|
-
|
692
|
-
function RE(s, f) {
|
693
|
-
return RegExp(s, f);
|
694
|
-
}
|
990
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
991
|
+
var $RegExp$2 = global_1.RegExp;
|
695
992
|
|
696
993
|
var UNSUPPORTED_Y$1 = fails(function () {
|
697
|
-
|
698
|
-
var re = RE('a', 'y');
|
994
|
+
var re = $RegExp$2('a', 'y');
|
699
995
|
re.lastIndex = 2;
|
700
996
|
return re.exec('abcd') != null;
|
701
997
|
});
|
702
998
|
|
703
|
-
|
999
|
+
// UC Browser bug
|
1000
|
+
// https://github.com/zloirock/core-js/issues/1008
|
1001
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
|
1002
|
+
return !$RegExp$2('a', 'y').sticky;
|
1003
|
+
});
|
1004
|
+
|
1005
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
|
704
1006
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
705
|
-
var re =
|
1007
|
+
var re = $RegExp$2('^r', 'gy');
|
706
1008
|
re.lastIndex = 2;
|
707
1009
|
return re.exec('str') != null;
|
708
1010
|
});
|
709
1011
|
|
710
1012
|
var regexpStickyHelpers = {
|
711
|
-
|
712
|
-
|
1013
|
+
BROKEN_CARET: BROKEN_CARET,
|
1014
|
+
MISSED_STICKY: MISSED_STICKY,
|
1015
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
713
1016
|
};
|
714
1017
|
|
715
|
-
|
716
|
-
|
1018
|
+
// `Object.keys` method
|
1019
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
1020
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
1021
|
+
var objectKeys = Object.keys || function keys(O) {
|
1022
|
+
return objectKeysInternal(O, enumBugKeys);
|
1023
|
+
};
|
1024
|
+
|
1025
|
+
// `Object.defineProperties` method
|
1026
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1027
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1028
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1029
|
+
anObject(O);
|
1030
|
+
var props = toIndexedObject(Properties);
|
1031
|
+
var keys = objectKeys(Properties);
|
1032
|
+
var length = keys.length;
|
1033
|
+
var index = 0;
|
1034
|
+
var key;
|
1035
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1036
|
+
return O;
|
1037
|
+
};
|
1038
|
+
|
1039
|
+
var objectDefineProperties = {
|
1040
|
+
f: f
|
1041
|
+
};
|
1042
|
+
|
1043
|
+
var html = getBuiltIn('document', 'documentElement');
|
1044
|
+
|
1045
|
+
/* global ActiveXObject -- old IE, WSH */
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
|
717
1050
|
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
1054
|
+
var GT = '>';
|
1055
|
+
var LT = '<';
|
1056
|
+
var PROTOTYPE = 'prototype';
|
1057
|
+
var SCRIPT = 'script';
|
1058
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1059
|
+
|
1060
|
+
var EmptyConstructor = function () { /* empty */ };
|
1061
|
+
|
1062
|
+
var scriptTag = function (content) {
|
1063
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1064
|
+
};
|
1065
|
+
|
1066
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1067
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1068
|
+
activeXDocument.write(scriptTag(''));
|
1069
|
+
activeXDocument.close();
|
1070
|
+
var temp = activeXDocument.parentWindow.Object;
|
1071
|
+
activeXDocument = null; // avoid memory leak
|
1072
|
+
return temp;
|
1073
|
+
};
|
1074
|
+
|
1075
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1076
|
+
var NullProtoObjectViaIFrame = function () {
|
1077
|
+
// Thrash, waste and sodomy: IE GC bug
|
1078
|
+
var iframe = documentCreateElement('iframe');
|
1079
|
+
var JS = 'java' + SCRIPT + ':';
|
1080
|
+
var iframeDocument;
|
1081
|
+
iframe.style.display = 'none';
|
1082
|
+
html.appendChild(iframe);
|
1083
|
+
// https://github.com/zloirock/core-js/issues/475
|
1084
|
+
iframe.src = String(JS);
|
1085
|
+
iframeDocument = iframe.contentWindow.document;
|
1086
|
+
iframeDocument.open();
|
1087
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1088
|
+
iframeDocument.close();
|
1089
|
+
return iframeDocument.F;
|
1090
|
+
};
|
1091
|
+
|
1092
|
+
// Check for document.domain and active x support
|
1093
|
+
// No need to use active x approach when document.domain is not set
|
1094
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1095
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1096
|
+
// avoid IE GC bug
|
1097
|
+
var activeXDocument;
|
1098
|
+
var NullProtoObject = function () {
|
1099
|
+
try {
|
1100
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1101
|
+
} catch (error) { /* ignore */ }
|
1102
|
+
NullProtoObject = typeof document != 'undefined'
|
1103
|
+
? document.domain && activeXDocument
|
1104
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1105
|
+
: NullProtoObjectViaIFrame()
|
1106
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1107
|
+
var length = enumBugKeys.length;
|
1108
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1109
|
+
return NullProtoObject();
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
hiddenKeys$1[IE_PROTO] = true;
|
1113
|
+
|
1114
|
+
// `Object.create` method
|
1115
|
+
// https://tc39.es/ecma262/#sec-object.create
|
1116
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1117
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
1118
|
+
var result;
|
1119
|
+
if (O !== null) {
|
1120
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1121
|
+
result = new EmptyConstructor();
|
1122
|
+
EmptyConstructor[PROTOTYPE] = null;
|
1123
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1124
|
+
result[IE_PROTO] = O;
|
1125
|
+
} else result = NullProtoObject();
|
1126
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1127
|
+
};
|
1128
|
+
|
1129
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1130
|
+
var $RegExp$1 = global_1.RegExp;
|
1131
|
+
|
1132
|
+
var regexpUnsupportedDotAll = fails(function () {
|
1133
|
+
var re = $RegExp$1('.', 's');
|
1134
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1135
|
+
});
|
1136
|
+
|
1137
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1138
|
+
var $RegExp = global_1.RegExp;
|
1139
|
+
|
1140
|
+
var regexpUnsupportedNcg = fails(function () {
|
1141
|
+
var re = $RegExp('(?<a>b)', 'g');
|
1142
|
+
return re.exec('b').groups.a !== 'b' ||
|
1143
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
1144
|
+
});
|
1145
|
+
|
1146
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1147
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
var getInternalState = internalState.get;
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1160
|
+
var nativeExec = RegExp.prototype.exec;
|
718
1161
|
var patchedExec = nativeExec;
|
1162
|
+
var charAt$3 = functionUncurryThis(''.charAt);
|
1163
|
+
var indexOf = functionUncurryThis(''.indexOf);
|
1164
|
+
var replace$1 = functionUncurryThis(''.replace);
|
1165
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
719
1166
|
|
720
1167
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
721
1168
|
var re1 = /a/;
|
722
1169
|
var re2 = /b*/g;
|
723
|
-
nativeExec
|
724
|
-
nativeExec
|
1170
|
+
functionCall(nativeExec, re1, 'a');
|
1171
|
+
functionCall(nativeExec, re2, 'a');
|
725
1172
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
726
1173
|
})();
|
727
1174
|
|
728
|
-
var UNSUPPORTED_Y = regexpStickyHelpers.
|
1175
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
|
729
1176
|
|
730
1177
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
731
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
732
1178
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
733
1179
|
|
734
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
1180
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
735
1181
|
|
736
1182
|
if (PATCH) {
|
737
|
-
patchedExec = function exec(
|
1183
|
+
patchedExec = function exec(string) {
|
738
1184
|
var re = this;
|
739
|
-
var
|
1185
|
+
var state = getInternalState(re);
|
1186
|
+
var str = toString_1(string);
|
1187
|
+
var raw = state.raw;
|
1188
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
1189
|
+
|
1190
|
+
if (raw) {
|
1191
|
+
raw.lastIndex = re.lastIndex;
|
1192
|
+
result = functionCall(patchedExec, raw, str);
|
1193
|
+
re.lastIndex = raw.lastIndex;
|
1194
|
+
return result;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
var groups = state.groups;
|
740
1198
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
741
|
-
var flags = regexpFlags
|
1199
|
+
var flags = functionCall(regexpFlags, re);
|
742
1200
|
var source = re.source;
|
743
1201
|
var charsAdded = 0;
|
744
1202
|
var strCopy = str;
|
745
1203
|
|
746
1204
|
if (sticky) {
|
747
|
-
flags =
|
748
|
-
if (
|
1205
|
+
flags = replace$1(flags, 'y', '');
|
1206
|
+
if (indexOf(flags, 'g') === -1) {
|
749
1207
|
flags += 'g';
|
750
1208
|
}
|
751
1209
|
|
752
|
-
strCopy =
|
1210
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
753
1211
|
// Support anchored sticky behavior.
|
754
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
1212
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
755
1213
|
source = '(?: ' + source + ')';
|
756
1214
|
strCopy = ' ' + strCopy;
|
757
1215
|
charsAdded++;
|
@@ -766,12 +1224,12 @@ if (PATCH) {
|
|
766
1224
|
}
|
767
1225
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
768
1226
|
|
769
|
-
match = nativeExec
|
1227
|
+
match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
|
770
1228
|
|
771
1229
|
if (sticky) {
|
772
1230
|
if (match) {
|
773
|
-
match.input = match.input
|
774
|
-
match[0] = match[0]
|
1231
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
1232
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
775
1233
|
match.index = re.lastIndex;
|
776
1234
|
re.lastIndex += match[0].length;
|
777
1235
|
} else re.lastIndex = 0;
|
@@ -781,13 +1239,21 @@ if (PATCH) {
|
|
781
1239
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
782
1240
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
783
1241
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
784
|
-
nativeReplace
|
1242
|
+
functionCall(nativeReplace, match[0], reCopy, function () {
|
785
1243
|
for (i = 1; i < arguments.length - 2; i++) {
|
786
1244
|
if (arguments[i] === undefined) match[i] = undefined;
|
787
1245
|
}
|
788
1246
|
});
|
789
1247
|
}
|
790
1248
|
|
1249
|
+
if (match && groups) {
|
1250
|
+
match.groups = object = objectCreate(null);
|
1251
|
+
for (i = 0; i < groups.length; i++) {
|
1252
|
+
group = groups[i];
|
1253
|
+
object[group[0]] = match[group[1]];
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
|
791
1257
|
return match;
|
792
1258
|
};
|
793
1259
|
}
|
@@ -800,58 +1266,15 @@ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
|
800
1266
|
exec: regexpExec
|
801
1267
|
});
|
802
1268
|
|
803
|
-
var
|
804
|
-
|
805
|
-
var
|
806
|
-
|
807
|
-
var process = global_1.process;
|
808
|
-
var versions = process && process.versions;
|
809
|
-
var v8 = versions && versions.v8;
|
810
|
-
var match, version;
|
811
|
-
|
812
|
-
if (v8) {
|
813
|
-
match = v8.split('.');
|
814
|
-
version = match[0] + match[1];
|
815
|
-
} else if (engineUserAgent) {
|
816
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
817
|
-
if (!match || match[1] >= 74) {
|
818
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
819
|
-
if (match) version = match[1];
|
820
|
-
}
|
821
|
-
}
|
822
|
-
|
823
|
-
var engineV8Version = version && +version;
|
1269
|
+
var FunctionPrototype = Function.prototype;
|
1270
|
+
var apply = FunctionPrototype.apply;
|
1271
|
+
var call = FunctionPrototype.call;
|
824
1272
|
|
825
|
-
// eslint-disable-next-line es/no-
|
826
|
-
var
|
827
|
-
|
828
|
-
return !Symbol.sham &&
|
829
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
830
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
831
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
1273
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
1274
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
1275
|
+
return call.apply(apply, arguments);
|
832
1276
|
});
|
833
1277
|
|
834
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
835
|
-
|
836
|
-
|
837
|
-
var useSymbolAsUid = nativeSymbol
|
838
|
-
&& !Symbol.sham
|
839
|
-
&& typeof Symbol.iterator == 'symbol';
|
840
|
-
|
841
|
-
var WellKnownSymbolsStore = shared('wks');
|
842
|
-
var Symbol$1 = global_1.Symbol;
|
843
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
844
|
-
|
845
|
-
var wellKnownSymbol = function (name) {
|
846
|
-
if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
847
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
848
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
849
|
-
} else {
|
850
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
851
|
-
}
|
852
|
-
} return WellKnownSymbolsStore[name];
|
853
|
-
};
|
854
|
-
|
855
1278
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
856
1279
|
|
857
1280
|
|
@@ -859,49 +1282,12 @@ var wellKnownSymbol = function (name) {
|
|
859
1282
|
|
860
1283
|
|
861
1284
|
|
862
|
-
var SPECIES$2 = wellKnownSymbol('species');
|
863
|
-
|
864
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
865
|
-
// #replace needs built-in support for named groups.
|
866
|
-
// #match works fine because it just return the exec results, even if it has
|
867
|
-
// a "grops" property.
|
868
|
-
var re = /./;
|
869
|
-
re.exec = function () {
|
870
|
-
var result = [];
|
871
|
-
result.groups = { a: '7' };
|
872
|
-
return result;
|
873
|
-
};
|
874
|
-
return ''.replace(re, '$<a>') !== '7';
|
875
|
-
});
|
876
|
-
|
877
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
878
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
879
|
-
var REPLACE_KEEPS_$0 = (function () {
|
880
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
881
|
-
return 'a'.replace(/./, '$0') === '$0';
|
882
|
-
})();
|
883
1285
|
|
884
|
-
var REPLACE = wellKnownSymbol('replace');
|
885
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
886
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
887
|
-
if (/./[REPLACE]) {
|
888
|
-
return /./[REPLACE]('a', '$0') === '';
|
889
|
-
}
|
890
|
-
return false;
|
891
|
-
})();
|
892
1286
|
|
893
|
-
|
894
|
-
|
895
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
896
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
897
|
-
var re = /(?:)/;
|
898
|
-
var originalExec = re.exec;
|
899
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
900
|
-
var result = 'ab'.split(re);
|
901
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
902
|
-
});
|
1287
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
1288
|
+
var RegExpPrototype = RegExp.prototype;
|
903
1289
|
|
904
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY,
|
1290
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
905
1291
|
var SYMBOL = wellKnownSymbol(KEY);
|
906
1292
|
|
907
1293
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
@@ -938,59 +1324,51 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
|
|
938
1324
|
if (
|
939
1325
|
!DELEGATES_TO_SYMBOL ||
|
940
1326
|
!DELEGATES_TO_EXEC ||
|
941
|
-
|
942
|
-
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
943
|
-
REPLACE_KEEPS_$0 &&
|
944
|
-
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
945
|
-
)) ||
|
946
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1327
|
+
FORCED
|
947
1328
|
) {
|
948
|
-
var
|
1329
|
+
var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
|
949
1330
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
950
|
-
|
1331
|
+
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1332
|
+
var $exec = regexp.exec;
|
1333
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
951
1334
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
952
1335
|
// The native String method already delegates to @@method (this
|
953
1336
|
// polyfilled function), leasing to infinite recursion.
|
954
1337
|
// We avoid it by directly calling the native @@method method.
|
955
|
-
return { done: true, value:
|
1338
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
956
1339
|
}
|
957
|
-
return { done: true, value:
|
1340
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
958
1341
|
}
|
959
1342
|
return { done: false };
|
960
|
-
}, {
|
961
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
962
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
963
1343
|
});
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
redefine(String.prototype, KEY, stringMethod);
|
968
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
969
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
970
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
971
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
972
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
973
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
974
|
-
: function (string) { return regexMethod.call(string, this); }
|
975
|
-
);
|
1344
|
+
|
1345
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
1346
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
976
1347
|
}
|
977
1348
|
|
978
|
-
if (
|
1349
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
979
1350
|
};
|
980
1351
|
|
981
|
-
|
1352
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
1353
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
1354
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
1355
|
+
|
982
1356
|
var createMethod = function (CONVERT_TO_STRING) {
|
983
1357
|
return function ($this, pos) {
|
984
|
-
var S =
|
985
|
-
var position =
|
1358
|
+
var S = toString_1(requireObjectCoercible($this));
|
1359
|
+
var position = toIntegerOrInfinity(pos);
|
986
1360
|
var size = S.length;
|
987
1361
|
var first, second;
|
988
1362
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
989
|
-
first =
|
1363
|
+
first = charCodeAt(S, position);
|
990
1364
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
991
|
-
|| (second =
|
992
|
-
? CONVERT_TO_STRING
|
993
|
-
|
1365
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
1366
|
+
? CONVERT_TO_STRING
|
1367
|
+
? charAt$2(S, position)
|
1368
|
+
: first
|
1369
|
+
: CONVERT_TO_STRING
|
1370
|
+
? stringSlice$2(S, position, position + 2)
|
1371
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
994
1372
|
};
|
995
1373
|
};
|
996
1374
|
|
@@ -1003,25 +1381,22 @@ var stringMultibyte = {
|
|
1003
1381
|
charAt: createMethod(true)
|
1004
1382
|
};
|
1005
1383
|
|
1006
|
-
var charAt = stringMultibyte.charAt;
|
1384
|
+
var charAt$1 = stringMultibyte.charAt;
|
1007
1385
|
|
1008
1386
|
// `AdvanceStringIndex` abstract operation
|
1009
1387
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
1010
1388
|
var advanceStringIndex = function (S, index, unicode) {
|
1011
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
1012
|
-
};
|
1013
|
-
|
1014
|
-
// `ToObject` abstract operation
|
1015
|
-
// https://tc39.es/ecma262/#sec-toobject
|
1016
|
-
var toObject = function (argument) {
|
1017
|
-
return Object(requireObjectCoercible(argument));
|
1389
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
1018
1390
|
};
|
1019
1391
|
|
1020
1392
|
var floor = Math.floor;
|
1021
|
-
var
|
1393
|
+
var charAt = functionUncurryThis(''.charAt);
|
1394
|
+
var replace = functionUncurryThis(''.replace);
|
1395
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
1022
1396
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
1023
1397
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
1024
1398
|
|
1399
|
+
// `GetSubstitution` abstract operation
|
1025
1400
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
1026
1401
|
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
1027
1402
|
var tailPos = position + matched.length;
|
@@ -1031,15 +1406,15 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
|
|
1031
1406
|
namedCaptures = toObject(namedCaptures);
|
1032
1407
|
symbols = SUBSTITUTION_SYMBOLS;
|
1033
1408
|
}
|
1034
|
-
return replace
|
1409
|
+
return replace(replacement, symbols, function (match, ch) {
|
1035
1410
|
var capture;
|
1036
|
-
switch (
|
1411
|
+
switch (charAt(ch, 0)) {
|
1037
1412
|
case '$': return '$';
|
1038
1413
|
case '&': return matched;
|
1039
|
-
case '`': return str
|
1040
|
-
case "'": return str
|
1414
|
+
case '`': return stringSlice$1(str, 0, position);
|
1415
|
+
case "'": return stringSlice$1(str, tailPos);
|
1041
1416
|
case '<':
|
1042
|
-
capture = namedCaptures[ch
|
1417
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
1043
1418
|
break;
|
1044
1419
|
default: // \d\d?
|
1045
1420
|
var n = +ch;
|
@@ -1047,7 +1422,7 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
|
|
1047
1422
|
if (n > m) {
|
1048
1423
|
var f = floor(n / 10);
|
1049
1424
|
if (f === 0) return match;
|
1050
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
1425
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
1051
1426
|
return match;
|
1052
1427
|
}
|
1053
1428
|
capture = captures[n - 1];
|
@@ -1056,36 +1431,61 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
|
|
1056
1431
|
});
|
1057
1432
|
};
|
1058
1433
|
|
1434
|
+
var TypeError$2 = global_1.TypeError;
|
1435
|
+
|
1059
1436
|
// `RegExpExec` abstract operation
|
1060
1437
|
// https://tc39.es/ecma262/#sec-regexpexec
|
1061
1438
|
var regexpExecAbstract = function (R, S) {
|
1062
1439
|
var exec = R.exec;
|
1063
|
-
if (
|
1064
|
-
var result = exec
|
1065
|
-
if (
|
1066
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
1067
|
-
}
|
1440
|
+
if (isCallable(exec)) {
|
1441
|
+
var result = functionCall(exec, R, S);
|
1442
|
+
if (result !== null) anObject(result);
|
1068
1443
|
return result;
|
1069
1444
|
}
|
1070
|
-
|
1071
|
-
|
1072
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
1073
|
-
}
|
1074
|
-
|
1075
|
-
return regexpExec.call(R, S);
|
1445
|
+
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
1446
|
+
throw TypeError$2('RegExp#exec called on incompatible receiver');
|
1076
1447
|
};
|
1077
1448
|
|
1449
|
+
var REPLACE = wellKnownSymbol('replace');
|
1078
1450
|
var max = Math.max;
|
1079
1451
|
var min = Math.min;
|
1452
|
+
var concat = functionUncurryThis([].concat);
|
1453
|
+
var push = functionUncurryThis([].push);
|
1454
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
1455
|
+
var stringSlice = functionUncurryThis(''.slice);
|
1080
1456
|
|
1081
1457
|
var maybeToString = function (it) {
|
1082
1458
|
return it === undefined ? it : String(it);
|
1083
1459
|
};
|
1084
1460
|
|
1461
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
1462
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
1463
|
+
var REPLACE_KEEPS_$0 = (function () {
|
1464
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
1465
|
+
return 'a'.replace(/./, '$0') === '$0';
|
1466
|
+
})();
|
1467
|
+
|
1468
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
1469
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
1470
|
+
if (/./[REPLACE]) {
|
1471
|
+
return /./[REPLACE]('a', '$0') === '';
|
1472
|
+
}
|
1473
|
+
return false;
|
1474
|
+
})();
|
1475
|
+
|
1476
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
1477
|
+
var re = /./;
|
1478
|
+
re.exec = function () {
|
1479
|
+
var result = [];
|
1480
|
+
result.groups = { a: '7' };
|
1481
|
+
return result;
|
1482
|
+
};
|
1483
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
1484
|
+
return ''.replace(re, '$<a>') !== '7';
|
1485
|
+
});
|
1486
|
+
|
1085
1487
|
// @@replace logic
|
1086
|
-
fixRegexpWellKnownSymbolLogic('replace',
|
1087
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1088
|
-
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
1488
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
1089
1489
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1090
1490
|
|
1091
1491
|
return [
|
@@ -1093,27 +1493,28 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
|
|
1093
1493
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1094
1494
|
function replace(searchValue, replaceValue) {
|
1095
1495
|
var O = requireObjectCoercible(this);
|
1096
|
-
var replacer = searchValue == undefined ? undefined : searchValue
|
1097
|
-
return replacer
|
1098
|
-
? replacer
|
1099
|
-
: nativeReplace
|
1496
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
1497
|
+
return replacer
|
1498
|
+
? functionCall(replacer, searchValue, O, replaceValue)
|
1499
|
+
: functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
|
1100
1500
|
},
|
1101
1501
|
// `RegExp.prototype[@@replace]` method
|
1102
1502
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1103
|
-
function (
|
1503
|
+
function (string, replaceValue) {
|
1504
|
+
var rx = anObject(this);
|
1505
|
+
var S = toString_1(string);
|
1506
|
+
|
1104
1507
|
if (
|
1105
|
-
|
1106
|
-
(
|
1508
|
+
typeof replaceValue == 'string' &&
|
1509
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
1510
|
+
stringIndexOf(replaceValue, '$<') === -1
|
1107
1511
|
) {
|
1108
|
-
var res = maybeCallNative(nativeReplace,
|
1512
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
1109
1513
|
if (res.done) return res.value;
|
1110
1514
|
}
|
1111
1515
|
|
1112
|
-
var
|
1113
|
-
|
1114
|
-
|
1115
|
-
var functionalReplace = typeof replaceValue === 'function';
|
1116
|
-
if (!functionalReplace) replaceValue = String(replaceValue);
|
1516
|
+
var functionalReplace = isCallable(replaceValue);
|
1517
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
1117
1518
|
|
1118
1519
|
var global = rx.global;
|
1119
1520
|
if (global) {
|
@@ -1125,10 +1526,10 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
|
|
1125
1526
|
var result = regexpExecAbstract(rx, S);
|
1126
1527
|
if (result === null) break;
|
1127
1528
|
|
1128
|
-
|
1529
|
+
push(results, result);
|
1129
1530
|
if (!global) break;
|
1130
1531
|
|
1131
|
-
var matchStr =
|
1532
|
+
var matchStr = toString_1(result[0]);
|
1132
1533
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1133
1534
|
}
|
1134
1535
|
|
@@ -1137,61 +1538,114 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
|
|
1137
1538
|
for (var i = 0; i < results.length; i++) {
|
1138
1539
|
result = results[i];
|
1139
1540
|
|
1140
|
-
var matched =
|
1141
|
-
var position = max(min(
|
1541
|
+
var matched = toString_1(result[0]);
|
1542
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
1142
1543
|
var captures = [];
|
1143
1544
|
// NOTE: This is equivalent to
|
1144
1545
|
// captures = result.slice(1).map(maybeToString)
|
1145
1546
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
1146
1547
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
1147
1548
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
1148
|
-
for (var j = 1; j < result.length; j++)
|
1549
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
1149
1550
|
var namedCaptures = result.groups;
|
1150
1551
|
if (functionalReplace) {
|
1151
|
-
var replacerArgs = [matched]
|
1152
|
-
if (namedCaptures !== undefined)
|
1153
|
-
var replacement =
|
1552
|
+
var replacerArgs = concat([matched], captures, position, S);
|
1553
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
1554
|
+
var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
|
1154
1555
|
} else {
|
1155
1556
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1156
1557
|
}
|
1157
1558
|
if (position >= nextSourcePosition) {
|
1158
|
-
accumulatedResult += S
|
1559
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
1159
1560
|
nextSourcePosition = position + matched.length;
|
1160
1561
|
}
|
1161
1562
|
}
|
1162
|
-
return accumulatedResult + S
|
1563
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
1163
1564
|
}
|
1164
1565
|
];
|
1165
|
-
});
|
1566
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
1166
1567
|
|
1167
1568
|
// `IsArray` abstract operation
|
1168
1569
|
// https://tc39.es/ecma262/#sec-isarray
|
1169
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
1170
|
-
var isArray = Array.isArray || function isArray(
|
1171
|
-
return classofRaw(
|
1570
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1571
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1572
|
+
return classofRaw(argument) == 'Array';
|
1172
1573
|
};
|
1173
1574
|
|
1174
1575
|
var createProperty = function (object, key, value) {
|
1175
|
-
var propertyKey =
|
1576
|
+
var propertyKey = toPropertyKey(key);
|
1176
1577
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1177
1578
|
else object[propertyKey] = value;
|
1178
1579
|
};
|
1179
1580
|
|
1581
|
+
var noop = function () { /* empty */ };
|
1582
|
+
var empty = [];
|
1583
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1584
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1585
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1586
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1587
|
+
|
1588
|
+
var isConstructorModern = function isConstructor(argument) {
|
1589
|
+
if (!isCallable(argument)) return false;
|
1590
|
+
try {
|
1591
|
+
construct(noop, empty, argument);
|
1592
|
+
return true;
|
1593
|
+
} catch (error) {
|
1594
|
+
return false;
|
1595
|
+
}
|
1596
|
+
};
|
1597
|
+
|
1598
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1599
|
+
if (!isCallable(argument)) return false;
|
1600
|
+
switch (classof(argument)) {
|
1601
|
+
case 'AsyncFunction':
|
1602
|
+
case 'GeneratorFunction':
|
1603
|
+
case 'AsyncGeneratorFunction': return false;
|
1604
|
+
}
|
1605
|
+
try {
|
1606
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1607
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1608
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1609
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1610
|
+
} catch (error) {
|
1611
|
+
return true;
|
1612
|
+
}
|
1613
|
+
};
|
1614
|
+
|
1615
|
+
isConstructorLegacy.sham = true;
|
1616
|
+
|
1617
|
+
// `IsConstructor` abstract operation
|
1618
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1619
|
+
var isConstructor = !construct || fails(function () {
|
1620
|
+
var called;
|
1621
|
+
return isConstructorModern(isConstructorModern.call)
|
1622
|
+
|| !isConstructorModern(Object)
|
1623
|
+
|| !isConstructorModern(function () { called = true; })
|
1624
|
+
|| called;
|
1625
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1626
|
+
|
1180
1627
|
var SPECIES$1 = wellKnownSymbol('species');
|
1628
|
+
var Array$1 = global_1.Array;
|
1181
1629
|
|
1182
|
-
// `ArraySpeciesCreate` abstract operation
|
1630
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
1183
1631
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1184
|
-
var
|
1632
|
+
var arraySpeciesConstructor = function (originalArray) {
|
1185
1633
|
var C;
|
1186
1634
|
if (isArray(originalArray)) {
|
1187
1635
|
C = originalArray.constructor;
|
1188
1636
|
// cross-realm fallback
|
1189
|
-
if (
|
1637
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
1190
1638
|
else if (isObject(C)) {
|
1191
1639
|
C = C[SPECIES$1];
|
1192
1640
|
if (C === null) C = undefined;
|
1193
1641
|
}
|
1194
|
-
} return
|
1642
|
+
} return C === undefined ? Array$1 : C;
|
1643
|
+
};
|
1644
|
+
|
1645
|
+
// `ArraySpeciesCreate` abstract operation
|
1646
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1647
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1648
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1195
1649
|
};
|
1196
1650
|
|
1197
1651
|
var SPECIES = wellKnownSymbol('species');
|
@@ -1213,6 +1667,7 @@ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
|
1213
1667
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1214
1668
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1215
1669
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1670
|
+
var TypeError$1 = global_1.TypeError;
|
1216
1671
|
|
1217
1672
|
// We can't use this feature detection in V8 since it causes
|
1218
1673
|
// deoptimization and serious performance degradation
|
@@ -1236,7 +1691,7 @@ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
1236
1691
|
// `Array.prototype.concat` method
|
1237
1692
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1238
1693
|
// with adding support of @@isConcatSpreadable and @@species
|
1239
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1694
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1240
1695
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1241
1696
|
concat: function concat(arg) {
|
1242
1697
|
var O = toObject(this);
|
@@ -1246,11 +1701,11 @@ _export({ target: 'Array', proto: true, forced: FORCED }, {
|
|
1246
1701
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1247
1702
|
E = i === -1 ? O : arguments[i];
|
1248
1703
|
if (isConcatSpreadable(E)) {
|
1249
|
-
len =
|
1250
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1704
|
+
len = lengthOfArrayLike(E);
|
1705
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1251
1706
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1252
1707
|
} else {
|
1253
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1708
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1254
1709
|
createProperty(A, n++, E);
|
1255
1710
|
}
|
1256
1711
|
}
|
@@ -1455,7 +1910,7 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
1455
1910
|
const __vue_script__ = script;
|
1456
1911
|
|
1457
1912
|
/* template */
|
1458
|
-
var __vue_render__ = function() {
|
1913
|
+
var __vue_render__ = function () {
|
1459
1914
|
var _vm = this;
|
1460
1915
|
var _h = _vm.$createElement;
|
1461
1916
|
var _c = _vm._self._c || _h;
|
@@ -1493,4 +1948,4 @@ __vue_render__._withStripped = true;
|
|
1493
1948
|
undefined
|
1494
1949
|
);
|
1495
1950
|
|
1496
|
-
export default
|
1951
|
+
export { __vue_component__ as default };
|