diff --git a/Makefile b/Makefile index 5538de7e5c63..ea1a2aaa620e 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ prepublish-build: $(MAKEJS) prepublish-build prepublish: - $(MAKEJS) prepublish-build + $(MAKEJS) prepublish bootstrap-only: $(MAKEJS) bootstrap-only diff --git a/Makefile.js b/Makefile.js index 232569aaf823..ea4a42607089 100644 --- a/Makefile.js +++ b/Makefile.js @@ -22,23 +22,6 @@ var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1); var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; -var check = function (it) { - return it && it.Math == Math && it; -}; - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global$f = - // eslint-disable-next-line es-x/no-global-this -- safe - check(typeof globalThis == 'object' && globalThis) || - check(typeof window == 'object' && window) || - // eslint-disable-next-line no-restricted-globals -- safe - check(typeof self == 'object' && self) || - check(typeof commonjsGlobal == 'object' && commonjsGlobal) || - // eslint-disable-next-line no-new-func -- fallback - (function () { return this; })() || Function('return this')(); - -var objectGetOwnPropertyDescriptor = {}; - var fails$p = function (exec) { try { return !!exec(); @@ -49,15 +32,7 @@ var fails$p = function (exec) { var fails$o = fails$p; -// Detect IE8's incomplete defineProperty implementation -var descriptors = !fails$o(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing - return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; -}); - -var fails$n = fails$p; - -var functionBindNative = !fails$n(function () { +var functionBindNative = !fails$o(function () { // eslint-disable-next-line es-x/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe @@ -66,49 +41,16 @@ var functionBindNative = !fails$n(function () { var NATIVE_BIND$3 = functionBindNative; -var call$f = Function.prototype.call; - -var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () { - return call$f.apply(call$f, arguments); -}; - -var objectPropertyIsEnumerable = {}; - -var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe -var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; - -// Nashorn ~ JDK8 bug -var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1); - -// `Object.prototype.propertyIsEnumerable` method implementation -// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable -objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { - var descriptor = getOwnPropertyDescriptor$1(this, V); - return !!descriptor && descriptor.enumerable; -} : $propertyIsEnumerable; - -var createPropertyDescriptor$5 = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - -var NATIVE_BIND$2 = functionBindNative; - var FunctionPrototype$2 = Function.prototype; var bind$2 = FunctionPrototype$2.bind; -var call$e = FunctionPrototype$2.call; -var uncurryThis$s = NATIVE_BIND$2 && bind$2.bind(call$e, call$e); +var call$f = FunctionPrototype$2.call; +var uncurryThis$s = NATIVE_BIND$3 && bind$2.bind(call$f, call$f); -var functionUncurryThis = NATIVE_BIND$2 ? function (fn) { +var functionUncurryThis = NATIVE_BIND$3 ? function (fn) { return fn && uncurryThis$s(fn); } : function (fn) { return fn && function () { - return call$e.apply(fn, arguments); + return call$f.apply(fn, arguments); }; }; @@ -122,14 +64,14 @@ var classofRaw$1 = function (it) { }; var uncurryThis$q = functionUncurryThis; -var fails$m = fails$p; +var fails$n = fails$p; var classof$7 = classofRaw$1; var $Object$4 = Object; var split = uncurryThis$q(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings -var indexedObject = fails$m(function () { +var indexedObject = fails$n(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$4('z').propertyIsEnumerable(0); @@ -154,42 +96,114 @@ var toIndexedObject$6 = function (it) { return IndexedObject$1(requireObjectCoercible$7(it)); }; +var check = function (it) { + return it && it.Math == Math && it; +}; + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global$f = + // eslint-disable-next-line es-x/no-global-this -- safe + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + // eslint-disable-next-line no-restricted-globals -- safe + check(typeof self == 'object' && self) || + check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || Function('return this')(); + +var shared$4 = {exports: {}}; + +var global$e = global$f; + +// eslint-disable-next-line es-x/no-object-defineproperty -- safe +var defineProperty$6 = Object.defineProperty; + +var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$6(global$e, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$e[key] = value; + } return value; +}; + +var global$d = global$f; +var defineGlobalProperty$2 = defineGlobalProperty$3; + +var SHARED = '__core-js_shared__'; +var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {}); + +var sharedStore = store$3; + +var store$2 = sharedStore; + +(shared$4.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: '3.23.4', + mode: 'global', + copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE', + source: 'https://github.com/zloirock/core-js' +}); + +var requireObjectCoercible$6 = requireObjectCoercible$8; + +var $Object$3 = Object; + +// `ToObject` abstract operation +// https://tc39.es/ecma262/#sec-toobject +var toObject$7 = function (argument) { + return $Object$3(requireObjectCoercible$6(argument)); +}; + +var uncurryThis$p = functionUncurryThis; +var toObject$6 = toObject$7; + +var hasOwnProperty = uncurryThis$p({}.hasOwnProperty); + +// `HasOwnProperty` abstract operation +// https://tc39.es/ecma262/#sec-hasownproperty +// eslint-disable-next-line es-x/no-object-hasown -- safe +var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject$6(it), key); +}; + +var uncurryThis$o = functionUncurryThis; + +var id = 0; +var postfix = Math.random(); +var toString$b = uncurryThis$o(1.0.toString); + +var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$b(++id + postfix, 36); +}; + // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable var isCallable$m = function (argument) { return typeof argument == 'function'; }; +var global$c = global$f; var isCallable$l = isCallable$m; -var isObject$d = function (it) { - return typeof it == 'object' ? it !== null : isCallable$l(it); -}; - -var global$e = global$f; -var isCallable$k = isCallable$m; - var aFunction = function (argument) { - return isCallable$k(argument) ? argument : undefined; + return isCallable$l(argument) ? argument : undefined; }; var getBuiltIn$8 = function (namespace, method) { - return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method]; + return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method]; }; -var uncurryThis$p = functionUncurryThis; - -var objectIsPrototypeOf = uncurryThis$p({}.isPrototypeOf); - var getBuiltIn$7 = getBuiltIn$8; var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || ''; -var global$d = global$f; +var global$b = global$f; var userAgent$2 = engineUserAgent; -var process$1 = global$d.process; -var Deno = global$d.Deno; +var process$1 = global$b.process; +var Deno = global$b.Deno; var versions = process$1 && process$1.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version; @@ -216,10 +230,10 @@ var engineV8Version = version; /* eslint-disable es-x/no-symbol -- required for testing */ var V8_VERSION$2 = engineV8Version; -var fails$l = fails$p; +var fails$m = fails$p; // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing -var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$l(function () { +var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$m(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances @@ -236,25 +250,127 @@ var useSymbolAsUid = NATIVE_SYMBOL$2 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; +var global$a = global$f; +var shared$3 = shared$4.exports; +var hasOwn$b = hasOwnProperty_1; +var uid$1 = uid$2; +var NATIVE_SYMBOL$1 = nativeSymbol; +var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + +var WellKnownSymbolsStore = shared$3('wks'); +var Symbol$1 = global$a.Symbol; +var symbolFor = Symbol$1 && Symbol$1['for']; +var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + +var wellKnownSymbol$i = function (name) { + if (!hasOwn$b(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) { + var description = 'Symbol.' + name; + if (NATIVE_SYMBOL$1 && hasOwn$b(Symbol$1, name)) { + WellKnownSymbolsStore[name] = Symbol$1[name]; + } else if (USE_SYMBOL_AS_UID$1 && symbolFor) { + WellKnownSymbolsStore[name] = symbolFor(description); + } else { + WellKnownSymbolsStore[name] = createWellKnownSymbol(description); + } + } return WellKnownSymbolsStore[name]; +}; + +var isCallable$k = isCallable$m; + +var isObject$d = function (it) { + return typeof it == 'object' ? it !== null : isCallable$k(it); +}; + +var isObject$c = isObject$d; + +var $String$3 = String; +var $TypeError$c = TypeError; + +// `Assert: Type(argument) is Object` +var anObject$b = function (argument) { + if (isObject$c(argument)) return argument; + throw $TypeError$c($String$3(argument) + ' is not an object'); +}; + +var objectDefineProperties = {}; + +var fails$l = fails$p; + +// Detect IE8's incomplete defineProperty implementation +var descriptors = !fails$l(function () { + // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; +}); + +var DESCRIPTORS$c = descriptors; +var fails$k = fails$p; + +// V8 ~ Chrome 36- +// https://bugs.chromium.org/p/v8/issues/detail?id=3334 +var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () { + // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + return Object.defineProperty(function () { /* empty */ }, 'prototype', { + value: 42, + writable: false + }).prototype != 42; +}); + +var objectDefineProperty = {}; + +var global$9 = global$f; +var isObject$b = isObject$d; + +var document$1 = global$9.document; +// typeof document.createElement is 'object' in old IE +var EXISTS$1 = isObject$b(document$1) && isObject$b(document$1.createElement); + +var documentCreateElement$1 = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; +}; + +var DESCRIPTORS$b = descriptors; +var fails$j = fails$p; +var createElement = documentCreateElement$1; + +// Thanks to IE8 for its funny defineProperty +var ie8DomDefine = !DESCRIPTORS$b && !fails$j(function () { + // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; +}); + +var NATIVE_BIND$2 = functionBindNative; + +var call$e = Function.prototype.call; + +var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () { + return call$e.apply(call$e, arguments); +}; + +var uncurryThis$n = functionUncurryThis; + +var objectIsPrototypeOf = uncurryThis$n({}.isPrototypeOf); + var getBuiltIn$6 = getBuiltIn$8; var isCallable$j = isCallable$m; var isPrototypeOf$3 = objectIsPrototypeOf; -var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; +var USE_SYMBOL_AS_UID = useSymbolAsUid; -var $Object$3 = Object; +var $Object$2 = Object; -var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) { +var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$6('Symbol'); - return isCallable$j($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it)); + return isCallable$j($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it)); }; -var $String$3 = String; +var $String$2 = String; var tryToString$3 = function (argument) { try { - return $String$3(argument); + return $String$2(argument); } catch (error) { return 'Object'; } @@ -263,12 +379,12 @@ var tryToString$3 = function (argument) { var isCallable$i = isCallable$m; var tryToString$2 = tryToString$3; -var $TypeError$c = TypeError; +var $TypeError$b = TypeError; // `Assert: IsCallable(argument) is true` var aCallable$3 = function (argument) { if (isCallable$i(argument)) return argument; - throw $TypeError$c(tryToString$2(argument) + ' is not a function'); + throw $TypeError$b(tryToString$2(argument) + ' is not a function'); }; var aCallable$2 = aCallable$3; @@ -282,133 +398,41 @@ var getMethod$5 = function (V, P) { var call$d = functionCall; var isCallable$h = isCallable$m; -var isObject$c = isObject$d; +var isObject$a = isObject$d; -var $TypeError$b = TypeError; +var $TypeError$a = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$c(val = call$d(fn, input))) return val; - if (isCallable$h(fn = input.valueOf) && !isObject$c(val = call$d(fn, input))) return val; - if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$c(val = call$d(fn, input))) return val; - throw $TypeError$b("Can't convert object to primitive value"); + if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$a(val = call$d(fn, input))) return val; + if (isCallable$h(fn = input.valueOf) && !isObject$a(val = call$d(fn, input))) return val; + if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$a(val = call$d(fn, input))) return val; + throw $TypeError$a("Can't convert object to primitive value"); }; -var shared$4 = {exports: {}}; - -var global$c = global$f; +var call$c = functionCall; +var isObject$9 = isObject$d; +var isSymbol$2 = isSymbol$3; +var getMethod$4 = getMethod$5; +var ordinaryToPrimitive = ordinaryToPrimitive$1; +var wellKnownSymbol$h = wellKnownSymbol$i; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe -var defineProperty$6 = Object.defineProperty; - -var defineGlobalProperty$3 = function (key, value) { - try { - defineProperty$6(global$c, key, { value: value, configurable: true, writable: true }); - } catch (error) { - global$c[key] = value; - } return value; -}; - -var global$b = global$f; -var defineGlobalProperty$2 = defineGlobalProperty$3; - -var SHARED = '__core-js_shared__'; -var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {}); - -var sharedStore = store$3; - -var store$2 = sharedStore; - -(shared$4.exports = function (key, value) { - return store$2[key] || (store$2[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.23.4', - mode: 'global', - copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE', - source: 'https://github.com/zloirock/core-js' -}); - -var requireObjectCoercible$6 = requireObjectCoercible$8; - -var $Object$2 = Object; - -// `ToObject` abstract operation -// https://tc39.es/ecma262/#sec-toobject -var toObject$7 = function (argument) { - return $Object$2(requireObjectCoercible$6(argument)); -}; - -var uncurryThis$o = functionUncurryThis; -var toObject$6 = toObject$7; - -var hasOwnProperty = uncurryThis$o({}.hasOwnProperty); - -// `HasOwnProperty` abstract operation -// https://tc39.es/ecma262/#sec-hasownproperty -// eslint-disable-next-line es-x/no-object-hasown -- safe -var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { - return hasOwnProperty(toObject$6(it), key); -}; - -var uncurryThis$n = functionUncurryThis; - -var id = 0; -var postfix = Math.random(); -var toString$b = uncurryThis$n(1.0.toString); - -var uid$2 = function (key) { - return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$b(++id + postfix, 36); -}; - -var global$a = global$f; -var shared$3 = shared$4.exports; -var hasOwn$b = hasOwnProperty_1; -var uid$1 = uid$2; -var NATIVE_SYMBOL$1 = nativeSymbol; -var USE_SYMBOL_AS_UID = useSymbolAsUid; - -var WellKnownSymbolsStore = shared$3('wks'); -var Symbol$1 = global$a.Symbol; -var symbolFor = Symbol$1 && Symbol$1['for']; -var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; - -var wellKnownSymbol$i = function (name) { - if (!hasOwn$b(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) { - var description = 'Symbol.' + name; - if (NATIVE_SYMBOL$1 && hasOwn$b(Symbol$1, name)) { - WellKnownSymbolsStore[name] = Symbol$1[name]; - } else if (USE_SYMBOL_AS_UID && symbolFor) { - WellKnownSymbolsStore[name] = symbolFor(description); - } else { - WellKnownSymbolsStore[name] = createWellKnownSymbol(description); - } - } return WellKnownSymbolsStore[name]; -}; - -var call$c = functionCall; -var isObject$b = isObject$d; -var isSymbol$2 = isSymbol$3; -var getMethod$4 = getMethod$5; -var ordinaryToPrimitive = ordinaryToPrimitive$1; -var wellKnownSymbol$h = wellKnownSymbol$i; - -var $TypeError$a = TypeError; +var $TypeError$9 = TypeError; var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$1 = function (input, pref) { - if (!isObject$b(input) || isSymbol$2(input)) return input; + if (!isObject$9(input) || isSymbol$2(input)) return input; var exoticToPrim = getMethod$4(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call$c(exoticToPrim, input, pref); - if (!isObject$b(result) || isSymbol$2(result)) return result; - throw $TypeError$a("Can't convert object to primitive value"); + if (!isObject$9(result) || isSymbol$2(result)) return result; + throw $TypeError$9("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); @@ -424,101 +448,29 @@ var toPropertyKey$3 = function (argument) { return isSymbol$1(key) ? key : key + ''; }; -var global$9 = global$f; -var isObject$a = isObject$d; - -var document$1 = global$9.document; -// typeof document.createElement is 'object' in old IE -var EXISTS$1 = isObject$a(document$1) && isObject$a(document$1.createElement); - -var documentCreateElement$1 = function (it) { - return EXISTS$1 ? document$1.createElement(it) : {}; -}; - -var DESCRIPTORS$c = descriptors; -var fails$k = fails$p; -var createElement = documentCreateElement$1; - -// Thanks to IE8 for its funny defineProperty -var ie8DomDefine = !DESCRIPTORS$c && !fails$k(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing - return Object.defineProperty(createElement('div'), 'a', { - get: function () { return 7; } - }).a != 7; -}); - -var DESCRIPTORS$b = descriptors; -var call$b = functionCall; -var propertyIsEnumerableModule = objectPropertyIsEnumerable; -var createPropertyDescriptor$4 = createPropertyDescriptor$5; -var toIndexedObject$5 = toIndexedObject$6; -var toPropertyKey$2 = toPropertyKey$3; -var hasOwn$a = hasOwnProperty_1; -var IE8_DOM_DEFINE$1 = ie8DomDefine; - -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; - -// `Object.getOwnPropertyDescriptor` method -// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject$5(O); - P = toPropertyKey$2(P); - if (IE8_DOM_DEFINE$1) try { - return $getOwnPropertyDescriptor$1(O, P); - } catch (error) { /* empty */ } - if (hasOwn$a(O, P)) return createPropertyDescriptor$4(!call$b(propertyIsEnumerableModule.f, O, P), O[P]); -}; - -var objectDefineProperty = {}; - var DESCRIPTORS$a = descriptors; -var fails$j = fails$p; - -// V8 ~ Chrome 36- -// https://bugs.chromium.org/p/v8/issues/detail?id=3334 -var v8PrototypeDefineBug = DESCRIPTORS$a && fails$j(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing - return Object.defineProperty(function () { /* empty */ }, 'prototype', { - value: 42, - writable: false - }).prototype != 42; -}); - -var isObject$9 = isObject$d; - -var $String$2 = String; -var $TypeError$9 = TypeError; - -// `Assert: Type(argument) is Object` -var anObject$b = function (argument) { - if (isObject$9(argument)) return argument; - throw $TypeError$9($String$2(argument) + ' is not an object'); -}; - -var DESCRIPTORS$9 = descriptors; -var IE8_DOM_DEFINE = ie8DomDefine; +var IE8_DOM_DEFINE$1 = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$a = anObject$b; -var toPropertyKey$1 = toPropertyKey$3; +var toPropertyKey$2 = toPropertyKey$3; var $TypeError$8 = TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE$1 = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty -objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { +objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { anObject$a(O); - P = toPropertyKey$1(P); + P = toPropertyKey$2(P); anObject$a(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { - var current = $getOwnPropertyDescriptor(O, P); + var current = $getOwnPropertyDescriptor$1(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { @@ -530,9 +482,9 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { anObject$a(O); - P = toPropertyKey$1(P); + P = toPropertyKey$2(P); anObject$a(Attributes); - if (IE8_DOM_DEFINE) try { + if (IE8_DOM_DEFINE$1) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw $TypeError$8('Accessors not supported'); @@ -540,281 +492,66 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de return O; }; -var DESCRIPTORS$8 = descriptors; -var definePropertyModule$5 = objectDefineProperty; -var createPropertyDescriptor$3 = createPropertyDescriptor$5; +var ceil = Math.ceil; +var floor$2 = Math.floor; -var createNonEnumerableProperty$7 = DESCRIPTORS$8 ? function (object, key, value) { - return definePropertyModule$5.f(object, key, createPropertyDescriptor$3(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; +// `Math.trunc` method +// https://tc39.es/ecma262/#sec-math.trunc +// eslint-disable-next-line es-x/no-math-trunc -- safe +var mathTrunc = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor$2 : ceil)(n); }; -var makeBuiltIn$3 = {exports: {}}; - -var DESCRIPTORS$7 = descriptors; -var hasOwn$9 = hasOwnProperty_1; - -var FunctionPrototype$1 = Function.prototype; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe -var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor; - -var EXISTS = hasOwn$9(FunctionPrototype$1, 'name'); -// additional protection from minified / mangled / dropped function names -var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; -var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable)); +var trunc = mathTrunc; -var functionName = { - EXISTS: EXISTS, - PROPER: PROPER, - CONFIGURABLE: CONFIGURABLE +// `ToIntegerOrInfinity` abstract operation +// https://tc39.es/ecma262/#sec-tointegerorinfinity +var toIntegerOrInfinity$5 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); }; -var uncurryThis$m = functionUncurryThis; -var isCallable$g = isCallable$m; -var store$1 = sharedStore; - -var functionToString = uncurryThis$m(Function.toString); - -// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper -if (!isCallable$g(store$1.inspectSource)) { - store$1.inspectSource = function (it) { - return functionToString(it); - }; -} +var toIntegerOrInfinity$4 = toIntegerOrInfinity$5; -var inspectSource$3 = store$1.inspectSource; +var max$5 = Math.max; +var min$4 = Math.min; -var global$8 = global$f; -var isCallable$f = isCallable$m; -var inspectSource$2 = inspectSource$3; +// Helper for a popular repeating case of the spec: +// Let integer be ? ToInteger(index). +// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). +var toAbsoluteIndex$4 = function (index, length) { + var integer = toIntegerOrInfinity$4(index); + return integer < 0 ? max$5(integer + length, 0) : min$4(integer, length); +}; -var WeakMap$1 = global$8.WeakMap; +var toIntegerOrInfinity$3 = toIntegerOrInfinity$5; -var nativeWeakMap = isCallable$f(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1)); +var min$3 = Math.min; -var shared$2 = shared$4.exports; -var uid = uid$2; +// `ToLength` abstract operation +// https://tc39.es/ecma262/#sec-tolength +var toLength$4 = function (argument) { + return argument > 0 ? min$3(toIntegerOrInfinity$3(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 +}; -var keys$1 = shared$2('keys'); +var toLength$3 = toLength$4; -var sharedKey$3 = function (key) { - return keys$1[key] || (keys$1[key] = uid(key)); +// `LengthOfArrayLike` abstract operation +// https://tc39.es/ecma262/#sec-lengthofarraylike +var lengthOfArrayLike$7 = function (obj) { + return toLength$3(obj.length); }; -var hiddenKeys$4 = {}; - -var NATIVE_WEAK_MAP = nativeWeakMap; -var global$7 = global$f; -var uncurryThis$l = functionUncurryThis; -var isObject$8 = isObject$d; -var createNonEnumerableProperty$6 = createNonEnumerableProperty$7; -var hasOwn$8 = hasOwnProperty_1; -var shared$1 = sharedStore; -var sharedKey$2 = sharedKey$3; -var hiddenKeys$3 = hiddenKeys$4; - -var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; -var TypeError$1 = global$7.TypeError; -var WeakMap = global$7.WeakMap; -var set$1, get, has; - -var enforce = function (it) { - return has(it) ? get(it) : set$1(it, {}); -}; - -var getterFor = function (TYPE) { - return function (it) { - var state; - if (!isObject$8(it) || (state = get(it)).type !== TYPE) { - throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); - } return state; - }; -}; - -if (NATIVE_WEAK_MAP || shared$1.state) { - var store = shared$1.state || (shared$1.state = new WeakMap()); - var wmget = uncurryThis$l(store.get); - var wmhas = uncurryThis$l(store.has); - var wmset = uncurryThis$l(store.set); - set$1 = function (it, metadata) { - if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - wmset(store, it, metadata); - return metadata; - }; - get = function (it) { - return wmget(store, it) || {}; - }; - has = function (it) { - return wmhas(store, it); - }; -} else { - var STATE = sharedKey$2('state'); - hiddenKeys$3[STATE] = true; - set$1 = function (it, metadata) { - if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - createNonEnumerableProperty$6(it, STATE, metadata); - return metadata; - }; - get = function (it) { - return hasOwn$8(it, STATE) ? it[STATE] : {}; - }; - has = function (it) { - return hasOwn$8(it, STATE); - }; -} - -var internalState = { - set: set$1, - get: get, - has: has, - enforce: enforce, - getterFor: getterFor -}; - -var fails$i = fails$p; -var isCallable$e = isCallable$m; -var hasOwn$7 = hasOwnProperty_1; -var DESCRIPTORS$6 = descriptors; -var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; -var inspectSource$1 = inspectSource$3; -var InternalStateModule$1 = internalState; - -var enforceInternalState$1 = InternalStateModule$1.enforce; -var getInternalState$3 = InternalStateModule$1.get; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe -var defineProperty$5 = Object.defineProperty; - -var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$i(function () { - return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; -}); - -var TEMPLATE = String(String).split('String'); - -var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { - if (String(name).slice(0, 7) === 'Symbol(') { - name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; - } - if (options && options.getter) name = 'get ' + name; - if (options && options.setter) name = 'set ' + name; - if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) { - if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true }); - else value.name = name; - } - if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) { - defineProperty$5(value, 'length', { value: options.arity }); - } - try { - if (options && hasOwn$7(options, 'constructor') && options.constructor) { - if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false }); - // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable - } else if (value.prototype) value.prototype = undefined; - } catch (error) { /* empty */ } - var state = enforceInternalState$1(value); - if (!hasOwn$7(state, 'source')) { - state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); - } return value; -}; - -// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -// eslint-disable-next-line no-extend-native -- required -Function.prototype.toString = makeBuiltIn$2(function toString() { - return isCallable$e(this) && getInternalState$3(this).source || inspectSource$1(this); -}, 'toString'); - -var isCallable$d = isCallable$m; -var definePropertyModule$4 = objectDefineProperty; -var makeBuiltIn$1 = makeBuiltIn$3.exports; -var defineGlobalProperty$1 = defineGlobalProperty$3; - -var defineBuiltIn$5 = function (O, key, value, options) { - if (!options) options = {}; - var simple = options.enumerable; - var name = options.name !== undefined ? options.name : key; - if (isCallable$d(value)) makeBuiltIn$1(value, name, options); - if (options.global) { - if (simple) O[key] = value; - else defineGlobalProperty$1(key, value); - } else { - try { - if (!options.unsafe) delete O[key]; - else if (O[key]) simple = true; - } catch (error) { /* empty */ } - if (simple) O[key] = value; - else definePropertyModule$4.f(O, key, { - value: value, - enumerable: false, - configurable: !options.nonConfigurable, - writable: !options.nonWritable - }); - } return O; -}; - -var objectGetOwnPropertyNames = {}; - -var ceil = Math.ceil; -var floor$2 = Math.floor; - -// `Math.trunc` method -// https://tc39.es/ecma262/#sec-math.trunc -// eslint-disable-next-line es-x/no-math-trunc -- safe -var mathTrunc = Math.trunc || function trunc(x) { - var n = +x; - return (n > 0 ? floor$2 : ceil)(n); -}; - -var trunc = mathTrunc; - -// `ToIntegerOrInfinity` abstract operation -// https://tc39.es/ecma262/#sec-tointegerorinfinity -var toIntegerOrInfinity$5 = function (argument) { - var number = +argument; - // eslint-disable-next-line no-self-compare -- NaN check - return number !== number || number === 0 ? 0 : trunc(number); -}; - -var toIntegerOrInfinity$4 = toIntegerOrInfinity$5; - -var max$5 = Math.max; -var min$4 = Math.min; - -// Helper for a popular repeating case of the spec: -// Let integer be ? ToInteger(index). -// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). -var toAbsoluteIndex$4 = function (index, length) { - var integer = toIntegerOrInfinity$4(index); - return integer < 0 ? max$5(integer + length, 0) : min$4(integer, length); -}; - -var toIntegerOrInfinity$3 = toIntegerOrInfinity$5; - -var min$3 = Math.min; - -// `ToLength` abstract operation -// https://tc39.es/ecma262/#sec-tolength -var toLength$4 = function (argument) { - return argument > 0 ? min$3(toIntegerOrInfinity$3(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 -}; - -var toLength$3 = toLength$4; - -// `LengthOfArrayLike` abstract operation -// https://tc39.es/ecma262/#sec-lengthofarraylike -var lengthOfArrayLike$7 = function (obj) { - return toLength$3(obj.length); -}; - -var toIndexedObject$4 = toIndexedObject$6; -var toAbsoluteIndex$3 = toAbsoluteIndex$4; -var lengthOfArrayLike$6 = lengthOfArrayLike$7; +var toIndexedObject$5 = toIndexedObject$6; +var toAbsoluteIndex$3 = toAbsoluteIndex$4; +var lengthOfArrayLike$6 = lengthOfArrayLike$7; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$3 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { - var O = toIndexedObject$4($this); + var O = toIndexedObject$5($this); var length = lengthOfArrayLike$6(O); var index = toAbsoluteIndex$3(fromIndex, length); var value; @@ -840,22 +577,24 @@ var arrayIncludes = { indexOf: createMethod$3(false) }; -var uncurryThis$k = functionUncurryThis; -var hasOwn$6 = hasOwnProperty_1; -var toIndexedObject$3 = toIndexedObject$6; +var hiddenKeys$4 = {}; + +var uncurryThis$m = functionUncurryThis; +var hasOwn$a = hasOwnProperty_1; +var toIndexedObject$4 = toIndexedObject$6; var indexOf$2 = arrayIncludes.indexOf; -var hiddenKeys$2 = hiddenKeys$4; +var hiddenKeys$3 = hiddenKeys$4; -var push$4 = uncurryThis$k([].push); +var push$4 = uncurryThis$m([].push); var objectKeysInternal = function (object, names) { - var O = toIndexedObject$3(object); + var O = toIndexedObject$4(object); var i = 0; var result = []; var key; - for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$4(result, key); + for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$4(result, key); // Don't enum bug & hidden keys - while (names.length > i) if (hasOwn$6(O, key = names[i++])) { + while (names.length > i) if (hasOwn$a(O, key = names[i++])) { ~indexOf$2(result, key) || push$4(result, key); } return result; @@ -875,279 +614,62 @@ var enumBugKeys$3 = [ var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$2 = enumBugKeys$3; -var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype'); - -// `Object.getOwnPropertyNames` method -// https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe -objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return internalObjectKeys$1(O, hiddenKeys$1); +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +// eslint-disable-next-line es-x/no-object-keys -- safe +var objectKeys$1 = Object.keys || function keys(O) { + return internalObjectKeys$1(O, enumBugKeys$2); }; -var objectGetOwnPropertySymbols = {}; +var DESCRIPTORS$9 = descriptors; +var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; +var definePropertyModule$5 = objectDefineProperty; +var anObject$9 = anObject$b; +var toIndexedObject$3 = toIndexedObject$6; +var objectKeys = objectKeys$1; -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe -objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; +// `Object.defineProperties` method +// https://tc39.es/ecma262/#sec-object.defineproperties +// eslint-disable-next-line es-x/no-object-defineproperties -- safe +objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$9(O); + var props = toIndexedObject$3(Properties); + var keys = objectKeys(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) definePropertyModule$5.f(O, key = keys[index++], props[key]); + return O; +}; var getBuiltIn$5 = getBuiltIn$8; -var uncurryThis$j = functionUncurryThis; -var getOwnPropertyNamesModule = objectGetOwnPropertyNames; -var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; -var anObject$9 = anObject$b; -var concat$1 = uncurryThis$j([].concat); +var html$1 = getBuiltIn$5('document', 'documentElement'); -// all object keys, includes non-enumerable and symbols -var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule.f(anObject$9(it)); - var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; - return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys; -}; +var shared$2 = shared$4.exports; +var uid = uid$2; -var hasOwn$5 = hasOwnProperty_1; -var ownKeys = ownKeys$1; -var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; -var definePropertyModule$3 = objectDefineProperty; +var keys$1 = shared$2('keys'); -var copyConstructorProperties$2 = function (target, source, exceptions) { - var keys = ownKeys(source); - var defineProperty = definePropertyModule$3.f; - var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) { - defineProperty(target, key, getOwnPropertyDescriptor(source, key)); - } - } +var sharedKey$3 = function (key) { + return keys$1[key] || (keys$1[key] = uid(key)); }; -var fails$h = fails$p; -var isCallable$c = isCallable$m; +/* global ActiveXObject -- old IE, WSH */ -var replacement = /#|\.prototype\./; - -var isForced$2 = function (feature, detection) { - var value = data[normalize$1(feature)]; - return value == POLYFILL ? true - : value == NATIVE ? false - : isCallable$c(detection) ? fails$h(detection) - : !!detection; -}; - -var normalize$1 = isForced$2.normalize = function (string) { - return String(string).replace(replacement, '.').toLowerCase(); -}; - -var data = isForced$2.data = {}; -var NATIVE = isForced$2.NATIVE = 'N'; -var POLYFILL = isForced$2.POLYFILL = 'P'; - -var isForced_1 = isForced$2; - -var global$6 = global$f; -var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; -var createNonEnumerableProperty$5 = createNonEnumerableProperty$7; -var defineBuiltIn$4 = defineBuiltIn$5; -var defineGlobalProperty = defineGlobalProperty$3; -var copyConstructorProperties$1 = copyConstructorProperties$2; -var isForced$1 = isForced_1; - -/* - options.target - name of the target object - options.global - target is the global object - options.stat - export as static methods of target - options.proto - export as prototype methods of target - options.real - real prototype method for the `pure` version - options.forced - export even if the native feature is available - options.bind - bind methods to the target, required for the `pure` version - options.wrap - wrap constructors to preventing global pollution, required for the `pure` version - options.unsafe - use the simple assignment of property instead of delete + defineProperty - options.sham - add a flag to not completely full polyfills - options.enumerable - export as enumerable property - options.dontCallGetSet - prevent calling a getter on target - options.name - the .name of the function if it does not match the key -*/ -var _export = function (options, source) { - var TARGET = options.target; - var GLOBAL = options.global; - var STATIC = options.stat; - var FORCED, target, key, targetProperty, sourceProperty, descriptor; - if (GLOBAL) { - target = global$6; - } else if (STATIC) { - target = global$6[TARGET] || defineGlobalProperty(TARGET, {}); - } else { - target = (global$6[TARGET] || {}).prototype; - } - if (target) for (key in source) { - sourceProperty = source[key]; - if (options.dontCallGetSet) { - descriptor = getOwnPropertyDescriptor(target, key); - targetProperty = descriptor && descriptor.value; - } else targetProperty = target[key]; - FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); - // contained in target - if (!FORCED && targetProperty !== undefined) { - if (typeof sourceProperty == typeof targetProperty) continue; - copyConstructorProperties$1(sourceProperty, targetProperty); - } - // add a flag to not completely full polyfills - if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty$5(sourceProperty, 'sham', true); - } - defineBuiltIn$4(target, key, sourceProperty, options); - } -}; - -var wellKnownSymbol$g = wellKnownSymbol$i; - -var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag'); -var test$2 = {}; - -test$2[TO_STRING_TAG$2] = 'z'; - -var toStringTagSupport = String(test$2) === '[object z]'; - -var TO_STRING_TAG_SUPPORT = toStringTagSupport; -var isCallable$b = isCallable$m; -var classofRaw = classofRaw$1; -var wellKnownSymbol$f = wellKnownSymbol$i; - -var TO_STRING_TAG$1 = wellKnownSymbol$f('toStringTag'); -var $Object$1 = Object; - -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; - -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { - try { - return it[key]; - } catch (error) { /* empty */ } -}; - -// getting tag from ES6+ `Object.prototype.toString` -var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && isCallable$b(O.callee) ? 'Arguments' : result; -}; - -var classof$5 = classof$6; - -var $String$1 = String; - -var toString$a = function (argument) { - if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); - return $String$1(argument); -}; - -var anObject$8 = anObject$b; - -// `RegExp.prototype.flags` getter implementation -// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -var regexpFlags$1 = function () { - var that = anObject$8(this); - var result = ''; - if (that.hasIndices) result += 'd'; - if (that.global) result += 'g'; - if (that.ignoreCase) result += 'i'; - if (that.multiline) result += 'm'; - if (that.dotAll) result += 's'; - if (that.unicode) result += 'u'; - if (that.unicodeSets) result += 'v'; - if (that.sticky) result += 'y'; - return result; -}; - -var fails$g = fails$p; -var global$5 = global$f; - -// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError -var $RegExp$2 = global$5.RegExp; - -var UNSUPPORTED_Y$3 = fails$g(function () { - var re = $RegExp$2('a', 'y'); - re.lastIndex = 2; - return re.exec('abcd') != null; -}); - -// UC Browser bug -// https://github.com/zloirock/core-js/issues/1008 -var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$g(function () { - return !$RegExp$2('a', 'y').sticky; -}); - -var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$g(function () { - // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 - var re = $RegExp$2('^r', 'gy'); - re.lastIndex = 2; - return re.exec('str') != null; -}); - -var regexpStickyHelpers = { - BROKEN_CARET: BROKEN_CARET, - MISSED_STICKY: MISSED_STICKY$1, - UNSUPPORTED_Y: UNSUPPORTED_Y$3 -}; - -var objectDefineProperties = {}; - -var internalObjectKeys = objectKeysInternal; -var enumBugKeys$1 = enumBugKeys$3; - -// `Object.keys` method -// https://tc39.es/ecma262/#sec-object.keys -// eslint-disable-next-line es-x/no-object-keys -- safe -var objectKeys$1 = Object.keys || function keys(O) { - return internalObjectKeys(O, enumBugKeys$1); -}; - -var DESCRIPTORS$5 = descriptors; -var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; -var definePropertyModule$2 = objectDefineProperty; -var anObject$7 = anObject$b; -var toIndexedObject$2 = toIndexedObject$6; -var objectKeys = objectKeys$1; - -// `Object.defineProperties` method -// https://tc39.es/ecma262/#sec-object.defineproperties -// eslint-disable-next-line es-x/no-object-defineproperties -- safe -objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$7(O); - var props = toIndexedObject$2(Properties); - var keys = objectKeys(Properties); - var length = keys.length; - var index = 0; - var key; - while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]); - return O; -}; - -var getBuiltIn$4 = getBuiltIn$8; - -var html$1 = getBuiltIn$4('document', 'documentElement'); - -/* global ActiveXObject -- old IE, WSH */ - -var anObject$6 = anObject$b; -var definePropertiesModule = objectDefineProperties; -var enumBugKeys = enumBugKeys$3; -var hiddenKeys = hiddenKeys$4; -var html = html$1; -var documentCreateElement = documentCreateElement$1; -var sharedKey$1 = sharedKey$3; +var anObject$8 = anObject$b; +var definePropertiesModule = objectDefineProperties; +var enumBugKeys$1 = enumBugKeys$3; +var hiddenKeys$2 = hiddenKeys$4; +var html = html$1; +var documentCreateElement = documentCreateElement$1; +var sharedKey$2 = sharedKey$3; var GT = '>'; var LT = '<'; var PROTOTYPE = 'prototype'; var SCRIPT = 'script'; -var IE_PROTO$1 = sharedKey$1('IE_PROTO'); +var IE_PROTO$1 = sharedKey$2('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; @@ -1196,12 +718,12 @@ var NullProtoObject = function () { ? NullProtoObjectViaActiveX(activeXDocument) // old IE : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH - var length = enumBugKeys.length; - while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; + var length = enumBugKeys$1.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]]; return NullProtoObject(); }; -hiddenKeys[IE_PROTO$1] = true; +hiddenKeys$2[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create @@ -1209,7 +731,7 @@ hiddenKeys[IE_PROTO$1] = true; var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject$6(O); + EmptyConstructor[PROTOTYPE] = anObject$8(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill @@ -1218,57 +740,859 @@ var objectCreate = Object.create || function create(O, Properties) { return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; -var fails$f = fails$p; -var global$4 = global$f; +var wellKnownSymbol$g = wellKnownSymbol$i; +var create$2 = objectCreate; +var defineProperty$5 = objectDefineProperty.f; -// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError -var $RegExp$1 = global$4.RegExp; +var UNSCOPABLES = wellKnownSymbol$g('unscopables'); +var ArrayPrototype = Array.prototype; -var regexpUnsupportedDotAll = fails$f(function () { - var re = $RegExp$1('.', 's'); - return !(re.dotAll && re.exec('\n') && re.flags === 's'); -}); +// Array.prototype[@@unscopables] +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +if (ArrayPrototype[UNSCOPABLES] == undefined) { + defineProperty$5(ArrayPrototype, UNSCOPABLES, { + configurable: true, + value: create$2(null) + }); +} -var fails$e = fails$p; -var global$3 = global$f; +// add a key to Array.prototype[@@unscopables] +var addToUnscopables$1 = function (key) { + ArrayPrototype[UNSCOPABLES][key] = true; +}; -// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError -var $RegExp = global$3.RegExp; +var iterators = {}; -var regexpUnsupportedNcg = fails$e(function () { - var re = $RegExp('(?b)', 'g'); - return re.exec('b').groups.a !== 'b' || - 'b'.replace(re, '$c') !== 'bc'; -}); +var uncurryThis$l = functionUncurryThis; +var isCallable$g = isCallable$m; +var store$1 = sharedStore; -/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ -/* eslint-disable regexp/no-useless-quantifier -- testing */ -var call$a = functionCall; -var uncurryThis$i = functionUncurryThis; -var toString$9 = toString$a; -var regexpFlags = regexpFlags$1; -var stickyHelpers$2 = regexpStickyHelpers; -var shared = shared$4.exports; -var create$2 = objectCreate; -var getInternalState$2 = internalState.get; -var UNSUPPORTED_DOT_ALL$2 = regexpUnsupportedDotAll; -var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg; +var functionToString = uncurryThis$l(Function.toString); -var nativeReplace = shared('native-string-replace', String.prototype.replace); -var nativeExec = RegExp.prototype.exec; -var patchedExec = nativeExec; -var charAt$5 = uncurryThis$i(''.charAt); -var indexOf$1 = uncurryThis$i(''.indexOf); -var replace$5 = uncurryThis$i(''.replace); -var stringSlice$6 = uncurryThis$i(''.slice); +// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper +if (!isCallable$g(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; +} -var UPDATES_LAST_INDEX_WRONG = (function () { - var re1 = /a/; - var re2 = /b*/g; - call$a(nativeExec, re1, 'a'); - call$a(nativeExec, re2, 'a'); - return re1.lastIndex !== 0 || re2.lastIndex !== 0; -})(); +var inspectSource$3 = store$1.inspectSource; + +var global$8 = global$f; +var isCallable$f = isCallable$m; +var inspectSource$2 = inspectSource$3; + +var WeakMap$1 = global$8.WeakMap; + +var nativeWeakMap = isCallable$f(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1)); + +var createPropertyDescriptor$5 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; + +var DESCRIPTORS$8 = descriptors; +var definePropertyModule$4 = objectDefineProperty; +var createPropertyDescriptor$4 = createPropertyDescriptor$5; + +var createNonEnumerableProperty$7 = DESCRIPTORS$8 ? function (object, key, value) { + return definePropertyModule$4.f(object, key, createPropertyDescriptor$4(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + +var NATIVE_WEAK_MAP = nativeWeakMap; +var global$7 = global$f; +var uncurryThis$k = functionUncurryThis; +var isObject$8 = isObject$d; +var createNonEnumerableProperty$6 = createNonEnumerableProperty$7; +var hasOwn$9 = hasOwnProperty_1; +var shared$1 = sharedStore; +var sharedKey$1 = sharedKey$3; +var hiddenKeys$1 = hiddenKeys$4; + +var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; +var TypeError$1 = global$7.TypeError; +var WeakMap = global$7.WeakMap; +var set$1, get, has; + +var enforce = function (it) { + return has(it) ? get(it) : set$1(it, {}); +}; + +var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$8(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; +}; + +if (NATIVE_WEAK_MAP || shared$1.state) { + var store = shared$1.state || (shared$1.state = new WeakMap()); + var wmget = uncurryThis$k(store.get); + var wmhas = uncurryThis$k(store.has); + var wmset = uncurryThis$k(store.set); + set$1 = function (it, metadata) { + if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + wmset(store, it, metadata); + return metadata; + }; + get = function (it) { + return wmget(store, it) || {}; + }; + has = function (it) { + return wmhas(store, it); + }; +} else { + var STATE = sharedKey$1('state'); + hiddenKeys$1[STATE] = true; + set$1 = function (it, metadata) { + if (hasOwn$9(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$6(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$9(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$9(it, STATE); + }; +} + +var internalState = { + set: set$1, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor +}; + +var objectGetOwnPropertyDescriptor = {}; + +var objectPropertyIsEnumerable = {}; + +var $propertyIsEnumerable = {}.propertyIsEnumerable; +// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + +// Nashorn ~ JDK8 bug +var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1); + +// `Object.prototype.propertyIsEnumerable` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable +objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor$1(this, V); + return !!descriptor && descriptor.enumerable; +} : $propertyIsEnumerable; + +var DESCRIPTORS$7 = descriptors; +var call$b = functionCall; +var propertyIsEnumerableModule = objectPropertyIsEnumerable; +var createPropertyDescriptor$3 = createPropertyDescriptor$5; +var toIndexedObject$2 = toIndexedObject$6; +var toPropertyKey$1 = toPropertyKey$3; +var hasOwn$8 = hasOwnProperty_1; +var IE8_DOM_DEFINE = ie8DomDefine; + +// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// `Object.getOwnPropertyDescriptor` method +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor +objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$1(P); + if (IE8_DOM_DEFINE) try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) { /* empty */ } + if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$b(propertyIsEnumerableModule.f, O, P), O[P]); +}; + +var makeBuiltIn$3 = {exports: {}}; + +var DESCRIPTORS$6 = descriptors; +var hasOwn$7 = hasOwnProperty_1; + +var FunctionPrototype$1 = Function.prototype; +// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor; + +var EXISTS = hasOwn$7(FunctionPrototype$1, 'name'); +// additional protection from minified / mangled / dropped function names +var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; +var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable)); + +var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE +}; + +var fails$i = fails$p; +var isCallable$e = isCallable$m; +var hasOwn$6 = hasOwnProperty_1; +var DESCRIPTORS$5 = descriptors; +var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; +var inspectSource$1 = inspectSource$3; +var InternalStateModule$1 = internalState; + +var enforceInternalState$1 = InternalStateModule$1.enforce; +var getInternalState$3 = InternalStateModule$1.get; +// eslint-disable-next-line es-x/no-object-defineproperty -- safe +var defineProperty$4 = Object.defineProperty; + +var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$i(function () { + return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; +}); + +var TEMPLATE = String(String).split('String'); + +var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { + if (String(name).slice(0, 7) === 'Symbol(') { + name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) { + if (DESCRIPTORS$5) defineProperty$4(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) { + defineProperty$4(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$6(options, 'constructor') && options.constructor) { + if (DESCRIPTORS$5) defineProperty$4(value, 'prototype', { writable: false }); + // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable + } else if (value.prototype) value.prototype = undefined; + } catch (error) { /* empty */ } + var state = enforceInternalState$1(value); + if (!hasOwn$6(state, 'source')) { + state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); + } return value; +}; + +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +// eslint-disable-next-line no-extend-native -- required +Function.prototype.toString = makeBuiltIn$2(function toString() { + return isCallable$e(this) && getInternalState$3(this).source || inspectSource$1(this); +}, 'toString'); + +var isCallable$d = isCallable$m; +var definePropertyModule$3 = objectDefineProperty; +var makeBuiltIn$1 = makeBuiltIn$3.exports; +var defineGlobalProperty$1 = defineGlobalProperty$3; + +var defineBuiltIn$5 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$d(value)) makeBuiltIn$1(value, name, options); + if (options.global) { + if (simple) O[key] = value; + else defineGlobalProperty$1(key, value); + } else { + try { + if (!options.unsafe) delete O[key]; + else if (O[key]) simple = true; + } catch (error) { /* empty */ } + if (simple) O[key] = value; + else definePropertyModule$3.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; +}; + +var objectGetOwnPropertyNames = {}; + +var internalObjectKeys = objectKeysInternal; +var enumBugKeys = enumBugKeys$3; + +var hiddenKeys = enumBugKeys.concat('length', 'prototype'); + +// `Object.getOwnPropertyNames` method +// https://tc39.es/ecma262/#sec-object.getownpropertynames +// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe +objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys); +}; + +var objectGetOwnPropertySymbols = {}; + +// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe +objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + +var getBuiltIn$4 = getBuiltIn$8; +var uncurryThis$j = functionUncurryThis; +var getOwnPropertyNamesModule = objectGetOwnPropertyNames; +var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; +var anObject$7 = anObject$b; + +var concat$1 = uncurryThis$j([].concat); + +// all object keys, includes non-enumerable and symbols +var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject$7(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys; +}; + +var hasOwn$5 = hasOwnProperty_1; +var ownKeys = ownKeys$1; +var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; +var definePropertyModule$2 = objectDefineProperty; + +var copyConstructorProperties$2 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$2.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } +}; + +var fails$h = fails$p; +var isCallable$c = isCallable$m; + +var replacement = /#|\.prototype\./; + +var isForced$2 = function (feature, detection) { + var value = data[normalize$1(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$c(detection) ? fails$h(detection) + : !!detection; +}; + +var normalize$1 = isForced$2.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); +}; + +var data = isForced$2.data = {}; +var NATIVE = isForced$2.NATIVE = 'N'; +var POLYFILL = isForced$2.POLYFILL = 'P'; + +var isForced_1 = isForced$2; + +var global$6 = global$f; +var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; +var createNonEnumerableProperty$5 = createNonEnumerableProperty$7; +var defineBuiltIn$4 = defineBuiltIn$5; +var defineGlobalProperty = defineGlobalProperty$3; +var copyConstructorProperties$1 = copyConstructorProperties$2; +var isForced$1 = isForced_1; + +/* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key +*/ +var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global$6; + } else if (STATIC) { + target = global$6[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$6[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties$1(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty$5(sourceProperty, 'sham', true); + } + defineBuiltIn$4(target, key, sourceProperty, options); + } +}; + +var fails$g = fails$p; + +var correctPrototypeGetter = !fails$g(function () { + function F() { /* empty */ } + F.prototype.constructor = null; + // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing + return Object.getPrototypeOf(new F()) !== F.prototype; +}); + +var hasOwn$4 = hasOwnProperty_1; +var isCallable$b = isCallable$m; +var toObject$5 = toObject$7; +var sharedKey = sharedKey$3; +var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; + +var IE_PROTO = sharedKey('IE_PROTO'); +var $Object$1 = Object; +var ObjectPrototype = $Object$1.prototype; + +// `Object.getPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.getprototypeof +// eslint-disable-next-line es-x/no-object-getprototypeof -- safe +var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) { + var object = toObject$5(O); + if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO]; + var constructor = object.constructor; + if (isCallable$b(constructor) && object instanceof constructor) { + return constructor.prototype; + } return object instanceof $Object$1 ? ObjectPrototype : null; +}; + +var fails$f = fails$p; +var isCallable$a = isCallable$m; +var getPrototypeOf$1 = objectGetPrototypeOf; +var defineBuiltIn$3 = defineBuiltIn$5; +var wellKnownSymbol$f = wellKnownSymbol$i; + +var ITERATOR$1 = wellKnownSymbol$f('iterator'); +var BUGGY_SAFARI_ITERATORS$1 = false; + +// `%IteratorPrototype%` object +// https://tc39.es/ecma262/#sec-%iteratorprototype%-object +var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; + +/* eslint-disable es-x/no-array-prototype-keys -- safe */ +if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true; + else { + PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; + } +} + +var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$f(function () { + var test = {}; + // FF44- legacy iterators case + return IteratorPrototype$2[ITERATOR$1].call(test) !== test; +}); + +if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; + +// `%IteratorPrototype%[@@iterator]()` method +// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator +if (!isCallable$a(IteratorPrototype$2[ITERATOR$1])) { + defineBuiltIn$3(IteratorPrototype$2, ITERATOR$1, function () { + return this; + }); +} + +var iteratorsCore = { + IteratorPrototype: IteratorPrototype$2, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 +}; + +var defineProperty$3 = objectDefineProperty.f; +var hasOwn$3 = hasOwnProperty_1; +var wellKnownSymbol$e = wellKnownSymbol$i; + +var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag'); + +var setToStringTag$2 = function (target, TAG, STATIC) { + if (target && !STATIC) target = target.prototype; + if (target && !hasOwn$3(target, TO_STRING_TAG$2)) { + defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG }); + } +}; + +var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; +var create$1 = objectCreate; +var createPropertyDescriptor$2 = createPropertyDescriptor$5; +var setToStringTag$1 = setToStringTag$2; +var Iterators$2 = iterators; + +var returnThis$1 = function () { return this; }; + +var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) }); + setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false); + Iterators$2[TO_STRING_TAG] = returnThis$1; + return IteratorConstructor; +}; + +var isCallable$9 = isCallable$m; + +var $String$1 = String; +var $TypeError$7 = TypeError; + +var aPossiblePrototype$1 = function (argument) { + if (typeof argument == 'object' || isCallable$9(argument)) return argument; + throw $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype'); +}; + +/* eslint-disable no-proto -- safe */ + +var uncurryThis$i = functionUncurryThis; +var anObject$6 = anObject$b; +var aPossiblePrototype = aPossiblePrototype$1; + +// `Object.setPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.setprototypeof +// Works with __proto__ only. Old v8 can't work with null proto objects. +// eslint-disable-next-line es-x/no-object-setprototypeof -- safe +var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { + var CORRECT_SETTER = false; + var test = {}; + var setter; + try { + // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe + setter = uncurryThis$i(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); + setter(test, []); + CORRECT_SETTER = test instanceof Array; + } catch (error) { /* empty */ } + return function setPrototypeOf(O, proto) { + anObject$6(O); + aPossiblePrototype(proto); + if (CORRECT_SETTER) setter(O, proto); + else O.__proto__ = proto; + return O; + }; +}() : undefined); + +var $$f = _export; +var call$a = functionCall; +var FunctionName = functionName; +var isCallable$8 = isCallable$m; +var createIteratorConstructor = createIteratorConstructor$1; +var getPrototypeOf = objectGetPrototypeOf; +var setPrototypeOf$2 = objectSetPrototypeOf; +var setToStringTag = setToStringTag$2; +var createNonEnumerableProperty$4 = createNonEnumerableProperty$7; +var defineBuiltIn$2 = defineBuiltIn$5; +var wellKnownSymbol$d = wellKnownSymbol$i; +var Iterators$1 = iterators; +var IteratorsCore = iteratorsCore; + +var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER; +var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; +var IteratorPrototype = IteratorsCore.IteratorPrototype; +var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; +var ITERATOR = wellKnownSymbol$d('iterator'); +var KEYS = 'keys'; +var VALUES = 'values'; +var ENTRIES = 'entries'; + +var returnThis = function () { return this; }; + +var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; + switch (KIND) { + case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; + case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; + case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; + } return function () { return new IteratorConstructor(this); }; + }; + + var TO_STRING_TAG = NAME + ' Iterator'; + var INCORRECT_VALUES_NAME = false; + var IterablePrototype = Iterable.prototype; + var nativeIterator = IterablePrototype[ITERATOR] + || IterablePrototype['@@iterator'] + || DEFAULT && IterablePrototype[DEFAULT]; + var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); + var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; + var CurrentIteratorPrototype, methods, KEY; + + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); + if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { + if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf$2) { + setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype); + } else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR])) { + defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR, returnThis); + } + } + // Set @@toStringTag to native iterators + setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); + } + } + + // fix Array.prototype.{ values, @@iterator }.name in V8 / FF + if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { + if (CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES); + } else { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { return call$a(nativeIterator, this); }; + } + } + + // export additional methods + if (DEFAULT) { + methods = { + values: getIterationMethod(VALUES), + keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), + entries: getIterationMethod(ENTRIES) + }; + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]); + } + } else $$f({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } + + // define iterator + if (IterablePrototype[ITERATOR] !== defaultIterator) { + defineBuiltIn$2(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); + } + Iterators$1[NAME] = defaultIterator; + + return methods; +}; + +var toIndexedObject$1 = toIndexedObject$6; +var addToUnscopables = addToUnscopables$1; +var Iterators = iterators; +var InternalStateModule = internalState; +var defineProperty$2 = objectDefineProperty.f; +var defineIterator = defineIterator$1; +var DESCRIPTORS$4 = descriptors; + +var ARRAY_ITERATOR = 'Array Iterator'; +var setInternalState = InternalStateModule.set; +var getInternalState$2 = InternalStateModule.getterFor(ARRAY_ITERATOR); + +// `Array.prototype.entries` method +// https://tc39.es/ecma262/#sec-array.prototype.entries +// `Array.prototype.keys` method +// https://tc39.es/ecma262/#sec-array.prototype.keys +// `Array.prototype.values` method +// https://tc39.es/ecma262/#sec-array.prototype.values +// `Array.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-array.prototype-@@iterator +// `CreateArrayIterator` internal method +// https://tc39.es/ecma262/#sec-createarrayiterator +defineIterator(Array, 'Array', function (iterated, kind) { + setInternalState(this, { + type: ARRAY_ITERATOR, + target: toIndexedObject$1(iterated), // target + index: 0, // next index + kind: kind // kind + }); +// `%ArrayIteratorPrototype%.next` method +// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next +}, function () { + var state = getInternalState$2(this); + var target = state.target; + var kind = state.kind; + var index = state.index++; + if (!target || index >= target.length) { + state.target = undefined; + return { value: undefined, done: true }; + } + if (kind == 'keys') return { value: index, done: false }; + if (kind == 'values') return { value: target[index], done: false }; + return { value: [index, target[index]], done: false }; +}, 'values'); + +// argumentsList[@@iterator] is %ArrayProto_values% +// https://tc39.es/ecma262/#sec-createunmappedargumentsobject +// https://tc39.es/ecma262/#sec-createmappedargumentsobject +var values = Iterators.Arguments = Iterators.Array; + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('keys'); +addToUnscopables('values'); +addToUnscopables('entries'); + +// V8 ~ Chrome 45- bug +if (DESCRIPTORS$4 && values.name !== 'values') try { + defineProperty$2(values, 'name', { value: 'values' }); +} catch (error) { /* empty */ } + +var wellKnownSymbol$c = wellKnownSymbol$i; + +var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag'); +var test$2 = {}; + +test$2[TO_STRING_TAG$1] = 'z'; + +var toStringTagSupport = String(test$2) === '[object z]'; + +var TO_STRING_TAG_SUPPORT = toStringTagSupport; +var isCallable$7 = isCallable$m; +var classofRaw = classofRaw$1; +var wellKnownSymbol$b = wellKnownSymbol$i; + +var TO_STRING_TAG = wellKnownSymbol$b('toStringTag'); +var $Object = Object; + +// ES3 wrong here +var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; + +// fallback for IE11 Script Access Denied error +var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) { /* empty */ } +}; + +// getting tag from ES6+ `Object.prototype.toString` +var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$7(O.callee) ? 'Arguments' : result; +}; + +var classof$5 = classof$6; + +var $String = String; + +var toString$a = function (argument) { + if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); +}; + +var anObject$5 = anObject$b; + +// `RegExp.prototype.flags` getter implementation +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +var regexpFlags$1 = function () { + var that = anObject$5(this); + var result = ''; + if (that.hasIndices) result += 'd'; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; + if (that.sticky) result += 'y'; + return result; +}; + +var fails$e = fails$p; +var global$5 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError +var $RegExp$2 = global$5.RegExp; + +var UNSUPPORTED_Y$3 = fails$e(function () { + var re = $RegExp$2('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') != null; +}); + +// UC Browser bug +// https://github.com/zloirock/core-js/issues/1008 +var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$e(function () { + return !$RegExp$2('a', 'y').sticky; +}); + +var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$e(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = $RegExp$2('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') != null; +}); + +var regexpStickyHelpers = { + BROKEN_CARET: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY$1, + UNSUPPORTED_Y: UNSUPPORTED_Y$3 +}; + +var fails$d = fails$p; +var global$4 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError +var $RegExp$1 = global$4.RegExp; + +var regexpUnsupportedDotAll = fails$d(function () { + var re = $RegExp$1('.', 's'); + return !(re.dotAll && re.exec('\n') && re.flags === 's'); +}); + +var fails$c = fails$p; +var global$3 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError +var $RegExp = global$3.RegExp; + +var regexpUnsupportedNcg = fails$c(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || + 'b'.replace(re, '$c') !== 'bc'; +}); + +/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ +/* eslint-disable regexp/no-useless-quantifier -- testing */ +var call$9 = functionCall; +var uncurryThis$h = functionUncurryThis; +var toString$9 = toString$a; +var regexpFlags = regexpFlags$1; +var stickyHelpers$2 = regexpStickyHelpers; +var shared = shared$4.exports; +var create = objectCreate; +var getInternalState$1 = internalState.get; +var UNSUPPORTED_DOT_ALL$2 = regexpUnsupportedDotAll; +var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg; + +var nativeReplace = shared('native-string-replace', String.prototype.replace); +var nativeExec = RegExp.prototype.exec; +var patchedExec = nativeExec; +var charAt$5 = uncurryThis$h(''.charAt); +var indexOf$1 = uncurryThis$h(''.indexOf); +var replace$5 = uncurryThis$h(''.replace); +var stringSlice$6 = uncurryThis$h(''.slice); + +var UPDATES_LAST_INDEX_WRONG = (function () { + var re1 = /a/; + var re2 = /b*/g; + call$9(nativeExec, re1, 'a'); + call$9(nativeExec, re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; +})(); var UNSUPPORTED_Y$2 = stickyHelpers$2.BROKEN_CARET; @@ -1280,21 +1604,21 @@ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || UNSU if (PATCH) { patchedExec = function exec(string) { var re = this; - var state = getInternalState$2(re); + var state = getInternalState$1(re); var str = toString$9(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; - result = call$a(patchedExec, raw, str); + result = call$9(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y$2 && re.sticky; - var flags = call$a(regexpFlags, re); + var flags = call$9(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; @@ -1322,7 +1646,7 @@ if (PATCH) { } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - match = call$a(nativeExec, sticky ? reCopy : re, strCopy); + match = call$9(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { @@ -1337,7 +1661,7 @@ if (PATCH) { if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ - call$a(nativeReplace, match[0], reCopy, function () { + call$9(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } @@ -1345,7 +1669,7 @@ if (PATCH) { } if (match && groups) { - match.groups = object = create$2(null); + match.groups = object = create(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; @@ -1358,12 +1682,12 @@ if (PATCH) { var regexpExec$3 = patchedExec; -var $$f = _export; +var $$e = _export; var exec$6 = regexpExec$3; // `RegExp.prototype.exec` method // https://tc39.es/ecma262/#sec-regexp.prototype.exec -$$f({ target: 'RegExp', proto: true, forced: /./.exec !== exec$6 }, { +$$e({ target: 'RegExp', proto: true, forced: /./.exec !== exec$6 }, { exec: exec$6 }); @@ -1371,36 +1695,36 @@ var NATIVE_BIND$1 = functionBindNative; var FunctionPrototype = Function.prototype; var apply$4 = FunctionPrototype.apply; -var call$9 = FunctionPrototype.call; +var call$8 = FunctionPrototype.call; // eslint-disable-next-line es-x/no-reflect -- safe -var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$4) : function () { - return call$9.apply(apply$4, arguments); +var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$4) : function () { + return call$8.apply(apply$4, arguments); }); // TODO: Remove from `core-js@4` since it's moved to entry points -var uncurryThis$h = functionUncurryThis; -var defineBuiltIn$3 = defineBuiltIn$5; +var uncurryThis$g = functionUncurryThis; +var defineBuiltIn$1 = defineBuiltIn$5; var regexpExec$2 = regexpExec$3; -var fails$d = fails$p; -var wellKnownSymbol$e = wellKnownSymbol$i; -var createNonEnumerableProperty$4 = createNonEnumerableProperty$7; +var fails$b = fails$p; +var wellKnownSymbol$a = wellKnownSymbol$i; +var createNonEnumerableProperty$3 = createNonEnumerableProperty$7; -var SPECIES$5 = wellKnownSymbol$e('species'); +var SPECIES$5 = wellKnownSymbol$a('species'); var RegExpPrototype$3 = RegExp.prototype; var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { - var SYMBOL = wellKnownSymbol$e(KEY); + var SYMBOL = wellKnownSymbol$a(KEY); - var DELEGATES_TO_SYMBOL = !fails$d(function () { + var DELEGATES_TO_SYMBOL = !fails$b(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$d(function () { + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$b(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; @@ -1429,9 +1753,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { !DELEGATES_TO_EXEC || FORCED ) { - var uncurriedNativeRegExpMethod = uncurryThis$h(/./[SYMBOL]); + var uncurriedNativeRegExpMethod = uncurryThis$g(/./[SYMBOL]); var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { - var uncurriedNativeMethod = uncurryThis$h(nativeMethod); + var uncurriedNativeMethod = uncurryThis$g(nativeMethod); var $exec = regexp.exec; if ($exec === regexpExec$2 || $exec === RegExpPrototype$3.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { @@ -1445,21 +1769,21 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { return { done: false }; }); - defineBuiltIn$3(String.prototype, KEY, methods[0]); - defineBuiltIn$3(RegExpPrototype$3, SYMBOL, methods[1]); + defineBuiltIn$1(String.prototype, KEY, methods[0]); + defineBuiltIn$1(RegExpPrototype$3, SYMBOL, methods[1]); } - if (SHAM) createNonEnumerableProperty$4(RegExpPrototype$3[SYMBOL], 'sham', true); + if (SHAM) createNonEnumerableProperty$3(RegExpPrototype$3[SYMBOL], 'sham', true); }; -var uncurryThis$g = functionUncurryThis; +var uncurryThis$f = functionUncurryThis; var toIntegerOrInfinity$2 = toIntegerOrInfinity$5; var toString$8 = toString$a; var requireObjectCoercible$5 = requireObjectCoercible$8; -var charAt$4 = uncurryThis$g(''.charAt); -var charCodeAt$1 = uncurryThis$g(''.charCodeAt); -var stringSlice$5 = uncurryThis$g(''.slice); +var charAt$4 = uncurryThis$f(''.charAt); +var charCodeAt$1 = uncurryThis$f(''.charCodeAt); +var stringSlice$5 = uncurryThis$f(''.slice); var createMethod$2 = function (CONVERT_TO_STRING) { return function ($this, pos) { @@ -1497,13 +1821,13 @@ var advanceStringIndex$3 = function (S, index, unicode) { return index + (unicode ? charAt$3(S, index).length : 1); }; -var uncurryThis$f = functionUncurryThis; -var toObject$5 = toObject$7; +var uncurryThis$e = functionUncurryThis; +var toObject$4 = toObject$7; var floor$1 = Math.floor; -var charAt$2 = uncurryThis$f(''.charAt); -var replace$4 = uncurryThis$f(''.replace); -var stringSlice$4 = uncurryThis$f(''.slice); +var charAt$2 = uncurryThis$e(''.charAt); +var replace$4 = uncurryThis$e(''.replace); +var stringSlice$4 = uncurryThis$e(''.slice); var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; @@ -1514,7 +1838,7 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== undefined) { - namedCaptures = toObject$5(namedCaptures); + namedCaptures = toObject$4(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace$4(replacement, symbols, function (match, ch) { @@ -1542,34 +1866,34 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture }); }; -var call$8 = functionCall; -var anObject$5 = anObject$b; -var isCallable$a = isCallable$m; +var call$7 = functionCall; +var anObject$4 = anObject$b; +var isCallable$6 = isCallable$m; var classof$4 = classofRaw$1; var regexpExec$1 = regexpExec$3; -var $TypeError$7 = TypeError; +var $TypeError$6 = TypeError; // `RegExpExec` abstract operation // https://tc39.es/ecma262/#sec-regexpexec var regexpExecAbstract = function (R, S) { var exec = R.exec; - if (isCallable$a(exec)) { - var result = call$8(exec, R, S); - if (result !== null) anObject$5(result); + if (isCallable$6(exec)) { + var result = call$7(exec, R, S); + if (result !== null) anObject$4(result); return result; } - if (classof$4(R) === 'RegExp') return call$8(regexpExec$1, R, S); - throw $TypeError$7('RegExp#exec called on incompatible receiver'); + if (classof$4(R) === 'RegExp') return call$7(regexpExec$1, R, S); + throw $TypeError$6('RegExp#exec called on incompatible receiver'); }; var apply$3 = functionApply; -var call$7 = functionCall; -var uncurryThis$e = functionUncurryThis; +var call$6 = functionCall; +var uncurryThis$d = functionUncurryThis; var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; -var fails$c = fails$p; -var anObject$4 = anObject$b; -var isCallable$9 = isCallable$m; +var fails$a = fails$p; +var anObject$3 = anObject$b; +var isCallable$5 = isCallable$m; var toIntegerOrInfinity$1 = toIntegerOrInfinity$5; var toLength$2 = toLength$4; var toString$7 = toString$a; @@ -1578,15 +1902,15 @@ var advanceStringIndex$2 = advanceStringIndex$3; var getMethod$3 = getMethod$5; var getSubstitution$1 = getSubstitution$2; var regExpExec$1 = regexpExecAbstract; -var wellKnownSymbol$d = wellKnownSymbol$i; +var wellKnownSymbol$9 = wellKnownSymbol$i; -var REPLACE$1 = wellKnownSymbol$d('replace'); +var REPLACE$1 = wellKnownSymbol$9('replace'); var max$4 = Math.max; var min$2 = Math.min; -var concat = uncurryThis$e([].concat); -var push$3 = uncurryThis$e([].push); -var stringIndexOf$2 = uncurryThis$e(''.indexOf); -var stringSlice$3 = uncurryThis$e(''.slice); +var concat = uncurryThis$d([].concat); +var push$3 = uncurryThis$d([].push); +var stringIndexOf$2 = uncurryThis$d(''.indexOf); +var stringSlice$3 = uncurryThis$d(''.slice); var maybeToString = function (it) { return it === undefined ? it : String(it); @@ -1607,7 +1931,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { return false; })(); -var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$c(function () { +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$a(function () { var re = /./; re.exec = function () { var result = []; @@ -1629,13 +1953,13 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall var O = requireObjectCoercible$4(this); var replacer = searchValue == undefined ? undefined : getMethod$3(searchValue, REPLACE$1); return replacer - ? call$7(replacer, searchValue, O, replaceValue) - : call$7(nativeReplace, toString$7(O), searchValue, replaceValue); + ? call$6(replacer, searchValue, O, replaceValue) + : call$6(nativeReplace, toString$7(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace function (string, replaceValue) { - var rx = anObject$4(this); + var rx = anObject$3(this); var S = toString$7(string); if ( @@ -1647,7 +1971,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall if (res.done) return res.value; } - var functionalReplace = isCallable$9(replaceValue); + var functionalReplace = isCallable$5(replaceValue); if (!functionalReplace) replaceValue = toString$7(replaceValue); var global = rx.global; @@ -1701,9 +2025,9 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall var isObject$7 = isObject$d; var classof$3 = classofRaw$1; -var wellKnownSymbol$c = wellKnownSymbol$i; +var wellKnownSymbol$8 = wellKnownSymbol$i; -var MATCH$1 = wellKnownSymbol$c('match'); +var MATCH$1 = wellKnownSymbol$8('match'); // `IsRegExp` abstract operation // https://tc39.es/ecma262/#sec-isregexp @@ -1712,8 +2036,8 @@ var isRegexp = function (it) { return isObject$7(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp'); }; -var call$6 = functionCall; -var hasOwn$4 = hasOwnProperty_1; +var call$5 = functionCall; +var hasOwn$2 = hasOwnProperty_1; var isPrototypeOf$2 = objectIsPrototypeOf; var regExpFlags = regexpFlags$1; @@ -1721,27 +2045,27 @@ var RegExpPrototype$2 = RegExp.prototype; var regexpGetFlags = function (R) { var flags = R.flags; - return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$4(R, 'flags') && isPrototypeOf$2(RegExpPrototype$2, R) - ? call$6(regExpFlags, R) : flags; + return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$2, R) + ? call$5(regExpFlags, R) : flags; }; -var $$e = _export; -var call$5 = functionCall; -var uncurryThis$d = functionUncurryThis; +var $$d = _export; +var call$4 = functionCall; +var uncurryThis$c = functionUncurryThis; var requireObjectCoercible$3 = requireObjectCoercible$8; -var isCallable$8 = isCallable$m; +var isCallable$4 = isCallable$m; var isRegExp$2 = isRegexp; var toString$6 = toString$a; var getMethod$2 = getMethod$5; var getRegExpFlags$1 = regexpGetFlags; var getSubstitution = getSubstitution$2; -var wellKnownSymbol$b = wellKnownSymbol$i; +var wellKnownSymbol$7 = wellKnownSymbol$i; -var REPLACE = wellKnownSymbol$b('replace'); -var $TypeError$6 = TypeError; -var indexOf = uncurryThis$d(''.indexOf); -uncurryThis$d(''.replace); -var stringSlice$2 = uncurryThis$d(''.slice); +var REPLACE = wellKnownSymbol$7('replace'); +var $TypeError$5 = TypeError; +var indexOf = uncurryThis$c(''.indexOf); +uncurryThis$c(''.replace); +var stringSlice$2 = uncurryThis$c(''.slice); var max$3 = Math.max; var stringIndexOf$1 = function (string, searchValue, fromIndex) { @@ -1752,111 +2076,72 @@ var stringIndexOf$1 = function (string, searchValue, fromIndex) { // `String.prototype.replaceAll` method // https://tc39.es/ecma262/#sec-string.prototype.replaceall -$$e({ target: 'String', proto: true }, { +$$d({ target: 'String', proto: true }, { replaceAll: function replaceAll(searchValue, replaceValue) { var O = requireObjectCoercible$3(this); var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement; var position = 0; var endOfLastMatch = 0; var result = ''; - if (searchValue != null) { - IS_REG_EXP = isRegExp$2(searchValue); - if (IS_REG_EXP) { - flags = toString$6(requireObjectCoercible$3(getRegExpFlags$1(searchValue))); - if (!~indexOf(flags, 'g')) throw $TypeError$6('`.replaceAll` does not allow non-global regexes'); - } - replacer = getMethod$2(searchValue, REPLACE); - if (replacer) { - return call$5(replacer, searchValue, O, replaceValue); - } - } - string = toString$6(O); - searchString = toString$6(searchValue); - functionalReplace = isCallable$8(replaceValue); - if (!functionalReplace) replaceValue = toString$6(replaceValue); - searchLength = searchString.length; - advanceBy = max$3(1, searchLength); - position = stringIndexOf$1(string, searchString, 0); - while (position !== -1) { - replacement = functionalReplace - ? toString$6(replaceValue(searchString, position, string)) - : getSubstitution(searchString, string, position, [], undefined, replaceValue); - result += stringSlice$2(string, endOfLastMatch, position) + replacement; - endOfLastMatch = position + searchLength; - position = stringIndexOf$1(string, searchString, position + advanceBy); - } - if (endOfLastMatch < string.length) { - result += stringSlice$2(string, endOfLastMatch); - } - return result; - } -}); - -var isCallable$7 = isCallable$m; - -var $String = String; -var $TypeError$5 = TypeError; - -var aPossiblePrototype$1 = function (argument) { - if (typeof argument == 'object' || isCallable$7(argument)) return argument; - throw $TypeError$5("Can't set " + $String(argument) + ' as a prototype'); -}; - -/* eslint-disable no-proto -- safe */ - -var uncurryThis$c = functionUncurryThis; -var anObject$3 = anObject$b; -var aPossiblePrototype = aPossiblePrototype$1; - -// `Object.setPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -// eslint-disable-next-line es-x/no-object-setprototypeof -- safe -var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe - setter = uncurryThis$c(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); - setter(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject$3(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); + if (searchValue != null) { + IS_REG_EXP = isRegExp$2(searchValue); + if (IS_REG_EXP) { + flags = toString$6(requireObjectCoercible$3(getRegExpFlags$1(searchValue))); + if (!~indexOf(flags, 'g')) throw $TypeError$5('`.replaceAll` does not allow non-global regexes'); + } + replacer = getMethod$2(searchValue, REPLACE); + if (replacer) { + return call$4(replacer, searchValue, O, replaceValue); + } + } + string = toString$6(O); + searchString = toString$6(searchValue); + functionalReplace = isCallable$4(replaceValue); + if (!functionalReplace) replaceValue = toString$6(replaceValue); + searchLength = searchString.length; + advanceBy = max$3(1, searchLength); + position = stringIndexOf$1(string, searchString, 0); + while (position !== -1) { + replacement = functionalReplace + ? toString$6(replaceValue(searchString, position, string)) + : getSubstitution(searchString, string, position, [], undefined, replaceValue); + result += stringSlice$2(string, endOfLastMatch, position) + replacement; + endOfLastMatch = position + searchLength; + position = stringIndexOf$1(string, searchString, position + advanceBy); + } + if (endOfLastMatch < string.length) { + result += stringSlice$2(string, endOfLastMatch); + } + return result; + } +}); -var defineProperty$4 = objectDefineProperty.f; +var defineProperty$1 = objectDefineProperty.f; var proxyAccessor$2 = function (Target, Source, key) { - key in Target || defineProperty$4(Target, key, { + key in Target || defineProperty$1(Target, key, { configurable: true, get: function () { return Source[key]; }, set: function (it) { Source[key] = it; } }); }; -var isCallable$6 = isCallable$m; +var isCallable$3 = isCallable$m; var isObject$6 = isObject$d; -var setPrototypeOf$2 = objectSetPrototypeOf; +var setPrototypeOf$1 = objectSetPrototypeOf; // makes subclassing work correct for wrapped built-ins var inheritIfRequired$2 = function ($this, dummy, Wrapper) { var NewTarget, NewTargetPrototype; if ( // it can work only with native `setPrototypeOf` - setPrototypeOf$2 && + setPrototypeOf$1 && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - isCallable$6(NewTarget = dummy.constructor) && + isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$6(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype - ) setPrototypeOf$2($this, NewTargetPrototype); + ) setPrototypeOf$1($this, NewTargetPrototype); return $this; }; @@ -1867,13 +2152,13 @@ var normalizeStringArgument$1 = function (argument, $default) { }; var isObject$5 = isObject$d; -var createNonEnumerableProperty$3 = createNonEnumerableProperty$7; +var createNonEnumerableProperty$2 = createNonEnumerableProperty$7; // `InstallErrorCause` abstract operation // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause var installErrorCause$1 = function (O, options) { if (isObject$5(options) && 'cause' in options) { - createNonEnumerableProperty$3(O, 'cause', options.cause); + createNonEnumerableProperty$2(O, 'cause', options.cause); } }; @@ -1889,427 +2174,142 @@ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); var clearErrorStack$1 = function (stack, dropEntries) { if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { while (dropEntries--) stack = replace$3(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); - } return stack; -}; - -var fails$b = fails$p; -var createPropertyDescriptor$2 = createPropertyDescriptor$5; - -var errorStackInstallable = !fails$b(function () { - var error = Error('a'); - if (!('stack' in error)) return true; - // eslint-disable-next-line es-x/no-object-defineproperty -- safe - Object.defineProperty(error, 'stack', createPropertyDescriptor$2(1, 7)); - return error.stack !== 7; -}); - -var getBuiltIn$3 = getBuiltIn$8; -var hasOwn$3 = hasOwnProperty_1; -var createNonEnumerableProperty$2 = createNonEnumerableProperty$7; -var isPrototypeOf$1 = objectIsPrototypeOf; -var setPrototypeOf$1 = objectSetPrototypeOf; -var copyConstructorProperties = copyConstructorProperties$2; -var proxyAccessor$1 = proxyAccessor$2; -var inheritIfRequired$1 = inheritIfRequired$2; -var normalizeStringArgument = normalizeStringArgument$1; -var installErrorCause = installErrorCause$1; -var clearErrorStack = clearErrorStack$1; -var ERROR_STACK_INSTALLABLE = errorStackInstallable; -var DESCRIPTORS$4 = descriptors; - -var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { - var STACK_TRACE_LIMIT = 'stackTraceLimit'; - var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; - var path = FULL_NAME.split('.'); - var ERROR_NAME = path[path.length - 1]; - var OriginalError = getBuiltIn$3.apply(null, path); - - if (!OriginalError) return; - - var OriginalErrorPrototype = OriginalError.prototype; - - // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 - if (hasOwn$3(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; - - if (!FORCED) return OriginalError; - - var BaseError = getBuiltIn$3('Error'); - - var WrappedError = wrapper(function (a, b) { - var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); - var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); - if (message !== undefined) createNonEnumerableProperty$2(result, 'message', message); - if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$2(result, 'stack', clearErrorStack(result.stack, 2)); - if (this && isPrototypeOf$1(OriginalErrorPrototype, this)) inheritIfRequired$1(result, this, WrappedError); - if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); - return result; - }); - - WrappedError.prototype = OriginalErrorPrototype; - - if (ERROR_NAME !== 'Error') { - if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError); - else copyConstructorProperties(WrappedError, BaseError, { name: true }); - } else if (DESCRIPTORS$4 && STACK_TRACE_LIMIT in OriginalError) { - proxyAccessor$1(WrappedError, OriginalError, STACK_TRACE_LIMIT); - proxyAccessor$1(WrappedError, OriginalError, 'prepareStackTrace'); - } - - copyConstructorProperties(WrappedError, OriginalError); - - try { - // Safari 13- bug: WebAssembly errors does not have a proper `.name` - if (OriginalErrorPrototype.name !== ERROR_NAME) { - createNonEnumerableProperty$2(OriginalErrorPrototype, 'name', ERROR_NAME); - } - OriginalErrorPrototype.constructor = WrappedError; - } catch (error) { /* empty */ } - - return WrappedError; -}; - -/* eslint-disable no-unused-vars -- required for functions `.length` */ - -var $$d = _export; -var global$2 = global$f; -var apply$2 = functionApply; -var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1; - -var WEB_ASSEMBLY = 'WebAssembly'; -var WebAssembly = global$2[WEB_ASSEMBLY]; - -var FORCED$2 = Error('e', { cause: 7 }).cause !== 7; - -var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2); - $$d({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O); -}; - -var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { - if (WebAssembly && WebAssembly[ERROR_NAME]) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2); - $$d({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O); - } -}; - -// https://github.com/tc39/proposal-error-cause -exportGlobalErrorCauseWrapper('Error', function (init) { - return function Error(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('EvalError', function (init) { - return function EvalError(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('RangeError', function (init) { - return function RangeError(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('ReferenceError', function (init) { - return function ReferenceError(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('SyntaxError', function (init) { - return function SyntaxError(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('TypeError', function (init) { - return function TypeError(message) { return apply$2(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('URIError', function (init) { - return function URIError(message) { return apply$2(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { - return function CompileError(message) { return apply$2(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { - return function LinkError(message) { return apply$2(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { - return function RuntimeError(message) { return apply$2(init, this, arguments); }; -}); - -var wellKnownSymbol$a = wellKnownSymbol$i; -var create$1 = objectCreate; -var defineProperty$3 = objectDefineProperty.f; - -var UNSCOPABLES = wellKnownSymbol$a('unscopables'); -var ArrayPrototype = Array.prototype; - -// Array.prototype[@@unscopables] -// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -if (ArrayPrototype[UNSCOPABLES] == undefined) { - defineProperty$3(ArrayPrototype, UNSCOPABLES, { - configurable: true, - value: create$1(null) - }); -} - -// add a key to Array.prototype[@@unscopables] -var addToUnscopables$1 = function (key) { - ArrayPrototype[UNSCOPABLES][key] = true; -}; - -var iterators = {}; - -var fails$a = fails$p; - -var correctPrototypeGetter = !fails$a(function () { - function F() { /* empty */ } - F.prototype.constructor = null; - // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing - return Object.getPrototypeOf(new F()) !== F.prototype; -}); - -var hasOwn$2 = hasOwnProperty_1; -var isCallable$5 = isCallable$m; -var toObject$4 = toObject$7; -var sharedKey = sharedKey$3; -var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; - -var IE_PROTO = sharedKey('IE_PROTO'); -var $Object = Object; -var ObjectPrototype = $Object.prototype; - -// `Object.getPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.getprototypeof -// eslint-disable-next-line es-x/no-object-getprototypeof -- safe -var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { - var object = toObject$4(O); - if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO]; - var constructor = object.constructor; - if (isCallable$5(constructor) && object instanceof constructor) { - return constructor.prototype; - } return object instanceof $Object ? ObjectPrototype : null; -}; - -var fails$9 = fails$p; -var isCallable$4 = isCallable$m; -var getPrototypeOf$1 = objectGetPrototypeOf; -var defineBuiltIn$2 = defineBuiltIn$5; -var wellKnownSymbol$9 = wellKnownSymbol$i; - -var ITERATOR$1 = wellKnownSymbol$9('iterator'); -var BUGGY_SAFARI_ITERATORS$1 = false; - -// `%IteratorPrototype%` object -// https://tc39.es/ecma262/#sec-%iteratorprototype%-object -var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; - -/* eslint-disable es-x/no-array-prototype-keys -- safe */ -if ([].keys) { - arrayIterator = [].keys(); - // Safari 8 has buggy iterators w/o `next` - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true; - else { - PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; - } -} - -var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$9(function () { - var test = {}; - // FF44- legacy iterators case - return IteratorPrototype$2[ITERATOR$1].call(test) !== test; -}); - -if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; - -// `%IteratorPrototype%[@@iterator]()` method -// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator -if (!isCallable$4(IteratorPrototype$2[ITERATOR$1])) { - defineBuiltIn$2(IteratorPrototype$2, ITERATOR$1, function () { - return this; - }); -} - -var iteratorsCore = { - IteratorPrototype: IteratorPrototype$2, - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 -}; - -var defineProperty$2 = objectDefineProperty.f; -var hasOwn$1 = hasOwnProperty_1; -var wellKnownSymbol$8 = wellKnownSymbol$i; - -var TO_STRING_TAG = wellKnownSymbol$8('toStringTag'); - -var setToStringTag$2 = function (target, TAG, STATIC) { - if (target && !STATIC) target = target.prototype; - if (target && !hasOwn$1(target, TO_STRING_TAG)) { - defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG }); - } + } return stack; }; -var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; -var create = objectCreate; +var fails$9 = fails$p; var createPropertyDescriptor$1 = createPropertyDescriptor$5; -var setToStringTag$1 = setToStringTag$2; -var Iterators$2 = iterators; - -var returnThis$1 = function () { return this; }; -var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { - var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) }); - setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false); - Iterators$2[TO_STRING_TAG] = returnThis$1; - return IteratorConstructor; -}; +var errorStackInstallable = !fails$9(function () { + var error = Error('a'); + if (!('stack' in error)) return true; + // eslint-disable-next-line es-x/no-object-defineproperty -- safe + Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7)); + return error.stack !== 7; +}); -var $$c = _export; -var call$4 = functionCall; -var FunctionName = functionName; -var isCallable$3 = isCallable$m; -var createIteratorConstructor = createIteratorConstructor$1; -var getPrototypeOf = objectGetPrototypeOf; -var setPrototypeOf = objectSetPrototypeOf; -var setToStringTag = setToStringTag$2; +var getBuiltIn$3 = getBuiltIn$8; +var hasOwn$1 = hasOwnProperty_1; var createNonEnumerableProperty$1 = createNonEnumerableProperty$7; -var defineBuiltIn$1 = defineBuiltIn$5; -var wellKnownSymbol$7 = wellKnownSymbol$i; -var Iterators$1 = iterators; -var IteratorsCore = iteratorsCore; +var isPrototypeOf$1 = objectIsPrototypeOf; +var setPrototypeOf = objectSetPrototypeOf; +var copyConstructorProperties = copyConstructorProperties$2; +var proxyAccessor$1 = proxyAccessor$2; +var inheritIfRequired$1 = inheritIfRequired$2; +var normalizeStringArgument = normalizeStringArgument$1; +var installErrorCause = installErrorCause$1; +var clearErrorStack = clearErrorStack$1; +var ERROR_STACK_INSTALLABLE = errorStackInstallable; +var DESCRIPTORS$3 = descriptors; -var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER; -var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; -var IteratorPrototype = IteratorsCore.IteratorPrototype; -var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR = wellKnownSymbol$7('iterator'); -var KEYS = 'keys'; -var VALUES = 'values'; -var ENTRIES = 'entries'; +var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { + var STACK_TRACE_LIMIT = 'stackTraceLimit'; + var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; + var path = FULL_NAME.split('.'); + var ERROR_NAME = path[path.length - 1]; + var OriginalError = getBuiltIn$3.apply(null, path); -var returnThis = function () { return this; }; + if (!OriginalError) return; -var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { - createIteratorConstructor(IteratorConstructor, NAME, next); + var OriginalErrorPrototype = OriginalError.prototype; - var getIterationMethod = function (KIND) { - if (KIND === DEFAULT && defaultIterator) return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; - switch (KIND) { - case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; - case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; - case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; - } return function () { return new IteratorConstructor(this); }; - }; + // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 + if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; - var TO_STRING_TAG = NAME + ' Iterator'; - var INCORRECT_VALUES_NAME = false; - var IterablePrototype = Iterable.prototype; - var nativeIterator = IterablePrototype[ITERATOR] - || IterablePrototype['@@iterator'] - || DEFAULT && IterablePrototype[DEFAULT]; - var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); - var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; - var CurrentIteratorPrototype, methods, KEY; + if (!FORCED) return OriginalError; - // fix native - if (anyNativeIterator) { - CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); - if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { - if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { - if (setPrototypeOf) { - setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); - } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR])) { - defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR, returnThis); - } - } - // Set @@toStringTag to native iterators - setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); - } - } + var BaseError = getBuiltIn$3('Error'); - // fix Array.prototype.{ values, @@iterator }.name in V8 / FF - if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { - if (CONFIGURABLE_FUNCTION_NAME) { - createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES); - } else { - INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return call$4(nativeIterator, this); }; - } - } + var WrappedError = wrapper(function (a, b) { + var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); + var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); + if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message); + if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$1(result, 'stack', clearErrorStack(result.stack, 2)); + if (this && isPrototypeOf$1(OriginalErrorPrototype, this)) inheritIfRequired$1(result, this, WrappedError); + if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); + return result; + }); - // export additional methods - if (DEFAULT) { - methods = { - values: getIterationMethod(VALUES), - keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), - entries: getIterationMethod(ENTRIES) - }; - if (FORCED) for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]); - } - } else $$c({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); - } + WrappedError.prototype = OriginalErrorPrototype; - // define iterator - if (IterablePrototype[ITERATOR] !== defaultIterator) { - defineBuiltIn$1(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); + if (ERROR_NAME !== 'Error') { + if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); + else copyConstructorProperties(WrappedError, BaseError, { name: true }); + } else if (DESCRIPTORS$3 && STACK_TRACE_LIMIT in OriginalError) { + proxyAccessor$1(WrappedError, OriginalError, STACK_TRACE_LIMIT); + proxyAccessor$1(WrappedError, OriginalError, 'prepareStackTrace'); } - Iterators$1[NAME] = defaultIterator; - return methods; + copyConstructorProperties(WrappedError, OriginalError); + + try { + // Safari 13- bug: WebAssembly errors does not have a proper `.name` + if (OriginalErrorPrototype.name !== ERROR_NAME) { + createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME); + } + OriginalErrorPrototype.constructor = WrappedError; + } catch (error) { /* empty */ } + + return WrappedError; }; -var toIndexedObject$1 = toIndexedObject$6; -var addToUnscopables = addToUnscopables$1; -var Iterators = iterators; -var InternalStateModule = internalState; -var defineProperty$1 = objectDefineProperty.f; -var defineIterator = defineIterator$1; -var DESCRIPTORS$3 = descriptors; +/* eslint-disable no-unused-vars -- required for functions `.length` */ -var ARRAY_ITERATOR = 'Array Iterator'; -var setInternalState = InternalStateModule.set; -var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR); +var $$c = _export; +var global$2 = global$f; +var apply$2 = functionApply; +var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1; -// `Array.prototype.entries` method -// https://tc39.es/ecma262/#sec-array.prototype.entries -// `Array.prototype.keys` method -// https://tc39.es/ecma262/#sec-array.prototype.keys -// `Array.prototype.values` method -// https://tc39.es/ecma262/#sec-array.prototype.values -// `Array.prototype[@@iterator]` method -// https://tc39.es/ecma262/#sec-array.prototype-@@iterator -// `CreateArrayIterator` internal method -// https://tc39.es/ecma262/#sec-createarrayiterator -defineIterator(Array, 'Array', function (iterated, kind) { - setInternalState(this, { - type: ARRAY_ITERATOR, - target: toIndexedObject$1(iterated), // target - index: 0, // next index - kind: kind // kind - }); -// `%ArrayIteratorPrototype%.next` method -// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next -}, function () { - var state = getInternalState$1(this); - var target = state.target; - var kind = state.kind; - var index = state.index++; - if (!target || index >= target.length) { - state.target = undefined; - return { value: undefined, done: true }; - } - if (kind == 'keys') return { value: index, done: false }; - if (kind == 'values') return { value: target[index], done: false }; - return { value: [index, target[index]], done: false }; -}, 'values'); +var WEB_ASSEMBLY = 'WebAssembly'; +var WebAssembly = global$2[WEB_ASSEMBLY]; -// argumentsList[@@iterator] is %ArrayProto_values% -// https://tc39.es/ecma262/#sec-createunmappedargumentsobject -// https://tc39.es/ecma262/#sec-createmappedargumentsobject -var values = Iterators.Arguments = Iterators.Array; +var FORCED$2 = Error('e', { cause: 7 }).cause !== 7; -// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); +var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { + var O = {}; + O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2); + $$c({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O); +}; -// V8 ~ Chrome 45- bug -if (DESCRIPTORS$3 && values.name !== 'values') try { - defineProperty$1(values, 'name', { value: 'values' }); -} catch (error) { /* empty */ } +var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { + if (WebAssembly && WebAssembly[ERROR_NAME]) { + var O = {}; + O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2); + $$c({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O); + } +}; + +// https://github.com/tc39/proposal-error-cause +exportGlobalErrorCauseWrapper('Error', function (init) { + return function Error(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('EvalError', function (init) { + return function EvalError(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('RangeError', function (init) { + return function RangeError(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('ReferenceError', function (init) { + return function ReferenceError(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('SyntaxError', function (init) { + return function SyntaxError(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('TypeError', function (init) { + return function TypeError(message) { return apply$2(init, this, arguments); }; +}); +exportGlobalErrorCauseWrapper('URIError', function (init) { + return function URIError(message) { return apply$2(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { + return function CompileError(message) { return apply$2(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { + return function LinkError(message) { return apply$2(init, this, arguments); }; +}); +exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { + return function RuntimeError(message) { return apply$2(init, this, arguments); }; +}); // TODO: Remove from `core-js@4` since it's moved to entry points @@ -9468,6 +9468,7 @@ setTimeout(function () { const shell = global; const target = global.target; const SOURCES = ["packages", "codemods", "eslint"]; +const EslintArgs = ["eslint", "scripts", "benchmark", ...SOURCES, "*.{js,cjs,mjs,ts}", "--format", "codeframe", "--ext", ".js,.cjs,.mjs,.ts"]; const YARN_PATH = shell.which("yarn").stdout; const NODE_PATH = process.execPath; shell.config.verbose = true; @@ -9582,18 +9583,18 @@ target["build-standalone"] = function () { }; target["build-bundle"] = function () { - node(["scripts/set-module-type.js"]); target["clean"](); target["clean-lib"](); + node(["scripts/set-module-type.js"]); yarn(["gulp", "build"]); target["build-flow-typings"](); target["build-dist"](); }; target["build-no-bundle"] = function () { - node(["scripts/set-module-type.js"]); target["clean"](); target["clean-lib"](); + node(["scripts/set-module-type.js"]); env(() => { yarn(["gulp", "build-dev"]); }, { @@ -9615,6 +9616,17 @@ target["build-plugin-transform-runtime-dist"] = function () { node(["scripts/build-dist.js"], "packages/babel-plugin-transform-runtime"); }; +target["prepublish"] = function () { + target["bootstrap-only"](); + target["prepublish-build"](); + env(() => { + target["test"](); + }, { + IS_PUBLISH: "true" + }); + node(["scripts/set-module-type.js", "clean"]); +}; + target["prepublish-build"] = function () { target["clean-lib"](); target["clean-runtime-helpers"](); @@ -9664,17 +9676,17 @@ target["generate-type-helpers"] = function () { yarn(["gulp", "generate-type-helpers"]); }; -target["clone-license"] = function () { - node(["scripts/clone-license.js"]); -}; - target["build-typescript-legacy-typings"] = function () { require$$1.writeFileSync("packages/babel-types/lib/index-legacy.d.ts", node(["packages/babel-types/scripts/generators/typescript-legacy.js"], undefined, false)); }; +target["clone-license"] = function () { + node(["scripts/clone-license.js"]); +}; + target["lint"] = function () { env(() => { - yarn(["eslint", "scripts", "benchmark", ...SOURCES, "*.{js,cjs,mjs,ts}", "--format", "codeframe", "--ext", ".js,.cjs,.mjs,.ts"]); + yarn(EslintArgs); }, { BABEL_ENV: "test" }); @@ -9686,7 +9698,7 @@ target["fix"] = function () { }; target["fix-js"] = function () { - yarn(["eslint", "scripts", "benchmark", ...SOURCES, "*.{js,cjs,mjs,ts}", "--format", "codeframe", "--ext", ".js,.cjs,.mjs,.ts", "--fix"]); + yarn([...EslintArgs, "--fix"]); }; target["fix-json"] = function () { diff --git a/Makefile.source.mjs b/Makefile.source.mjs index fb3143d0c31d..93f2ecf72128 100644 --- a/Makefile.source.mjs +++ b/Makefile.source.mjs @@ -11,6 +11,18 @@ const target = global.target; const SOURCES = ["packages", "codemods", "eslint"]; +const EslintArgs = [ + "eslint", + "scripts", + "benchmark", + ...SOURCES, + "*.{js,cjs,mjs,ts}", + "--format", + "codeframe", + "--ext", + ".js,.cjs,.mjs,.ts", +]; + const YARN_PATH = shell.which("yarn").stdout; const NODE_PATH = process.execPath; // `yarn node` is so slow on Windows @@ -162,11 +174,11 @@ target["build-standalone"] = function () { }; target["build-bundle"] = function () { - node(["scripts/set-module-type.js"]); - target["clean"](); target["clean-lib"](); + node(["scripts/set-module-type.js"]); + yarn(["gulp", "build"]); target["build-flow-typings"](); @@ -174,11 +186,11 @@ target["build-bundle"] = function () { }; target["build-no-bundle"] = function () { - node(["scripts/set-module-type.js"]); - target["clean"](); target["clean-lib"](); + node(["scripts/set-module-type.js"]); + env( () => { yarn(["gulp", "build-dev"]); @@ -205,6 +217,22 @@ target["build-plugin-transform-runtime-dist"] = function () { node(["scripts/build-dist.js"], "packages/babel-plugin-transform-runtime"); }; +target["prepublish"] = function () { + target["bootstrap-only"](); + target["prepublish-build"](); + + env( + () => { + target["test"](); + }, + { + IS_PUBLISH: "true", + } + ); + + node(["scripts/set-module-type.js", "clean"]); +}; + target["prepublish-build"] = function () { target["clean-lib"](); target["clean-runtime-helpers"](); @@ -268,10 +296,6 @@ target["generate-type-helpers"] = function () { yarn(["gulp", "generate-type-helpers"]); }; -target["clone-license"] = function () { - node(["scripts/clone-license.js"]); -}; - target["build-typescript-legacy-typings"] = function () { writeFileSync( "packages/babel-types/lib/index-legacy.d.ts", @@ -283,6 +307,10 @@ target["build-typescript-legacy-typings"] = function () { ); }; +target["clone-license"] = function () { + node(["scripts/clone-license.js"]); +}; + /** * DEV */ @@ -290,17 +318,7 @@ target["build-typescript-legacy-typings"] = function () { target["lint"] = function () { env( () => { - yarn([ - "eslint", - "scripts", - "benchmark", - ...SOURCES, - "*.{js,cjs,mjs,ts}", - "--format", - "codeframe", - "--ext", - ".js,.cjs,.mjs,.ts", - ]); + yarn(EslintArgs); }, { BABEL_ENV: "test", @@ -314,18 +332,7 @@ target["fix"] = function () { }; target["fix-js"] = function () { - yarn([ - "eslint", - "scripts", - "benchmark", - ...SOURCES, - "*.{js,cjs,mjs,ts}", - "--format", - "codeframe", - "--ext", - ".js,.cjs,.mjs,.ts", - "--fix", - ]); + yarn([...EslintArgs, "--fix"]); }; target["fix-json"] = function () { @@ -366,8 +373,9 @@ target["test-only"] = function (args = []) { */ target["new-version-checklist"] = function () { + // eslint-disable-next-line no-constant-condition if (0) { - throw new Error( + console.log( ` !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@ -379,6 +387,8 @@ target["new-version-checklist"] = function () { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! `.trim() ); + // eslint-disable-next-line no-process-exit + process.exit(1); } };