From fe6d2d6910f460630dd016163d0d5c8e4c2eaa22 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Thu, 31 Oct 2024 07:16:08 +0700 Subject: [PATCH] v3.39.0 --- CHANGELOG.md | 4 + README.md | 14 +- deno/corejs/README.md | 2 +- deno/corejs/index.js | 12216 ++++++++++--------- docs/compat/compat-data.js | 304 +- docs/compat/tests.js | 125 +- package-lock.json | 18 +- package.json | 2 +- packages/core-js-builder/package.json | 6 +- packages/core-js-bundle/package.json | 2 +- packages/core-js-compat/README.md | 6 +- packages/core-js-compat/package.json | 2 +- packages/core-js-pure/package.json | 2 +- packages/core-js/internals/shared-store.js | 4 +- packages/core-js/package.json | 2 +- 15 files changed, 6589 insertions(+), 6120 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 037563ffee3e..a27561fafe51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog ##### Unreleased +- Nothing + +##### [3.39.0 - 2024.10.31](https://github.com/zloirock/core-js/releases/tag/v3.39.0) +- Changes [v3.38.1...v3.39.0](https://github.com/zloirock/core-js/compare/v3.38.1...v3.39.0) - [`Iterator` helpers proposal](https://github.com/tc39/proposal-iterator-helpers): - Built-ins: - `Iterator` diff --git a/README.md b/README.md index fd45e01e2808..d1742f9c0cf0 100644 --- a/README.md +++ b/README.md @@ -214,11 +214,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) ### Installation:[⬆](#index) ```sh // global version -npm install --save core-js@3.38.1 +npm install --save core-js@3.39.0 // version without global namespace pollution -npm install --save core-js-pure@3.38.1 +npm install --save core-js-pure@3.39.0 // bundled global version -npm install --save core-js-bundle@3.38.1 +npm install --save core-js-bundle@3.39.0 ``` Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle). @@ -316,10 +316,10 @@ import 'regenerator-runtime/runtime'; #### `@babel/preset-env`[⬆](#index) -[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.38'`. +[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.39'`. > [!IMPORTANT] -> Recommended to specify used minor `core-js` version, like `corejs: '3.38'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases. +> Recommended to specify used minor `core-js` version, like `corejs: '3.39'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases. --- @@ -380,7 +380,7 @@ import 'core-js/modules/es.array.of'; var array = Array.of(1, 2, 3); ``` -By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by the `proposals` option, as `corejs: { version: '3.38', proposals: true }`. +By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by the `proposals` option, as `corejs: { version: '3.39', proposals: true }`. > [!IMPORTANT] > In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically. @@ -418,7 +418,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s "env": { "targets": "> 0.25%, not dead", "mode": "entry", - "coreJs": "3.38" + "coreJs": "3.39" } } ``` diff --git a/deno/corejs/README.md b/deno/corejs/README.md index 5c44e41fdaca..364ffb50cc00 100644 --- a/deno/corejs/README.md +++ b/deno/corejs/README.md @@ -29,7 +29,7 @@ *Example*: ```js -import 'https://deno.land/x/corejs@v3.38.1/index.js'; // <- at the top of your entry point +import 'https://deno.land/x/corejs@v3.39.0/index.js'; // <- at the top of your entry point Object.hasOwn({ foo: 42 }, 'foo'); // => true diff --git a/deno/corejs/index.js b/deno/corejs/index.js index ef7f0ede52de..c9c4cbecb93d 100644 --- a/deno/corejs/index.js +++ b/deno/corejs/index.js @@ -1,7 +1,7 @@ /** - * core-js 3.38.1 + * core-js 3.39.0 * © 2014-2024 Denis Pushkarev (zloirock.ru) - * license: https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE + * license: https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE * source: https://github.com/zloirock/core-js */ !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap @@ -109,143 +109,143 @@ __webpack_require__(117); __webpack_require__(121); __webpack_require__(130); __webpack_require__(131); -__webpack_require__(133); -__webpack_require__(134); __webpack_require__(135); -__webpack_require__(136); -__webpack_require__(166); -__webpack_require__(167); -__webpack_require__(168); -__webpack_require__(169); -__webpack_require__(170); -__webpack_require__(171); -__webpack_require__(173); -__webpack_require__(184); -__webpack_require__(186); -__webpack_require__(188); +__webpack_require__(142); +__webpack_require__(143); +__webpack_require__(145); +__webpack_require__(146); +__webpack_require__(148); +__webpack_require__(149); +__webpack_require__(150); +__webpack_require__(152); +__webpack_require__(153); +__webpack_require__(154); +__webpack_require__(155); +__webpack_require__(156); +__webpack_require__(158); +__webpack_require__(159); +__webpack_require__(160); +__webpack_require__(161); __webpack_require__(190); +__webpack_require__(191); __webpack_require__(192); +__webpack_require__(193); __webpack_require__(194); +__webpack_require__(195); __webpack_require__(196); -__webpack_require__(197); __webpack_require__(198); -__webpack_require__(202); -__webpack_require__(203); -__webpack_require__(206); -__webpack_require__(207); __webpack_require__(208); -__webpack_require__(211); +__webpack_require__(210); __webpack_require__(212); -__webpack_require__(213); +__webpack_require__(214); __webpack_require__(216); -__webpack_require__(217); +__webpack_require__(218); +__webpack_require__(220); +__webpack_require__(221); +__webpack_require__(222); __webpack_require__(226); +__webpack_require__(227); __webpack_require__(230); +__webpack_require__(231); __webpack_require__(232); __webpack_require__(234); +__webpack_require__(235); __webpack_require__(236); -__webpack_require__(237); -__webpack_require__(238); __webpack_require__(239); __webpack_require__(240); -__webpack_require__(243); -__webpack_require__(245); -__webpack_require__(246); -__webpack_require__(250); +__webpack_require__(247); __webpack_require__(251); __webpack_require__(253); -__webpack_require__(254); __webpack_require__(255); -__webpack_require__(256); +__webpack_require__(257); __webpack_require__(258); __webpack_require__(259); +__webpack_require__(260); __webpack_require__(261); -__webpack_require__(262); -__webpack_require__(263); __webpack_require__(264); -__webpack_require__(265); __webpack_require__(266); __webpack_require__(267); __webpack_require__(271); +__webpack_require__(272); +__webpack_require__(273); +__webpack_require__(274); +__webpack_require__(275); +__webpack_require__(276); +__webpack_require__(278); +__webpack_require__(279); +__webpack_require__(281); +__webpack_require__(282); +__webpack_require__(283); +__webpack_require__(284); +__webpack_require__(285); __webpack_require__(286); __webpack_require__(287); -__webpack_require__(289); __webpack_require__(290); -__webpack_require__(295); -__webpack_require__(297); -__webpack_require__(298); -__webpack_require__(300); -__webpack_require__(301); -__webpack_require__(302); -__webpack_require__(303); -__webpack_require__(304); +__webpack_require__(305); __webpack_require__(306); -__webpack_require__(311); -__webpack_require__(312); -__webpack_require__(313); +__webpack_require__(308); +__webpack_require__(309); __webpack_require__(314); -__webpack_require__(315); __webpack_require__(316); -__webpack_require__(318); +__webpack_require__(317); __webpack_require__(319); __webpack_require__(320); __webpack_require__(321); __webpack_require__(322); __webpack_require__(323); -__webpack_require__(324); __webpack_require__(325); __webpack_require__(326); __webpack_require__(327); __webpack_require__(328); -__webpack_require__(331); +__webpack_require__(329); +__webpack_require__(330); __webpack_require__(333); __webpack_require__(335); __webpack_require__(337); -__webpack_require__(338); __webpack_require__(339); __webpack_require__(340); __webpack_require__(341); __webpack_require__(342); +__webpack_require__(343); __webpack_require__(344); __webpack_require__(346); __webpack_require__(347); __webpack_require__(348); -__webpack_require__(349); __webpack_require__(350); __webpack_require__(351); +__webpack_require__(352); __webpack_require__(353); __webpack_require__(354); __webpack_require__(355); -__webpack_require__(356); __webpack_require__(357); __webpack_require__(358); __webpack_require__(359); +__webpack_require__(360); +__webpack_require__(361); __webpack_require__(362); __webpack_require__(363); -__webpack_require__(364); -__webpack_require__(365); __webpack_require__(366); __webpack_require__(367); __webpack_require__(368); __webpack_require__(369); __webpack_require__(370); +__webpack_require__(371); +__webpack_require__(372); +__webpack_require__(373); __webpack_require__(374); -__webpack_require__(375); -__webpack_require__(377); __webpack_require__(378); -__webpack_require__(379); __webpack_require__(380); __webpack_require__(381); __webpack_require__(382); __webpack_require__(383); __webpack_require__(384); __webpack_require__(385); -__webpack_require__(390); -__webpack_require__(391); -__webpack_require__(392); +__webpack_require__(386); +__webpack_require__(387); +__webpack_require__(388); +__webpack_require__(393); +__webpack_require__(394); __webpack_require__(395); -__webpack_require__(396); -__webpack_require__(397); __webpack_require__(398); __webpack_require__(399); __webpack_require__(400); @@ -259,49 +259,54 @@ __webpack_require__(407); __webpack_require__(408); __webpack_require__(409); __webpack_require__(410); +__webpack_require__(411); __webpack_require__(412); -__webpack_require__(414); +__webpack_require__(413); +__webpack_require__(415); __webpack_require__(417); -__webpack_require__(421); -__webpack_require__(422); -__webpack_require__(423); +__webpack_require__(420); +__webpack_require__(424); __webpack_require__(425); __webpack_require__(426); __webpack_require__(428); __webpack_require__(429); -__webpack_require__(430); __webpack_require__(431); __webpack_require__(432); __webpack_require__(433); __webpack_require__(434); +__webpack_require__(435); +__webpack_require__(436); __webpack_require__(437); -__webpack_require__(438); __webpack_require__(439); __webpack_require__(440); -__webpack_require__(445); +__webpack_require__(441); +__webpack_require__(442); __webpack_require__(447); __webpack_require__(449); -__webpack_require__(450); __webpack_require__(451); __webpack_require__(452); +__webpack_require__(453); __webpack_require__(454); -__webpack_require__(455); __webpack_require__(456); __webpack_require__(457); +__webpack_require__(458); +__webpack_require__(459); __webpack_require__(460); __webpack_require__(461); -__webpack_require__(462); -__webpack_require__(463); +__webpack_require__(464); +__webpack_require__(465); __webpack_require__(466); __webpack_require__(467); -__webpack_require__(468); +__webpack_require__(470); +__webpack_require__(471); __webpack_require__(472); -__webpack_require__(473); -__webpack_require__(474); __webpack_require__(476); __webpack_require__(477); __webpack_require__(478); -module.exports = __webpack_require__(479); +__webpack_require__(480); +__webpack_require__(481); +__webpack_require__(482); +module.exports = __webpack_require__(483); /***/ }), @@ -827,9 +832,9 @@ module.exports = uncurryThis({}.isPrototypeOf); /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL = __webpack_require__(25); -module.exports = NATIVE_SYMBOL - && !Symbol.sham - && typeof Symbol.iterator == 'symbol'; +module.exports = NATIVE_SYMBOL && + !Symbol.sham && + typeof Symbol.iterator == 'symbol'; /***/ }), @@ -1035,10 +1040,10 @@ var SHARED = '__core-js_shared__'; var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); (store.versions || (store.versions = [])).push({ - version: '3.38.1', + version: '3.39.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -2159,7 +2164,7 @@ var $Error = Error; var replace = uncurryThis(''.replace); var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd'); -// eslint-disable-next-line redos/no-vulnerable -- safe +// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); @@ -3161,6 +3166,8 @@ var isDetached = __webpack_require__(119); var ArrayBufferPrototype = ArrayBuffer.prototype; +// `ArrayBuffer.prototype.detached` getter +// https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.detached if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) { defineBuiltInAccessor(ArrayBufferPrototype, 'detached', { configurable: true, @@ -3496,41 +3503,68 @@ if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { "use strict"; var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var aCallable = __webpack_require__(29); -var requireObjectCoercible = __webpack_require__(15); -var iterate = __webpack_require__(91); -var MapHelpers = __webpack_require__(132); -var IS_PURE = __webpack_require__(35); +var globalThis = __webpack_require__(3); +var anInstance = __webpack_require__(132); +var anObject = __webpack_require__(45); +var isCallable = __webpack_require__(20); +var getPrototypeOf = __webpack_require__(85); +var defineBuiltInAccessor = __webpack_require__(118); +var createProperty = __webpack_require__(133); var fails = __webpack_require__(6); +var hasOwn = __webpack_require__(37); +var wellKnownSymbol = __webpack_require__(32); +var IteratorPrototype = __webpack_require__(134).IteratorPrototype; +var DESCRIPTORS = __webpack_require__(5); +var IS_PURE = __webpack_require__(35); -var Map = MapHelpers.Map; -var has = MapHelpers.has; -var get = MapHelpers.get; -var set = MapHelpers.set; -var push = uncurryThis([].push); +var CONSTRUCTOR = 'constructor'; +var ITERATOR = 'Iterator'; +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var DOES_NOT_WORK_WITH_PRIMITIVES = IS_PURE || fails(function () { - return Map.groupBy('ab', function (it) { - return it; - }).get('a').length !== 1; -}); +var $TypeError = TypeError; +var NativeIterator = globalThis[ITERATOR]; -// `Map.groupBy` method -// https://github.com/tc39/proposal-array-grouping -$({ target: 'Map', stat: true, forced: IS_PURE || DOES_NOT_WORK_WITH_PRIMITIVES }, { - groupBy: function groupBy(items, callbackfn) { - requireObjectCoercible(items); - aCallable(callbackfn); - var map = new Map(); - var k = 0; - iterate(items, function (value) { - var key = callbackfn(value, k++); - if (!has(map, key)) set(map, key, [value]); - else push(get(map, key), value); +// FF56- have non-standard global helper `Iterator` +var FORCED = IS_PURE + || !isCallable(NativeIterator) + || NativeIterator.prototype !== IteratorPrototype + // FF44- non-standard `Iterator` passes previous tests + || !fails(function () { NativeIterator({}); }); + +var IteratorConstructor = function Iterator() { + anInstance(this, IteratorPrototype); + if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable'); +}; + +var defineIteratorPrototypeAccessor = function (key, value) { + if (DESCRIPTORS) { + defineBuiltInAccessor(IteratorPrototype, key, { + configurable: true, + get: function () { + return value; + }, + set: function (replacement) { + anObject(this); + if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); + if (hasOwn(this, key)) this[key] = replacement; + else createProperty(this, key, replacement); + } }); - return map; - } + } else IteratorPrototype[key] = value; +}; + +if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); + +if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) { + defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); +} + +IteratorConstructor.prototype = IteratorPrototype; + +// `Iterator` constructor +// https://tc39.es/ecma262/#sec-iterator +$({ global: true, constructor: true, forced: FORCED }, { + Iterator: IteratorConstructor }); @@ -3540,19 +3574,13 @@ $({ target: 'Map', stat: true, forced: IS_PURE || DOES_NOT_WORK_WITH_PRIMITIVES "use strict"; -var uncurryThis = __webpack_require__(13); +var isPrototypeOf = __webpack_require__(23); -// eslint-disable-next-line es/no-map -- safe -var MapPrototype = Map.prototype; +var $TypeError = TypeError; -module.exports = { - // eslint-disable-next-line es/no-map -- safe - Map: Map, - set: uncurryThis(MapPrototype.set), - get: uncurryThis(MapPrototype.get), - has: uncurryThis(MapPrototype.has), - remove: uncurryThis(MapPrototype['delete']), - proto: MapPrototype +module.exports = function (it, Prototype) { + if (isPrototypeOf(Prototype, it)) return it; + throw new $TypeError('Incorrect invocation'); }; @@ -3562,44 +3590,14 @@ module.exports = { "use strict"; -var $ = __webpack_require__(2); -var getBuiltIn = __webpack_require__(22); -var uncurryThis = __webpack_require__(13); -var aCallable = __webpack_require__(29); -var requireObjectCoercible = __webpack_require__(15); -var toPropertyKey = __webpack_require__(17); -var iterate = __webpack_require__(91); -var fails = __webpack_require__(6); - -// eslint-disable-next-line es/no-object-groupby -- testing -var nativeGroupBy = Object.groupBy; -var create = getBuiltIn('Object', 'create'); -var push = uncurryThis([].push); - -var DOES_NOT_WORK_WITH_PRIMITIVES = !nativeGroupBy || fails(function () { - return nativeGroupBy('ab', function (it) { - return it; - }).a.length !== 1; -}); +var DESCRIPTORS = __webpack_require__(5); +var definePropertyModule = __webpack_require__(43); +var createPropertyDescriptor = __webpack_require__(10); -// `Object.groupBy` method -// https://github.com/tc39/proposal-array-grouping -$({ target: 'Object', stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, { - groupBy: function groupBy(items, callbackfn) { - requireObjectCoercible(items); - aCallable(callbackfn); - var obj = create(null); - var k = 0; - iterate(items, function (value) { - var key = toPropertyKey(callbackfn(value, k++)); - // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys - // but since it's a `null` prototype object, we can safely use `in` - if (key in obj) push(obj[key], value); - else obj[key] = [value]; - }); - return obj; - } -}); +module.exports = function (object, key, value) { + if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); + else object[key] = value; +}; /***/ }), @@ -3608,969 +3606,375 @@ $({ target: 'Object', stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, { "use strict"; -var $ = __webpack_require__(2); -var hasOwn = __webpack_require__(37); - -// `Object.hasOwn` method -// https://tc39.es/ecma262/#sec-object.hasown -$({ target: 'Object', stat: true }, { - hasOwn: hasOwn -}); +var fails = __webpack_require__(6); +var isCallable = __webpack_require__(20); +var isObject = __webpack_require__(19); +var create = __webpack_require__(87); +var getPrototypeOf = __webpack_require__(85); +var defineBuiltIn = __webpack_require__(46); +var wellKnownSymbol = __webpack_require__(32); +var IS_PURE = __webpack_require__(35); +var ITERATOR = wellKnownSymbol('iterator'); +var BUGGY_SAFARI_ITERATORS = false; -/***/ }), -/* 135 */ -/***/ (function(module, exports, __webpack_require__) { +// `%IteratorPrototype%` object +// https://tc39.es/ecma262/#sec-%iteratorprototype%-object +var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; -"use strict"; +/* eslint-disable es/no-array-prototype-keys -- safe */ +if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; + else { + PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; + } +} -var DESCRIPTORS = __webpack_require__(5); -var defineBuiltInAccessor = __webpack_require__(118); -var isObject = __webpack_require__(19); -var isPossiblePrototype = __webpack_require__(72); -var toObject = __webpack_require__(38); -var requireObjectCoercible = __webpack_require__(15); +var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { + var test = {}; + // FF44- legacy iterators case + return IteratorPrototype[ITERATOR].call(test) !== test; +}); -// eslint-disable-next-line es/no-object-getprototypeof -- safe -var getPrototypeOf = Object.getPrototypeOf; -// eslint-disable-next-line es/no-object-setprototypeof -- safe -var setPrototypeOf = Object.setPrototypeOf; -var ObjectPrototype = Object.prototype; -var PROTO = '__proto__'; +if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; +else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); -// `Object.prototype.__proto__` accessor -// https://tc39.es/ecma262/#sec-object.prototype.__proto__ -if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype)) try { - defineBuiltInAccessor(ObjectPrototype, PROTO, { - configurable: true, - get: function __proto__() { - return getPrototypeOf(toObject(this)); - }, - set: function __proto__(proto) { - var O = requireObjectCoercible(this); - if (isPossiblePrototype(proto) && isObject(O)) { - setPrototypeOf(O, proto); - } - } +// `%IteratorPrototype%[@@iterator]()` method +// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator +if (!isCallable(IteratorPrototype[ITERATOR])) { + defineBuiltIn(IteratorPrototype, ITERATOR, function () { + return this; }); -} catch (error) { /* empty */ } - - -/***/ }), -/* 136 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; +} -// TODO: Remove this module from `core-js@4` since it's split to modules listed below -__webpack_require__(137); -__webpack_require__(158); -__webpack_require__(161); -__webpack_require__(162); -__webpack_require__(163); -__webpack_require__(164); +module.exports = { + IteratorPrototype: IteratorPrototype, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS +}; /***/ }), -/* 137 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var IS_PURE = __webpack_require__(35); -var IS_NODE = __webpack_require__(127); -var globalThis = __webpack_require__(3); var call = __webpack_require__(7); -var defineBuiltIn = __webpack_require__(46); -var setPrototypeOf = __webpack_require__(69); -var setToStringTag = __webpack_require__(138); -var setSpecies = __webpack_require__(139); -var aCallable = __webpack_require__(29); -var isCallable = __webpack_require__(20); -var isObject = __webpack_require__(19); -var anInstance = __webpack_require__(140); -var speciesConstructor = __webpack_require__(141); -var task = __webpack_require__(144).set; -var microtask = __webpack_require__(148); -var hostReportErrors = __webpack_require__(153); -var perform = __webpack_require__(154); -var Queue = __webpack_require__(150); -var InternalStateModule = __webpack_require__(50); -var NativePromiseConstructor = __webpack_require__(155); -var PromiseConstructorDetection = __webpack_require__(156); -var newPromiseCapabilityModule = __webpack_require__(157); - -var PROMISE = 'Promise'; -var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; -var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; -var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; -var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); -var setInternalState = InternalStateModule.set; -var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; -var PromiseConstructor = NativePromiseConstructor; -var PromisePrototype = NativePromisePrototype; -var TypeError = globalThis.TypeError; -var document = globalThis.document; -var process = globalThis.process; -var newPromiseCapability = newPromiseCapabilityModule.f; -var newGenericPromiseCapability = newPromiseCapability; - -var DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent); -var UNHANDLED_REJECTION = 'unhandledrejection'; -var REJECTION_HANDLED = 'rejectionhandled'; -var PENDING = 0; -var FULFILLED = 1; -var REJECTED = 2; -var HANDLED = 1; -var UNHANDLED = 2; - -var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; - -// helpers -var isThenable = function (it) { - var then; - return isObject(it) && isCallable(then = it.then) ? then : false; -}; - -var callReaction = function (reaction, state) { - var value = state.value; - var ok = state.state === FULFILLED; - var handler = ok ? reaction.ok : reaction.fail; - var resolve = reaction.resolve; - var reject = reaction.reject; - var domain = reaction.domain; - var result, then, exited; - try { - if (handler) { - if (!ok) { - if (state.rejection === UNHANDLED) onHandleUnhandled(state); - state.rejection = HANDLED; - } - if (handler === true) result = value; - else { - if (domain) domain.enter(); - result = handler(value); // can throw - if (domain) { - domain.exit(); - exited = true; - } - } - if (result === reaction.promise) { - reject(new TypeError('Promise-chain cycle')); - } else if (then = isThenable(result)) { - call(then, result, resolve, reject); - } else resolve(result); - } else reject(value); - } catch (error) { - if (domain && !exited) domain.exit(); - reject(error); - } -}; - -var notify = function (state, isReject) { - if (state.notified) return; - state.notified = true; - microtask(function () { - var reactions = state.reactions; - var reaction; - while (reaction = reactions.get()) { - callReaction(reaction, state); - } - state.notified = false; - if (isReject && !state.rejection) onUnhandled(state); - }); -}; - -var dispatchEvent = function (name, promise, reason) { - var event, handler; - if (DISPATCH_EVENT) { - event = document.createEvent('Event'); - event.promise = promise; - event.reason = reason; - event.initEvent(name, false, true); - globalThis.dispatchEvent(event); - } else event = { promise: promise, reason: reason }; - if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event); - else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); -}; - -var onUnhandled = function (state) { - call(task, globalThis, function () { - var promise = state.facade; - var value = state.value; - var IS_UNHANDLED = isUnhandled(state); - var result; - if (IS_UNHANDLED) { - result = perform(function () { - if (IS_NODE) { - process.emit('unhandledRejection', value, promise); - } else dispatchEvent(UNHANDLED_REJECTION, promise, value); - }); - // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should - state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; - if (result.error) throw result.value; - } - }); -}; - -var isUnhandled = function (state) { - return state.rejection !== HANDLED && !state.parent; -}; - -var onHandleUnhandled = function (state) { - call(task, globalThis, function () { - var promise = state.facade; - if (IS_NODE) { - process.emit('rejectionHandled', promise); - } else dispatchEvent(REJECTION_HANDLED, promise, state.value); - }); -}; - -var bind = function (fn, state, unwrap) { - return function (value) { - fn(state, value, unwrap); - }; -}; - -var internalReject = function (state, value, unwrap) { - if (state.done) return; - state.done = true; - if (unwrap) state = unwrap; - state.value = value; - state.state = REJECTED; - notify(state, true); -}; - -var internalResolve = function (state, value, unwrap) { - if (state.done) return; - state.done = true; - if (unwrap) state = unwrap; - try { - if (state.facade === value) throw new TypeError("Promise can't be resolved itself"); - var then = isThenable(value); - if (then) { - microtask(function () { - var wrapper = { done: false }; - try { - call(then, value, - bind(internalResolve, wrapper, state), - bind(internalReject, wrapper, state) - ); - } catch (error) { - internalReject(wrapper, error, state); - } - }); - } else { - state.value = value; - state.state = FULFILLED; - notify(state, false); - } - } catch (error) { - internalReject({ done: false }, error, state); - } -}; - -// constructor polyfill -if (FORCED_PROMISE_CONSTRUCTOR) { - // 25.4.3.1 Promise(executor) - PromiseConstructor = function Promise(executor) { - anInstance(this, PromisePrototype); - aCallable(executor); - call(Internal, this); - var state = getInternalPromiseState(this); - try { - executor(bind(internalResolve, state), bind(internalReject, state)); - } catch (error) { - internalReject(state, error); - } - }; - - PromisePrototype = PromiseConstructor.prototype; - - // eslint-disable-next-line no-unused-vars -- required for `.length` - Internal = function Promise(executor) { - setInternalState(this, { - type: PROMISE, - done: false, - notified: false, - parent: false, - reactions: new Queue(), - rejection: false, - state: PENDING, - value: null - }); - }; - - // `Promise.prototype.then` method - // https://tc39.es/ecma262/#sec-promise.prototype.then - Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) { - var state = getInternalPromiseState(this); - var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); - state.parent = true; - reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; - reaction.fail = isCallable(onRejected) && onRejected; - reaction.domain = IS_NODE ? process.domain : undefined; - if (state.state === PENDING) state.reactions.add(reaction); - else microtask(function () { - callReaction(reaction, state); - }); - return reaction.promise; - }); - - OwnPromiseCapability = function () { - var promise = new Internal(); - var state = getInternalPromiseState(promise); - this.promise = promise; - this.resolve = bind(internalResolve, state); - this.reject = bind(internalReject, state); - }; - - newPromiseCapabilityModule.f = newPromiseCapability = function (C) { - return C === PromiseConstructor || C === PromiseWrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - }; - - if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { - nativeThen = NativePromisePrototype.then; - - if (!NATIVE_PROMISE_SUBCLASSING) { - // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs - defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { - var that = this; - return new PromiseConstructor(function (resolve, reject) { - call(nativeThen, that, resolve, reject); - }).then(onFulfilled, onRejected); - // https://github.com/zloirock/core-js/issues/640 - }, { unsafe: true }); - } - - // make `.constructor === Promise` work for native promise-based APIs - try { - delete NativePromisePrototype.constructor; - } catch (error) { /* empty */ } - - // make `instanceof Promise` work for native promise-based APIs - if (setPrototypeOf) { - setPrototypeOf(NativePromisePrototype, PromisePrototype); - } - } -} - -$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { - Promise: PromiseConstructor -}); - -setToStringTag(PromiseConstructor, PROMISE, false, true); -setSpecies(PROMISE); - - -/***/ }), -/* 138 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var defineProperty = __webpack_require__(43).f; -var hasOwn = __webpack_require__(37); -var wellKnownSymbol = __webpack_require__(32); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - -module.exports = function (target, TAG, STATIC) { - if (target && !STATIC) target = target.prototype; - if (target && !hasOwn(target, TO_STRING_TAG)) { - defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); - } -}; - - -/***/ }), -/* 139 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var getBuiltIn = __webpack_require__(22); -var defineBuiltInAccessor = __webpack_require__(118); -var wellKnownSymbol = __webpack_require__(32); -var DESCRIPTORS = __webpack_require__(5); - -var SPECIES = wellKnownSymbol('species'); - -module.exports = function (CONSTRUCTOR_NAME) { - var Constructor = getBuiltIn(CONSTRUCTOR_NAME); - - if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { - defineBuiltInAccessor(Constructor, SPECIES, { - configurable: true, - get: function () { return this; } - }); - } -}; - - -/***/ }), -/* 140 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var isPrototypeOf = __webpack_require__(23); - -var $TypeError = TypeError; - -module.exports = function (it, Prototype) { - if (isPrototypeOf(Prototype, it)) return it; - throw new $TypeError('Incorrect invocation'); -}; - - -/***/ }), -/* 141 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var anObject = __webpack_require__(45); -var aConstructor = __webpack_require__(142); -var isNullOrUndefined = __webpack_require__(16); -var wellKnownSymbol = __webpack_require__(32); - -var SPECIES = wellKnownSymbol('species'); - -// `SpeciesConstructor` abstract operation -// https://tc39.es/ecma262/#sec-speciesconstructor -module.exports = function (O, defaultConstructor) { - var C = anObject(O).constructor; - var S; - return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); -}; - - -/***/ }), -/* 142 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var isConstructor = __webpack_require__(143); -var tryToString = __webpack_require__(30); - -var $TypeError = TypeError; - -// `Assert: IsConstructor(argument) is true` -module.exports = function (argument) { - if (isConstructor(argument)) return argument; - throw new $TypeError(tryToString(argument) + ' is not a constructor'); -}; - - -/***/ }), -/* 143 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var uncurryThis = __webpack_require__(13); -var fails = __webpack_require__(6); -var isCallable = __webpack_require__(20); -var classof = __webpack_require__(77); -var getBuiltIn = __webpack_require__(22); -var inspectSource = __webpack_require__(49); - -var noop = function () { /* empty */ }; -var construct = getBuiltIn('Reflect', 'construct'); -var constructorRegExp = /^\s*(?:class|function)\b/; -var exec = uncurryThis(constructorRegExp.exec); -var INCORRECT_TO_STRING = !constructorRegExp.test(noop); - -var isConstructorModern = function isConstructor(argument) { - if (!isCallable(argument)) return false; - try { - construct(noop, [], argument); - return true; - } catch (error) { - return false; - } -}; - -var isConstructorLegacy = function isConstructor(argument) { - if (!isCallable(argument)) return false; - switch (classof(argument)) { - case 'AsyncFunction': - case 'GeneratorFunction': - case 'AsyncGeneratorFunction': return false; - } - try { - // we can't check .prototype since constructors produced by .bind haven't it - // `Function#toString` throws on some built-it function in some legacy engines - // (for example, `DOMQuad` and similar in FF41-) - return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); - } catch (error) { - return true; - } -}; - -isConstructorLegacy.sham = true; - -// `IsConstructor` abstract operation -// https://tc39.es/ecma262/#sec-isconstructor -module.exports = !construct || fails(function () { - var called; - return isConstructorModern(isConstructorModern.call) - || !isConstructorModern(Object) - || !isConstructorModern(function () { called = true; }) - || called; -}) ? isConstructorLegacy : isConstructorModern; - - -/***/ }), -/* 144 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var globalThis = __webpack_require__(3); -var apply = __webpack_require__(67); -var bind = __webpack_require__(92); -var isCallable = __webpack_require__(20); -var hasOwn = __webpack_require__(37); -var fails = __webpack_require__(6); -var html = __webpack_require__(90); -var arraySlice = __webpack_require__(145); -var createElement = __webpack_require__(41); -var validateArgumentsLength = __webpack_require__(146); -var IS_IOS = __webpack_require__(147); -var IS_NODE = __webpack_require__(127); - -var set = globalThis.setImmediate; -var clear = globalThis.clearImmediate; -var process = globalThis.process; -var Dispatch = globalThis.Dispatch; -var Function = globalThis.Function; -var MessageChannel = globalThis.MessageChannel; -var String = globalThis.String; -var counter = 0; -var queue = {}; -var ONREADYSTATECHANGE = 'onreadystatechange'; -var $location, defer, channel, port; - -fails(function () { - // Deno throws a ReferenceError on `location` access without `--location` flag - $location = globalThis.location; -}); - -var run = function (id) { - if (hasOwn(queue, id)) { - var fn = queue[id]; - delete queue[id]; - fn(); - } -}; - -var runner = function (id) { - return function () { - run(id); - }; -}; - -var eventListener = function (event) { - run(event.data); -}; - -var globalPostMessageDefer = function (id) { - // old engines have not location.origin - globalThis.postMessage(String(id), $location.protocol + '//' + $location.host); -}; - -// Node.js 0.9+ & IE10+ has setImmediate, otherwise: -if (!set || !clear) { - set = function setImmediate(handler) { - validateArgumentsLength(arguments.length, 1); - var fn = isCallable(handler) ? handler : Function(handler); - var args = arraySlice(arguments, 1); - queue[++counter] = function () { - apply(fn, undefined, args); - }; - defer(counter); - return counter; - }; - clear = function clearImmediate(id) { - delete queue[id]; - }; - // Node.js 0.8- - if (IS_NODE) { - defer = function (id) { - process.nextTick(runner(id)); - }; - // Sphere (JS game engine) Dispatch API - } else if (Dispatch && Dispatch.now) { - defer = function (id) { - Dispatch.now(runner(id)); - }; - // Browsers with MessageChannel, includes WebWorkers - // except iOS - https://github.com/zloirock/core-js/issues/624 - } else if (MessageChannel && !IS_IOS) { - channel = new MessageChannel(); - port = channel.port2; - channel.port1.onmessage = eventListener; - defer = bind(port.postMessage, port); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if ( - globalThis.addEventListener && - isCallable(globalThis.postMessage) && - !globalThis.importScripts && - $location && $location.protocol !== 'file:' && - !fails(globalPostMessageDefer) - ) { - defer = globalPostMessageDefer; - globalThis.addEventListener('message', eventListener, false); - // IE8- - } else if (ONREADYSTATECHANGE in createElement('script')) { - defer = function (id) { - html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { - html.removeChild(this); - run(id); - }; - }; - // Rest old browsers - } else { - defer = function (id) { - setTimeout(runner(id), 0); - }; - } -} - -module.exports = { - set: set, - clear: clear -}; - - -/***/ }), -/* 145 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var uncurryThis = __webpack_require__(13); - -module.exports = uncurryThis([].slice); - - -/***/ }), -/* 146 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $TypeError = TypeError; - -module.exports = function (passed, required) { - if (passed < required) throw new $TypeError('Not enough arguments'); - return passed; -}; - - -/***/ }), -/* 147 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var userAgent = __webpack_require__(27); - -// eslint-disable-next-line redos/no-vulnerable -- safe -module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); - - -/***/ }), -/* 148 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var globalThis = __webpack_require__(3); -var safeGetBuiltIn = __webpack_require__(149); -var bind = __webpack_require__(92); -var macrotask = __webpack_require__(144).set; -var Queue = __webpack_require__(150); -var IS_IOS = __webpack_require__(147); -var IS_IOS_PEBBLE = __webpack_require__(151); -var IS_WEBOS_WEBKIT = __webpack_require__(152); -var IS_NODE = __webpack_require__(127); - -var MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver; -var document = globalThis.document; -var process = globalThis.process; -var Promise = globalThis.Promise; -var microtask = safeGetBuiltIn('queueMicrotask'); -var notify, toggle, node, promise, then; - -// modern engines have queueMicrotask method -if (!microtask) { - var queue = new Queue(); - - var flush = function () { - var parent, fn; - if (IS_NODE && (parent = process.domain)) parent.exit(); - while (fn = queue.get()) try { - fn(); - } catch (error) { - if (queue.head) notify(); - throw error; - } - if (parent) parent.enter(); - }; +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var notANaN = __webpack_require__(137); +var toPositiveInteger = __webpack_require__(138); +var createIteratorProxy = __webpack_require__(139); +var IS_PURE = __webpack_require__(35); - // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 - // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 - if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) { - toggle = true; - node = document.createTextNode(''); - new MutationObserver(flush).observe(node, { characterData: true }); - notify = function () { - node.data = toggle = !toggle; - }; - // environments with maybe non-completely correct, but existent Promise - } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) { - // Promise.resolve without an argument throws an error in LG WebOS 2 - promise = Promise.resolve(undefined); - // workaround of WebKit ~ iOS Safari 10.1 bug - promise.constructor = Promise; - then = bind(promise.then, promise); - notify = function () { - then(flush); - }; - // Node.js without promises - } else if (IS_NODE) { - notify = function () { - process.nextTick(flush); - }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessage - // - onreadystatechange - // - setTimeout - } else { - // `webpack` dev server bug on IE global methods - use bind(fn, global) - macrotask = bind(macrotask, globalThis); - notify = function () { - macrotask(flush); - }; +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var next = this.next; + var result, done; + while (this.remaining) { + this.remaining--; + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (done) return; } + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (!done) return result.value; +}); - microtask = function (fn) { - if (!queue.head) notify(); - queue.add(fn); - }; -} - -module.exports = microtask; +// `Iterator.prototype.drop` method +// https://tc39.es/ecma262/#sec-iterator.prototype.drop +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + drop: function drop(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new IteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); /***/ }), -/* 149 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var globalThis = __webpack_require__(3); -var DESCRIPTORS = __webpack_require__(5); - -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// Avoid NodeJS experimental warning -module.exports = function (name) { - if (!DESCRIPTORS) return globalThis[name]; - var descriptor = getOwnPropertyDescriptor(globalThis, name); - return descriptor && descriptor.value; +// `GetIteratorDirect(obj)` abstract operation +// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect +module.exports = function (obj) { + return { + iterator: obj, + next: obj.next, + done: false + }; }; /***/ }), -/* 150 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Queue = function () { - this.head = null; - this.tail = null; -}; +var $RangeError = RangeError; -Queue.prototype = { - add: function (item) { - var entry = { item: item, next: null }; - var tail = this.tail; - if (tail) tail.next = entry; - else this.head = entry; - this.tail = entry; - }, - get: function () { - var entry = this.head; - if (entry) { - var next = this.head = entry.next; - if (next === null) this.tail = null; - return entry.item; - } - } +module.exports = function (it) { + // eslint-disable-next-line no-self-compare -- NaN check + if (it === it) return it; + throw new $RangeError('NaN is not allowed'); }; -module.exports = Queue; - /***/ }), -/* 151 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var userAgent = __webpack_require__(27); +var toIntegerOrInfinity = __webpack_require__(60); -module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; +var $RangeError = RangeError; + +module.exports = function (it) { + var result = toIntegerOrInfinity(it); + if (result < 0) throw new $RangeError("The argument can't be less than 0"); + return result; +}; /***/ }), -/* 152 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var userAgent = __webpack_require__(27); +var call = __webpack_require__(7); +var create = __webpack_require__(87); +var createNonEnumerableProperty = __webpack_require__(42); +var defineBuiltIns = __webpack_require__(140); +var wellKnownSymbol = __webpack_require__(32); +var InternalStateModule = __webpack_require__(50); +var getMethod = __webpack_require__(28); +var IteratorPrototype = __webpack_require__(134).IteratorPrototype; +var createIterResultObject = __webpack_require__(141); +var iteratorClose = __webpack_require__(98); -module.exports = /web0s(?!.*chrome)/i.test(userAgent); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var ITERATOR_HELPER = 'IteratorHelper'; +var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; +var setInternalState = InternalStateModule.set; + +var createIteratorProxyPrototype = function (IS_ITERATOR) { + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); + + return defineBuiltIns(create(IteratorPrototype), { + next: function next() { + var state = getInternalState(this); + // for simplification: + // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject` + // for `%IteratorHelperPrototype%.next` - just a value + if (IS_ITERATOR) return state.nextHandler(); + try { + var result = state.done ? undefined : state.nextHandler(); + return createIterResultObject(result, state.done); + } catch (error) { + state.done = true; + throw error; + } + }, + 'return': function () { + var state = getInternalState(this); + var iterator = state.iterator; + state.done = true; + if (IS_ITERATOR) { + var returnMethod = getMethod(iterator, 'return'); + return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); + } + if (state.inner) try { + iteratorClose(state.inner.iterator, 'normal'); + } catch (error) { + return iteratorClose(iterator, 'throw', error); + } + if (iterator) iteratorClose(iterator, 'normal'); + return createIterResultObject(undefined, true); + } + }); +}; + +var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); +var IteratorHelperPrototype = createIteratorProxyPrototype(false); + +createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); + +module.exports = function (nextHandler, IS_ITERATOR) { + var IteratorProxy = function Iterator(record, state) { + if (state) { + state.iterator = record.iterator; + state.next = record.next; + } else state = record; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; + state.nextHandler = nextHandler; + state.counter = 0; + state.done = false; + setInternalState(this, state); + }; + + IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype; + + return IteratorProxy; +}; /***/ }), -/* 153 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = function (a, b) { - try { - // eslint-disable-next-line no-console -- safe - arguments.length === 1 ? console.error(a) : console.error(a, b); - } catch (error) { /* empty */ } +var defineBuiltIn = __webpack_require__(46); + +module.exports = function (target, src, options) { + for (var key in src) defineBuiltIn(target, key, src[key], options); + return target; }; /***/ }), -/* 154 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = function (exec) { - try { - return { error: false, value: exec() }; - } catch (error) { - return { error: true, value: error }; - } +// `CreateIterResultObject` abstract operation +// https://tc39.es/ecma262/#sec-createiterresultobject +module.exports = function (value, done) { + return { value: value, done: done }; }; /***/ }), -/* 155 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var globalThis = __webpack_require__(3); +var $ = __webpack_require__(2); +var iterate = __webpack_require__(91); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); -module.exports = globalThis.Promise; +// `Iterator.prototype.every` method +// https://tc39.es/ecma262/#sec-iterator.prototype.every +$({ target: 'Iterator', proto: true, real: true }, { + every: function every(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return !iterate(record, function (value, stop) { + if (!predicate(value, counter++)) return stop(); + }, { IS_RECORD: true, INTERRUPTED: true }).stopped; + } +}); /***/ }), -/* 156 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var globalThis = __webpack_require__(3); -var NativePromiseConstructor = __webpack_require__(155); -var isCallable = __webpack_require__(20); -var isForced = __webpack_require__(66); -var inspectSource = __webpack_require__(49); -var wellKnownSymbol = __webpack_require__(32); -var ENVIRONMENT = __webpack_require__(128); +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var createIteratorProxy = __webpack_require__(139); +var callWithSafeIterationClosing = __webpack_require__(144); var IS_PURE = __webpack_require__(35); -var V8_VERSION = __webpack_require__(26); -var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; -var SPECIES = wellKnownSymbol('species'); -var SUBCLASSING = false; -var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent); +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var predicate = this.predicate; + var next = this.next; + var result, done, value; + while (true) { + result = anObject(call(next, iterator)); + done = this.done = !!result.done; + if (done) return; + value = result.value; + if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; + } +}); -var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { - var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); - var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); - // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables - // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 - // We can't detect it synchronously, so just check versions - if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; - // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution - if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true; - // We can't use @@species feature detection in V8 since it causes - // deoptimization and performance degradation - // https://github.com/zloirock/core-js/issues/679 - if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { - // Detect correctness of subclassing with @@species support - var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); - var FakePromise = function (exec) { - exec(function () { /* empty */ }, function () { /* empty */ }); - }; - var constructor = promise.constructor = {}; - constructor[SPECIES] = FakePromise; - SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; - if (!SUBCLASSING) return true; - // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test - } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT; +// `Iterator.prototype.filter` method +// https://tc39.es/ecma262/#sec-iterator.prototype.filter +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + filter: function filter(predicate) { + anObject(this); + aCallable(predicate); + return new IteratorProxy(getIteratorDirect(this), { + predicate: predicate + }); + } }); -module.exports = { - CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, - REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, - SUBCLASSING: SUBCLASSING + +/***/ }), +/* 144 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var anObject = __webpack_require__(45); +var iteratorClose = __webpack_require__(98); + +// call something on iterator step with safe closing on error +module.exports = function (iterator, fn, value, ENTRIES) { + try { + return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); + } catch (error) { + iteratorClose(iterator, 'throw', error); + } }; /***/ }), -/* 157 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var $ = __webpack_require__(2); +var iterate = __webpack_require__(91); var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); -var $TypeError = TypeError; - -var PromiseCapability = function (C) { - var resolve, reject; - this.promise = new C(function ($$resolve, $$reject) { - if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor'); - resolve = $$resolve; - reject = $$reject; - }); - this.resolve = aCallable(resolve); - this.reject = aCallable(reject); -}; - -// `NewPromiseCapability` abstract operation -// https://tc39.es/ecma262/#sec-newpromisecapability -module.exports.f = function (C) { - return new PromiseCapability(C); -}; +// `Iterator.prototype.find` method +// https://tc39.es/ecma262/#sec-iterator.prototype.find +$({ target: 'Iterator', proto: true, real: true }, { + find: function find(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return iterate(record, function (value, stop) { + if (predicate(value, counter++)) return stop(value); + }, { IS_RECORD: true, INTERRUPTED: true }).result; + } +}); /***/ }), -/* 158 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4578,4656 +3982,4977 @@ module.exports.f = function (C) { var $ = __webpack_require__(2); var call = __webpack_require__(7); var aCallable = __webpack_require__(29); -var newPromiseCapabilityModule = __webpack_require__(157); -var perform = __webpack_require__(154); -var iterate = __webpack_require__(91); -var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(159); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var getIteratorFlattenable = __webpack_require__(147); +var createIteratorProxy = __webpack_require__(139); +var iteratorClose = __webpack_require__(98); +var IS_PURE = __webpack_require__(35); -// `Promise.all` method -// https://tc39.es/ecma262/#sec-promise.all -$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { - all: function all(iterable) { - var C = this; - var capability = newPromiseCapabilityModule.f(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var $promiseResolve = aCallable(C.resolve); - var values = []; - var counter = 0; - var remaining = 1; - iterate(iterable, function (promise) { - var index = counter++; - var alreadyCalled = false; - remaining++; - call($promiseResolve, C, promise).then(function (value) { - if (alreadyCalled) return; - alreadyCalled = true; - values[index] = value; - --remaining || resolve(values); - }, reject); - }); - --remaining || resolve(values); +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var mapper = this.mapper; + var result, inner; + + while (true) { + if (inner = this.inner) try { + result = anObject(call(inner.next, inner.iterator)); + if (!result.done) return result.value; + this.inner = null; + } catch (error) { iteratorClose(iterator, 'throw', error); } + + result = anObject(call(this.next, iterator)); + + if (this.done = !!result.done) return; + + try { + this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false); + } catch (error) { iteratorClose(iterator, 'throw', error); } + } +}); + +// `Iterator.prototype.flatMap` method +// https://tc39.es/ecma262/#sec-iterator.prototype.flatmap +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + flatMap: function flatMap(mapper) { + anObject(this); + aCallable(mapper); + return new IteratorProxy(getIteratorDirect(this), { + mapper: mapper, + inner: null }); - if (result.error) reject(result.value); - return capability.promise; } }); /***/ }), -/* 159 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var NativePromiseConstructor = __webpack_require__(155); -var checkCorrectnessOfIteration = __webpack_require__(160); -var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(156).CONSTRUCTOR; +var call = __webpack_require__(7); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var getIteratorMethod = __webpack_require__(97); -module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) { - NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ }); -}); +module.exports = function (obj, stringHandling) { + if (!stringHandling || typeof obj !== 'string') anObject(obj); + var method = getIteratorMethod(obj); + return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj)); +}; /***/ }), -/* 160 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var wellKnownSymbol = __webpack_require__(32); - -var ITERATOR = wellKnownSymbol('iterator'); -var SAFE_CLOSING = false; - -try { - var called = 0; - var iteratorWithReturn = { - next: function () { - return { done: !!called++ }; - }, - 'return': function () { - SAFE_CLOSING = true; - } - }; - iteratorWithReturn[ITERATOR] = function () { - return this; - }; - // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing - Array.from(iteratorWithReturn, function () { throw 2; }); -} catch (error) { /* empty */ } +var $ = __webpack_require__(2); +var iterate = __webpack_require__(91); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); -module.exports = function (exec, SKIP_CLOSING) { - try { - if (!SKIP_CLOSING && !SAFE_CLOSING) return false; - } catch (error) { return false; } // workaround of old WebKit + `eval` bug - var ITERATION_SUPPORT = false; - try { - var object = {}; - object[ITERATOR] = function () { - return { - next: function () { - return { done: ITERATION_SUPPORT = true }; - } - }; - }; - exec(object); - } catch (error) { /* empty */ } - return ITERATION_SUPPORT; -}; +// `Iterator.prototype.forEach` method +// https://tc39.es/ecma262/#sec-iterator.prototype.foreach +$({ target: 'Iterator', proto: true, real: true }, { + forEach: function forEach(fn) { + anObject(this); + aCallable(fn); + var record = getIteratorDirect(this); + var counter = 0; + iterate(record, function (value) { + fn(value, counter++); + }, { IS_RECORD: true }); + } +}); /***/ }), -/* 161 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var toObject = __webpack_require__(38); +var isPrototypeOf = __webpack_require__(23); +var IteratorPrototype = __webpack_require__(134).IteratorPrototype; +var createIteratorProxy = __webpack_require__(139); +var getIteratorFlattenable = __webpack_require__(147); var IS_PURE = __webpack_require__(35); -var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(156).CONSTRUCTOR; -var NativePromiseConstructor = __webpack_require__(155); -var getBuiltIn = __webpack_require__(22); -var isCallable = __webpack_require__(20); -var defineBuiltIn = __webpack_require__(46); -var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var IteratorProxy = createIteratorProxy(function () { + return call(this.next, this.iterator); +}, true); -// `Promise.prototype.catch` method -// https://tc39.es/ecma262/#sec-promise.prototype.catch -$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { - 'catch': function (onRejected) { - return this.then(undefined, onRejected); +// `Iterator.from` method +// https://tc39.es/ecma262/#sec-iterator.from +$({ target: 'Iterator', stat: true, forced: IS_PURE }, { + from: function from(O) { + var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O, true); + return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) + ? iteratorRecord.iterator + : new IteratorProxy(iteratorRecord); } }); -// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` -if (!IS_PURE && isCallable(NativePromiseConstructor)) { - var method = getBuiltIn('Promise').prototype['catch']; - if (NativePromisePrototype['catch'] !== method) { - defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true }); - } -} - /***/ }), -/* 162 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var newPromiseCapabilityModule = __webpack_require__(157); -var perform = __webpack_require__(154); -var iterate = __webpack_require__(91); -var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(159); +var map = __webpack_require__(151); +var IS_PURE = __webpack_require__(35); -// `Promise.race` method -// https://tc39.es/ecma262/#sec-promise.race -$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { - race: function race(iterable) { - var C = this; - var capability = newPromiseCapabilityModule.f(C); - var reject = capability.reject; - var result = perform(function () { - var $promiseResolve = aCallable(C.resolve); - iterate(iterable, function (promise) { - call($promiseResolve, C, promise).then(capability.resolve, reject); - }); - }); - if (result.error) reject(result.value); - return capability.promise; - } +// `Iterator.prototype.map` method +// https://tc39.es/ecma262/#sec-iterator.prototype.map +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + map: map }); /***/ }), -/* 163 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var newPromiseCapabilityModule = __webpack_require__(157); -var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(156).CONSTRUCTOR; +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var createIteratorProxy = __webpack_require__(139); +var callWithSafeIterationClosing = __webpack_require__(144); -// `Promise.reject` method -// https://tc39.es/ecma262/#sec-promise.reject -$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { - reject: function reject(r) { - var capability = newPromiseCapabilityModule.f(this); - var capabilityReject = capability.reject; - capabilityReject(r); - return capability.promise; - } +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + var result = anObject(call(this.next, iterator)); + var done = this.done = !!result.done; + if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); }); +// `Iterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function map(mapper) { + anObject(this); + aCallable(mapper); + return new IteratorProxy(getIteratorDirect(this), { + mapper: mapper + }); +}; + /***/ }), -/* 164 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var getBuiltIn = __webpack_require__(22); -var IS_PURE = __webpack_require__(35); -var NativePromiseConstructor = __webpack_require__(155); -var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(156).CONSTRUCTOR; -var promiseResolve = __webpack_require__(165); +var iterate = __webpack_require__(91); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); -var PromiseConstructorWrapper = getBuiltIn('Promise'); -var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; +var $TypeError = TypeError; -// `Promise.resolve` method -// https://tc39.es/ecma262/#sec-promise.resolve -$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { - resolve: function resolve(x) { - return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); +// `Iterator.prototype.reduce` method +// https://tc39.es/ecma262/#sec-iterator.prototype.reduce +$({ target: 'Iterator', proto: true, real: true }, { + reduce: function reduce(reducer /* , initialValue */) { + anObject(this); + aCallable(reducer); + var record = getIteratorDirect(this); + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + var counter = 0; + iterate(record, function (value) { + if (noInitial) { + noInitial = false; + accumulator = value; + } else { + accumulator = reducer(accumulator, value, counter); + } + counter++; + }, { IS_RECORD: true }); + if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value'); + return accumulator; } }); /***/ }), -/* 165 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var $ = __webpack_require__(2); +var iterate = __webpack_require__(91); +var aCallable = __webpack_require__(29); var anObject = __webpack_require__(45); -var isObject = __webpack_require__(19); -var newPromiseCapability = __webpack_require__(157); +var getIteratorDirect = __webpack_require__(136); -module.exports = function (C, x) { - anObject(C); - if (isObject(x) && x.constructor === C) return x; - var promiseCapability = newPromiseCapability.f(C); - var resolve = promiseCapability.resolve; - resolve(x); - return promiseCapability.promise; -}; +// `Iterator.prototype.some` method +// https://tc39.es/ecma262/#sec-iterator.prototype.some +$({ target: 'Iterator', proto: true, real: true }, { + some: function some(predicate) { + anObject(this); + aCallable(predicate); + var record = getIteratorDirect(this); + var counter = 0; + return iterate(record, function (value, stop) { + if (predicate(value, counter++)) return stop(); + }, { IS_RECORD: true, INTERRUPTED: true }).stopped; + } +}); /***/ }), -/* 166 */ +/* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var newPromiseCapabilityModule = __webpack_require__(157); -var perform = __webpack_require__(154); -var iterate = __webpack_require__(91); -var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(159); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var notANaN = __webpack_require__(137); +var toPositiveInteger = __webpack_require__(138); +var createIteratorProxy = __webpack_require__(139); +var iteratorClose = __webpack_require__(98); +var IS_PURE = __webpack_require__(35); -// `Promise.allSettled` method -// https://tc39.es/ecma262/#sec-promise.allsettled -$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { - allSettled: function allSettled(iterable) { - var C = this; - var capability = newPromiseCapabilityModule.f(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var promiseResolve = aCallable(C.resolve); - var values = []; - var counter = 0; - var remaining = 1; - iterate(iterable, function (promise) { - var index = counter++; - var alreadyCalled = false; - remaining++; - call(promiseResolve, C, promise).then(function (value) { - if (alreadyCalled) return; - alreadyCalled = true; - values[index] = { status: 'fulfilled', value: value }; - --remaining || resolve(values); - }, function (error) { - if (alreadyCalled) return; - alreadyCalled = true; - values[index] = { status: 'rejected', reason: error }; - --remaining || resolve(values); - }); - }); - --remaining || resolve(values); +var IteratorProxy = createIteratorProxy(function () { + var iterator = this.iterator; + if (!this.remaining--) { + this.done = true; + return iteratorClose(iterator, 'normal', undefined); + } + var result = anObject(call(this.next, iterator)); + var done = this.done = !!result.done; + if (!done) return result.value; +}); + +// `Iterator.prototype.take` method +// https://tc39.es/ecma262/#sec-iterator.prototype.take +$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { + take: function take(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new IteratorProxy(getIteratorDirect(this), { + remaining: remaining }); - if (result.error) reject(result.value); - return capability.promise; } }); /***/ }), -/* 167 */ +/* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var getBuiltIn = __webpack_require__(22); -var newPromiseCapabilityModule = __webpack_require__(157); -var perform = __webpack_require__(154); +var anObject = __webpack_require__(45); var iterate = __webpack_require__(91); -var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(159); +var getIteratorDirect = __webpack_require__(136); -var PROMISE_ANY_ERROR = 'No one promise resolved'; +var push = [].push; -// `Promise.any` method -// https://tc39.es/ecma262/#sec-promise.any -$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { - any: function any(iterable) { - var C = this; - var AggregateError = getBuiltIn('AggregateError'); - var capability = newPromiseCapabilityModule.f(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var promiseResolve = aCallable(C.resolve); - var errors = []; - var counter = 0; - var remaining = 1; - var alreadyResolved = false; - iterate(iterable, function (promise) { - var index = counter++; - var alreadyRejected = false; - remaining++; - call(promiseResolve, C, promise).then(function (value) { - if (alreadyRejected || alreadyResolved) return; - alreadyResolved = true; - resolve(value); - }, function (error) { - if (alreadyRejected || alreadyResolved) return; - alreadyRejected = true; - errors[index] = error; - --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); - }); - }); - --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); - }); - if (result.error) reject(result.value); - return capability.promise; +// `Iterator.prototype.toArray` method +// https://tc39.es/ecma262/#sec-iterator.prototype.toarray +$({ target: 'Iterator', proto: true, real: true }, { + toArray: function toArray() { + var result = []; + iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true }); + return result; } }); /***/ }), -/* 168 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); +var uncurryThis = __webpack_require__(13); +var aCallable = __webpack_require__(29); +var requireObjectCoercible = __webpack_require__(15); +var iterate = __webpack_require__(91); +var MapHelpers = __webpack_require__(157); var IS_PURE = __webpack_require__(35); -var NativePromiseConstructor = __webpack_require__(155); var fails = __webpack_require__(6); -var getBuiltIn = __webpack_require__(22); -var isCallable = __webpack_require__(20); -var speciesConstructor = __webpack_require__(141); -var promiseResolve = __webpack_require__(165); -var defineBuiltIn = __webpack_require__(46); -var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var Map = MapHelpers.Map; +var has = MapHelpers.has; +var get = MapHelpers.get; +var set = MapHelpers.set; +var push = uncurryThis([].push); -// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829 -var NON_GENERIC = !!NativePromiseConstructor && fails(function () { - // eslint-disable-next-line unicorn/no-thenable -- required for testing - NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ }); +var DOES_NOT_WORK_WITH_PRIMITIVES = IS_PURE || fails(function () { + return Map.groupBy('ab', function (it) { + return it; + }).get('a').length !== 1; }); -// `Promise.prototype.finally` method -// https://tc39.es/ecma262/#sec-promise.prototype.finally -$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { - 'finally': function (onFinally) { - var C = speciesConstructor(this, getBuiltIn('Promise')); - var isFunction = isCallable(onFinally); - return this.then( - isFunction ? function (x) { - return promiseResolve(C, onFinally()).then(function () { return x; }); - } : onFinally, - isFunction ? function (e) { - return promiseResolve(C, onFinally()).then(function () { throw e; }); - } : onFinally - ); +// `Map.groupBy` method +// https://tc39.es/ecma262/#sec-map.groupby +$({ target: 'Map', stat: true, forced: IS_PURE || DOES_NOT_WORK_WITH_PRIMITIVES }, { + groupBy: function groupBy(items, callbackfn) { + requireObjectCoercible(items); + aCallable(callbackfn); + var map = new Map(); + var k = 0; + iterate(items, function (value) { + var key = callbackfn(value, k++); + if (!has(map, key)) set(map, key, [value]); + else push(get(map, key), value); + }); + return map; } }); -// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then` -if (!IS_PURE && isCallable(NativePromiseConstructor)) { - var method = getBuiltIn('Promise').prototype['finally']; - if (NativePromisePrototype['finally'] !== method) { - defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true }); - } -} + +/***/ }), +/* 157 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var uncurryThis = __webpack_require__(13); + +// eslint-disable-next-line es/no-map -- safe +var MapPrototype = Map.prototype; + +module.exports = { + // eslint-disable-next-line es/no-map -- safe + Map: Map, + set: uncurryThis(MapPrototype.set), + get: uncurryThis(MapPrototype.get), + has: uncurryThis(MapPrototype.has), + remove: uncurryThis(MapPrototype['delete']), + proto: MapPrototype +}; /***/ }), -/* 169 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var newPromiseCapabilityModule = __webpack_require__(157); +var getBuiltIn = __webpack_require__(22); +var uncurryThis = __webpack_require__(13); +var aCallable = __webpack_require__(29); +var requireObjectCoercible = __webpack_require__(15); +var toPropertyKey = __webpack_require__(17); +var iterate = __webpack_require__(91); +var fails = __webpack_require__(6); -// `Promise.withResolvers` method -// https://github.com/tc39/proposal-promise-with-resolvers -$({ target: 'Promise', stat: true }, { - withResolvers: function withResolvers() { - var promiseCapability = newPromiseCapabilityModule.f(this); - return { - promise: promiseCapability.promise, - resolve: promiseCapability.resolve, - reject: promiseCapability.reject - }; +// eslint-disable-next-line es/no-object-groupby -- testing +var nativeGroupBy = Object.groupBy; +var create = getBuiltIn('Object', 'create'); +var push = uncurryThis([].push); + +var DOES_NOT_WORK_WITH_PRIMITIVES = !nativeGroupBy || fails(function () { + return nativeGroupBy('ab', function (it) { + return it; + }).a.length !== 1; +}); + +// `Object.groupBy` method +// https://tc39.es/ecma262/#sec-object.groupby +$({ target: 'Object', stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, { + groupBy: function groupBy(items, callbackfn) { + requireObjectCoercible(items); + aCallable(callbackfn); + var obj = create(null); + var k = 0; + iterate(items, function (value) { + var key = toPropertyKey(callbackfn(value, k++)); + // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys + // but since it's a `null` prototype object, we can safely use `in` + if (key in obj) push(obj[key], value); + else obj[key] = [value]; + }); + return obj; } }); /***/ }), -/* 170 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var globalThis = __webpack_require__(3); -var setToStringTag = __webpack_require__(138); - -$({ global: true }, { Reflect: {} }); +var hasOwn = __webpack_require__(37); -// Reflect[@@toStringTag] property -// https://tc39.es/ecma262/#sec-reflect-@@tostringtag -setToStringTag(globalThis.Reflect, 'Reflect', true); +// `Object.hasOwn` method +// https://tc39.es/ecma262/#sec-object.hasown +$({ target: 'Object', stat: true }, { + hasOwn: hasOwn +}); /***/ }), -/* 171 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var globalThis = __webpack_require__(3); var DESCRIPTORS = __webpack_require__(5); var defineBuiltInAccessor = __webpack_require__(118); -var regExpFlags = __webpack_require__(172); -var fails = __webpack_require__(6); +var isObject = __webpack_require__(19); +var isPossiblePrototype = __webpack_require__(72); +var toObject = __webpack_require__(38); +var requireObjectCoercible = __webpack_require__(15); -// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError -var RegExp = globalThis.RegExp; -var RegExpPrototype = RegExp.prototype; +// eslint-disable-next-line es/no-object-getprototypeof -- safe +var getPrototypeOf = Object.getPrototypeOf; +// eslint-disable-next-line es/no-object-setprototypeof -- safe +var setPrototypeOf = Object.setPrototypeOf; +var ObjectPrototype = Object.prototype; +var PROTO = '__proto__'; -var FORCED = DESCRIPTORS && fails(function () { - var INDICES_SUPPORT = true; - try { - RegExp('.', 'd'); - } catch (error) { - INDICES_SUPPORT = false; - } +// `Object.prototype.__proto__` accessor +// https://tc39.es/ecma262/#sec-object.prototype.__proto__ +if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype)) try { + defineBuiltInAccessor(ObjectPrototype, PROTO, { + configurable: true, + get: function __proto__() { + return getPrototypeOf(toObject(this)); + }, + set: function __proto__(proto) { + var O = requireObjectCoercible(this); + if (isPossiblePrototype(proto) && isObject(O)) { + setPrototypeOf(O, proto); + } + } + }); +} catch (error) { /* empty */ } - var O = {}; - // modern V8 bug - var calls = ''; - var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'; - var addGetter = function (key, chr) { - // eslint-disable-next-line es/no-object-defineproperty -- safe - Object.defineProperty(O, key, { get: function () { - calls += chr; - return true; - } }); - }; +/***/ }), +/* 161 */ +/***/ (function(module, exports, __webpack_require__) { - var pairs = { - dotAll: 's', - global: 'g', - ignoreCase: 'i', - multiline: 'm', - sticky: 'y' - }; +"use strict"; - if (INDICES_SUPPORT) pairs.hasIndices = 'd'; +// TODO: Remove this module from `core-js@4` since it's split to modules listed below +__webpack_require__(162); +__webpack_require__(182); +__webpack_require__(185); +__webpack_require__(186); +__webpack_require__(187); +__webpack_require__(188); - for (var key in pairs) addGetter(key, pairs[key]); - // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe - var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O); +/***/ }), +/* 162 */ +/***/ (function(module, exports, __webpack_require__) { - return result !== expected || calls !== expected; -}); +"use strict"; -// `RegExp.prototype.flags` getter -// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', { - configurable: true, - get: regExpFlags -}); +var $ = __webpack_require__(2); +var IS_PURE = __webpack_require__(35); +var IS_NODE = __webpack_require__(127); +var globalThis = __webpack_require__(3); +var call = __webpack_require__(7); +var defineBuiltIn = __webpack_require__(46); +var setPrototypeOf = __webpack_require__(69); +var setToStringTag = __webpack_require__(163); +var setSpecies = __webpack_require__(164); +var aCallable = __webpack_require__(29); +var isCallable = __webpack_require__(20); +var isObject = __webpack_require__(19); +var anInstance = __webpack_require__(132); +var speciesConstructor = __webpack_require__(165); +var task = __webpack_require__(168).set; +var microtask = __webpack_require__(172); +var hostReportErrors = __webpack_require__(177); +var perform = __webpack_require__(178); +var Queue = __webpack_require__(174); +var InternalStateModule = __webpack_require__(50); +var NativePromiseConstructor = __webpack_require__(179); +var PromiseConstructorDetection = __webpack_require__(180); +var newPromiseCapabilityModule = __webpack_require__(181); +var PROMISE = 'Promise'; +var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; +var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; +var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; +var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); +var setInternalState = InternalStateModule.set; +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var PromiseConstructor = NativePromiseConstructor; +var PromisePrototype = NativePromisePrototype; +var TypeError = globalThis.TypeError; +var document = globalThis.document; +var process = globalThis.process; +var newPromiseCapability = newPromiseCapabilityModule.f; +var newGenericPromiseCapability = newPromiseCapability; -/***/ }), -/* 172 */ -/***/ (function(module, exports, __webpack_require__) { +var DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent); +var UNHANDLED_REJECTION = 'unhandledrejection'; +var REJECTION_HANDLED = 'rejectionhandled'; +var PENDING = 0; +var FULFILLED = 1; +var REJECTED = 2; +var HANDLED = 1; +var UNHANDLED = 2; -"use strict"; +var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; -var anObject = __webpack_require__(45); +// helpers +var isThenable = function (it) { + var then; + return isObject(it) && isCallable(then = it.then) ? then : false; +}; -// `RegExp.prototype.flags` getter implementation -// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -module.exports = function () { - var that = anObject(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 callReaction = function (reaction, state) { + var value = state.value; + var ok = state.state === FULFILLED; + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then, exited; + try { + if (handler) { + if (!ok) { + if (state.rejection === UNHANDLED) onHandleUnhandled(state); + state.rejection = HANDLED; + } + if (handler === true) result = value; + else { + if (domain) domain.enter(); + result = handler(value); // can throw + if (domain) { + domain.exit(); + exited = true; + } + } + if (result === reaction.promise) { + reject(new TypeError('Promise-chain cycle')); + } else if (then = isThenable(result)) { + call(then, result, resolve, reject); + } else resolve(result); + } else reject(value); + } catch (error) { + if (domain && !exited) domain.exit(); + reject(error); + } +}; + +var notify = function (state, isReject) { + if (state.notified) return; + state.notified = true; + microtask(function () { + var reactions = state.reactions; + var reaction; + while (reaction = reactions.get()) { + callReaction(reaction, state); + } + state.notified = false; + if (isReject && !state.rejection) onUnhandled(state); + }); }; +var dispatchEvent = function (name, promise, reason) { + var event, handler; + if (DISPATCH_EVENT) { + event = document.createEvent('Event'); + event.promise = promise; + event.reason = reason; + event.initEvent(name, false, true); + globalThis.dispatchEvent(event); + } else event = { promise: promise, reason: reason }; + if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event); + else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); +}; -/***/ }), -/* 173 */ -/***/ (function(module, exports, __webpack_require__) { +var onUnhandled = function (state) { + call(task, globalThis, function () { + var promise = state.facade; + var value = state.value; + var IS_UNHANDLED = isUnhandled(state); + var result; + if (IS_UNHANDLED) { + result = perform(function () { + if (IS_NODE) { + process.emit('unhandledRejection', value, promise); + } else dispatchEvent(UNHANDLED_REJECTION, promise, value); + }); + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should + state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; + if (result.error) throw result.value; + } + }); +}; -"use strict"; +var isUnhandled = function (state) { + return state.rejection !== HANDLED && !state.parent; +}; -var $ = __webpack_require__(2); -var difference = __webpack_require__(174); -var setMethodAcceptSetLike = __webpack_require__(183); +var onHandleUnhandled = function (state) { + call(task, globalThis, function () { + var promise = state.facade; + if (IS_NODE) { + process.emit('rejectionHandled', promise); + } else dispatchEvent(REJECTION_HANDLED, promise, state.value); + }); +}; -// `Set.prototype.difference` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('difference') }, { - difference: difference -}); +var bind = function (fn, state, unwrap) { + return function (value) { + fn(state, value, unwrap); + }; +}; +var internalReject = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + state.value = value; + state.state = REJECTED; + notify(state, true); +}; -/***/ }), -/* 174 */ -/***/ (function(module, exports, __webpack_require__) { +var internalResolve = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + try { + if (state.facade === value) throw new TypeError("Promise can't be resolved itself"); + var then = isThenable(value); + if (then) { + microtask(function () { + var wrapper = { done: false }; + try { + call(then, value, + bind(internalResolve, wrapper, state), + bind(internalReject, wrapper, state) + ); + } catch (error) { + internalReject(wrapper, error, state); + } + }); + } else { + state.value = value; + state.state = FULFILLED; + notify(state, false); + } + } catch (error) { + internalReject({ done: false }, error, state); + } +}; -"use strict"; +// constructor polyfill +if (FORCED_PROMISE_CONSTRUCTOR) { + // 25.4.3.1 Promise(executor) + PromiseConstructor = function Promise(executor) { + anInstance(this, PromisePrototype); + aCallable(executor); + call(Internal, this); + var state = getInternalPromiseState(this); + try { + executor(bind(internalResolve, state), bind(internalReject, state)); + } catch (error) { + internalReject(state, error); + } + }; -var aSet = __webpack_require__(175); -var SetHelpers = __webpack_require__(176); -var clone = __webpack_require__(177); -var size = __webpack_require__(180); -var getSetRecord = __webpack_require__(181); -var iterateSet = __webpack_require__(178); -var iterateSimple = __webpack_require__(179); + PromisePrototype = PromiseConstructor.prototype; -var has = SetHelpers.has; -var remove = SetHelpers.remove; + // eslint-disable-next-line no-unused-vars -- required for `.length` + Internal = function Promise(executor) { + setInternalState(this, { + type: PROMISE, + done: false, + notified: false, + parent: false, + reactions: new Queue(), + rejection: false, + state: PENDING, + value: null + }); + }; -// `Set.prototype.difference` method -// https://github.com/tc39/proposal-set-methods -module.exports = function difference(other) { - var O = aSet(this); - var otherRec = getSetRecord(other); - var result = clone(O); - if (size(O) <= otherRec.size) iterateSet(O, function (e) { - if (otherRec.includes(e)) remove(result, e); - }); - else iterateSimple(otherRec.getIterator(), function (e) { - if (has(O, e)) remove(result, e); + // `Promise.prototype.then` method + // https://tc39.es/ecma262/#sec-promise.prototype.then + Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) { + var state = getInternalPromiseState(this); + var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); + state.parent = true; + reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; + reaction.fail = isCallable(onRejected) && onRejected; + reaction.domain = IS_NODE ? process.domain : undefined; + if (state.state === PENDING) state.reactions.add(reaction); + else microtask(function () { + callReaction(reaction, state); + }); + return reaction.promise; }); - return result; -}; - - -/***/ }), -/* 175 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -var has = __webpack_require__(176).has; + OwnPromiseCapability = function () { + var promise = new Internal(); + var state = getInternalPromiseState(promise); + this.promise = promise; + this.resolve = bind(internalResolve, state); + this.reject = bind(internalReject, state); + }; -// Perform ? RequireInternalSlot(M, [[SetData]]) -module.exports = function (it) { - has(it); - return it; -}; + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === PromiseConstructor || C === PromiseWrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); + }; + if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { + nativeThen = NativePromisePrototype.then; -/***/ }), -/* 176 */ -/***/ (function(module, exports, __webpack_require__) { + if (!NATIVE_PROMISE_SUBCLASSING) { + // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs + defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { + var that = this; + return new PromiseConstructor(function (resolve, reject) { + call(nativeThen, that, resolve, reject); + }).then(onFulfilled, onRejected); + // https://github.com/zloirock/core-js/issues/640 + }, { unsafe: true }); + } -"use strict"; + // make `.constructor === Promise` work for native promise-based APIs + try { + delete NativePromisePrototype.constructor; + } catch (error) { /* empty */ } -var uncurryThis = __webpack_require__(13); + // make `instanceof Promise` work for native promise-based APIs + if (setPrototypeOf) { + setPrototypeOf(NativePromisePrototype, PromisePrototype); + } + } +} -// eslint-disable-next-line es/no-set -- safe -var SetPrototype = Set.prototype; +// `Promise` constructor +// https://tc39.es/ecma262/#sec-promise-executor +$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { + Promise: PromiseConstructor +}); -module.exports = { - // eslint-disable-next-line es/no-set -- safe - Set: Set, - add: uncurryThis(SetPrototype.add), - has: uncurryThis(SetPrototype.has), - remove: uncurryThis(SetPrototype['delete']), - proto: SetPrototype -}; +setToStringTag(PromiseConstructor, PROMISE, false, true); +setSpecies(PROMISE); /***/ }), -/* 177 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var SetHelpers = __webpack_require__(176); -var iterate = __webpack_require__(178); +var defineProperty = __webpack_require__(43).f; +var hasOwn = __webpack_require__(37); +var wellKnownSymbol = __webpack_require__(32); -var Set = SetHelpers.Set; -var add = SetHelpers.add; +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -module.exports = function (set) { - var result = new Set(); - iterate(set, function (it) { - add(result, it); - }); - return result; +module.exports = function (target, TAG, STATIC) { + if (target && !STATIC) target = target.prototype; + if (target && !hasOwn(target, TO_STRING_TAG)) { + defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); + } }; /***/ }), -/* 178 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThis = __webpack_require__(13); -var iterateSimple = __webpack_require__(179); -var SetHelpers = __webpack_require__(176); - -var Set = SetHelpers.Set; -var SetPrototype = SetHelpers.proto; -var forEach = uncurryThis(SetPrototype.forEach); -var keys = uncurryThis(SetPrototype.keys); -var next = keys(new Set()).next; +var getBuiltIn = __webpack_require__(22); +var defineBuiltInAccessor = __webpack_require__(118); +var wellKnownSymbol = __webpack_require__(32); +var DESCRIPTORS = __webpack_require__(5); -module.exports = function (set, fn, interruptible) { - return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn); +var SPECIES = wellKnownSymbol('species'); + +module.exports = function (CONSTRUCTOR_NAME) { + var Constructor = getBuiltIn(CONSTRUCTOR_NAME); + + if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { + defineBuiltInAccessor(Constructor, SPECIES, { + configurable: true, + get: function () { return this; } + }); + } }; /***/ }), -/* 179 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); +var anObject = __webpack_require__(45); +var aConstructor = __webpack_require__(166); +var isNullOrUndefined = __webpack_require__(16); +var wellKnownSymbol = __webpack_require__(32); -module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) { - var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator; - var next = record.next; - var step, result; - while (!(step = call(next, iterator)).done) { - result = fn(step.value); - if (result !== undefined) return result; - } +var SPECIES = wellKnownSymbol('species'); + +// `SpeciesConstructor` abstract operation +// https://tc39.es/ecma262/#sec-speciesconstructor +module.exports = function (O, defaultConstructor) { + var C = anObject(O).constructor; + var S; + return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); }; /***/ }), -/* 180 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThisAccessor = __webpack_require__(70); -var SetHelpers = __webpack_require__(176); +var isConstructor = __webpack_require__(167); +var tryToString = __webpack_require__(30); -module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) { - return set.size; +var $TypeError = TypeError; + +// `Assert: IsConstructor(argument) is true` +module.exports = function (argument) { + if (isConstructor(argument)) return argument; + throw new $TypeError(tryToString(argument) + ' is not a constructor'); }; /***/ }), -/* 181 */ +/* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var call = __webpack_require__(7); -var toIntegerOrInfinity = __webpack_require__(60); -var getIteratorDirect = __webpack_require__(182); +var uncurryThis = __webpack_require__(13); +var fails = __webpack_require__(6); +var isCallable = __webpack_require__(20); +var classof = __webpack_require__(77); +var getBuiltIn = __webpack_require__(22); +var inspectSource = __webpack_require__(49); -var INVALID_SIZE = 'Invalid size'; -var $RangeError = RangeError; -var $TypeError = TypeError; -var max = Math.max; +var noop = function () { /* empty */ }; +var construct = getBuiltIn('Reflect', 'construct'); +var constructorRegExp = /^\s*(?:class|function)\b/; +var exec = uncurryThis(constructorRegExp.exec); +var INCORRECT_TO_STRING = !constructorRegExp.test(noop); -var SetRecord = function (set, intSize) { - this.set = set; - this.size = max(intSize, 0); - this.has = aCallable(set.has); - this.keys = aCallable(set.keys); +var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, [], argument); + return true; + } catch (error) { + return false; + } }; -SetRecord.prototype = { - getIterator: function () { - return getIteratorDirect(anObject(call(this.keys, this.set))); - }, - includes: function (it) { - return call(this.has, this.set, it); +var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(argument)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': return false; + } + try { + // we can't check .prototype since constructors produced by .bind haven't it + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; } }; -// `GetSetRecord` abstract operation -// https://tc39.es/proposal-set-methods/#sec-getsetrecord -module.exports = function (obj) { - anObject(obj); - var numSize = +obj.size; - // NOTE: If size is undefined, then numSize will be NaN - // eslint-disable-next-line no-self-compare -- NaN check - if (numSize !== numSize) throw new $TypeError(INVALID_SIZE); - var intSize = toIntegerOrInfinity(numSize); - if (intSize < 0) throw new $RangeError(INVALID_SIZE); - return new SetRecord(obj, intSize); -}; +isConstructorLegacy.sham = true; + +// `IsConstructor` abstract operation +// https://tc39.es/ecma262/#sec-isconstructor +module.exports = !construct || fails(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; +}) ? isConstructorLegacy : isConstructorModern; /***/ }), -/* 182 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// `GetIteratorDirect(obj)` abstract operation -// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect -module.exports = function (obj) { - return { - iterator: obj, - next: obj.next, - done: false - }; -}; - +var globalThis = __webpack_require__(3); +var apply = __webpack_require__(67); +var bind = __webpack_require__(92); +var isCallable = __webpack_require__(20); +var hasOwn = __webpack_require__(37); +var fails = __webpack_require__(6); +var html = __webpack_require__(90); +var arraySlice = __webpack_require__(169); +var createElement = __webpack_require__(41); +var validateArgumentsLength = __webpack_require__(170); +var IS_IOS = __webpack_require__(171); +var IS_NODE = __webpack_require__(127); -/***/ }), -/* 183 */ -/***/ (function(module, exports, __webpack_require__) { +var set = globalThis.setImmediate; +var clear = globalThis.clearImmediate; +var process = globalThis.process; +var Dispatch = globalThis.Dispatch; +var Function = globalThis.Function; +var MessageChannel = globalThis.MessageChannel; +var String = globalThis.String; +var counter = 0; +var queue = {}; +var ONREADYSTATECHANGE = 'onreadystatechange'; +var $location, defer, channel, port; -"use strict"; +fails(function () { + // Deno throws a ReferenceError on `location` access without `--location` flag + $location = globalThis.location; +}); -var getBuiltIn = __webpack_require__(22); +var run = function (id) { + if (hasOwn(queue, id)) { + var fn = queue[id]; + delete queue[id]; + fn(); + } +}; -var createSetLike = function (size) { - return { - size: size, - has: function () { - return false; - }, - keys: function () { - return { - next: function () { - return { done: true }; - } - }; - } +var runner = function (id) { + return function () { + run(id); }; }; -module.exports = function (name) { - var Set = getBuiltIn('Set'); - try { - new Set()[name](createSetLike(0)); - try { - // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it - // https://github.com/tc39/proposal-set-methods/pull/88 - new Set()[name](createSetLike(-1)); - return false; - } catch (error2) { - return true; - } - } catch (error) { - return false; +var eventListener = function (event) { + run(event.data); +}; + +var globalPostMessageDefer = function (id) { + // old engines have not location.origin + globalThis.postMessage(String(id), $location.protocol + '//' + $location.host); +}; + +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: +if (!set || !clear) { + set = function setImmediate(handler) { + validateArgumentsLength(arguments.length, 1); + var fn = isCallable(handler) ? handler : Function(handler); + var args = arraySlice(arguments, 1); + queue[++counter] = function () { + apply(fn, undefined, args); + }; + defer(counter); + return counter; + }; + clear = function clearImmediate(id) { + delete queue[id]; + }; + // Node.js 0.8- + if (IS_NODE) { + defer = function (id) { + process.nextTick(runner(id)); + }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(runner(id)); + }; + // Browsers with MessageChannel, includes WebWorkers + // except iOS - https://github.com/zloirock/core-js/issues/624 + } else if (MessageChannel && !IS_IOS) { + channel = new MessageChannel(); + port = channel.port2; + channel.port1.onmessage = eventListener; + defer = bind(port.postMessage, port); + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + } else if ( + globalThis.addEventListener && + isCallable(globalThis.postMessage) && + !globalThis.importScripts && + $location && $location.protocol !== 'file:' && + !fails(globalPostMessageDefer) + ) { + defer = globalPostMessageDefer; + globalThis.addEventListener('message', eventListener, false); + // IE8- + } else if (ONREADYSTATECHANGE in createElement('script')) { + defer = function (id) { + html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); + run(id); + }; + }; + // Rest old browsers + } else { + defer = function (id) { + setTimeout(runner(id), 0); + }; } +} + +module.exports = { + set: set, + clear: clear }; /***/ }), -/* 184 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var fails = __webpack_require__(6); -var intersection = __webpack_require__(185); -var setMethodAcceptSetLike = __webpack_require__(183); - -var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () { - // eslint-disable-next-line es/no-array-from, es/no-set -- testing - return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2'; -}); +var uncurryThis = __webpack_require__(13); -// `Set.prototype.intersection` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, { - intersection: intersection -}); +module.exports = uncurryThis([].slice); /***/ }), -/* 185 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var SetHelpers = __webpack_require__(176); -var size = __webpack_require__(180); -var getSetRecord = __webpack_require__(181); -var iterateSet = __webpack_require__(178); -var iterateSimple = __webpack_require__(179); - -var Set = SetHelpers.Set; -var add = SetHelpers.add; -var has = SetHelpers.has; - -// `Set.prototype.intersection` method -// https://github.com/tc39/proposal-set-methods -module.exports = function intersection(other) { - var O = aSet(this); - var otherRec = getSetRecord(other); - var result = new Set(); - - if (size(O) > otherRec.size) { - iterateSimple(otherRec.getIterator(), function (e) { - if (has(O, e)) add(result, e); - }); - } else { - iterateSet(O, function (e) { - if (otherRec.includes(e)) add(result, e); - }); - } +var $TypeError = TypeError; - return result; +module.exports = function (passed, required) { + if (passed < required) throw new $TypeError('Not enough arguments'); + return passed; }; /***/ }), -/* 186 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var isDisjointFrom = __webpack_require__(187); -var setMethodAcceptSetLike = __webpack_require__(183); +var userAgent = __webpack_require__(27); -// `Set.prototype.isDisjointFrom` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isDisjointFrom') }, { - isDisjointFrom: isDisjointFrom -}); +// eslint-disable-next-line redos/no-vulnerable -- safe +module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); /***/ }), -/* 187 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var has = __webpack_require__(176).has; -var size = __webpack_require__(180); -var getSetRecord = __webpack_require__(181); -var iterateSet = __webpack_require__(178); -var iterateSimple = __webpack_require__(179); -var iteratorClose = __webpack_require__(98); +var globalThis = __webpack_require__(3); +var safeGetBuiltIn = __webpack_require__(173); +var bind = __webpack_require__(92); +var macrotask = __webpack_require__(168).set; +var Queue = __webpack_require__(174); +var IS_IOS = __webpack_require__(171); +var IS_IOS_PEBBLE = __webpack_require__(175); +var IS_WEBOS_WEBKIT = __webpack_require__(176); +var IS_NODE = __webpack_require__(127); -// `Set.prototype.isDisjointFrom` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom -module.exports = function isDisjointFrom(other) { - var O = aSet(this); - var otherRec = getSetRecord(other); - if (size(O) <= otherRec.size) return iterateSet(O, function (e) { - if (otherRec.includes(e)) return false; - }, true) !== false; - var iterator = otherRec.getIterator(); - return iterateSimple(iterator, function (e) { - if (has(O, e)) return iteratorClose(iterator, 'normal', false); - }) !== false; -}; +var MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver; +var document = globalThis.document; +var process = globalThis.process; +var Promise = globalThis.Promise; +var microtask = safeGetBuiltIn('queueMicrotask'); +var notify, toggle, node, promise, then; +// modern engines have queueMicrotask method +if (!microtask) { + var queue = new Queue(); -/***/ }), -/* 188 */ -/***/ (function(module, exports, __webpack_require__) { + var flush = function () { + var parent, fn; + if (IS_NODE && (parent = process.domain)) parent.exit(); + while (fn = queue.get()) try { + fn(); + } catch (error) { + if (queue.head) notify(); + throw error; + } + if (parent) parent.enter(); + }; -"use strict"; + // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 + // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 + if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) { + toggle = true; + node = document.createTextNode(''); + new MutationObserver(flush).observe(node, { characterData: true }); + notify = function () { + node.data = toggle = !toggle; + }; + // environments with maybe non-completely correct, but existent Promise + } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) { + // Promise.resolve without an argument throws an error in LG WebOS 2 + promise = Promise.resolve(undefined); + // workaround of WebKit ~ iOS Safari 10.1 bug + promise.constructor = Promise; + then = bind(promise.then, promise); + notify = function () { + then(flush); + }; + // Node.js without promises + } else if (IS_NODE) { + notify = function () { + process.nextTick(flush); + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessage + // - onreadystatechange + // - setTimeout + } else { + // `webpack` dev server bug on IE global methods - use bind(fn, global) + macrotask = bind(macrotask, globalThis); + notify = function () { + macrotask(flush); + }; + } -var $ = __webpack_require__(2); -var isSubsetOf = __webpack_require__(189); -var setMethodAcceptSetLike = __webpack_require__(183); + microtask = function (fn) { + if (!queue.head) notify(); + queue.add(fn); + }; +} -// `Set.prototype.isSubsetOf` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSubsetOf') }, { - isSubsetOf: isSubsetOf -}); +module.exports = microtask; /***/ }), -/* 189 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var size = __webpack_require__(180); -var iterate = __webpack_require__(178); -var getSetRecord = __webpack_require__(181); +var globalThis = __webpack_require__(3); +var DESCRIPTORS = __webpack_require__(5); -// `Set.prototype.isSubsetOf` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf -module.exports = function isSubsetOf(other) { - var O = aSet(this); - var otherRec = getSetRecord(other); - if (size(O) > otherRec.size) return false; - return iterate(O, function (e) { - if (!otherRec.includes(e)) return false; - }, true) !== false; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// Avoid NodeJS experimental warning +module.exports = function (name) { + if (!DESCRIPTORS) return globalThis[name]; + var descriptor = getOwnPropertyDescriptor(globalThis, name); + return descriptor && descriptor.value; }; /***/ }), -/* 190 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var isSupersetOf = __webpack_require__(191); -var setMethodAcceptSetLike = __webpack_require__(183); +var Queue = function () { + this.head = null; + this.tail = null; +}; -// `Set.prototype.isSupersetOf` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSupersetOf') }, { - isSupersetOf: isSupersetOf -}); +Queue.prototype = { + add: function (item) { + var entry = { item: item, next: null }; + var tail = this.tail; + if (tail) tail.next = entry; + else this.head = entry; + this.tail = entry; + }, + get: function () { + var entry = this.head; + if (entry) { + var next = this.head = entry.next; + if (next === null) this.tail = null; + return entry.item; + } + } +}; + +module.exports = Queue; /***/ }), -/* 191 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var has = __webpack_require__(176).has; -var size = __webpack_require__(180); -var getSetRecord = __webpack_require__(181); -var iterateSimple = __webpack_require__(179); -var iteratorClose = __webpack_require__(98); +var userAgent = __webpack_require__(27); -// `Set.prototype.isSupersetOf` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf -module.exports = function isSupersetOf(other) { - var O = aSet(this); - var otherRec = getSetRecord(other); - if (size(O) < otherRec.size) return false; - var iterator = otherRec.getIterator(); - return iterateSimple(iterator, function (e) { - if (!has(O, e)) return iteratorClose(iterator, 'normal', false); - }) !== false; -}; +module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; /***/ }), -/* 192 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var symmetricDifference = __webpack_require__(193); -var setMethodAcceptSetLike = __webpack_require__(183); +var userAgent = __webpack_require__(27); -// `Set.prototype.symmetricDifference` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, { - symmetricDifference: symmetricDifference -}); +module.exports = /web0s(?!.*chrome)/i.test(userAgent); /***/ }), -/* 193 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var SetHelpers = __webpack_require__(176); -var clone = __webpack_require__(177); -var getSetRecord = __webpack_require__(181); -var iterateSimple = __webpack_require__(179); +module.exports = function (a, b) { + try { + // eslint-disable-next-line no-console -- safe + arguments.length === 1 ? console.error(a) : console.error(a, b); + } catch (error) { /* empty */ } +}; + -var add = SetHelpers.add; -var has = SetHelpers.has; -var remove = SetHelpers.remove; +/***/ }), +/* 178 */ +/***/ (function(module, exports, __webpack_require__) { -// `Set.prototype.symmetricDifference` method -// https://github.com/tc39/proposal-set-methods -module.exports = function symmetricDifference(other) { - var O = aSet(this); - var keysIter = getSetRecord(other).getIterator(); - var result = clone(O); - iterateSimple(keysIter, function (e) { - if (has(O, e)) remove(result, e); - else add(result, e); - }); - return result; +"use strict"; + +module.exports = function (exec) { + try { + return { error: false, value: exec() }; + } catch (error) { + return { error: true, value: error }; + } }; /***/ }), -/* 194 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var union = __webpack_require__(195); -var setMethodAcceptSetLike = __webpack_require__(183); +var globalThis = __webpack_require__(3); -// `Set.prototype.union` method -// https://github.com/tc39/proposal-set-methods -$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, { - union: union -}); +module.exports = globalThis.Promise; /***/ }), -/* 195 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var aSet = __webpack_require__(175); -var add = __webpack_require__(176).add; -var clone = __webpack_require__(177); -var getSetRecord = __webpack_require__(181); -var iterateSimple = __webpack_require__(179); +var globalThis = __webpack_require__(3); +var NativePromiseConstructor = __webpack_require__(179); +var isCallable = __webpack_require__(20); +var isForced = __webpack_require__(66); +var inspectSource = __webpack_require__(49); +var wellKnownSymbol = __webpack_require__(32); +var ENVIRONMENT = __webpack_require__(128); +var IS_PURE = __webpack_require__(35); +var V8_VERSION = __webpack_require__(26); + +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; +var SPECIES = wellKnownSymbol('species'); +var SUBCLASSING = false; +var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent); -// `Set.prototype.union` method -// https://github.com/tc39/proposal-set-methods -module.exports = function union(other) { - var O = aSet(this); - var keysIter = getSetRecord(other).getIterator(); - var result = clone(O); - iterateSimple(keysIter, function (it) { - add(result, it); - }); - return result; +var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); + var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); + // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // We can't detect it synchronously, so just check versions + if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; + // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution + if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true; + // We can't use @@species feature detection in V8 since it causes + // deoptimization and performance degradation + // https://github.com/zloirock/core-js/issues/679 + if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { + // Detect correctness of subclassing with @@species support + var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); + var FakePromise = function (exec) { + exec(function () { /* empty */ }, function () { /* empty */ }); + }; + var constructor = promise.constructor = {}; + constructor[SPECIES] = FakePromise; + SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; + if (!SUBCLASSING) return true; + // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test + } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT; +}); + +module.exports = { + CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, + REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, + SUBCLASSING: SUBCLASSING }; /***/ }), -/* 196 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var requireObjectCoercible = __webpack_require__(15); -var toIntegerOrInfinity = __webpack_require__(60); -var toString = __webpack_require__(76); -var fails = __webpack_require__(6); +var aCallable = __webpack_require__(29); -var charAt = uncurryThis(''.charAt); +var $TypeError = TypeError; -var FORCED = fails(function () { - // eslint-disable-next-line es/no-string-prototype-at -- safe - return '𠮷'.at(-2) !== '\uD842'; -}); +var PromiseCapability = function (C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aCallable(resolve); + this.reject = aCallable(reject); +}; -// `String.prototype.at` method -// https://tc39.es/ecma262/#sec-string.prototype.at -$({ target: 'String', proto: true, forced: FORCED }, { - at: function at(index) { - var S = toString(requireObjectCoercible(this)); - var len = S.length; - var relativeIndex = toIntegerOrInfinity(index); - var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; - return (k < 0 || k >= len) ? undefined : charAt(S, k); - } -}); +// `NewPromiseCapability` abstract operation +// https://tc39.es/ecma262/#sec-newpromisecapability +module.exports.f = function (C) { + return new PromiseCapability(C); +}; /***/ }), -/* 197 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var requireObjectCoercible = __webpack_require__(15); -var toString = __webpack_require__(76); - -var charCodeAt = uncurryThis(''.charCodeAt); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var newPromiseCapabilityModule = __webpack_require__(181); +var perform = __webpack_require__(178); +var iterate = __webpack_require__(91); +var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(183); -// `String.prototype.isWellFormed` method -// https://github.com/tc39/proposal-is-usv-string -$({ target: 'String', proto: true }, { - isWellFormed: function isWellFormed() { - var S = toString(requireObjectCoercible(this)); - var length = S.length; - for (var i = 0; i < length; i++) { - var charCode = charCodeAt(S, i); - // single UTF-16 code unit - if ((charCode & 0xF800) !== 0xD800) continue; - // unpaired surrogate - if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) !== 0xDC00) return false; - } return true; +// `Promise.all` method +// https://tc39.es/ecma262/#sec-promise.all +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + all: function all(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call($promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = value; + --remaining || resolve(values); + }, reject); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; } }); /***/ }), -/* 198 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var uncurryThis = __webpack_require__(13); -var requireObjectCoercible = __webpack_require__(15); -var isCallable = __webpack_require__(20); -var isNullOrUndefined = __webpack_require__(16); -var isRegExp = __webpack_require__(199); -var toString = __webpack_require__(76); -var getMethod = __webpack_require__(28); -var getRegExpFlags = __webpack_require__(200); -var getSubstitution = __webpack_require__(201); -var wellKnownSymbol = __webpack_require__(32); -var IS_PURE = __webpack_require__(35); - -var REPLACE = wellKnownSymbol('replace'); -var $TypeError = TypeError; -var indexOf = uncurryThis(''.indexOf); -var replace = uncurryThis(''.replace); -var stringSlice = uncurryThis(''.slice); -var max = Math.max; +var NativePromiseConstructor = __webpack_require__(179); +var checkCorrectnessOfIteration = __webpack_require__(184); +var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(180).CONSTRUCTOR; -// `String.prototype.replaceAll` method -// https://tc39.es/ecma262/#sec-string.prototype.replaceall -$({ target: 'String', proto: true }, { - replaceAll: function replaceAll(searchValue, replaceValue) { - var O = requireObjectCoercible(this); - var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement; - var endOfLastMatch = 0; - var result = ''; - if (!isNullOrUndefined(searchValue)) { - IS_REG_EXP = isRegExp(searchValue); - if (IS_REG_EXP) { - flags = toString(requireObjectCoercible(getRegExpFlags(searchValue))); - if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes'); - } - replacer = getMethod(searchValue, REPLACE); - if (replacer) return call(replacer, searchValue, O, replaceValue); - if (IS_PURE && IS_REG_EXP) return replace(toString(O), searchValue, replaceValue); - } - string = toString(O); - searchString = toString(searchValue); - functionalReplace = isCallable(replaceValue); - if (!functionalReplace) replaceValue = toString(replaceValue); - searchLength = searchString.length; - advanceBy = max(1, searchLength); - position = indexOf(string, searchString); - while (position !== -1) { - replacement = functionalReplace - ? toString(replaceValue(searchString, position, string)) - : getSubstitution(searchString, string, position, [], undefined, replaceValue); - result += stringSlice(string, endOfLastMatch, position) + replacement; - endOfLastMatch = position + searchLength; - position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy); - } - if (endOfLastMatch < string.length) { - result += stringSlice(string, endOfLastMatch); - } - return result; - } +module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) { + NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ }); }); /***/ }), -/* 199 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isObject = __webpack_require__(19); -var classof = __webpack_require__(14); var wellKnownSymbol = __webpack_require__(32); -var MATCH = wellKnownSymbol('match'); +var ITERATOR = wellKnownSymbol('iterator'); +var SAFE_CLOSING = false; + +try { + var called = 0; + var iteratorWithReturn = { + next: function () { + return { done: !!called++ }; + }, + 'return': function () { + SAFE_CLOSING = true; + } + }; + iteratorWithReturn[ITERATOR] = function () { + return this; + }; + // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing + Array.from(iteratorWithReturn, function () { throw 2; }); +} catch (error) { /* empty */ } -// `IsRegExp` abstract operation -// https://tc39.es/ecma262/#sec-isregexp -module.exports = function (it) { - var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp'); +module.exports = function (exec, SKIP_CLOSING) { + try { + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; + } catch (error) { return false; } // workaround of old WebKit + `eval` bug + var ITERATION_SUPPORT = false; + try { + var object = {}; + object[ITERATOR] = function () { + return { + next: function () { + return { done: ITERATION_SUPPORT = true }; + } + }; + }; + exec(object); + } catch (error) { /* empty */ } + return ITERATION_SUPPORT; }; /***/ }), -/* 200 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var hasOwn = __webpack_require__(37); -var isPrototypeOf = __webpack_require__(23); -var regExpFlags = __webpack_require__(172); +var $ = __webpack_require__(2); +var IS_PURE = __webpack_require__(35); +var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(180).CONSTRUCTOR; +var NativePromiseConstructor = __webpack_require__(179); +var getBuiltIn = __webpack_require__(22); +var isCallable = __webpack_require__(20); +var defineBuiltIn = __webpack_require__(46); -var RegExpPrototype = RegExp.prototype; +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; -module.exports = function (R) { - var flags = R.flags; - return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) - ? call(regExpFlags, R) : flags; -}; +// `Promise.prototype.catch` method +// https://tc39.es/ecma262/#sec-promise.prototype.catch +$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { + 'catch': function (onRejected) { + return this.then(undefined, onRejected); + } +}); + +// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` +if (!IS_PURE && isCallable(NativePromiseConstructor)) { + var method = getBuiltIn('Promise').prototype['catch']; + if (NativePromisePrototype['catch'] !== method) { + defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true }); + } +} /***/ }), -/* 201 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThis = __webpack_require__(13); -var toObject = __webpack_require__(38); - -var floor = Math.floor; -var charAt = uncurryThis(''.charAt); -var replace = uncurryThis(''.replace); -var stringSlice = uncurryThis(''.slice); -// eslint-disable-next-line redos/no-vulnerable -- safe -var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; -var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var newPromiseCapabilityModule = __webpack_require__(181); +var perform = __webpack_require__(178); +var iterate = __webpack_require__(91); +var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(183); -// `GetSubstitution` abstract operation -// https://tc39.es/ecma262/#sec-getsubstitution -module.exports = function (matched, str, position, captures, namedCaptures, replacement) { - var tailPos = position + matched.length; - var m = captures.length; - var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; - if (namedCaptures !== undefined) { - namedCaptures = toObject(namedCaptures); - symbols = SUBSTITUTION_SYMBOLS; +// `Promise.race` method +// https://tc39.es/ecma262/#sec-promise.race +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + race: function race(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + iterate(iterable, function (promise) { + call($promiseResolve, C, promise).then(capability.resolve, reject); + }); + }); + if (result.error) reject(result.value); + return capability.promise; } - return replace(replacement, symbols, function (match, ch) { - var capture; - switch (charAt(ch, 0)) { - case '$': return '$'; - case '&': return matched; - case '`': return stringSlice(str, 0, position); - case "'": return stringSlice(str, tailPos); - case '<': - capture = namedCaptures[stringSlice(ch, 1, -1)]; - break; - default: // \d\d? - var n = +ch; - if (n === 0) return match; - if (n > m) { - var f = floor(n / 10); - if (f === 0) return match; - if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); - return match; - } - capture = captures[n - 1]; - } - return capture === undefined ? '' : capture; - }); -}; +}); /***/ }), -/* 202 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var uncurryThis = __webpack_require__(13); -var requireObjectCoercible = __webpack_require__(15); -var toString = __webpack_require__(76); -var fails = __webpack_require__(6); +var newPromiseCapabilityModule = __webpack_require__(181); +var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(180).CONSTRUCTOR; -var $Array = Array; -var charAt = uncurryThis(''.charAt); -var charCodeAt = uncurryThis(''.charCodeAt); -var join = uncurryThis([].join); -// eslint-disable-next-line es/no-string-prototype-towellformed -- safe -var $toWellFormed = ''.toWellFormed; -var REPLACEMENT_CHARACTER = '\uFFFD'; - -// Safari bug -var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () { - return call($toWellFormed, 1) !== '1'; -}); - -// `String.prototype.toWellFormed` method -// https://github.com/tc39/proposal-is-usv-string -$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, { - toWellFormed: function toWellFormed() { - var S = toString(requireObjectCoercible(this)); - if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S); - var length = S.length; - var result = $Array(length); - for (var i = 0; i < length; i++) { - var charCode = charCodeAt(S, i); - // single UTF-16 code unit - if ((charCode & 0xF800) !== 0xD800) result[i] = charAt(S, i); - // unpaired surrogate - else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER; - // surrogate pair - else { - result[i] = charAt(S, i); - result[++i] = charAt(S, i); - } - } return join(result, ''); +// `Promise.reject` method +// https://tc39.es/ecma262/#sec-promise.reject +$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { + reject: function reject(r) { + var capability = newPromiseCapabilityModule.f(this); + var capabilityReject = capability.reject; + capabilityReject(r); + return capability.promise; } }); /***/ }), -/* 203 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArrayBufferViewCore = __webpack_require__(204); -var lengthOfArrayLike = __webpack_require__(62); -var toIntegerOrInfinity = __webpack_require__(60); +var $ = __webpack_require__(2); +var getBuiltIn = __webpack_require__(22); +var IS_PURE = __webpack_require__(35); +var NativePromiseConstructor = __webpack_require__(179); +var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__(180).CONSTRUCTOR; +var promiseResolve = __webpack_require__(189); -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var PromiseConstructorWrapper = getBuiltIn('Promise'); +var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; -// `%TypedArray%.prototype.at` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at -exportTypedArrayMethod('at', function at(index) { - var O = aTypedArray(this); - var len = lengthOfArrayLike(O); - var relativeIndex = toIntegerOrInfinity(index); - var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; - return (k < 0 || k >= len) ? undefined : O[k]; +// `Promise.resolve` method +// https://tc39.es/ecma262/#sec-promise.resolve +$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { + resolve: function resolve(x) { + return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); + } }); /***/ }), -/* 204 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var NATIVE_ARRAY_BUFFER = __webpack_require__(205); -var DESCRIPTORS = __webpack_require__(5); -var globalThis = __webpack_require__(3); -var isCallable = __webpack_require__(20); -var isObject = __webpack_require__(19); -var hasOwn = __webpack_require__(37); -var classof = __webpack_require__(77); -var tryToString = __webpack_require__(30); -var createNonEnumerableProperty = __webpack_require__(42); -var defineBuiltIn = __webpack_require__(46); -var defineBuiltInAccessor = __webpack_require__(118); -var isPrototypeOf = __webpack_require__(23); -var getPrototypeOf = __webpack_require__(85); -var setPrototypeOf = __webpack_require__(69); -var wellKnownSymbol = __webpack_require__(32); -var uid = __webpack_require__(39); -var InternalStateModule = __webpack_require__(50); - -var enforceInternalState = InternalStateModule.enforce; -var getInternalState = InternalStateModule.get; -var Int8Array = globalThis.Int8Array; -var Int8ArrayPrototype = Int8Array && Int8Array.prototype; -var Uint8ClampedArray = globalThis.Uint8ClampedArray; -var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; -var TypedArray = Int8Array && getPrototypeOf(Int8Array); -var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype); -var ObjectPrototype = Object.prototype; -var TypeError = globalThis.TypeError; - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG'); -var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor'; -// Fixing native typed arrays in Opera Presto crashes the browser, see #595 -var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera'; -var TYPED_ARRAY_TAG_REQUIRED = false; -var NAME, Constructor, Prototype; - -var TypedArrayConstructorsList = { - Int8Array: 1, - Uint8Array: 1, - Uint8ClampedArray: 1, - Int16Array: 2, - Uint16Array: 2, - Int32Array: 4, - Uint32Array: 4, - Float32Array: 4, - Float64Array: 8 -}; - -var BigIntArrayConstructorsList = { - BigInt64Array: 8, - BigUint64Array: 8 -}; - -var isView = function isView(it) { - if (!isObject(it)) return false; - var klass = classof(it); - return klass === 'DataView' - || hasOwn(TypedArrayConstructorsList, klass) - || hasOwn(BigIntArrayConstructorsList, klass); -}; +var anObject = __webpack_require__(45); +var isObject = __webpack_require__(19); +var newPromiseCapability = __webpack_require__(181); -var getTypedArrayConstructor = function (it) { - var proto = getPrototypeOf(it); - if (!isObject(proto)) return; - var state = getInternalState(proto); - return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto); +module.exports = function (C, x) { + anObject(C); + if (isObject(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; }; -var isTypedArray = function (it) { - if (!isObject(it)) return false; - var klass = classof(it); - return hasOwn(TypedArrayConstructorsList, klass) - || hasOwn(BigIntArrayConstructorsList, klass); -}; -var aTypedArray = function (it) { - if (isTypedArray(it)) return it; - throw new TypeError('Target is not a typed array'); -}; +/***/ }), +/* 190 */ +/***/ (function(module, exports, __webpack_require__) { -var aTypedArrayConstructor = function (C) { - if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C; - throw new TypeError(tryToString(C) + ' is not a typed array constructor'); -}; +"use strict"; -var exportTypedArrayMethod = function (KEY, property, forced, options) { - if (!DESCRIPTORS) return; - if (forced) for (var ARRAY in TypedArrayConstructorsList) { - var TypedArrayConstructor = globalThis[ARRAY]; - if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try { - delete TypedArrayConstructor.prototype[KEY]; - } catch (error) { - // old WebKit bug - some methods are non-configurable - try { - TypedArrayConstructor.prototype[KEY] = property; - } catch (error2) { /* empty */ } - } - } - if (!TypedArrayPrototype[KEY] || forced) { - defineBuiltIn(TypedArrayPrototype, KEY, forced ? property - : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options); - } -}; +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var newPromiseCapabilityModule = __webpack_require__(181); +var perform = __webpack_require__(178); +var iterate = __webpack_require__(91); +var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(183); -var exportTypedArrayStaticMethod = function (KEY, property, forced) { - var ARRAY, TypedArrayConstructor; - if (!DESCRIPTORS) return; - if (setPrototypeOf) { - if (forced) for (ARRAY in TypedArrayConstructorsList) { - TypedArrayConstructor = globalThis[ARRAY]; - if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try { - delete TypedArrayConstructor[KEY]; - } catch (error) { /* empty */ } - } - if (!TypedArray[KEY] || forced) { - // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable - try { - return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); - } catch (error) { /* empty */ } - } else return; - } - for (ARRAY in TypedArrayConstructorsList) { - TypedArrayConstructor = globalThis[ARRAY]; - if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { - defineBuiltIn(TypedArrayConstructor, KEY, property); - } +// `Promise.allSettled` method +// https://tc39.es/ecma262/#sec-promise.allsettled +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + allSettled: function allSettled(iterable) { + var C = this; + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var promiseResolve = aCallable(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call(promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = { status: 'fulfilled', value: value }; + --remaining || resolve(values); + }, function (error) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = { status: 'rejected', reason: error }; + --remaining || resolve(values); + }); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; } -}; +}); -for (NAME in TypedArrayConstructorsList) { - Constructor = globalThis[NAME]; - Prototype = Constructor && Constructor.prototype; - if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; - else NATIVE_ARRAY_BUFFER_VIEWS = false; -} -for (NAME in BigIntArrayConstructorsList) { - Constructor = globalThis[NAME]; - Prototype = Constructor && Constructor.prototype; - if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; -} +/***/ }), +/* 191 */ +/***/ (function(module, exports, __webpack_require__) { -// WebKit bug - typed arrays constructors prototype is Object.prototype -if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) { - // eslint-disable-next-line no-shadow -- safe - TypedArray = function TypedArray() { - throw new TypeError('Incorrect invocation'); - }; - if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { - if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray); - } -} +"use strict"; -if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) { - TypedArrayPrototype = TypedArray.prototype; - if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { - if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype); - } -} +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var getBuiltIn = __webpack_require__(22); +var newPromiseCapabilityModule = __webpack_require__(181); +var perform = __webpack_require__(178); +var iterate = __webpack_require__(91); +var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(183); -// WebKit bug - one more object in Uint8ClampedArray prototype chain -if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) { - setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype); -} +var PROMISE_ANY_ERROR = 'No one promise resolved'; -if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) { - TYPED_ARRAY_TAG_REQUIRED = true; - defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, { - configurable: true, - get: function () { - return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined; - } - }); - for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) { - createNonEnumerableProperty(globalThis[NAME], TYPED_ARRAY_TAG, NAME); +// `Promise.any` method +// https://tc39.es/ecma262/#sec-promise.any +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { + any: function any(iterable) { + var C = this; + var AggregateError = getBuiltIn('AggregateError'); + var capability = newPromiseCapabilityModule.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var promiseResolve = aCallable(C.resolve); + var errors = []; + var counter = 0; + var remaining = 1; + var alreadyResolved = false; + iterate(iterable, function (promise) { + var index = counter++; + var alreadyRejected = false; + remaining++; + call(promiseResolve, C, promise).then(function (value) { + if (alreadyRejected || alreadyResolved) return; + alreadyResolved = true; + resolve(value); + }, function (error) { + if (alreadyRejected || alreadyResolved) return; + alreadyRejected = true; + errors[index] = error; + --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); + }); + }); + --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR)); + }); + if (result.error) reject(result.value); + return capability.promise; } -} - -module.exports = { - NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS, - TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG, - aTypedArray: aTypedArray, - aTypedArrayConstructor: aTypedArrayConstructor, - exportTypedArrayMethod: exportTypedArrayMethod, - exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, - getTypedArrayConstructor: getTypedArrayConstructor, - isView: isView, - isTypedArray: isTypedArray, - TypedArray: TypedArray, - TypedArrayPrototype: TypedArrayPrototype -}; +}); /***/ }), -/* 205 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// eslint-disable-next-line es/no-typed-arrays -- safe -module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; +var $ = __webpack_require__(2); +var IS_PURE = __webpack_require__(35); +var NativePromiseConstructor = __webpack_require__(179); +var fails = __webpack_require__(6); +var getBuiltIn = __webpack_require__(22); +var isCallable = __webpack_require__(20); +var speciesConstructor = __webpack_require__(165); +var promiseResolve = __webpack_require__(189); +var defineBuiltIn = __webpack_require__(46); + +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; + +// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829 +var NON_GENERIC = !!NativePromiseConstructor && fails(function () { + // eslint-disable-next-line unicorn/no-thenable -- required for testing + NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ }); +}); + +// `Promise.prototype.finally` method +// https://tc39.es/ecma262/#sec-promise.prototype.finally +$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { + 'finally': function (onFinally) { + var C = speciesConstructor(this, getBuiltIn('Promise')); + var isFunction = isCallable(onFinally); + return this.then( + isFunction ? function (x) { + return promiseResolve(C, onFinally()).then(function () { return x; }); + } : onFinally, + isFunction ? function (e) { + return promiseResolve(C, onFinally()).then(function () { throw e; }); + } : onFinally + ); + } +}); + +// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then` +if (!IS_PURE && isCallable(NativePromiseConstructor)) { + var method = getBuiltIn('Promise').prototype['finally']; + if (NativePromisePrototype['finally'] !== method) { + defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true }); + } +} /***/ }), -/* 206 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArrayBufferViewCore = __webpack_require__(204); -var $findLast = __webpack_require__(103).findLast; +var $ = __webpack_require__(2); +var globalThis = __webpack_require__(3); +var apply = __webpack_require__(67); +var slice = __webpack_require__(169); +var newPromiseCapabilityModule = __webpack_require__(181); +var aCallable = __webpack_require__(29); +var perform = __webpack_require__(178); -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var Promise = globalThis.Promise; -// `%TypedArray%.prototype.findLast` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast -exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) { - return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +var ACCEPT_ARGUMENTS = false; +// Avoiding the use of polyfills of the previous iteration of this proposal +// that does not accept arguments of the callback +var FORCED = !Promise || !Promise['try'] || perform(function () { + Promise['try'](function (argument) { + ACCEPT_ARGUMENTS = argument === 8; + }, 8); +}).error || !ACCEPT_ARGUMENTS; + +// `Promise.try` method +// https://tc39.es/ecma262/#sec-promise.try +$({ target: 'Promise', stat: true, forced: FORCED }, { + 'try': function (callbackfn /* , ...args */) { + var args = arguments.length > 1 ? slice(arguments, 1) : []; + var promiseCapability = newPromiseCapabilityModule.f(this); + var result = perform(function () { + return apply(aCallable(callbackfn), undefined, args); + }); + (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value); + return promiseCapability.promise; + } }); /***/ }), -/* 207 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArrayBufferViewCore = __webpack_require__(204); -var $findLastIndex = __webpack_require__(103).findLastIndex; - -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var $ = __webpack_require__(2); +var newPromiseCapabilityModule = __webpack_require__(181); -// `%TypedArray%.prototype.findLastIndex` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex -exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) { - return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +// `Promise.withResolvers` method +// https://tc39.es/ecma262/#sec-promise.withResolvers +$({ target: 'Promise', stat: true }, { + withResolvers: function withResolvers() { + var promiseCapability = newPromiseCapabilityModule.f(this); + return { + promise: promiseCapability.promise, + resolve: promiseCapability.resolve, + reject: promiseCapability.reject + }; + } }); /***/ }), -/* 208 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var call = __webpack_require__(7); -var ArrayBufferViewCore = __webpack_require__(204); -var lengthOfArrayLike = __webpack_require__(62); -var toOffset = __webpack_require__(209); -var toIndexedObject = __webpack_require__(38); -var fails = __webpack_require__(6); - -var RangeError = globalThis.RangeError; -var Int8Array = globalThis.Int8Array; -var Int8ArrayPrototype = Int8Array && Int8Array.prototype; -var $set = Int8ArrayPrototype && Int8ArrayPrototype.set; -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; - -var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () { - // eslint-disable-next-line es/no-typed-arrays -- required for testing - var array = new Uint8ClampedArray(2); - call($set, array, { length: 1, 0: 3 }, 1); - return array[1] !== 3; -}); +var setToStringTag = __webpack_require__(163); -// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other -var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () { - var array = new Int8Array(2); - array.set(1); - array.set('2', 1); - return array[0] !== 0 || array[1] !== 2; -}); +$({ global: true }, { Reflect: {} }); -// `%TypedArray%.prototype.set` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set -exportTypedArrayMethod('set', function set(arrayLike /* , offset */) { - aTypedArray(this); - var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1); - var src = toIndexedObject(arrayLike); - if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset); - var length = this.length; - var len = lengthOfArrayLike(src); - var index = 0; - if (len + offset > length) throw new RangeError('Wrong length'); - while (index < len) this[offset + index] = src[index++]; -}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG); +// Reflect[@@toStringTag] property +// https://tc39.es/ecma262/#sec-reflect-@@tostringtag +setToStringTag(globalThis.Reflect, 'Reflect', true); /***/ }), -/* 209 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toPositiveInteger = __webpack_require__(210); +var globalThis = __webpack_require__(3); +var DESCRIPTORS = __webpack_require__(5); +var defineBuiltInAccessor = __webpack_require__(118); +var regExpFlags = __webpack_require__(197); +var fails = __webpack_require__(6); -var $RangeError = RangeError; +// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError +var RegExp = globalThis.RegExp; +var RegExpPrototype = RegExp.prototype; -module.exports = function (it, BYTES) { - var offset = toPositiveInteger(it); - if (offset % BYTES) throw new $RangeError('Wrong offset'); - return offset; -}; +var FORCED = DESCRIPTORS && fails(function () { + var INDICES_SUPPORT = true; + try { + RegExp('.', 'd'); + } catch (error) { + INDICES_SUPPORT = false; + } + var O = {}; + // modern V8 bug + var calls = ''; + var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'; -/***/ }), -/* 210 */ -/***/ (function(module, exports, __webpack_require__) { + var addGetter = function (key, chr) { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty(O, key, { get: function () { + calls += chr; + return true; + } }); + }; -"use strict"; + var pairs = { + dotAll: 's', + global: 'g', + ignoreCase: 'i', + multiline: 'm', + sticky: 'y' + }; -var toIntegerOrInfinity = __webpack_require__(60); + if (INDICES_SUPPORT) pairs.hasIndices = 'd'; -var $RangeError = RangeError; + for (var key in pairs) addGetter(key, pairs[key]); -module.exports = function (it) { - var result = toIntegerOrInfinity(it); - if (result < 0) throw new $RangeError("The argument can't be less than 0"); - return result; -}; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O); + + return result !== expected || calls !== expected; +}); + +// `RegExp.prototype.flags` getter +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', { + configurable: true, + get: regExpFlags +}); /***/ }), -/* 211 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var arrayToReversed = __webpack_require__(110); -var ArrayBufferViewCore = __webpack_require__(204); - -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; -var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var anObject = __webpack_require__(45); -// `%TypedArray%.prototype.toReversed` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed -exportTypedArrayMethod('toReversed', function toReversed() { - return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this)); -}); +// `RegExp.prototype.flags` getter implementation +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +module.exports = function () { + var that = anObject(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; +}; /***/ }), -/* 212 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArrayBufferViewCore = __webpack_require__(204); -var uncurryThis = __webpack_require__(13); -var aCallable = __webpack_require__(29); -var arrayFromConstructorAndList = __webpack_require__(112); - -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; -var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort); +var $ = __webpack_require__(2); +var difference = __webpack_require__(199); +var setMethodAcceptSetLike = __webpack_require__(207); -// `%TypedArray%.prototype.toSorted` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted -exportTypedArrayMethod('toSorted', function toSorted(compareFn) { - if (compareFn !== undefined) aCallable(compareFn); - var O = aTypedArray(this); - var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O); - return sort(A, compareFn); +// `Set.prototype.difference` method +// https://tc39.es/ecma262/#sec-set.prototype.difference +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('difference') }, { + difference: difference }); /***/ }), -/* 213 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var arrayWith = __webpack_require__(116); -var ArrayBufferViewCore = __webpack_require__(204); -var isBigIntArray = __webpack_require__(214); -var toIntegerOrInfinity = __webpack_require__(60); -var toBigInt = __webpack_require__(215); - -var aTypedArray = ArrayBufferViewCore.aTypedArray; -var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; -var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var aSet = __webpack_require__(200); +var SetHelpers = __webpack_require__(201); +var clone = __webpack_require__(202); +var size = __webpack_require__(205); +var getSetRecord = __webpack_require__(206); +var iterateSet = __webpack_require__(203); +var iterateSimple = __webpack_require__(204); -var PROPER_ORDER = !!function () { - try { - // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing - new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } }); - } catch (error) { - // some early implementations, like WebKit, does not follow the final semantic - // https://github.com/tc39/proposal-change-array-by-copy/pull/86 - return error === 8; - } -}(); +var has = SetHelpers.has; +var remove = SetHelpers.remove; -// `%TypedArray%.prototype.with` method -// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with -exportTypedArrayMethod('with', { 'with': function (index, value) { - var O = aTypedArray(this); - var relativeIndex = toIntegerOrInfinity(index); - var actualValue = isBigIntArray(O) ? toBigInt(value) : +value; - return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue); -} }['with'], !PROPER_ORDER); +// `Set.prototype.difference` method +// https://github.com/tc39/proposal-set-methods +module.exports = function difference(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + var result = clone(O); + if (size(O) <= otherRec.size) iterateSet(O, function (e) { + if (otherRec.includes(e)) remove(result, e); + }); + else iterateSimple(otherRec.getIterator(), function (e) { + if (has(O, e)) remove(result, e); + }); + return result; +}; /***/ }), -/* 214 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var classof = __webpack_require__(77); +var has = __webpack_require__(201).has; +// Perform ? RequireInternalSlot(M, [[SetData]]) module.exports = function (it) { - var klass = classof(it); - return klass === 'BigInt64Array' || klass === 'BigUint64Array'; + has(it); + return it; }; /***/ }), -/* 215 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toPrimitive = __webpack_require__(18); +var uncurryThis = __webpack_require__(13); -var $TypeError = TypeError; +// eslint-disable-next-line es/no-set -- safe +var SetPrototype = Set.prototype; -// `ToBigInt` abstract operation -// https://tc39.es/ecma262/#sec-tobigint -module.exports = function (argument) { - var prim = toPrimitive(argument, 'number'); - if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint"); - // eslint-disable-next-line es/no-bigint -- safe - return BigInt(prim); +module.exports = { + // eslint-disable-next-line es/no-set -- safe + Set: Set, + add: uncurryThis(SetPrototype.add), + has: uncurryThis(SetPrototype.has), + remove: uncurryThis(SetPrototype['delete']), + proto: SetPrototype }; /***/ }), -/* 216 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var globalThis = __webpack_require__(3); -var isPrototypeOf = __webpack_require__(23); -var getPrototypeOf = __webpack_require__(85); -var setPrototypeOf = __webpack_require__(69); -var copyConstructorProperties = __webpack_require__(54); -var create = __webpack_require__(87); -var createNonEnumerableProperty = __webpack_require__(42); -var createPropertyDescriptor = __webpack_require__(10); -var installErrorStack = __webpack_require__(80); -var normalizeStringArgument = __webpack_require__(75); -var wellKnownSymbol = __webpack_require__(32); -var fails = __webpack_require__(6); -var IS_PURE = __webpack_require__(35); +var SetHelpers = __webpack_require__(201); +var iterate = __webpack_require__(203); -var NativeSuppressedError = globalThis.SuppressedError; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var $Error = Error; +var Set = SetHelpers.Set; +var add = SetHelpers.add; -// https://github.com/oven-sh/bun/issues/9282 -var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3; +module.exports = function (set) { + var result = new Set(); + iterate(set, function (it) { + add(result, it); + }); + return result; +}; -// https://github.com/oven-sh/bun/issues/9283 -var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails(function () { - return new NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4; -}); -var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT; +/***/ }), +/* 203 */ +/***/ (function(module, exports, __webpack_require__) { -var $SuppressedError = function SuppressedError(error, suppressed, message) { - var isInstance = isPrototypeOf(SuppressedErrorPrototype, this); - var that; - if (setPrototypeOf) { - that = PATCH && (!isInstance || getPrototypeOf(this) === SuppressedErrorPrototype) - ? new NativeSuppressedError() - : setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype); - } else { - that = isInstance ? this : create(SuppressedErrorPrototype); - createNonEnumerableProperty(that, TO_STRING_TAG, 'Error'); - } - if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message)); - installErrorStack(that, $SuppressedError, that.stack, 1); - createNonEnumerableProperty(that, 'error', error); - createNonEnumerableProperty(that, 'suppressed', suppressed); - return that; +"use strict"; + +var uncurryThis = __webpack_require__(13); +var iterateSimple = __webpack_require__(204); +var SetHelpers = __webpack_require__(201); + +var Set = SetHelpers.Set; +var SetPrototype = SetHelpers.proto; +var forEach = uncurryThis(SetPrototype.forEach); +var keys = uncurryThis(SetPrototype.keys); +var next = keys(new Set()).next; + +module.exports = function (set, fn, interruptible) { + return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn); }; -if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error); -else copyConstructorProperties($SuppressedError, $Error, { name: true }); -var SuppressedErrorPrototype = $SuppressedError.prototype = PATCH ? NativeSuppressedError.prototype : create($Error.prototype, { - constructor: createPropertyDescriptor(1, $SuppressedError), - message: createPropertyDescriptor(1, ''), - name: createPropertyDescriptor(1, 'SuppressedError') -}); +/***/ }), +/* 204 */ +/***/ (function(module, exports, __webpack_require__) { -if (PATCH && !IS_PURE) SuppressedErrorPrototype.constructor = $SuppressedError; +"use strict"; -// `SuppressedError` constructor -// https://github.com/tc39/proposal-explicit-resource-management -$({ global: true, constructor: true, arity: 3, forced: PATCH }, { - SuppressedError: $SuppressedError -}); +var call = __webpack_require__(7); + +module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) { + var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator; + var next = record.next; + var step, result; + while (!(step = call(next, iterator)).done) { + result = fn(step.value); + if (result !== undefined) return result; + } +}; /***/ }), -/* 217 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var fromAsync = __webpack_require__(218); -var fails = __webpack_require__(6); - -var nativeFromAsync = Array.fromAsync; -// https://bugs.webkit.org/show_bug.cgi?id=271703 -var INCORRECT_CONSTRUCTURING = !nativeFromAsync || fails(function () { - var counter = 0; - nativeFromAsync.call(function () { - counter++; - return []; - }, { length: 0 }); - return counter !== 1; -}); +var uncurryThisAccessor = __webpack_require__(70); +var SetHelpers = __webpack_require__(201); -// `Array.fromAsync` method -// https://github.com/tc39/proposal-array-from-async -$({ target: 'Array', stat: true, forced: INCORRECT_CONSTRUCTURING }, { - fromAsync: fromAsync -}); +module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) { + return set.size; +}; /***/ }), -/* 218 */ +/* 206 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(92); -var uncurryThis = __webpack_require__(13); -var toObject = __webpack_require__(38); -var isConstructor = __webpack_require__(143); -var getAsyncIterator = __webpack_require__(219); -var getIterator = __webpack_require__(96); -var getIteratorDirect = __webpack_require__(182); -var getIteratorMethod = __webpack_require__(97); -var getMethod = __webpack_require__(28); -var getBuiltIn = __webpack_require__(22); -var getBuiltInPrototypeMethod = __webpack_require__(113); -var wellKnownSymbol = __webpack_require__(32); -var AsyncFromSyncIterator = __webpack_require__(220); -var toArray = __webpack_require__(224).toArray; +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var call = __webpack_require__(7); +var toIntegerOrInfinity = __webpack_require__(60); +var getIteratorDirect = __webpack_require__(136); -var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); -var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values')); -var arrayIteratorNext = uncurryThis(arrayIterator([]).next); +var INVALID_SIZE = 'Invalid size'; +var $RangeError = RangeError; +var $TypeError = TypeError; +var max = Math.max; -var safeArrayIterator = function () { - return new SafeArrayIterator(this); +var SetRecord = function (set, intSize) { + this.set = set; + this.size = max(intSize, 0); + this.has = aCallable(set.has); + this.keys = aCallable(set.keys); }; -var SafeArrayIterator = function (O) { - this.iterator = arrayIterator(O); +SetRecord.prototype = { + getIterator: function () { + return getIteratorDirect(anObject(call(this.keys, this.set))); + }, + includes: function (it) { + return call(this.has, this.set, it); + } }; -SafeArrayIterator.prototype.next = function () { - return arrayIteratorNext(this.iterator); +// `GetSetRecord` abstract operation +// https://tc39.es/proposal-set-methods/#sec-getsetrecord +module.exports = function (obj) { + anObject(obj); + var numSize = +obj.size; + // NOTE: If size is undefined, then numSize will be NaN + // eslint-disable-next-line no-self-compare -- NaN check + if (numSize !== numSize) throw new $TypeError(INVALID_SIZE); + var intSize = toIntegerOrInfinity(numSize); + if (intSize < 0) throw new $RangeError(INVALID_SIZE); + return new SetRecord(obj, intSize); }; -// `Array.fromAsync` method implementation -// https://github.com/tc39/proposal-array-from-async -module.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) { - var C = this; - var argumentsLength = arguments.length; - var mapfn = argumentsLength > 1 ? arguments[1] : undefined; - var thisArg = argumentsLength > 2 ? arguments[2] : undefined; - return new (getBuiltIn('Promise'))(function (resolve) { - var O = toObject(asyncItems); - if (mapfn !== undefined) mapfn = bind(mapfn, thisArg); - var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR); - var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || safeArrayIterator; - var A = isConstructor(C) ? new C() : []; - var iterator = usingAsyncIterator - ? getAsyncIterator(O, usingAsyncIterator) - : new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator))); - resolve(toArray(iterator, mapfn, A)); - }); + +/***/ }), +/* 207 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var getBuiltIn = __webpack_require__(22); + +var createSetLike = function (size) { + return { + size: size, + has: function () { + return false; + }, + keys: function () { + return { + next: function () { + return { done: true }; + } + }; + } + }; +}; + +module.exports = function (name) { + var Set = getBuiltIn('Set'); + try { + new Set()[name](createSetLike(0)); + try { + // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it + // https://github.com/tc39/proposal-set-methods/pull/88 + new Set()[name](createSetLike(-1)); + return false; + } catch (error2) { + return true; + } + } catch (error) { + return false; + } }; /***/ }), -/* 219 */ +/* 208 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var AsyncFromSyncIterator = __webpack_require__(220); -var anObject = __webpack_require__(45); -var getIterator = __webpack_require__(96); -var getIteratorDirect = __webpack_require__(182); -var getMethod = __webpack_require__(28); -var wellKnownSymbol = __webpack_require__(32); +var $ = __webpack_require__(2); +var fails = __webpack_require__(6); +var intersection = __webpack_require__(209); +var setMethodAcceptSetLike = __webpack_require__(207); -var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () { + // eslint-disable-next-line es/no-array-from, es/no-set -- testing + return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2'; +}); -module.exports = function (it, usingIterator) { - var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator; - return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it))); -}; +// `Set.prototype.intersection` method +// https://tc39.es/ecma262/#sec-set.prototype.intersection +$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, { + intersection: intersection +}); /***/ }), -/* 220 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var create = __webpack_require__(87); -var getMethod = __webpack_require__(28); -var defineBuiltIns = __webpack_require__(221); -var InternalStateModule = __webpack_require__(50); -var getBuiltIn = __webpack_require__(22); -var AsyncIteratorPrototype = __webpack_require__(222); -var createIterResultObject = __webpack_require__(223); - -var Promise = getBuiltIn('Promise'); - -var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator'; -var setInternalState = InternalStateModule.set; -var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR); +var aSet = __webpack_require__(200); +var SetHelpers = __webpack_require__(201); +var size = __webpack_require__(205); +var getSetRecord = __webpack_require__(206); +var iterateSet = __webpack_require__(203); +var iterateSimple = __webpack_require__(204); -var asyncFromSyncIteratorContinuation = function (result, resolve, reject) { - var done = result.done; - Promise.resolve(result.value).then(function (value) { - resolve(createIterResultObject(value, done)); - }, reject); -}; +var Set = SetHelpers.Set; +var add = SetHelpers.add; +var has = SetHelpers.has; -var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) { - iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR; - setInternalState(this, iteratorRecord); -}; +// `Set.prototype.intersection` method +// https://github.com/tc39/proposal-set-methods +module.exports = function intersection(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + var result = new Set(); -AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), { - next: function next() { - var state = getInternalState(this); - return new Promise(function (resolve, reject) { - var result = anObject(call(state.next, state.iterator)); - asyncFromSyncIteratorContinuation(result, resolve, reject); + if (size(O) > otherRec.size) { + iterateSimple(otherRec.getIterator(), function (e) { + if (has(O, e)) add(result, e); }); - }, - 'return': function () { - var iterator = getInternalState(this).iterator; - return new Promise(function (resolve, reject) { - var $return = getMethod(iterator, 'return'); - if ($return === undefined) return resolve(createIterResultObject(undefined, true)); - var result = anObject(call($return, iterator)); - asyncFromSyncIteratorContinuation(result, resolve, reject); + } else { + iterateSet(O, function (e) { + if (otherRec.includes(e)) add(result, e); }); } -}); -module.exports = AsyncFromSyncIterator; + return result; +}; /***/ }), -/* 221 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineBuiltIn = __webpack_require__(46); +var $ = __webpack_require__(2); +var isDisjointFrom = __webpack_require__(211); +var setMethodAcceptSetLike = __webpack_require__(207); -module.exports = function (target, src, options) { - for (var key in src) defineBuiltIn(target, key, src[key], options); - return target; -}; +// `Set.prototype.isDisjointFrom` method +// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isDisjointFrom') }, { + isDisjointFrom: isDisjointFrom +}); /***/ }), -/* 222 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var globalThis = __webpack_require__(3); -var shared = __webpack_require__(34); -var isCallable = __webpack_require__(20); -var create = __webpack_require__(87); -var getPrototypeOf = __webpack_require__(85); -var defineBuiltIn = __webpack_require__(46); -var wellKnownSymbol = __webpack_require__(32); -var IS_PURE = __webpack_require__(35); +var aSet = __webpack_require__(200); +var has = __webpack_require__(201).has; +var size = __webpack_require__(205); +var getSetRecord = __webpack_require__(206); +var iterateSet = __webpack_require__(203); +var iterateSimple = __webpack_require__(204); +var iteratorClose = __webpack_require__(98); -var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; -var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); -var AsyncIterator = globalThis.AsyncIterator; -var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype; -var AsyncIteratorPrototype, prototype; +// `Set.prototype.isDisjointFrom` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom +module.exports = function isDisjointFrom(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) <= otherRec.size) return iterateSet(O, function (e) { + if (otherRec.includes(e)) return false; + }, true) !== false; + var iterator = otherRec.getIterator(); + return iterateSimple(iterator, function (e) { + if (has(O, e)) return iteratorClose(iterator, 'normal', false); + }) !== false; +}; -if (PassedAsyncIteratorPrototype) { - AsyncIteratorPrototype = PassedAsyncIteratorPrototype; -} else if (isCallable(AsyncIterator)) { - AsyncIteratorPrototype = AsyncIterator.prototype; -} else if (shared[USE_FUNCTION_CONSTRUCTOR] || globalThis[USE_FUNCTION_CONSTRUCTOR]) { - try { - // eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax - prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')()))); - if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype; - } catch (error) { /* empty */ } -} -if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {}; -else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype); +/***/ }), +/* 212 */ +/***/ (function(module, exports, __webpack_require__) { -if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) { - defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () { - return this; - }); -} +"use strict"; -module.exports = AsyncIteratorPrototype; +var $ = __webpack_require__(2); +var isSubsetOf = __webpack_require__(213); +var setMethodAcceptSetLike = __webpack_require__(207); + +// `Set.prototype.isSubsetOf` method +// https://tc39.es/ecma262/#sec-set.prototype.issubsetof +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSubsetOf') }, { + isSubsetOf: isSubsetOf +}); /***/ }), -/* 223 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// `CreateIterResultObject` abstract operation -// https://tc39.es/ecma262/#sec-createiterresultobject -module.exports = function (value, done) { - return { value: value, done: done }; +var aSet = __webpack_require__(200); +var size = __webpack_require__(205); +var iterate = __webpack_require__(203); +var getSetRecord = __webpack_require__(206); + +// `Set.prototype.isSubsetOf` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf +module.exports = function isSubsetOf(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) > otherRec.size) return false; + return iterate(O, function (e) { + if (!otherRec.includes(e)) return false; + }, true) !== false; }; /***/ }), -/* 224 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// https://github.com/tc39/proposal-iterator-helpers -// https://github.com/tc39/proposal-array-from-async -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var isObject = __webpack_require__(19); -var doesNotExceedSafeInteger = __webpack_require__(108); -var getBuiltIn = __webpack_require__(22); -var getIteratorDirect = __webpack_require__(182); -var closeAsyncIteration = __webpack_require__(225); +var $ = __webpack_require__(2); +var isSupersetOf = __webpack_require__(215); +var setMethodAcceptSetLike = __webpack_require__(207); -var createMethod = function (TYPE) { - var IS_TO_ARRAY = TYPE === 0; - var IS_FOR_EACH = TYPE === 1; - var IS_EVERY = TYPE === 2; - var IS_SOME = TYPE === 3; - return function (object, fn, target) { - anObject(object); - var MAPPING = fn !== undefined; - if (MAPPING || !IS_TO_ARRAY) aCallable(fn); - var record = getIteratorDirect(object); - var Promise = getBuiltIn('Promise'); - var iterator = record.iterator; - var next = record.next; - var counter = 0; +// `Set.prototype.isSupersetOf` method +// https://tc39.es/ecma262/#sec-set.prototype.issupersetof +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSupersetOf') }, { + isSupersetOf: isSupersetOf +}); - return new Promise(function (resolve, reject) { - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, reject, error, reject); - }; - var loop = function () { - try { - if (MAPPING) try { - doesNotExceedSafeInteger(counter); - } catch (error5) { ifAbruptCloseAsyncIterator(error5); } - Promise.resolve(anObject(call(next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - if (IS_TO_ARRAY) { - target.length = counter; - resolve(target); - } else resolve(IS_SOME ? false : IS_EVERY || undefined); - } else { - var value = step.value; - try { - if (MAPPING) { - var result = fn(value, counter); +/***/ }), +/* 215 */ +/***/ (function(module, exports, __webpack_require__) { - var handler = function ($result) { - if (IS_FOR_EACH) { - loop(); - } else if (IS_EVERY) { - $result ? loop() : closeAsyncIteration(iterator, resolve, false, reject); - } else if (IS_TO_ARRAY) { - try { - target[counter++] = $result; - loop(); - } catch (error4) { ifAbruptCloseAsyncIterator(error4); } - } else { - $result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop(); - } - }; +"use strict"; + +var aSet = __webpack_require__(200); +var has = __webpack_require__(201).has; +var size = __webpack_require__(205); +var getSetRecord = __webpack_require__(206); +var iterateSimple = __webpack_require__(204); +var iteratorClose = __webpack_require__(98); + +// `Set.prototype.isSupersetOf` method +// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf +module.exports = function isSupersetOf(other) { + var O = aSet(this); + var otherRec = getSetRecord(other); + if (size(O) < otherRec.size) return false; + var iterator = otherRec.getIterator(); + return iterateSimple(iterator, function (e) { + if (!has(O, e)) return iteratorClose(iterator, 'normal', false); + }) !== false; +}; + + +/***/ }), +/* 216 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var symmetricDifference = __webpack_require__(217); +var setMethodAcceptSetLike = __webpack_require__(207); + +// `Set.prototype.symmetricDifference` method +// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, { + symmetricDifference: symmetricDifference +}); - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } else { - target[counter++] = value; - loop(); - } - } catch (error3) { ifAbruptCloseAsyncIterator(error3); } - } - } catch (error2) { reject(error2); } - }, reject); - } catch (error) { reject(error); } - }; - loop(); - }); - }; -}; +/***/ }), +/* 217 */ +/***/ (function(module, exports, __webpack_require__) { -module.exports = { - toArray: createMethod(0), - forEach: createMethod(1), - every: createMethod(2), - some: createMethod(3), - find: createMethod(4) +"use strict"; + +var aSet = __webpack_require__(200); +var SetHelpers = __webpack_require__(201); +var clone = __webpack_require__(202); +var getSetRecord = __webpack_require__(206); +var iterateSimple = __webpack_require__(204); + +var add = SetHelpers.add; +var has = SetHelpers.has; +var remove = SetHelpers.remove; + +// `Set.prototype.symmetricDifference` method +// https://github.com/tc39/proposal-set-methods +module.exports = function symmetricDifference(other) { + var O = aSet(this); + var keysIter = getSetRecord(other).getIterator(); + var result = clone(O); + iterateSimple(keysIter, function (e) { + if (has(O, e)) remove(result, e); + else add(result, e); + }); + return result; }; /***/ }), -/* 225 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var getBuiltIn = __webpack_require__(22); -var getMethod = __webpack_require__(28); +var $ = __webpack_require__(2); +var union = __webpack_require__(219); +var setMethodAcceptSetLike = __webpack_require__(207); -module.exports = function (iterator, method, argument, reject) { - try { - var returnMethod = getMethod(iterator, 'return'); - if (returnMethod) { - return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () { - method(argument); - }, function (error) { - reject(error); - }); - } - } catch (error2) { - return reject(error2); - } method(argument); +// `Set.prototype.union` method +// https://tc39.es/ecma262/#sec-set.prototype.union +$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, { + union: union +}); + + +/***/ }), +/* 219 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var aSet = __webpack_require__(200); +var add = __webpack_require__(201).add; +var clone = __webpack_require__(202); +var getSetRecord = __webpack_require__(206); +var iterateSimple = __webpack_require__(204); + +// `Set.prototype.union` method +// https://github.com/tc39/proposal-set-methods +module.exports = function union(other) { + var O = aSet(this); + var keysIter = getSetRecord(other).getIterator(); + var result = clone(O); + iterateSimple(keysIter, function (it) { + add(result, it); + }); + return result; }; /***/ }), -/* 226 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var $filterReject = __webpack_require__(227).filterReject; -var addToUnscopables = __webpack_require__(101); +var uncurryThis = __webpack_require__(13); +var requireObjectCoercible = __webpack_require__(15); +var toIntegerOrInfinity = __webpack_require__(60); +var toString = __webpack_require__(76); +var fails = __webpack_require__(6); -// `Array.prototype.filterReject` method -// https://github.com/tc39/proposal-array-filtering -$({ target: 'Array', proto: true, forced: true }, { - filterReject: function filterReject(callbackfn /* , thisArg */) { - return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } +var charAt = uncurryThis(''.charAt); + +var FORCED = fails(function () { + // eslint-disable-next-line es/no-string-prototype-at -- safe + return '𠮷'.at(-2) !== '\uD842'; }); -addToUnscopables('filterReject'); +// `String.prototype.at` method +// https://tc39.es/ecma262/#sec-string.prototype.at +$({ target: 'String', proto: true, forced: FORCED }, { + at: function at(index) { + var S = toString(requireObjectCoercible(this)); + var len = S.length; + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : charAt(S, k); + } +}); /***/ }), -/* 227 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(92); +var $ = __webpack_require__(2); var uncurryThis = __webpack_require__(13); -var IndexedObject = __webpack_require__(12); -var toObject = __webpack_require__(38); -var lengthOfArrayLike = __webpack_require__(62); -var arraySpeciesCreate = __webpack_require__(228); - -var push = uncurryThis([].push); +var requireObjectCoercible = __webpack_require__(15); +var toString = __webpack_require__(76); -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation -var createMethod = function (TYPE) { - var IS_MAP = TYPE === 1; - var IS_FILTER = TYPE === 2; - var IS_SOME = TYPE === 3; - var IS_EVERY = TYPE === 4; - var IS_FIND_INDEX = TYPE === 6; - var IS_FILTER_REJECT = TYPE === 7; - var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; - return function ($this, callbackfn, that, specificCreate) { - var O = toObject($this); - var self = IndexedObject(O); - var length = lengthOfArrayLike(self); - var boundFunction = bind(callbackfn, that); - var index = 0; - var create = specificCreate || arraySpeciesCreate; - var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; - var value, result; - for (;length > index; index++) if (NO_HOLES || index in self) { - value = self[index]; - result = boundFunction(value, index, O); - if (TYPE) { - if (IS_MAP) target[index] = result; // map - else if (result) switch (TYPE) { - case 3: return true; // some - case 5: return value; // find - case 6: return index; // findIndex - case 2: push(target, value); // filter - } else switch (TYPE) { - case 4: return false; // every - case 7: push(target, value); // filterReject - } - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; - }; -}; +var charCodeAt = uncurryThis(''.charCodeAt); -module.exports = { - // `Array.prototype.forEach` method - // https://tc39.es/ecma262/#sec-array.prototype.foreach - forEach: createMethod(0), - // `Array.prototype.map` method - // https://tc39.es/ecma262/#sec-array.prototype.map - map: createMethod(1), - // `Array.prototype.filter` method - // https://tc39.es/ecma262/#sec-array.prototype.filter - filter: createMethod(2), - // `Array.prototype.some` method - // https://tc39.es/ecma262/#sec-array.prototype.some - some: createMethod(3), - // `Array.prototype.every` method - // https://tc39.es/ecma262/#sec-array.prototype.every - every: createMethod(4), - // `Array.prototype.find` method - // https://tc39.es/ecma262/#sec-array.prototype.find - find: createMethod(5), - // `Array.prototype.findIndex` method - // https://tc39.es/ecma262/#sec-array.prototype.findIndex - findIndex: createMethod(6), - // `Array.prototype.filterReject` method - // https://github.com/tc39/proposal-array-filtering - filterReject: createMethod(7) -}; +// `String.prototype.isWellFormed` method +// https://tc39.es/ecma262/#sec-string.prototype.iswellformed +$({ target: 'String', proto: true }, { + isWellFormed: function isWellFormed() { + var S = toString(requireObjectCoercible(this)); + var length = S.length; + for (var i = 0; i < length; i++) { + var charCode = charCodeAt(S, i); + // single UTF-16 code unit + if ((charCode & 0xF800) !== 0xD800) continue; + // unpaired surrogate + if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) !== 0xDC00) return false; + } return true; + } +}); /***/ }), -/* 228 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var arraySpeciesConstructor = __webpack_require__(229); +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var uncurryThis = __webpack_require__(13); +var requireObjectCoercible = __webpack_require__(15); +var isCallable = __webpack_require__(20); +var isNullOrUndefined = __webpack_require__(16); +var isRegExp = __webpack_require__(223); +var toString = __webpack_require__(76); +var getMethod = __webpack_require__(28); +var getRegExpFlags = __webpack_require__(224); +var getSubstitution = __webpack_require__(225); +var wellKnownSymbol = __webpack_require__(32); +var IS_PURE = __webpack_require__(35); -// `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray, length) { - return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); -}; +var REPLACE = wellKnownSymbol('replace'); +var $TypeError = TypeError; +var indexOf = uncurryThis(''.indexOf); +var replace = uncurryThis(''.replace); +var stringSlice = uncurryThis(''.slice); +var max = Math.max; + +// `String.prototype.replaceAll` method +// https://tc39.es/ecma262/#sec-string.prototype.replaceall +$({ target: 'String', proto: true }, { + replaceAll: function replaceAll(searchValue, replaceValue) { + var O = requireObjectCoercible(this); + var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement; + var endOfLastMatch = 0; + var result = ''; + if (!isNullOrUndefined(searchValue)) { + IS_REG_EXP = isRegExp(searchValue); + if (IS_REG_EXP) { + flags = toString(requireObjectCoercible(getRegExpFlags(searchValue))); + if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes'); + } + replacer = getMethod(searchValue, REPLACE); + if (replacer) return call(replacer, searchValue, O, replaceValue); + if (IS_PURE && IS_REG_EXP) return replace(toString(O), searchValue, replaceValue); + } + string = toString(O); + searchString = toString(searchValue); + functionalReplace = isCallable(replaceValue); + if (!functionalReplace) replaceValue = toString(replaceValue); + searchLength = searchString.length; + advanceBy = max(1, searchLength); + position = indexOf(string, searchString); + while (position !== -1) { + replacement = functionalReplace + ? toString(replaceValue(searchString, position, string)) + : getSubstitution(searchString, string, position, [], undefined, replaceValue); + result += stringSlice(string, endOfLastMatch, position) + replacement; + endOfLastMatch = position + searchLength; + position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy); + } + if (endOfLastMatch < string.length) { + result += stringSlice(string, endOfLastMatch); + } + return result; + } +}); /***/ }), -/* 229 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var isArray = __webpack_require__(107); -var isConstructor = __webpack_require__(143); var isObject = __webpack_require__(19); +var classof = __webpack_require__(14); var wellKnownSymbol = __webpack_require__(32); -var SPECIES = wellKnownSymbol('species'); -var $Array = Array; +var MATCH = wellKnownSymbol('match'); -// a part of `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; - } - } return C === undefined ? $Array : C; +// `IsRegExp` abstract operation +// https://tc39.es/ecma262/#sec-isregexp +module.exports = function (it) { + var isRegExp; + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp'); }; /***/ }), -/* 230 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var $group = __webpack_require__(231); -var addToUnscopables = __webpack_require__(101); +var call = __webpack_require__(7); +var hasOwn = __webpack_require__(37); +var isPrototypeOf = __webpack_require__(23); +var regExpFlags = __webpack_require__(197); -// `Array.prototype.group` method -// https://github.com/tc39/proposal-array-grouping -$({ target: 'Array', proto: true }, { - group: function group(callbackfn /* , thisArg */) { - var thisArg = arguments.length > 1 ? arguments[1] : undefined; - return $group(this, callbackfn, thisArg); - } -}); +var RegExpPrototype = RegExp.prototype; -addToUnscopables('group'); +module.exports = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) + ? call(regExpFlags, R) : flags; +}; /***/ }), -/* 231 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(92); var uncurryThis = __webpack_require__(13); -var IndexedObject = __webpack_require__(12); var toObject = __webpack_require__(38); -var toPropertyKey = __webpack_require__(17); -var lengthOfArrayLike = __webpack_require__(62); -var objectCreate = __webpack_require__(87); -var arrayFromConstructorAndList = __webpack_require__(112); -var $Array = Array; -var push = uncurryThis([].push); +var floor = Math.floor; +var charAt = uncurryThis(''.charAt); +var replace = uncurryThis(''.replace); +var stringSlice = uncurryThis(''.slice); +// eslint-disable-next-line redos/no-vulnerable -- safe +var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; -module.exports = function ($this, callbackfn, that, specificConstructor) { - var O = toObject($this); - var self = IndexedObject(O); - var boundFunction = bind(callbackfn, that); - var target = objectCreate(null); - var length = lengthOfArrayLike(self); - var index = 0; - var Constructor, key, value; - for (;length > index; index++) { - value = self[index]; - key = toPropertyKey(boundFunction(value, index, O)); - // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys - // but since it's a `null` prototype object, we can safely use `in` - if (key in target) push(target[key], value); - else target[key] = [value]; +// `GetSubstitution` abstract operation +// https://tc39.es/ecma262/#sec-getsubstitution +module.exports = function (matched, str, position, captures, namedCaptures, replacement) { + var tailPos = position + matched.length; + var m = captures.length; + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + if (namedCaptures !== undefined) { + namedCaptures = toObject(namedCaptures); + symbols = SUBSTITUTION_SYMBOLS; } - // TODO: Remove this block from `core-js@4` - if (specificConstructor) { - Constructor = specificConstructor(O); - if (Constructor !== $Array) { - for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]); + return replace(replacement, symbols, function (match, ch) { + var capture; + switch (charAt(ch, 0)) { + case '$': return '$'; + case '&': return matched; + case '`': return stringSlice(str, 0, position); + case "'": return stringSlice(str, tailPos); + case '<': + capture = namedCaptures[stringSlice(ch, 1, -1)]; + break; + default: // \d\d? + var n = +ch; + if (n === 0) return match; + if (n > m) { + var f = floor(n / 10); + if (f === 0) return match; + if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); + return match; + } + capture = captures[n - 1]; } - } return target; + return capture === undefined ? '' : capture; + }); }; /***/ }), -/* 232 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var $group = __webpack_require__(231); -var arrayMethodIsStrict = __webpack_require__(233); -var addToUnscopables = __webpack_require__(101); - -// `Array.prototype.groupBy` method -// https://github.com/tc39/proposal-array-grouping -// https://bugs.webkit.org/show_bug.cgi?id=236541 -$({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, { - groupBy: function groupBy(callbackfn /* , thisArg */) { - var thisArg = arguments.length > 1 ? arguments[1] : undefined; - return $group(this, callbackfn, thisArg); - } -}); - -addToUnscopables('groupBy'); - - -/***/ }), -/* 233 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - +var call = __webpack_require__(7); +var uncurryThis = __webpack_require__(13); +var requireObjectCoercible = __webpack_require__(15); +var toString = __webpack_require__(76); var fails = __webpack_require__(6); -module.exports = function (METHOD_NAME, argument) { - var method = [][METHOD_NAME]; - return !!method && fails(function () { - // eslint-disable-next-line no-useless-call -- required for testing - method.call(null, argument || function () { return 1; }, 1); - }); -}; - - -/***/ }), -/* 234 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// TODO: Remove from `core-js@4` -var $ = __webpack_require__(2); -var arrayMethodIsStrict = __webpack_require__(233); -var addToUnscopables = __webpack_require__(101); -var $groupToMap = __webpack_require__(235); -var IS_PURE = __webpack_require__(35); +var $Array = Array; +var charAt = uncurryThis(''.charAt); +var charCodeAt = uncurryThis(''.charCodeAt); +var join = uncurryThis([].join); +// eslint-disable-next-line es/no-string-prototype-towellformed -- safe +var $toWellFormed = ''.toWellFormed; +var REPLACEMENT_CHARACTER = '\uFFFD'; -// `Array.prototype.groupByToMap` method -// https://github.com/tc39/proposal-array-grouping -// https://bugs.webkit.org/show_bug.cgi?id=236541 -$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, { - groupByToMap: $groupToMap +// Safari bug +var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () { + return call($toWellFormed, 1) !== '1'; }); -addToUnscopables('groupByToMap'); +// `String.prototype.toWellFormed` method +// https://tc39.es/ecma262/#sec-string.prototype.towellformed +$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, { + toWellFormed: function toWellFormed() { + var S = toString(requireObjectCoercible(this)); + if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S); + var length = S.length; + var result = $Array(length); + for (var i = 0; i < length; i++) { + var charCode = charCodeAt(S, i); + // single UTF-16 code unit + if ((charCode & 0xF800) !== 0xD800) result[i] = charAt(S, i); + // unpaired surrogate + else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER; + // surrogate pair + else { + result[i] = charAt(S, i); + result[++i] = charAt(S, i); + } + } return join(result, ''); + } +}); /***/ }), -/* 235 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(92); -var uncurryThis = __webpack_require__(13); -var IndexedObject = __webpack_require__(12); -var toObject = __webpack_require__(38); +var ArrayBufferViewCore = __webpack_require__(228); var lengthOfArrayLike = __webpack_require__(62); -var MapHelpers = __webpack_require__(132); +var toIntegerOrInfinity = __webpack_require__(60); -var Map = MapHelpers.Map; -var mapGet = MapHelpers.get; -var mapHas = MapHelpers.has; -var mapSet = MapHelpers.set; -var push = uncurryThis([].push); +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; -// `Array.prototype.groupToMap` method -// https://github.com/tc39/proposal-array-grouping -module.exports = function groupToMap(callbackfn /* , thisArg */) { - var O = toObject(this); - var self = IndexedObject(O); - var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var map = new Map(); - var length = lengthOfArrayLike(self); - var index = 0; - var key, value; - for (;length > index; index++) { - value = self[index]; - key = boundFunction(value, index, O); - if (mapHas(map, key)) push(mapGet(map, key), value); - else mapSet(map, key, [value]); - } return map; -}; +// `%TypedArray%.prototype.at` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at +exportTypedArrayMethod('at', function at(index) { + var O = aTypedArray(this); + var len = lengthOfArrayLike(O); + var relativeIndex = toIntegerOrInfinity(index); + var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; + return (k < 0 || k >= len) ? undefined : O[k]; +}); /***/ }), -/* 236 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var addToUnscopables = __webpack_require__(101); -var $groupToMap = __webpack_require__(235); -var IS_PURE = __webpack_require__(35); +var NATIVE_ARRAY_BUFFER = __webpack_require__(229); +var DESCRIPTORS = __webpack_require__(5); +var globalThis = __webpack_require__(3); +var isCallable = __webpack_require__(20); +var isObject = __webpack_require__(19); +var hasOwn = __webpack_require__(37); +var classof = __webpack_require__(77); +var tryToString = __webpack_require__(30); +var createNonEnumerableProperty = __webpack_require__(42); +var defineBuiltIn = __webpack_require__(46); +var defineBuiltInAccessor = __webpack_require__(118); +var isPrototypeOf = __webpack_require__(23); +var getPrototypeOf = __webpack_require__(85); +var setPrototypeOf = __webpack_require__(69); +var wellKnownSymbol = __webpack_require__(32); +var uid = __webpack_require__(39); +var InternalStateModule = __webpack_require__(50); -// `Array.prototype.groupToMap` method -// https://github.com/tc39/proposal-array-grouping -$({ target: 'Array', proto: true, forced: IS_PURE }, { - groupToMap: $groupToMap -}); +var enforceInternalState = InternalStateModule.enforce; +var getInternalState = InternalStateModule.get; +var Int8Array = globalThis.Int8Array; +var Int8ArrayPrototype = Int8Array && Int8Array.prototype; +var Uint8ClampedArray = globalThis.Uint8ClampedArray; +var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; +var TypedArray = Int8Array && getPrototypeOf(Int8Array); +var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype); +var ObjectPrototype = Object.prototype; +var TypeError = globalThis.TypeError; -addToUnscopables('groupToMap'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG'); +var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor'; +// Fixing native typed arrays in Opera Presto crashes the browser, see #595 +var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera'; +var TYPED_ARRAY_TAG_REQUIRED = false; +var NAME, Constructor, Prototype; +var TypedArrayConstructorsList = { + Int8Array: 1, + Uint8Array: 1, + Uint8ClampedArray: 1, + Int16Array: 2, + Uint16Array: 2, + Int32Array: 4, + Uint32Array: 4, + Float32Array: 4, + Float64Array: 8 +}; -/***/ }), -/* 237 */ -/***/ (function(module, exports, __webpack_require__) { +var BigIntArrayConstructorsList = { + BigInt64Array: 8, + BigUint64Array: 8 +}; -"use strict"; +var isView = function isView(it) { + if (!isObject(it)) return false; + var klass = classof(it); + return klass === 'DataView' + || hasOwn(TypedArrayConstructorsList, klass) + || hasOwn(BigIntArrayConstructorsList, klass); +}; -var $ = __webpack_require__(2); -var isArray = __webpack_require__(107); +var getTypedArrayConstructor = function (it) { + var proto = getPrototypeOf(it); + if (!isObject(proto)) return; + var state = getInternalState(proto); + return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto); +}; -// eslint-disable-next-line es/no-object-isfrozen -- safe -var isFrozen = Object.isFrozen; +var isTypedArray = function (it) { + if (!isObject(it)) return false; + var klass = classof(it); + return hasOwn(TypedArrayConstructorsList, klass) + || hasOwn(BigIntArrayConstructorsList, klass); +}; -var isFrozenStringArray = function (array, allowUndefined) { - if (!isFrozen || !isArray(array) || !isFrozen(array)) return false; - var index = 0; - var length = array.length; - var element; - while (index < length) { - element = array[index++]; - if (!(typeof element == 'string' || (allowUndefined && element === undefined))) { - return false; +var aTypedArray = function (it) { + if (isTypedArray(it)) return it; + throw new TypeError('Target is not a typed array'); +}; + +var aTypedArrayConstructor = function (C) { + if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C; + throw new TypeError(tryToString(C) + ' is not a typed array constructor'); +}; + +var exportTypedArrayMethod = function (KEY, property, forced, options) { + if (!DESCRIPTORS) return; + if (forced) for (var ARRAY in TypedArrayConstructorsList) { + var TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try { + delete TypedArrayConstructor.prototype[KEY]; + } catch (error) { + // old WebKit bug - some methods are non-configurable + try { + TypedArrayConstructor.prototype[KEY] = property; + } catch (error2) { /* empty */ } } - } return length !== 0; + } + if (!TypedArrayPrototype[KEY] || forced) { + defineBuiltIn(TypedArrayPrototype, KEY, forced ? property + : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options); + } }; -// `Array.isTemplateObject` method -// https://github.com/tc39/proposal-array-is-template-object -$({ target: 'Array', stat: true, sham: true, forced: true }, { - isTemplateObject: function isTemplateObject(value) { - if (!isFrozenStringArray(value, true)) return false; - var raw = value.raw; - return raw.length === value.length && isFrozenStringArray(raw, false); +var exportTypedArrayStaticMethod = function (KEY, property, forced) { + var ARRAY, TypedArrayConstructor; + if (!DESCRIPTORS) return; + if (setPrototypeOf) { + if (forced) for (ARRAY in TypedArrayConstructorsList) { + TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try { + delete TypedArrayConstructor[KEY]; + } catch (error) { /* empty */ } + } + if (!TypedArray[KEY] || forced) { + // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable + try { + return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); + } catch (error) { /* empty */ } + } else return; } -}); + for (ARRAY in TypedArrayConstructorsList) { + TypedArrayConstructor = globalThis[ARRAY]; + if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { + defineBuiltIn(TypedArrayConstructor, KEY, property); + } + } +}; +for (NAME in TypedArrayConstructorsList) { + Constructor = globalThis[NAME]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; + else NATIVE_ARRAY_BUFFER_VIEWS = false; +} -/***/ }), -/* 238 */ -/***/ (function(module, exports, __webpack_require__) { +for (NAME in BigIntArrayConstructorsList) { + Constructor = globalThis[NAME]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor; +} -"use strict"; +// WebKit bug - typed arrays constructors prototype is Object.prototype +if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) { + // eslint-disable-next-line no-shadow -- safe + TypedArray = function TypedArray() { + throw new TypeError('Incorrect invocation'); + }; + if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { + if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray); + } +} -// TODO: Remove from `core-js@4` -var DESCRIPTORS = __webpack_require__(5); -var addToUnscopables = __webpack_require__(101); -var toObject = __webpack_require__(38); -var lengthOfArrayLike = __webpack_require__(62); -var defineBuiltInAccessor = __webpack_require__(118); +if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) { + TypedArrayPrototype = TypedArray.prototype; + if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { + if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype); + } +} -// `Array.prototype.lastIndex` getter -// https://github.com/keithamus/proposal-array-last -if (DESCRIPTORS) { - defineBuiltInAccessor(Array.prototype, 'lastIndex', { +// WebKit bug - one more object in Uint8ClampedArray prototype chain +if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) { + setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype); +} + +if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) { + TYPED_ARRAY_TAG_REQUIRED = true; + defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, { configurable: true, - get: function lastIndex() { - var O = toObject(this); - var len = lengthOfArrayLike(O); - return len === 0 ? 0 : len - 1; + get: function () { + return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined; } }); - - addToUnscopables('lastIndex'); + for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) { + createNonEnumerableProperty(globalThis[NAME], TYPED_ARRAY_TAG, NAME); + } } +module.exports = { + NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS, + TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG, + aTypedArray: aTypedArray, + aTypedArrayConstructor: aTypedArrayConstructor, + exportTypedArrayMethod: exportTypedArrayMethod, + exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, + getTypedArrayConstructor: getTypedArrayConstructor, + isView: isView, + isTypedArray: isTypedArray, + TypedArray: TypedArray, + TypedArrayPrototype: TypedArrayPrototype +}; + /***/ }), -/* 239 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove from `core-js@4` -var DESCRIPTORS = __webpack_require__(5); -var addToUnscopables = __webpack_require__(101); -var toObject = __webpack_require__(38); -var lengthOfArrayLike = __webpack_require__(62); -var defineBuiltInAccessor = __webpack_require__(118); - -// `Array.prototype.lastIndex` accessor -// https://github.com/keithamus/proposal-array-last -if (DESCRIPTORS) { - defineBuiltInAccessor(Array.prototype, 'lastItem', { - configurable: true, - get: function lastItem() { - var O = toObject(this); - var len = lengthOfArrayLike(O); - return len === 0 ? undefined : O[len - 1]; - }, - set: function lastItem(value) { - var O = toObject(this); - var len = lengthOfArrayLike(O); - return O[len === 0 ? 0 : len - 1] = value; - } - }); - - addToUnscopables('lastItem'); -} +// eslint-disable-next-line es/no-typed-arrays -- safe +module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; /***/ }), -/* 240 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var addToUnscopables = __webpack_require__(101); -var uniqueBy = __webpack_require__(241); +var ArrayBufferViewCore = __webpack_require__(228); +var $findLast = __webpack_require__(103).findLast; -// `Array.prototype.uniqueBy` method -// https://github.com/tc39/proposal-array-unique -$({ target: 'Array', proto: true, forced: true }, { - uniqueBy: uniqueBy +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findLast` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast +exportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) { + return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); -addToUnscopables('uniqueBy'); + +/***/ }), +/* 231 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var ArrayBufferViewCore = __webpack_require__(228); +var $findLastIndex = __webpack_require__(103).findLastIndex; + +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findLastIndex` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex +exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) { + return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); /***/ }), -/* 241 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThis = __webpack_require__(13); -var aCallable = __webpack_require__(29); -var isNullOrUndefined = __webpack_require__(16); +var globalThis = __webpack_require__(3); +var call = __webpack_require__(7); +var ArrayBufferViewCore = __webpack_require__(228); var lengthOfArrayLike = __webpack_require__(62); -var toObject = __webpack_require__(38); -var MapHelpers = __webpack_require__(132); -var iterate = __webpack_require__(242); +var toOffset = __webpack_require__(233); +var toIndexedObject = __webpack_require__(38); +var fails = __webpack_require__(6); -var Map = MapHelpers.Map; -var mapHas = MapHelpers.has; -var mapSet = MapHelpers.set; -var push = uncurryThis([].push); +var RangeError = globalThis.RangeError; +var Int8Array = globalThis.Int8Array; +var Int8ArrayPrototype = Int8Array && Int8Array.prototype; +var $set = Int8ArrayPrototype && Int8ArrayPrototype.set; +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; -// `Array.prototype.uniqueBy` method -// https://github.com/tc39/proposal-array-unique -module.exports = function uniqueBy(resolver) { - var that = toObject(this); - var length = lengthOfArrayLike(that); - var result = []; - var map = new Map(); - var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) { - return value; - }; - var index, item, key; - for (index = 0; index < length; index++) { - item = that[index]; - key = resolverFunction(item); - if (!mapHas(map, key)) mapSet(map, key, item); - } - iterate(map, function (value) { - push(result, value); - }); - return result; -}; +var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () { + // eslint-disable-next-line es/no-typed-arrays -- required for testing + var array = new Uint8ClampedArray(2); + call($set, array, { length: 1, 0: 3 }, 1); + return array[1] !== 3; +}); + +// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other +var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () { + var array = new Int8Array(2); + array.set(1); + array.set('2', 1); + return array[0] !== 0 || array[1] !== 2; +}); + +// `%TypedArray%.prototype.set` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set +exportTypedArrayMethod('set', function set(arrayLike /* , offset */) { + aTypedArray(this); + var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1); + var src = toIndexedObject(arrayLike); + if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset); + var length = this.length; + var len = lengthOfArrayLike(src); + var index = 0; + if (len + offset > length) throw new RangeError('Wrong length'); + while (index < len) this[offset + index] = src[index++]; +}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG); /***/ }), -/* 242 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThis = __webpack_require__(13); -var iterateSimple = __webpack_require__(179); -var MapHelpers = __webpack_require__(132); +var toPositiveInteger = __webpack_require__(138); -var Map = MapHelpers.Map; -var MapPrototype = MapHelpers.proto; -var forEach = uncurryThis(MapPrototype.forEach); -var entries = uncurryThis(MapPrototype.entries); -var next = entries(new Map()).next; +var $RangeError = RangeError; -module.exports = function (map, fn, interruptible) { - return interruptible ? iterateSimple({ iterator: entries(map), next: next }, function (entry) { - return fn(entry[1], entry[0]); - }) : forEach(map, fn); +module.exports = function (it, BYTES) { + var offset = toPositiveInteger(it); + if (offset % BYTES) throw new $RangeError('Wrong offset'); + return offset; }; /***/ }), -/* 243 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// https://github.com/tc39/proposal-async-explicit-resource-management -var $ = __webpack_require__(2); -var DESCRIPTORS = __webpack_require__(5); -var getBuiltIn = __webpack_require__(22); -var aCallable = __webpack_require__(29); -var anInstance = __webpack_require__(140); -var defineBuiltIn = __webpack_require__(46); -var defineBuiltIns = __webpack_require__(221); -var defineBuiltInAccessor = __webpack_require__(118); -var wellKnownSymbol = __webpack_require__(32); -var InternalStateModule = __webpack_require__(50); -var addDisposableResource = __webpack_require__(244); - -var Promise = getBuiltIn('Promise'); -var SuppressedError = getBuiltIn('SuppressedError'); -var $ReferenceError = ReferenceError; +var arrayToReversed = __webpack_require__(110); +var ArrayBufferViewCore = __webpack_require__(228); -var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; -var ASYNC_DISPOSABLE_STACK = 'AsyncDisposableStack'; -var setInternalState = InternalStateModule.set; -var getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK); +// `%TypedArray%.prototype.toReversed` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed +exportTypedArrayMethod('toReversed', function toReversed() { + return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this)); +}); -var HINT = 'async-dispose'; -var DISPOSED = 'disposed'; -var PENDING = 'pending'; -var getPendingAsyncDisposableStackInternalState = function (stack) { - var internalState = getAsyncDisposableStackInternalState(stack); - if (internalState.state === DISPOSED) throw new $ReferenceError(ASYNC_DISPOSABLE_STACK + ' already disposed'); - return internalState; -}; +/***/ }), +/* 235 */ +/***/ (function(module, exports, __webpack_require__) { -var $AsyncDisposableStack = function AsyncDisposableStack() { - setInternalState(anInstance(this, AsyncDisposableStackPrototype), { - type: ASYNC_DISPOSABLE_STACK, - state: PENDING, - stack: [] - }); +"use strict"; - if (!DESCRIPTORS) this.disposed = false; -}; +var ArrayBufferViewCore = __webpack_require__(228); +var uncurryThis = __webpack_require__(13); +var aCallable = __webpack_require__(29); +var arrayFromConstructorAndList = __webpack_require__(112); -var AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype; +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; +var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort); -defineBuiltIns(AsyncDisposableStackPrototype, { - disposeAsync: function disposeAsync() { - var asyncDisposableStack = this; - return new Promise(function (resolve, reject) { - var internalState = getAsyncDisposableStackInternalState(asyncDisposableStack); - if (internalState.state === DISPOSED) return resolve(undefined); - internalState.state = DISPOSED; - if (!DESCRIPTORS) asyncDisposableStack.disposed = true; - var stack = internalState.stack; - var i = stack.length; - var thrown = false; - var suppressed; +// `%TypedArray%.prototype.toSorted` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted +exportTypedArrayMethod('toSorted', function toSorted(compareFn) { + if (compareFn !== undefined) aCallable(compareFn); + var O = aTypedArray(this); + var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O); + return sort(A, compareFn); +}); - var handleError = function (result) { - if (thrown) { - suppressed = new SuppressedError(result, suppressed); - } else { - thrown = true; - suppressed = result; - } - loop(); - }; +/***/ }), +/* 236 */ +/***/ (function(module, exports, __webpack_require__) { - var loop = function () { - if (i) { - var disposeMethod = stack[--i]; - stack[i] = null; - try { - Promise.resolve(disposeMethod()).then(loop, handleError); - } catch (error) { - handleError(error); - } - } else { - internalState.stack = null; - thrown ? reject(suppressed) : resolve(undefined); - } - }; +"use strict"; - loop(); - }); - }, - use: function use(value) { - addDisposableResource(getPendingAsyncDisposableStackInternalState(this), value, HINT); - return value; - }, - adopt: function adopt(value, onDispose) { - var internalState = getPendingAsyncDisposableStackInternalState(this); - aCallable(onDispose); - addDisposableResource(internalState, undefined, HINT, function () { - return onDispose(value); - }); - return value; - }, - defer: function defer(onDispose) { - var internalState = getPendingAsyncDisposableStackInternalState(this); - aCallable(onDispose); - addDisposableResource(internalState, undefined, HINT, onDispose); - }, - move: function move() { - var internalState = getPendingAsyncDisposableStackInternalState(this); - var newAsyncDisposableStack = new $AsyncDisposableStack(); - getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState.stack; - internalState.stack = []; - internalState.state = DISPOSED; - if (!DESCRIPTORS) this.disposed = true; - return newAsyncDisposableStack; - } -}); +var arrayWith = __webpack_require__(116); +var ArrayBufferViewCore = __webpack_require__(228); +var isBigIntArray = __webpack_require__(237); +var toIntegerOrInfinity = __webpack_require__(60); +var toBigInt = __webpack_require__(238); -if (DESCRIPTORS) defineBuiltInAccessor(AsyncDisposableStackPrototype, 'disposed', { - configurable: true, - get: function disposed() { - return getAsyncDisposableStackInternalState(this).state === DISPOSED; - } -}); +var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; +var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; -defineBuiltIn(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: 'disposeAsync' }); -defineBuiltIn(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true }); +var PROPER_ORDER = !!function () { + try { + // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing + new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } }); + } catch (error) { + // some early implementations, like WebKit, does not follow the final semantic + // https://github.com/tc39/proposal-change-array-by-copy/pull/86 + return error === 8; + } +}(); -$({ global: true, constructor: true }, { - AsyncDisposableStack: $AsyncDisposableStack -}); +// `%TypedArray%.prototype.with` method +// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with +exportTypedArrayMethod('with', { 'with': function (index, value) { + var O = aTypedArray(this); + var relativeIndex = toIntegerOrInfinity(index); + var actualValue = isBigIntArray(O) ? toBigInt(value) : +value; + return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue); +} }['with'], !PROPER_ORDER); /***/ }), -/* 244 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var uncurryThis = __webpack_require__(13); -var bind = __webpack_require__(92); -var anObject = __webpack_require__(45); -var aCallable = __webpack_require__(29); -var isNullOrUndefined = __webpack_require__(16); -var getMethod = __webpack_require__(28); -var wellKnownSymbol = __webpack_require__(32); +var classof = __webpack_require__(77); -var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); -var DISPOSE = wellKnownSymbol('dispose'); +module.exports = function (it) { + var klass = classof(it); + return klass === 'BigInt64Array' || klass === 'BigUint64Array'; +}; -var push = uncurryThis([].push); -// `GetDisposeMethod` abstract operation -// https://tc39.es/proposal-explicit-resource-management/#sec-getdisposemethod -var getDisposeMethod = function (V, hint) { - if (hint === 'async-dispose') { - var method = getMethod(V, ASYNC_DISPOSE); - if (method !== undefined) return method; - method = getMethod(V, DISPOSE); - if (method === undefined) return method; - return function () { - call(method, this); - }; - } return getMethod(V, DISPOSE); -}; +/***/ }), +/* 238 */ +/***/ (function(module, exports, __webpack_require__) { -// `CreateDisposableResource` abstract operation -// https://tc39.es/proposal-explicit-resource-management/#sec-createdisposableresource -var createDisposableResource = function (V, hint, method) { - if (arguments.length < 3 && !isNullOrUndefined(V)) { - method = aCallable(getDisposeMethod(anObject(V), hint)); - } +"use strict"; - return method === undefined ? function () { - return undefined; - } : bind(method, V); -}; +var toPrimitive = __webpack_require__(18); -// `AddDisposableResource` abstract operation -// https://tc39.es/proposal-explicit-resource-management/#sec-adddisposableresource -module.exports = function (disposable, V, hint, method) { - var resource; - if (arguments.length < 4) { - // When `V`` is either `null` or `undefined` and hint is `async-dispose`, - // we record that the resource was evaluated to ensure we will still perform an `Await` when resources are later disposed. - if (isNullOrUndefined(V) && hint === 'sync-dispose') return; - resource = createDisposableResource(V, hint); - } else { - resource = createDisposableResource(undefined, hint, method); - } +var $TypeError = TypeError; - push(disposable.stack, resource); +// `ToBigInt` abstract operation +// https://tc39.es/ecma262/#sec-tobigint +module.exports = function (argument) { + var prim = toPrimitive(argument, 'number'); + if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint"); + // eslint-disable-next-line es/no-bigint -- safe + return BigInt(prim); }; /***/ }), -/* 245 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var anInstance = __webpack_require__(140); +var globalThis = __webpack_require__(3); +var isPrototypeOf = __webpack_require__(23); var getPrototypeOf = __webpack_require__(85); +var setPrototypeOf = __webpack_require__(69); +var copyConstructorProperties = __webpack_require__(54); +var create = __webpack_require__(87); var createNonEnumerableProperty = __webpack_require__(42); -var hasOwn = __webpack_require__(37); +var createPropertyDescriptor = __webpack_require__(10); +var installErrorStack = __webpack_require__(80); +var normalizeStringArgument = __webpack_require__(75); var wellKnownSymbol = __webpack_require__(32); -var AsyncIteratorPrototype = __webpack_require__(222); +var fails = __webpack_require__(6); var IS_PURE = __webpack_require__(35); +var NativeSuppressedError = globalThis.SuppressedError; var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var $Error = Error; -var $TypeError = TypeError; +// https://github.com/oven-sh/bun/issues/9282 +var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3; -var AsyncIteratorConstructor = function AsyncIterator() { - anInstance(this, AsyncIteratorPrototype); - if (getPrototypeOf(this) === AsyncIteratorPrototype) throw new $TypeError('Abstract class AsyncIterator not directly constructable'); +// https://github.com/oven-sh/bun/issues/9283 +var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails(function () { + return new NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4; +}); + +var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT; + +var $SuppressedError = function SuppressedError(error, suppressed, message) { + var isInstance = isPrototypeOf(SuppressedErrorPrototype, this); + var that; + if (setPrototypeOf) { + that = PATCH && (!isInstance || getPrototypeOf(this) === SuppressedErrorPrototype) + ? new NativeSuppressedError() + : setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype); + } else { + that = isInstance ? this : create(SuppressedErrorPrototype); + createNonEnumerableProperty(that, TO_STRING_TAG, 'Error'); + } + if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message)); + installErrorStack(that, $SuppressedError, that.stack, 1); + createNonEnumerableProperty(that, 'error', error); + createNonEnumerableProperty(that, 'suppressed', suppressed); + return that; }; -AsyncIteratorConstructor.prototype = AsyncIteratorPrototype; +if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error); +else copyConstructorProperties($SuppressedError, $Error, { name: true }); -if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) { - createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator'); -} +var SuppressedErrorPrototype = $SuppressedError.prototype = PATCH ? NativeSuppressedError.prototype : create($Error.prototype, { + constructor: createPropertyDescriptor(1, $SuppressedError), + message: createPropertyDescriptor(1, ''), + name: createPropertyDescriptor(1, 'SuppressedError') +}); -if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) { - createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor); -} +if (PATCH && !IS_PURE) SuppressedErrorPrototype.constructor = $SuppressedError; -// `AsyncIterator` constructor -// https://github.com/tc39/proposal-async-iterator-helpers -$({ global: true, constructor: true, forced: IS_PURE }, { - AsyncIterator: AsyncIteratorConstructor +// `SuppressedError` constructor +// https://github.com/tc39/proposal-explicit-resource-management +$({ global: true, constructor: true, arity: 3, forced: PATCH }, { + SuppressedError: $SuppressedError }); /***/ }), -/* 246 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var indexed = __webpack_require__(247); +var fromAsync = __webpack_require__(241); +var fails = __webpack_require__(6); -// `AsyncIterator.prototype.asIndexedPairs` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, { - asIndexedPairs: indexed +var nativeFromAsync = Array.fromAsync; +// https://bugs.webkit.org/show_bug.cgi?id=271703 +var INCORRECT_CONSTRUCTURING = !nativeFromAsync || fails(function () { + var counter = 0; + nativeFromAsync.call(function () { + counter++; + return []; + }, { length: 0 }); + return counter !== 1; +}); + +// `Array.fromAsync` method +// https://github.com/tc39/proposal-array-from-async +$({ target: 'Array', stat: true, forced: INCORRECT_CONSTRUCTURING }, { + fromAsync: fromAsync }); /***/ }), -/* 247 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var map = __webpack_require__(248); +var bind = __webpack_require__(92); +var uncurryThis = __webpack_require__(13); +var toObject = __webpack_require__(38); +var isConstructor = __webpack_require__(167); +var getAsyncIterator = __webpack_require__(242); +var getIterator = __webpack_require__(96); +var getIteratorDirect = __webpack_require__(136); +var getIteratorMethod = __webpack_require__(97); +var getMethod = __webpack_require__(28); +var getBuiltIn = __webpack_require__(22); +var getBuiltInPrototypeMethod = __webpack_require__(113); +var wellKnownSymbol = __webpack_require__(32); +var AsyncFromSyncIterator = __webpack_require__(243); +var toArray = __webpack_require__(245).toArray; -var callback = function (value, counter) { - return [counter, value]; +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values')); +var arrayIteratorNext = uncurryThis(arrayIterator([]).next); + +var safeArrayIterator = function () { + return new SafeArrayIterator(this); }; -// `AsyncIterator.prototype.indexed` method -// https://github.com/tc39/proposal-iterator-helpers -module.exports = function indexed() { - return call(map, this, callback); +var SafeArrayIterator = function (O) { + this.iterator = arrayIterator(O); +}; + +SafeArrayIterator.prototype.next = function () { + return arrayIteratorNext(this.iterator); +}; + +// `Array.fromAsync` method implementation +// https://github.com/tc39/proposal-array-from-async +module.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) { + var C = this; + var argumentsLength = arguments.length; + var mapfn = argumentsLength > 1 ? arguments[1] : undefined; + var thisArg = argumentsLength > 2 ? arguments[2] : undefined; + return new (getBuiltIn('Promise'))(function (resolve) { + var O = toObject(asyncItems); + if (mapfn !== undefined) mapfn = bind(mapfn, thisArg); + var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR); + var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || safeArrayIterator; + var A = isConstructor(C) ? new C() : []; + var iterator = usingAsyncIterator + ? getAsyncIterator(O, usingAsyncIterator) + : new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator))); + resolve(toArray(iterator, mapfn, A)); + }); +}; + + +/***/ }), +/* 242 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var call = __webpack_require__(7); +var AsyncFromSyncIterator = __webpack_require__(243); +var anObject = __webpack_require__(45); +var getIterator = __webpack_require__(96); +var getIteratorDirect = __webpack_require__(136); +var getMethod = __webpack_require__(28); +var wellKnownSymbol = __webpack_require__(32); + +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); + +module.exports = function (it, usingIterator) { + var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator; + return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it))); }; /***/ }), -/* 248 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); var anObject = __webpack_require__(45); -var isObject = __webpack_require__(19); -var getIteratorDirect = __webpack_require__(182); -var createAsyncIteratorProxy = __webpack_require__(249); -var createIterResultObject = __webpack_require__(223); -var closeAsyncIteration = __webpack_require__(225); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; - var mapper = state.mapper; +var create = __webpack_require__(87); +var getMethod = __webpack_require__(28); +var defineBuiltIns = __webpack_require__(140); +var InternalStateModule = __webpack_require__(50); +var getBuiltIn = __webpack_require__(22); +var AsyncIteratorPrototype = __webpack_require__(244); +var createIterResultObject = __webpack_require__(141); - return new Promise(function (resolve, reject) { - var doneAndReject = function (error) { - state.done = true; - reject(error); - }; +var Promise = getBuiltIn('Promise'); - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); - }; +var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator'; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR); - Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - state.done = true; - resolve(createIterResultObject(undefined, true)); - } else { - var value = step.value; - try { - var result = mapper(value, state.counter++); +var asyncFromSyncIteratorContinuation = function (result, resolve, reject) { + var done = result.done; + Promise.resolve(result.value).then(function (value) { + resolve(createIterResultObject(value, done)); + }, reject); +}; - var handler = function (mapped) { - resolve(createIterResultObject(mapped, false)); - }; +var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) { + iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR; + setInternalState(this, iteratorRecord); +}; - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } catch (error2) { ifAbruptCloseAsyncIterator(error2); } - } - } catch (error) { doneAndReject(error); } - }, doneAndReject); - }); +AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), { + next: function next() { + var state = getInternalState(this); + return new Promise(function (resolve, reject) { + var result = anObject(call(state.next, state.iterator)); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + }, + 'return': function () { + var iterator = getInternalState(this).iterator; + return new Promise(function (resolve, reject) { + var $return = getMethod(iterator, 'return'); + if ($return === undefined) return resolve(createIterResultObject(undefined, true)); + var result = anObject(call($return, iterator)); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + } }); -// `AsyncIterator.prototype.map` method -// https://github.com/tc39/proposal-iterator-helpers -module.exports = function map(mapper) { - anObject(this); - aCallable(mapper); - return new AsyncIteratorProxy(getIteratorDirect(this), { - mapper: mapper - }); -}; +module.exports = AsyncFromSyncIterator; /***/ }), -/* 249 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var perform = __webpack_require__(154); -var anObject = __webpack_require__(45); +var globalThis = __webpack_require__(3); +var shared = __webpack_require__(34); +var isCallable = __webpack_require__(20); var create = __webpack_require__(87); -var createNonEnumerableProperty = __webpack_require__(42); -var defineBuiltIns = __webpack_require__(221); +var getPrototypeOf = __webpack_require__(85); +var defineBuiltIn = __webpack_require__(46); var wellKnownSymbol = __webpack_require__(32); -var InternalStateModule = __webpack_require__(50); -var getBuiltIn = __webpack_require__(22); -var getMethod = __webpack_require__(28); -var AsyncIteratorPrototype = __webpack_require__(222); -var createIterResultObject = __webpack_require__(223); -var iteratorClose = __webpack_require__(98); +var IS_PURE = __webpack_require__(35); -var Promise = getBuiltIn('Promise'); +var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var AsyncIterator = globalThis.AsyncIterator; +var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype; +var AsyncIteratorPrototype, prototype; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; -var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator'; -var setInternalState = InternalStateModule.set; +if (PassedAsyncIteratorPrototype) { + AsyncIteratorPrototype = PassedAsyncIteratorPrototype; +} else if (isCallable(AsyncIterator)) { + AsyncIteratorPrototype = AsyncIterator.prototype; +} else if (shared[USE_FUNCTION_CONSTRUCTOR] || globalThis[USE_FUNCTION_CONSTRUCTOR]) { + try { + // eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax + prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')()))); + if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype; + } catch (error) { /* empty */ } +} -var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { - var IS_GENERATOR = !IS_ITERATOR; - var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER); +if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {}; +else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype); - var getStateOrEarlyExit = function (that) { - var stateCompletion = perform(function () { - return getInternalState(that); - }); +if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) { + defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () { + return this; + }); +} - var stateError = stateCompletion.error; - var state = stateCompletion.value; +module.exports = AsyncIteratorPrototype; - if (stateError || (IS_GENERATOR && state.done)) { - return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) }; - } return { exit: false, value: state }; - }; - return defineBuiltIns(create(AsyncIteratorPrototype), { - next: function next() { - var stateCompletion = getStateOrEarlyExit(this); - var state = stateCompletion.value; - if (stateCompletion.exit) return state; - var handlerCompletion = perform(function () { - return anObject(state.nextHandler(Promise)); - }); - var handlerError = handlerCompletion.error; - var value = handlerCompletion.value; - if (handlerError) state.done = true; - return handlerError ? Promise.reject(value) : Promise.resolve(value); - }, - 'return': function () { - var stateCompletion = getStateOrEarlyExit(this); - var state = stateCompletion.value; - if (stateCompletion.exit) return state; - state.done = true; - var iterator = state.iterator; - var returnMethod, result; - var completion = perform(function () { - if (state.inner) try { - iteratorClose(state.inner.iterator, 'normal'); - } catch (error) { - return iteratorClose(iterator, 'throw', error); - } - return getMethod(iterator, 'return'); - }); - returnMethod = result = completion.value; - if (completion.error) return Promise.reject(result); - if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true)); - completion = perform(function () { - return call(returnMethod, iterator); - }); - result = completion.value; - if (completion.error) return Promise.reject(result); - return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) { - anObject(resolved); - return createIterResultObject(undefined, true); - }); - } - }); -}; +/***/ }), +/* 245 */ +/***/ (function(module, exports, __webpack_require__) { -var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true); -var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); +"use strict"; -createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper'); +// https://github.com/tc39/proposal-iterator-helpers +// https://github.com/tc39/proposal-array-from-async +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var isObject = __webpack_require__(19); +var doesNotExceedSafeInteger = __webpack_require__(108); +var getBuiltIn = __webpack_require__(22); +var getIteratorDirect = __webpack_require__(136); +var closeAsyncIteration = __webpack_require__(246); + +var createMethod = function (TYPE) { + var IS_TO_ARRAY = TYPE === 0; + var IS_FOR_EACH = TYPE === 1; + var IS_EVERY = TYPE === 2; + var IS_SOME = TYPE === 3; + return function (object, fn, target) { + anObject(object); + var MAPPING = fn !== undefined; + if (MAPPING || !IS_TO_ARRAY) aCallable(fn); + var record = getIteratorDirect(object); + var Promise = getBuiltIn('Promise'); + var iterator = record.iterator; + var next = record.next; + var counter = 0; + + return new Promise(function (resolve, reject) { + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, reject, error, reject); + }; + + var loop = function () { + try { + if (MAPPING) try { + doesNotExceedSafeInteger(counter); + } catch (error5) { ifAbruptCloseAsyncIterator(error5); } + Promise.resolve(anObject(call(next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + if (IS_TO_ARRAY) { + target.length = counter; + resolve(target); + } else resolve(IS_SOME ? false : IS_EVERY || undefined); + } else { + var value = step.value; + try { + if (MAPPING) { + var result = fn(value, counter); + + var handler = function ($result) { + if (IS_FOR_EACH) { + loop(); + } else if (IS_EVERY) { + $result ? loop() : closeAsyncIteration(iterator, resolve, false, reject); + } else if (IS_TO_ARRAY) { + try { + target[counter++] = $result; + loop(); + } catch (error4) { ifAbruptCloseAsyncIterator(error4); } + } else { + $result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop(); + } + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } else { + target[counter++] = value; + loop(); + } + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { reject(error2); } + }, reject); + } catch (error) { reject(error); } + }; -module.exports = function (nextHandler, IS_ITERATOR) { - var AsyncIteratorProxy = function AsyncIterator(record, state) { - if (state) { - state.iterator = record.iterator; - state.next = record.next; - } else state = record; - state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; - state.nextHandler = nextHandler; - state.counter = 0; - state.done = false; - setInternalState(this, state); + loop(); + }); }; +}; - AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype; - - return AsyncIteratorProxy; +module.exports = { + toArray: createMethod(0), + forEach: createMethod(1), + every: createMethod(2), + some: createMethod(3), + find: createMethod(4) }; /***/ }), -/* 250 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// https://github.com/tc39/proposal-async-explicit-resource-management var call = __webpack_require__(7); -var defineBuiltIn = __webpack_require__(46); var getBuiltIn = __webpack_require__(22); var getMethod = __webpack_require__(28); -var hasOwn = __webpack_require__(37); -var wellKnownSymbol = __webpack_require__(32); -var AsyncIteratorPrototype = __webpack_require__(222); - -var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); -var Promise = getBuiltIn('Promise'); - -if (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) { - defineBuiltIn(AsyncIteratorPrototype, ASYNC_DISPOSE, function () { - var O = this; - return new Promise(function (resolve, reject) { - var $return = getMethod(O, 'return'); - if ($return) { - Promise.resolve(call($return, O)).then(function () { - resolve(undefined); - }, reject); - } else resolve(undefined); - }); - }); -} - - -/***/ }), -/* 251 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var notANaN = __webpack_require__(252); -var toPositiveInteger = __webpack_require__(210); -var createAsyncIteratorProxy = __webpack_require__(249); -var createIterResultObject = __webpack_require__(223); -var IS_PURE = __webpack_require__(35); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - - return new Promise(function (resolve, reject) { - var doneAndReject = function (error) { - state.done = true; - reject(error); - }; - - var loop = function () { - try { - Promise.resolve(anObject(call(state.next, state.iterator))).then(function (step) { - try { - if (anObject(step).done) { - state.done = true; - resolve(createIterResultObject(undefined, true)); - } else if (state.remaining) { - state.remaining--; - loop(); - } else resolve(createIterResultObject(step.value, false)); - } catch (err) { doneAndReject(err); } - }, doneAndReject); - } catch (error) { doneAndReject(error); } - }; - - loop(); - }); -}); - -// `AsyncIterator.prototype.drop` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { - drop: function drop(limit) { - anObject(this); - var remaining = toPositiveInteger(notANaN(+limit)); - return new AsyncIteratorProxy(getIteratorDirect(this), { - remaining: remaining - }); - } -}); - - -/***/ }), -/* 252 */ -/***/ (function(module, exports, __webpack_require__) { -"use strict"; - -var $RangeError = RangeError; - -module.exports = function (it) { - // eslint-disable-next-line no-self-compare -- NaN check - if (it === it) return it; - throw new $RangeError('NaN is not allowed'); +module.exports = function (iterator, method, argument, reject) { + try { + var returnMethod = getMethod(iterator, 'return'); + if (returnMethod) { + return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () { + method(argument); + }, function (error) { + reject(error); + }); + } + } catch (error2) { + return reject(error2); + } method(argument); }; /***/ }), -/* 253 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var $every = __webpack_require__(224).every; +var $filterReject = __webpack_require__(248).filterReject; +var addToUnscopables = __webpack_require__(101); -// `AsyncIterator.prototype.every` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - every: function every(predicate) { - return $every(this, predicate); +// `Array.prototype.filterReject` method +// https://github.com/tc39/proposal-array-filtering +$({ target: 'Array', proto: true, forced: true }, { + filterReject: function filterReject(callbackfn /* , thisArg */) { + return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); +addToUnscopables('filterReject'); + /***/ }), -/* 254 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var isObject = __webpack_require__(19); -var getIteratorDirect = __webpack_require__(182); -var createAsyncIteratorProxy = __webpack_require__(249); -var createIterResultObject = __webpack_require__(223); -var closeAsyncIteration = __webpack_require__(225); -var IS_PURE = __webpack_require__(35); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; - var predicate = state.predicate; - - return new Promise(function (resolve, reject) { - var doneAndReject = function (error) { - state.done = true; - reject(error); - }; - - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); - }; - - var loop = function () { - try { - Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - state.done = true; - resolve(createIterResultObject(undefined, true)); - } else { - var value = step.value; - try { - var result = predicate(value, state.counter++); - - var handler = function (selected) { - selected ? resolve(createIterResultObject(value, false)) : loop(); - }; +var bind = __webpack_require__(92); +var uncurryThis = __webpack_require__(13); +var IndexedObject = __webpack_require__(12); +var toObject = __webpack_require__(38); +var lengthOfArrayLike = __webpack_require__(62); +var arraySpeciesCreate = __webpack_require__(249); - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } catch (error3) { ifAbruptCloseAsyncIterator(error3); } - } - } catch (error2) { doneAndReject(error2); } - }, doneAndReject); - } catch (error) { doneAndReject(error); } - }; +var push = uncurryThis([].push); - loop(); - }); -}); +// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation +var createMethod = function (TYPE) { + var IS_MAP = TYPE === 1; + var IS_FILTER = TYPE === 2; + var IS_SOME = TYPE === 3; + var IS_EVERY = TYPE === 4; + var IS_FIND_INDEX = TYPE === 6; + var IS_FILTER_REJECT = TYPE === 7; + var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject($this); + var self = IndexedObject(O); + var length = lengthOfArrayLike(self); + var boundFunction = bind(callbackfn, that); + var index = 0; + var create = specificCreate || arraySpeciesCreate; + var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; + var value, result; + for (;length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: return true; // some + case 5: return value; // find + case 6: return index; // findIndex + case 2: push(target, value); // filter + } else switch (TYPE) { + case 4: return false; // every + case 7: push(target, value); // filterReject + } + } + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; +}; -// `AsyncIterator.prototype.filter` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { - filter: function filter(predicate) { - anObject(this); - aCallable(predicate); - return new AsyncIteratorProxy(getIteratorDirect(this), { - predicate: predicate - }); - } -}); +module.exports = { + // `Array.prototype.forEach` method + // https://tc39.es/ecma262/#sec-array.prototype.foreach + forEach: createMethod(0), + // `Array.prototype.map` method + // https://tc39.es/ecma262/#sec-array.prototype.map + map: createMethod(1), + // `Array.prototype.filter` method + // https://tc39.es/ecma262/#sec-array.prototype.filter + filter: createMethod(2), + // `Array.prototype.some` method + // https://tc39.es/ecma262/#sec-array.prototype.some + some: createMethod(3), + // `Array.prototype.every` method + // https://tc39.es/ecma262/#sec-array.prototype.every + every: createMethod(4), + // `Array.prototype.find` method + // https://tc39.es/ecma262/#sec-array.prototype.find + find: createMethod(5), + // `Array.prototype.findIndex` method + // https://tc39.es/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod(6), + // `Array.prototype.filterReject` method + // https://github.com/tc39/proposal-array-filtering + filterReject: createMethod(7) +}; /***/ }), -/* 255 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var $find = __webpack_require__(224).find; +var arraySpeciesConstructor = __webpack_require__(250); -// `AsyncIterator.prototype.find` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - find: function find(predicate) { - return $find(this, predicate); - } -}); +// `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +module.exports = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); +}; /***/ }), -/* 256 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); +var isArray = __webpack_require__(107); +var isConstructor = __webpack_require__(167); var isObject = __webpack_require__(19); -var getIteratorDirect = __webpack_require__(182); -var createAsyncIteratorProxy = __webpack_require__(249); -var createIterResultObject = __webpack_require__(223); -var getAsyncIteratorFlattenable = __webpack_require__(257); -var closeAsyncIteration = __webpack_require__(225); -var IS_PURE = __webpack_require__(35); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; - var mapper = state.mapper; - - return new Promise(function (resolve, reject) { - var doneAndReject = function (error) { - state.done = true; - reject(error); - }; +var wellKnownSymbol = __webpack_require__(32); - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); - }; +var SPECIES = wellKnownSymbol('species'); +var $Array = Array; - var outerLoop = function () { - try { - Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - state.done = true; - resolve(createIterResultObject(undefined, true)); - } else { - var value = step.value; - try { - var result = mapper(value, state.counter++); +// a part of `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +module.exports = function (originalArray) { + var C; + if (isArray(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; + else if (isObject(C)) { + C = C[SPECIES]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; +}; - var handler = function (mapped) { - try { - state.inner = getAsyncIteratorFlattenable(mapped); - innerLoop(); - } catch (error4) { ifAbruptCloseAsyncIterator(error4); } - }; - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } catch (error3) { ifAbruptCloseAsyncIterator(error3); } - } - } catch (error2) { doneAndReject(error2); } - }, doneAndReject); - } catch (error) { doneAndReject(error); } - }; +/***/ }), +/* 251 */ +/***/ (function(module, exports, __webpack_require__) { - var innerLoop = function () { - var inner = state.inner; - if (inner) { - try { - Promise.resolve(anObject(call(inner.next, inner.iterator))).then(function (result) { - try { - if (anObject(result).done) { - state.inner = null; - outerLoop(); - } else resolve(createIterResultObject(result.value, false)); - } catch (error1) { ifAbruptCloseAsyncIterator(error1); } - }, ifAbruptCloseAsyncIterator); - } catch (error) { ifAbruptCloseAsyncIterator(error); } - } else outerLoop(); - }; +"use strict"; - innerLoop(); - }); -}); +var $ = __webpack_require__(2); +var $group = __webpack_require__(252); +var addToUnscopables = __webpack_require__(101); -// `AsyncIterator.prototype.flaMap` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { - flatMap: function flatMap(mapper) { - anObject(this); - aCallable(mapper); - return new AsyncIteratorProxy(getIteratorDirect(this), { - mapper: mapper, - inner: null - }); +// `Array.prototype.group` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Array', proto: true }, { + group: function group(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $group(this, callbackfn, thisArg); } }); +addToUnscopables('group'); + /***/ }), -/* 257 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var isCallable = __webpack_require__(20); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var getIteratorMethod = __webpack_require__(97); -var getMethod = __webpack_require__(28); -var wellKnownSymbol = __webpack_require__(32); -var AsyncFromSyncIterator = __webpack_require__(220); +var bind = __webpack_require__(92); +var uncurryThis = __webpack_require__(13); +var IndexedObject = __webpack_require__(12); +var toObject = __webpack_require__(38); +var toPropertyKey = __webpack_require__(17); +var lengthOfArrayLike = __webpack_require__(62); +var objectCreate = __webpack_require__(87); +var arrayFromConstructorAndList = __webpack_require__(112); -var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); +var $Array = Array; +var push = uncurryThis([].push); -module.exports = function (obj) { - var object = anObject(obj); - var alreadyAsync = true; - var method = getMethod(object, ASYNC_ITERATOR); - var iterator; - if (!isCallable(method)) { - method = getIteratorMethod(object); - alreadyAsync = false; - } - if (method !== undefined) { - iterator = call(method, object); - } else { - iterator = object; - alreadyAsync = true; +module.exports = function ($this, callbackfn, that, specificConstructor) { + var O = toObject($this); + var self = IndexedObject(O); + var boundFunction = bind(callbackfn, that); + var target = objectCreate(null); + var length = lengthOfArrayLike(self); + var index = 0; + var Constructor, key, value; + for (;length > index; index++) { + value = self[index]; + key = toPropertyKey(boundFunction(value, index, O)); + // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys + // but since it's a `null` prototype object, we can safely use `in` + if (key in target) push(target[key], value); + else target[key] = [value]; } - anObject(iterator); - return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator))); + // TODO: Remove this block from `core-js@4` + if (specificConstructor) { + Constructor = specificConstructor(O); + if (Constructor !== $Array) { + for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]); + } + } return target; }; /***/ }), -/* 258 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var $forEach = __webpack_require__(224).forEach; +var $group = __webpack_require__(252); +var arrayMethodIsStrict = __webpack_require__(254); +var addToUnscopables = __webpack_require__(101); -// `AsyncIterator.prototype.forEach` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - forEach: function forEach(fn) { - return $forEach(this, fn); +// `Array.prototype.groupBy` method +// https://github.com/tc39/proposal-array-grouping +// https://bugs.webkit.org/show_bug.cgi?id=236541 +$({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, { + groupBy: function groupBy(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $group(this, callbackfn, thisArg); } }); +addToUnscopables('groupBy'); + /***/ }), -/* 259 */ +/* 254 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var fails = __webpack_require__(6); + +module.exports = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !!method && fails(function () { + // eslint-disable-next-line no-useless-call -- required for testing + method.call(null, argument || function () { return 1; }, 1); + }); +}; + + +/***/ }), +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var toObject = __webpack_require__(38); -var isPrototypeOf = __webpack_require__(23); -var getAsyncIteratorFlattenable = __webpack_require__(257); -var AsyncIteratorPrototype = __webpack_require__(222); -var WrapAsyncIterator = __webpack_require__(260); +var arrayMethodIsStrict = __webpack_require__(254); +var addToUnscopables = __webpack_require__(101); +var $groupToMap = __webpack_require__(256); var IS_PURE = __webpack_require__(35); -// `AsyncIterator.from` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', stat: true, forced: IS_PURE }, { - from: function from(O) { - var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O); - return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator) - ? iteratorRecord.iterator - : new WrapAsyncIterator(iteratorRecord); - } +// `Array.prototype.groupByToMap` method +// https://github.com/tc39/proposal-array-grouping +// https://bugs.webkit.org/show_bug.cgi?id=236541 +$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, { + groupByToMap: $groupToMap }); +addToUnscopables('groupByToMap'); + /***/ }), -/* 260 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var createAsyncIteratorProxy = __webpack_require__(249); +var bind = __webpack_require__(92); +var uncurryThis = __webpack_require__(13); +var IndexedObject = __webpack_require__(12); +var toObject = __webpack_require__(38); +var lengthOfArrayLike = __webpack_require__(62); +var MapHelpers = __webpack_require__(157); -module.exports = createAsyncIteratorProxy(function () { - return call(this.next, this.iterator); -}, true); +var Map = MapHelpers.Map; +var mapGet = MapHelpers.get; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; +var push = uncurryThis([].push); + +// `Array.prototype.groupToMap` method +// https://github.com/tc39/proposal-array-grouping +module.exports = function groupToMap(callbackfn /* , thisArg */) { + var O = toObject(this); + var self = IndexedObject(O); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var map = new Map(); + var length = lengthOfArrayLike(self); + var index = 0; + var key, value; + for (;length > index; index++) { + value = self[index]; + key = boundFunction(value, index, O); + if (mapHas(map, key)) push(mapGet(map, key), value); + else mapSet(map, key, [value]); + } return map; +}; /***/ }), -/* 261 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var indexed = __webpack_require__(247); +var addToUnscopables = __webpack_require__(101); +var $groupToMap = __webpack_require__(256); +var IS_PURE = __webpack_require__(35); -// `AsyncIterator.prototype.indexed` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - indexed: indexed +// `Array.prototype.groupToMap` method +// https://github.com/tc39/proposal-array-grouping +$({ target: 'Array', proto: true, forced: IS_PURE }, { + groupToMap: $groupToMap }); +addToUnscopables('groupToMap'); + /***/ }), -/* 262 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var map = __webpack_require__(248); -var IS_PURE = __webpack_require__(35); +var isArray = __webpack_require__(107); -// `AsyncIterator.prototype.map` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { - map: map -}); +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = Object.isFrozen; + +var isFrozenStringArray = function (array, allowUndefined) { + if (!isFrozen || !isArray(array) || !isFrozen(array)) return false; + var index = 0; + var length = array.length; + var element; + while (index < length) { + element = array[index++]; + if (!(typeof element == 'string' || (allowUndefined && element === undefined))) { + return false; + } + } return length !== 0; +}; +// `Array.isTemplateObject` method +// https://github.com/tc39/proposal-array-is-template-object +$({ target: 'Array', stat: true, sham: true, forced: true }, { + isTemplateObject: function isTemplateObject(value) { + if (!isFrozenStringArray(value, true)) return false; + var raw = value.raw; + return raw.length === value.length && isFrozenStringArray(raw, false); + } +}); /***/ }), -/* 263 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var isObject = __webpack_require__(19); -var getBuiltIn = __webpack_require__(22); -var getIteratorDirect = __webpack_require__(182); -var closeAsyncIteration = __webpack_require__(225); +// TODO: Remove from `core-js@4` +var DESCRIPTORS = __webpack_require__(5); +var addToUnscopables = __webpack_require__(101); +var toObject = __webpack_require__(38); +var lengthOfArrayLike = __webpack_require__(62); +var defineBuiltInAccessor = __webpack_require__(118); -var Promise = getBuiltIn('Promise'); -var $TypeError = TypeError; +// `Array.prototype.lastIndex` getter +// https://github.com/keithamus/proposal-array-last +if (DESCRIPTORS) { + defineBuiltInAccessor(Array.prototype, 'lastIndex', { + configurable: true, + get: function lastIndex() { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return len === 0 ? 0 : len - 1; + } + }); -// `AsyncIterator.prototype.reduce` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - reduce: function reduce(reducer /* , initialValue */) { - anObject(this); - aCallable(reducer); - var record = getIteratorDirect(this); - var iterator = record.iterator; - var next = record.next; - var noInitial = arguments.length < 2; - var accumulator = noInitial ? undefined : arguments[1]; - var counter = 0; + addToUnscopables('lastIndex'); +} - return new Promise(function (resolve, reject) { - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, reject, error, reject); - }; - var loop = function () { - try { - Promise.resolve(anObject(call(next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - noInitial ? reject(new $TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator); - } else { - var value = step.value; - if (noInitial) { - noInitial = false; - accumulator = value; - loop(); - } else try { - var result = reducer(accumulator, value, counter); +/***/ }), +/* 260 */ +/***/ (function(module, exports, __webpack_require__) { - var handler = function ($result) { - accumulator = $result; - loop(); - }; +"use strict"; - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } catch (error3) { ifAbruptCloseAsyncIterator(error3); } - } - counter++; - } catch (error2) { reject(error2); } - }, reject); - } catch (error) { reject(error); } - }; +// TODO: Remove from `core-js@4` +var DESCRIPTORS = __webpack_require__(5); +var addToUnscopables = __webpack_require__(101); +var toObject = __webpack_require__(38); +var lengthOfArrayLike = __webpack_require__(62); +var defineBuiltInAccessor = __webpack_require__(118); - loop(); - }); - } -}); +// `Array.prototype.lastIndex` accessor +// https://github.com/keithamus/proposal-array-last +if (DESCRIPTORS) { + defineBuiltInAccessor(Array.prototype, 'lastItem', { + configurable: true, + get: function lastItem() { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return len === 0 ? undefined : O[len - 1]; + }, + set: function lastItem(value) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + return O[len === 0 ? 0 : len - 1] = value; + } + }); + + addToUnscopables('lastItem'); +} /***/ }), -/* 264 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var $some = __webpack_require__(224).some; +var addToUnscopables = __webpack_require__(101); +var uniqueBy = __webpack_require__(262); -// `AsyncIterator.prototype.some` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - some: function some(predicate) { - return $some(this, predicate); - } +// `Array.prototype.uniqueBy` method +// https://github.com/tc39/proposal-array-unique +$({ target: 'Array', proto: true, forced: true }, { + uniqueBy: uniqueBy }); +addToUnscopables('uniqueBy'); + /***/ }), -/* 265 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var notANaN = __webpack_require__(252); -var toPositiveInteger = __webpack_require__(210); -var createAsyncIteratorProxy = __webpack_require__(249); -var createIterResultObject = __webpack_require__(223); -var IS_PURE = __webpack_require__(35); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; - var returnMethod; +var uncurryThis = __webpack_require__(13); +var aCallable = __webpack_require__(29); +var isNullOrUndefined = __webpack_require__(16); +var lengthOfArrayLike = __webpack_require__(62); +var toObject = __webpack_require__(38); +var MapHelpers = __webpack_require__(157); +var iterate = __webpack_require__(263); - if (!state.remaining--) { - var resultDone = createIterResultObject(undefined, true); - state.done = true; - returnMethod = iterator['return']; - if (returnMethod !== undefined) { - return Promise.resolve(call(returnMethod, iterator, undefined)).then(function () { - return resultDone; - }); - } - return resultDone; - } return Promise.resolve(call(state.next, iterator)).then(function (step) { - if (anObject(step).done) { - state.done = true; - return createIterResultObject(undefined, true); - } return createIterResultObject(step.value, false); - }).then(null, function (error) { - state.done = true; - throw error; - }); -}); +var Map = MapHelpers.Map; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; +var push = uncurryThis([].push); -// `AsyncIterator.prototype.take` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { - take: function take(limit) { - anObject(this); - var remaining = toPositiveInteger(notANaN(+limit)); - return new AsyncIteratorProxy(getIteratorDirect(this), { - remaining: remaining - }); +// `Array.prototype.uniqueBy` method +// https://github.com/tc39/proposal-array-unique +module.exports = function uniqueBy(resolver) { + var that = toObject(this); + var length = lengthOfArrayLike(that); + var result = []; + var map = new Map(); + var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) { + return value; + }; + var index, item, key; + for (index = 0; index < length; index++) { + item = that[index]; + key = resolverFunction(item); + if (!mapHas(map, key)) mapSet(map, key, item); } -}); + iterate(map, function (value) { + push(result, value); + }); + return result; +}; /***/ }), -/* 266 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var $toArray = __webpack_require__(224).toArray; +var uncurryThis = __webpack_require__(13); +var iterateSimple = __webpack_require__(204); +var MapHelpers = __webpack_require__(157); -// `AsyncIterator.prototype.toArray` method -// https://github.com/tc39/proposal-async-iterator-helpers -$({ target: 'AsyncIterator', proto: true, real: true }, { - toArray: function toArray() { - return $toArray(this, undefined, []); - } -}); +var Map = MapHelpers.Map; +var MapPrototype = MapHelpers.proto; +var forEach = uncurryThis(MapPrototype.forEach); +var entries = uncurryThis(MapPrototype.entries); +var next = entries(new Map()).next; + +module.exports = function (map, fn, interruptible) { + return interruptible ? iterateSimple({ iterator: entries(map), next: next }, function (entry) { + return fn(entry[1], entry[0]); + }) : forEach(map, fn); +}; /***/ }), -/* 267 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* eslint-disable es/no-bigint -- safe */ +// https://github.com/tc39/proposal-async-explicit-resource-management var $ = __webpack_require__(2); -var NumericRangeIterator = __webpack_require__(268); +var DESCRIPTORS = __webpack_require__(5); +var getBuiltIn = __webpack_require__(22); +var aCallable = __webpack_require__(29); +var anInstance = __webpack_require__(132); +var defineBuiltIn = __webpack_require__(46); +var defineBuiltIns = __webpack_require__(140); +var defineBuiltInAccessor = __webpack_require__(118); +var wellKnownSymbol = __webpack_require__(32); +var InternalStateModule = __webpack_require__(50); +var addDisposableResource = __webpack_require__(265); -// `BigInt.range` method -// https://github.com/tc39/proposal-Number.range -// TODO: Remove from `core-js@4` -if (typeof BigInt == 'function') { - $({ target: 'BigInt', stat: true, forced: true }, { - range: function range(start, end, option) { - return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); - } - }); -} +var Promise = getBuiltIn('Promise'); +var SuppressedError = getBuiltIn('SuppressedError'); +var $ReferenceError = ReferenceError; +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -/***/ }), -/* 268 */ -/***/ (function(module, exports, __webpack_require__) { +var ASYNC_DISPOSABLE_STACK = 'AsyncDisposableStack'; +var setInternalState = InternalStateModule.set; +var getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK); -"use strict"; +var HINT = 'async-dispose'; +var DISPOSED = 'disposed'; +var PENDING = 'pending'; -var InternalStateModule = __webpack_require__(50); -var createIteratorConstructor = __webpack_require__(269); -var createIterResultObject = __webpack_require__(223); -var isNullOrUndefined = __webpack_require__(16); -var isObject = __webpack_require__(19); -var defineBuiltInAccessor = __webpack_require__(118); -var DESCRIPTORS = __webpack_require__(5); +var getPendingAsyncDisposableStackInternalState = function (stack) { + var internalState = getAsyncDisposableStackInternalState(stack); + if (internalState.state === DISPOSED) throw new $ReferenceError(ASYNC_DISPOSABLE_STACK + ' already disposed'); + return internalState; +}; -var INCORRECT_RANGE = 'Incorrect Iterator.range arguments'; -var NUMERIC_RANGE_ITERATOR = 'NumericRangeIterator'; +var $AsyncDisposableStack = function AsyncDisposableStack() { + setInternalState(anInstance(this, AsyncDisposableStackPrototype), { + type: ASYNC_DISPOSABLE_STACK, + state: PENDING, + stack: [] + }); -var setInternalState = InternalStateModule.set; -var getInternalState = InternalStateModule.getterFor(NUMERIC_RANGE_ITERATOR); + if (!DESCRIPTORS) this.disposed = false; +}; -var $RangeError = RangeError; -var $TypeError = TypeError; +var AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype; -var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) { - // TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4` - if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) { - throw new $TypeError(INCORRECT_RANGE); - } - if (start === Infinity || start === -Infinity) { - throw new $RangeError(INCORRECT_RANGE); - } - var ifIncrease = end > start; - var inclusiveEnd = false; - var step; - if (option === undefined) { - step = undefined; - } else if (isObject(option)) { - step = option.step; - inclusiveEnd = !!option.inclusive; - } else if (typeof option == type) { - step = option; - } else { - throw new $TypeError(INCORRECT_RANGE); - } - if (isNullOrUndefined(step)) { - step = ifIncrease ? one : -one; - } - if (typeof step != type) { - throw new $TypeError(INCORRECT_RANGE); - } - if (step === Infinity || step === -Infinity || (step === zero && start !== end)) { - throw new $RangeError(INCORRECT_RANGE); - } - // eslint-disable-next-line no-self-compare -- NaN check - var hitsEnd = start !== start || end !== end || step !== step || (end > start) !== (step > zero); - setInternalState(this, { - type: NUMERIC_RANGE_ITERATOR, - start: start, - end: end, - step: step, - inclusive: inclusiveEnd, - hitsEnd: hitsEnd, - currentCount: zero, - zero: zero - }); - if (!DESCRIPTORS) { - this.start = start; - this.end = end; - this.step = step; - this.inclusive = inclusiveEnd; - } -}, NUMERIC_RANGE_ITERATOR, function next() { - var state = getInternalState(this); - if (state.hitsEnd) return createIterResultObject(undefined, true); - var start = state.start; - var end = state.end; - var step = state.step; - var currentYieldingValue = start + (step * state.currentCount++); - if (currentYieldingValue === end) state.hitsEnd = true; - var inclusiveEnd = state.inclusive; - var endCondition; - if (end > start) { - endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end; - } else { - endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue; +defineBuiltIns(AsyncDisposableStackPrototype, { + disposeAsync: function disposeAsync() { + var asyncDisposableStack = this; + return new Promise(function (resolve, reject) { + var internalState = getAsyncDisposableStackInternalState(asyncDisposableStack); + if (internalState.state === DISPOSED) return resolve(undefined); + internalState.state = DISPOSED; + if (!DESCRIPTORS) asyncDisposableStack.disposed = true; + var stack = internalState.stack; + var i = stack.length; + var thrown = false; + var suppressed; + + var handleError = function (result) { + if (thrown) { + suppressed = new SuppressedError(result, suppressed); + } else { + thrown = true; + suppressed = result; + } + + loop(); + }; + + var loop = function () { + if (i) { + var disposeMethod = stack[--i]; + stack[i] = null; + try { + Promise.resolve(disposeMethod()).then(loop, handleError); + } catch (error) { + handleError(error); + } + } else { + internalState.stack = null; + thrown ? reject(suppressed) : resolve(undefined); + } + }; + + loop(); + }); + }, + use: function use(value) { + addDisposableResource(getPendingAsyncDisposableStackInternalState(this), value, HINT); + return value; + }, + adopt: function adopt(value, onDispose) { + var internalState = getPendingAsyncDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, function () { + return onDispose(value); + }); + return value; + }, + defer: function defer(onDispose) { + var internalState = getPendingAsyncDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, onDispose); + }, + move: function move() { + var internalState = getPendingAsyncDisposableStackInternalState(this); + var newAsyncDisposableStack = new $AsyncDisposableStack(); + getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState.stack; + internalState.stack = []; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + return newAsyncDisposableStack; } - if (endCondition) { - state.hitsEnd = true; - return createIterResultObject(undefined, true); - } return createIterResultObject(currentYieldingValue, false); }); -var addGetter = function (key) { - defineBuiltInAccessor($RangeIterator.prototype, key, { - get: function () { - return getInternalState(this)[key]; - }, - set: function () { /* empty */ }, - configurable: true, - enumerable: false - }); -}; +if (DESCRIPTORS) defineBuiltInAccessor(AsyncDisposableStackPrototype, 'disposed', { + configurable: true, + get: function disposed() { + return getAsyncDisposableStackInternalState(this).state === DISPOSED; + } +}); -if (DESCRIPTORS) { - addGetter('start'); - addGetter('end'); - addGetter('inclusive'); - addGetter('step'); -} +defineBuiltIn(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: 'disposeAsync' }); +defineBuiltIn(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true }); -module.exports = $RangeIterator; +$({ global: true, constructor: true }, { + AsyncDisposableStack: $AsyncDisposableStack +}); /***/ }), -/* 269 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var IteratorPrototype = __webpack_require__(270).IteratorPrototype; -var create = __webpack_require__(87); -var createPropertyDescriptor = __webpack_require__(10); -var setToStringTag = __webpack_require__(138); -var Iterators = __webpack_require__(95); +var call = __webpack_require__(7); +var uncurryThis = __webpack_require__(13); +var bind = __webpack_require__(92); +var anObject = __webpack_require__(45); +var aCallable = __webpack_require__(29); +var isNullOrUndefined = __webpack_require__(16); +var getMethod = __webpack_require__(28); +var wellKnownSymbol = __webpack_require__(32); -var returnThis = function () { return this; }; +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var DISPOSE = wellKnownSymbol('dispose'); -module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { - var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); - setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); - Iterators[TO_STRING_TAG] = returnThis; - return IteratorConstructor; +var push = uncurryThis([].push); + +// `GetDisposeMethod` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-getdisposemethod +var getDisposeMethod = function (V, hint) { + if (hint === 'async-dispose') { + var method = getMethod(V, ASYNC_DISPOSE); + if (method !== undefined) return method; + method = getMethod(V, DISPOSE); + if (method === undefined) return method; + return function () { + call(method, this); + }; + } return getMethod(V, DISPOSE); +}; + +// `CreateDisposableResource` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-createdisposableresource +var createDisposableResource = function (V, hint, method) { + if (arguments.length < 3 && !isNullOrUndefined(V)) { + method = aCallable(getDisposeMethod(anObject(V), hint)); + } + + return method === undefined ? function () { + return undefined; + } : bind(method, V); +}; + +// `AddDisposableResource` abstract operation +// https://tc39.es/proposal-explicit-resource-management/#sec-adddisposableresource +module.exports = function (disposable, V, hint, method) { + var resource; + if (arguments.length < 4) { + // When `V`` is either `null` or `undefined` and hint is `async-dispose`, + // we record that the resource was evaluated to ensure we will still perform an `Await` when resources are later disposed. + if (isNullOrUndefined(V) && hint === 'sync-dispose') return; + resource = createDisposableResource(V, hint); + } else { + resource = createDisposableResource(undefined, hint, method); + } + + push(disposable.stack, resource); }; /***/ }), -/* 270 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var fails = __webpack_require__(6); -var isCallable = __webpack_require__(20); -var isObject = __webpack_require__(19); -var create = __webpack_require__(87); +var $ = __webpack_require__(2); +var anInstance = __webpack_require__(132); var getPrototypeOf = __webpack_require__(85); -var defineBuiltIn = __webpack_require__(46); +var createNonEnumerableProperty = __webpack_require__(42); +var hasOwn = __webpack_require__(37); var wellKnownSymbol = __webpack_require__(32); +var AsyncIteratorPrototype = __webpack_require__(244); var IS_PURE = __webpack_require__(35); -var ITERATOR = wellKnownSymbol('iterator'); -var BUGGY_SAFARI_ITERATORS = false; +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -// `%IteratorPrototype%` object -// https://tc39.es/ecma262/#sec-%iteratorprototype%-object -var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; +var $TypeError = TypeError; -/* eslint-disable es/no-array-prototype-keys -- safe */ -if ([].keys) { - arrayIterator = [].keys(); - // Safari 8 has buggy iterators w/o `next` - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; - else { - PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; - } -} +var AsyncIteratorConstructor = function AsyncIterator() { + anInstance(this, AsyncIteratorPrototype); + if (getPrototypeOf(this) === AsyncIteratorPrototype) throw new $TypeError('Abstract class AsyncIterator not directly constructable'); +}; -var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { - var test = {}; - // FF44- legacy iterators case - return IteratorPrototype[ITERATOR].call(test) !== test; -}); +AsyncIteratorConstructor.prototype = AsyncIteratorPrototype; -if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; -else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); +if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) { + createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator'); +} -// `%IteratorPrototype%[@@iterator]()` method -// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator -if (!isCallable(IteratorPrototype[ITERATOR])) { - defineBuiltIn(IteratorPrototype, ITERATOR, function () { - return this; - }); +if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) { + createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor); } -module.exports = { - IteratorPrototype: IteratorPrototype, - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS -}; +// `AsyncIterator` constructor +// https://github.com/tc39/proposal-async-iterator-helpers +$({ global: true, constructor: true, forced: IS_PURE }, { + AsyncIterator: AsyncIteratorConstructor +}); /***/ }), -/* 271 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var apply = __webpack_require__(67); -var getCompositeKeyNode = __webpack_require__(272); -var getBuiltIn = __webpack_require__(22); -var create = __webpack_require__(87); +var indexed = __webpack_require__(268); -var $Object = Object; +// `AsyncIterator.prototype.asIndexedPairs` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, { + asIndexedPairs: indexed +}); -var initializer = function () { - var freeze = getBuiltIn('Object', 'freeze'); - return freeze ? freeze(create(null)) : create(null); + +/***/ }), +/* 268 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var call = __webpack_require__(7); +var map = __webpack_require__(269); + +var callback = function (value, counter) { + return [counter, value]; }; -// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey -$({ global: true, forced: true }, { - compositeKey: function compositeKey() { - return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer); - } -}); +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function indexed() { + return call(map, this, callback); +}; /***/ }), -/* 272 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -__webpack_require__(273); -__webpack_require__(283); -var getBuiltIn = __webpack_require__(22); -var create = __webpack_require__(87); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); var isObject = __webpack_require__(19); +var getIteratorDirect = __webpack_require__(136); +var createAsyncIteratorProxy = __webpack_require__(270); +var createIterResultObject = __webpack_require__(141); +var closeAsyncIteration = __webpack_require__(246); -var $Object = Object; -var $TypeError = TypeError; -var Map = getBuiltIn('Map'); -var WeakMap = getBuiltIn('WeakMap'); +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var mapper = state.mapper; -var Node = function () { - // keys - this.object = null; - this.symbol = null; - // child nodes - this.primitives = null; - this.objectsByIndex = create(null); + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; + + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = mapper(value, state.counter++); + + var handler = function (mapped) { + resolve(createIterResultObject(mapped, false)); + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error2) { ifAbruptCloseAsyncIterator(error2); } + } + } catch (error) { doneAndReject(error); } + }, doneAndReject); + }); +}); + +// `AsyncIterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function map(mapper) { + anObject(this); + aCallable(mapper); + return new AsyncIteratorProxy(getIteratorDirect(this), { + mapper: mapper + }); }; -Node.prototype.get = function (key, initializer) { - return this[key] || (this[key] = initializer()); -}; -Node.prototype.next = function (i, it, IS_OBJECT) { - var store = IS_OBJECT - ? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap()) - : this.primitives || (this.primitives = new Map()); - var entry = store.get(it); - if (!entry) store.set(it, entry = new Node()); - return entry; -}; +/***/ }), +/* 270 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var call = __webpack_require__(7); +var perform = __webpack_require__(178); +var anObject = __webpack_require__(45); +var create = __webpack_require__(87); +var createNonEnumerableProperty = __webpack_require__(42); +var defineBuiltIns = __webpack_require__(140); +var wellKnownSymbol = __webpack_require__(32); +var InternalStateModule = __webpack_require__(50); +var getBuiltIn = __webpack_require__(22); +var getMethod = __webpack_require__(28); +var AsyncIteratorPrototype = __webpack_require__(244); +var createIterResultObject = __webpack_require__(141); +var iteratorClose = __webpack_require__(98); + +var Promise = getBuiltIn('Promise'); + +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; +var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator'; +var setInternalState = InternalStateModule.set; + +var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { + var IS_GENERATOR = !IS_ITERATOR; + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER); + + var getStateOrEarlyExit = function (that) { + var stateCompletion = perform(function () { + return getInternalState(that); + }); + + var stateError = stateCompletion.error; + var state = stateCompletion.value; -var root = new Node(); + if (stateError || (IS_GENERATOR && state.done)) { + return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) }; + } return { exit: false, value: state }; + }; -module.exports = function () { - var active = root; - var length = arguments.length; - var i, it; - // for prevent leaking, start from objects - for (i = 0; i < length; i++) { - if (isObject(it = arguments[i])) active = active.next(i, it, true); - } - if (this === $Object && active === root) throw new $TypeError('Composite keys must contain a non-primitive component'); - for (i = 0; i < length; i++) { - if (!isObject(it = arguments[i])) active = active.next(i, it, false); - } return active; + return defineBuiltIns(create(AsyncIteratorPrototype), { + next: function next() { + var stateCompletion = getStateOrEarlyExit(this); + var state = stateCompletion.value; + if (stateCompletion.exit) return state; + var handlerCompletion = perform(function () { + return anObject(state.nextHandler(Promise)); + }); + var handlerError = handlerCompletion.error; + var value = handlerCompletion.value; + if (handlerError) state.done = true; + return handlerError ? Promise.reject(value) : Promise.resolve(value); + }, + 'return': function () { + var stateCompletion = getStateOrEarlyExit(this); + var state = stateCompletion.value; + if (stateCompletion.exit) return state; + state.done = true; + var iterator = state.iterator; + var returnMethod, result; + var completion = perform(function () { + if (state.inner) try { + iteratorClose(state.inner.iterator, 'normal'); + } catch (error) { + return iteratorClose(iterator, 'throw', error); + } + return getMethod(iterator, 'return'); + }); + returnMethod = result = completion.value; + if (completion.error) return Promise.reject(result); + if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true)); + completion = perform(function () { + return call(returnMethod, iterator); + }); + result = completion.value; + if (completion.error) return Promise.reject(result); + return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) { + anObject(resolved); + return createIterResultObject(undefined, true); + }); + } + }); }; +var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true); +var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); -/***/ }), -/* 273 */ -/***/ (function(module, exports, __webpack_require__) { +createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper'); -"use strict"; +module.exports = function (nextHandler, IS_ITERATOR) { + var AsyncIteratorProxy = function AsyncIterator(record, state) { + if (state) { + state.iterator = record.iterator; + state.next = record.next; + } else state = record; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; + state.nextHandler = nextHandler; + state.counter = 0; + state.done = false; + setInternalState(this, state); + }; -// TODO: Remove this module from `core-js@4` since it's replaced to module below -__webpack_require__(274); + AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype; + + return AsyncIteratorProxy; +}; /***/ }), -/* 274 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var collection = __webpack_require__(275); -var collectionStrong = __webpack_require__(281); +// https://github.com/tc39/proposal-async-explicit-resource-management +var call = __webpack_require__(7); +var defineBuiltIn = __webpack_require__(46); +var getBuiltIn = __webpack_require__(22); +var getMethod = __webpack_require__(28); +var hasOwn = __webpack_require__(37); +var wellKnownSymbol = __webpack_require__(32); +var AsyncIteratorPrototype = __webpack_require__(244); + +var ASYNC_DISPOSE = wellKnownSymbol('asyncDispose'); +var Promise = getBuiltIn('Promise'); -// `Map` constructor -// https://tc39.es/ecma262/#sec-map-objects -collection('Map', function (init) { - return function Map() { return init(this, arguments.length ? arguments[0] : undefined); }; -}, collectionStrong); +if (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) { + defineBuiltIn(AsyncIteratorPrototype, ASYNC_DISPOSE, function () { + var O = this; + return new Promise(function (resolve, reject) { + var $return = getMethod(O, 'return'); + if ($return) { + Promise.resolve(call($return, O)).then(function () { + resolve(undefined); + }, reject); + } else resolve(undefined); + }); + }); +} /***/ }), -/* 275 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var globalThis = __webpack_require__(3); -var uncurryThis = __webpack_require__(13); -var isForced = __webpack_require__(66); -var defineBuiltIn = __webpack_require__(46); -var InternalMetadataModule = __webpack_require__(276); -var iterate = __webpack_require__(91); -var anInstance = __webpack_require__(140); -var isCallable = __webpack_require__(20); -var isNullOrUndefined = __webpack_require__(16); -var isObject = __webpack_require__(19); -var fails = __webpack_require__(6); -var checkCorrectnessOfIteration = __webpack_require__(160); -var setToStringTag = __webpack_require__(138); -var inheritIfRequired = __webpack_require__(74); - -module.exports = function (CONSTRUCTOR_NAME, wrapper, common) { - var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; - var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; - var ADDER = IS_MAP ? 'set' : 'add'; - var NativeConstructor = globalThis[CONSTRUCTOR_NAME]; - var NativePrototype = NativeConstructor && NativeConstructor.prototype; - var Constructor = NativeConstructor; - var exported = {}; - - var fixMethod = function (KEY) { - var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]); - defineBuiltIn(NativePrototype, KEY, - KEY === 'add' ? function add(value) { - uncurriedNativeMethod(this, value === 0 ? 0 : value); - return this; - } : KEY === 'delete' ? function (key) { - return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); - } : KEY === 'get' ? function get(key) { - return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); - } : KEY === 'has' ? function has(key) { - return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); - } : function set(key, value) { - uncurriedNativeMethod(this, key === 0 ? 0 : key, value); - return this; - } - ); - }; - - var REPLACE = isForced( - CONSTRUCTOR_NAME, - !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () { - new NativeConstructor().entries().next(); - })) - ); +var call = __webpack_require__(7); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var notANaN = __webpack_require__(137); +var toPositiveInteger = __webpack_require__(138); +var createAsyncIteratorProxy = __webpack_require__(270); +var createIterResultObject = __webpack_require__(141); +var IS_PURE = __webpack_require__(35); - if (REPLACE) { - // create collection constructor - Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); - InternalMetadataModule.enable(); - } else if (isForced(CONSTRUCTOR_NAME, true)) { - var instance = new Constructor(); - // early implementations not supports chaining - var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) !== instance; - // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); - // most early implementations doesn't supports iterables, most modern - not close it correctly - // eslint-disable-next-line no-new -- required for testing - var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); }); - // for early implementations -0 and +0 not the same - var BUGGY_ZERO = !IS_WEAK && fails(function () { - // V8 ~ Chromium 42- fails only with 5+ elements - var $instance = new NativeConstructor(); - var index = 5; - while (index--) $instance[ADDER](index, index); - return !$instance.has(-0); - }); +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; - if (!ACCEPT_ITERABLES) { - Constructor = wrapper(function (dummy, iterable) { - anInstance(dummy, NativePrototype); - var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor); - if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); - return that; - }); - Constructor.prototype = NativePrototype; - NativePrototype.constructor = Constructor; - } + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; - if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { - fixMethod('delete'); - fixMethod('has'); - IS_MAP && fixMethod('get'); - } + var loop = function () { + try { + Promise.resolve(anObject(call(state.next, state.iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else if (state.remaining) { + state.remaining--; + loop(); + } else resolve(createIterResultObject(step.value, false)); + } catch (err) { doneAndReject(err); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } + }; - if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); + loop(); + }); +}); - // weak collections should not contains .clear method - if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; +// `AsyncIterator.prototype.drop` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + drop: function drop(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new AsyncIteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); } +}); - exported[CONSTRUCTOR_NAME] = Constructor; - $({ global: true, constructor: true, forced: Constructor !== NativeConstructor }, exported); - setToStringTag(Constructor, CONSTRUCTOR_NAME); +/***/ }), +/* 273 */ +/***/ (function(module, exports, __webpack_require__) { - if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); +"use strict"; - return Constructor; -}; +var $ = __webpack_require__(2); +var $every = __webpack_require__(245).every; + +// `AsyncIterator.prototype.every` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + every: function every(predicate) { + return $every(this, predicate); + } +}); /***/ }), -/* 276 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var hiddenKeys = __webpack_require__(53); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); var isObject = __webpack_require__(19); -var hasOwn = __webpack_require__(37); -var defineProperty = __webpack_require__(43).f; -var getOwnPropertyNamesModule = __webpack_require__(56); -var getOwnPropertyNamesExternalModule = __webpack_require__(277); -var isExtensible = __webpack_require__(278); -var uid = __webpack_require__(39); -var FREEZING = __webpack_require__(280); - -var REQUIRED = false; -var METADATA = uid('meta'); -var id = 0; +var getIteratorDirect = __webpack_require__(136); +var createAsyncIteratorProxy = __webpack_require__(270); +var createIterResultObject = __webpack_require__(141); +var closeAsyncIteration = __webpack_require__(246); +var IS_PURE = __webpack_require__(35); -var setMetadata = function (it) { - defineProperty(it, METADATA, { value: { - objectID: 'O' + id++, // object ID - weakData: {} // weak collections IDs - } }); -}; +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var predicate = state.predicate; -var fastKey = function (it, create) { - // return a primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!hasOwn(it, METADATA)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMetadata(it); - // return object ID - } return it[METADATA].objectID; -}; + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; -var getWeakData = function (it, create) { - if (!hasOwn(it, METADATA)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMetadata(it); - // return the store of weak collections IDs - } return it[METADATA].weakData; -}; + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; -// add metadata on freeze-family methods calling -var onFreeze = function (it) { - if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it); - return it; -}; + var loop = function () { + try { + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = predicate(value, state.counter++); -var enable = function () { - meta.enable = function () { /* empty */ }; - REQUIRED = true; - var getOwnPropertyNames = getOwnPropertyNamesModule.f; - var splice = uncurryThis([].splice); - var test = {}; - test[METADATA] = 1; + var handler = function (selected) { + selected ? resolve(createIterResultObject(value, false)) : loop(); + }; - // prevent exposing of metadata key - if (getOwnPropertyNames(test).length) { - getOwnPropertyNamesModule.f = function (it) { - var result = getOwnPropertyNames(it); - for (var i = 0, length = result.length; i < length; i++) { - if (result[i] === METADATA) { - splice(result, i, 1); - break; - } - } return result; + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { doneAndReject(error2); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } }; - $({ target: 'Object', stat: true, forced: true }, { - getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + loop(); + }); +}); + +// `AsyncIterator.prototype.filter` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + filter: function filter(predicate) { + anObject(this); + aCallable(predicate); + return new AsyncIteratorProxy(getIteratorDirect(this), { + predicate: predicate }); } -}; - -var meta = module.exports = { - enable: enable, - fastKey: fastKey, - getWeakData: getWeakData, - onFreeze: onFreeze -}; - -hiddenKeys[METADATA] = true; +}); /***/ }), -/* 277 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* eslint-disable es/no-object-getownpropertynames -- safe */ -var classof = __webpack_require__(14); -var toIndexedObject = __webpack_require__(11); -var $getOwnPropertyNames = __webpack_require__(56).f; -var arraySlice = __webpack_require__(145); - -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; +var $ = __webpack_require__(2); +var $find = __webpack_require__(245).find; -var getWindowNames = function (it) { - try { - return $getOwnPropertyNames(it); - } catch (error) { - return arraySlice(windowNames); +// `AsyncIterator.prototype.find` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + find: function find(predicate) { + return $find(this, predicate); } -}; - -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -module.exports.f = function getOwnPropertyNames(it) { - return windowNames && classof(it) === 'Window' - ? getWindowNames(it) - : $getOwnPropertyNames(toIndexedObject(it)); -}; +}); /***/ }), -/* 278 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var fails = __webpack_require__(6); +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); var isObject = __webpack_require__(19); -var classof = __webpack_require__(14); -var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(279); +var getIteratorDirect = __webpack_require__(136); +var createAsyncIteratorProxy = __webpack_require__(270); +var createIterResultObject = __webpack_require__(141); +var getAsyncIteratorFlattenable = __webpack_require__(277); +var closeAsyncIteration = __webpack_require__(246); +var IS_PURE = __webpack_require__(35); -// eslint-disable-next-line es/no-object-isextensible -- safe -var $isExtensible = Object.isExtensible; -var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); }); +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var mapper = state.mapper; -// `Object.isExtensible` method -// https://tc39.es/ecma262/#sec-object.isextensible -module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) { - if (!isObject(it)) return false; - if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return false; - return $isExtensible ? $isExtensible(it) : true; -} : $isExtensible; + return new Promise(function (resolve, reject) { + var doneAndReject = function (error) { + state.done = true; + reject(error); + }; + + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); + }; + + var outerLoop = function () { + try { + Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + state.done = true; + resolve(createIterResultObject(undefined, true)); + } else { + var value = step.value; + try { + var result = mapper(value, state.counter++); + + var handler = function (mapped) { + try { + state.inner = getAsyncIteratorFlattenable(mapped); + innerLoop(); + } catch (error4) { ifAbruptCloseAsyncIterator(error4); } + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + } catch (error2) { doneAndReject(error2); } + }, doneAndReject); + } catch (error) { doneAndReject(error); } + }; + + var innerLoop = function () { + var inner = state.inner; + if (inner) { + try { + Promise.resolve(anObject(call(inner.next, inner.iterator))).then(function (result) { + try { + if (anObject(result).done) { + state.inner = null; + outerLoop(); + } else resolve(createIterResultObject(result.value, false)); + } catch (error1) { ifAbruptCloseAsyncIterator(error1); } + }, ifAbruptCloseAsyncIterator); + } catch (error) { ifAbruptCloseAsyncIterator(error); } + } else outerLoop(); + }; + + innerLoop(); + }); +}); + +// `AsyncIterator.prototype.flaMap` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + flatMap: function flatMap(mapper) { + anObject(this); + aCallable(mapper); + return new AsyncIteratorProxy(getIteratorDirect(this), { + mapper: mapper, + inner: null + }); + } +}); /***/ }), -/* 279 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it -var fails = __webpack_require__(6); +var call = __webpack_require__(7); +var isCallable = __webpack_require__(20); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var getIteratorMethod = __webpack_require__(97); +var getMethod = __webpack_require__(28); +var wellKnownSymbol = __webpack_require__(32); +var AsyncFromSyncIterator = __webpack_require__(243); -module.exports = fails(function () { - if (typeof ArrayBuffer == 'function') { - var buffer = new ArrayBuffer(8); - // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe - if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); +var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); + +module.exports = function (obj) { + var object = anObject(obj); + var alreadyAsync = true; + var method = getMethod(object, ASYNC_ITERATOR); + var iterator; + if (!isCallable(method)) { + method = getIteratorMethod(object); + alreadyAsync = false; } -}); + if (method !== undefined) { + iterator = call(method, object); + } else { + iterator = object; + alreadyAsync = true; + } + anObject(iterator); + return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator))); +}; /***/ }), -/* 280 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var fails = __webpack_require__(6); +var $ = __webpack_require__(2); +var $forEach = __webpack_require__(245).forEach; -module.exports = !fails(function () { - // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing - return Object.isExtensible(Object.preventExtensions({})); +// `AsyncIterator.prototype.forEach` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + forEach: function forEach(fn) { + return $forEach(this, fn); + } }); /***/ }), -/* 281 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var create = __webpack_require__(87); -var defineBuiltInAccessor = __webpack_require__(118); -var defineBuiltIns = __webpack_require__(221); -var bind = __webpack_require__(92); -var anInstance = __webpack_require__(140); -var isNullOrUndefined = __webpack_require__(16); -var iterate = __webpack_require__(91); -var defineIterator = __webpack_require__(282); -var createIterResultObject = __webpack_require__(223); -var setSpecies = __webpack_require__(139); -var DESCRIPTORS = __webpack_require__(5); -var fastKey = __webpack_require__(276).fastKey; -var InternalStateModule = __webpack_require__(50); - -var setInternalState = InternalStateModule.set; -var internalStateGetterFor = InternalStateModule.getterFor; - -module.exports = { - getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { - var Constructor = wrapper(function (that, iterable) { - anInstance(that, Prototype); - setInternalState(that, { - type: CONSTRUCTOR_NAME, - index: create(null), - first: null, - last: null, - size: 0 - }); - if (!DESCRIPTORS) that.size = 0; - if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); - }); - - var Prototype = Constructor.prototype; - - var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); - - var define = function (that, key, value) { - var state = getInternalState(that); - var entry = getEntry(that, key); - var previous, index; - // change existing entry - if (entry) { - entry.value = value; - // create new entry - } else { - state.last = entry = { - index: index = fastKey(key, true), - key: key, - value: value, - previous: previous = state.last, - next: null, - removed: false - }; - if (!state.first) state.first = entry; - if (previous) previous.next = entry; - if (DESCRIPTORS) state.size++; - else that.size++; - // add to index - if (index !== 'F') state.index[index] = entry; - } return that; - }; - - var getEntry = function (that, key) { - var state = getInternalState(that); - // fast case - var index = fastKey(key); - var entry; - if (index !== 'F') return state.index[index]; - // frozen object case - for (entry = state.first; entry; entry = entry.next) { - if (entry.key === key) return entry; - } - }; - - defineBuiltIns(Prototype, { - // `{ Map, Set }.prototype.clear()` methods - // https://tc39.es/ecma262/#sec-map.prototype.clear - // https://tc39.es/ecma262/#sec-set.prototype.clear - clear: function clear() { - var that = this; - var state = getInternalState(that); - var entry = state.first; - while (entry) { - entry.removed = true; - if (entry.previous) entry.previous = entry.previous.next = null; - entry = entry.next; - } - state.first = state.last = null; - state.index = create(null); - if (DESCRIPTORS) state.size = 0; - else that.size = 0; - }, - // `{ Map, Set }.prototype.delete(key)` methods - // https://tc39.es/ecma262/#sec-map.prototype.delete - // https://tc39.es/ecma262/#sec-set.prototype.delete - 'delete': function (key) { - var that = this; - var state = getInternalState(that); - var entry = getEntry(that, key); - if (entry) { - var next = entry.next; - var prev = entry.previous; - delete state.index[entry.index]; - entry.removed = true; - if (prev) prev.next = next; - if (next) next.previous = prev; - if (state.first === entry) state.first = next; - if (state.last === entry) state.last = prev; - if (DESCRIPTORS) state.size--; - else that.size--; - } return !!entry; - }, - // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods - // https://tc39.es/ecma262/#sec-map.prototype.foreach - // https://tc39.es/ecma262/#sec-set.prototype.foreach - forEach: function forEach(callbackfn /* , that = undefined */) { - var state = getInternalState(this); - var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var entry; - while (entry = entry ? entry.next : state.first) { - boundFunction(entry.value, entry.key, this); - // revert to the last existing entry - while (entry && entry.removed) entry = entry.previous; - } - }, - // `{ Map, Set}.prototype.has(key)` methods - // https://tc39.es/ecma262/#sec-map.prototype.has - // https://tc39.es/ecma262/#sec-set.prototype.has - has: function has(key) { - return !!getEntry(this, key); - } - }); - - defineBuiltIns(Prototype, IS_MAP ? { - // `Map.prototype.get(key)` method - // https://tc39.es/ecma262/#sec-map.prototype.get - get: function get(key) { - var entry = getEntry(this, key); - return entry && entry.value; - }, - // `Map.prototype.set(key, value)` method - // https://tc39.es/ecma262/#sec-map.prototype.set - set: function set(key, value) { - return define(this, key === 0 ? 0 : key, value); - } - } : { - // `Set.prototype.add(value)` method - // https://tc39.es/ecma262/#sec-set.prototype.add - add: function add(value) { - return define(this, value = value === 0 ? 0 : value, value); - } - }); - if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', { - configurable: true, - get: function () { - return getInternalState(this).size; - } - }); - return Constructor; - }, - setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { - var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; - var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); - var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); - // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods - // https://tc39.es/ecma262/#sec-map.prototype.entries - // https://tc39.es/ecma262/#sec-map.prototype.keys - // https://tc39.es/ecma262/#sec-map.prototype.values - // https://tc39.es/ecma262/#sec-map.prototype-@@iterator - // https://tc39.es/ecma262/#sec-set.prototype.entries - // https://tc39.es/ecma262/#sec-set.prototype.keys - // https://tc39.es/ecma262/#sec-set.prototype.values - // https://tc39.es/ecma262/#sec-set.prototype-@@iterator - defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { - setInternalState(this, { - type: ITERATOR_NAME, - target: iterated, - state: getInternalCollectionState(iterated), - kind: kind, - last: null - }); - }, function () { - var state = getInternalIteratorState(this); - var kind = state.kind; - var entry = state.last; - // revert to the last existing entry - while (entry && entry.removed) entry = entry.previous; - // get next entry - if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { - // or finish the iteration - state.target = null; - return createIterResultObject(undefined, true); - } - // return step by kind - if (kind === 'keys') return createIterResultObject(entry.key, false); - if (kind === 'values') return createIterResultObject(entry.value, false); - return createIterResultObject([entry.key, entry.value], false); - }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); - - // `{ Map, Set }.prototype[@@species]` accessors - // https://tc39.es/ecma262/#sec-get-map-@@species - // https://tc39.es/ecma262/#sec-get-set-@@species - setSpecies(CONSTRUCTOR_NAME); +var $ = __webpack_require__(2); +var toObject = __webpack_require__(38); +var isPrototypeOf = __webpack_require__(23); +var getAsyncIteratorFlattenable = __webpack_require__(277); +var AsyncIteratorPrototype = __webpack_require__(244); +var WrapAsyncIterator = __webpack_require__(280); +var IS_PURE = __webpack_require__(35); + +// `AsyncIterator.from` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', stat: true, forced: IS_PURE }, { + from: function from(O) { + var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O); + return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator) + ? iteratorRecord.iterator + : new WrapAsyncIterator(iteratorRecord); } -}; +}); + + +/***/ }), +/* 280 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var call = __webpack_require__(7); +var createAsyncIteratorProxy = __webpack_require__(270); + +module.exports = createAsyncIteratorProxy(function () { + return call(this.next, this.iterator); +}, true); + + +/***/ }), +/* 281 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// TODO: Remove from `core-js@4` +var $ = __webpack_require__(2); +var indexed = __webpack_require__(268); + +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { + indexed: indexed +}); /***/ }), @@ -9237,932 +8962,1188 @@ module.exports = { "use strict"; var $ = __webpack_require__(2); -var call = __webpack_require__(7); +var map = __webpack_require__(269); var IS_PURE = __webpack_require__(35); -var FunctionName = __webpack_require__(48); -var isCallable = __webpack_require__(20); -var createIteratorConstructor = __webpack_require__(269); -var getPrototypeOf = __webpack_require__(85); -var setPrototypeOf = __webpack_require__(69); -var setToStringTag = __webpack_require__(138); -var createNonEnumerableProperty = __webpack_require__(42); -var defineBuiltIn = __webpack_require__(46); -var wellKnownSymbol = __webpack_require__(32); -var Iterators = __webpack_require__(95); -var IteratorsCore = __webpack_require__(270); -var PROPER_FUNCTION_NAME = FunctionName.PROPER; -var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; -var IteratorPrototype = IteratorsCore.IteratorPrototype; -var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR = wellKnownSymbol('iterator'); -var KEYS = 'keys'; -var VALUES = 'values'; -var ENTRIES = 'entries'; +// `AsyncIterator.prototype.map` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + map: map +}); -var returnThis = function () { return this; }; -module.exports = 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 && KIND in IterablePrototype) return IterablePrototype[KIND]; +/***/ }), +/* 283 */ +/***/ (function(module, exports, __webpack_require__) { - 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); }; - } +"use strict"; - return function () { return new IteratorConstructor(this); }; - }; +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var aCallable = __webpack_require__(29); +var anObject = __webpack_require__(45); +var isObject = __webpack_require__(19); +var getBuiltIn = __webpack_require__(22); +var getIteratorDirect = __webpack_require__(136); +var closeAsyncIteration = __webpack_require__(246); - 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; +var Promise = getBuiltIn('Promise'); +var $TypeError = TypeError; - // fix native - if (anyNativeIterator) { - CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); - if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { - if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { - if (setPrototypeOf) { - setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); - } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { - defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); - } - } - // Set @@toStringTag to native iterators - setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); - if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; - } - } +// `AsyncIterator.prototype.reduce` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + reduce: function reduce(reducer /* , initialValue */) { + anObject(this); + aCallable(reducer); + var record = getIteratorDirect(this); + var iterator = record.iterator; + var next = record.next; + var noInitial = arguments.length < 2; + var accumulator = noInitial ? undefined : arguments[1]; + var counter = 0; - // fix Array.prototype.{ values, @@iterator }.name in V8 / FF - if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { - if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { - createNonEnumerableProperty(IterablePrototype, 'name', VALUES); - } else { - INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return call(nativeIterator, this); }; - } - } + return new Promise(function (resolve, reject) { + var ifAbruptCloseAsyncIterator = function (error) { + closeAsyncIteration(iterator, reject, error, reject); + }; - // 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(IterablePrototype, KEY, methods[KEY]); - } - } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); - } + var loop = function () { + try { + Promise.resolve(anObject(call(next, iterator))).then(function (step) { + try { + if (anObject(step).done) { + noInitial ? reject(new $TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator); + } else { + var value = step.value; + if (noInitial) { + noInitial = false; + accumulator = value; + loop(); + } else try { + var result = reducer(accumulator, value, counter); - // define iterator - if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { - defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); + var handler = function ($result) { + accumulator = $result; + loop(); + }; + + if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); + else handler(result); + } catch (error3) { ifAbruptCloseAsyncIterator(error3); } + } + counter++; + } catch (error2) { reject(error2); } + }, reject); + } catch (error) { reject(error); } + }; + + loop(); + }); } - Iterators[NAME] = defaultIterator; +}); - return methods; -}; + +/***/ }), +/* 284 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var $some = __webpack_require__(245).some; + +// `AsyncIterator.prototype.some` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + some: function some(predicate) { + return $some(this, predicate); + } +}); /***/ }), -/* 283 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove this module from `core-js@4` since it's replaced to module below -__webpack_require__(284); +var $ = __webpack_require__(2); +var call = __webpack_require__(7); +var anObject = __webpack_require__(45); +var getIteratorDirect = __webpack_require__(136); +var notANaN = __webpack_require__(137); +var toPositiveInteger = __webpack_require__(138); +var createAsyncIteratorProxy = __webpack_require__(270); +var createIterResultObject = __webpack_require__(141); +var IS_PURE = __webpack_require__(35); + +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { + var state = this; + var iterator = state.iterator; + var returnMethod; + + if (!state.remaining--) { + var resultDone = createIterResultObject(undefined, true); + state.done = true; + returnMethod = iterator['return']; + if (returnMethod !== undefined) { + return Promise.resolve(call(returnMethod, iterator, undefined)).then(function () { + return resultDone; + }); + } + return resultDone; + } return Promise.resolve(call(state.next, iterator)).then(function (step) { + if (anObject(step).done) { + state.done = true; + return createIterResultObject(undefined, true); + } return createIterResultObject(step.value, false); + }).then(null, function (error) { + state.done = true; + throw error; + }); +}); + +// `AsyncIterator.prototype.take` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { + take: function take(limit) { + anObject(this); + var remaining = toPositiveInteger(notANaN(+limit)); + return new AsyncIteratorProxy(getIteratorDirect(this), { + remaining: remaining + }); + } +}); /***/ }), -/* 284 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var FREEZING = __webpack_require__(280); -var globalThis = __webpack_require__(3); -var uncurryThis = __webpack_require__(13); -var defineBuiltIns = __webpack_require__(221); -var InternalMetadataModule = __webpack_require__(276); -var collection = __webpack_require__(275); -var collectionWeak = __webpack_require__(285); -var isObject = __webpack_require__(19); -var enforceInternalState = __webpack_require__(50).enforce; -var fails = __webpack_require__(6); -var NATIVE_WEAK_MAP = __webpack_require__(51); +var $ = __webpack_require__(2); +var $toArray = __webpack_require__(245).toArray; -var $Object = Object; -// eslint-disable-next-line es/no-array-isarray -- safe -var isArray = Array.isArray; -// eslint-disable-next-line es/no-object-isextensible -- safe -var isExtensible = $Object.isExtensible; -// eslint-disable-next-line es/no-object-isfrozen -- safe -var isFrozen = $Object.isFrozen; -// eslint-disable-next-line es/no-object-issealed -- safe -var isSealed = $Object.isSealed; -// eslint-disable-next-line es/no-object-freeze -- safe -var freeze = $Object.freeze; -// eslint-disable-next-line es/no-object-seal -- safe -var seal = $Object.seal; +// `AsyncIterator.prototype.toArray` method +// https://github.com/tc39/proposal-async-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + toArray: function toArray() { + return $toArray(this, undefined, []); + } +}); -var IS_IE11 = !globalThis.ActiveXObject && 'ActiveXObject' in globalThis; -var InternalWeakMap; -var wrapper = function (init) { - return function WeakMap() { - return init(this, arguments.length ? arguments[0] : undefined); - }; -}; +/***/ }), +/* 287 */ +/***/ (function(module, exports, __webpack_require__) { -// `WeakMap` constructor -// https://tc39.es/ecma262/#sec-weakmap-constructor -var $WeakMap = collection('WeakMap', wrapper, collectionWeak); -var WeakMapPrototype = $WeakMap.prototype; -var nativeSet = uncurryThis(WeakMapPrototype.set); +"use strict"; -// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them -var hasMSEdgeFreezingBug = function () { - return FREEZING && fails(function () { - var frozenArray = freeze([]); - nativeSet(new $WeakMap(), frozenArray, 1); - return !isFrozen(frozenArray); - }); -}; +/* eslint-disable es/no-bigint -- safe */ +var $ = __webpack_require__(2); +var NumericRangeIterator = __webpack_require__(288); -// IE11 WeakMap frozen keys fix -// We can't use feature detection because it crash some old IE builds -// https://github.com/zloirock/core-js/issues/485 -if (NATIVE_WEAK_MAP) if (IS_IE11) { - InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true); - InternalMetadataModule.enable(); - var nativeDelete = uncurryThis(WeakMapPrototype['delete']); - var nativeHas = uncurryThis(WeakMapPrototype.has); - var nativeGet = uncurryThis(WeakMapPrototype.get); - defineBuiltIns(WeakMapPrototype, { - 'delete': function (key) { - if (isObject(key) && !isExtensible(key)) { - var state = enforceInternalState(this); - if (!state.frozen) state.frozen = new InternalWeakMap(); - return nativeDelete(this, key) || state.frozen['delete'](key); - } return nativeDelete(this, key); - }, - has: function has(key) { - if (isObject(key) && !isExtensible(key)) { - var state = enforceInternalState(this); - if (!state.frozen) state.frozen = new InternalWeakMap(); - return nativeHas(this, key) || state.frozen.has(key); - } return nativeHas(this, key); - }, - get: function get(key) { - if (isObject(key) && !isExtensible(key)) { - var state = enforceInternalState(this); - if (!state.frozen) state.frozen = new InternalWeakMap(); - return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key); - } return nativeGet(this, key); - }, - set: function set(key, value) { - if (isObject(key) && !isExtensible(key)) { - var state = enforceInternalState(this); - if (!state.frozen) state.frozen = new InternalWeakMap(); - nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value); - } else nativeSet(this, key, value); - return this; - } - }); -// Chakra Edge frozen keys fix -} else if (hasMSEdgeFreezingBug()) { - defineBuiltIns(WeakMapPrototype, { - set: function set(key, value) { - var arrayIntegrityLevel; - if (isArray(key)) { - if (isFrozen(key)) arrayIntegrityLevel = freeze; - else if (isSealed(key)) arrayIntegrityLevel = seal; - } - nativeSet(this, key, value); - if (arrayIntegrityLevel) arrayIntegrityLevel(key); - return this; +// `BigInt.range` method +// https://github.com/tc39/proposal-Number.range +// TODO: Remove from `core-js@4` +if (typeof BigInt == 'function') { + $({ target: 'BigInt', stat: true, forced: true }, { + range: function range(start, end, option) { + return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); } }); } /***/ }), -/* 285 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var uncurryThis = __webpack_require__(13); -var defineBuiltIns = __webpack_require__(221); -var getWeakData = __webpack_require__(276).getWeakData; -var anInstance = __webpack_require__(140); -var anObject = __webpack_require__(45); +var InternalStateModule = __webpack_require__(50); +var createIteratorConstructor = __webpack_require__(289); +var createIterResultObject = __webpack_require__(141); var isNullOrUndefined = __webpack_require__(16); var isObject = __webpack_require__(19); -var iterate = __webpack_require__(91); -var ArrayIterationModule = __webpack_require__(227); -var hasOwn = __webpack_require__(37); -var InternalStateModule = __webpack_require__(50); +var defineBuiltInAccessor = __webpack_require__(118); +var DESCRIPTORS = __webpack_require__(5); -var setInternalState = InternalStateModule.set; -var internalStateGetterFor = InternalStateModule.getterFor; -var find = ArrayIterationModule.find; -var findIndex = ArrayIterationModule.findIndex; -var splice = uncurryThis([].splice); -var id = 0; +var INCORRECT_RANGE = 'Incorrect Iterator.range arguments'; +var NUMERIC_RANGE_ITERATOR = 'NumericRangeIterator'; -// fallback for uncaught frozen keys -var uncaughtFrozenStore = function (state) { - return state.frozen || (state.frozen = new UncaughtFrozenStore()); -}; +var setInternalState = InternalStateModule.set; +var getInternalState = InternalStateModule.getterFor(NUMERIC_RANGE_ITERATOR); -var UncaughtFrozenStore = function () { - this.entries = []; -}; +var $RangeError = RangeError; +var $TypeError = TypeError; -var findUncaughtFrozen = function (store, key) { - return find(store.entries, function (it) { - return it[0] === key; +var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) { + // TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4` + if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) { + throw new $TypeError(INCORRECT_RANGE); + } + if (start === Infinity || start === -Infinity) { + throw new $RangeError(INCORRECT_RANGE); + } + var ifIncrease = end > start; + var inclusiveEnd = false; + var step; + if (option === undefined) { + step = undefined; + } else if (isObject(option)) { + step = option.step; + inclusiveEnd = !!option.inclusive; + } else if (typeof option == type) { + step = option; + } else { + throw new $TypeError(INCORRECT_RANGE); + } + if (isNullOrUndefined(step)) { + step = ifIncrease ? one : -one; + } + if (typeof step != type) { + throw new $TypeError(INCORRECT_RANGE); + } + if (step === Infinity || step === -Infinity || (step === zero && start !== end)) { + throw new $RangeError(INCORRECT_RANGE); + } + // eslint-disable-next-line no-self-compare -- NaN check + var hitsEnd = start !== start || end !== end || step !== step || (end > start) !== (step > zero); + setInternalState(this, { + type: NUMERIC_RANGE_ITERATOR, + start: start, + end: end, + step: step, + inclusive: inclusiveEnd, + hitsEnd: hitsEnd, + currentCount: zero, + zero: zero }); -}; - -UncaughtFrozenStore.prototype = { - get: function (key) { - var entry = findUncaughtFrozen(this, key); - if (entry) return entry[1]; - }, - has: function (key) { - return !!findUncaughtFrozen(this, key); - }, - set: function (key, value) { - var entry = findUncaughtFrozen(this, key); - if (entry) entry[1] = value; - else this.entries.push([key, value]); - }, - 'delete': function (key) { - var index = findIndex(this.entries, function (it) { - return it[0] === key; - }); - if (~index) splice(this.entries, index, 1); - return !!~index; + if (!DESCRIPTORS) { + this.start = start; + this.end = end; + this.step = step; + this.inclusive = inclusiveEnd; + } +}, NUMERIC_RANGE_ITERATOR, function next() { + var state = getInternalState(this); + if (state.hitsEnd) return createIterResultObject(undefined, true); + var start = state.start; + var end = state.end; + var step = state.step; + var currentYieldingValue = start + (step * state.currentCount++); + if (currentYieldingValue === end) state.hitsEnd = true; + var inclusiveEnd = state.inclusive; + var endCondition; + if (end > start) { + endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end; + } else { + endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue; } + if (endCondition) { + state.hitsEnd = true; + return createIterResultObject(undefined, true); + } return createIterResultObject(currentYieldingValue, false); +}); + +var addGetter = function (key) { + defineBuiltInAccessor($RangeIterator.prototype, key, { + get: function () { + return getInternalState(this)[key]; + }, + set: function () { /* empty */ }, + configurable: true, + enumerable: false + }); }; -module.exports = { - getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { - var Constructor = wrapper(function (that, iterable) { - anInstance(that, Prototype); - setInternalState(that, { - type: CONSTRUCTOR_NAME, - id: id++, - frozen: null - }); - if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); - }); +if (DESCRIPTORS) { + addGetter('start'); + addGetter('end'); + addGetter('inclusive'); + addGetter('step'); +} - var Prototype = Constructor.prototype; +module.exports = $RangeIterator; - var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); - var define = function (that, key, value) { - var state = getInternalState(that); - var data = getWeakData(anObject(key), true); - if (data === true) uncaughtFrozenStore(state).set(key, value); - else data[state.id] = value; - return that; - }; +/***/ }), +/* 289 */ +/***/ (function(module, exports, __webpack_require__) { - defineBuiltIns(Prototype, { - // `{ WeakMap, WeakSet }.prototype.delete(key)` methods - // https://tc39.es/ecma262/#sec-weakmap.prototype.delete - // https://tc39.es/ecma262/#sec-weakset.prototype.delete - 'delete': function (key) { - var state = getInternalState(this); - if (!isObject(key)) return false; - var data = getWeakData(key); - if (data === true) return uncaughtFrozenStore(state)['delete'](key); - return data && hasOwn(data, state.id) && delete data[state.id]; - }, - // `{ WeakMap, WeakSet }.prototype.has(key)` methods - // https://tc39.es/ecma262/#sec-weakmap.prototype.has - // https://tc39.es/ecma262/#sec-weakset.prototype.has - has: function has(key) { - var state = getInternalState(this); - if (!isObject(key)) return false; - var data = getWeakData(key); - if (data === true) return uncaughtFrozenStore(state).has(key); - return data && hasOwn(data, state.id); - } - }); +"use strict"; - defineBuiltIns(Prototype, IS_MAP ? { - // `WeakMap.prototype.get(key)` method - // https://tc39.es/ecma262/#sec-weakmap.prototype.get - get: function get(key) { - var state = getInternalState(this); - if (isObject(key)) { - var data = getWeakData(key); - if (data === true) return uncaughtFrozenStore(state).get(key); - if (data) return data[state.id]; - } - }, - // `WeakMap.prototype.set(key, value)` method - // https://tc39.es/ecma262/#sec-weakmap.prototype.set - set: function set(key, value) { - return define(this, key, value); - } - } : { - // `WeakSet.prototype.add(value)` method - // https://tc39.es/ecma262/#sec-weakset.prototype.add - add: function add(value) { - return define(this, value, true); - } - }); +var IteratorPrototype = __webpack_require__(134).IteratorPrototype; +var create = __webpack_require__(87); +var createPropertyDescriptor = __webpack_require__(10); +var setToStringTag = __webpack_require__(163); +var Iterators = __webpack_require__(95); - return Constructor; - } +var returnThis = function () { return this; }; + +module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); + setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); + Iterators[TO_STRING_TAG] = returnThis; + return IteratorConstructor; }; /***/ }), -/* 286 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var getCompositeKeyNode = __webpack_require__(272); -var getBuiltIn = __webpack_require__(22); var apply = __webpack_require__(67); +var getCompositeKeyNode = __webpack_require__(291); +var getBuiltIn = __webpack_require__(22); +var create = __webpack_require__(87); + +var $Object = Object; + +var initializer = function () { + var freeze = getBuiltIn('Object', 'freeze'); + return freeze ? freeze(create(null)) : create(null); +}; // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey $({ global: true, forced: true }, { - compositeSymbol: function compositeSymbol() { - if (arguments.length === 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]); - return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol')); + compositeKey: function compositeKey() { + return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer); } }); /***/ }), -/* 287 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var unpackIEEE754 = __webpack_require__(288).unpack; - -// eslint-disable-next-line es/no-typed-arrays -- safe -var getUint16 = uncurryThis(DataView.prototype.getUint16); +// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` +__webpack_require__(292); +__webpack_require__(302); +var getBuiltIn = __webpack_require__(22); +var create = __webpack_require__(87); +var isObject = __webpack_require__(19); -// `DataView.prototype.getFloat16` method -// https://github.com/tc39/proposal-float16array -$({ target: 'DataView', proto: true }, { - getFloat16: function getFloat16(byteOffset /* , littleEndian */) { - var uint16 = getUint16(this, byteOffset, arguments.length > 1 ? arguments[1] : false); - return unpackIEEE754([uint16 & 0xFF, uint16 >> 8 & 0xFF], 10); - } -}); +var $Object = Object; +var $TypeError = TypeError; +var Map = getBuiltIn('Map'); +var WeakMap = getBuiltIn('WeakMap'); +var Node = function () { + // keys + this.object = null; + this.symbol = null; + // child nodes + this.primitives = null; + this.objectsByIndex = create(null); +}; -/***/ }), -/* 288 */ -/***/ (function(module, exports, __webpack_require__) { +Node.prototype.get = function (key, initializer) { + return this[key] || (this[key] = initializer()); +}; -"use strict"; +Node.prototype.next = function (i, it, IS_OBJECT) { + var store = IS_OBJECT + ? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap()) + : this.primitives || (this.primitives = new Map()); + var entry = store.get(it); + if (!entry) store.set(it, entry = new Node()); + return entry; +}; -// IEEE754 conversions based on https://github.com/feross/ieee754 -var $Array = Array; -var abs = Math.abs; -var pow = Math.pow; -var floor = Math.floor; -var log = Math.log; -var LN2 = Math.LN2; +var root = new Node(); -var pack = function (number, mantissaLength, bytes) { - var buffer = $Array(bytes); - var exponentLength = bytes * 8 - mantissaLength - 1; - var eMax = (1 << exponentLength) - 1; - var eBias = eMax >> 1; - var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0; - var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; - var index = 0; - var exponent, mantissa, c; - number = abs(number); - // eslint-disable-next-line no-self-compare -- NaN check - if (number !== number || number === Infinity) { - // eslint-disable-next-line no-self-compare -- NaN check - mantissa = number !== number ? 1 : 0; - exponent = eMax; - } else { - exponent = floor(log(number) / LN2); - c = pow(2, -exponent); - if (number * c < 1) { - exponent--; - c *= 2; - } - if (exponent + eBias >= 1) { - number += rt / c; - } else { - number += rt * pow(2, 1 - eBias); - } - if (number * c >= 2) { - exponent++; - c /= 2; - } - if (exponent + eBias >= eMax) { - mantissa = 0; - exponent = eMax; - } else if (exponent + eBias >= 1) { - mantissa = (number * c - 1) * pow(2, mantissaLength); - exponent += eBias; - } else { - mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength); - exponent = 0; - } - } - while (mantissaLength >= 8) { - buffer[index++] = mantissa & 255; - mantissa /= 256; - mantissaLength -= 8; - } - exponent = exponent << mantissaLength | mantissa; - exponentLength += mantissaLength; - while (exponentLength > 0) { - buffer[index++] = exponent & 255; - exponent /= 256; - exponentLength -= 8; +module.exports = function () { + var active = root; + var length = arguments.length; + var i, it; + // for prevent leaking, start from objects + for (i = 0; i < length; i++) { + if (isObject(it = arguments[i])) active = active.next(i, it, true); } - buffer[index - 1] |= sign * 128; - return buffer; + if (this === $Object && active === root) throw new $TypeError('Composite keys must contain a non-primitive component'); + for (i = 0; i < length; i++) { + if (!isObject(it = arguments[i])) active = active.next(i, it, false); + } return active; }; -var unpack = function (buffer, mantissaLength) { - var bytes = buffer.length; - var exponentLength = bytes * 8 - mantissaLength - 1; - var eMax = (1 << exponentLength) - 1; - var eBias = eMax >> 1; - var nBits = exponentLength - 7; - var index = bytes - 1; - var sign = buffer[index--]; - var exponent = sign & 127; - var mantissa; - sign >>= 7; - while (nBits > 0) { - exponent = exponent * 256 + buffer[index--]; - nBits -= 8; - } - mantissa = exponent & (1 << -nBits) - 1; - exponent >>= -nBits; - nBits += mantissaLength; - while (nBits > 0) { - mantissa = mantissa * 256 + buffer[index--]; - nBits -= 8; - } - if (exponent === 0) { - exponent = 1 - eBias; - } else if (exponent === eMax) { - return mantissa ? NaN : sign ? -Infinity : Infinity; - } else { - mantissa += pow(2, mantissaLength); - exponent -= eBias; - } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); -}; -module.exports = { - pack: pack, - unpack: unpack -}; +/***/ }), +/* 292 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// TODO: Remove this module from `core-js@4` since it's replaced to module below +__webpack_require__(293); /***/ }), -/* 289 */ +/* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); - -// eslint-disable-next-line es/no-typed-arrays -- safe -var getUint8 = uncurryThis(DataView.prototype.getUint8); +var collection = __webpack_require__(294); +var collectionStrong = __webpack_require__(300); -// `DataView.prototype.getUint8Clamped` method -// https://github.com/tc39/proposal-dataview-get-set-uint8clamped -$({ target: 'DataView', proto: true, forced: true }, { - getUint8Clamped: function getUint8Clamped(byteOffset) { - return getUint8(this, byteOffset); - } -}); +// `Map` constructor +// https://tc39.es/ecma262/#sec-map-objects +collection('Map', function (init) { + return function Map() { return init(this, arguments.length ? arguments[0] : undefined); }; +}, collectionStrong); /***/ }), -/* 290 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); +var globalThis = __webpack_require__(3); var uncurryThis = __webpack_require__(13); -var aDataView = __webpack_require__(291); -var toIndex = __webpack_require__(123); -var packIEEE754 = __webpack_require__(288).pack; -var f16round = __webpack_require__(292); +var isForced = __webpack_require__(66); +var defineBuiltIn = __webpack_require__(46); +var InternalMetadataModule = __webpack_require__(295); +var iterate = __webpack_require__(91); +var anInstance = __webpack_require__(132); +var isCallable = __webpack_require__(20); +var isNullOrUndefined = __webpack_require__(16); +var isObject = __webpack_require__(19); +var fails = __webpack_require__(6); +var checkCorrectnessOfIteration = __webpack_require__(184); +var setToStringTag = __webpack_require__(163); +var inheritIfRequired = __webpack_require__(74); -// eslint-disable-next-line es/no-typed-arrays -- safe -var setUint16 = uncurryThis(DataView.prototype.setUint16); +module.exports = function (CONSTRUCTOR_NAME, wrapper, common) { + var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; + var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; + var ADDER = IS_MAP ? 'set' : 'add'; + var NativeConstructor = globalThis[CONSTRUCTOR_NAME]; + var NativePrototype = NativeConstructor && NativeConstructor.prototype; + var Constructor = NativeConstructor; + var exported = {}; -// `DataView.prototype.setFloat16` method -// https://github.com/tc39/proposal-float16array -$({ target: 'DataView', proto: true }, { - setFloat16: function setFloat16(byteOffset, value /* , littleEndian */) { - aDataView(this); - var offset = toIndex(byteOffset); - var bytes = packIEEE754(f16round(value), 10, 2); - return setUint16(this, offset, bytes[1] << 8 | bytes[0], arguments.length > 2 ? arguments[2] : false); + var fixMethod = function (KEY) { + var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]); + defineBuiltIn(NativePrototype, KEY, + KEY === 'add' ? function add(value) { + uncurriedNativeMethod(this, value === 0 ? 0 : value); + return this; + } : KEY === 'delete' ? function (key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY === 'get' ? function get(key) { + return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY === 'has' ? function has(key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : function set(key, value) { + uncurriedNativeMethod(this, key === 0 ? 0 : key, value); + return this; + } + ); + }; + + var REPLACE = isForced( + CONSTRUCTOR_NAME, + !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () { + new NativeConstructor().entries().next(); + })) + ); + + if (REPLACE) { + // create collection constructor + Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); + InternalMetadataModule.enable(); + } else if (isForced(CONSTRUCTOR_NAME, true)) { + var instance = new Constructor(); + // early implementations not supports chaining + var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) !== instance; + // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false + var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); + // most early implementations doesn't supports iterables, most modern - not close it correctly + // eslint-disable-next-line no-new -- required for testing + var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); }); + // for early implementations -0 and +0 not the same + var BUGGY_ZERO = !IS_WEAK && fails(function () { + // V8 ~ Chromium 42- fails only with 5+ elements + var $instance = new NativeConstructor(); + var index = 5; + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + + if (!ACCEPT_ITERABLES) { + Constructor = wrapper(function (dummy, iterable) { + anInstance(dummy, NativePrototype); + var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor); + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + return that; + }); + Constructor.prototype = NativePrototype; + NativePrototype.constructor = Constructor; + } + + if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { + fixMethod('delete'); + fixMethod('has'); + IS_MAP && fixMethod('get'); + } + + if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); + + // weak collections should not contains .clear method + if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; } -}); + + exported[CONSTRUCTOR_NAME] = Constructor; + $({ global: true, constructor: true, forced: Constructor !== NativeConstructor }, exported); + + setToStringTag(Constructor, CONSTRUCTOR_NAME); + + if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); + + return Constructor; +}; /***/ }), -/* 291 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var classof = __webpack_require__(77); +var $ = __webpack_require__(2); +var uncurryThis = __webpack_require__(13); +var hiddenKeys = __webpack_require__(53); +var isObject = __webpack_require__(19); +var hasOwn = __webpack_require__(37); +var defineProperty = __webpack_require__(43).f; +var getOwnPropertyNamesModule = __webpack_require__(56); +var getOwnPropertyNamesExternalModule = __webpack_require__(296); +var isExtensible = __webpack_require__(297); +var uid = __webpack_require__(39); +var FREEZING = __webpack_require__(299); -var $TypeError = TypeError; +var REQUIRED = false; +var METADATA = uid('meta'); +var id = 0; -module.exports = function (argument) { - if (classof(argument) === 'DataView') return argument; - throw new $TypeError('Argument is not a DataView'); +var setMetadata = function (it) { + defineProperty(it, METADATA, { value: { + objectID: 'O' + id++, // object ID + weakData: {} // weak collections IDs + } }); +}; + +var fastKey = function (it, create) { + // return a primitive with prefix + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!hasOwn(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMetadata(it); + // return object ID + } return it[METADATA].objectID; }; +var getWeakData = function (it, create) { + if (!hasOwn(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMetadata(it); + // return the store of weak collections IDs + } return it[METADATA].weakData; +}; -/***/ }), -/* 292 */ -/***/ (function(module, exports, __webpack_require__) { +// add metadata on freeze-family methods calling +var onFreeze = function (it) { + if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it); + return it; +}; -"use strict"; +var enable = function () { + meta.enable = function () { /* empty */ }; + REQUIRED = true; + var getOwnPropertyNames = getOwnPropertyNamesModule.f; + var splice = uncurryThis([].splice); + var test = {}; + test[METADATA] = 1; -var floatRound = __webpack_require__(293); + // prevent exposing of metadata key + if (getOwnPropertyNames(test).length) { + getOwnPropertyNamesModule.f = function (it) { + var result = getOwnPropertyNames(it); + for (var i = 0, length = result.length; i < length; i++) { + if (result[i] === METADATA) { + splice(result, i, 1); + break; + } + } return result; + }; -var FLOAT16_EPSILON = 0.0009765625; -var FLOAT16_MAX_VALUE = 65504; -var FLOAT16_MIN_VALUE = 6.103515625e-05; + $({ target: 'Object', stat: true, forced: true }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + }); + } +}; -// `Math.f16round` method implementation -// https://github.com/tc39/proposal-float16array -module.exports = Math.f16round || function f16round(x) { - return floatRound(x, FLOAT16_EPSILON, FLOAT16_MAX_VALUE, FLOAT16_MIN_VALUE); +var meta = module.exports = { + enable: enable, + fastKey: fastKey, + getWeakData: getWeakData, + onFreeze: onFreeze }; +hiddenKeys[METADATA] = true; + /***/ }), -/* 293 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var sign = __webpack_require__(294); - -var abs = Math.abs; - -var EPSILON = 2.220446049250313e-16; // Number.EPSILON -var INVERSE_EPSILON = 1 / EPSILON; +/* eslint-disable es/no-object-getownpropertynames -- safe */ +var classof = __webpack_require__(14); +var toIndexedObject = __webpack_require__(11); +var $getOwnPropertyNames = __webpack_require__(56).f; +var arraySlice = __webpack_require__(169); -var roundTiesToEven = function (n) { - return n + INVERSE_EPSILON - INVERSE_EPSILON; -}; +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; -module.exports = function (x, FLOAT_EPSILON, FLOAT_MAX_VALUE, FLOAT_MIN_VALUE) { - var n = +x; - var absolute = abs(n); - var s = sign(n); - if (absolute < FLOAT_MIN_VALUE) return s * roundTiesToEven(absolute / FLOAT_MIN_VALUE / FLOAT_EPSILON) * FLOAT_MIN_VALUE * FLOAT_EPSILON; - var a = (1 + FLOAT_EPSILON / EPSILON) * absolute; - var result = a - (a - absolute); - // eslint-disable-next-line no-self-compare -- NaN check - if (result > FLOAT_MAX_VALUE || result !== result) return s * Infinity; - return s * result; +var getWindowNames = function (it) { + try { + return $getOwnPropertyNames(it); + } catch (error) { + return arraySlice(windowNames); + } +}; + +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window +module.exports.f = function getOwnPropertyNames(it) { + return windowNames && classof(it) === 'Window' + ? getWindowNames(it) + : $getOwnPropertyNames(toIndexedObject(it)); }; /***/ }), -/* 294 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// `Math.sign` method implementation -// https://tc39.es/ecma262/#sec-math.sign -// eslint-disable-next-line es/no-math-sign -- safe -module.exports = Math.sign || function sign(x) { - var n = +x; - // eslint-disable-next-line no-self-compare -- NaN check - return n === 0 || n !== n ? n : n < 0 ? -1 : 1; -}; +var fails = __webpack_require__(6); +var isObject = __webpack_require__(19); +var classof = __webpack_require__(14); +var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(298); + +// eslint-disable-next-line es/no-object-isextensible -- safe +var $isExtensible = Object.isExtensible; +var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); }); + +// `Object.isExtensible` method +// https://tc39.es/ecma262/#sec-object.isextensible +module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) { + if (!isObject(it)) return false; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return false; + return $isExtensible ? $isExtensible(it) : true; +} : $isExtensible; /***/ }), -/* 295 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var aDataView = __webpack_require__(291); -var toIndex = __webpack_require__(123); -var toUint8Clamped = __webpack_require__(296); - -// eslint-disable-next-line es/no-typed-arrays -- safe -var setUint8 = uncurryThis(DataView.prototype.setUint8); +// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it +var fails = __webpack_require__(6); -// `DataView.prototype.setUint8Clamped` method -// https://github.com/tc39/proposal-dataview-get-set-uint8clamped -$({ target: 'DataView', proto: true, forced: true }, { - setUint8Clamped: function setUint8Clamped(byteOffset, value) { - aDataView(this); - var offset = toIndex(byteOffset); - return setUint8(this, offset, toUint8Clamped(value)); +module.exports = fails(function () { + if (typeof ArrayBuffer == 'function') { + var buffer = new ArrayBuffer(8); + // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe + if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); } }); /***/ }), -/* 296 */ +/* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var round = Math.round; +var fails = __webpack_require__(6); -module.exports = function (it) { - var value = round(it); - return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; -}; +module.exports = !fails(function () { + // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing + return Object.isExtensible(Object.preventExtensions({})); +}); /***/ }), -/* 297 */ +/* 300 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// https://github.com/tc39/proposal-explicit-resource-management -var $ = __webpack_require__(2); -var DESCRIPTORS = __webpack_require__(5); -var getBuiltIn = __webpack_require__(22); -var aCallable = __webpack_require__(29); -var anInstance = __webpack_require__(140); -var defineBuiltIn = __webpack_require__(46); -var defineBuiltIns = __webpack_require__(221); +var create = __webpack_require__(87); var defineBuiltInAccessor = __webpack_require__(118); -var wellKnownSymbol = __webpack_require__(32); +var defineBuiltIns = __webpack_require__(140); +var bind = __webpack_require__(92); +var anInstance = __webpack_require__(132); +var isNullOrUndefined = __webpack_require__(16); +var iterate = __webpack_require__(91); +var defineIterator = __webpack_require__(301); +var createIterResultObject = __webpack_require__(141); +var setSpecies = __webpack_require__(164); +var DESCRIPTORS = __webpack_require__(5); +var fastKey = __webpack_require__(295).fastKey; var InternalStateModule = __webpack_require__(50); -var addDisposableResource = __webpack_require__(244); - -var SuppressedError = getBuiltIn('SuppressedError'); -var $ReferenceError = ReferenceError; -var DISPOSE = wellKnownSymbol('dispose'); -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - -var DISPOSABLE_STACK = 'DisposableStack'; var setInternalState = InternalStateModule.set; -var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK); +var internalStateGetterFor = InternalStateModule.getterFor; -var HINT = 'sync-dispose'; -var DISPOSED = 'disposed'; -var PENDING = 'pending'; +module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + index: create(null), + first: null, + last: null, + size: 0 + }); + if (!DESCRIPTORS) that.size = 0; + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + }); -var getPendingDisposableStackInternalState = function (stack) { - var internalState = getDisposableStackInternalState(stack); - if (internalState.state === DISPOSED) throw new $ReferenceError(DISPOSABLE_STACK + ' already disposed'); - return internalState; -}; + var Prototype = Constructor.prototype; -var $DisposableStack = function DisposableStack() { - setInternalState(anInstance(this, DisposableStackPrototype), { - type: DISPOSABLE_STACK, - state: PENDING, - stack: [] - }); + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); - if (!DESCRIPTORS) this.disposed = false; -}; + var define = function (that, key, value) { + var state = getInternalState(that); + var entry = getEntry(that, key); + var previous, index; + // change existing entry + if (entry) { + entry.value = value; + // create new entry + } else { + state.last = entry = { + index: index = fastKey(key, true), + key: key, + value: value, + previous: previous = state.last, + next: null, + removed: false + }; + if (!state.first) state.first = entry; + if (previous) previous.next = entry; + if (DESCRIPTORS) state.size++; + else that.size++; + // add to index + if (index !== 'F') state.index[index] = entry; + } return that; + }; -var DisposableStackPrototype = $DisposableStack.prototype; + var getEntry = function (that, key) { + var state = getInternalState(that); + // fast case + var index = fastKey(key); + var entry; + if (index !== 'F') return state.index[index]; + // frozen object case + for (entry = state.first; entry; entry = entry.next) { + if (entry.key === key) return entry; + } + }; -defineBuiltIns(DisposableStackPrototype, { - dispose: function dispose() { - var internalState = getDisposableStackInternalState(this); - if (internalState.state === DISPOSED) return; - internalState.state = DISPOSED; - if (!DESCRIPTORS) this.disposed = true; - var stack = internalState.stack; - var i = stack.length; - var thrown = false; - var suppressed; - while (i) { - var disposeMethod = stack[--i]; - stack[i] = null; - try { - disposeMethod(); - } catch (errorResult) { - if (thrown) { - suppressed = new SuppressedError(errorResult, suppressed); - } else { - thrown = true; - suppressed = errorResult; + defineBuiltIns(Prototype, { + // `{ Map, Set }.prototype.clear()` methods + // https://tc39.es/ecma262/#sec-map.prototype.clear + // https://tc39.es/ecma262/#sec-set.prototype.clear + clear: function clear() { + var that = this; + var state = getInternalState(that); + var entry = state.first; + while (entry) { + entry.removed = true; + if (entry.previous) entry.previous = entry.previous.next = null; + entry = entry.next; } + state.first = state.last = null; + state.index = create(null); + if (DESCRIPTORS) state.size = 0; + else that.size = 0; + }, + // `{ Map, Set }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.delete + // https://tc39.es/ecma262/#sec-set.prototype.delete + 'delete': function (key) { + var that = this; + var state = getInternalState(that); + var entry = getEntry(that, key); + if (entry) { + var next = entry.next; + var prev = entry.previous; + delete state.index[entry.index]; + entry.removed = true; + if (prev) prev.next = next; + if (next) next.previous = prev; + if (state.first === entry) state.first = next; + if (state.last === entry) state.last = prev; + if (DESCRIPTORS) state.size--; + else that.size--; + } return !!entry; + }, + // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods + // https://tc39.es/ecma262/#sec-map.prototype.foreach + // https://tc39.es/ecma262/#sec-set.prototype.foreach + forEach: function forEach(callbackfn /* , that = undefined */) { + var state = getInternalState(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var entry; + while (entry = entry ? entry.next : state.first) { + boundFunction(entry.value, entry.key, this); + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + } + }, + // `{ Map, Set}.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.has + // https://tc39.es/ecma262/#sec-set.prototype.has + has: function has(key) { + return !!getEntry(this, key); + } + }); + + defineBuiltIns(Prototype, IS_MAP ? { + // `Map.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-map.prototype.get + get: function get(key) { + var entry = getEntry(this, key); + return entry && entry.value; + }, + // `Map.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-map.prototype.set + set: function set(key, value) { + return define(this, key === 0 ? 0 : key, value); + } + } : { + // `Set.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-set.prototype.add + add: function add(value) { + return define(this, value = value === 0 ? 0 : value, value); + } + }); + if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', { + configurable: true, + get: function () { + return getInternalState(this).size; } - } - internalState.stack = null; - if (thrown) throw suppressed; - }, - use: function use(value) { - addDisposableResource(getPendingDisposableStackInternalState(this), value, HINT); - return value; - }, - adopt: function adopt(value, onDispose) { - var internalState = getPendingDisposableStackInternalState(this); - aCallable(onDispose); - addDisposableResource(internalState, undefined, HINT, function () { - onDispose(value); }); - return value; - }, - defer: function defer(onDispose) { - var internalState = getPendingDisposableStackInternalState(this); - aCallable(onDispose); - addDisposableResource(internalState, undefined, HINT, onDispose); + return Constructor; }, - move: function move() { - var internalState = getPendingDisposableStackInternalState(this); - var newDisposableStack = new $DisposableStack(); - getDisposableStackInternalState(newDisposableStack).stack = internalState.stack; - internalState.stack = []; - internalState.state = DISPOSED; - if (!DESCRIPTORS) this.disposed = true; - return newDisposableStack; - } -}); + setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { + var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; + var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); + var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); + // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods + // https://tc39.es/ecma262/#sec-map.prototype.entries + // https://tc39.es/ecma262/#sec-map.prototype.keys + // https://tc39.es/ecma262/#sec-map.prototype.values + // https://tc39.es/ecma262/#sec-map.prototype-@@iterator + // https://tc39.es/ecma262/#sec-set.prototype.entries + // https://tc39.es/ecma262/#sec-set.prototype.keys + // https://tc39.es/ecma262/#sec-set.prototype.values + // https://tc39.es/ecma262/#sec-set.prototype-@@iterator + defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { + setInternalState(this, { + type: ITERATOR_NAME, + target: iterated, + state: getInternalCollectionState(iterated), + kind: kind, + last: null + }); + }, function () { + var state = getInternalIteratorState(this); + var kind = state.kind; + var entry = state.last; + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + // get next entry + if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { + // or finish the iteration + state.target = null; + return createIterResultObject(undefined, true); + } + // return step by kind + if (kind === 'keys') return createIterResultObject(entry.key, false); + if (kind === 'values') return createIterResultObject(entry.value, false); + return createIterResultObject([entry.key, entry.value], false); + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); -if (DESCRIPTORS) defineBuiltInAccessor(DisposableStackPrototype, 'disposed', { - configurable: true, - get: function disposed() { - return getDisposableStackInternalState(this).state === DISPOSED; + // `{ Map, Set }.prototype[@@species]` accessors + // https://tc39.es/ecma262/#sec-get-map-@@species + // https://tc39.es/ecma262/#sec-get-set-@@species + setSpecies(CONSTRUCTOR_NAME); } -}); - -defineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: 'dispose' }); -defineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true }); - -$({ global: true, constructor: true }, { - DisposableStack: $DisposableStack -}); +}; /***/ }), -/* 298 */ +/* 301 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var demethodize = __webpack_require__(299); +var call = __webpack_require__(7); +var IS_PURE = __webpack_require__(35); +var FunctionName = __webpack_require__(48); +var isCallable = __webpack_require__(20); +var createIteratorConstructor = __webpack_require__(289); +var getPrototypeOf = __webpack_require__(85); +var setPrototypeOf = __webpack_require__(69); +var setToStringTag = __webpack_require__(163); +var createNonEnumerableProperty = __webpack_require__(42); +var defineBuiltIn = __webpack_require__(46); +var wellKnownSymbol = __webpack_require__(32); +var Iterators = __webpack_require__(95); +var IteratorsCore = __webpack_require__(134); -// `Function.prototype.demethodize` method -// https://github.com/js-choi/proposal-function-demethodize -$({ target: 'Function', proto: true, forced: true }, { - demethodize: demethodize -}); +var PROPER_FUNCTION_NAME = FunctionName.PROPER; +var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; +var IteratorPrototype = IteratorsCore.IteratorPrototype; +var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; +var ITERATOR = wellKnownSymbol('iterator'); +var KEYS = 'keys'; +var VALUES = 'values'; +var ENTRIES = 'entries'; +var returnThis = function () { return this; }; -/***/ }), -/* 299 */ -/***/ (function(module, exports, __webpack_require__) { +module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); -"use strict"; + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; -var uncurryThis = __webpack_require__(13); -var aCallable = __webpack_require__(29); + 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); }; + } -module.exports = function demethodize() { - return uncurryThis(aCallable(this)); -}; + 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; -/***/ }), -/* 300 */ -/***/ (function(module, exports, __webpack_require__) { + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); + if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { + if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf) { + setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); + } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { + defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); + } + } + // Set @@toStringTag to native iterators + setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); + if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; + } + } -"use strict"; + // fix Array.prototype.{ values, @@iterator }.name in V8 / FF + if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { + if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty(IterablePrototype, 'name', VALUES); + } else { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { return call(nativeIterator, this); }; + } + } -var $ = __webpack_require__(2); -var uncurryThis = __webpack_require__(13); -var $isCallable = __webpack_require__(20); -var inspectSource = __webpack_require__(49); -var hasOwn = __webpack_require__(37); -var DESCRIPTORS = __webpack_require__(5); + // 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(IterablePrototype, KEY, methods[KEY]); + } + } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var classRegExp = /^\s*class\b/; -var exec = uncurryThis(classRegExp.exec); + // define iterator + if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { + defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); + } + Iterators[NAME] = defaultIterator; -var isClassConstructor = function (argument) { - try { - // `Function#toString` throws on some built-it function in some legacy engines - // (for example, `DOMQuad` and similar in FF41-) - if (!DESCRIPTORS || !exec(classRegExp, inspectSource(argument))) return false; - } catch (error) { /* empty */ } - var prototype = getOwnPropertyDescriptor(argument, 'prototype'); - return !!prototype && hasOwn(prototype, 'writable') && !prototype.writable; + return methods; }; -// `Function.isCallable` method -// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md -$({ target: 'Function', stat: true, sham: true, forced: true }, { - isCallable: function isCallable(argument) { - return $isCallable(argument) && !isClassConstructor(argument); - } -}); - /***/ }), -/* 301 */ +/* 302 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var isConstructor = __webpack_require__(143); - -// `Function.isConstructor` method -// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md -$({ target: 'Function', stat: true, forced: true }, { - isConstructor: isConstructor -}); +// TODO: Remove this module from `core-js@4` since it's replaced to module below +__webpack_require__(303); /***/ }), -/* 302 */ +/* 303 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +"use strict"; + +var FREEZING = __webpack_require__(299); +var globalThis = __webpack_require__(3); +var uncurryThis = __webpack_require__(13); +var defineBuiltIns = __webpack_require__(140); +var InternalMetadataModule = __webpack_require__(295); +var collection = __webpack_require__(294); +var collectionWeak = __webpack_require__(304); +var isObject = __webpack_require__(19); +var enforceInternalState = __webpack_require__(50).enforce; +var fails = __webpack_require__(6); +var NATIVE_WEAK_MAP = __webpack_require__(51); + +var $Object = Object; +// eslint-disable-next-line es/no-array-isarray -- safe +var isArray = Array.isArray; +// eslint-disable-next-line es/no-object-isextensible -- safe +var isExtensible = $Object.isExtensible; +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = $Object.isFrozen; +// eslint-disable-next-line es/no-object-issealed -- safe +var isSealed = $Object.isSealed; +// eslint-disable-next-line es/no-object-freeze -- safe +var freeze = $Object.freeze; +// eslint-disable-next-line es/no-object-seal -- safe +var seal = $Object.seal; + +var IS_IE11 = !globalThis.ActiveXObject && 'ActiveXObject' in globalThis; +var InternalWeakMap; -var wellKnownSymbol = __webpack_require__(32); -var defineProperty = __webpack_require__(43).f; +var wrapper = function (init) { + return function WeakMap() { + return init(this, arguments.length ? arguments[0] : undefined); + }; +}; -var METADATA = wellKnownSymbol('metadata'); -var FunctionPrototype = Function.prototype; +// `WeakMap` constructor +// https://tc39.es/ecma262/#sec-weakmap-constructor +var $WeakMap = collection('WeakMap', wrapper, collectionWeak); +var WeakMapPrototype = $WeakMap.prototype; +var nativeSet = uncurryThis(WeakMapPrototype.set); -// Function.prototype[@@metadata] -// https://github.com/tc39/proposal-decorator-metadata -if (FunctionPrototype[METADATA] === undefined) { - defineProperty(FunctionPrototype, METADATA, { - value: null +// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them +var hasMSEdgeFreezingBug = function () { + return FREEZING && fails(function () { + var frozenArray = freeze([]); + nativeSet(new $WeakMap(), frozenArray, 1); + return !isFrozen(frozenArray); }); -} - - -/***/ }), -/* 303 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__(2); -var demethodize = __webpack_require__(299); +}; -// `Function.prototype.unThis` method -// https://github.com/js-choi/proposal-function-demethodize -// TODO: Remove from `core-js@4` -$({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, { - unThis: demethodize -}); +// IE11 WeakMap frozen keys fix +// We can't use feature detection because it crash some old IE builds +// https://github.com/zloirock/core-js/issues/485 +if (NATIVE_WEAK_MAP) if (IS_IE11) { + InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true); + InternalMetadataModule.enable(); + var nativeDelete = uncurryThis(WeakMapPrototype['delete']); + var nativeHas = uncurryThis(WeakMapPrototype.has); + var nativeGet = uncurryThis(WeakMapPrototype.get); + defineBuiltIns(WeakMapPrototype, { + 'delete': function (key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeDelete(this, key) || state.frozen['delete'](key); + } return nativeDelete(this, key); + }, + has: function has(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeHas(this, key) || state.frozen.has(key); + } return nativeHas(this, key); + }, + get: function get(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key); + } return nativeGet(this, key); + }, + set: function set(key, value) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceInternalState(this); + if (!state.frozen) state.frozen = new InternalWeakMap(); + nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value); + } else nativeSet(this, key, value); + return this; + } + }); +// Chakra Edge frozen keys fix +} else if (hasMSEdgeFreezingBug()) { + defineBuiltIns(WeakMapPrototype, { + set: function set(key, value) { + var arrayIntegrityLevel; + if (isArray(key)) { + if (isFrozen(key)) arrayIntegrityLevel = freeze; + else if (isSealed(key)) arrayIntegrityLevel = seal; + } + nativeSet(this, key, value); + if (arrayIntegrityLevel) arrayIntegrityLevel(key); + return this; + } + }); +} /***/ }), @@ -10171,70 +10152,136 @@ $({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, { "use strict"; -var $ = __webpack_require__(2); -var globalThis = __webpack_require__(3); -var anInstance = __webpack_require__(140); +var uncurryThis = __webpack_require__(13); +var defineBuiltIns = __webpack_require__(140); +var getWeakData = __webpack_require__(295).getWeakData; +var anInstance = __webpack_require__(132); var anObject = __webpack_require__(45); -var isCallable = __webpack_require__(20); -var getPrototypeOf = __webpack_require__(85); -var defineBuiltInAccessor = __webpack_require__(118); -var createProperty = __webpack_require__(305); -var fails = __webpack_require__(6); +var isNullOrUndefined = __webpack_require__(16); +var isObject = __webpack_require__(19); +var iterate = __webpack_require__(91); +var ArrayIterationModule = __webpack_require__(248); var hasOwn = __webpack_require__(37); -var wellKnownSymbol = __webpack_require__(32); -var IteratorPrototype = __webpack_require__(270).IteratorPrototype; -var DESCRIPTORS = __webpack_require__(5); -var IS_PURE = __webpack_require__(35); +var InternalStateModule = __webpack_require__(50); -var CONSTRUCTOR = 'constructor'; -var ITERATOR = 'Iterator'; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var setInternalState = InternalStateModule.set; +var internalStateGetterFor = InternalStateModule.getterFor; +var find = ArrayIterationModule.find; +var findIndex = ArrayIterationModule.findIndex; +var splice = uncurryThis([].splice); +var id = 0; -var $TypeError = TypeError; -var NativeIterator = globalThis[ITERATOR]; +// fallback for uncaught frozen keys +var uncaughtFrozenStore = function (state) { + return state.frozen || (state.frozen = new UncaughtFrozenStore()); +}; -// FF56- have non-standard global helper `Iterator` -var FORCED = IS_PURE - || !isCallable(NativeIterator) - || NativeIterator.prototype !== IteratorPrototype - // FF44- non-standard `Iterator` passes previous tests - || !fails(function () { NativeIterator({}); }); +var UncaughtFrozenStore = function () { + this.entries = []; +}; -var IteratorConstructor = function Iterator() { - anInstance(this, IteratorPrototype); - if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable'); +var findUncaughtFrozen = function (store, key) { + return find(store.entries, function (it) { + return it[0] === key; + }); }; -var defineIteratorPrototypeAccessor = function (key, value) { - if (DESCRIPTORS) { - defineBuiltInAccessor(IteratorPrototype, key, { - configurable: true, - get: function () { - return value; - }, - set: function (replacement) { - anObject(this); - if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); - if (hasOwn(this, key)) this[key] = replacement; - else createProperty(this, key, replacement); - } +UncaughtFrozenStore.prototype = { + get: function (key) { + var entry = findUncaughtFrozen(this, key); + if (entry) return entry[1]; + }, + has: function (key) { + return !!findUncaughtFrozen(this, key); + }, + set: function (key, value) { + var entry = findUncaughtFrozen(this, key); + if (entry) entry[1] = value; + else this.entries.push([key, value]); + }, + 'delete': function (key) { + var index = findIndex(this.entries, function (it) { + return it[0] === key; }); - } else IteratorPrototype[key] = value; + if (~index) splice(this.entries, index, 1); + return !!~index; + } }; -if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); +module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + id: id++, + frozen: null + }); + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); + }); -if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) { - defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); -} + var Prototype = Constructor.prototype; -IteratorConstructor.prototype = IteratorPrototype; + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); -// `Iterator` constructor -// https://github.com/tc39/proposal-iterator-helpers -$({ global: true, constructor: true, forced: FORCED }, { - Iterator: IteratorConstructor -}); + var define = function (that, key, value) { + var state = getInternalState(that); + var data = getWeakData(anObject(key), true); + if (data === true) uncaughtFrozenStore(state).set(key, value); + else data[state.id] = value; + return that; + }; + + defineBuiltIns(Prototype, { + // `{ WeakMap, WeakSet }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-weakmap.prototype.delete + // https://tc39.es/ecma262/#sec-weakset.prototype.delete + 'delete': function (key) { + var state = getInternalState(this); + if (!isObject(key)) return false; + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state)['delete'](key); + return data && hasOwn(data, state.id) && delete data[state.id]; + }, + // `{ WeakMap, WeakSet }.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-weakmap.prototype.has + // https://tc39.es/ecma262/#sec-weakset.prototype.has + has: function has(key) { + var state = getInternalState(this); + if (!isObject(key)) return false; + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state).has(key); + return data && hasOwn(data, state.id); + } + }); + + defineBuiltIns(Prototype, IS_MAP ? { + // `WeakMap.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-weakmap.prototype.get + get: function get(key) { + var state = getInternalState(this); + if (isObject(key)) { + var data = getWeakData(key); + if (data === true) return uncaughtFrozenStore(state).get(key); + if (data) return data[state.id]; + } + }, + // `WeakMap.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-weakmap.prototype.set + set: function set(key, value) { + return define(this, key, value); + } + } : { + // `WeakSet.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-weakset.prototype.add + add: function add(value) { + return define(this, value, true); + } + }); + + return Constructor; + } +}; /***/ }), @@ -10243,14 +10290,18 @@ $({ global: true, constructor: true, forced: FORCED }, { "use strict"; -var DESCRIPTORS = __webpack_require__(5); -var definePropertyModule = __webpack_require__(43); -var createPropertyDescriptor = __webpack_require__(10); +var $ = __webpack_require__(2); +var getCompositeKeyNode = __webpack_require__(291); +var getBuiltIn = __webpack_require__(22); +var apply = __webpack_require__(67); -module.exports = function (object, key, value) { - if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); - else object[key] = value; -}; +// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey +$({ global: true, forced: true }, { + compositeSymbol: function compositeSymbol() { + if (arguments.length === 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]); + return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol')); + } +}); /***/ }), @@ -10259,14 +10310,20 @@ module.exports = function (object, key, value) { "use strict"; -// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var indexed = __webpack_require__(307); +var uncurryThis = __webpack_require__(13); +var unpackIEEE754 = __webpack_require__(307).unpack; -// `Iterator.prototype.asIndexedPairs` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, { - asIndexedPairs: indexed +// eslint-disable-next-line es/no-typed-arrays -- safe +var getUint16 = uncurryThis(DataView.prototype.getUint16); + +// `DataView.prototype.getFloat16` method +// https://github.com/tc39/proposal-float16array +$({ target: 'DataView', proto: true }, { + getFloat16: function getFloat16(byteOffset /* , littleEndian */) { + var uint16 = getUint16(this, byteOffset, arguments.length > 1 ? arguments[1] : false); + return unpackIEEE754([uint16 & 0xFF, uint16 >> 8 & 0xFF], 10); + } }); @@ -10276,17 +10333,107 @@ $({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true } "use strict"; -var call = __webpack_require__(7); -var map = __webpack_require__(308); +// IEEE754 conversions based on https://github.com/feross/ieee754 +var $Array = Array; +var abs = Math.abs; +var pow = Math.pow; +var floor = Math.floor; +var log = Math.log; +var LN2 = Math.LN2; -var callback = function (value, counter) { - return [counter, value]; +var pack = function (number, mantissaLength, bytes) { + var buffer = $Array(bytes); + var exponentLength = bytes * 8 - mantissaLength - 1; + var eMax = (1 << exponentLength) - 1; + var eBias = eMax >> 1; + var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0; + var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; + var index = 0; + var exponent, mantissa, c; + number = abs(number); + // eslint-disable-next-line no-self-compare -- NaN check + if (number !== number || number === Infinity) { + // eslint-disable-next-line no-self-compare -- NaN check + mantissa = number !== number ? 1 : 0; + exponent = eMax; + } else { + exponent = floor(log(number) / LN2); + c = pow(2, -exponent); + if (number * c < 1) { + exponent--; + c *= 2; + } + if (exponent + eBias >= 1) { + number += rt / c; + } else { + number += rt * pow(2, 1 - eBias); + } + if (number * c >= 2) { + exponent++; + c /= 2; + } + if (exponent + eBias >= eMax) { + mantissa = 0; + exponent = eMax; + } else if (exponent + eBias >= 1) { + mantissa = (number * c - 1) * pow(2, mantissaLength); + exponent += eBias; + } else { + mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength); + exponent = 0; + } + } + while (mantissaLength >= 8) { + buffer[index++] = mantissa & 255; + mantissa /= 256; + mantissaLength -= 8; + } + exponent = exponent << mantissaLength | mantissa; + exponentLength += mantissaLength; + while (exponentLength > 0) { + buffer[index++] = exponent & 255; + exponent /= 256; + exponentLength -= 8; + } + buffer[index - 1] |= sign * 128; + return buffer; }; -// `Iterator.prototype.indexed` method -// https://github.com/tc39/proposal-iterator-helpers -module.exports = function indexed() { - return call(map, this, callback); +var unpack = function (buffer, mantissaLength) { + var bytes = buffer.length; + var exponentLength = bytes * 8 - mantissaLength - 1; + var eMax = (1 << exponentLength) - 1; + var eBias = eMax >> 1; + var nBits = exponentLength - 7; + var index = bytes - 1; + var sign = buffer[index--]; + var exponent = sign & 127; + var mantissa; + sign >>= 7; + while (nBits > 0) { + exponent = exponent * 256 + buffer[index--]; + nBits -= 8; + } + mantissa = exponent & (1 << -nBits) - 1; + exponent >>= -nBits; + nBits += mantissaLength; + while (nBits > 0) { + mantissa = mantissa * 256 + buffer[index--]; + nBits -= 8; + } + if (exponent === 0) { + exponent = 1 - eBias; + } else if (exponent === eMax) { + return mantissa ? NaN : sign ? -Infinity : Infinity; + } else { + mantissa += pow(2, mantissaLength); + exponent -= eBias; + } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); +}; + +module.exports = { + pack: pack, + unpack: unpack }; @@ -10296,29 +10443,19 @@ module.exports = function indexed() { "use strict"; -var call = __webpack_require__(7); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var createIteratorProxy = __webpack_require__(309); -var callWithSafeIterationClosing = __webpack_require__(310); +var $ = __webpack_require__(2); +var uncurryThis = __webpack_require__(13); -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - var result = anObject(call(this.next, iterator)); - var done = this.done = !!result.done; - if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); -}); +// eslint-disable-next-line es/no-typed-arrays -- safe +var getUint8 = uncurryThis(DataView.prototype.getUint8); -// `Iterator.prototype.map` method -// https://github.com/tc39/proposal-iterator-helpers -module.exports = function map(mapper) { - anObject(this); - aCallable(mapper); - return new IteratorProxy(getIteratorDirect(this), { - mapper: mapper - }); -}; +// `DataView.prototype.getUint8Clamped` method +// https://github.com/tc39/proposal-dataview-get-set-uint8clamped +$({ target: 'DataView', proto: true, forced: true }, { + getUint8Clamped: function getUint8Clamped(byteOffset) { + return getUint8(this, byteOffset); + } +}); /***/ }), @@ -10327,591 +10464,566 @@ module.exports = function map(mapper) { "use strict"; -var call = __webpack_require__(7); -var create = __webpack_require__(87); -var createNonEnumerableProperty = __webpack_require__(42); -var defineBuiltIns = __webpack_require__(221); -var wellKnownSymbol = __webpack_require__(32); -var InternalStateModule = __webpack_require__(50); -var getMethod = __webpack_require__(28); -var IteratorPrototype = __webpack_require__(270).IteratorPrototype; -var createIterResultObject = __webpack_require__(223); -var iteratorClose = __webpack_require__(98); +var $ = __webpack_require__(2); +var uncurryThis = __webpack_require__(13); +var aDataView = __webpack_require__(310); +var toIndex = __webpack_require__(123); +var packIEEE754 = __webpack_require__(307).pack; +var f16round = __webpack_require__(311); -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var ITERATOR_HELPER = 'IteratorHelper'; -var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; -var setInternalState = InternalStateModule.set; +// eslint-disable-next-line es/no-typed-arrays -- safe +var setUint16 = uncurryThis(DataView.prototype.setUint16); -var createIteratorProxyPrototype = function (IS_ITERATOR) { - var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); +// `DataView.prototype.setFloat16` method +// https://github.com/tc39/proposal-float16array +$({ target: 'DataView', proto: true }, { + setFloat16: function setFloat16(byteOffset, value /* , littleEndian */) { + aDataView(this); + var offset = toIndex(byteOffset); + var bytes = packIEEE754(f16round(value), 10, 2); + return setUint16(this, offset, bytes[1] << 8 | bytes[0], arguments.length > 2 ? arguments[2] : false); + } +}); - return defineBuiltIns(create(IteratorPrototype), { - next: function next() { - var state = getInternalState(this); - // for simplification: - // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject` - // for `%IteratorHelperPrototype%.next` - just a value - if (IS_ITERATOR) return state.nextHandler(); - try { - var result = state.done ? undefined : state.nextHandler(); - return createIterResultObject(result, state.done); - } catch (error) { - state.done = true; - throw error; - } - }, - 'return': function () { - var state = getInternalState(this); - var iterator = state.iterator; - state.done = true; - if (IS_ITERATOR) { - var returnMethod = getMethod(iterator, 'return'); - return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); - } - if (state.inner) try { - iteratorClose(state.inner.iterator, 'normal'); - } catch (error) { - return iteratorClose(iterator, 'throw', error); - } - iteratorClose(iterator, 'normal'); - return createIterResultObject(undefined, true); - } - }); -}; -var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); -var IteratorHelperPrototype = createIteratorProxyPrototype(false); +/***/ }), +/* 310 */ +/***/ (function(module, exports, __webpack_require__) { -createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); +"use strict"; -module.exports = function (nextHandler, IS_ITERATOR) { - var IteratorProxy = function Iterator(record, state) { - if (state) { - state.iterator = record.iterator; - state.next = record.next; - } else state = record; - state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; - state.nextHandler = nextHandler; - state.counter = 0; - state.done = false; - setInternalState(this, state); - }; +var classof = __webpack_require__(77); - IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype; +var $TypeError = TypeError; - return IteratorProxy; +module.exports = function (argument) { + if (classof(argument) === 'DataView') return argument; + throw new $TypeError('Argument is not a DataView'); }; /***/ }), -/* 310 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var anObject = __webpack_require__(45); -var iteratorClose = __webpack_require__(98); +var floatRound = __webpack_require__(312); -// call something on iterator step with safe closing on error -module.exports = function (iterator, fn, value, ENTRIES) { - try { - return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); - } catch (error) { - iteratorClose(iterator, 'throw', error); - } +var FLOAT16_EPSILON = 0.0009765625; +var FLOAT16_MAX_VALUE = 65504; +var FLOAT16_MIN_VALUE = 6.103515625e-05; + +// `Math.f16round` method implementation +// https://github.com/tc39/proposal-float16array +module.exports = Math.f16round || function f16round(x) { + return floatRound(x, FLOAT16_EPSILON, FLOAT16_MAX_VALUE, FLOAT16_MIN_VALUE); }; /***/ }), -/* 311 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// https://github.com/tc39/proposal-explicit-resource-management -var call = __webpack_require__(7); -var defineBuiltIn = __webpack_require__(46); -var getMethod = __webpack_require__(28); -var hasOwn = __webpack_require__(37); -var wellKnownSymbol = __webpack_require__(32); -var IteratorPrototype = __webpack_require__(270).IteratorPrototype; +var sign = __webpack_require__(313); -var DISPOSE = wellKnownSymbol('dispose'); +var abs = Math.abs; -if (!hasOwn(IteratorPrototype, DISPOSE)) { - defineBuiltIn(IteratorPrototype, DISPOSE, function () { - var $return = getMethod(this, 'return'); - if ($return) call($return, this); - }); -} +var EPSILON = 2.220446049250313e-16; // Number.EPSILON +var INVERSE_EPSILON = 1 / EPSILON; + +var roundTiesToEven = function (n) { + return n + INVERSE_EPSILON - INVERSE_EPSILON; +}; + +module.exports = function (x, FLOAT_EPSILON, FLOAT_MAX_VALUE, FLOAT_MIN_VALUE) { + var n = +x; + var absolute = abs(n); + var s = sign(n); + if (absolute < FLOAT_MIN_VALUE) return s * roundTiesToEven(absolute / FLOAT_MIN_VALUE / FLOAT_EPSILON) * FLOAT_MIN_VALUE * FLOAT_EPSILON; + var a = (1 + FLOAT_EPSILON / EPSILON) * absolute; + var result = a - (a - absolute); + // eslint-disable-next-line no-self-compare -- NaN check + if (result > FLOAT_MAX_VALUE || result !== result) return s * Infinity; + return s * result; +}; /***/ }), -/* 312 */ +/* 313 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// `Math.sign` method implementation +// https://tc39.es/ecma262/#sec-math.sign +// eslint-disable-next-line es/no-math-sign -- safe +module.exports = Math.sign || function sign(x) { + var n = +x; + // eslint-disable-next-line no-self-compare -- NaN check + return n === 0 || n !== n ? n : n < 0 ? -1 : 1; +}; + + +/***/ }), +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var notANaN = __webpack_require__(252); -var toPositiveInteger = __webpack_require__(210); -var createIteratorProxy = __webpack_require__(309); -var IS_PURE = __webpack_require__(35); +var uncurryThis = __webpack_require__(13); +var aDataView = __webpack_require__(310); +var toIndex = __webpack_require__(123); +var toUint8Clamped = __webpack_require__(315); -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - var next = this.next; - var result, done; - while (this.remaining) { - this.remaining--; - result = anObject(call(next, iterator)); - done = this.done = !!result.done; - if (done) return; - } - result = anObject(call(next, iterator)); - done = this.done = !!result.done; - if (!done) return result.value; -}); +// eslint-disable-next-line es/no-typed-arrays -- safe +var setUint8 = uncurryThis(DataView.prototype.setUint8); -// `Iterator.prototype.drop` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { - drop: function drop(limit) { - anObject(this); - var remaining = toPositiveInteger(notANaN(+limit)); - return new IteratorProxy(getIteratorDirect(this), { - remaining: remaining - }); +// `DataView.prototype.setUint8Clamped` method +// https://github.com/tc39/proposal-dataview-get-set-uint8clamped +$({ target: 'DataView', proto: true, forced: true }, { + setUint8Clamped: function setUint8Clamped(byteOffset, value) { + aDataView(this); + var offset = toIndex(byteOffset); + return setUint8(this, offset, toUint8Clamped(value)); } }); /***/ }), -/* 313 */ +/* 315 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var iterate = __webpack_require__(91); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); +var round = Math.round; -// `Iterator.prototype.every` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - every: function every(predicate) { - anObject(this); - aCallable(predicate); - var record = getIteratorDirect(this); - var counter = 0; - return !iterate(record, function (value, stop) { - if (!predicate(value, counter++)) return stop(); - }, { IS_RECORD: true, INTERRUPTED: true }).stopped; - } -}); +module.exports = function (it) { + var value = round(it); + return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; +}; /***/ }), -/* 314 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// https://github.com/tc39/proposal-explicit-resource-management var $ = __webpack_require__(2); -var call = __webpack_require__(7); +var DESCRIPTORS = __webpack_require__(5); +var getBuiltIn = __webpack_require__(22); var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var createIteratorProxy = __webpack_require__(309); -var callWithSafeIterationClosing = __webpack_require__(310); -var IS_PURE = __webpack_require__(35); +var anInstance = __webpack_require__(132); +var defineBuiltIn = __webpack_require__(46); +var defineBuiltIns = __webpack_require__(140); +var defineBuiltInAccessor = __webpack_require__(118); +var wellKnownSymbol = __webpack_require__(32); +var InternalStateModule = __webpack_require__(50); +var addDisposableResource = __webpack_require__(265); -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - var predicate = this.predicate; - var next = this.next; - var result, done, value; - while (true) { - result = anObject(call(next, iterator)); - done = this.done = !!result.done; - if (done) return; - value = result.value; - if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; +var SuppressedError = getBuiltIn('SuppressedError'); +var $ReferenceError = ReferenceError; + +var DISPOSE = wellKnownSymbol('dispose'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + +var DISPOSABLE_STACK = 'DisposableStack'; +var setInternalState = InternalStateModule.set; +var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK); + +var HINT = 'sync-dispose'; +var DISPOSED = 'disposed'; +var PENDING = 'pending'; + +var getPendingDisposableStackInternalState = function (stack) { + var internalState = getDisposableStackInternalState(stack); + if (internalState.state === DISPOSED) throw new $ReferenceError(DISPOSABLE_STACK + ' already disposed'); + return internalState; +}; + +var $DisposableStack = function DisposableStack() { + setInternalState(anInstance(this, DisposableStackPrototype), { + type: DISPOSABLE_STACK, + state: PENDING, + stack: [] + }); + + if (!DESCRIPTORS) this.disposed = false; +}; + +var DisposableStackPrototype = $DisposableStack.prototype; + +defineBuiltIns(DisposableStackPrototype, { + dispose: function dispose() { + var internalState = getDisposableStackInternalState(this); + if (internalState.state === DISPOSED) return; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + var stack = internalState.stack; + var i = stack.length; + var thrown = false; + var suppressed; + while (i) { + var disposeMethod = stack[--i]; + stack[i] = null; + try { + disposeMethod(); + } catch (errorResult) { + if (thrown) { + suppressed = new SuppressedError(errorResult, suppressed); + } else { + thrown = true; + suppressed = errorResult; + } + } + } + internalState.stack = null; + if (thrown) throw suppressed; + }, + use: function use(value) { + addDisposableResource(getPendingDisposableStackInternalState(this), value, HINT); + return value; + }, + adopt: function adopt(value, onDispose) { + var internalState = getPendingDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, function () { + onDispose(value); + }); + return value; + }, + defer: function defer(onDispose) { + var internalState = getPendingDisposableStackInternalState(this); + aCallable(onDispose); + addDisposableResource(internalState, undefined, HINT, onDispose); + }, + move: function move() { + var internalState = getPendingDisposableStackInternalState(this); + var newDisposableStack = new $DisposableStack(); + getDisposableStackInternalState(newDisposableStack).stack = internalState.stack; + internalState.stack = []; + internalState.state = DISPOSED; + if (!DESCRIPTORS) this.disposed = true; + return newDisposableStack; } }); -// `Iterator.prototype.filter` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { - filter: function filter(predicate) { - anObject(this); - aCallable(predicate); - return new IteratorProxy(getIteratorDirect(this), { - predicate: predicate - }); +if (DESCRIPTORS) defineBuiltInAccessor(DisposableStackPrototype, 'disposed', { + configurable: true, + get: function disposed() { + return getDisposableStackInternalState(this).state === DISPOSED; } }); +defineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: 'dispose' }); +defineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true }); + +$({ global: true, constructor: true }, { + DisposableStack: $DisposableStack +}); + /***/ }), -/* 315 */ +/* 317 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var iterate = __webpack_require__(91); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); +var demethodize = __webpack_require__(318); -// `Iterator.prototype.find` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - find: function find(predicate) { - anObject(this); - aCallable(predicate); - var record = getIteratorDirect(this); - var counter = 0; - return iterate(record, function (value, stop) { - if (predicate(value, counter++)) return stop(value); - }, { IS_RECORD: true, INTERRUPTED: true }).result; - } +// `Function.prototype.demethodize` method +// https://github.com/js-choi/proposal-function-demethodize +$({ target: 'Function', proto: true, forced: true }, { + demethodize: demethodize }); /***/ }), -/* 316 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); +var uncurryThis = __webpack_require__(13); var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var getIteratorFlattenable = __webpack_require__(317); -var createIteratorProxy = __webpack_require__(309); -var iteratorClose = __webpack_require__(98); -var IS_PURE = __webpack_require__(35); -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - var mapper = this.mapper; - var result, inner; - - while (true) { - if (inner = this.inner) try { - result = anObject(call(inner.next, inner.iterator)); - if (!result.done) return result.value; - this.inner = null; - } catch (error) { iteratorClose(iterator, 'throw', error); } - - result = anObject(call(this.next, iterator)); - - if (this.done = !!result.done) return; - - try { - this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false); - } catch (error) { iteratorClose(iterator, 'throw', error); } - } -}); - -// `Iterator.prototype.flatMap` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { - flatMap: function flatMap(mapper) { - anObject(this); - aCallable(mapper); - return new IteratorProxy(getIteratorDirect(this), { - mapper: mapper, - inner: null - }); - } -}); +module.exports = function demethodize() { + return uncurryThis(aCallable(this)); +}; /***/ }), -/* 317 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var getIteratorMethod = __webpack_require__(97); +var $ = __webpack_require__(2); +var uncurryThis = __webpack_require__(13); +var $isCallable = __webpack_require__(20); +var inspectSource = __webpack_require__(49); +var hasOwn = __webpack_require__(37); +var DESCRIPTORS = __webpack_require__(5); -module.exports = function (obj, stringHandling) { - if (!stringHandling || typeof obj !== 'string') anObject(obj); - var method = getIteratorMethod(obj); - return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj)); +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var classRegExp = /^\s*class\b/; +var exec = uncurryThis(classRegExp.exec); + +var isClassConstructor = function (argument) { + try { + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + if (!DESCRIPTORS || !exec(classRegExp, inspectSource(argument))) return false; + } catch (error) { /* empty */ } + var prototype = getOwnPropertyDescriptor(argument, 'prototype'); + return !!prototype && hasOwn(prototype, 'writable') && !prototype.writable; }; +// `Function.isCallable` method +// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md +$({ target: 'Function', stat: true, sham: true, forced: true }, { + isCallable: function isCallable(argument) { + return $isCallable(argument) && !isClassConstructor(argument); + } +}); + /***/ }), -/* 318 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var iterate = __webpack_require__(91); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); +var isConstructor = __webpack_require__(167); -// `Iterator.prototype.forEach` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - forEach: function forEach(fn) { - anObject(this); - aCallable(fn); - var record = getIteratorDirect(this); - var counter = 0; - iterate(record, function (value) { - fn(value, counter++); - }, { IS_RECORD: true }); - } +// `Function.isConstructor` method +// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md +$({ target: 'Function', stat: true, forced: true }, { + isConstructor: isConstructor }); /***/ }), -/* 319 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var toObject = __webpack_require__(38); -var isPrototypeOf = __webpack_require__(23); -var IteratorPrototype = __webpack_require__(270).IteratorPrototype; -var createIteratorProxy = __webpack_require__(309); -var getIteratorFlattenable = __webpack_require__(317); -var IS_PURE = __webpack_require__(35); +var wellKnownSymbol = __webpack_require__(32); +var defineProperty = __webpack_require__(43).f; -var IteratorProxy = createIteratorProxy(function () { - return call(this.next, this.iterator); -}, true); +var METADATA = wellKnownSymbol('metadata'); +var FunctionPrototype = Function.prototype; -// `Iterator.from` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', stat: true, forced: IS_PURE }, { - from: function from(O) { - var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O, true); - return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) - ? iteratorRecord.iterator - : new IteratorProxy(iteratorRecord); - } -}); +// Function.prototype[@@metadata] +// https://github.com/tc39/proposal-decorator-metadata +if (FunctionPrototype[METADATA] === undefined) { + defineProperty(FunctionPrototype, METADATA, { + value: null + }); +} /***/ }), -/* 320 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var indexed = __webpack_require__(307); +var demethodize = __webpack_require__(318); -// `Iterator.prototype.indexed` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - indexed: indexed +// `Function.prototype.unThis` method +// https://github.com/js-choi/proposal-function-demethodize +// TODO: Remove from `core-js@4` +$({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, { + unThis: demethodize }); /***/ }), -/* 321 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var map = __webpack_require__(308); -var IS_PURE = __webpack_require__(35); +var indexed = __webpack_require__(324); -// `Iterator.prototype.map` method +// `Iterator.prototype.asIndexedPairs` method // https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { - map: map +$({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, { + asIndexedPairs: indexed }); /***/ }), -/* 322 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* eslint-disable es/no-bigint -- safe */ -var $ = __webpack_require__(2); -var NumericRangeIterator = __webpack_require__(268); +var call = __webpack_require__(7); +var map = __webpack_require__(151); -var $TypeError = TypeError; +var callback = function (value, counter) { + return [counter, value]; +}; -// `Iterator.range` method -// https://github.com/tc39/proposal-Number.range -$({ target: 'Iterator', stat: true, forced: true }, { - range: function range(start, end, option) { - if (typeof start == 'number') return new NumericRangeIterator(start, end, option, 'number', 0, 1); - if (typeof start == 'bigint') return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); - throw new $TypeError('Incorrect Iterator.range arguments'); - } -}); +// `Iterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers +module.exports = function indexed() { + return call(map, this, callback); +}; /***/ }), -/* 323 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var iterate = __webpack_require__(91); +var call = __webpack_require__(7); var aCallable = __webpack_require__(29); var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); +var getIteratorMethod = __webpack_require__(97); +var createIteratorProxy = __webpack_require__(139); -var $TypeError = TypeError; +var $Array = Array; -// `Iterator.prototype.reduce` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - reduce: function reduce(reducer /* , initialValue */) { - anObject(this); - aCallable(reducer); - var record = getIteratorDirect(this); - var noInitial = arguments.length < 2; - var accumulator = noInitial ? undefined : arguments[1]; - var counter = 0; - iterate(record, function (value) { - if (noInitial) { - noInitial = false; - accumulator = value; - } else { - accumulator = reducer(accumulator, value, counter); +var IteratorProxy = createIteratorProxy(function () { + while (true) { + var iterator = this.iterator; + if (!iterator) { + var iterableIndex = this.nextIterableIndex++; + var iterables = this.iterables; + if (iterableIndex >= iterables.length) { + this.done = true; + return; } - counter++; - }, { IS_RECORD: true }); - if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value'); - return accumulator; + var entry = iterables[iterableIndex]; + this.iterables[iterableIndex] = null; + iterator = this.iterator = call(entry.method, entry.iterable); + this.next = iterator.next; + } + var result = anObject(call(this.next, iterator)); + if (result.done) { + this.iterator = null; + this.next = null; + continue; + } + return result.value; + } +}); + +// `Iterator.concat` method +// https://github.com/tc39/proposal-iterator-sequencing +$({ target: 'Iterator', stat: true, forced: true }, { + concat: function concat() { + var length = arguments.length; + var iterables = $Array(length); + for (var index = 0; index < length; index++) { + var item = anObject(arguments[index]); + iterables[index] = { + iterable: item, + method: aCallable(getIteratorMethod(item)) + }; + } + return new IteratorProxy({ + iterables: iterables, + nextIterableIndex: 0, + iterator: null, + next: null + }); } }); /***/ }), -/* 324 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $ = __webpack_require__(2); -var iterate = __webpack_require__(91); -var aCallable = __webpack_require__(29); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); +// https://github.com/tc39/proposal-explicit-resource-management +var call = __webpack_require__(7); +var defineBuiltIn = __webpack_require__(46); +var getMethod = __webpack_require__(28); +var hasOwn = __webpack_require__(37); +var wellKnownSymbol = __webpack_require__(32); +var IteratorPrototype = __webpack_require__(134).IteratorPrototype; + +var DISPOSE = wellKnownSymbol('dispose'); -// `Iterator.prototype.some` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - some: function some(predicate) { - anObject(this); - aCallable(predicate); - var record = getIteratorDirect(this); - var counter = 0; - return iterate(record, function (value, stop) { - if (predicate(value, counter++)) return stop(); - }, { IS_RECORD: true, INTERRUPTED: true }).stopped; - } -}); +if (!hasOwn(IteratorPrototype, DISPOSE)) { + defineBuiltIn(IteratorPrototype, DISPOSE, function () { + var $return = getMethod(this, 'return'); + if ($return) call($return, this); + }); +} /***/ }), -/* 325 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +// TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var call = __webpack_require__(7); -var anObject = __webpack_require__(45); -var getIteratorDirect = __webpack_require__(182); -var notANaN = __webpack_require__(252); -var toPositiveInteger = __webpack_require__(210); -var createIteratorProxy = __webpack_require__(309); -var iteratorClose = __webpack_require__(98); -var IS_PURE = __webpack_require__(35); - -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - if (!this.remaining--) { - this.done = true; - return iteratorClose(iterator, 'normal', undefined); - } - var result = anObject(call(this.next, iterator)); - var done = this.done = !!result.done; - if (!done) return result.value; -}); +var indexed = __webpack_require__(324); -// `Iterator.prototype.take` method +// `Iterator.prototype.indexed` method // https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { - take: function take(limit) { - anObject(this); - var remaining = toPositiveInteger(notANaN(+limit)); - return new IteratorProxy(getIteratorDirect(this), { - remaining: remaining - }); - } +$({ target: 'Iterator', proto: true, real: true, forced: true }, { + indexed: indexed }); /***/ }), -/* 326 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +/* eslint-disable es/no-bigint -- safe */ var $ = __webpack_require__(2); -var anObject = __webpack_require__(45); -var iterate = __webpack_require__(91); -var getIteratorDirect = __webpack_require__(182); +var NumericRangeIterator = __webpack_require__(288); -var push = [].push; +var $TypeError = TypeError; -// `Iterator.prototype.toArray` method -// https://github.com/tc39/proposal-iterator-helpers -$({ target: 'Iterator', proto: true, real: true }, { - toArray: function toArray() { - var result = []; - iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true }); - return result; +// `Iterator.range` method +// https://github.com/tc39/proposal-Number.range +$({ target: 'Iterator', stat: true, forced: true }, { + range: function range(start, end, option) { + if (typeof start == 'number') return new NumericRangeIterator(start, end, option, 'number', 0, 1); + if (typeof start == 'bigint') return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); + throw new $TypeError('Incorrect Iterator.range arguments'); } }); /***/ }), -/* 327 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var anObject = __webpack_require__(45); -var AsyncFromSyncIterator = __webpack_require__(220); -var WrapAsyncIterator = __webpack_require__(260); -var getIteratorDirect = __webpack_require__(182); +var AsyncFromSyncIterator = __webpack_require__(243); +var WrapAsyncIterator = __webpack_require__(280); +var getIteratorDirect = __webpack_require__(136); var IS_PURE = __webpack_require__(35); // `Iterator.prototype.toAsync` method @@ -10924,14 +11036,14 @@ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { /***/ }), -/* 328 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var NATIVE_RAW_JSON = __webpack_require__(329); -var isRawJSON = __webpack_require__(330); +var NATIVE_RAW_JSON = __webpack_require__(331); +var isRawJSON = __webpack_require__(332); // `JSON.parse` method // https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson @@ -10942,7 +11054,7 @@ $({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, { /***/ }), -/* 329 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10958,7 +11070,7 @@ module.exports = !fails(function () { /***/ }), -/* 330 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10974,7 +11086,7 @@ module.exports = function isRawJSON(O) { /***/ }), -/* 331 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10991,9 +11103,9 @@ var isArray = __webpack_require__(107); var hasOwn = __webpack_require__(37); var toString = __webpack_require__(76); var lengthOfArrayLike = __webpack_require__(62); -var createProperty = __webpack_require__(305); +var createProperty = __webpack_require__(133); var fails = __webpack_require__(6); -var parseJSONString = __webpack_require__(332); +var parseJSONString = __webpack_require__(334); var NATIVE_SYMBOL = __webpack_require__(25); var JSON = globalThis.JSON; @@ -11232,7 +11344,7 @@ $({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, { /***/ }), -/* 332 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11295,23 +11407,23 @@ module.exports = function (source, i) { /***/ }), -/* 333 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var FREEZING = __webpack_require__(280); -var NATIVE_RAW_JSON = __webpack_require__(329); +var FREEZING = __webpack_require__(299); +var NATIVE_RAW_JSON = __webpack_require__(331); var getBuiltIn = __webpack_require__(22); var call = __webpack_require__(7); var uncurryThis = __webpack_require__(13); var isCallable = __webpack_require__(20); -var isRawJSON = __webpack_require__(330); +var isRawJSON = __webpack_require__(332); var toString = __webpack_require__(76); -var createProperty = __webpack_require__(305); -var parseJSONString = __webpack_require__(332); -var getReplacerFunction = __webpack_require__(334); +var createProperty = __webpack_require__(133); +var parseJSONString = __webpack_require__(334); +var getReplacerFunction = __webpack_require__(336); var uid = __webpack_require__(39); var setInternalState = __webpack_require__(50).set; @@ -11388,7 +11500,7 @@ if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: !NATIVE_RAW_JS /***/ }), -/* 334 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11425,14 +11537,14 @@ module.exports = function (replacer) { /***/ }), -/* 335 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aMap = __webpack_require__(336); -var remove = __webpack_require__(132).remove; +var aMap = __webpack_require__(338); +var remove = __webpack_require__(157).remove; // `Map.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods @@ -11450,12 +11562,12 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 336 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(132).has; +var has = __webpack_require__(157).has; // Perform ? RequireInternalSlot(M, [[MapData]]) module.exports = function (it) { @@ -11465,14 +11577,14 @@ module.exports = function (it) { /***/ }), -/* 337 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aMap = __webpack_require__(336); -var MapHelpers = __webpack_require__(132); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); var get = MapHelpers.get; var has = MapHelpers.has; @@ -11499,15 +11611,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 338 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.every` method // https://github.com/tc39/proposal-collection-methods @@ -11523,16 +11635,16 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 339 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var MapHelpers = __webpack_require__(132); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); +var iterate = __webpack_require__(263); var Map = MapHelpers.Map; var set = MapHelpers.set; @@ -11553,15 +11665,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 340 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.find` method // https://github.com/tc39/proposal-collection-methods @@ -11578,15 +11690,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 341 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.findKey` method // https://github.com/tc39/proposal-collection-methods @@ -11603,14 +11715,14 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 342 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var MapHelpers = __webpack_require__(132); -var createCollectionFrom = __webpack_require__(343); +var MapHelpers = __webpack_require__(157); +var createCollectionFrom = __webpack_require__(345); // `Map.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from @@ -11620,7 +11732,7 @@ $({ target: 'Map', stat: true, forced: true }, { /***/ }), -/* 343 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11651,15 +11763,71 @@ module.exports = function (C, adder, ENTRY) { /***/ }), -/* 344 */ +/* 346 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); + +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; + +// `Map.prototype.getOrInsert` method +// https://github.com/tc39/proposal-upsert +$({ target: 'Map', proto: true, real: true, forced: true }, { + getOrInsert: function getOrInsert(key, value) { + if (has(aMap(this), key)) return get(this, key); + set(this, key, value); + return value; + } +}); + + +/***/ }), +/* 347 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var aCallable = __webpack_require__(29); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); + +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; + +// `Map.prototype.getOrInsertComputed` method +// https://github.com/tc39/proposal-upsert +$({ target: 'Map', proto: true, real: true, forced: true }, { + getOrInsertComputed: function getOrInsertComputed(key, callbackfn) { + aMap(this); + aCallable(callbackfn); + if (has(this, key)) return get(this, key); + // CanonicalizeKeyedCollectionKey + if (key === 0 && 1 / key === -Infinity) key = 0; + var value = callbackfn(key); + set(this, key, value); + return value; + } +}); + + +/***/ }), +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var sameValueZero = __webpack_require__(345); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var sameValueZero = __webpack_require__(349); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.includes` method // https://github.com/tc39/proposal-collection-methods @@ -11673,7 +11841,7 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 345 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11687,7 +11855,7 @@ module.exports = function (x, y) { /***/ }), -/* 346 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11697,7 +11865,7 @@ var call = __webpack_require__(7); var iterate = __webpack_require__(91); var isCallable = __webpack_require__(20); var aCallable = __webpack_require__(29); -var Map = __webpack_require__(132).Map; +var Map = __webpack_require__(157).Map; // `Map.keyBy` method // https://github.com/tc39/proposal-collection-methods @@ -11716,14 +11884,14 @@ $({ target: 'Map', stat: true, forced: true }, { /***/ }), -/* 347 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.keyOf` method // https://github.com/tc39/proposal-collection-methods @@ -11738,16 +11906,16 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 348 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var MapHelpers = __webpack_require__(132); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); +var iterate = __webpack_require__(263); var Map = MapHelpers.Map; var set = MapHelpers.set; @@ -11768,16 +11936,16 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 349 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var MapHelpers = __webpack_require__(132); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); +var iterate = __webpack_require__(263); var Map = MapHelpers.Map; var set = MapHelpers.set; @@ -11798,15 +11966,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 350 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aMap = __webpack_require__(336); +var aMap = __webpack_require__(338); var iterate = __webpack_require__(91); -var set = __webpack_require__(132).set; +var set = __webpack_require__(157).set; // `Map.prototype.merge` method // https://github.com/tc39/proposal-collection-methods @@ -11827,14 +11995,14 @@ $({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, { /***/ }), -/* 351 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var MapHelpers = __webpack_require__(132); -var createCollectionOf = __webpack_require__(352); +var MapHelpers = __webpack_require__(157); +var createCollectionOf = __webpack_require__(356); // `Map.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of @@ -11844,7 +12012,7 @@ $({ target: 'Map', stat: true, forced: true }, { /***/ }), -/* 352 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11866,15 +12034,15 @@ module.exports = function (C, adder, ENTRY) { /***/ }), -/* 353 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var aCallable = __webpack_require__(29); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); var $TypeError = TypeError; @@ -11901,15 +12069,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 354 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aMap = __webpack_require__(336); -var iterate = __webpack_require__(242); +var aMap = __webpack_require__(338); +var iterate = __webpack_require__(263); // `Map.prototype.some` method // https://github.com/tc39/proposal-collection-methods @@ -11925,15 +12093,15 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 355 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var aCallable = __webpack_require__(29); -var aMap = __webpack_require__(336); -var MapHelpers = __webpack_require__(132); +var aMap = __webpack_require__(338); +var MapHelpers = __webpack_require__(157); var $TypeError = TypeError; var get = MapHelpers.get; @@ -11959,7 +12127,7 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { /***/ }), -/* 356 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11979,7 +12147,7 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 357 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11994,7 +12162,7 @@ $({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, { /***/ }), -/* 358 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12013,15 +12181,15 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 359 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var scale = __webpack_require__(360); -var fround = __webpack_require__(361); +var scale = __webpack_require__(364); +var fround = __webpack_require__(365); // `Math.fscale` method // https://rwaldron.github.io/proposal-math-extensions/ @@ -12033,7 +12201,7 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 360 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12054,12 +12222,12 @@ module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) /***/ }), -/* 361 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var floatRound = __webpack_require__(293); +var floatRound = __webpack_require__(312); var FLOAT32_EPSILON = 1.1920928955078125e-7; // 2 ** -23; var FLOAT32_MAX_VALUE = 3.4028234663852886e+38; // 2 ** 128 - 2 ** 104 @@ -12074,13 +12242,13 @@ module.exports = Math.fround || function fround(x) { /***/ }), -/* 362 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var f16round = __webpack_require__(292); +var f16round = __webpack_require__(311); // `Math.f16round` method // https://github.com/tc39/proposal-float16array @@ -12088,7 +12256,7 @@ $({ target: 'Math', stat: true }, { f16round: f16round }); /***/ }), -/* 363 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12103,7 +12271,7 @@ $({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, { /***/ }), -/* 364 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12122,13 +12290,13 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 365 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var scale = __webpack_require__(360); +var scale = __webpack_require__(364); // `Math.scale` method // https://rwaldron.github.io/proposal-math-extensions/ @@ -12138,7 +12306,7 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 366 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12157,7 +12325,7 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 367 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12196,7 +12364,7 @@ var twosum = function (x, y) { // `Math.sumPrecise` method // https://github.com/tc39/proposal-math-sum -$({ target: 'Math', stat: true, forced: true }, { +$({ target: 'Math', stat: true }, { // eslint-disable-next-line max-statements -- ok sumPrecise: function sumPrecise(items) { var numbers = []; @@ -12315,7 +12483,7 @@ $({ target: 'Math', stat: true, forced: true }, { /***/ }), -/* 368 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12363,13 +12531,13 @@ $({ target: 'Number', stat: true, forced: true }, { /***/ }), -/* 369 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var NumericRangeIterator = __webpack_require__(268); +var NumericRangeIterator = __webpack_require__(288); // `Number.range` method // https://github.com/tc39/proposal-Number.range @@ -12382,19 +12550,19 @@ $({ target: 'Number', stat: true, forced: true }, { /***/ }), -/* 370 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove this module from `core-js@4` since it's split to modules listed below -__webpack_require__(371); -__webpack_require__(372); -__webpack_require__(373); +__webpack_require__(375); +__webpack_require__(376); +__webpack_require__(377); /***/ }), -/* 371 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12403,18 +12571,18 @@ __webpack_require__(373); var $ = __webpack_require__(2); var call = __webpack_require__(7); var DESCRIPTORS = __webpack_require__(5); -var setSpecies = __webpack_require__(139); +var setSpecies = __webpack_require__(164); var aCallable = __webpack_require__(29); var anObject = __webpack_require__(45); -var anInstance = __webpack_require__(140); +var anInstance = __webpack_require__(132); var isCallable = __webpack_require__(20); var isNullOrUndefined = __webpack_require__(16); var isObject = __webpack_require__(19); var getMethod = __webpack_require__(28); var defineBuiltIn = __webpack_require__(46); -var defineBuiltIns = __webpack_require__(221); +var defineBuiltIns = __webpack_require__(140); var defineBuiltInAccessor = __webpack_require__(118); -var hostReportErrors = __webpack_require__(153); +var hostReportErrors = __webpack_require__(177); var wellKnownSymbol = __webpack_require__(32); var InternalStateModule = __webpack_require__(50); @@ -12588,7 +12756,7 @@ setSpecies(OBSERVABLE); /***/ }), -/* 372 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12597,7 +12765,7 @@ var $ = __webpack_require__(2); var getBuiltIn = __webpack_require__(22); var call = __webpack_require__(7); var anObject = __webpack_require__(45); -var isConstructor = __webpack_require__(143); +var isConstructor = __webpack_require__(167); var getIterator = __webpack_require__(96); var getMethod = __webpack_require__(28); var iterate = __webpack_require__(91); @@ -12630,14 +12798,14 @@ $({ target: 'Observable', stat: true, forced: true }, { /***/ }), -/* 373 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var getBuiltIn = __webpack_require__(22); -var isConstructor = __webpack_require__(143); +var isConstructor = __webpack_require__(167); var Array = getBuiltIn('Array'); @@ -12661,54 +12829,14 @@ $({ target: 'Observable', stat: true, forced: true }, { /***/ }), -/* 374 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $ = __webpack_require__(2); -var globalThis = __webpack_require__(3); -var apply = __webpack_require__(67); -var slice = __webpack_require__(145); -var newPromiseCapabilityModule = __webpack_require__(157); -var aCallable = __webpack_require__(29); -var perform = __webpack_require__(154); - -var Promise = globalThis.Promise; - -var ACCEPT_ARGUMENTS = false; -// Avoiding the use of polyfills of the previous iteration of this proposal -// that does not accept arguments of the callback -var FORCED = !Promise || !Promise['try'] || perform(function () { - Promise['try'](function (argument) { - ACCEPT_ARGUMENTS = argument === 8; - }, 8); -}).error || !ACCEPT_ARGUMENTS; - -// `Promise.try` method -// https://github.com/tc39/proposal-promise-try -$({ target: 'Promise', stat: true, forced: FORCED }, { - 'try': function (callbackfn /* , ...args */) { - var args = arguments.length > 1 ? slice(arguments, 1) : []; - var promiseCapability = newPromiseCapabilityModule.f(this); - var result = perform(function () { - return apply(aCallable(callbackfn), undefined, args); - }); - (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value); - return promiseCapability.promise; - } -}); - - -/***/ }), -/* 375 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var toMetadataKey = ReflectMetadataModule.toKey; @@ -12725,14 +12853,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 376 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -__webpack_require__(273); -__webpack_require__(283); +__webpack_require__(292); +__webpack_require__(302); var getBuiltIn = __webpack_require__(22); var uncurryThis = __webpack_require__(13); var shared = __webpack_require__(33); @@ -12794,13 +12922,13 @@ module.exports = { /***/ }), -/* 377 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var toMetadataKey = ReflectMetadataModule.toKey; @@ -12823,14 +12951,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 378 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var getPrototypeOf = __webpack_require__(85); @@ -12856,7 +12984,7 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 379 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12864,10 +12992,10 @@ $({ target: 'Reflect', stat: true }, { // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); var uncurryThis = __webpack_require__(13); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var getPrototypeOf = __webpack_require__(85); -var $arrayUniqueBy = __webpack_require__(241); +var $arrayUniqueBy = __webpack_require__(262); var arrayUniqueBy = uncurryThis($arrayUniqueBy); var concat = uncurryThis([].concat); @@ -12893,14 +13021,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 380 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var ordinaryGetOwnMetadata = ReflectMetadataModule.get; @@ -12917,14 +13045,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 381 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys; @@ -12941,14 +13069,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 382 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var getPrototypeOf = __webpack_require__(85); @@ -12973,14 +13101,14 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 383 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var ordinaryHasOwnMetadata = ReflectMetadataModule.has; @@ -12997,13 +13125,13 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 384 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var ReflectMetadataModule = __webpack_require__(376); +var ReflectMetadataModule = __webpack_require__(379); var anObject = __webpack_require__(45); var toMetadataKey = ReflectMetadataModule.toKey; @@ -13021,17 +13149,17 @@ $({ target: 'Reflect', stat: true }, { /***/ }), -/* 385 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var uncurryThis = __webpack_require__(13); -var aString = __webpack_require__(386); +var aString = __webpack_require__(389); var hasOwn = __webpack_require__(37); -var padStart = __webpack_require__(387).start; -var WHITESPACES = __webpack_require__(389); +var padStart = __webpack_require__(390).start; +var WHITESPACES = __webpack_require__(392); var $Array = Array; var $escape = RegExp.escape; @@ -13098,7 +13226,7 @@ $({ target: 'RegExp', stat: true, forced: FORCED }, { /***/ }), -/* 386 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13112,7 +13240,7 @@ module.exports = function (argument) { /***/ }), -/* 387 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13121,7 +13249,7 @@ module.exports = function (argument) { var uncurryThis = __webpack_require__(13); var toLength = __webpack_require__(63); var toString = __webpack_require__(76); -var $repeat = __webpack_require__(388); +var $repeat = __webpack_require__(391); var requireObjectCoercible = __webpack_require__(15); var repeat = uncurryThis($repeat); @@ -13155,7 +13283,7 @@ module.exports = { /***/ }), -/* 388 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13179,7 +13307,7 @@ module.exports = function repeat(count) { /***/ }), -/* 389 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13190,14 +13318,14 @@ module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u /***/ }), -/* 390 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aSet = __webpack_require__(175); -var add = __webpack_require__(176).add; +var aSet = __webpack_require__(200); +var add = __webpack_require__(201).add; // `Set.prototype.addAll` method // https://github.com/tc39/proposal-collection-methods @@ -13212,14 +13340,14 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 391 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aSet = __webpack_require__(175); -var remove = __webpack_require__(176).remove; +var aSet = __webpack_require__(200); +var remove = __webpack_require__(201).remove; // `Set.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods @@ -13237,15 +13365,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 392 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $difference = __webpack_require__(174); +var toSetLike = __webpack_require__(396); +var $difference = __webpack_require__(199); // `Set.prototype.difference` method // https://github.com/tc39/proposal-set-methods @@ -13258,14 +13386,14 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 393 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var getBuiltIn = __webpack_require__(22); var isCallable = __webpack_require__(20); -var isIterable = __webpack_require__(394); +var isIterable = __webpack_require__(397); var isObject = __webpack_require__(19); var Set = getBuiltIn('Set'); @@ -13285,7 +13413,7 @@ module.exports = function (it) { /***/ }), -/* 394 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13309,15 +13437,15 @@ module.exports = function (it) { /***/ }), -/* 395 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aSet = __webpack_require__(175); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var iterate = __webpack_require__(203); // `Set.prototype.every` method // https://github.com/tc39/proposal-collection-methods @@ -13333,16 +13461,16 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 396 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aSet = __webpack_require__(175); -var SetHelpers = __webpack_require__(176); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var SetHelpers = __webpack_require__(201); +var iterate = __webpack_require__(203); var Set = SetHelpers.Set; var add = SetHelpers.add; @@ -13363,15 +13491,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 397 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aSet = __webpack_require__(175); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var iterate = __webpack_require__(203); // `Set.prototype.find` method // https://github.com/tc39/proposal-collection-methods @@ -13388,14 +13516,14 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 398 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var SetHelpers = __webpack_require__(176); -var createCollectionFrom = __webpack_require__(343); +var SetHelpers = __webpack_require__(201); +var createCollectionFrom = __webpack_require__(345); // `Set.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from @@ -13405,15 +13533,15 @@ $({ target: 'Set', stat: true, forced: true }, { /***/ }), -/* 399 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $intersection = __webpack_require__(185); +var toSetLike = __webpack_require__(396); +var $intersection = __webpack_require__(209); // `Set.prototype.intersection` method // https://github.com/tc39/proposal-set-methods @@ -13426,15 +13554,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 400 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $isDisjointFrom = __webpack_require__(187); +var toSetLike = __webpack_require__(396); +var $isDisjointFrom = __webpack_require__(211); // `Set.prototype.isDisjointFrom` method // https://github.com/tc39/proposal-set-methods @@ -13447,15 +13575,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 401 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $isSubsetOf = __webpack_require__(189); +var toSetLike = __webpack_require__(396); +var $isSubsetOf = __webpack_require__(213); // `Set.prototype.isSubsetOf` method // https://github.com/tc39/proposal-set-methods @@ -13468,15 +13596,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 402 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $isSupersetOf = __webpack_require__(191); +var toSetLike = __webpack_require__(396); +var $isSupersetOf = __webpack_require__(215); // `Set.prototype.isSupersetOf` method // https://github.com/tc39/proposal-set-methods @@ -13489,15 +13617,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 403 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var uncurryThis = __webpack_require__(13); -var aSet = __webpack_require__(175); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var iterate = __webpack_require__(203); var toString = __webpack_require__(76); var arrayJoin = uncurryThis([].join); @@ -13519,16 +13647,16 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 404 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aSet = __webpack_require__(175); -var SetHelpers = __webpack_require__(176); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var SetHelpers = __webpack_require__(201); +var iterate = __webpack_require__(203); var Set = SetHelpers.Set; var add = SetHelpers.add; @@ -13549,14 +13677,14 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 405 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var SetHelpers = __webpack_require__(176); -var createCollectionOf = __webpack_require__(352); +var SetHelpers = __webpack_require__(201); +var createCollectionOf = __webpack_require__(356); // `Set.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of @@ -13566,15 +13694,15 @@ $({ target: 'Set', stat: true, forced: true }, { /***/ }), -/* 406 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var aCallable = __webpack_require__(29); -var aSet = __webpack_require__(175); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var iterate = __webpack_require__(203); var $TypeError = TypeError; @@ -13601,15 +13729,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 407 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var bind = __webpack_require__(92); -var aSet = __webpack_require__(175); -var iterate = __webpack_require__(178); +var aSet = __webpack_require__(200); +var iterate = __webpack_require__(203); // `Set.prototype.some` method // https://github.com/tc39/proposal-collection-methods @@ -13625,15 +13753,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 408 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $symmetricDifference = __webpack_require__(193); +var toSetLike = __webpack_require__(396); +var $symmetricDifference = __webpack_require__(217); // `Set.prototype.symmetricDifference` method // https://github.com/tc39/proposal-set-methods @@ -13646,15 +13774,15 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 409 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var call = __webpack_require__(7); -var toSetLike = __webpack_require__(393); -var $union = __webpack_require__(195); +var toSetLike = __webpack_require__(396); +var $union = __webpack_require__(219); // `Set.prototype.union` method // https://github.com/tc39/proposal-set-methods @@ -13667,13 +13795,13 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { /***/ }), -/* 410 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var cooked = __webpack_require__(411); +var cooked = __webpack_require__(414); // `String.cooked` method // https://github.com/tc39/proposal-string-cooked @@ -13683,7 +13811,7 @@ $({ target: 'String', stat: true, forced: true }, { /***/ }), -/* 411 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13717,18 +13845,18 @@ module.exports = function cooked(template /* , ...substitutions */) { /***/ }), -/* 412 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var createIteratorConstructor = __webpack_require__(269); -var createIterResultObject = __webpack_require__(223); +var createIteratorConstructor = __webpack_require__(289); +var createIterResultObject = __webpack_require__(141); var requireObjectCoercible = __webpack_require__(15); var toString = __webpack_require__(76); var InternalStateModule = __webpack_require__(50); -var StringMultibyteModule = __webpack_require__(413); +var StringMultibyteModule = __webpack_require__(416); var codeAt = StringMultibyteModule.codeAt; var charAt = StringMultibyteModule.charAt; @@ -13764,7 +13892,7 @@ $({ target: 'String', proto: true, forced: true }, { /***/ }), -/* 413 */ +/* 416 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13808,12 +13936,12 @@ module.exports = { /***/ }), -/* 414 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var FREEZING = __webpack_require__(280); +var FREEZING = __webpack_require__(299); var $ = __webpack_require__(2); var makeBuiltIn = __webpack_require__(47); var uncurryThis = __webpack_require__(13); @@ -13823,11 +13951,11 @@ var toObject = __webpack_require__(38); var isCallable = __webpack_require__(20); var lengthOfArrayLike = __webpack_require__(62); var defineProperty = __webpack_require__(43).f; -var createArrayFromList = __webpack_require__(145); -var WeakMapHelpers = __webpack_require__(415); -var cooked = __webpack_require__(411); -var parse = __webpack_require__(416); -var whitespaces = __webpack_require__(389); +var createArrayFromList = __webpack_require__(169); +var WeakMapHelpers = __webpack_require__(418); +var cooked = __webpack_require__(414); +var parse = __webpack_require__(419); +var whitespaces = __webpack_require__(392); var DedentMap = new WeakMapHelpers.WeakMap(); var weakMapGet = WeakMapHelpers.get; @@ -13900,7 +14028,7 @@ var dedentStringsArray = function (template) { lines[lines.length - 2] = ''; lines[lines.length - 1] = ''; } - // eslint-disable-next-line sonar/no-redundant-assignments -- false positive, https://github.com/SonarSource/SonarJS/issues/4767 + // eslint-disable-next-line sonarjs/no-redundant-assignments -- false positive, https://github.com/SonarSource/SonarJS/issues/4767 for (var j = 2; j < lines.length; j += 2) { var text = lines[j]; var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit; @@ -13968,7 +14096,7 @@ $({ target: 'String', stat: true, forced: true }, { /***/ }), -/* 415 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13989,7 +14117,7 @@ module.exports = { /***/ }), -/* 416 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14115,13 +14243,13 @@ module.exports = function (raw) { /***/ }), -/* 417 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var globalThis = __webpack_require__(3); -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); var defineProperty = __webpack_require__(43).f; var getOwnPropertyDescriptor = __webpack_require__(4).f; @@ -14143,14 +14271,14 @@ if (Symbol) { /***/ }), -/* 418 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var path = __webpack_require__(419); +var path = __webpack_require__(422); var hasOwn = __webpack_require__(37); -var wrappedWellKnownSymbolModule = __webpack_require__(420); +var wrappedWellKnownSymbolModule = __webpack_require__(423); var defineProperty = __webpack_require__(43).f; module.exports = function (NAME) { @@ -14162,7 +14290,7 @@ module.exports = function (NAME) { /***/ }), -/* 419 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14173,7 +14301,7 @@ module.exports = globalThis; /***/ }), -/* 420 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14184,12 +14312,12 @@ exports.f = wellKnownSymbol; /***/ }), -/* 421 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); // `Symbol.customMatcher` well-known symbol // https://github.com/tc39/proposal-pattern-matching @@ -14197,13 +14325,13 @@ defineWellKnownSymbol('customMatcher'); /***/ }), -/* 422 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var globalThis = __webpack_require__(3); -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); var defineProperty = __webpack_require__(43).f; var getOwnPropertyDescriptor = __webpack_require__(4).f; @@ -14225,13 +14353,13 @@ if (Symbol) { /***/ }), -/* 423 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var isRegisteredSymbol = __webpack_require__(424); +var isRegisteredSymbol = __webpack_require__(427); // `Symbol.isRegisteredSymbol` method // https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol @@ -14241,7 +14369,7 @@ $({ target: 'Symbol', stat: true }, { /***/ }), -/* 424 */ +/* 427 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14265,13 +14393,13 @@ module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value) /***/ }), -/* 425 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var isRegisteredSymbol = __webpack_require__(424); +var isRegisteredSymbol = __webpack_require__(427); // `Symbol.isRegistered` method // obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol @@ -14281,13 +14409,13 @@ $({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, { /***/ }), -/* 426 */ +/* 429 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var isWellKnownSymbol = __webpack_require__(427); +var isWellKnownSymbol = __webpack_require__(430); // `Symbol.isWellKnownSymbol` method // https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol @@ -14298,7 +14426,7 @@ $({ target: 'Symbol', stat: true, forced: true }, { /***/ }), -/* 427 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14340,13 +14468,13 @@ module.exports = function isWellKnownSymbol(value) { /***/ }), -/* 428 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var isWellKnownSymbol = __webpack_require__(427); +var isWellKnownSymbol = __webpack_require__(430); // `Symbol.isWellKnown` method // obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol @@ -14357,12 +14485,12 @@ $({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, { /***/ }), -/* 429 */ +/* 432 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); // `Symbol.matcher` well-known symbol // https://github.com/tc39/proposal-pattern-matching @@ -14370,12 +14498,12 @@ defineWellKnownSymbol('matcher'); /***/ }), -/* 430 */ +/* 433 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); // `Symbol.metadata` well-known symbol // https://github.com/tc39/proposal-decorators @@ -14383,13 +14511,13 @@ defineWellKnownSymbol('metadata'); /***/ }), -/* 431 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); // `Symbol.metadataKey` well-known symbol // https://github.com/tc39/proposal-decorator-metadata @@ -14397,12 +14525,12 @@ defineWellKnownSymbol('metadataKey'); /***/ }), -/* 432 */ +/* 435 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineWellKnownSymbol = __webpack_require__(418); +var defineWellKnownSymbol = __webpack_require__(421); // `Symbol.observable` well-known symbol // https://github.com/tc39/proposal-observable @@ -14410,16 +14538,16 @@ defineWellKnownSymbol('observable'); /***/ }), -/* 433 */ +/* 436 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` var getBuiltIn = __webpack_require__(22); -var aConstructor = __webpack_require__(142); -var arrayFromAsync = __webpack_require__(218); -var ArrayBufferViewCore = __webpack_require__(204); +var aConstructor = __webpack_require__(166); +var arrayFromAsync = __webpack_require__(241); +var ArrayBufferViewCore = __webpack_require__(228); var arrayFromConstructorAndList = __webpack_require__(112); var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; @@ -14442,14 +14570,14 @@ exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , map /***/ }), -/* 434 */ +/* 437 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ArrayBufferViewCore = __webpack_require__(204); -var $filterReject = __webpack_require__(227).filterReject; -var fromSpeciesAndList = __webpack_require__(435); +var ArrayBufferViewCore = __webpack_require__(228); +var $filterReject = __webpack_require__(248).filterReject; +var fromSameTypeAndList = __webpack_require__(438); var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; @@ -14458,77 +14586,58 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; // https://github.com/tc39/proposal-array-filtering exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) { var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return fromSpeciesAndList(this, list); + return fromSameTypeAndList(this, list); }, true); /***/ }), -/* 435 */ +/* 438 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var arrayFromConstructorAndList = __webpack_require__(112); -var typedArraySpeciesConstructor = __webpack_require__(436); +var getTypedArrayConstructor = __webpack_require__(228).getTypedArrayConstructor; module.exports = function (instance, list) { - return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list); -}; - - -/***/ }), -/* 436 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var ArrayBufferViewCore = __webpack_require__(204); -var speciesConstructor = __webpack_require__(141); - -var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; -var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; - -// a part of `TypedArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#typedarray-species-create -module.exports = function (originalArray) { - return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray))); + return arrayFromConstructorAndList(getTypedArrayConstructor(instance), list); }; /***/ }), -/* 437 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` -var ArrayBufferViewCore = __webpack_require__(204); -var $group = __webpack_require__(231); -var typedArraySpeciesConstructor = __webpack_require__(436); +var ArrayBufferViewCore = __webpack_require__(228); +var $group = __webpack_require__(252); var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; // `%TypedArray%.prototype.groupBy` method // https://github.com/tc39/proposal-array-grouping exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) { var thisArg = arguments.length > 1 ? arguments[1] : undefined; - return $group(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor); + return $group(aTypedArray(this), callbackfn, thisArg, getTypedArrayConstructor); }, true); /***/ }), -/* 438 */ +/* 440 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` -var ArrayBufferViewCore = __webpack_require__(204); +var ArrayBufferViewCore = __webpack_require__(228); var lengthOfArrayLike = __webpack_require__(62); -var isBigIntArray = __webpack_require__(214); +var isBigIntArray = __webpack_require__(237); var toAbsoluteIndex = __webpack_require__(59); -var toBigInt = __webpack_require__(215); +var toBigInt = __webpack_require__(238); var toIntegerOrInfinity = __webpack_require__(60); var fails = __webpack_require__(6); @@ -14593,15 +14702,15 @@ exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , . /***/ }), -/* 439 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var uncurryThis = __webpack_require__(13); -var ArrayBufferViewCore = __webpack_require__(204); +var ArrayBufferViewCore = __webpack_require__(228); var arrayFromConstructorAndList = __webpack_require__(112); -var $arrayUniqueBy = __webpack_require__(241); +var $arrayUniqueBy = __webpack_require__(262); var aTypedArray = ArrayBufferViewCore.aTypedArray; var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; @@ -14617,7 +14726,7 @@ exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) { /***/ }), -/* 440 */ +/* 442 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14625,7 +14734,7 @@ exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) { var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); var arrayFromConstructorAndList = __webpack_require__(112); -var $fromBase64 = __webpack_require__(441); +var $fromBase64 = __webpack_require__(443); var Uint8Array = globalThis.Uint8Array; @@ -14640,18 +14749,18 @@ if (Uint8Array) $({ target: 'Uint8Array', stat: true }, { /***/ }), -/* 441 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var globalThis = __webpack_require__(3); var uncurryThis = __webpack_require__(13); -var anObjectOrUndefined = __webpack_require__(442); -var aString = __webpack_require__(386); +var anObjectOrUndefined = __webpack_require__(444); +var aString = __webpack_require__(389); var hasOwn = __webpack_require__(37); -var base64Map = __webpack_require__(443); -var getAlphabetOption = __webpack_require__(444); +var base64Map = __webpack_require__(445); +var getAlphabetOption = __webpack_require__(446); var notDetached = __webpack_require__(124); var base64Alphabet = base64Map.c2i; @@ -14803,7 +14912,7 @@ module.exports = function (string, options, into, maxLength) { /***/ }), -/* 442 */ +/* 444 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14820,7 +14929,7 @@ module.exports = function (argument) { /***/ }), -/* 443 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14846,7 +14955,7 @@ module.exports = { /***/ }), -/* 444 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14861,15 +14970,15 @@ module.exports = function (options) { /***/ }), -/* 445 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var aString = __webpack_require__(386); -var $fromHex = __webpack_require__(446); +var aString = __webpack_require__(389); +var $fromHex = __webpack_require__(448); // `Uint8Array.fromHex` method // https://github.com/tc39/proposal-arraybuffer-base64 @@ -14881,7 +14990,7 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', stat: true }, { /***/ }), -/* 446 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14914,15 +15023,15 @@ module.exports = function (string, into) { /***/ }), -/* 447 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var $fromBase64 = __webpack_require__(441); -var anUint8Array = __webpack_require__(448); +var $fromBase64 = __webpack_require__(443); +var anUint8Array = __webpack_require__(450); var Uint8Array = globalThis.Uint8Array; @@ -14940,7 +15049,7 @@ if (Uint8Array) $({ target: 'Uint8Array', proto: true }, { /***/ }), -/* 448 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14958,17 +15067,17 @@ module.exports = function (argument) { /***/ }), -/* 449 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var aString = __webpack_require__(386); -var anUint8Array = __webpack_require__(448); +var aString = __webpack_require__(389); +var anUint8Array = __webpack_require__(450); var notDetached = __webpack_require__(124); -var $fromHex = __webpack_require__(446); +var $fromHex = __webpack_require__(448); // `Uint8Array.prototype.setFromHex` method // https://github.com/tc39/proposal-arraybuffer-base64 @@ -14984,7 +15093,7 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { /***/ }), -/* 450 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14992,11 +15101,11 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); var uncurryThis = __webpack_require__(13); -var anObjectOrUndefined = __webpack_require__(442); -var anUint8Array = __webpack_require__(448); +var anObjectOrUndefined = __webpack_require__(444); +var anUint8Array = __webpack_require__(450); var notDetached = __webpack_require__(124); -var base64Map = __webpack_require__(443); -var getAlphabetOption = __webpack_require__(444); +var base64Map = __webpack_require__(445); +var getAlphabetOption = __webpack_require__(446); var base64Alphabet = base64Map.i2c; var base64UrlAlphabet = base64Map.i2cUrl; @@ -15040,7 +15149,7 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { /***/ }), -/* 451 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15048,7 +15157,7 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); var uncurryThis = __webpack_require__(13); -var anUint8Array = __webpack_require__(448); +var anUint8Array = __webpack_require__(450); var notDetached = __webpack_require__(124); var numberToString = uncurryThis(1.0.toString); @@ -15070,14 +15179,14 @@ if (globalThis.Uint8Array) $({ target: 'Uint8Array', proto: true }, { /***/ }), -/* 452 */ +/* 454 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aWeakMap = __webpack_require__(453); -var remove = __webpack_require__(415).remove; +var aWeakMap = __webpack_require__(455); +var remove = __webpack_require__(418).remove; // `WeakMap.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods @@ -15095,12 +15204,12 @@ $({ target: 'WeakMap', proto: true, real: true, forced: true }, { /***/ }), -/* 453 */ +/* 455 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(415).has; +var has = __webpack_require__(418).has; // Perform ? RequireInternalSlot(M, [[WeakMapData]]) module.exports = function (it) { @@ -15110,14 +15219,14 @@ module.exports = function (it) { /***/ }), -/* 454 */ +/* 456 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var WeakMapHelpers = __webpack_require__(415); -var createCollectionFrom = __webpack_require__(343); +var WeakMapHelpers = __webpack_require__(418); +var createCollectionFrom = __webpack_require__(345); // `WeakMap.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from @@ -15127,14 +15236,14 @@ $({ target: 'WeakMap', stat: true, forced: true }, { /***/ }), -/* 455 */ +/* 457 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var WeakMapHelpers = __webpack_require__(415); -var createCollectionOf = __webpack_require__(352); +var WeakMapHelpers = __webpack_require__(418); +var createCollectionOf = __webpack_require__(356); // `WeakMap.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of @@ -15144,14 +15253,14 @@ $({ target: 'WeakMap', stat: true, forced: true }, { /***/ }), -/* 456 */ +/* 458 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aWeakMap = __webpack_require__(453); -var WeakMapHelpers = __webpack_require__(415); +var aWeakMap = __webpack_require__(455); +var WeakMapHelpers = __webpack_require__(418); var get = WeakMapHelpers.get; var has = WeakMapHelpers.has; @@ -15178,14 +15287,69 @@ $({ target: 'WeakMap', proto: true, real: true, forced: true }, { /***/ }), -/* 457 */ +/* 459 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var aWeakMap = __webpack_require__(455); +var WeakMapHelpers = __webpack_require__(418); + +var get = WeakMapHelpers.get; +var has = WeakMapHelpers.has; +var set = WeakMapHelpers.set; + +// `WeakMap.prototype.getOrInsert` method +// https://github.com/tc39/proposal-upsert +$({ target: 'WeakMap', proto: true, real: true, forced: true }, { + getOrInsert: function getOrInsert(key, value) { + if (has(aWeakMap(this), key)) return get(this, key); + set(this, key, value); + return value; + } +}); + + +/***/ }), +/* 460 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aWeakSet = __webpack_require__(458); -var add = __webpack_require__(459).add; +var aCallable = __webpack_require__(29); +var aWeakMap = __webpack_require__(455); +var WeakMapHelpers = __webpack_require__(418); + +var get = WeakMapHelpers.get; +var has = WeakMapHelpers.has; +var set = WeakMapHelpers.set; + +// `WeakMap.prototype.getOrInsertComputed` method +// https://github.com/tc39/proposal-upsert +$({ target: 'WeakMap', proto: true, real: true, forced: true }, { + getOrInsertComputed: function getOrInsertComputed(key, callbackfn) { + aWeakMap(this); + aCallable(callbackfn); + if (has(this, key)) return get(this, key); + set(this, key); // key validation + var value = callbackfn(key); + set(this, key, value); + return value; + } +}); + + +/***/ }), +/* 461 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__(2); +var aWeakSet = __webpack_require__(462); +var add = __webpack_require__(463).add; // `WeakSet.prototype.addAll` method // https://github.com/tc39/proposal-collection-methods @@ -15200,12 +15364,12 @@ $({ target: 'WeakSet', proto: true, real: true, forced: true }, { /***/ }), -/* 458 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(459).has; +var has = __webpack_require__(463).has; // Perform ? RequireInternalSlot(M, [[WeakSetData]]) module.exports = function (it) { @@ -15215,7 +15379,7 @@ module.exports = function (it) { /***/ }), -/* 459 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15235,14 +15399,14 @@ module.exports = { /***/ }), -/* 460 */ +/* 464 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var aWeakSet = __webpack_require__(458); -var remove = __webpack_require__(459).remove; +var aWeakSet = __webpack_require__(462); +var remove = __webpack_require__(463).remove; // `WeakSet.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods @@ -15260,14 +15424,14 @@ $({ target: 'WeakSet', proto: true, real: true, forced: true }, { /***/ }), -/* 461 */ +/* 465 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var WeakSetHelpers = __webpack_require__(459); -var createCollectionFrom = __webpack_require__(343); +var WeakSetHelpers = __webpack_require__(463); +var createCollectionFrom = __webpack_require__(345); // `WeakSet.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from @@ -15277,14 +15441,14 @@ $({ target: 'WeakSet', stat: true, forced: true }, { /***/ }), -/* 462 */ +/* 466 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); -var WeakSetHelpers = __webpack_require__(459); -var createCollectionOf = __webpack_require__(352); +var WeakSetHelpers = __webpack_require__(463); +var createCollectionOf = __webpack_require__(356); // `WeakSet.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of @@ -15294,7 +15458,7 @@ $({ target: 'WeakSet', stat: true, forced: true }, { /***/ }), -/* 463 */ +/* 467 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15309,11 +15473,11 @@ var defineProperty = __webpack_require__(43).f; var defineBuiltIn = __webpack_require__(46); var defineBuiltInAccessor = __webpack_require__(118); var hasOwn = __webpack_require__(37); -var anInstance = __webpack_require__(140); +var anInstance = __webpack_require__(132); var anObject = __webpack_require__(45); -var errorToString = __webpack_require__(464); +var errorToString = __webpack_require__(468); var normalizeStringArgument = __webpack_require__(75); -var DOMExceptionConstants = __webpack_require__(465); +var DOMExceptionConstants = __webpack_require__(469); var clearErrorStack = __webpack_require__(81); var InternalStateModule = __webpack_require__(50); var DESCRIPTORS = __webpack_require__(5); @@ -15446,7 +15610,7 @@ for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) { /***/ }), -/* 464 */ +/* 468 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15482,7 +15646,7 @@ module.exports = INCORRECT_TO_STRING ? function toString() { /***/ }), -/* 465 */ +/* 469 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15517,7 +15681,7 @@ module.exports = { /***/ }), -/* 466 */ +/* 470 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15528,10 +15692,10 @@ var getBuiltIn = __webpack_require__(22); var createPropertyDescriptor = __webpack_require__(10); var defineProperty = __webpack_require__(43).f; var hasOwn = __webpack_require__(37); -var anInstance = __webpack_require__(140); +var anInstance = __webpack_require__(132); var inheritIfRequired = __webpack_require__(74); var normalizeStringArgument = __webpack_require__(75); -var DOMExceptionConstants = __webpack_require__(465); +var DOMExceptionConstants = __webpack_require__(469); var clearErrorStack = __webpack_require__(81); var DESCRIPTORS = __webpack_require__(5); var IS_PURE = __webpack_require__(35); @@ -15592,13 +15756,13 @@ if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) { /***/ }), -/* 467 */ +/* 471 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var getBuiltIn = __webpack_require__(22); -var setToStringTag = __webpack_require__(138); +var setToStringTag = __webpack_require__(163); var DOM_EXCEPTION = 'DOMException'; @@ -15607,25 +15771,25 @@ setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION); /***/ }), -/* 468 */ +/* 472 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove this module from `core-js@4` since it's split to modules listed below -__webpack_require__(469); -__webpack_require__(470); +__webpack_require__(473); +__webpack_require__(474); /***/ }), -/* 469 */ +/* 473 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var clearImmediate = __webpack_require__(144).clear; +var clearImmediate = __webpack_require__(168).clear; // `clearImmediate` method // http://w3c.github.io/setImmediate/#si-clearImmediate @@ -15635,15 +15799,15 @@ $({ global: true, bind: true, enumerable: true, forced: globalThis.clearImmediat /***/ }), -/* 470 */ +/* 474 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var globalThis = __webpack_require__(3); -var setTask = __webpack_require__(144).set; -var schedulersFix = __webpack_require__(471); +var setTask = __webpack_require__(168).set; +var schedulersFix = __webpack_require__(475); // https://github.com/oven-sh/bun/issues/1633 var setImmediate = globalThis.setImmediate ? schedulersFix(setTask, false) : setTask; @@ -15656,7 +15820,7 @@ $({ global: true, bind: true, enumerable: true, forced: globalThis.setImmediate /***/ }), -/* 471 */ +/* 475 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15666,8 +15830,8 @@ var apply = __webpack_require__(67); var isCallable = __webpack_require__(20); var ENVIRONMENT = __webpack_require__(128); var USER_AGENT = __webpack_require__(27); -var arraySlice = __webpack_require__(145); -var validateArgumentsLength = __webpack_require__(146); +var arraySlice = __webpack_require__(169); +var validateArgumentsLength = __webpack_require__(170); var Function = globalThis.Function; // dirty IE9- and Bun 0.3.0- checks @@ -15694,7 +15858,7 @@ module.exports = function (scheduler, hasTimeArg) { /***/ }), -/* 472 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15742,7 +15906,7 @@ try { /***/ }), -/* 473 */ +/* 477 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15755,7 +15919,7 @@ var uncurryThis = __webpack_require__(13); var fails = __webpack_require__(6); var uid = __webpack_require__(39); var isCallable = __webpack_require__(20); -var isConstructor = __webpack_require__(143); +var isConstructor = __webpack_require__(167); var isNullOrUndefined = __webpack_require__(16); var isObject = __webpack_require__(19); var isSymbol = __webpack_require__(21); @@ -15763,14 +15927,14 @@ var iterate = __webpack_require__(91); var anObject = __webpack_require__(45); var classof = __webpack_require__(77); var hasOwn = __webpack_require__(37); -var createProperty = __webpack_require__(305); +var createProperty = __webpack_require__(133); var createNonEnumerableProperty = __webpack_require__(42); var lengthOfArrayLike = __webpack_require__(62); -var validateArgumentsLength = __webpack_require__(146); -var getRegExpFlags = __webpack_require__(200); -var MapHelpers = __webpack_require__(132); -var SetHelpers = __webpack_require__(176); -var setIterate = __webpack_require__(178); +var validateArgumentsLength = __webpack_require__(170); +var getRegExpFlags = __webpack_require__(224); +var MapHelpers = __webpack_require__(157); +var SetHelpers = __webpack_require__(201); +var setIterate = __webpack_require__(203); var detachTransferable = __webpack_require__(125); var ERROR_STACK_INSTALLABLE = __webpack_require__(82); var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(129); @@ -16226,9 +16390,13 @@ var tryToTransfer = function (rawTransfer, map) { break; case 'MediaSourceHandle': case 'MessagePort': + case 'MIDIAccess': case 'OffscreenCanvas': case 'ReadableStream': + case 'RTCDataChannel': case 'TransformStream': + case 'WebTransportReceiveStream': + case 'WebTransportSendStream': case 'WritableStream': throwUnpolyfillable(type, TRANSFERRING); } @@ -16280,7 +16448,7 @@ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, for /***/ }), -/* 474 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16288,9 +16456,9 @@ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, for var $ = __webpack_require__(2); var getBuiltIn = __webpack_require__(22); var fails = __webpack_require__(6); -var validateArgumentsLength = __webpack_require__(146); +var validateArgumentsLength = __webpack_require__(170); var toString = __webpack_require__(76); -var USE_NATIVE_URL = __webpack_require__(475); +var USE_NATIVE_URL = __webpack_require__(479); var URL = getBuiltIn('URL'); @@ -16323,7 +16491,7 @@ $({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS || WRONG_ARITY /***/ }), -/* 475 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16372,16 +16540,16 @@ module.exports = !fails(function () { /***/ }), -/* 476 */ +/* 480 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(2); var getBuiltIn = __webpack_require__(22); -var validateArgumentsLength = __webpack_require__(146); +var validateArgumentsLength = __webpack_require__(170); var toString = __webpack_require__(76); -var USE_NATIVE_URL = __webpack_require__(475); +var USE_NATIVE_URL = __webpack_require__(479); var URL = getBuiltIn('URL'); @@ -16402,7 +16570,7 @@ $({ target: 'URL', stat: true, forced: !USE_NATIVE_URL }, { /***/ }), -/* 477 */ +/* 481 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16410,7 +16578,7 @@ $({ target: 'URL', stat: true, forced: !USE_NATIVE_URL }, { var defineBuiltIn = __webpack_require__(46); var uncurryThis = __webpack_require__(13); var toString = __webpack_require__(76); -var validateArgumentsLength = __webpack_require__(146); +var validateArgumentsLength = __webpack_require__(170); var $URLSearchParams = URLSearchParams; var URLSearchParamsPrototype = $URLSearchParams.prototype; @@ -16458,7 +16626,7 @@ if (params + '' !== 'a=2') { /***/ }), -/* 478 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16466,7 +16634,7 @@ if (params + '' !== 'a=2') { var defineBuiltIn = __webpack_require__(46); var uncurryThis = __webpack_require__(13); var toString = __webpack_require__(76); -var validateArgumentsLength = __webpack_require__(146); +var validateArgumentsLength = __webpack_require__(170); var $URLSearchParams = URLSearchParams; var URLSearchParamsPrototype = $URLSearchParams.prototype; @@ -16493,7 +16661,7 @@ if (params.has('a', 2) || !params.has('a', undefined)) { /***/ }), -/* 479 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; diff --git a/docs/compat/compat-data.js b/docs/compat/compat-data.js index 2b6aacdddbae..92085a993764 100755 --- a/docs/compat/compat-data.js +++ b/docs/compat/compat-data.js @@ -1838,6 +1838,240 @@ "safari": "12.1", "samsung": "10.0" }, + "es.iterator.constructor": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.drop": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.every": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.filter": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.find": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.flat-map": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.for-each": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.from": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.map": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.reduce": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.some": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.take": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, + "es.iterator.to-array": { + "android": "122", + "bun": "1.1.31", + "chrome": "122", + "chrome-android": "122", + "deno": "1.37", + "edge": "122", + "electron": "29.0", + "firefox": "131", + "firefox-android": "131", + "node": "22.0", + "oculus": "32.0", + "opera": "108", + "opera-android": "81", + "opera_mobile": "81", + "quest": "32.0", + "samsung": "26.0" + }, "es.json.stringify": { "android": "72", "bun": "0.1.1", @@ -3588,6 +3822,21 @@ "safari": "11.0", "samsung": "9.0" }, + "es.promise.try": { + "android": "128", + "bun": "1.1.22", + "chrome": "128", + "chrome-android": "128", + "deno": "1.46", + "edge": "128", + "electron": "32.0", + "node": "23.0", + "oculus": "35.0", + "opera": "114", + "opera-android": "85", + "opera_mobile": "85", + "quest": "35.0" + }, "es.promise.with-resolvers": { "android": "119", "bun": "0.7.1", @@ -6401,6 +6650,7 @@ }, "esnext.iterator.constructor": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6417,9 +6667,11 @@ "samsung": "26.0" }, "esnext.iterator.as-indexed-pairs": {}, + "esnext.iterator.concat": {}, "esnext.iterator.dispose": {}, "esnext.iterator.drop": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6437,6 +6689,7 @@ }, "esnext.iterator.every": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6454,6 +6707,7 @@ }, "esnext.iterator.filter": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6471,6 +6725,7 @@ }, "esnext.iterator.find": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6488,6 +6743,7 @@ }, "esnext.iterator.flat-map": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6505,6 +6761,7 @@ }, "esnext.iterator.for-each": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6522,6 +6779,7 @@ }, "esnext.iterator.from": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6540,6 +6798,7 @@ "esnext.iterator.indexed": {}, "esnext.iterator.map": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6558,6 +6817,7 @@ "esnext.iterator.range": {}, "esnext.iterator.reduce": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6575,6 +6835,7 @@ }, "esnext.iterator.some": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6592,6 +6853,7 @@ }, "esnext.iterator.take": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6609,6 +6871,7 @@ }, "esnext.iterator.to-array": { "android": "122", + "bun": "1.1.31", "chrome": "122", "chrome-android": "122", "deno": "1.37", @@ -6677,6 +6940,8 @@ "esnext.map.find": {}, "esnext.map.find-key": {}, "esnext.map.from": {}, + "esnext.map.get-or-insert": {}, + "esnext.map.get-or-insert-computed": {}, "esnext.map.group-by": { "android": "117", "bun": "1.1.2", @@ -6827,9 +7092,15 @@ "bun": "1.1.22", "chrome": "128", "chrome-android": "128", + "deno": "1.46", "edge": "128", "electron": "32.0", - "opera": "114" + "node": "23.0", + "oculus": "35.0", + "opera": "114", + "opera-android": "85", + "opera_mobile": "85", + "quest": "35.0" }, "esnext.promise.with-resolvers": { "android": "119", @@ -7119,9 +7390,11 @@ "edge": "127", "electron": "32.0", "node": "20.5.0", + "oculus": "35.0", "opera": "113", "opera-android": "84", - "opera_mobile": "84" + "opera_mobile": "84", + "quest": "35.0" }, "esnext.symbol.custom-matcher": {}, "esnext.symbol.dispose": { @@ -7286,27 +7559,41 @@ "samsung": "21.0" }, "esnext.uint8-array.from-base64": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.uint8-array.from-hex": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.uint8-array.set-from-base64": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.uint8-array.set-from-hex": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.uint8-array.to-base64": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.uint8-array.to-hex": { - "bun": "1.1.22" + "bun": "1.1.22", + "firefox": "133", + "firefox-android": "133" }, "esnext.weak-map.delete-all": {}, "esnext.weak-map.from": {}, "esnext.weak-map.of": {}, "esnext.weak-map.emplace": {}, + "esnext.weak-map.get-or-insert": {}, + "esnext.weak-map.get-or-insert-computed": {}, "esnext.weak-map.upsert": {}, "esnext.weak-set.add-all": {}, "esnext.weak-set.delete-all": {}, @@ -7481,6 +7768,7 @@ "bun": "1.0.22", "chrome": "86", "chrome-android": "86", + "deno": "1.46.0", "edge": "86", "electron": "11.0", "firefox": "31", diff --git a/docs/compat/tests.js b/docs/compat/tests.js index 0b1b1bdf0c6b..13289840c645 100644 --- a/docs/compat/tests.js +++ b/docs/compat/tests.js @@ -1,5 +1,5 @@ 'use strict'; -/* eslint-disable prefer-regex-literals, radix -- required for testing */ +/* eslint-disable prefer-regex-literals, radix, unicorn/prefer-global-this -- required for testing */ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-lazy-ends, regexp/no-useless-quantifier -- required for testing */ var GLOBAL = typeof global != 'undefined' ? global : Function('return this')(); var WHITESPACES = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + @@ -266,14 +266,14 @@ function NATIVE_RAW_JSON() { function IMMEDIATE() { return setImmediate && clearImmediate && !(IS_BUN && (function () { - var version = global.Bun.version.split('.'); + var version = Bun.version.split('.'); return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0'); })()); } function TIMERS() { return !(/MSIE .\./.test(USERAGENT) || IS_BUN && (function () { - var version = global.Bun.version.split('.'); + var version = Bun.version.split('.'); return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0'); })()); } @@ -673,6 +673,50 @@ GLOBAL.tests = { 'es.global-this': function () { return globalThis; }, + 'es.iterator.constructor': function () { + try { + Iterator({}); + } catch (error) { + return typeof Iterator == 'function' + && Iterator.prototype === Object.getPrototypeOf(Object.getPrototypeOf([].values())); + } + }, + 'es.iterator.drop': function () { + return Iterator.prototype.drop; + }, + 'es.iterator.every': function () { + return Iterator.prototype.every; + }, + 'es.iterator.filter': function () { + return Iterator.prototype.filter; + }, + 'es.iterator.find': function () { + return Iterator.prototype.find; + }, + 'es.iterator.flat-map': function () { + return Iterator.prototype.flatMap; + }, + 'es.iterator.for-each': function () { + return Iterator.prototype.forEach; + }, + 'es.iterator.from': function () { + return Iterator.from; + }, + 'es.iterator.map': function () { + return Iterator.prototype.map; + }, + 'es.iterator.reduce': function () { + return Iterator.prototype.reduce; + }, + 'es.iterator.some': function () { + return Iterator.prototype.some; + }, + 'es.iterator.take': function () { + return Iterator.prototype.take; + }, + 'es.iterator.to-array': function () { + return Iterator.prototype.toArray; + }, 'es.json.stringify': [SYMBOLS_SUPPORT, function () { var symbol = Symbol('stringify detection'); return JSON.stringify([symbol]) === '[null]' @@ -978,6 +1022,13 @@ GLOBAL.tests = { }], 'es.promise.reject': PROMISES_SUPPORT, 'es.promise.resolve': PROMISES_SUPPORT, + 'es.promise.try': [PROMISES_SUPPORT, function () { + var ACCEPT_ARGUMENTS = false; + Promise['try'](function (argument) { + ACCEPT_ARGUMENTS = argument === 8; + }, 8); + return ACCEPT_ARGUMENTS; + }], 'es.promise.with-resolvers': [PROMISES_SUPPORT, function () { return Promise.withResolvers; }], @@ -1626,56 +1677,15 @@ GLOBAL.tests = { 'esnext.function.metadata': function () { return Function.prototype[Symbol.metadata] === null; }, - 'esnext.iterator.constructor': function () { - try { - Iterator({}); - } catch (error) { - return typeof Iterator == 'function' - && Iterator.prototype === Object.getPrototypeOf(Object.getPrototypeOf([].values())); - } + 'esnext.iterator.concat': function () { + return Iterator.concat; }, 'esnext.iterator.dispose': function () { return [].keys()[Symbol.dispose]; }, - 'esnext.iterator.drop': function () { - return Iterator.prototype.drop; - }, - 'esnext.iterator.every': function () { - return Iterator.prototype.every; - }, - 'esnext.iterator.filter': function () { - return Iterator.prototype.filter; - }, - 'esnext.iterator.find': function () { - return Iterator.prototype.find; - }, - 'esnext.iterator.flat-map': function () { - return Iterator.prototype.flatMap; - }, - 'esnext.iterator.for-each': function () { - return Iterator.prototype.forEach; - }, - 'esnext.iterator.from': function () { - return Iterator.from; - }, - 'esnext.iterator.map': function () { - return Iterator.prototype.map; - }, 'esnext.iterator.range': function () { return Iterator.range; }, - 'esnext.iterator.reduce': function () { - return Iterator.prototype.reduce; - }, - 'esnext.iterator.some': function () { - return Iterator.prototype.some; - }, - 'esnext.iterator.take': function () { - return Iterator.prototype.take; - }, - 'esnext.iterator.to-array': function () { - return Iterator.prototype.toArray; - }, 'esnext.iterator.to-async': function () { return Iterator.prototype.toAsync; }, @@ -1692,9 +1702,6 @@ GLOBAL.tests = { 'esnext.map.delete-all': function () { return Map.prototype.deleteAll; }, - 'esnext.map.emplace': function () { - return Map.prototype.emplace; - }, 'esnext.map.every': function () { return Map.prototype.every; }, @@ -1710,6 +1717,12 @@ GLOBAL.tests = { 'esnext.map.from': function () { return Map.from; }, + 'esnext.map.get-or-insert': function () { + return Map.prototype.getOrInsert; + }, + 'esnext.map.get-or-insert-computed': function () { + return Map.prototype.getOrInsertComputed; + }, 'esnext.map.includes': function () { return Map.prototype.includes; }, @@ -1773,13 +1786,6 @@ GLOBAL.tests = { 'esnext.number.from-string': function () { return Number.fromString; }, - 'esnext.promise.try': [PROMISES_SUPPORT, function () { - var ACCEPT_ARGUMENTS = false; - Promise['try'](function (argument) { - ACCEPT_ARGUMENTS = argument === 8; - }, 8); - return ACCEPT_ARGUMENTS; - }], 'esnext.regexp.escape': function () { return RegExp.escape('ab') === '\\x61b'; }, @@ -1875,8 +1881,11 @@ GLOBAL.tests = { 'esnext.weak-map.delete-all': function () { return WeakMap.prototype.deleteAll; }, - 'esnext.weak-map.emplace': function () { - return WeakMap.prototype.emplace; + 'esnext.weak-map.get-or-insert': function () { + return WeakMap.prototype.getOrInsert; + }, + 'esnext.weak-map.get-or-insert-computed': function () { + return WeakMap.prototype.getOrInsertComputed; }, 'esnext.weak-map.from': function () { return WeakMap.from; diff --git a/package-lock.json b/package-lock.json index 6e6988c28f41..7c8061f45394 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "core-js", - "version": "3.38.1", + "version": "3.39.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "version": "3.38.1", + "version": "3.39.0", "license": "MIT", "workspaces": [ "./packages/*" @@ -5643,7 +5643,7 @@ } }, "packages/core-js": { - "version": "3.38.1", + "version": "3.39.0", "hasInstallScript": true, "license": "MIT", "funding": { @@ -5652,11 +5652,11 @@ } }, "packages/core-js-builder": { - "version": "3.38.1", + "version": "3.39.0", "license": "MIT", "dependencies": { - "core-js": "3.38.1", - "core-js-compat": "3.38.1", + "core-js": "3.39.0", + "core-js-compat": "3.39.0", "mkdirp": ">=0.5.6 <1", "webpack": ">=4.47.0 <5" }, @@ -5669,7 +5669,7 @@ } }, "packages/core-js-bundle": { - "version": "3.38.1", + "version": "3.39.0", "hasInstallScript": true, "license": "MIT", "funding": { @@ -5678,7 +5678,7 @@ } }, "packages/core-js-compat": { - "version": "3.38.1", + "version": "3.39.0", "license": "MIT", "dependencies": { "browserslist": "^4.24.2" @@ -5689,7 +5689,7 @@ } }, "packages/core-js-pure": { - "version": "3.38.1", + "version": "3.39.0", "hasInstallScript": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 86b69ac1f37f..5cdf5aaba993 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.38.1", + "version": "3.39.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" diff --git a/packages/core-js-builder/package.json b/packages/core-js-builder/package.json index f5af72681018..16f29de6332c 100644 --- a/packages/core-js-builder/package.json +++ b/packages/core-js-builder/package.json @@ -1,6 +1,6 @@ { "name": "core-js-builder", - "version": "3.38.1", + "version": "3.39.0", "type": "commonjs", "description": "core-js builder", "repository": { @@ -22,8 +22,8 @@ "main": "index.js", "types": "index.d.ts", "dependencies": { - "core-js": "3.38.1", - "core-js-compat": "3.38.1", + "core-js": "3.39.0", + "core-js-compat": "3.39.0", "mkdirp": ">=0.5.6 <1", "webpack": ">=4.47.0 <5" }, diff --git a/packages/core-js-bundle/package.json b/packages/core-js-bundle/package.json index c9f36eaa7036..657d7f2ea5b6 100644 --- a/packages/core-js-bundle/package.json +++ b/packages/core-js-bundle/package.json @@ -1,6 +1,6 @@ { "name": "core-js-bundle", - "version": "3.38.1", + "version": "3.39.0", "type": "commonjs", "description": "Standard library", "keywords": [ diff --git a/packages/core-js-compat/README.md b/packages/core-js-compat/README.md index a6bf3a1a949c..13e82a6409aa 100644 --- a/packages/core-js-compat/README.md +++ b/packages/core-js-compat/README.md @@ -27,7 +27,7 @@ const { exclude: [ // optional list / filter of modules to exclude, the signature is similar to `modules` option 'web.atob', ], - version: '3.38', // used `core-js` version, by default - the latest + version: '3.39', // used `core-js` version, by default - the latest inverse: false, // inverse of the result - shows modules that are NOT required for the target environment }); @@ -125,9 +125,9 @@ require('core-js-compat/modules'); // => Array require('core-js-compat').modules; // => Array // the subset of modules which available in the passed `core-js` version: -require('core-js-compat/get-modules-list-for-target-version')('3.38'); // => Array +require('core-js-compat/get-modules-list-for-target-version')('3.39'); // => Array // or -require('core-js-compat').getModulesListForTargetVersion('3.38'); // => Array +require('core-js-compat').getModulesListForTargetVersion('3.39'); // => Array ``` If you wanna help to improve this data, you could take a look at the related section of [`CONTRIBUTING.md`](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#how-to-update-core-js-compat-data). The visualization of compatibility data and the browser tests runner is available [here](http://zloirock.github.io/core-js/compat/), the example: diff --git a/packages/core-js-compat/package.json b/packages/core-js-compat/package.json index 1f8442fbdd9b..21c8f75de4df 100644 --- a/packages/core-js-compat/package.json +++ b/packages/core-js-compat/package.json @@ -1,6 +1,6 @@ { "name": "core-js-compat", - "version": "3.38.1", + "version": "3.39.0", "type": "commonjs", "description": "core-js compat", "repository": { diff --git a/packages/core-js-pure/package.json b/packages/core-js-pure/package.json index 1ae743877fe1..d83a577b5feb 100644 --- a/packages/core-js-pure/package.json +++ b/packages/core-js-pure/package.json @@ -1,6 +1,6 @@ { "name": "core-js-pure", - "version": "3.38.1", + "version": "3.39.0", "type": "commonjs", "description": "Standard library", "keywords": [ diff --git a/packages/core-js/internals/shared-store.js b/packages/core-js/internals/shared-store.js index 4164a4840432..c8c74c1f3f8e 100644 --- a/packages/core-js/internals/shared-store.js +++ b/packages/core-js/internals/shared-store.js @@ -7,9 +7,9 @@ var SHARED = '__core-js_shared__'; var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); (store.versions || (store.versions = [])).push({ - version: '3.38.1', + version: '3.39.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); diff --git a/packages/core-js/package.json b/packages/core-js/package.json index e2e431ac1ea0..426f6e1dca25 100644 --- a/packages/core-js/package.json +++ b/packages/core-js/package.json @@ -1,6 +1,6 @@ { "name": "core-js", - "version": "3.38.1", + "version": "3.39.0", "type": "commonjs", "description": "Standard library", "keywords": [