diff --git a/cli/cli.ts b/cli/cli.ts index 43453e7cc2f..389e0136f79 100644 --- a/cli/cli.ts +++ b/cli/cli.ts @@ -16,7 +16,7 @@ if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) { } else { try { require('source-map-support').install(); - } catch (err) { + } catch { // do nothing } diff --git a/cli/run/commandPlugins.ts b/cli/run/commandPlugins.ts index 0602437e628..e4b2e5feaf6 100644 --- a/cli/run/commandPlugins.ts +++ b/cli/run/commandPlugins.ts @@ -59,7 +59,7 @@ function loadAndRegisterPlugin(inputOptions: InputOptions, pluginText: string): try { plugin = require(prefix + pluginText); break; - } catch (ex) { + } catch { // if this does not work, we try requiring the actual name below } } @@ -68,8 +68,8 @@ function loadAndRegisterPlugin(inputOptions: InputOptions, pluginText: string): try { if (pluginText[0] == '.') pluginText = path.resolve(pluginText); plugin = require(pluginText); - } catch (ex) { - throw new Error(`Cannot load plugin "${pluginText}": ${ex.message}.`); + } catch (err: any) { + throw new Error(`Cannot load plugin "${pluginText}": ${err.message}.`); } } } diff --git a/cli/run/getConfigPath.ts b/cli/run/getConfigPath.ts index 3c8dc2c6ea8..10623faf256 100644 --- a/cli/run/getConfigPath.ts +++ b/cli/run/getConfigPath.ts @@ -14,10 +14,10 @@ export function getConfigPath(commandConfig: string | true): string { const pkgName = commandConfig.slice(5); try { return relative.resolve(`rollup-config-${pkgName}`, cwd); - } catch (err) { + } catch { try { return relative.resolve(pkgName, cwd); - } catch (err) { + } catch (err: any) { if (err.code === 'MODULE_NOT_FOUND') { handleError({ code: 'MISSING_EXTERNAL_CONFIG', diff --git a/cli/run/index.ts b/cli/run/index.ts index e20a6c8db37..3618f5e567a 100644 --- a/cli/run/index.ts +++ b/cli/run/index.ts @@ -74,11 +74,11 @@ export default async function runRollup(command: Record): Promise): Promise { } start(configs); } - } catch (err) { + } catch (err: any) { configs = []; reloadingConfig = false; handleError(err, true); @@ -86,7 +86,7 @@ export async function watch(command: Record): Promise { function start(configs: MergedRollupOptions[]) { try { watcher = rollup.watch(configs as any); - } catch (err) { + } catch (err: any) { return handleError(err); } diff --git a/docs/999-big-list-of-options.md b/docs/999-big-list-of-options.md index f00e768100e..c967738f155 100755 --- a/docs/999-big-list-of-options.md +++ b/docs/999-big-list-of-options.md @@ -460,9 +460,20 @@ Whether to extend the global variable defined by the `name` option in `umd` or ` #### output.generatedCode -Type: `"es5" | "es2015" | { arrowFunctions?: boolean, objectShorthand?: boolean, reservedNamesAsProps?: boolean }`
CLI: `--generatedCode `
Default: `"es5"` +Type: `"es5" | "es2015" | { arrowFunctions?: boolean, objectShorthand?: boolean, preset?: "es5" | "es2015", reservedNamesAsProps?: boolean }`
CLI: `--generatedCode `
Default: `"es5"` -Which language features Rollup can safely use in generated code. This will not transpile any user code but only change the code Rollup uses in wrappers and helpers. +Which language features Rollup can safely use in generated code. This will not transpile any user code but only change the code Rollup uses in wrappers and helpers. You may choose one of several presets: + +- `"es5"`: Do not use ES2015+ features like arrow functions. +- `"es2015"`: Use any JavaScript features up to ES2015. + +**output.generatedCode.arrowFunctions**
Type: `boolean`
CLI: `--generatedCode.arrowFunctions`/`--no-generatedCode.arrowFunctions`
Default: `false` + +Whether to use arrow functions for module wrappers and some auto-generated code snippets. + +```javascript +// input +``` #### output.hoistTransitiveImports diff --git a/package-lock.json b/package-lock.json index 9d2bb335738..2e9102c255d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -328,9 +328,9 @@ } }, "@eslint/eslintrc": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.2.tgz", - "integrity": "sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", "dev": true, "requires": { "ajv": "^6.12.4", @@ -352,6 +352,23 @@ } } }, + "@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/object-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", + "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "dev": true + }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -451,9 +468,9 @@ "dev": true }, "@nodelib/fs.walk": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", - "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.5", @@ -461,9 +478,9 @@ } }, "@rollup/plugin-alias": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.2.tgz", - "integrity": "sha512-wzDnQ6v7CcoRzS0qVwFPrFdYA4Qlr+ookA217Y2Z3DPZE1R8jrFNM3jvGgOf6o6DMjbnQIn5lCIJgHPe1Bt3uw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.5.tgz", + "integrity": "sha512-yzUaSvCC/LJPbl9rnzX3HN7vy0tq7EzHoEiQl1ofh4n5r2Rd5bj/+zcJgaGA76xbw95/JjWQyvHg9rOJp2y0oQ==", "dev": true, "requires": { "slash": "^3.0.0" @@ -481,9 +498,9 @@ } }, "@rollup/plugin-commonjs": { - "version": "19.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-19.0.0.tgz", - "integrity": "sha512-adTpD6ATGbehdaQoZQ6ipDFhdjqsTgpOAhFiPwl+dzre4pPshsecptDPyEFb61JMJ1+mGljktaC4jI8ARMSNyw==", + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-20.0.0.tgz", + "integrity": "sha512-5K0g5W2Ol8hAcTHqcTBHiA7M58tfmYi1o9KxeJuuRNpGaTa5iLjcyemBitCBcKXaHamOBBEH2dGom6v6Unmqjg==", "dev": true, "requires": { "@rollup/pluginutils": "^3.1.0", @@ -522,9 +539,9 @@ } }, "@rollup/plugin-node-resolve": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.0.0.tgz", - "integrity": "sha512-41X411HJ3oikIDivT5OKe9EZ6ud6DXudtfNrGbC4nniaxx2esiWjkLOzgnZsWq1IM8YIeL2rzRGLZLBjlhnZtQ==", + "version": "13.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.0.4.tgz", + "integrity": "sha512-eYq4TFy40O8hjeDs+sIxEH/jc9lyuI2k9DM557WN6rO5OpnC2qXMBNj4IKH1oHrnAazL49C5p0tgP0/VpqJ+/w==", "dev": true, "requires": { "@rollup/pluginutils": "^3.1.0", @@ -536,9 +553,9 @@ } }, "@rollup/plugin-replace": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", - "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-3.0.0.tgz", + "integrity": "sha512-3c7JCbMuYXM4PbPWT4+m/4Y6U60SgsnDT/cCyAyUKwFHg7pTSfsSQzIpETha3a3ig6OdOKzZz87D9ZXIK3qsDg==", "dev": true, "requires": { "@rollup/pluginutils": "^3.1.0", @@ -557,9 +574,9 @@ } }, "@types/braces": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/braces/-/braces-3.0.0.tgz", - "integrity": "sha512-TbH79tcyi9FHwbyboOKeRachRq63mSuWYXOflsNO9ZyE5ClQ/JaozNKl+aWUq87qPNsXasXxi2AbgfwIJ+8GQw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/braces/-/braces-3.0.1.tgz", + "integrity": "sha512-+euflG6ygo4bn0JHtn4pYqcXwRtLvElQ7/nnjDu7iYG56H0+OhCd7d6Ug0IE3WcFpZozBKW2+80FUbv5QGk5AQ==", "dev": true }, "@types/buble": { @@ -597,9 +614,9 @@ } }, "@types/json-schema": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", - "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", "dev": true }, "@types/json5": { @@ -609,9 +626,9 @@ "dev": true }, "@types/micromatch": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/micromatch/-/micromatch-4.0.1.tgz", - "integrity": "sha512-my6fLBvpY70KattTNzYOK6KU1oR1+UCz9ug/JbcF5UrEmeCt9P7DV2t7L8+t18mMPINqGQCE4O8PLOPbI84gxw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-oqXqVb0ci19GtH0vOA/U2TmHTcRY9kuZl4mqUxe0QmJAlIW13kzhuK5pi1i9+ngav8FjpSb9FVS/GE00GLX1VA==", "dev": true, "requires": { "@types/braces": "*" @@ -661,83 +678,82 @@ } }, "@types/signal-exit": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/signal-exit/-/signal-exit-3.0.0.tgz", - "integrity": "sha512-MaJ+16SOXz0Z27EMf3d88+B6UDglq1sn140a+5X/ROLkIcEfRq0CPg+1B2efF1GXQn4n+aKH4ti2hHG4Ya+Dzg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/signal-exit/-/signal-exit-3.0.1.tgz", + "integrity": "sha512-OSitN9PP9E/c4tlt1Qdj3CAz5uHD9Da5rhUqlaKyQRCX1T7Zdpbk6YdeZbR2eiE2ce+NMBgVnMxGqpaPSNQDUQ==", "dev": true }, "@types/yargs-parser": { - "version": "20.2.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz", - "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==", + "version": "20.2.1", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz", + "integrity": "sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==", "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.27.0.tgz", - "integrity": "sha512-DsLqxeUfLVNp3AO7PC3JyaddmEHTtI9qTSAs+RB6ja27QvIM0TA8Cizn1qcS6vOu+WDLFJzkwkgweiyFhssDdQ==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.29.3.tgz", + "integrity": "sha512-tBgfA3K/3TsZY46ROGvoRxQr1wBkclbVqRQep97MjVHJzcRBURRY3sNFqLk0/Xr//BY5hM9H2p/kp+6qim85SA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "4.27.0", - "@typescript-eslint/scope-manager": "4.27.0", + "@typescript-eslint/experimental-utils": "4.29.3", + "@typescript-eslint/scope-manager": "4.29.3", "debug": "^4.3.1", "functional-red-black-tree": "^1.0.1", - "lodash": "^4.17.21", "regexpp": "^3.1.0", "semver": "^7.3.5", "tsutils": "^3.21.0" } }, "@typescript-eslint/experimental-utils": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.27.0.tgz", - "integrity": "sha512-n5NlbnmzT2MXlyT+Y0Jf0gsmAQzCnQSWXKy4RGSXVStjDvS5we9IWbh7qRVKdGcxT0WYlgcCYUK/HRg7xFhvjQ==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.29.3.tgz", + "integrity": "sha512-ffIvbytTVWz+3keg+Sy94FG1QeOvmV9dP2YSdLFHw/ieLXWCa3U1TYu8IRCOpMv2/SPS8XqhM1+ou1YHsdzKrg==", "dev": true, "requires": { "@types/json-schema": "^7.0.7", - "@typescript-eslint/scope-manager": "4.27.0", - "@typescript-eslint/types": "4.27.0", - "@typescript-eslint/typescript-estree": "4.27.0", + "@typescript-eslint/scope-manager": "4.29.3", + "@typescript-eslint/types": "4.29.3", + "@typescript-eslint/typescript-estree": "4.29.3", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/parser": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.27.0.tgz", - "integrity": "sha512-XpbxL+M+gClmJcJ5kHnUpBGmlGdgNvy6cehgR6ufyxkEJMGP25tZKCaKyC0W/JVpuhU3VU1RBn7SYUPKSMqQvQ==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.29.3.tgz", + "integrity": "sha512-jrHOV5g2u8ROghmspKoW7pN8T/qUzk0+DITun0MELptvngtMrwUJ1tv5zMI04CYVEUsSrN4jV7AKSv+I0y0EfQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.27.0", - "@typescript-eslint/types": "4.27.0", - "@typescript-eslint/typescript-estree": "4.27.0", + "@typescript-eslint/scope-manager": "4.29.3", + "@typescript-eslint/types": "4.29.3", + "@typescript-eslint/typescript-estree": "4.29.3", "debug": "^4.3.1" } }, "@typescript-eslint/scope-manager": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.27.0.tgz", - "integrity": "sha512-DY73jK6SEH6UDdzc6maF19AHQJBFVRf6fgAXHPXCGEmpqD4vYgPEzqpFz1lf/daSbOcMpPPj9tyXXDPW2XReAw==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.29.3.tgz", + "integrity": "sha512-x+w8BLXO7iWPkG5mEy9bA1iFRnk36p/goVlYobVWHyDw69YmaH9q6eA+Fgl7kYHmFvWlebUTUfhtIg4zbbl8PA==", "dev": true, "requires": { - "@typescript-eslint/types": "4.27.0", - "@typescript-eslint/visitor-keys": "4.27.0" + "@typescript-eslint/types": "4.29.3", + "@typescript-eslint/visitor-keys": "4.29.3" } }, "@typescript-eslint/types": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.27.0.tgz", - "integrity": "sha512-I4ps3SCPFCKclRcvnsVA/7sWzh7naaM/b4pBO2hVxnM3wrU51Lveybdw5WoIktU/V4KfXrTt94V9b065b/0+wA==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.29.3.tgz", + "integrity": "sha512-s1eV1lKNgoIYLAl1JUba8NhULmf+jOmmeFO1G5MN/RBCyyzg4TIOfIOICVNC06lor+Xmy4FypIIhFiJXOknhIg==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.27.0.tgz", - "integrity": "sha512-KH03GUsUj41sRLLEy2JHstnezgpS5VNhrJouRdmh6yNdQ+yl8w5LrSwBkExM+jWwCJa7Ct2c8yl8NdtNRyQO6g==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.29.3.tgz", + "integrity": "sha512-45oQJA0bxna4O5TMwz55/TpgjX1YrAPOI/rb6kPgmdnemRZx/dB0rsx+Ku8jpDvqTxcE1C/qEbVHbS3h0hflag==", "dev": true, "requires": { - "@typescript-eslint/types": "4.27.0", - "@typescript-eslint/visitor-keys": "4.27.0", + "@typescript-eslint/types": "4.29.3", + "@typescript-eslint/visitor-keys": "4.29.3", "debug": "^4.3.1", "globby": "^11.0.3", "is-glob": "^4.0.1", @@ -746,12 +762,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.27.0.tgz", - "integrity": "sha512-es0GRYNZp0ieckZ938cEANfEhsfHrzuLrePukLKtY3/KPXcq1Xd555Mno9/GOgXhKzn0QfkDLVgqWO3dGY80bg==", + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.3.tgz", + "integrity": "sha512-MGGfJvXT4asUTeVs0Q2m+sY63UsfnA+C/FDgBKV3itLBmM9H0u+URcneePtkd0at1YELmZK6HSolCqM4Fzs6yA==", "dev": true, "requires": { - "@typescript-eslint/types": "4.27.0", + "@typescript-eslint/types": "4.29.3", "eslint-visitor-keys": "^2.0.0" } }, @@ -762,9 +778,9 @@ "dev": true }, "acorn": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.0.tgz", - "integrity": "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.1.tgz", + "integrity": "sha512-asabaBSkEKosYKMITunzX177CXxQ4Q8BSSzMTKD+FefUhipQC70gfW5SiUDhYQ3vk8G+81HqQk7Fv9OXwwn9KA==", "dev": true }, "acorn-dynamic-import": { @@ -774,15 +790,15 @@ "dev": true }, "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true }, "acorn-walk": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.1.0.tgz", - "integrity": "sha512-mjmzmv12YIG/G8JQdQuz2MUDShEJ6teYpT5bmWA4q7iwoGen8xtt3twF3OvzIUl+Q06aWIjvnwQUKvQ6TtMRjg==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.1.1.tgz", + "integrity": "sha512-FbJdceMlPHEAWJOILDk1fXD8lnTlEIWFkqtfk+MvmL5q/qlHfN7GEHcsFZWt/Tea9jRNPWUZG4G976nqAAmU9w==", "dev": true }, "aggregate-error": { @@ -1162,9 +1178,9 @@ "dev": true }, "colorette": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", - "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.3.0.tgz", + "integrity": "sha512-ecORCqbSFP7Wm8Y6lyqMJjexBQqXSF7SSeaTyGGphogUjBlFP9m9o08wy86HL2uB7fMTxtOUzLMk7ogKcxMg1w==", "dev": true }, "commander": { @@ -1209,9 +1225,9 @@ } }, "core-js": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.14.0.tgz", - "integrity": "sha512-3s+ed8er9ahK+zJpp9ZtuVcDoFzHNiZsPbNAAE4KXgrRHbjSqqNN6xGSXq6bq7TZIbKj4NLrLb6bJ5i+vSVjHA==", + "version": "3.16.4", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.16.4.tgz", + "integrity": "sha512-Tq4GVE6XCjE+hcyW6hPy0ofN3hwtLudz5ZRdrlCnsnD/xkm/PWQRudzYHiKgZKUcefV6Q57fhDHjZHJP5dpfSg==", "dev": true }, "cosmiconfig": { @@ -1390,9 +1406,9 @@ } }, "es-abstract": { - "version": "1.18.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", - "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "version": "1.18.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.5.tgz", + "integrity": "sha512-DDggyJLoS91CkJjgauM5c0yZMjiD1uK3KcaCeAmffGwZ+ODWzOkPN4QwRbsK5DOFf06fywmyLci3ZD8jLGhVYA==", "dev": true, "requires": { "call-bind": "^1.0.2", @@ -1401,11 +1417,12 @@ "get-intrinsic": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.2", + "internal-slot": "^1.0.3", "is-callable": "^1.2.3", "is-negative-zero": "^2.0.1", "is-regex": "^1.1.3", "is-string": "^1.0.6", - "object-inspect": "^1.10.3", + "object-inspect": "^1.11.0", "object-keys": "^1.1.1", "object.assign": "^4.1.2", "string.prototype.trimend": "^1.0.4", @@ -1455,13 +1472,14 @@ "dev": true }, "eslint": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", - "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.2", + "@eslint/eslintrc": "^0.4.3", + "@humanwhocodes/config-array": "^0.5.0", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -1511,9 +1529,9 @@ } }, "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -1588,36 +1606,30 @@ "dev": true }, "eslint-import-resolver-node": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", - "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", "dev": true, "requires": { - "debug": "^2.6.9", - "resolve": "^1.13.1" + "debug": "^3.2.7", + "resolve": "^1.20.0" }, "dependencies": { "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true } } }, "eslint-module-utils": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", - "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.2.tgz", + "integrity": "sha512-QG8pcgThYOuqxupd06oYTZoNOGaUdTY1PqK+oS6ElF6vs4pBdk/aYxFVQQXzcrAqp9m7cl7lb2ubazX+g16k2Q==", "dev": true, "requires": { "debug": "^3.2.7", @@ -1636,26 +1648,26 @@ } }, "eslint-plugin-import": { - "version": "2.23.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz", - "integrity": "sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ==", + "version": "2.24.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.24.2.tgz", + "integrity": "sha512-hNVtyhiEtZmpsabL4neEj+6M5DCLgpYyG9nzJY8lZQeQXEn5UPW1DpUdsMHMXsq98dbNm7nt1w9ZMSVpfJdi8Q==", "dev": true, "requires": { "array-includes": "^3.1.3", "array.prototype.flat": "^1.2.4", "debug": "^2.6.9", "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.4", - "eslint-module-utils": "^2.6.1", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.6.2", "find-up": "^2.0.0", "has": "^1.0.3", - "is-core-module": "^2.4.0", + "is-core-module": "^2.6.0", "minimatch": "^3.0.4", - "object.values": "^1.1.3", + "object.values": "^1.1.4", "pkg-up": "^2.0.0", "read-pkg-up": "^3.0.0", "resolve": "^1.20.0", - "tsconfig-paths": "^3.9.0" + "tsconfig-paths": "^3.11.0" }, "dependencies": { "debug": { @@ -1676,6 +1688,15 @@ "esutils": "^2.0.2" } }, + "is-core-module": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.6.0.tgz", + "integrity": "sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -1685,9 +1706,9 @@ } }, "eslint-plugin-prettier": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz", - "integrity": "sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", + "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", "dev": true, "requires": { "prettier-linter-helpers": "^1.0.0" @@ -1831,17 +1852,16 @@ "dev": true }, "fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", + "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", + "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" + "micromatch": "^4.0.4" } }, "fast-json-stable-stringify": { @@ -1857,9 +1877,9 @@ "dev": true }, "fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.12.0.tgz", + "integrity": "sha512-VNX0QkHK3RsXVKr9KrlUv/FoTa0NdbYoHHl7uXHv2rzyHSlxjdNAKug2twd9luJxpcyNeAgf5iPPMutJO67Dfg==", "dev": true, "requires": { "reusify": "^1.0.4" @@ -1994,9 +2014,9 @@ } }, "flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", "dev": true }, "foreground-child": { @@ -2130,18 +2150,18 @@ } }, "globals": { - "version": "13.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", - "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", "dev": true, "requires": { "type-fest": "^0.20.2" } }, "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", "dev": true, "requires": { "array-union": "^2.1.0", @@ -2191,6 +2211,15 @@ "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", "dev": true }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, "hash.js": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", @@ -2293,6 +2322,17 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, "interpret": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", @@ -2306,10 +2346,13 @@ "dev": true }, "is-bigint": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.2.tgz", - "integrity": "sha512-0JV5+SOCQkIdzjBK9buARcV804Ddu7A0Qet6sHi3FimE9ne6m4BGQZfRn+NZiXbBk4F4XmHfDZIipLj9pX8dSA==", - "dev": true + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "requires": { + "has-bigints": "^1.0.1" + } }, "is-binary-path": { "version": "2.1.0", @@ -2321,18 +2364,19 @@ } }, "is-boolean-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.1.tgz", - "integrity": "sha512-bXdQWkECBUIAcCkeH1unwJLIpZYaa5VvuygSyS/c2lf719mTKZDU5UdDRlpd01UjADgmW8RfqaP+mRaVPdr/Ng==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, "requires": { - "call-bind": "^1.0.2" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" } }, "is-callable": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz", - "integrity": "sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", "dev": true }, "is-core-module": { @@ -2345,10 +2389,13 @@ } }, "is-date-object": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.4.tgz", - "integrity": "sha512-/b4ZVsG7Z5XVtIxs/h9W8nvfLgSAyKYdtGWQLbqy6jA1icmgjf8WCoTKgeS4wy5tYaPePouzFMANbnj94c2Z+A==", - "dev": true + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } }, "is-extglob": { "version": "2.1.1", @@ -2390,10 +2437,13 @@ "dev": true }, "is-number-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.5.tgz", - "integrity": "sha512-RU0lI/n95pMoUKu9v1BZP5MBcZuNSVJkMkAG2dJqC4z2GlkGUNeH68SuHuBKBD/XFe+LHZ+f9BKkLET60Niedw==", - "dev": true + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", + "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } }, "is-obj": { "version": "1.0.1", @@ -2417,13 +2467,13 @@ } }, "is-regex": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", - "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "dev": true, "requires": { "call-bind": "^1.0.2", - "has-symbols": "^1.0.2" + "has-tostringtag": "^1.0.0" } }, "is-regexp": { @@ -2439,10 +2489,13 @@ "dev": true }, "is-string": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", - "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", - "dev": true + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } }, "is-symbol": { "version": "1.0.4", @@ -3592,9 +3645,9 @@ } }, "object-inspect": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", - "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", + "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", "dev": true }, "object-keys": { @@ -3819,9 +3872,9 @@ "dev": true }, "prettier": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz", - "integrity": "sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", + "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", "dev": true }, "prettier-linter-helpers": { @@ -4075,9 +4128,9 @@ } }, "rollup": { - "version": "2.52.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.0.tgz", - "integrity": "sha512-lSkBDGsVoXjqaBf7dsHwxBJz+p+hJEP72P+LOitA0yVs+Nzxj76FidkZE2thrmhjwGqLYiJo39opi7mAfaQ/Vg==", + "version": "2.56.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.56.3.tgz", + "integrity": "sha512-Au92NuznFklgQCUcV96iXlxUbHuB1vQMaH76DHl5M11TotjOHwqk9CwcrT78+Tnv4FN9uTBxq6p4EJoYkpyekg==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -4304,6 +4357,17 @@ "shelljs": "^0.8.4" } }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -4557,9 +4621,9 @@ } }, "systemjs": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-6.10.1.tgz", - "integrity": "sha512-i2HiBOTIsm4GpjpiDHqTscZ/78htyTtdhpcbY2XPbIpsaNDIBA9vtxwIl8kSSnIRO0Zn7SHqvvILu3cMoXQuYw==", + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-6.10.3.tgz", + "integrity": "sha512-mXwfLJdaADqWg1J5+Z0bGQEdcXSe+ePPTfzffMB29aVls5cXveRl0vneSV/19t3SfuUBsAraLP8W/g5u9cmYXA==", "dev": true }, "table": { @@ -4577,9 +4641,9 @@ }, "dependencies": { "ajv": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.0.tgz", - "integrity": "sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ==", + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -4597,9 +4661,9 @@ } }, "terser": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.7.0.tgz", - "integrity": "sha512-HP5/9hp2UaZt5fYkuhNBR8YyRcT8juw8+uFbAme53iN9hblvKnLUTKkmwJG6ocWpIKf8UK4DoeWG4ty0J6S6/g==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.7.2.tgz", + "integrity": "sha512-0Omye+RD4X7X69O0eql3lC4Heh/5iLj3ggxR/B5ketZLOtLiOqukUgjw3q4PDnNQbsrkKr3UMypqStQG3XKRvw==", "dev": true, "requires": { "commander": "^2.20.0", @@ -4660,9 +4724,9 @@ } }, "tsconfig-paths": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", - "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz", + "integrity": "sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==", "dev": true, "requires": { "@types/json5": "^0.0.29", @@ -4672,9 +4736,9 @@ } }, "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true }, "tsutils": { @@ -4719,9 +4783,9 @@ } }, "typescript": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz", - "integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz", + "integrity": "sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==", "dev": true }, "unbox-primitive": { @@ -4995,9 +5059,9 @@ } }, "yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true }, "yargs-unparser": { diff --git a/package.json b/package.json index fb2e94e0e07..bfea5866d16 100644 --- a/package.json +++ b/package.json @@ -58,33 +58,33 @@ "fsevents": "~2.3.2" }, "devDependencies": { - "@rollup/plugin-alias": "^3.1.2", + "@rollup/plugin-alias": "^3.1.5", "@rollup/plugin-buble": "^0.21.3", - "@rollup/plugin-commonjs": "19.0.0", + "@rollup/plugin-commonjs": "20.0.0", "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.0.0", - "@rollup/plugin-replace": "^2.4.2", - "@types/micromatch": "^4.0.1", + "@rollup/plugin-node-resolve": "^13.0.4", + "@rollup/plugin-replace": "^3.0.0", + "@types/micromatch": "^4.0.2", "@types/node": "^10.17.60", "@types/require-relative": "^0.8.0", - "@types/signal-exit": "^3.0.0", - "@types/yargs-parser": "^20.2.0", - "@typescript-eslint/eslint-plugin": "^4.27.0", - "@typescript-eslint/parser": "^4.27.0", - "acorn": "^8.4.0", - "acorn-jsx": "^5.3.1", - "acorn-walk": "^8.1.0", + "@types/signal-exit": "^3.0.1", + "@types/yargs-parser": "^20.2.1", + "@typescript-eslint/eslint-plugin": "^4.29.3", + "@typescript-eslint/parser": "^4.29.3", + "acorn": "^8.4.1", + "acorn-jsx": "^5.3.2", + "acorn-walk": "^8.1.1", "buble": "^0.20.0", "chokidar": "^3.5.2", - "colorette": "^1.2.2", - "core-js": "^3.14.0", + "colorette": "^1.3.0", + "core-js": "^3.16.4", "date-time": "^4.0.0", "es5-shim": "^4.5.15", "es6-shim": "^0.35.6", - "eslint": "^7.28.0", + "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.23.4", - "eslint-plugin-prettier": "^3.4.0", + "eslint-plugin-import": "^2.24.2", + "eslint-plugin-prettier": "^3.4.1", "execa": "^5.1.1", "fixturify": "^2.1.1", "hash.js": "^1.1.7", @@ -97,12 +97,12 @@ "mocha": "^8.4.0", "nyc": "^15.1.0", "pinst": "^2.1.6", - "prettier": "^2.3.1", + "prettier": "^2.3.2", "pretty-bytes": "^5.6.0", "pretty-ms": "^7.0.1", "require-relative": "^0.8.7", "requirejs": "^2.3.6", - "rollup": "^2.52.0", + "rollup": "^2.56.3", "rollup-plugin-license": "^2.5.0", "rollup-plugin-string": "^3.0.0", "rollup-plugin-terser": "^7.0.2", @@ -115,12 +115,12 @@ "source-map": "^0.7.3", "source-map-support": "^0.5.19", "sourcemap-codec": "^1.4.8", - "systemjs": "^6.10.1", - "terser": "^5.7.0", - "tslib": "^2.3.0", - "typescript": "^4.3.2", + "systemjs": "^6.10.3", + "terser": "^5.7.2", + "tslib": "^2.3.1", + "typescript": "^4.4.2", "weak-napi": "^2.0.2", - "yargs-parser": "^20.2.7" + "yargs-parser": "^20.2.9" }, "files": [ "dist/**/*.js", diff --git a/rollup.config.ts b/rollup.config.ts index c8bedf94311..bd7f6adf44e 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -19,7 +19,7 @@ import pkg from './package.json'; const commitHash = (function () { try { return fs.readFileSync('.commithash', 'utf-8'); - } catch (err) { + } catch { return 'unknown'; } })(); diff --git a/src/Bundle.ts b/src/Bundle.ts index beecf516912..6029f12d92c 100644 --- a/src/Bundle.ts +++ b/src/Bundle.ts @@ -66,9 +66,9 @@ export default class Bundle { timeEnd('render modules', 2); await this.addFinalizedChunksToBundle(chunks, inputBase, addons, outputBundle, snippets); - } catch (error) { - await this.pluginDriver.hookParallel('renderError', [error]); - throw error; + } catch (err: any) { + await this.pluginDriver.hookParallel('renderError', [err]); + throw err; } await this.pluginDriver.hookSeq('generateBundle', [ this.outputOptions, @@ -188,8 +188,8 @@ export default class Bundle { allowHashBang: true, ecmaVersion: 'latest' }); - } catch (exception) { - this.inputOptions.onwarn(errChunkInvalid(file as OutputChunk, exception)); + } catch (err: any) { + this.inputOptions.onwarn(errChunkInvalid(file as OutputChunk, err)); } } } diff --git a/src/ExternalModule.ts b/src/ExternalModule.ts index d65456b07de..209b50d950d 100644 --- a/src/ExternalModule.ts +++ b/src/ExternalModule.ts @@ -12,7 +12,6 @@ import { printQuotedStringList } from './utils/printStringList'; import relativeId from './utils/relativeId'; export default class ExternalModule { - chunk: void; declarations: { [name: string]: ExternalVariable }; defaultVariableName = ''; dynamicImporters: string[] = []; diff --git a/src/Module.ts b/src/Module.ts index 07ca740f009..a03565394d9 100644 --- a/src/Module.ts +++ b/src/Module.ts @@ -801,7 +801,7 @@ export default class Module { tryParse(): acorn.Node { try { return this.graph.contextParse(this.info.code!); - } catch (err) { + } catch (err: any) { let message = err.message.replace(/ \(\d+:\d+\)$/, ''); if (this.id.endsWith('.json')) { message += ' (Note that you need @rollup/plugin-json to import JSON files)'; @@ -957,7 +957,7 @@ export default class Module { try { ({ column, line } = getOriginalLocation(this.sourcemapChain, { column, line })); code = this.originalCode; - } catch (e) { + } catch (err: any) { this.options.onwarn({ code: 'SOURCEMAP_ERROR', id: this.id, @@ -966,7 +966,7 @@ export default class Module { file: this.id, line }, - message: `Error when using sourcemap for reporting an error: ${e.message}`, + message: `Error when using sourcemap for reporting an error: ${err.message}`, pos }); } diff --git a/src/ModuleLoader.ts b/src/ModuleLoader.ts index 39d76369877..b730b6221f5 100644 --- a/src/ModuleLoader.ts +++ b/src/ModuleLoader.ts @@ -223,7 +223,7 @@ export class ModuleLoader { source = await this.readQueue.run( async () => (await this.pluginDriver.hookFirst('load', [id])) ?? (await readFile(id)) ); - } catch (err) { + } catch (err: any) { timeEnd('load modules', 3); let msg = `Could not load ${id}`; if (importer) msg += ` (imported by ${relativeId(importer)})`; diff --git a/src/ast/scopes/GlobalScope.ts b/src/ast/scopes/GlobalScope.ts index d5c96644d7f..9be38ec1e9a 100644 --- a/src/ast/scopes/GlobalScope.ts +++ b/src/ast/scopes/GlobalScope.ts @@ -4,7 +4,7 @@ import Variable from '../variables/Variable'; import Scope from './Scope'; export default class GlobalScope extends Scope { - parent: null; + parent = null; constructor() { super(); diff --git a/src/rollup/rollup.ts b/src/rollup/rollup.ts index fd8241fb852..f1b19802c57 100644 --- a/src/rollup/rollup.ts +++ b/src/rollup/rollup.ts @@ -51,7 +51,7 @@ export async function rollupInternal( try { await graph.pluginDriver.hookParallel('buildStart', [inputOptions]); await graph.build(); - } catch (err) { + } catch (err: any) { const watchFiles = Object.keys(graph.watchFiles); if (watchFiles.length > 0) { err.watchFiles = watchFiles; diff --git a/src/rollup/types.d.ts b/src/rollup/types.d.ts index 200555ceb28..cb33deb0918 100644 --- a/src/rollup/types.d.ts +++ b/src/rollup/types.d.ts @@ -486,7 +486,8 @@ export interface NormalizedTreeshakingOptions { unknownGlobalSideEffects: boolean; } -export interface TreeshakingOptions extends Partial { +export interface TreeshakingOptions + extends Partial> { moduleSideEffects?: ModuleSideEffectsOption; preset?: TreeshakingPreset; /** @deprecated Use `moduleSideEffects` instead */ diff --git a/src/utils/PluginDriver.ts b/src/utils/PluginDriver.ts index d47364e71e4..0035a40949a 100644 --- a/src/utils/PluginDriver.ts +++ b/src/utils/PluginDriver.ts @@ -355,7 +355,7 @@ export class PluginDriver { } // eslint-disable-next-line @typescript-eslint/ban-types return (hook as Function).apply(context, args); - } catch (err) { + } catch (err: any) { return throwPluginError(err, plugin.name, { hook: hookName }); } } diff --git a/src/utils/addons.ts b/src/utils/addons.ts index d91a8a2ae04..87621e62079 100644 --- a/src/utils/addons.ts +++ b/src/utils/addons.ts @@ -29,7 +29,7 @@ export async function createAddons( if (footer.length) footer = '\n' + footer; return { banner, footer, intro, outro }; - } catch (err) { + } catch (err: any) { return error({ code: 'ADDON_ERROR', message: `Could not retrieve ${err.hook}. Check configuration of plugin ${err.plugin}. diff --git a/src/utils/fs.ts b/src/utils/fs.ts index 85c867702f9..01990bd88a3 100644 --- a/src/utils/fs.ts +++ b/src/utils/fs.ts @@ -12,13 +12,13 @@ function mkdirpath(path: string) { const dir = dirname(path); try { fs.readdirSync(dir); - } catch (err) { + } catch { mkdirpath(dir); try { fs.mkdirSync(dir); - } catch (err2) { - if (err2.code !== 'EEXIST') { - throw err2; + } catch (err: any) { + if (err.code !== 'EEXIST') { + throw err; } } } diff --git a/src/watch/watch-proxy.ts b/src/watch/watch-proxy.ts index 851c497e295..a760d20cdfd 100644 --- a/src/watch/watch-proxy.ts +++ b/src/watch/watch-proxy.ts @@ -21,7 +21,7 @@ export default function watch(configs: GenericConfigObject[] | GenericConfigObje const configArray = ensureArray(configs); const watchConfigs = configArray.filter(config => config.watch !== false); if (watchConfigs.length === 0) { - throw error( + return error( errInvalidOption( 'watch', 'watch', diff --git a/src/watch/watch.ts b/src/watch/watch.ts index 50433f86b3a..e3abd340383 100644 --- a/src/watch/watch.ts +++ b/src/watch/watch.ts @@ -205,7 +205,7 @@ export class Task { output: this.outputFiles, result }); - } catch (error) { + } catch (error: any) { if (!this.closed) { if (Array.isArray(error.watchFiles)) { for (const id of error.watchFiles) { diff --git a/test/browser/index.js b/test/browser/index.js index a1d53ece7cf..e3f05d0620d 100644 --- a/test/browser/index.js +++ b/test/browser/index.js @@ -22,12 +22,12 @@ runTestSuiteWithSamples('browser', resolve(__dirname, 'samples'), (dir, config) strictDeprecations: true, ...config.options }); - } catch (error) { + } catch (err) { if (config.error) { - compareError(error, config.error); + compareError(err, config.error); return; } else { - throw error; + throw err; } } if (config.error) { @@ -40,12 +40,12 @@ runTestSuiteWithSamples('browser', resolve(__dirname, 'samples'), (dir, config) format: 'es', ...(config.options || {}).output })); - } catch (error) { + } catch (err) { if (config.generateError) { - compareError(error, config.generateError); + compareError(err, config.generateError); return; } else { - throw error; + throw err; } } if (config.generateError) { diff --git a/test/form/samples/supports-core-js/_expected.js b/test/form/samples/supports-core-js/_expected.js index 091e870e1ea..2ba9bae6864 100644 --- a/test/form/samples/supports-core-js/_expected.js +++ b/test/form/samples/supports-core-js/_expected.js @@ -5,7 +5,7 @@ var check = function (it) { }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global$M = +var global$Q = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || @@ -17,7 +17,7 @@ var global$M = var objectGetOwnPropertyDescriptor = {}; -var fails$X = function (exec) { +var fails$11 = function (exec) { try { return !!exec(); } catch (error) { @@ -25,10 +25,10 @@ var fails$X = function (exec) { } }; -var fails$W = fails$X; +var fails$10 = fails$11; // Detect IE8's incomplete defineProperty implementation -var descriptors = !fails$W(function () { +var descriptors = !fails$10(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); @@ -58,19 +58,19 @@ var createPropertyDescriptor$9 = function (bitmap, value) { }; }; -var toString$2 = {}.toString; +var toString$t = {}.toString; var classofRaw$1 = function (it) { - return toString$2.call(it).slice(8, -1); + return toString$t.call(it).slice(8, -1); }; -var fails$V = fails$X; +var fails$$ = fails$11; var classof$d = classofRaw$1; var split = ''.split; // fallback for non-array-like ES3 and non-enumerable old V8 strings -var indexedObject = fails$V(function () { +var indexedObject = fails$$(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !Object('z').propertyIsEnumerable(0); @@ -80,58 +80,218 @@ var indexedObject = fails$V(function () { // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible -var requireObjectCoercible$h = function (it) { +var requireObjectCoercible$i = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings -var IndexedObject$5 = indexedObject; -var requireObjectCoercible$g = requireObjectCoercible$h; +var IndexedObject$6 = indexedObject; +var requireObjectCoercible$h = requireObjectCoercible$i; var toIndexedObject$d = function (it) { - return IndexedObject$5(requireObjectCoercible$g(it)); + return IndexedObject$6(requireObjectCoercible$h(it)); }; -var isObject$B = function (it) { +var isObject$C = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; -var isObject$A = isObject$B; +var global$P = global$Q; -// `ToPrimitive` abstract operation -// https://tc39.es/ecma262/#sec-toprimitive -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -var toPrimitive$b = function (input, PREFERRED_STRING) { - if (!isObject$A(input)) return input; +var aFunction$T = function (variable) { + return typeof variable == 'function' ? variable : undefined; +}; + +var getBuiltIn$v = function (namespace, method) { + return arguments.length < 2 ? aFunction$T(global$P[namespace]) : global$P[namespace] && global$P[namespace][method]; +}; + +var getBuiltIn$u = getBuiltIn$v; + +var engineUserAgent = getBuiltIn$u('navigator', 'userAgent') || ''; + +var global$O = global$Q; +var userAgent$7 = engineUserAgent; + +var process$4 = global$O.process; +var Deno = global$O.Deno; +var versions = process$4 && process$4.versions || Deno && Deno.version; +var v8 = versions && versions.v8; +var match, version; + +if (v8) { + match = v8.split('.'); + version = match[0] < 4 ? 1 : match[0] + match[1]; +} else if (userAgent$7) { + match = userAgent$7.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent$7.match(/Chrome\/(\d+)/); + if (match) version = match[1]; + } +} + +var engineV8Version = version && +version; + +/* eslint-disable es/no-symbol -- required for testing */ + +var V8_VERSION$3 = engineV8Version; +var fails$_ = fails$11; + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$_(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; +}); + +/* eslint-disable es/no-symbol -- required for testing */ + +var NATIVE_SYMBOL$2 = nativeSymbol; + +var useSymbolAsUid = NATIVE_SYMBOL$2 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + +var getBuiltIn$t = getBuiltIn$v; +var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + +var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; +} : function (it) { + var $Symbol = getBuiltIn$t('Symbol'); + return typeof $Symbol == 'function' && Object(it) instanceof $Symbol; +}; + +var isObject$B = isObject$C; + +// `OrdinaryToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-ordinarytoprimitive +var ordinaryToPrimitive$2 = function (input, pref) { var fn, val; - if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$A(val = fn.call(input))) return val; - if (typeof (fn = input.valueOf) == 'function' && !isObject$A(val = fn.call(input))) return val; - if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$A(val = fn.call(input))) return val; + if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$B(val = fn.call(input))) return val; + if (typeof (fn = input.valueOf) == 'function' && !isObject$B(val = fn.call(input))) return val; + if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$B(val = fn.call(input))) return val; throw TypeError("Can't convert object to primitive value"); }; -var requireObjectCoercible$f = requireObjectCoercible$h; +var shared$7 = {exports: {}}; + +var isPure = false; + +var global$N = global$Q; + +var setGlobal$3 = function (key, value) { + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty(global$N, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$N[key] = value; + } return value; +}; + +var global$M = global$Q; +var setGlobal$2 = setGlobal$3; + +var SHARED = '__core-js_shared__'; +var store$5 = global$M[SHARED] || setGlobal$2(SHARED, {}); + +var sharedStore = store$5; + +var store$4 = sharedStore; + +(shared$7.exports = function (key, value) { + return store$4[key] || (store$4[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: '3.16.4', + mode: 'global', + copyright: '© 2021 Denis Pushkarev (zloirock.ru)' +}); + +var requireObjectCoercible$g = requireObjectCoercible$i; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject -var toObject$w = function (argument) { - return Object(requireObjectCoercible$f(argument)); +var toObject$x = function (argument) { + return Object(requireObjectCoercible$g(argument)); }; -var toObject$v = toObject$w; +var toObject$w = toObject$x; var hasOwnProperty = {}.hasOwnProperty; var has$n = Object.hasOwn || function hasOwn(it, key) { - return hasOwnProperty.call(toObject$v(it), key); + return hasOwnProperty.call(toObject$w(it), key); }; -var global$L = global$M; -var isObject$z = isObject$B; +var id$2 = 0; +var postfix = Math.random(); + +var uid$5 = function (key) { + return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$2 + postfix).toString(36); +}; -var document$3 = global$L.document; +var global$L = global$Q; +var shared$6 = shared$7.exports; +var has$m = has$n; +var uid$4 = uid$5; +var NATIVE_SYMBOL$1 = nativeSymbol; +var USE_SYMBOL_AS_UID = useSymbolAsUid; + +var WellKnownSymbolsStore$1 = shared$6('wks'); +var Symbol$1 = global$L.Symbol; +var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$4; + +var wellKnownSymbol$F = function (name) { + if (!has$m(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) { + if (NATIVE_SYMBOL$1 && has$m(Symbol$1, name)) { + WellKnownSymbolsStore$1[name] = Symbol$1[name]; + } else { + WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name); + } + } return WellKnownSymbolsStore$1[name]; +}; + +var isObject$A = isObject$C; +var isSymbol$5 = isSymbol$6; +var ordinaryToPrimitive$1 = ordinaryToPrimitive$2; +var wellKnownSymbol$E = wellKnownSymbol$F; + +var TO_PRIMITIVE$2 = wellKnownSymbol$E('toPrimitive'); + +// `ToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-toprimitive +var toPrimitive$3 = function (input, pref) { + if (!isObject$A(input) || isSymbol$5(input)) return input; + var exoticToPrim = input[TO_PRIMITIVE$2]; + var result; + if (exoticToPrim !== undefined) { + if (pref === undefined) pref = 'default'; + result = exoticToPrim.call(input, pref); + if (!isObject$A(result) || isSymbol$5(result)) return result; + throw TypeError("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive$1(input, pref); +}; + +var toPrimitive$2 = toPrimitive$3; +var isSymbol$4 = isSymbol$6; + +// `ToPropertyKey` abstract operation +// https://tc39.es/ecma262/#sec-topropertykey +var toPropertyKey$9 = function (argument) { + var key = toPrimitive$2(argument, 'string'); + return isSymbol$4(key) ? key : String(key); +}; + +var global$K = global$Q; +var isObject$z = isObject$C; + +var document$3 = global$K.document; // typeof document.createElement is 'object' in old IE var EXISTS = isObject$z(document$3) && isObject$z(document$3.createElement); @@ -139,24 +299,24 @@ var documentCreateElement$1 = function (it) { return EXISTS ? document$3.createElement(it) : {}; }; -var DESCRIPTORS$y = descriptors; -var fails$U = fails$X; +var DESCRIPTORS$z = descriptors; +var fails$Z = fails$11; var createElement$1 = documentCreateElement$1; // Thank's IE8 for his funny defineProperty -var ie8DomDefine = !DESCRIPTORS$y && !fails$U(function () { +var ie8DomDefine = !DESCRIPTORS$z && !fails$Z(function () { // eslint-disable-next-line es/no-object-defineproperty -- requied for testing return Object.defineProperty(createElement$1('div'), 'a', { get: function () { return 7; } }).a != 7; }); -var DESCRIPTORS$x = descriptors; +var DESCRIPTORS$y = descriptors; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$8 = createPropertyDescriptor$9; var toIndexedObject$c = toIndexedObject$d; -var toPrimitive$a = toPrimitive$b; -var has$m = has$n; +var toPropertyKey$8 = toPropertyKey$9; +var has$l = has$n; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe @@ -164,39 +324,39 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -objectGetOwnPropertyDescriptor.f = DESCRIPTORS$x ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { +objectGetOwnPropertyDescriptor.f = DESCRIPTORS$y ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$c(O); - P = toPrimitive$a(P, true); + P = toPropertyKey$8(P); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } - if (has$m(O, P)) return createPropertyDescriptor$8(!propertyIsEnumerableModule$2.f.call(O, P), O[P]); + if (has$l(O, P)) return createPropertyDescriptor$8(!propertyIsEnumerableModule$2.f.call(O, P), O[P]); }; var objectDefineProperty = {}; -var isObject$y = isObject$B; +var isObject$y = isObject$C; -var anObject$1z = function (it) { +var anObject$1B = function (it) { if (!isObject$y(it)) { throw TypeError(String(it) + ' is not an object'); } return it; }; -var DESCRIPTORS$w = descriptors; +var DESCRIPTORS$x = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; -var anObject$1y = anObject$1z; -var toPrimitive$9 = toPrimitive$b; +var anObject$1A = anObject$1B; +var toPropertyKey$7 = toPropertyKey$9; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty$1 = Object.defineProperty; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty -objectDefineProperty.f = DESCRIPTORS$w ? $defineProperty$1 : function defineProperty(O, P, Attributes) { - anObject$1y(O); - P = toPrimitive$9(P, true); - anObject$1y(Attributes); +objectDefineProperty.f = DESCRIPTORS$x ? $defineProperty$1 : function defineProperty(O, P, Attributes) { + anObject$1A(O); + P = toPropertyKey$7(P); + anObject$1A(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P, Attributes); } catch (error) { /* empty */ } @@ -205,11 +365,11 @@ objectDefineProperty.f = DESCRIPTORS$w ? $defineProperty$1 : function defineProp return O; }; -var DESCRIPTORS$v = descriptors; +var DESCRIPTORS$w = descriptors; var definePropertyModule$c = objectDefineProperty; var createPropertyDescriptor$7 = createPropertyDescriptor$9; -var createNonEnumerableProperty$m = DESCRIPTORS$v ? function (object, key, value) { +var createNonEnumerableProperty$m = DESCRIPTORS$w ? function (object, key, value) { return definePropertyModule$c.f(object, key, createPropertyDescriptor$7(1, value)); } : function (object, key, value) { object[key] = value; @@ -218,92 +378,52 @@ var createNonEnumerableProperty$m = DESCRIPTORS$v ? function (object, key, value var redefine$g = {exports: {}}; -var global$K = global$M; -var createNonEnumerableProperty$l = createNonEnumerableProperty$m; - -var setGlobal$3 = function (key, value) { - try { - createNonEnumerableProperty$l(global$K, key, value); - } catch (error) { - global$K[key] = value; - } return value; -}; - -var global$J = global$M; -var setGlobal$2 = setGlobal$3; - -var SHARED = '__core-js_shared__'; -var store$5 = global$J[SHARED] || setGlobal$2(SHARED, {}); - -var sharedStore = store$5; - -var store$4 = sharedStore; +var store$3 = sharedStore; var functionToString = Function.toString; // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper -if (typeof store$4.inspectSource != 'function') { - store$4.inspectSource = function (it) { +if (typeof store$3.inspectSource != 'function') { + store$3.inspectSource = function (it) { return functionToString.call(it); }; } -var inspectSource$3 = store$4.inspectSource; +var inspectSource$3 = store$3.inspectSource; -var global$I = global$M; +var global$J = global$Q; var inspectSource$2 = inspectSource$3; -var WeakMap$3 = global$I.WeakMap; +var WeakMap$3 = global$J.WeakMap; var nativeWeakMap = typeof WeakMap$3 === 'function' && /native code/.test(inspectSource$2(WeakMap$3)); -var shared$7 = {exports: {}}; - -var isPure = false; - -var store$3 = sharedStore; - -(shared$7.exports = function (key, value) { - return store$3[key] || (store$3[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.14.0', - mode: 'global', - copyright: '© 2021 Denis Pushkarev (zloirock.ru)' -}); - -var id$2 = 0; -var postfix = Math.random(); - -var uid$5 = function (key) { - return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$2 + postfix).toString(36); -}; - -var shared$6 = shared$7.exports; -var uid$4 = uid$5; +var shared$5 = shared$7.exports; +var uid$3 = uid$5; -var keys$3 = shared$6('keys'); +var keys$3 = shared$5('keys'); var sharedKey$4 = function (key) { - return keys$3[key] || (keys$3[key] = uid$4(key)); + return keys$3[key] || (keys$3[key] = uid$3(key)); }; var hiddenKeys$6 = {}; var NATIVE_WEAK_MAP$1 = nativeWeakMap; -var global$H = global$M; -var isObject$x = isObject$B; -var createNonEnumerableProperty$k = createNonEnumerableProperty$m; +var global$I = global$Q; +var isObject$x = isObject$C; +var createNonEnumerableProperty$l = createNonEnumerableProperty$m; var objectHas = has$n; -var shared$5 = sharedStore; +var shared$4 = sharedStore; var sharedKey$3 = sharedKey$4; var hiddenKeys$5 = hiddenKeys$6; var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; -var WeakMap$2 = global$H.WeakMap; -var set$3, get$2, has$l; +var WeakMap$2 = global$I.WeakMap; +var set$3, get$2, has$k; var enforce = function (it) { - return has$l(it) ? get$2(it) : set$3(it, {}); + return has$k(it) ? get$2(it) : set$3(it, {}); }; var getterFor = function (TYPE) { @@ -315,8 +435,8 @@ var getterFor = function (TYPE) { }; }; -if (NATIVE_WEAK_MAP$1 || shared$5.state) { - var store$2 = shared$5.state || (shared$5.state = new WeakMap$2()); +if (NATIVE_WEAK_MAP$1 || shared$4.state) { + var store$2 = shared$4.state || (shared$4.state = new WeakMap$2()); var wmget = store$2.get; var wmhas = store$2.has; var wmset = store$2.set; @@ -329,7 +449,7 @@ if (NATIVE_WEAK_MAP$1 || shared$5.state) { get$2 = function (it) { return wmget.call(store$2, it) || {}; }; - has$l = function (it) { + has$k = function (it) { return wmhas.call(store$2, it); }; } else { @@ -338,13 +458,13 @@ if (NATIVE_WEAK_MAP$1 || shared$5.state) { set$3 = function (it, metadata) { if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; - createNonEnumerableProperty$k(it, STATE, metadata); + createNonEnumerableProperty$l(it, STATE, metadata); return metadata; }; get$2 = function (it) { return objectHas(it, STATE) ? it[STATE] : {}; }; - has$l = function (it) { + has$k = function (it) { return objectHas(it, STATE); }; } @@ -352,20 +472,20 @@ if (NATIVE_WEAK_MAP$1 || shared$5.state) { var internalState = { set: set$3, get: get$2, - has: has$l, + has: has$k, enforce: enforce, getterFor: getterFor }; -var global$G = global$M; -var createNonEnumerableProperty$j = createNonEnumerableProperty$m; -var has$k = has$n; +var global$H = global$Q; +var createNonEnumerableProperty$k = createNonEnumerableProperty$m; +var has$j = has$n; var setGlobal$1 = setGlobal$3; var inspectSource$1 = inspectSource$3; -var InternalStateModule$i = internalState; +var InternalStateModule$j = internalState; -var getInternalState$f = InternalStateModule$i.get; -var enforceInternalState$1 = InternalStateModule$i.enforce; +var getInternalState$i = InternalStateModule$j.get; +var enforceInternalState$1 = InternalStateModule$j.enforce; var TEMPLATE = String(String).split('String'); (redefine$g.exports = function (O, key, value, options) { @@ -374,15 +494,15 @@ var TEMPLATE = String(String).split('String'); var noTargetGet = options ? !!options.noTargetGet : false; var state; if (typeof value == 'function') { - if (typeof key == 'string' && !has$k(value, 'name')) { - createNonEnumerableProperty$j(value, 'name', key); + if (typeof key == 'string' && !has$j(value, 'name')) { + createNonEnumerableProperty$k(value, 'name', key); } state = enforceInternalState$1(value); if (!state.source) { state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); } } - if (O === global$G) { + if (O === global$H) { if (simple) O[key] = value; else setGlobal$1(key, value); return; @@ -392,28 +512,12 @@ var TEMPLATE = String(String).split('String'); simple = true; } if (simple) O[key] = value; - else createNonEnumerableProperty$j(O, key, value); + else createNonEnumerableProperty$k(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, 'toString', function toString() { - return typeof this == 'function' && getInternalState$f(this).source || inspectSource$1(this); + return typeof this == 'function' && getInternalState$i(this).source || inspectSource$1(this); }); -var global$F = global$M; - -var path$6 = global$F; - -var path$5 = path$6; -var global$E = global$M; - -var aFunction$T = function (variable) { - return typeof variable == 'function' ? variable : undefined; -}; - -var getBuiltIn$t = function (namespace, method) { - return arguments.length < 2 ? aFunction$T(path$5[namespace]) || aFunction$T(global$E[namespace]) - : path$5[namespace] && path$5[namespace][method] || global$E[namespace] && global$E[namespace][method]; -}; - var objectGetOwnPropertyNames = {}; var ceil$2 = Math.ceil; @@ -421,42 +525,42 @@ var floor$a = Math.floor; // `ToInteger` abstract operation // https://tc39.es/ecma262/#sec-tointeger -var toInteger$f = function (argument) { +var toInteger$h = function (argument) { return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$a : ceil$2)(argument); }; -var toInteger$e = toInteger$f; +var toInteger$g = toInteger$h; -var min$9 = Math.min; +var min$a = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength -var toLength$B = function (argument) { - return argument > 0 ? min$9(toInteger$e(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 +var toLength$C = function (argument) { + return argument > 0 ? min$a(toInteger$g(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; -var toInteger$d = toInteger$f; +var toInteger$f = toInteger$h; -var max$5 = Math.max; -var min$8 = Math.min; +var max$6 = Math.max; +var min$9 = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). var toAbsoluteIndex$8 = function (index, length) { - var integer = toInteger$d(index); - return integer < 0 ? max$5(integer + length, 0) : min$8(integer, length); + var integer = toInteger$f(index); + return integer < 0 ? max$6(integer + length, 0) : min$9(integer, length); }; var toIndexedObject$b = toIndexedObject$d; -var toLength$A = toLength$B; +var toLength$B = toLength$C; var toAbsoluteIndex$7 = toAbsoluteIndex$8; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$8 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$b($this); - var length = toLength$A(O.length); + var length = toLength$B(O.length); var index = toAbsoluteIndex$7(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm @@ -481,7 +585,7 @@ var arrayIncludes = { indexOf: createMethod$8(false) }; -var has$j = has$n; +var has$i = has$n; var toIndexedObject$a = toIndexedObject$d; var indexOf = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$6; @@ -491,9 +595,9 @@ var objectKeysInternal = function (object, names) { var i = 0; var result = []; var key; - for (key in O) !has$j(hiddenKeys$4, key) && has$j(O, key) && result.push(key); + for (key in O) !has$i(hiddenKeys$4, key) && has$i(O, key) && result.push(key); // Don't enum bug & hidden keys - while (names.length > i) if (has$j(O, key = names[i++])) { + while (names.length > i) if (has$i(O, key = names[i++])) { ~indexOf(result, key) || result.push(key); } return result; @@ -527,19 +631,19 @@ var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; -var getBuiltIn$s = getBuiltIn$t; -var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; +var getBuiltIn$s = getBuiltIn$v; +var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols; -var anObject$1x = anObject$1z; +var anObject$1z = anObject$1B; // all object keys, includes non-enumerable and symbols var ownKeys$3 = getBuiltIn$s('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule$1.f(anObject$1x(it)); + var keys = getOwnPropertyNamesModule$2.f(anObject$1z(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f; return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; }; -var has$i = has$n; +var has$h = has$n; var ownKeys$2 = ownKeys$3; var getOwnPropertyDescriptorModule$6 = objectGetOwnPropertyDescriptor; var definePropertyModule$b = objectDefineProperty; @@ -550,11 +654,11 @@ var copyConstructorProperties$2 = function (target, source) { var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$6.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; - if (!has$i(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + if (!has$h(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } }; -var fails$T = fails$X; +var fails$Y = fails$11; var replacement = /#|\.prototype\./; @@ -562,7 +666,7 @@ var isForced$5 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false - : typeof detection == 'function' ? fails$T(detection) + : typeof detection == 'function' ? fails$Y(detection) : !!detection; }; @@ -576,9 +680,9 @@ var POLYFILL = isForced$5.POLYFILL = 'P'; var isForced_1 = isForced$5; -var global$D = global$M; +var global$G = global$Q; var getOwnPropertyDescriptor$7 = objectGetOwnPropertyDescriptor.f; -var createNonEnumerableProperty$i = createNonEnumerableProperty$m; +var createNonEnumerableProperty$j = createNonEnumerableProperty$m; var redefine$f = redefine$g.exports; var setGlobal = setGlobal$3; var copyConstructorProperties$1 = copyConstructorProperties$2; @@ -604,11 +708,11 @@ var _export = function (options, source) { var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { - target = global$D; + target = global$G; } else if (STATIC) { - target = global$D[TARGET] || setGlobal(TARGET, {}); + target = global$G[TARGET] || setGlobal(TARGET, {}); } else { - target = (global$D[TARGET] || {}).prototype; + target = (global$G[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; @@ -624,61 +728,13 @@ var _export = function (options, source) { } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty$i(sourceProperty, 'sham', true); + createNonEnumerableProperty$j(sourceProperty, 'sham', true); } // extend global redefine$f(target, key, sourceProperty, options); } }; -var getBuiltIn$r = getBuiltIn$t; - -var engineUserAgent = getBuiltIn$r('navigator', 'userAgent') || ''; - -var global$C = global$M; -var userAgent$6 = engineUserAgent; - -var process$4 = global$C.process; -var versions = process$4 && process$4.versions; -var v8 = versions && versions.v8; -var match, version; - -if (v8) { - match = v8.split('.'); - version = match[0] < 4 ? 1 : match[0] + match[1]; -} else if (userAgent$6) { - match = userAgent$6.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = userAgent$6.match(/Chrome\/(\d+)/); - if (match) version = match[1]; - } -} - -var engineV8Version = version && +version; - -/* eslint-disable es/no-symbol -- required for testing */ - -var V8_VERSION$3 = engineV8Version; -var fails$S = fails$X; - -// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing -var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$S(function () { - var symbol = Symbol(); - // Chrome 38 Symbol has incorrect toString conversion - // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances - return !String(symbol) || !(Object(symbol) instanceof Symbol) || - // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; -}); - -/* eslint-disable es/no-symbol -- required for testing */ - -var NATIVE_SYMBOL$2 = nativeSymbol; - -var useSymbolAsUid = NATIVE_SYMBOL$2 - && !Symbol.sham - && typeof Symbol.iterator == 'symbol'; - var classof$c = classofRaw$1; // `IsArray` abstract operation @@ -688,6 +744,13 @@ var isArray$8 = Array.isArray || function isArray(arg) { return classof$c(arg) == 'Array'; }; +var isSymbol$3 = isSymbol$6; + +var toString$s = function (argument) { + if (isSymbol$3(argument)) throw TypeError('Cannot convert a Symbol value to a string'); + return String(argument); +}; + var internalObjectKeys = objectKeysInternal; var enumBugKeys$1 = enumBugKeys$3; @@ -698,16 +761,16 @@ var objectKeys$5 = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys$1); }; -var DESCRIPTORS$u = descriptors; +var DESCRIPTORS$v = descriptors; var definePropertyModule$a = objectDefineProperty; -var anObject$1w = anObject$1z; +var anObject$1y = anObject$1B; var objectKeys$4 = objectKeys$5; // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe -var objectDefineProperties = DESCRIPTORS$u ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$1w(O); +var objectDefineProperties = DESCRIPTORS$v ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$1y(O); var keys = objectKeys$4(Properties); var length = keys.length; var index = 0; @@ -716,11 +779,13 @@ var objectDefineProperties = DESCRIPTORS$u ? Object.defineProperties : function return O; }; -var getBuiltIn$q = getBuiltIn$t; +var getBuiltIn$r = getBuiltIn$v; + +var html$2 = getBuiltIn$r('document', 'documentElement'); -var html$2 = getBuiltIn$q('document', 'documentElement'); +/* global ActiveXObject -- old IE, WSH */ -var anObject$1v = anObject$1z; +var anObject$1x = anObject$1B; var defineProperties$3 = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys$2 = hiddenKeys$6; @@ -774,10 +839,13 @@ var NullProtoObjectViaIFrame = function () { var activeXDocument; var NullProtoObject = function () { try { - /* global ActiveXObject -- old IE */ - activeXDocument = document.domain && new ActiveXObject('htmlfile'); + activeXDocument = new ActiveXObject('htmlfile'); } catch (error) { /* ignore */ } - NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); + NullProtoObject = typeof document != 'undefined' + ? document.domain && activeXDocument + ? NullProtoObjectViaActiveX(activeXDocument) // old IE + : NullProtoObjectViaIFrame() + : NullProtoObjectViaActiveX(activeXDocument); // WSH var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE$2][enumBugKeys[length]]; return NullProtoObject(); @@ -787,10 +855,10 @@ hiddenKeys$2[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create -var objectCreate = Object.create || function create(O, Properties) { +var objectCreate$1 = Object.create || function create(O, Properties) { var result; if (O !== null) { - EmptyConstructor[PROTOTYPE$2] = anObject$1v(O); + EmptyConstructor[PROTOTYPE$2] = anObject$1x(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE$2] = null; // add "__proto__" for Object.getPrototypeOf polyfill @@ -806,7 +874,7 @@ var objectGetOwnPropertyNamesExternal = {}; var toIndexedObject$9 = toIndexedObject$d; var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; -var toString$1 = {}.toString; +var toString$r = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; @@ -821,59 +889,42 @@ var getWindowNames = function (it) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) { - return windowNames && toString$1.call(it) == '[object Window]' + return windowNames && toString$r.call(it) == '[object Window]' ? getWindowNames(it) : $getOwnPropertyNames$1(toIndexedObject$9(it)); }; -var global$B = global$M; -var shared$4 = shared$7.exports; -var has$h = has$n; -var uid$3 = uid$5; -var NATIVE_SYMBOL$1 = nativeSymbol; -var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; +var wellKnownSymbolWrapped = {}; -var WellKnownSymbolsStore$1 = shared$4('wks'); -var Symbol$1 = global$B.Symbol; -var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3; +var wellKnownSymbol$D = wellKnownSymbol$F; -var wellKnownSymbol$C = function (name) { - if (!has$h(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) { - if (NATIVE_SYMBOL$1 && has$h(Symbol$1, name)) { - WellKnownSymbolsStore$1[name] = Symbol$1[name]; - } else { - WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name); - } - } return WellKnownSymbolsStore$1[name]; -}; +wellKnownSymbolWrapped.f = wellKnownSymbol$D; -var wellKnownSymbolWrapped = {}; - -var wellKnownSymbol$B = wellKnownSymbol$C; +var global$F = global$Q; -wellKnownSymbolWrapped.f = wellKnownSymbol$B; +var path$6 = global$F; -var path$4 = path$6; +var path$5 = path$6; var has$g = has$n; var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped; -var defineProperty$e = objectDefineProperty.f; +var defineProperty$f = objectDefineProperty.f; var defineWellKnownSymbol$l = function (NAME) { - var Symbol = path$4.Symbol || (path$4.Symbol = {}); - if (!has$g(Symbol, NAME)) defineProperty$e(Symbol, NAME, { + var Symbol = path$5.Symbol || (path$5.Symbol = {}); + if (!has$g(Symbol, NAME)) defineProperty$f(Symbol, NAME, { value: wrappedWellKnownSymbolModule$1.f(NAME) }); }; -var defineProperty$d = objectDefineProperty.f; +var defineProperty$e = objectDefineProperty.f; var has$f = has$n; -var wellKnownSymbol$A = wellKnownSymbol$C; +var wellKnownSymbol$C = wellKnownSymbol$F; -var TO_STRING_TAG$8 = wellKnownSymbol$A('toStringTag'); +var TO_STRING_TAG$8 = wellKnownSymbol$C('toStringTag'); var setToStringTag$b = function (it, TAG, STATIC) { if (it && !has$f(it = STATIC ? it : it.prototype, TO_STRING_TAG$8)) { - defineProperty$d(it, TO_STRING_TAG$8, { configurable: true, value: TAG }); + defineProperty$e(it, TO_STRING_TAG$8, { configurable: true, value: TAG }); } }; @@ -908,15 +959,15 @@ var functionBindContext = function (fn, that, length) { }; }; -var isObject$w = isObject$B; +var isObject$w = isObject$C; var isArray$7 = isArray$8; -var wellKnownSymbol$z = wellKnownSymbol$C; +var wellKnownSymbol$B = wellKnownSymbol$F; -var SPECIES$6 = wellKnownSymbol$z('species'); +var SPECIES$6 = wellKnownSymbol$B('species'); -// `ArraySpeciesCreate` abstract operation +// a part of `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate -var arraySpeciesCreate$6 = function (originalArray, length) { +var arraySpeciesConstructor$2 = function (originalArray) { var C; if (isArray$7(originalArray)) { C = originalArray.constructor; @@ -926,34 +977,42 @@ var arraySpeciesCreate$6 = function (originalArray, length) { C = C[SPECIES$6]; if (C === null) C = undefined; } - } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); + } return C === undefined ? Array : C; }; -var bind$o = functionBindContext; -var IndexedObject$4 = indexedObject; -var toObject$u = toObject$w; -var toLength$z = toLength$B; +var arraySpeciesConstructor$1 = arraySpeciesConstructor$2; + +// `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +var arraySpeciesCreate$6 = function (originalArray, length) { + return new (arraySpeciesConstructor$1(originalArray))(length === 0 ? 0 : length); +}; + +var bind$p = functionBindContext; +var IndexedObject$5 = indexedObject; +var toObject$v = toObject$x; +var toLength$A = toLength$C; var arraySpeciesCreate$5 = arraySpeciesCreate$6; -var push$3 = [].push; +var push$4 = [].push; -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation +// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod$7 = 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_OUT = TYPE == 7; + var IS_FILTER_REJECT = TYPE == 7; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; return function ($this, callbackfn, that, specificCreate) { - var O = toObject$u($this); - var self = IndexedObject$4(O); - var boundFunction = bind$o(callbackfn, that, 3); - var length = toLength$z(self.length); + var O = toObject$v($this); + var self = IndexedObject$5(O); + var boundFunction = bind$p(callbackfn, that, 3); + var length = toLength$A(self.length); var index = 0; var create = specificCreate || arraySpeciesCreate$5; - var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined; + 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]; @@ -964,10 +1023,10 @@ var createMethod$7 = function (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex - case 2: push$3.call(target, value); // filter + case 2: push$4.call(target, value); // filter } else switch (TYPE) { case 4: return false; // every - case 7: push$3.call(target, value); // filterOut + case 7: push$4.call(target, value); // filterReject } } } @@ -997,56 +1056,57 @@ var arrayIteration = { // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod$7(6), - // `Array.prototype.filterOut` method + // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering - filterOut: createMethod$7(7) + filterReject: createMethod$7(7) }; -var $$47 = _export; -var global$A = global$M; -var getBuiltIn$p = getBuiltIn$t; -var DESCRIPTORS$t = descriptors; +var $$4g = _export; +var global$E = global$Q; +var getBuiltIn$q = getBuiltIn$v; +var DESCRIPTORS$u = descriptors; var NATIVE_SYMBOL = nativeSymbol; -var USE_SYMBOL_AS_UID = useSymbolAsUid; -var fails$R = fails$X; +var fails$X = fails$11; var has$e = has$n; var isArray$6 = isArray$8; -var isObject$v = isObject$B; -var anObject$1u = anObject$1z; -var toObject$t = toObject$w; +var isObject$v = isObject$C; +var isSymbol$2 = isSymbol$6; +var anObject$1w = anObject$1B; +var toObject$u = toObject$x; var toIndexedObject$8 = toIndexedObject$d; -var toPrimitive$8 = toPrimitive$b; +var toPropertyKey$6 = toPropertyKey$9; +var $toString$3 = toString$s; var createPropertyDescriptor$6 = createPropertyDescriptor$9; -var nativeObjectCreate = objectCreate; +var nativeObjectCreate = objectCreate$1; var objectKeys$3 = objectKeys$5; -var getOwnPropertyNamesModule = objectGetOwnPropertyNames; +var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; var getOwnPropertyDescriptorModule$5 = objectGetOwnPropertyDescriptor; var definePropertyModule$9 = objectDefineProperty; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; -var createNonEnumerableProperty$h = createNonEnumerableProperty$m; +var createNonEnumerableProperty$i = createNonEnumerableProperty$m; var redefine$e = redefine$g.exports; var shared$3 = shared$7.exports; var sharedKey$1 = sharedKey$4; var hiddenKeys$1 = hiddenKeys$6; var uid$2 = uid$5; -var wellKnownSymbol$y = wellKnownSymbol$C; +var wellKnownSymbol$A = wellKnownSymbol$F; var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped; var defineWellKnownSymbol$k = defineWellKnownSymbol$l; var setToStringTag$a = setToStringTag$b; -var InternalStateModule$h = internalState; +var InternalStateModule$i = internalState; var $forEach$3 = arrayIteration.forEach; var HIDDEN = sharedKey$1('hidden'); var SYMBOL = 'Symbol'; var PROTOTYPE$1 = 'prototype'; -var TO_PRIMITIVE$1 = wellKnownSymbol$y('toPrimitive'); -var setInternalState$h = InternalStateModule$h.set; -var getInternalState$e = InternalStateModule$h.getterFor(SYMBOL); +var TO_PRIMITIVE$1 = wellKnownSymbol$A('toPrimitive'); +var setInternalState$i = InternalStateModule$i.set; +var getInternalState$h = InternalStateModule$i.getterFor(SYMBOL); var ObjectPrototype$3 = Object[PROTOTYPE$1]; -var $Symbol = global$A.Symbol; -var $stringify$1 = getBuiltIn$p('JSON', 'stringify'); +var $Symbol = global$E.Symbol; +var $stringify$1 = getBuiltIn$q('JSON', 'stringify'); var nativeGetOwnPropertyDescriptor$2 = getOwnPropertyDescriptorModule$5.f; var nativeDefineProperty$1 = definePropertyModule$9.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; @@ -1056,12 +1116,12 @@ var ObjectPrototypeSymbols = shared$3('op-symbols'); var StringToSymbolRegistry = shared$3('string-to-symbol-registry'); var SymbolToStringRegistry = shared$3('symbol-to-string-registry'); var WellKnownSymbolsStore = shared$3('wks'); -var QObject = global$A.QObject; +var QObject = global$E.QObject; // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDescriptor = DESCRIPTORS$t && fails$R(function () { +var setSymbolDescriptor = DESCRIPTORS$u && fails$X(function () { return nativeObjectCreate(nativeDefineProperty$1({}, 'a', { get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; } })).a != 7; @@ -1076,26 +1136,20 @@ var setSymbolDescriptor = DESCRIPTORS$t && fails$R(function () { var wrap$1 = function (tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE$1]); - setInternalState$h(symbol, { + setInternalState$i(symbol, { type: SYMBOL, tag: tag, description: description }); - if (!DESCRIPTORS$t) symbol.description = description; + if (!DESCRIPTORS$u) symbol.description = description; return symbol; }; -var isSymbol = USE_SYMBOL_AS_UID ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - return Object(it) instanceof $Symbol; -}; - var $defineProperty = function defineProperty(O, P, Attributes) { if (O === ObjectPrototype$3) $defineProperty(ObjectPrototypeSymbols, P, Attributes); - anObject$1u(O); - var key = toPrimitive$8(P, true); - anObject$1u(Attributes); + anObject$1w(O); + var key = toPropertyKey$6(P); + anObject$1w(Attributes); if (has$e(AllSymbols, key)) { if (!Attributes.enumerable) { if (!has$e(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor$6(1, {})); @@ -1108,11 +1162,11 @@ var $defineProperty = function defineProperty(O, P, Attributes) { }; var $defineProperties = function defineProperties(O, Properties) { - anObject$1u(O); + anObject$1w(O); var properties = toIndexedObject$8(Properties); var keys = objectKeys$3(properties).concat($getOwnPropertySymbols(properties)); $forEach$3(keys, function (key) { - if (!DESCRIPTORS$t || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]); + if (!DESCRIPTORS$u || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; @@ -1122,7 +1176,7 @@ var $create = function create(O, Properties) { }; var $propertyIsEnumerable = function propertyIsEnumerable(V) { - var P = toPrimitive$8(V, true); + var P = toPropertyKey$6(V); var enumerable = nativePropertyIsEnumerable.call(this, P); if (this === ObjectPrototype$3 && has$e(AllSymbols, P) && !has$e(ObjectPrototypeSymbols, P)) return false; return enumerable || !has$e(this, P) || !has$e(AllSymbols, P) || has$e(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; @@ -1130,7 +1184,7 @@ var $propertyIsEnumerable = function propertyIsEnumerable(V) { var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { var it = toIndexedObject$8(O); - var key = toPrimitive$8(P, true); + var key = toPropertyKey$6(P); if (it === ObjectPrototype$3 && has$e(AllSymbols, key) && !has$e(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor$2(it, key); if (descriptor && has$e(AllSymbols, key) && !(has$e(it, HIDDEN) && it[HIDDEN][key])) { @@ -1165,19 +1219,19 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(O) { if (!NATIVE_SYMBOL) { $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor'); - var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]); + var description = !arguments.length || arguments[0] === undefined ? undefined : $toString$3(arguments[0]); var tag = uid$2(description); var setter = function (value) { if (this === ObjectPrototype$3) setter.call(ObjectPrototypeSymbols, value); if (has$e(this, HIDDEN) && has$e(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDescriptor(this, tag, createPropertyDescriptor$6(1, value)); }; - if (DESCRIPTORS$t && USE_SETTER) setSymbolDescriptor(ObjectPrototype$3, tag, { configurable: true, set: setter }); + if (DESCRIPTORS$u && USE_SETTER) setSymbolDescriptor(ObjectPrototype$3, tag, { configurable: true, set: setter }); return wrap$1(tag, description); }; redefine$e($Symbol[PROTOTYPE$1], 'toString', function toString() { - return getInternalState$e(this).tag; + return getInternalState$h(this).tag; }); redefine$e($Symbol, 'withoutSetter', function (description) { @@ -1187,19 +1241,19 @@ if (!NATIVE_SYMBOL) { propertyIsEnumerableModule$1.f = $propertyIsEnumerable; definePropertyModule$9.f = $defineProperty; getOwnPropertyDescriptorModule$5.f = $getOwnPropertyDescriptor; - getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; + getOwnPropertyNamesModule$1.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; getOwnPropertySymbolsModule$1.f = $getOwnPropertySymbols; wrappedWellKnownSymbolModule.f = function (name) { - return wrap$1(wellKnownSymbol$y(name), name); + return wrap$1(wellKnownSymbol$A(name), name); }; - if (DESCRIPTORS$t) { + if (DESCRIPTORS$u) { // https://github.com/tc39/proposal-Symbol-description nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', { configurable: true, get: function description() { - return getInternalState$e(this).description; + return getInternalState$h(this).description; } }); { @@ -1208,7 +1262,7 @@ if (!NATIVE_SYMBOL) { } } -$$47({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { +$$4g({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol }); @@ -1216,11 +1270,11 @@ $forEach$3(objectKeys$3(WellKnownSymbolsStore), function (name) { defineWellKnownSymbol$k(name); }); -$$47({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { +$$4g({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { // `Symbol.for` method // https://tc39.es/ecma262/#sec-symbol.for 'for': function (key) { - var string = String(key); + var string = $toString$3(key); if (has$e(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; var symbol = $Symbol(string); StringToSymbolRegistry[string] = symbol; @@ -1230,14 +1284,14 @@ $$47({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { // `Symbol.keyFor` method // https://tc39.es/ecma262/#sec-symbol.keyfor keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol'); + if (!isSymbol$2(sym)) throw TypeError(sym + ' is not a symbol'); if (has$e(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; }, useSetter: function () { USE_SETTER = true; }, useSimple: function () { USE_SETTER = false; } }); -$$47({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$t }, { +$$4g({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$u }, { // `Object.create` method // https://tc39.es/ecma262/#sec-object.create create: $create, @@ -1252,7 +1306,7 @@ $$47({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$ getOwnPropertyDescriptor: $getOwnPropertyDescriptor }); -$$47({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { +$$4g({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames getOwnPropertyNames: $getOwnPropertyNames, @@ -1263,16 +1317,16 @@ $$47({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives // https://bugs.chromium.org/p/v8/issues/detail?id=3443 -$$47({ target: 'Object', stat: true, forced: fails$R(function () { getOwnPropertySymbolsModule$1.f(1); }) }, { +$$4g({ target: 'Object', stat: true, forced: fails$X(function () { getOwnPropertySymbolsModule$1.f(1); }) }, { getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return getOwnPropertySymbolsModule$1.f(toObject$t(it)); + return getOwnPropertySymbolsModule$1.f(toObject$u(it)); } }); // `JSON.stringify` method behavior with symbols // https://tc39.es/ecma262/#sec-json.stringify if ($stringify$1) { - var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$R(function () { + var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$X(function () { var symbol = $Symbol(); // MS Edge converts symbol values to JSON as {} return $stringify$1([symbol]) != '[null]' @@ -1282,7 +1336,7 @@ if ($stringify$1) { || $stringify$1(Object(symbol)) != '{}'; }); - $$47({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, { + $$4g({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var args = [it]; @@ -1290,10 +1344,10 @@ if ($stringify$1) { var $replacer; while (arguments.length > index) args.push(arguments[index++]); $replacer = replacer; - if (!isObject$v(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined + if (!isObject$v(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined if (!isArray$6(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; + if (!isSymbol$2(value)) return value; }; args[1] = replacer; return $stringify$1.apply(null, args); @@ -1304,7 +1358,7 @@ if ($stringify$1) { // `Symbol.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE$1]) { - createNonEnumerableProperty$h($Symbol[PROTOTYPE$1], TO_PRIMITIVE$1, $Symbol[PROTOTYPE$1].valueOf); + createNonEnumerableProperty$i($Symbol[PROTOTYPE$1], TO_PRIMITIVE$1, $Symbol[PROTOTYPE$1].valueOf); } // `Symbol.prototype[@@toStringTag]` property // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag @@ -1312,17 +1366,17 @@ setToStringTag$a($Symbol, SYMBOL); hiddenKeys$1[HIDDEN] = true; -var $$46 = _export; -var DESCRIPTORS$s = descriptors; -var global$z = global$M; +var $$4f = _export; +var DESCRIPTORS$t = descriptors; +var global$D = global$Q; var has$d = has$n; -var isObject$u = isObject$B; -var defineProperty$c = objectDefineProperty.f; +var isObject$u = isObject$C; +var defineProperty$d = objectDefineProperty.f; var copyConstructorProperties = copyConstructorProperties$2; -var NativeSymbol = global$z.Symbol; +var NativeSymbol = global$D.Symbol; -if (DESCRIPTORS$s && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || +if (DESCRIPTORS$t && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || // Safari 12 bug NativeSymbol().description !== undefined )) { @@ -1344,7 +1398,7 @@ if (DESCRIPTORS$s && typeof NativeSymbol == 'function' && (!('description' in Na var symbolToString = symbolPrototype.toString; var native = String(NativeSymbol('test')) == 'Symbol(test)'; var regexp = /^Symbol\((.*)\)[^)]+$/; - defineProperty$c(symbolPrototype, 'description', { + defineProperty$d(symbolPrototype, 'description', { configurable: true, get: function description() { var symbol = isObject$u(this) ? this.valueOf() : this; @@ -1355,7 +1409,7 @@ if (DESCRIPTORS$s && typeof NativeSymbol == 'function' && (!('description' in Na } }); - $$46({ global: true, forced: true }, { + $$4f({ global: true, forced: true }, { Symbol: SymbolWrapper }); } @@ -1438,9 +1492,9 @@ var defineWellKnownSymbol$7 = defineWellKnownSymbol$l; // https://tc39.es/ecma262/#sec-symbol.unscopables defineWellKnownSymbol$7('unscopables'); -var fails$Q = fails$X; +var fails$W = fails$11; -var correctPrototypeGetter = !fails$Q(function () { +var correctPrototypeGetter = !fails$W(function () { function F() { /* empty */ } F.prototype.constructor = null; // eslint-disable-next-line es/no-object-getprototypeof -- required for testing @@ -1448,7 +1502,7 @@ var correctPrototypeGetter = !fails$Q(function () { }); var has$c = has$n; -var toObject$s = toObject$w; +var toObject$t = toObject$x; var sharedKey = sharedKey$4; var CORRECT_PROTOTYPE_GETTER$2 = correctPrototypeGetter; @@ -1459,14 +1513,14 @@ var ObjectPrototype$2 = Object.prototype; // https://tc39.es/ecma262/#sec-object.getprototypeof // eslint-disable-next-line es/no-object-getprototypeof -- safe var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$2 ? Object.getPrototypeOf : function (O) { - O = toObject$s(O); + O = toObject$t(O); if (has$c(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectPrototype$2 : null; }; -var isObject$t = isObject$B; +var isObject$t = isObject$C; var aPossiblePrototype$2 = function (it) { if (!isObject$t(it) && it !== null) { @@ -1476,7 +1530,7 @@ var aPossiblePrototype$2 = function (it) { /* eslint-disable no-proto -- safe */ -var anObject$1t = anObject$1z; +var anObject$1v = anObject$1B; var aPossiblePrototype$1 = aPossiblePrototype$2; // `Object.setPrototypeOf` method @@ -1494,7 +1548,7 @@ var objectSetPrototypeOf$1 = Object.setPrototypeOf || ('__proto__' in {} ? funct CORRECT_SETTER = test instanceof Array; } catch (error) { /* empty */ } return function setPrototypeOf(O, proto) { - anObject$1t(O); + anObject$1v(O); aPossiblePrototype$1(proto); if (CORRECT_SETTER) setter.call(O, proto); else O.__proto__ = proto; @@ -1504,10 +1558,10 @@ var objectSetPrototypeOf$1 = Object.setPrototypeOf || ('__proto__' in {} ? funct var iterators = {}; -var wellKnownSymbol$x = wellKnownSymbol$C; +var wellKnownSymbol$z = wellKnownSymbol$F; var Iterators$4 = iterators; -var ITERATOR$8 = wellKnownSymbol$x('iterator'); +var ITERATOR$8 = wellKnownSymbol$z('iterator'); var ArrayPrototype$1 = Array.prototype; // check on default Array iterator @@ -1515,9 +1569,9 @@ var isArrayIteratorMethod$3 = function (it) { return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$8] === it); }; -var wellKnownSymbol$w = wellKnownSymbol$C; +var wellKnownSymbol$y = wellKnownSymbol$F; -var TO_STRING_TAG$7 = wellKnownSymbol$w('toStringTag'); +var TO_STRING_TAG$7 = wellKnownSymbol$y('toStringTag'); var test$2 = {}; test$2[TO_STRING_TAG$7] = 'z'; @@ -1526,9 +1580,9 @@ var toStringTagSupport = String(test$2) === '[object z]'; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var classofRaw = classofRaw$1; -var wellKnownSymbol$v = wellKnownSymbol$C; +var wellKnownSymbol$x = wellKnownSymbol$F; -var TO_STRING_TAG$6 = wellKnownSymbol$v('toStringTag'); +var TO_STRING_TAG$6 = wellKnownSymbol$x('toStringTag'); // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; @@ -1553,9 +1607,9 @@ var classof$b = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) { var classof$a = classof$b; var Iterators$3 = iterators; -var wellKnownSymbol$u = wellKnownSymbol$C; +var wellKnownSymbol$w = wellKnownSymbol$F; -var ITERATOR$7 = wellKnownSymbol$u('iterator'); +var ITERATOR$7 = wellKnownSymbol$w('iterator'); var getIteratorMethod$8 = function (it) { if (it != undefined) return it[ITERATOR$7] @@ -1563,20 +1617,44 @@ var getIteratorMethod$8 = function (it) { || Iterators$3[classof$a(it)]; }; -var anObject$1s = anObject$1z; +var anObject$1u = anObject$1B; +var getIteratorMethod$7 = getIteratorMethod$8; -var iteratorClose$4 = function (iterator) { - var returnMethod = iterator['return']; - if (returnMethod !== undefined) { - return anObject$1s(returnMethod.call(iterator)).value; +var getIterator$9 = function (it, usingIterator) { + var iteratorMethod = arguments.length < 2 ? getIteratorMethod$7(it) : usingIterator; + if (typeof iteratorMethod != 'function') { + throw TypeError(String(it) + ' is not iterable'); + } return anObject$1u(iteratorMethod.call(it)); +}; + +var anObject$1t = anObject$1B; + +var iteratorClose$4 = function (iterator, kind, value) { + var innerResult, innerError; + anObject$1t(iterator); + try { + innerResult = iterator['return']; + if (innerResult === undefined) { + if (kind === 'throw') throw value; + return value; + } + innerResult = innerResult.call(iterator); + } catch (error) { + innerError = true; + innerResult = error; } + if (kind === 'throw') throw value; + if (innerError) throw innerResult; + anObject$1t(innerResult); + return value; }; -var anObject$1r = anObject$1z; +var anObject$1s = anObject$1B; var isArrayIteratorMethod$2 = isArrayIteratorMethod$3; -var toLength$y = toLength$B; -var bind$n = functionBindContext; -var getIteratorMethod$7 = getIteratorMethod$8; +var toLength$z = toLength$C; +var bind$o = functionBindContext; +var getIterator$8 = getIterator$9; +var getIteratorMethod$6 = getIteratorMethod$8; var iteratorClose$3 = iteratorClose$4; var Result = function (stopped, result) { @@ -1589,17 +1667,17 @@ var iterate$I = function (iterable, unboundFunction, options) { var AS_ENTRIES = !!(options && options.AS_ENTRIES); var IS_ITERATOR = !!(options && options.IS_ITERATOR); var INTERRUPTED = !!(options && options.INTERRUPTED); - var fn = bind$n(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED); + var fn = bind$o(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED); var iterator, iterFn, index, length, result, next, step; var stop = function (condition) { - if (iterator) iteratorClose$3(iterator); + if (iterator) iteratorClose$3(iterator, 'return', condition); return new Result(true, condition); }; var callFn = function (value) { if (AS_ENTRIES) { - anObject$1r(value); + anObject$1s(value); return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); } return INTERRUPTED ? fn(value, stop) : fn(value); }; @@ -1607,16 +1685,16 @@ var iterate$I = function (iterable, unboundFunction, options) { if (IS_ITERATOR) { iterator = iterable; } else { - iterFn = getIteratorMethod$7(iterable); + iterFn = getIteratorMethod$6(iterable); if (typeof iterFn != 'function') throw TypeError('Target is not iterable'); // optimisation for array iterators if (isArrayIteratorMethod$2(iterFn)) { - for (index = 0, length = toLength$y(iterable.length); length > index; index++) { + for (index = 0, length = toLength$z(iterable.length); length > index; index++) { result = callFn(iterable[index]); if (result && result instanceof Result) return result; } return new Result(false); } - iterator = iterFn.call(iterable); + iterator = getIterator$8(iterable, iterFn); } next = iterator.next; @@ -1624,20 +1702,20 @@ var iterate$I = function (iterable, unboundFunction, options) { try { result = callFn(step.value); } catch (error) { - iteratorClose$3(iterator); - throw error; + iteratorClose$3(iterator, 'throw', error); } if (typeof result == 'object' && result && result instanceof Result) return result; } return new Result(false); }; -var $$45 = _export; +var $$4e = _export; var getPrototypeOf$d = objectGetPrototypeOf$1; var setPrototypeOf$7 = objectSetPrototypeOf$1; -var create$c = objectCreate; -var createNonEnumerableProperty$g = createNonEnumerableProperty$m; +var create$e = objectCreate$1; +var createNonEnumerableProperty$h = createNonEnumerableProperty$m; var createPropertyDescriptor$5 = createPropertyDescriptor$9; var iterate$H = iterate$I; +var toString$q = toString$s; var $AggregateError = function AggregateError(errors, message) { var that = this; @@ -1646,14 +1724,14 @@ var $AggregateError = function AggregateError(errors, message) { // eslint-disable-next-line unicorn/error-message -- expected that = setPrototypeOf$7(new Error(undefined), getPrototypeOf$d(that)); } - if (message !== undefined) createNonEnumerableProperty$g(that, 'message', String(message)); + if (message !== undefined) createNonEnumerableProperty$h(that, 'message', toString$q(message)); var errorsArray = []; iterate$H(errors, errorsArray.push, { that: errorsArray }); - createNonEnumerableProperty$g(that, 'errors', errorsArray); + createNonEnumerableProperty$h(that, 'errors', errorsArray); return that; }; -$AggregateError.prototype = create$c(Error.prototype, { +$AggregateError.prototype = create$e(Error.prototype, { constructor: createPropertyDescriptor$5(5, $AggregateError), message: createPropertyDescriptor$5(5, ''), name: createPropertyDescriptor$5(5, 'AggregateError') @@ -1661,31 +1739,31 @@ $AggregateError.prototype = create$c(Error.prototype, { // `AggregateError` constructor // https://tc39.es/ecma262/#sec-aggregate-error-constructor -$$45({ global: true }, { +$$4e({ global: true }, { AggregateError: $AggregateError }); -var toPrimitive$7 = toPrimitive$b; +var toPropertyKey$5 = toPropertyKey$9; var definePropertyModule$8 = objectDefineProperty; var createPropertyDescriptor$4 = createPropertyDescriptor$9; var createProperty$7 = function (object, key, value) { - var propertyKey = toPrimitive$7(key); + var propertyKey = toPropertyKey$5(key); if (propertyKey in object) definePropertyModule$8.f(object, propertyKey, createPropertyDescriptor$4(0, value)); else object[propertyKey] = value; }; -var fails$P = fails$X; -var wellKnownSymbol$t = wellKnownSymbol$C; +var fails$V = fails$11; +var wellKnownSymbol$v = wellKnownSymbol$F; var V8_VERSION$2 = engineV8Version; -var SPECIES$5 = wellKnownSymbol$t('species'); +var SPECIES$5 = wellKnownSymbol$v('species'); var arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) { // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 - return V8_VERSION$2 >= 51 || !fails$P(function () { + return V8_VERSION$2 >= 51 || !fails$V(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$5] = function () { @@ -1695,26 +1773,26 @@ var arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) { }); }; -var $$44 = _export; -var fails$O = fails$X; +var $$4d = _export; +var fails$U = fails$11; var isArray$5 = isArray$8; -var isObject$s = isObject$B; -var toObject$r = toObject$w; -var toLength$x = toLength$B; +var isObject$s = isObject$C; +var toObject$s = toObject$x; +var toLength$y = toLength$C; var createProperty$6 = createProperty$7; var arraySpeciesCreate$4 = arraySpeciesCreate$6; var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5; -var wellKnownSymbol$s = wellKnownSymbol$C; +var wellKnownSymbol$u = wellKnownSymbol$F; var V8_VERSION$1 = engineV8Version; -var IS_CONCAT_SPREADABLE = wellKnownSymbol$s('isConcatSpreadable'); +var IS_CONCAT_SPREADABLE = wellKnownSymbol$u('isConcatSpreadable'); var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 -var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$O(function () { +var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$U(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; @@ -1728,22 +1806,22 @@ var isConcatSpreadable = function (O) { return spreadable !== undefined ? !!spreadable : isArray$5(O); }; -var FORCED$r = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; +var FORCED$s = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; // `Array.prototype.concat` method // https://tc39.es/ecma262/#sec-array.prototype.concat // with adding support of @@isConcatSpreadable and @@species -$$44({ target: 'Array', proto: true, forced: FORCED$r }, { +$$4d({ target: 'Array', proto: true, forced: FORCED$s }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat(arg) { - var O = toObject$r(this); + var O = toObject$s(this); var A = arraySpeciesCreate$4(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { - len = toLength$x(E.length); + len = toLength$y(E.length); if (n + len > MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); for (k = 0; k < len; k++, n++) if (k in E) createProperty$6(A, n, E[k]); } else { @@ -1756,22 +1834,22 @@ $$44({ target: 'Array', proto: true, forced: FORCED$r }, { } }); -var toObject$q = toObject$w; +var toObject$r = toObject$x; var toAbsoluteIndex$6 = toAbsoluteIndex$8; -var toLength$w = toLength$B; +var toLength$x = toLength$C; -var min$7 = Math.min; +var min$8 = Math.min; // `Array.prototype.copyWithin` method implementation // https://tc39.es/ecma262/#sec-array.prototype.copywithin // eslint-disable-next-line es/no-array-prototype-copywithin -- safe var arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { - var O = toObject$q(this); - var len = toLength$w(O.length); + var O = toObject$r(this); + var len = toLength$x(O.length); var to = toAbsoluteIndex$6(target, len); var from = toAbsoluteIndex$6(start, len); var end = arguments.length > 2 ? arguments[2] : undefined; - var count = min$7((end === undefined ? len : toAbsoluteIndex$6(end, len)) - from, len - to); + var count = min$8((end === undefined ? len : toAbsoluteIndex$6(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; @@ -1786,11 +1864,11 @@ var arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, sta } return O; }; -var wellKnownSymbol$r = wellKnownSymbol$C; -var create$b = objectCreate; +var wellKnownSymbol$t = wellKnownSymbol$F; +var create$d = objectCreate$1; var definePropertyModule$7 = objectDefineProperty; -var UNSCOPABLES = wellKnownSymbol$r('unscopables'); +var UNSCOPABLES = wellKnownSymbol$t('unscopables'); var ArrayPrototype = Array.prototype; // Array.prototype[@@unscopables] @@ -1798,39 +1876,39 @@ var ArrayPrototype = Array.prototype; if (ArrayPrototype[UNSCOPABLES] == undefined) { definePropertyModule$7.f(ArrayPrototype, UNSCOPABLES, { configurable: true, - value: create$b(null) + value: create$d(null) }); } // add a key to Array.prototype[@@unscopables] -var addToUnscopables$f = function (key) { +var addToUnscopables$h = function (key) { ArrayPrototype[UNSCOPABLES][key] = true; }; -var $$43 = _export; +var $$4c = _export; var copyWithin = arrayCopyWithin; -var addToUnscopables$e = addToUnscopables$f; +var addToUnscopables$g = addToUnscopables$h; // `Array.prototype.copyWithin` method // https://tc39.es/ecma262/#sec-array.prototype.copywithin -$$43({ target: 'Array', proto: true }, { +$$4c({ target: 'Array', proto: true }, { copyWithin: copyWithin }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$e('copyWithin'); +addToUnscopables$g('copyWithin'); -var fails$N = fails$X; +var fails$T = fails$11; var arrayMethodIsStrict$9 = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; - return !!method && fails$N(function () { + return !!method && fails$T(function () { // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing method.call(null, argument || function () { throw 1; }, 1); }); }; -var $$42 = _export; +var $$4b = _export; var $every$2 = arrayIteration.every; var arrayMethodIsStrict$8 = arrayMethodIsStrict$9; @@ -1838,21 +1916,21 @@ var STRICT_METHOD$8 = arrayMethodIsStrict$8('every'); // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every -$$42({ target: 'Array', proto: true, forced: !STRICT_METHOD$8 }, { +$$4b({ target: 'Array', proto: true, forced: !STRICT_METHOD$8 }, { every: function every(callbackfn /* , thisArg */) { return $every$2(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -var toObject$p = toObject$w; +var toObject$q = toObject$x; var toAbsoluteIndex$5 = toAbsoluteIndex$8; -var toLength$v = toLength$B; +var toLength$w = toLength$C; // `Array.prototype.fill` method implementation // https://tc39.es/ecma262/#sec-array.prototype.fill var arrayFill$1 = function fill(value /* , start = 0, end = @length */) { - var O = toObject$p(this); - var length = toLength$v(O.length); + var O = toObject$q(this); + var length = toLength$w(O.length); var argumentsLength = arguments.length; var index = toAbsoluteIndex$5(argumentsLength > 1 ? arguments[1] : undefined, length); var end = argumentsLength > 2 ? arguments[2] : undefined; @@ -1861,20 +1939,20 @@ var arrayFill$1 = function fill(value /* , start = 0, end = @length */) { return O; }; -var $$41 = _export; +var $$4a = _export; var fill = arrayFill$1; -var addToUnscopables$d = addToUnscopables$f; +var addToUnscopables$f = addToUnscopables$h; // `Array.prototype.fill` method // https://tc39.es/ecma262/#sec-array.prototype.fill -$$41({ target: 'Array', proto: true }, { +$$4a({ target: 'Array', proto: true }, { fill: fill }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$d('fill'); +addToUnscopables$f('fill'); -var $$40 = _export; +var $$49 = _export; var $filter$1 = arrayIteration.filter; var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5; @@ -1883,15 +1961,15 @@ var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('filter'); // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter // with adding support of @@species -$$40({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, { +$$49({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, { filter: function filter(callbackfn /* , thisArg */) { return $filter$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$3$ = _export; +var $$48 = _export; var $find$2 = arrayIteration.find; -var addToUnscopables$c = addToUnscopables$f; +var addToUnscopables$e = addToUnscopables$h; var FIND = 'find'; var SKIPS_HOLES$1 = true; @@ -1901,18 +1979,18 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES$1 = false; }); // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find -$$3$({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, { +$$48({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, { find: function find(callbackfn /* , that = undefined */) { return $find$2(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$c(FIND); +addToUnscopables$e(FIND); -var $$3_ = _export; +var $$47 = _export; var $findIndex$1 = arrayIteration.findIndex; -var addToUnscopables$b = addToUnscopables$f; +var addToUnscopables$d = addToUnscopables$h; var FIND_INDEX = 'findIndex'; var SKIPS_HOLES = true; @@ -1922,25 +2000,25 @@ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; }) // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findindex -$$3_({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { +$$47({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $findIndex$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$b(FIND_INDEX); +addToUnscopables$d(FIND_INDEX); var isArray$4 = isArray$8; -var toLength$u = toLength$B; -var bind$m = functionBindContext; +var toLength$v = toLength$C; +var bind$n = functionBindContext; // `FlattenIntoArray` abstract operation // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray var flattenIntoArray$2 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) { var targetIndex = start; var sourceIndex = 0; - var mapFn = mapper ? bind$m(mapper, thisArg, 3) : false; + var mapFn = mapper ? bind$n(mapper, thisArg, 3) : false; var element; while (sourceIndex < sourceLen) { @@ -1948,7 +2026,7 @@ var flattenIntoArray$2 = function (target, original, source, sourceLen, start, d element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex]; if (depth > 0 && isArray$4(element)) { - targetIndex = flattenIntoArray$2(target, original, element, toLength$u(element.length), targetIndex, depth - 1) - 1; + targetIndex = flattenIntoArray$2(target, original, element, toLength$v(element.length), targetIndex, depth - 1) - 1; } else { if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length'); target[targetIndex] = element; @@ -1963,39 +2041,39 @@ var flattenIntoArray$2 = function (target, original, source, sourceLen, start, d var flattenIntoArray_1 = flattenIntoArray$2; -var $$3Z = _export; +var $$46 = _export; var flattenIntoArray$1 = flattenIntoArray_1; -var toObject$o = toObject$w; -var toLength$t = toLength$B; -var toInteger$c = toInteger$f; +var toObject$p = toObject$x; +var toLength$u = toLength$C; +var toInteger$e = toInteger$h; var arraySpeciesCreate$3 = arraySpeciesCreate$6; // `Array.prototype.flat` method // https://tc39.es/ecma262/#sec-array.prototype.flat -$$3Z({ target: 'Array', proto: true }, { +$$46({ target: 'Array', proto: true }, { flat: function flat(/* depthArg = 1 */) { var depthArg = arguments.length ? arguments[0] : undefined; - var O = toObject$o(this); - var sourceLen = toLength$t(O.length); + var O = toObject$p(this); + var sourceLen = toLength$u(O.length); var A = arraySpeciesCreate$3(O, 0); - A.length = flattenIntoArray$1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger$c(depthArg)); + A.length = flattenIntoArray$1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger$e(depthArg)); return A; } }); -var $$3Y = _export; +var $$45 = _export; var flattenIntoArray = flattenIntoArray_1; -var toObject$n = toObject$w; -var toLength$s = toLength$B; +var toObject$o = toObject$x; +var toLength$t = toLength$C; var aFunction$Q = aFunction$S; var arraySpeciesCreate$2 = arraySpeciesCreate$6; // `Array.prototype.flatMap` method // https://tc39.es/ecma262/#sec-array.prototype.flatmap -$$3Y({ target: 'Array', proto: true }, { +$$45({ target: 'Array', proto: true }, { flatMap: function flatMap(callbackfn /* , thisArg */) { - var O = toObject$n(this); - var sourceLen = toLength$s(O.length); + var O = toObject$o(this); + var sourceLen = toLength$t(O.length); var A; aFunction$Q(callbackfn); A = arraySpeciesCreate$2(O, 0); @@ -2016,52 +2094,52 @@ var arrayForEach = !STRICT_METHOD$7 ? function forEach(callbackfn /* , thisArg * // eslint-disable-next-line es/no-array-prototype-foreach -- safe } : [].forEach; -var $$3X = _export; +var $$44 = _export; var forEach$2 = arrayForEach; // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach // eslint-disable-next-line es/no-array-prototype-foreach -- safe -$$3X({ target: 'Array', proto: true, forced: [].forEach != forEach$2 }, { +$$44({ target: 'Array', proto: true, forced: [].forEach != forEach$2 }, { forEach: forEach$2 }); -var anObject$1q = anObject$1z; +var anObject$1r = anObject$1B; var iteratorClose$2 = iteratorClose$4; // call something on iterator step with safe closing on error var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) { try { - return ENTRIES ? fn(anObject$1q(value)[0], value[1]) : fn(value); + return ENTRIES ? fn(anObject$1r(value)[0], value[1]) : fn(value); } catch (error) { - iteratorClose$2(iterator); - throw error; + iteratorClose$2(iterator, 'throw', error); } }; -var bind$l = functionBindContext; -var toObject$m = toObject$w; +var bind$m = functionBindContext; +var toObject$n = toObject$x; var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3; var isArrayIteratorMethod$1 = isArrayIteratorMethod$3; -var toLength$r = toLength$B; +var toLength$s = toLength$C; var createProperty$5 = createProperty$7; -var getIteratorMethod$6 = getIteratorMethod$8; +var getIterator$7 = getIterator$9; +var getIteratorMethod$5 = getIteratorMethod$8; // `Array.from` method implementation // https://tc39.es/ecma262/#sec-array.from var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { - var O = toObject$m(arrayLike); + var O = toObject$n(arrayLike); var C = typeof this == 'function' ? this : Array; var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; - var iteratorMethod = getIteratorMethod$6(O); + var iteratorMethod = getIteratorMethod$5(O); var index = 0; var length, result, step, iterator, next, value; - if (mapping) mapfn = bind$l(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2); + if (mapping) mapfn = bind$m(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2); // if the target is not iterable or it's an array with the default iterator - use a simple case if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod$1(iteratorMethod))) { - iterator = iteratorMethod.call(O); + iterator = getIterator$7(O, iteratorMethod); next = iterator.next; result = new C(); for (;!(step = next.call(iterator)).done; index++) { @@ -2069,7 +2147,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde createProperty$5(result, index, value); } } else { - length = toLength$r(O.length); + length = toLength$s(O.length); result = new C(length); for (;length > index; index++) { value = mapping ? mapfn(O[index], index) : O[index]; @@ -2080,9 +2158,9 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde return result; }; -var wellKnownSymbol$q = wellKnownSymbol$C; +var wellKnownSymbol$s = wellKnownSymbol$F; -var ITERATOR$6 = wellKnownSymbol$q('iterator'); +var ITERATOR$6 = wellKnownSymbol$s('iterator'); var SAFE_CLOSING = false; try { @@ -2119,7 +2197,7 @@ var checkCorrectnessOfIteration$4 = function (exec, SKIP_CLOSING) { return ITERATION_SUPPORT; }; -var $$3W = _export; +var $$43 = _export; var from$5 = arrayFrom$1; var checkCorrectnessOfIteration$3 = checkCorrectnessOfIteration$4; @@ -2130,27 +2208,27 @@ var INCORRECT_ITERATION$1 = !checkCorrectnessOfIteration$3(function (iterable) { // `Array.from` method // https://tc39.es/ecma262/#sec-array.from -$$3W({ target: 'Array', stat: true, forced: INCORRECT_ITERATION$1 }, { +$$43({ target: 'Array', stat: true, forced: INCORRECT_ITERATION$1 }, { from: from$5 }); -var $$3V = _export; +var $$42 = _export; var $includes$1 = arrayIncludes.includes; -var addToUnscopables$a = addToUnscopables$f; +var addToUnscopables$c = addToUnscopables$h; // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes -$$3V({ target: 'Array', proto: true }, { +$$42({ target: 'Array', proto: true }, { includes: function includes(el /* , fromIndex = 0 */) { return $includes$1(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$a('includes'); +addToUnscopables$c('includes'); /* eslint-disable es/no-array-prototype-indexof -- required for testing */ -var $$3U = _export; +var $$41 = _export; var $indexOf$1 = arrayIncludes.indexOf; var arrayMethodIsStrict$6 = arrayMethodIsStrict$9; @@ -2161,7 +2239,7 @@ var STRICT_METHOD$6 = arrayMethodIsStrict$6('indexOf'); // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof -$$3U({ target: 'Array', proto: true, forced: NEGATIVE_ZERO$1 || !STRICT_METHOD$6 }, { +$$41({ target: 'Array', proto: true, forced: NEGATIVE_ZERO$1 || !STRICT_METHOD$6 }, { indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { return NEGATIVE_ZERO$1 // convert -0 to +0 @@ -2170,22 +2248,22 @@ $$3U({ target: 'Array', proto: true, forced: NEGATIVE_ZERO$1 || !STRICT_METHOD$6 } }); -var $$3T = _export; +var $$40 = _export; var isArray$3 = isArray$8; // `Array.isArray` method // https://tc39.es/ecma262/#sec-array.isarray -$$3T({ target: 'Array', stat: true }, { +$$40({ target: 'Array', stat: true }, { isArray: isArray$3 }); -var fails$M = fails$X; +var fails$S = fails$11; var getPrototypeOf$c = objectGetPrototypeOf$1; -var createNonEnumerableProperty$f = createNonEnumerableProperty$m; +var createNonEnumerableProperty$g = createNonEnumerableProperty$m; var has$b = has$n; -var wellKnownSymbol$p = wellKnownSymbol$C; +var wellKnownSymbol$r = wellKnownSymbol$F; -var ITERATOR$5 = wellKnownSymbol$p('iterator'); +var ITERATOR$5 = wellKnownSymbol$r('iterator'); var BUGGY_SAFARI_ITERATORS$1 = false; var returnThis$2 = function () { return this; }; @@ -2205,7 +2283,7 @@ if ([].keys) { } } -var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$3 == undefined || fails$M(function () { +var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$3 == undefined || fails$S(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype$3[ITERATOR$5].call(test) !== test; @@ -2216,7 +2294,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$3 = {}; // `%IteratorPrototype%[@@iterator]()` method // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator if (!has$b(IteratorPrototype$3, ITERATOR$5)) { - createNonEnumerableProperty$f(IteratorPrototype$3, ITERATOR$5, returnThis$2); + createNonEnumerableProperty$g(IteratorPrototype$3, ITERATOR$5, returnThis$2); } var iteratorsCore = { @@ -2225,7 +2303,7 @@ var iteratorsCore = { }; var IteratorPrototype$2 = iteratorsCore.IteratorPrototype; -var create$a = objectCreate; +var create$c = objectCreate$1; var createPropertyDescriptor$3 = createPropertyDescriptor$9; var setToStringTag$9 = setToStringTag$b; var Iterators$2 = iterators; @@ -2234,26 +2312,26 @@ var returnThis$1 = function () { return this; }; var createIteratorConstructor$7 = function (IteratorConstructor, NAME, next) { var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = create$a(IteratorPrototype$2, { next: createPropertyDescriptor$3(1, next) }); + IteratorConstructor.prototype = create$c(IteratorPrototype$2, { next: createPropertyDescriptor$3(1, next) }); setToStringTag$9(IteratorConstructor, TO_STRING_TAG, false); Iterators$2[TO_STRING_TAG] = returnThis$1; return IteratorConstructor; }; -var $$3S = _export; +var $$3$ = _export; var createIteratorConstructor$6 = createIteratorConstructor$7; var getPrototypeOf$b = objectGetPrototypeOf$1; var setPrototypeOf$6 = objectSetPrototypeOf$1; var setToStringTag$8 = setToStringTag$b; -var createNonEnumerableProperty$e = createNonEnumerableProperty$m; +var createNonEnumerableProperty$f = createNonEnumerableProperty$m; var redefine$d = redefine$g.exports; -var wellKnownSymbol$o = wellKnownSymbol$C; +var wellKnownSymbol$q = wellKnownSymbol$F; var Iterators$1 = iterators; var IteratorsCore = iteratorsCore; var IteratorPrototype$1 = IteratorsCore.IteratorPrototype; var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR$4 = wellKnownSymbol$o('iterator'); +var ITERATOR$4 = wellKnownSymbol$q('iterator'); var KEYS = 'keys'; var VALUES = 'values'; var ENTRIES = 'entries'; @@ -2291,7 +2369,7 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA if (setPrototypeOf$6) { setPrototypeOf$6(CurrentIteratorPrototype, IteratorPrototype$1); } else if (typeof CurrentIteratorPrototype[ITERATOR$4] != 'function') { - createNonEnumerableProperty$e(CurrentIteratorPrototype, ITERATOR$4, returnThis); + createNonEnumerableProperty$f(CurrentIteratorPrototype, ITERATOR$4, returnThis); } } // Set @@toStringTag to native iterators @@ -2307,7 +2385,7 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA // define iterator if (IterablePrototype[ITERATOR$4] !== defaultIterator) { - createNonEnumerableProperty$e(IterablePrototype, ITERATOR$4, defaultIterator); + createNonEnumerableProperty$f(IterablePrototype, ITERATOR$4, defaultIterator); } Iterators$1[NAME] = defaultIterator; @@ -2322,21 +2400,21 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { redefine$d(IterablePrototype, KEY, methods[KEY]); } - } else $$3S({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } else $$3$({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } return methods; }; var toIndexedObject$7 = toIndexedObject$d; -var addToUnscopables$9 = addToUnscopables$f; +var addToUnscopables$b = addToUnscopables$h; var Iterators = iterators; -var InternalStateModule$g = internalState; +var InternalStateModule$h = internalState; var defineIterator$2 = defineIterator$3; var ARRAY_ITERATOR = 'Array Iterator'; -var setInternalState$g = InternalStateModule$g.set; -var getInternalState$d = InternalStateModule$g.getterFor(ARRAY_ITERATOR); +var setInternalState$h = InternalStateModule$h.set; +var getInternalState$g = InternalStateModule$h.getterFor(ARRAY_ITERATOR); // `Array.prototype.entries` method // https://tc39.es/ecma262/#sec-array.prototype.entries @@ -2349,7 +2427,7 @@ var getInternalState$d = InternalStateModule$g.getterFor(ARRAY_ITERATOR); // `CreateArrayIterator` internal method // https://tc39.es/ecma262/#sec-createarrayiterator var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kind) { - setInternalState$g(this, { + setInternalState$h(this, { type: ARRAY_ITERATOR, target: toIndexedObject$7(iterated), // target index: 0, // next index @@ -2358,7 +2436,7 @@ var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kin // `%ArrayIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next }, function () { - var state = getInternalState$d(this); + var state = getInternalState$g(this); var target = state.target; var kind = state.kind; var index = state.index++; @@ -2377,23 +2455,23 @@ var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kin Iterators.Arguments = Iterators.Array; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$9('keys'); -addToUnscopables$9('values'); -addToUnscopables$9('entries'); +addToUnscopables$b('keys'); +addToUnscopables$b('values'); +addToUnscopables$b('entries'); -var $$3R = _export; -var IndexedObject$3 = indexedObject; +var $$3_ = _export; +var IndexedObject$4 = indexedObject; var toIndexedObject$6 = toIndexedObject$d; var arrayMethodIsStrict$5 = arrayMethodIsStrict$9; var nativeJoin = [].join; -var ES3_STRINGS = IndexedObject$3 != Object; +var ES3_STRINGS = IndexedObject$4 != Object; var STRICT_METHOD$5 = arrayMethodIsStrict$5('join', ','); // `Array.prototype.join` method // https://tc39.es/ecma262/#sec-array.prototype.join -$$3R({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$5 }, { +$$3_({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$5 }, { join: function join(separator) { return nativeJoin.call(toIndexedObject$6(this), separator === undefined ? ',' : separator); } @@ -2401,41 +2479,41 @@ $$3R({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$5 }, /* eslint-disable es/no-array-prototype-lastindexof -- safe */ var toIndexedObject$5 = toIndexedObject$d; -var toInteger$b = toInteger$f; -var toLength$q = toLength$B; +var toInteger$d = toInteger$h; +var toLength$r = toLength$C; var arrayMethodIsStrict$4 = arrayMethodIsStrict$9; -var min$6 = Math.min; +var min$7 = Math.min; var $lastIndexOf$1 = [].lastIndexOf; var NEGATIVE_ZERO = !!$lastIndexOf$1 && 1 / [1].lastIndexOf(1, -0) < 0; var STRICT_METHOD$4 = arrayMethodIsStrict$4('lastIndexOf'); -var FORCED$q = NEGATIVE_ZERO || !STRICT_METHOD$4; +var FORCED$r = NEGATIVE_ZERO || !STRICT_METHOD$4; // `Array.prototype.lastIndexOf` method implementation // https://tc39.es/ecma262/#sec-array.prototype.lastindexof -var arrayLastIndexOf = FORCED$q ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { +var arrayLastIndexOf = FORCED$r ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { // convert -0 to +0 if (NEGATIVE_ZERO) return $lastIndexOf$1.apply(this, arguments) || 0; var O = toIndexedObject$5(this); - var length = toLength$q(O.length); + var length = toLength$r(O.length); var index = length - 1; - if (arguments.length > 1) index = min$6(index, toInteger$b(arguments[1])); + if (arguments.length > 1) index = min$7(index, toInteger$d(arguments[1])); if (index < 0) index = length + index; for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0; return -1; } : $lastIndexOf$1; -var $$3Q = _export; +var $$3Z = _export; var lastIndexOf = arrayLastIndexOf; // `Array.prototype.lastIndexOf` method // https://tc39.es/ecma262/#sec-array.prototype.lastindexof // eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing -$$3Q({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, { +$$3Z({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, { lastIndexOf: lastIndexOf }); -var $$3P = _export; +var $$3Y = _export; var $map$1 = arrayIteration.map; var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5; @@ -2444,17 +2522,17 @@ var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map'); // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map // with adding support of @@species -$$3P({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { +$$3Y({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { map: function map(callbackfn /* , thisArg */) { return $map$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$3O = _export; -var fails$L = fails$X; +var $$3X = _export; +var fails$R = fails$11; var createProperty$4 = createProperty$7; -var ISNT_GENERIC = fails$L(function () { +var ISNT_GENERIC = fails$R(function () { function F() { /* empty */ } // eslint-disable-next-line es/no-array-of -- required for testing return !(Array.of.call(F) instanceof F); @@ -2463,7 +2541,7 @@ var ISNT_GENERIC = fails$L(function () { // `Array.of` method // https://tc39.es/ecma262/#sec-array.of // WebKit Array.of isn't generic -$$3O({ target: 'Array', stat: true, forced: ISNT_GENERIC }, { +$$3X({ target: 'Array', stat: true, forced: ISNT_GENERIC }, { of: function of(/* ...args */) { var index = 0; var argumentsLength = arguments.length; @@ -2475,17 +2553,17 @@ $$3O({ target: 'Array', stat: true, forced: ISNT_GENERIC }, { }); var aFunction$P = aFunction$S; -var toObject$l = toObject$w; -var IndexedObject$2 = indexedObject; -var toLength$p = toLength$B; +var toObject$m = toObject$x; +var IndexedObject$3 = indexedObject; +var toLength$q = toLength$C; // `Array.prototype.{ reduce, reduceRight }` methods implementation var createMethod$6 = function (IS_RIGHT) { return function (that, callbackfn, argumentsLength, memo) { aFunction$P(callbackfn); - var O = toObject$l(that); - var self = IndexedObject$2(O); - var length = toLength$p(O.length); + var O = toObject$m(that); + var self = IndexedObject$3(O); + var length = toLength$q(O.length); var index = IS_RIGHT ? length - 1 : 0; var i = IS_RIGHT ? -1 : 1; if (argumentsLength < 2) while (true) { @@ -2516,11 +2594,11 @@ var arrayReduce = { }; var classof$9 = classofRaw$1; -var global$y = global$M; +var global$C = global$Q; -var engineIsNode = classof$9(global$y.process) == 'process'; +var engineIsNode = classof$9(global$C.process) == 'process'; -var $$3N = _export; +var $$3W = _export; var $reduce$1 = arrayReduce.left; var arrayMethodIsStrict$3 = arrayMethodIsStrict$9; var CHROME_VERSION$1 = engineV8Version; @@ -2533,13 +2611,13 @@ var CHROME_BUG$1 = !IS_NODE$5 && CHROME_VERSION$1 > 79 && CHROME_VERSION$1 < 83; // `Array.prototype.reduce` method // https://tc39.es/ecma262/#sec-array.prototype.reduce -$$3N({ target: 'Array', proto: true, forced: !STRICT_METHOD$3 || CHROME_BUG$1 }, { +$$3W({ target: 'Array', proto: true, forced: !STRICT_METHOD$3 || CHROME_BUG$1 }, { reduce: function reduce(callbackfn /* , initialValue */) { return $reduce$1(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$3M = _export; +var $$3V = _export; var $reduceRight$1 = arrayReduce.right; var arrayMethodIsStrict$2 = arrayMethodIsStrict$9; var CHROME_VERSION = engineV8Version; @@ -2552,13 +2630,13 @@ var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83; // `Array.prototype.reduceRight` method // https://tc39.es/ecma262/#sec-array.prototype.reduceright -$$3M({ target: 'Array', proto: true, forced: !STRICT_METHOD$2 || CHROME_BUG }, { +$$3V({ target: 'Array', proto: true, forced: !STRICT_METHOD$2 || CHROME_BUG }, { reduceRight: function reduceRight(callbackfn /* , initialValue */) { return $reduceRight$1(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$3L = _export; +var $$3U = _export; var isArray$2 = isArray$8; var nativeReverse = [].reverse; @@ -2568,7 +2646,7 @@ var test$1 = [1, 2]; // https://tc39.es/ecma262/#sec-array.prototype.reverse // fix for Safari 12.0 bug // https://bugs.webkit.org/show_bug.cgi?id=188794 -$$3L({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, { +$$3U({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, { reverse: function reverse() { // eslint-disable-next-line no-self-assign -- dirty hack if (isArray$2(this)) this.length = this.length; @@ -2576,29 +2654,29 @@ $$3L({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.re } }); -var $$3K = _export; -var isObject$r = isObject$B; +var $$3T = _export; +var isObject$r = isObject$C; var isArray$1 = isArray$8; var toAbsoluteIndex$4 = toAbsoluteIndex$8; -var toLength$o = toLength$B; +var toLength$p = toLength$C; var toIndexedObject$4 = toIndexedObject$d; var createProperty$3 = createProperty$7; -var wellKnownSymbol$n = wellKnownSymbol$C; +var wellKnownSymbol$p = wellKnownSymbol$F; var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5; var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice'); -var SPECIES$4 = wellKnownSymbol$n('species'); +var SPECIES$4 = wellKnownSymbol$p('species'); var nativeSlice = [].slice; -var max$4 = Math.max; +var max$5 = Math.max; // `Array.prototype.slice` method // https://tc39.es/ecma262/#sec-array.prototype.slice // fallback for not array-like ES3 strings and DOM objects -$$3K({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { +$$3T({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { slice: function slice(start, end) { var O = toIndexedObject$4(this); - var length = toLength$o(O.length); + var length = toLength$p(O.length); var k = toAbsoluteIndex$4(start, length); var fin = toAbsoluteIndex$4(end === undefined ? length : end, length); // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible @@ -2616,14 +2694,14 @@ $$3K({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { return nativeSlice.call(O, k, fin); } } - result = new (Constructor === undefined ? Array : Constructor)(max$4(fin - k, 0)); + result = new (Constructor === undefined ? Array : Constructor)(max$5(fin - k, 0)); for (n = 0; k < fin; k++, n++) if (k in O) createProperty$3(result, n, O[k]); result.length = n; return result; } }); -var $$3J = _export; +var $$3S = _export; var $some$2 = arrayIteration.some; var arrayMethodIsStrict$1 = arrayMethodIsStrict$9; @@ -2631,7 +2709,7 @@ var STRICT_METHOD$1 = arrayMethodIsStrict$1('some'); // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some -$$3J({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 }, { +$$3S({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 }, { some: function some(callbackfn /* , thisArg */) { return $some$2(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } @@ -2683,9 +2761,9 @@ var merge = function (left, right, comparefn) { var arraySort = mergeSort; -var userAgent$5 = engineUserAgent; +var userAgent$6 = engineUserAgent; -var firefox = userAgent$5.match(/firefox\/(\d+)/i); +var firefox = userAgent$6.match(/firefox\/(\d+)/i); var engineFfVersion = !!firefox && +firefox[1]; @@ -2693,17 +2771,18 @@ var UA = engineUserAgent; var engineIsIeOrEdge = /MSIE|Trident/.test(UA); -var userAgent$4 = engineUserAgent; +var userAgent$5 = engineUserAgent; -var webkit = userAgent$4.match(/AppleWebKit\/(\d+)\./); +var webkit = userAgent$5.match(/AppleWebKit\/(\d+)\./); var engineWebkitVersion = !!webkit && +webkit[1]; -var $$3I = _export; +var $$3R = _export; var aFunction$O = aFunction$S; -var toObject$k = toObject$w; -var toLength$n = toLength$B; -var fails$K = fails$X; +var toObject$l = toObject$x; +var toLength$o = toLength$C; +var toString$p = toString$s; +var fails$Q = fails$11; var internalSort$1 = arraySort; var arrayMethodIsStrict = arrayMethodIsStrict$9; var FF$1 = engineFfVersion; @@ -2715,17 +2794,17 @@ var test = []; var nativeSort$1 = test.sort; // IE8- -var FAILS_ON_UNDEFINED = fails$K(function () { +var FAILS_ON_UNDEFINED = fails$Q(function () { test.sort(undefined); }); // V8 bug -var FAILS_ON_NULL = fails$K(function () { +var FAILS_ON_NULL = fails$Q(function () { test.sort(null); }); // Old WebKit var STRICT_METHOD = arrayMethodIsStrict('sort'); -var STABLE_SORT$1 = !fails$K(function () { +var STABLE_SORT$1 = !fails$Q(function () { // feature detection can be too slow, so check engines versions if (V8$1) return V8$1 < 70; if (FF$1 && FF$1 > 3) return; @@ -2760,29 +2839,29 @@ var STABLE_SORT$1 = !fails$K(function () { return result !== 'DGBEFHACIJK'; }); -var FORCED$p = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT$1; +var FORCED$q = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT$1; var getSortCompare$1 = function (comparefn) { return function (x, y) { if (y === undefined) return -1; if (x === undefined) return 1; if (comparefn !== undefined) return +comparefn(x, y) || 0; - return String(x) > String(y) ? 1 : -1; + return toString$p(x) > toString$p(y) ? 1 : -1; }; }; // `Array.prototype.sort` method // https://tc39.es/ecma262/#sec-array.prototype.sort -$$3I({ target: 'Array', proto: true, forced: FORCED$p }, { +$$3R({ target: 'Array', proto: true, forced: FORCED$q }, { sort: function sort(comparefn) { if (comparefn !== undefined) aFunction$O(comparefn); - var array = toObject$k(this); + var array = toObject$l(this); if (STABLE_SORT$1) return comparefn === undefined ? nativeSort$1.call(array) : nativeSort$1.call(array, comparefn); var items = []; - var arrayLength = toLength$n(array.length); + var arrayLength = toLength$o(array.length); var itemsLength, index; for (index = 0; index < arrayLength; index++) { @@ -2800,18 +2879,18 @@ $$3I({ target: 'Array', proto: true, forced: FORCED$p }, { } }); -var getBuiltIn$o = getBuiltIn$t; +var getBuiltIn$p = getBuiltIn$v; var definePropertyModule$6 = objectDefineProperty; -var wellKnownSymbol$m = wellKnownSymbol$C; -var DESCRIPTORS$r = descriptors; +var wellKnownSymbol$o = wellKnownSymbol$F; +var DESCRIPTORS$s = descriptors; -var SPECIES$3 = wellKnownSymbol$m('species'); +var SPECIES$3 = wellKnownSymbol$o('species'); var setSpecies$7 = function (CONSTRUCTOR_NAME) { - var Constructor = getBuiltIn$o(CONSTRUCTOR_NAME); + var Constructor = getBuiltIn$p(CONSTRUCTOR_NAME); var defineProperty = definePropertyModule$6.f; - if (DESCRIPTORS$r && Constructor && !Constructor[SPECIES$3]) { + if (DESCRIPTORS$s && Constructor && !Constructor[SPECIES$3]) { defineProperty(Constructor, SPECIES$3, { configurable: true, get: function () { return this; } @@ -2825,29 +2904,29 @@ var setSpecies$6 = setSpecies$7; // https://tc39.es/ecma262/#sec-get-array-@@species setSpecies$6('Array'); -var $$3H = _export; +var $$3Q = _export; var toAbsoluteIndex$3 = toAbsoluteIndex$8; -var toInteger$a = toInteger$f; -var toLength$m = toLength$B; -var toObject$j = toObject$w; +var toInteger$c = toInteger$h; +var toLength$n = toLength$C; +var toObject$k = toObject$x; var arraySpeciesCreate$1 = arraySpeciesCreate$6; var createProperty$2 = createProperty$7; var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5; var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice'); -var max$3 = Math.max; -var min$5 = Math.min; +var max$4 = Math.max; +var min$6 = Math.min; var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded'; // `Array.prototype.splice` method // https://tc39.es/ecma262/#sec-array.prototype.splice // with adding support of @@species -$$3H({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { +$$3Q({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { splice: function splice(start, deleteCount /* , ...items */) { - var O = toObject$j(this); - var len = toLength$m(O.length); + var O = toObject$k(this); + var len = toLength$n(O.length); var actualStart = toAbsoluteIndex$3(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; @@ -2858,7 +2937,7 @@ $$3H({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { actualDeleteCount = len - actualStart; } else { insertCount = argumentsLength - 2; - actualDeleteCount = min$5(max$3(toInteger$a(deleteCount), 0), len - actualStart); + actualDeleteCount = min$6(max$4(toInteger$c(deleteCount), 0), len - actualStart); } if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) { throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED); @@ -2895,24 +2974,24 @@ $$3H({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { // this method was added to unscopables after implementation // in popular engines, so it's moved to a separate module -var addToUnscopables$8 = addToUnscopables$f; +var addToUnscopables$a = addToUnscopables$h; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$8('flat'); +addToUnscopables$a('flat'); // this method was added to unscopables after implementation // in popular engines, so it's moved to a separate module -var addToUnscopables$7 = addToUnscopables$f; +var addToUnscopables$9 = addToUnscopables$h; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables$7('flatMap'); +addToUnscopables$9('flatMap'); // eslint-disable-next-line es/no-typed-arrays -- safe var arrayBufferNative = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined'; var redefine$c = redefine$g.exports; -var redefineAll$9 = function (target, src, options) { +var redefineAll$a = function (target, src, options) { for (var key in src) redefine$c(target, key, src[key], options); return target; }; @@ -2923,15 +3002,15 @@ var anInstance$b = function (it, Constructor, name) { } return it; }; -var toInteger$9 = toInteger$f; -var toLength$l = toLength$B; +var toInteger$b = toInteger$h; +var toLength$m = toLength$C; // `ToIndex` abstract operation // https://tc39.es/ecma262/#sec-toindex var toIndex$2 = function (it) { if (it === undefined) return 0; - var number = toInteger$9(it); - var length = toLength$l(number); + var number = toInteger$b(it); + var length = toLength$m(number); if (number !== length) throw RangeError('Wrong length or index'); return length; }; @@ -3023,38 +3102,38 @@ var ieee754 = { unpack: unpack }; -var global$x = global$M; -var DESCRIPTORS$q = descriptors; +var global$B = global$Q; +var DESCRIPTORS$r = descriptors; var NATIVE_ARRAY_BUFFER$2 = arrayBufferNative; -var createNonEnumerableProperty$d = createNonEnumerableProperty$m; -var redefineAll$8 = redefineAll$9; -var fails$J = fails$X; +var createNonEnumerableProperty$e = createNonEnumerableProperty$m; +var redefineAll$9 = redefineAll$a; +var fails$P = fails$11; var anInstance$a = anInstance$b; -var toInteger$8 = toInteger$f; -var toLength$k = toLength$B; +var toInteger$a = toInteger$h; +var toLength$l = toLength$C; var toIndex$1 = toIndex$2; var IEEE754 = ieee754; var getPrototypeOf$a = objectGetPrototypeOf$1; var setPrototypeOf$5 = objectSetPrototypeOf$1; var getOwnPropertyNames$4 = objectGetOwnPropertyNames.f; -var defineProperty$b = objectDefineProperty.f; +var defineProperty$c = objectDefineProperty.f; var arrayFill = arrayFill$1; var setToStringTag$7 = setToStringTag$b; -var InternalStateModule$f = internalState; +var InternalStateModule$g = internalState; -var getInternalState$c = InternalStateModule$f.get; -var setInternalState$f = InternalStateModule$f.set; +var getInternalState$f = InternalStateModule$g.get; +var setInternalState$g = InternalStateModule$g.set; var ARRAY_BUFFER$1 = 'ArrayBuffer'; var DATA_VIEW = 'DataView'; var PROTOTYPE = 'prototype'; var WRONG_LENGTH$1 = 'Wrong length'; var WRONG_INDEX = 'Wrong index'; -var NativeArrayBuffer$1 = global$x[ARRAY_BUFFER$1]; +var NativeArrayBuffer$1 = global$B[ARRAY_BUFFER$1]; var $ArrayBuffer = NativeArrayBuffer$1; -var $DataView = global$x[DATA_VIEW]; +var $DataView = global$B[DATA_VIEW]; var $DataViewPrototype = $DataView && $DataView[PROTOTYPE]; var ObjectPrototype$1 = Object.prototype; -var RangeError$2 = global$x.RangeError; +var RangeError$2 = global$B.RangeError; var packIEEE754 = IEEE754.pack; var unpackIEEE754 = IEEE754.unpack; @@ -3084,14 +3163,14 @@ var packFloat64 = function (number) { }; var addGetter$1 = function (Constructor, key) { - defineProperty$b(Constructor[PROTOTYPE], key, { get: function () { return getInternalState$c(this)[key]; } }); + defineProperty$c(Constructor[PROTOTYPE], key, { get: function () { return getInternalState$f(this)[key]; } }); }; var get$1 = function (view, count, index, isLittleEndian) { var intIndex = toIndex$1(index); - var store = getInternalState$c(view); + var store = getInternalState$f(view); if (intIndex + count > store.byteLength) throw RangeError$2(WRONG_INDEX); - var bytes = getInternalState$c(store.buffer).bytes; + var bytes = getInternalState$f(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = bytes.slice(start, start + count); return isLittleEndian ? pack : pack.reverse(); @@ -3099,9 +3178,9 @@ var get$1 = function (view, count, index, isLittleEndian) { var set$2 = function (view, count, index, conversion, value, isLittleEndian) { var intIndex = toIndex$1(index); - var store = getInternalState$c(view); + var store = getInternalState$f(view); if (intIndex + count > store.byteLength) throw RangeError$2(WRONG_INDEX); - var bytes = getInternalState$c(store.buffer).bytes; + var bytes = getInternalState$f(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = conversion(+value); for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1]; @@ -3111,41 +3190,41 @@ if (!NATIVE_ARRAY_BUFFER$2) { $ArrayBuffer = function ArrayBuffer(length) { anInstance$a(this, $ArrayBuffer, ARRAY_BUFFER$1); var byteLength = toIndex$1(length); - setInternalState$f(this, { + setInternalState$g(this, { bytes: arrayFill.call(new Array(byteLength), 0), byteLength: byteLength }); - if (!DESCRIPTORS$q) this.byteLength = byteLength; + if (!DESCRIPTORS$r) this.byteLength = byteLength; }; $DataView = function DataView(buffer, byteOffset, byteLength) { anInstance$a(this, $DataView, DATA_VIEW); anInstance$a(buffer, $ArrayBuffer, DATA_VIEW); - var bufferLength = getInternalState$c(buffer).byteLength; - var offset = toInteger$8(byteOffset); + var bufferLength = getInternalState$f(buffer).byteLength; + var offset = toInteger$a(byteOffset); if (offset < 0 || offset > bufferLength) throw RangeError$2('Wrong offset'); - byteLength = byteLength === undefined ? bufferLength - offset : toLength$k(byteLength); + byteLength = byteLength === undefined ? bufferLength - offset : toLength$l(byteLength); if (offset + byteLength > bufferLength) throw RangeError$2(WRONG_LENGTH$1); - setInternalState$f(this, { + setInternalState$g(this, { buffer: buffer, byteLength: byteLength, byteOffset: offset }); - if (!DESCRIPTORS$q) { + if (!DESCRIPTORS$r) { this.buffer = buffer; this.byteLength = byteLength; this.byteOffset = offset; } }; - if (DESCRIPTORS$q) { + if (DESCRIPTORS$r) { addGetter$1($ArrayBuffer, 'byteLength'); addGetter$1($DataView, 'buffer'); addGetter$1($DataView, 'byteLength'); addGetter$1($DataView, 'byteOffset'); } - redefineAll$8($DataView[PROTOTYPE], { + redefineAll$9($DataView[PROTOTYPE], { getInt8: function getInt8(byteOffset) { return get$1(this, 1, byteOffset)[0] << 24 >> 24; }, @@ -3199,11 +3278,11 @@ if (!NATIVE_ARRAY_BUFFER$2) { }); } else { /* eslint-disable no-new -- required for testing */ - if (!fails$J(function () { + if (!fails$P(function () { NativeArrayBuffer$1(1); - }) || !fails$J(function () { + }) || !fails$P(function () { new NativeArrayBuffer$1(-1); - }) || fails$J(function () { + }) || fails$P(function () { new NativeArrayBuffer$1(); new NativeArrayBuffer$1(1.5); new NativeArrayBuffer$1(NaN); @@ -3217,7 +3296,7 @@ if (!NATIVE_ARRAY_BUFFER$2) { var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer$1[PROTOTYPE]; for (var keys$2 = getOwnPropertyNames$4(NativeArrayBuffer$1), j$1 = 0, key$1; keys$2.length > j$1;) { if (!((key$1 = keys$2[j$1++]) in $ArrayBuffer)) { - createNonEnumerableProperty$d($ArrayBuffer, key$1, NativeArrayBuffer$1[key$1]); + createNonEnumerableProperty$e($ArrayBuffer, key$1, NativeArrayBuffer$1[key$1]); } } ArrayBufferPrototype.constructor = $ArrayBuffer; @@ -3233,7 +3312,7 @@ if (!NATIVE_ARRAY_BUFFER$2) { var $setInt8 = $DataViewPrototype.setInt8; testView.setInt8(0, 2147483648); testView.setInt8(1, 2147483649); - if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll$8($DataViewPrototype, { + if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll$9($DataViewPrototype, { setInt8: function setInt8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); }, @@ -3251,52 +3330,53 @@ var arrayBuffer = { DataView: $DataView }; -var $$3G = _export; -var global$w = global$M; +var $$3P = _export; +var global$A = global$Q; var arrayBufferModule = arrayBuffer; var setSpecies$5 = setSpecies$7; var ARRAY_BUFFER = 'ArrayBuffer'; var ArrayBuffer$4 = arrayBufferModule[ARRAY_BUFFER]; -var NativeArrayBuffer = global$w[ARRAY_BUFFER]; +var NativeArrayBuffer = global$A[ARRAY_BUFFER]; // `ArrayBuffer` constructor // https://tc39.es/ecma262/#sec-arraybuffer-constructor -$$3G({ global: true, forced: NativeArrayBuffer !== ArrayBuffer$4 }, { +$$3P({ global: true, forced: NativeArrayBuffer !== ArrayBuffer$4 }, { ArrayBuffer: ArrayBuffer$4 }); setSpecies$5(ARRAY_BUFFER); var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative; -var DESCRIPTORS$p = descriptors; -var global$v = global$M; -var isObject$q = isObject$B; +var DESCRIPTORS$q = descriptors; +var global$z = global$Q; +var isObject$q = isObject$C; var has$a = has$n; var classof$8 = classof$b; -var createNonEnumerableProperty$c = createNonEnumerableProperty$m; +var createNonEnumerableProperty$d = createNonEnumerableProperty$m; var redefine$b = redefine$g.exports; -var defineProperty$a = objectDefineProperty.f; +var defineProperty$b = objectDefineProperty.f; var getPrototypeOf$9 = objectGetPrototypeOf$1; var setPrototypeOf$4 = objectSetPrototypeOf$1; -var wellKnownSymbol$l = wellKnownSymbol$C; +var wellKnownSymbol$n = wellKnownSymbol$F; var uid$1 = uid$5; -var Int8Array$3 = global$v.Int8Array; +var Int8Array$3 = global$z.Int8Array; var Int8ArrayPrototype = Int8Array$3 && Int8Array$3.prototype; -var Uint8ClampedArray = global$v.Uint8ClampedArray; +var Uint8ClampedArray = global$z.Uint8ClampedArray; var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; var TypedArray$1 = Int8Array$3 && getPrototypeOf$9(Int8Array$3); var TypedArrayPrototype$1 = Int8ArrayPrototype && getPrototypeOf$9(Int8ArrayPrototype); var ObjectPrototype = Object.prototype; var isPrototypeOf = ObjectPrototype.isPrototypeOf; -var TO_STRING_TAG$5 = wellKnownSymbol$l('toStringTag'); +var TO_STRING_TAG$5 = wellKnownSymbol$n('toStringTag'); var TYPED_ARRAY_TAG$1 = uid$1('TYPED_ARRAY_TAG'); +var TYPED_ARRAY_CONSTRUCTOR$2 = uid$1('TYPED_ARRAY_CONSTRUCTOR'); // Fixing native typed arrays in Opera Presto crashes the browser, see #595 -var NATIVE_ARRAY_BUFFER_VIEWS$3 = NATIVE_ARRAY_BUFFER$1 && !!setPrototypeOf$4 && classof$8(global$v.opera) !== 'Opera'; +var NATIVE_ARRAY_BUFFER_VIEWS$3 = NATIVE_ARRAY_BUFFER$1 && !!setPrototypeOf$4 && classof$8(global$z.opera) !== 'Opera'; var TYPED_ARRAY_TAG_REQIRED = false; -var NAME$1; +var NAME$1, Constructor, Prototype; var TypedArrayConstructorsList = { Int8Array: 1, @@ -3330,26 +3410,21 @@ var isTypedArray$1 = function (it) { || has$a(BigIntArrayConstructorsList, klass); }; -var aTypedArray$r = function (it) { +var aTypedArray$t = function (it) { if (isTypedArray$1(it)) return it; throw TypeError('Target is not a typed array'); }; -var aTypedArrayConstructor$6 = function (C) { - if (setPrototypeOf$4) { - if (isPrototypeOf.call(TypedArray$1, C)) return C; - } else for (var ARRAY in TypedArrayConstructorsList) if (has$a(TypedArrayConstructorsList, NAME$1)) { - var TypedArrayConstructor = global$v[ARRAY]; - if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) { - return C; - } - } throw TypeError('Target is not a typed array constructor'); +var aTypedArrayConstructor$4 = function (C) { + if (setPrototypeOf$4 && !isPrototypeOf.call(TypedArray$1, C)) { + throw TypeError('Target is not a typed array constructor'); + } return C; }; -var exportTypedArrayMethod$s = function (KEY, property, forced) { - if (!DESCRIPTORS$p) return; +var exportTypedArrayMethod$u = function (KEY, property, forced) { + if (!DESCRIPTORS$q) return; if (forced) for (var ARRAY in TypedArrayConstructorsList) { - var TypedArrayConstructor = global$v[ARRAY]; + var TypedArrayConstructor = global$z[ARRAY]; if (TypedArrayConstructor && has$a(TypedArrayConstructor.prototype, KEY)) try { delete TypedArrayConstructor.prototype[KEY]; } catch (error) { /* empty */ } @@ -3362,10 +3437,10 @@ var exportTypedArrayMethod$s = function (KEY, property, forced) { var exportTypedArrayStaticMethod$2 = function (KEY, property, forced) { var ARRAY, TypedArrayConstructor; - if (!DESCRIPTORS$p) return; + if (!DESCRIPTORS$q) return; if (setPrototypeOf$4) { if (forced) for (ARRAY in TypedArrayConstructorsList) { - TypedArrayConstructor = global$v[ARRAY]; + TypedArrayConstructor = global$z[ARRAY]; if (TypedArrayConstructor && has$a(TypedArrayConstructor, KEY)) try { delete TypedArrayConstructor[KEY]; } catch (error) { /* empty */ } @@ -3378,7 +3453,7 @@ var exportTypedArrayStaticMethod$2 = function (KEY, property, forced) { } else return; } for (ARRAY in TypedArrayConstructorsList) { - TypedArrayConstructor = global$v[ARRAY]; + TypedArrayConstructor = global$z[ARRAY]; if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { redefine$b(TypedArrayConstructor, KEY, property); } @@ -3386,7 +3461,16 @@ var exportTypedArrayStaticMethod$2 = function (KEY, property, forced) { }; for (NAME$1 in TypedArrayConstructorsList) { - if (!global$v[NAME$1]) NATIVE_ARRAY_BUFFER_VIEWS$3 = false; + Constructor = global$z[NAME$1]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) createNonEnumerableProperty$d(Prototype, TYPED_ARRAY_CONSTRUCTOR$2, Constructor); + else NATIVE_ARRAY_BUFFER_VIEWS$3 = false; +} + +for (NAME$1 in BigIntArrayConstructorsList) { + Constructor = global$z[NAME$1]; + Prototype = Constructor && Constructor.prototype; + if (Prototype) createNonEnumerableProperty$d(Prototype, TYPED_ARRAY_CONSTRUCTOR$2, Constructor); } // WebKit bug - typed arrays constructors prototype is Object.prototype @@ -3396,14 +3480,14 @@ if (!NATIVE_ARRAY_BUFFER_VIEWS$3 || typeof TypedArray$1 != 'function' || TypedAr throw TypeError('Incorrect invocation'); }; if (NATIVE_ARRAY_BUFFER_VIEWS$3) for (NAME$1 in TypedArrayConstructorsList) { - if (global$v[NAME$1]) setPrototypeOf$4(global$v[NAME$1], TypedArray$1); + if (global$z[NAME$1]) setPrototypeOf$4(global$z[NAME$1], TypedArray$1); } } if (!NATIVE_ARRAY_BUFFER_VIEWS$3 || !TypedArrayPrototype$1 || TypedArrayPrototype$1 === ObjectPrototype) { TypedArrayPrototype$1 = TypedArray$1.prototype; if (NATIVE_ARRAY_BUFFER_VIEWS$3) for (NAME$1 in TypedArrayConstructorsList) { - if (global$v[NAME$1]) setPrototypeOf$4(global$v[NAME$1].prototype, TypedArrayPrototype$1); + if (global$z[NAME$1]) setPrototypeOf$4(global$z[NAME$1].prototype, TypedArrayPrototype$1); } } @@ -3412,22 +3496,23 @@ if (NATIVE_ARRAY_BUFFER_VIEWS$3 && getPrototypeOf$9(Uint8ClampedArrayPrototype) setPrototypeOf$4(Uint8ClampedArrayPrototype, TypedArrayPrototype$1); } -if (DESCRIPTORS$p && !has$a(TypedArrayPrototype$1, TO_STRING_TAG$5)) { +if (DESCRIPTORS$q && !has$a(TypedArrayPrototype$1, TO_STRING_TAG$5)) { TYPED_ARRAY_TAG_REQIRED = true; - defineProperty$a(TypedArrayPrototype$1, TO_STRING_TAG$5, { get: function () { + defineProperty$b(TypedArrayPrototype$1, TO_STRING_TAG$5, { get: function () { return isObject$q(this) ? this[TYPED_ARRAY_TAG$1] : undefined; } }); - for (NAME$1 in TypedArrayConstructorsList) if (global$v[NAME$1]) { - createNonEnumerableProperty$c(global$v[NAME$1], TYPED_ARRAY_TAG$1, NAME$1); + for (NAME$1 in TypedArrayConstructorsList) if (global$z[NAME$1]) { + createNonEnumerableProperty$d(global$z[NAME$1], TYPED_ARRAY_TAG$1, NAME$1); } } var arrayBufferViewCore = { NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$3, + TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR$2, TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG$1, - aTypedArray: aTypedArray$r, - aTypedArrayConstructor: aTypedArrayConstructor$6, - exportTypedArrayMethod: exportTypedArrayMethod$s, + aTypedArray: aTypedArray$t, + aTypedArrayConstructor: aTypedArrayConstructor$4, + exportTypedArrayMethod: exportTypedArrayMethod$u, exportTypedArrayStaticMethod: exportTypedArrayStaticMethod$2, isView: isView, isTypedArray: isTypedArray$1, @@ -3435,58 +3520,58 @@ var arrayBufferViewCore = { TypedArrayPrototype: TypedArrayPrototype$1 }; -var $$3F = _export; -var ArrayBufferViewCore$t = arrayBufferViewCore; +var $$3O = _export; +var ArrayBufferViewCore$w = arrayBufferViewCore; -var NATIVE_ARRAY_BUFFER_VIEWS$2 = ArrayBufferViewCore$t.NATIVE_ARRAY_BUFFER_VIEWS; +var NATIVE_ARRAY_BUFFER_VIEWS$2 = ArrayBufferViewCore$w.NATIVE_ARRAY_BUFFER_VIEWS; // `ArrayBuffer.isView` method // https://tc39.es/ecma262/#sec-arraybuffer.isview -$$3F({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS$2 }, { - isView: ArrayBufferViewCore$t.isView +$$3O({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS$2 }, { + isView: ArrayBufferViewCore$w.isView }); -var anObject$1p = anObject$1z; +var anObject$1q = anObject$1B; var aFunction$N = aFunction$S; -var wellKnownSymbol$k = wellKnownSymbol$C; +var wellKnownSymbol$m = wellKnownSymbol$F; -var SPECIES$2 = wellKnownSymbol$k('species'); +var SPECIES$2 = wellKnownSymbol$m('species'); // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor -var speciesConstructor$i = function (O, defaultConstructor) { - var C = anObject$1p(O).constructor; +var speciesConstructor$f = function (O, defaultConstructor) { + var C = anObject$1q(O).constructor; var S; - return C === undefined || (S = anObject$1p(C)[SPECIES$2]) == undefined ? defaultConstructor : aFunction$N(S); + return C === undefined || (S = anObject$1q(C)[SPECIES$2]) == undefined ? defaultConstructor : aFunction$N(S); }; -var $$3E = _export; -var fails$I = fails$X; +var $$3N = _export; +var fails$O = fails$11; var ArrayBufferModule$2 = arrayBuffer; -var anObject$1o = anObject$1z; +var anObject$1p = anObject$1B; var toAbsoluteIndex$2 = toAbsoluteIndex$8; -var toLength$j = toLength$B; -var speciesConstructor$h = speciesConstructor$i; +var toLength$k = toLength$C; +var speciesConstructor$e = speciesConstructor$f; var ArrayBuffer$3 = ArrayBufferModule$2.ArrayBuffer; var DataView$2 = ArrayBufferModule$2.DataView; var nativeArrayBufferSlice = ArrayBuffer$3.prototype.slice; -var INCORRECT_SLICE = fails$I(function () { +var INCORRECT_SLICE = fails$O(function () { return !new ArrayBuffer$3(2).slice(1, undefined).byteLength; }); // `ArrayBuffer.prototype.slice` method // https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice -$$3E({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, { +$$3N({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, { slice: function slice(start, end) { if (nativeArrayBufferSlice !== undefined && end === undefined) { - return nativeArrayBufferSlice.call(anObject$1o(this), start); // FF fix + return nativeArrayBufferSlice.call(anObject$1p(this), start); // FF fix } - var length = anObject$1o(this).byteLength; + var length = anObject$1p(this).byteLength; var first = toAbsoluteIndex$2(start, length); var fin = toAbsoluteIndex$2(end === undefined ? length : end, length); - var result = new (speciesConstructor$h(this, ArrayBuffer$3))(toLength$j(fin - first)); + var result = new (speciesConstructor$e(this, ArrayBuffer$3))(toLength$k(fin - first)); var viewSource = new DataView$2(this); var viewTarget = new DataView$2(result); var index = 0; @@ -3496,54 +3581,99 @@ $$3E({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE } }); -var $$3D = _export; +var $$3M = _export; var ArrayBufferModule$1 = arrayBuffer; var NATIVE_ARRAY_BUFFER = arrayBufferNative; // `DataView` constructor // https://tc39.es/ecma262/#sec-dataview-constructor -$$3D({ global: true, forced: !NATIVE_ARRAY_BUFFER }, { +$$3M({ global: true, forced: !NATIVE_ARRAY_BUFFER }, { DataView: ArrayBufferModule$1.DataView }); -var $$3C = _export; +var $$3L = _export; +var fails$N = fails$11; + +var FORCED$p = fails$N(function () { + return new Date(16e11).getYear() !== 120; +}); + +var getFullYear = Date.prototype.getFullYear; + +// `Date.prototype.getYear` method +// https://tc39.es/ecma262/#sec-date.prototype.getyear +$$3L({ target: 'Date', proto: true, forced: FORCED$p }, { + getYear: function getYear() { + return getFullYear.call(this) - 1900; + } +}); + +var $$3K = _export; // `Date.now` method // https://tc39.es/ecma262/#sec-date.now -$$3C({ target: 'Date', stat: true }, { +$$3K({ target: 'Date', stat: true }, { now: function now() { return new Date().getTime(); } }); -var toInteger$7 = toInteger$f; -var requireObjectCoercible$e = requireObjectCoercible$h; +var $$3J = _export; +var toInteger$9 = toInteger$h; + +var getTime$2 = Date.prototype.getTime; +var setFullYear = Date.prototype.setFullYear; + +// `Date.prototype.setYear` method +// https://tc39.es/ecma262/#sec-date.prototype.setyear +$$3J({ target: 'Date', proto: true }, { + setYear: function setYear(year) { + // validate + getTime$2.call(this); + var yi = toInteger$9(year); + var yyyy = 0 <= yi && yi <= 99 ? yi + 1900 : yi; + return setFullYear.call(this, yyyy); + } +}); + +var $$3I = _export; + +// `Date.prototype.toGMTString` method +// https://tc39.es/ecma262/#sec-date.prototype.togmtstring +$$3I({ target: 'Date', proto: true }, { + toGMTString: Date.prototype.toUTCString +}); + +var toInteger$8 = toInteger$h; +var toString$o = toString$s; +var requireObjectCoercible$f = requireObjectCoercible$i; // `String.prototype.repeat` method implementation // https://tc39.es/ecma262/#sec-string.prototype.repeat var stringRepeat = function repeat(count) { - var str = String(requireObjectCoercible$e(this)); + var str = toString$o(requireObjectCoercible$f(this)); var result = ''; - var n = toInteger$7(count); + var n = toInteger$8(count); if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions'); for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str; return result; }; // https://github.com/tc39/proposal-string-pad-start-end -var toLength$i = toLength$B; +var toLength$j = toLength$C; +var toString$n = toString$s; var repeat$2 = stringRepeat; -var requireObjectCoercible$d = requireObjectCoercible$h; +var requireObjectCoercible$e = requireObjectCoercible$i; var ceil$1 = Math.ceil; // `String.prototype.{ padStart, padEnd }` methods implementation var createMethod$5 = function (IS_END) { return function ($this, maxLength, fillString) { - var S = String(requireObjectCoercible$d($this)); + var S = toString$n(requireObjectCoercible$e($this)); var stringLength = S.length; - var fillStr = fillString === undefined ? ' ' : String(fillString); - var intMaxLength = toLength$i(maxLength); + var fillStr = fillString === undefined ? ' ' : toString$n(fillString); + var intMaxLength = toLength$j(maxLength); var fillLen, stringFiller; if (intMaxLength <= stringLength || fillStr == '') return S; fillLen = intMaxLength - stringLength; @@ -3562,7 +3692,7 @@ var stringPad = { end: createMethod$5(true) }; -var fails$H = fails$X; +var fails$M = fails$11; var padStart = stringPad.start; var abs$6 = Math.abs; @@ -3573,9 +3703,9 @@ var nativeDateToISOString = DatePrototype$2.toISOString; // `Date.prototype.toISOString` method implementation // https://tc39.es/ecma262/#sec-date.prototype.toisostring // PhantomJS / old WebKit fails here: -var dateToIsoString = (fails$H(function () { +var dateToIsoString = (fails$M(function () { return nativeDateToISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; -}) || !fails$H(function () { +}) || !fails$M(function () { nativeDateToISOString.call(new Date(NaN)); })) ? function toISOString() { if (!isFinite(getTime$1.call(this))) throw RangeError('Invalid time value'); @@ -3593,59 +3723,60 @@ var dateToIsoString = (fails$H(function () { 'Z'; } : nativeDateToISOString; -var $$3B = _export; +var $$3H = _export; var toISOString = dateToIsoString; // `Date.prototype.toISOString` method // https://tc39.es/ecma262/#sec-date.prototype.toisostring // PhantomJS / old WebKit has a broken implementations -$$3B({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, { +$$3H({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, { toISOString: toISOString }); -var $$3A = _export; -var fails$G = fails$X; -var toObject$i = toObject$w; -var toPrimitive$6 = toPrimitive$b; +var $$3G = _export; +var fails$L = fails$11; +var toObject$j = toObject$x; +var toPrimitive$1 = toPrimitive$3; -var FORCED$o = fails$G(function () { +var FORCED$o = fails$L(function () { return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; }); // `Date.prototype.toJSON` method // https://tc39.es/ecma262/#sec-date.prototype.tojson -$$3A({ target: 'Date', proto: true, forced: FORCED$o }, { +$$3G({ target: 'Date', proto: true, forced: FORCED$o }, { // eslint-disable-next-line no-unused-vars -- required for `.length` toJSON: function toJSON(key) { - var O = toObject$i(this); - var pv = toPrimitive$6(O); + var O = toObject$j(this); + var pv = toPrimitive$1(O, 'number'); return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); } }); -var anObject$1n = anObject$1z; -var toPrimitive$5 = toPrimitive$b; +var anObject$1o = anObject$1B; +var ordinaryToPrimitive = ordinaryToPrimitive$2; // `Date.prototype[@@toPrimitive](hint)` method implementation // https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive var dateToPrimitive$1 = function (hint) { - if (hint !== 'string' && hint !== 'number' && hint !== 'default') { - throw TypeError('Incorrect hint'); - } return toPrimitive$5(anObject$1n(this), hint !== 'number'); + anObject$1o(this); + if (hint === 'string' || hint === 'default') hint = 'string'; + else if (hint !== 'number') throw TypeError('Incorrect hint'); + return ordinaryToPrimitive(this, hint); }; -var createNonEnumerableProperty$b = createNonEnumerableProperty$m; +var createNonEnumerableProperty$c = createNonEnumerableProperty$m; var dateToPrimitive = dateToPrimitive$1; -var wellKnownSymbol$j = wellKnownSymbol$C; +var wellKnownSymbol$l = wellKnownSymbol$F; -var TO_PRIMITIVE = wellKnownSymbol$j('toPrimitive'); +var TO_PRIMITIVE = wellKnownSymbol$l('toPrimitive'); var DatePrototype$1 = Date.prototype; // `Date.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive if (!(TO_PRIMITIVE in DatePrototype$1)) { - createNonEnumerableProperty$b(DatePrototype$1, TO_PRIMITIVE, dateToPrimitive); + createNonEnumerableProperty$c(DatePrototype$1, TO_PRIMITIVE, dateToPrimitive); } var redefine$a = redefine$g.exports; @@ -3658,7 +3789,7 @@ var getTime = DatePrototype.getTime; // `Date.prototype.toString` method // https://tc39.es/ecma262/#sec-date.prototype.tostring -if (new Date(NaN) + '' != INVALID_DATE) { +if (String(new Date(NaN)) != INVALID_DATE) { redefine$a(DatePrototype, TO_STRING$1, function toString() { var value = getTime.call(this); // eslint-disable-next-line no-self-compare -- NaN check @@ -3666,10 +3797,46 @@ if (new Date(NaN) + '' != INVALID_DATE) { }); } +var $$3F = _export; +var toString$m = toString$s; + +var raw = /[\w*+\-./@]/; + +var hex$1 = function (code, length) { + var result = code.toString(16); + while (result.length < length) result = '0' + result; + return result; +}; + +// `escape` method +// https://tc39.es/ecma262/#sec-escape-string +$$3F({ global: true }, { + escape: function escape(string) { + var str = toString$m(string); + var result = ''; + var length = str.length; + var index = 0; + var chr, code; + while (index < length) { + chr = str.charAt(index++); + if (raw.test(chr)) { + result += chr; + } else { + code = chr.charCodeAt(0); + if (code < 256) { + result += '%' + hex$1(code, 2); + } else { + result += '%u' + hex$1(code, 4).toUpperCase(); + } + } + } return result; + } +}); + var aFunction$M = aFunction$S; -var isObject$p = isObject$B; +var isObject$p = isObject$C; -var slice$1 = [].slice; +var slice$2 = [].slice; var factories = {}; var construct = function (C, argsLength, args) { @@ -3684,30 +3851,30 @@ var construct = function (C, argsLength, args) { // https://tc39.es/ecma262/#sec-function.prototype.bind var functionBind = Function.bind || function bind(that /* , ...args */) { var fn = aFunction$M(this); - var partArgs = slice$1.call(arguments, 1); + var partArgs = slice$2.call(arguments, 1); var boundFunction = function bound(/* args... */) { - var args = partArgs.concat(slice$1.call(arguments)); + var args = partArgs.concat(slice$2.call(arguments)); return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args); }; if (isObject$p(fn.prototype)) boundFunction.prototype = fn.prototype; return boundFunction; }; -var $$3z = _export; -var bind$k = functionBind; +var $$3E = _export; +var bind$l = functionBind; // `Function.prototype.bind` method // https://tc39.es/ecma262/#sec-function.prototype.bind -$$3z({ target: 'Function', proto: true }, { - bind: bind$k +$$3E({ target: 'Function', proto: true }, { + bind: bind$l }); -var isObject$o = isObject$B; +var isObject$o = isObject$C; var definePropertyModule$5 = objectDefineProperty; var getPrototypeOf$8 = objectGetPrototypeOf$1; -var wellKnownSymbol$i = wellKnownSymbol$C; +var wellKnownSymbol$k = wellKnownSymbol$F; -var HAS_INSTANCE = wellKnownSymbol$i('hasInstance'); +var HAS_INSTANCE = wellKnownSymbol$k('hasInstance'); var FunctionPrototype$1 = Function.prototype; // `Function.prototype[@@hasInstance]` method @@ -3722,8 +3889,8 @@ if (!(HAS_INSTANCE in FunctionPrototype$1)) { } }); } -var DESCRIPTORS$o = descriptors; -var defineProperty$9 = objectDefineProperty.f; +var DESCRIPTORS$p = descriptors; +var defineProperty$a = objectDefineProperty.f; var FunctionPrototype = Function.prototype; var FunctionPrototypeToString = FunctionPrototype.toString; @@ -3732,8 +3899,8 @@ var NAME = 'name'; // Function instances `.name` property // https://tc39.es/ecma262/#sec-function-instances-name -if (DESCRIPTORS$o && !(NAME in FunctionPrototype)) { - defineProperty$9(FunctionPrototype, NAME, { +if (DESCRIPTORS$p && !(NAME in FunctionPrototype)) { + defineProperty$a(FunctionPrototype, NAME, { configurable: true, get: function () { try { @@ -3745,20 +3912,20 @@ if (DESCRIPTORS$o && !(NAME in FunctionPrototype)) { }); } -var $$3y = _export; -var global$u = global$M; +var $$3D = _export; +var global$y = global$Q; // `globalThis` object // https://tc39.es/ecma262/#sec-globalthis -$$3y({ global: true }, { - globalThis: global$u +$$3D({ global: true }, { + globalThis: global$y }); -var $$3x = _export; -var getBuiltIn$n = getBuiltIn$t; -var fails$F = fails$X; +var $$3C = _export; +var getBuiltIn$o = getBuiltIn$v; +var fails$K = fails$11; -var $stringify = getBuiltIn$n('JSON', 'stringify'); +var $stringify = getBuiltIn$o('JSON', 'stringify'); var re = /[\uD800-\uDFFF]/g; var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; @@ -3771,7 +3938,7 @@ var fix = function (match, offset, string) { } return match; }; -var FORCED$n = fails$F(function () { +var FORCED$n = fails$K(function () { return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' || $stringify('\uDEAD') !== '"\\udead"'; }); @@ -3780,7 +3947,7 @@ if ($stringify) { // `JSON.stringify` method // https://tc39.es/ecma262/#sec-json.stringify // https://github.com/tc39/proposal-well-formed-stringify - $$3x({ target: 'JSON', stat: true, forced: FORCED$n }, { + $$3C({ target: 'JSON', stat: true, forced: FORCED$n }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var result = $stringify.apply(null, arguments); @@ -3789,29 +3956,33 @@ if ($stringify) { }); } -var global$t = global$M; +var global$x = global$Q; var setToStringTag$6 = setToStringTag$b; // JSON[@@toStringTag] property // https://tc39.es/ecma262/#sec-json-@@tostringtag -setToStringTag$6(global$t.JSON, 'JSON', true); +setToStringTag$6(global$x.JSON, 'JSON', true); var internalMetadata = {exports: {}}; -var fails$E = fails$X; +var fails$J = fails$11; -var freezing = !fails$E(function () { +var freezing = !fails$J(function () { // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing return Object.isExtensible(Object.preventExtensions({})); }); +var $$3B = _export; var hiddenKeys = hiddenKeys$6; -var isObject$n = isObject$B; +var isObject$n = isObject$C; var has$9 = has$n; -var defineProperty$8 = objectDefineProperty.f; +var defineProperty$9 = objectDefineProperty.f; +var getOwnPropertyNamesModule = objectGetOwnPropertyNames; +var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal; var uid = uid$5; var FREEZING$4 = freezing; +var REQUIRED = false; var METADATA = uid('meta'); var id$1 = 0; @@ -3821,8 +3992,8 @@ var isExtensible$1 = Object.isExtensible || function () { }; var setMetadata = function (it) { - defineProperty$8(it, METADATA, { value: { - objectID: 'O' + ++id$1, // object ID + defineProperty$9(it, METADATA, { value: { + objectID: 'O' + id$1++, // object ID weakData: {} // weak collections IDs } }); }; @@ -3855,12 +4026,38 @@ var getWeakData$1 = function (it, create) { // add metadata on freeze-family methods calling var onFreeze$3 = function (it) { - if (FREEZING$4 && meta.REQUIRED && isExtensible$1(it) && !has$9(it, METADATA)) setMetadata(it); + if (FREEZING$4 && REQUIRED && isExtensible$1(it) && !has$9(it, METADATA)) setMetadata(it); return it; }; +var enable = function () { + meta.enable = function () { /* empty */ }; + REQUIRED = true; + var getOwnPropertyNames = getOwnPropertyNamesModule.f; + var splice = [].splice; + var test = {}; + test[METADATA] = 1; + + // 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.call(result, i, 1); + break; + } + } return result; + }; + + $$3B({ target: 'Object', stat: true, forced: true }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + }); + } +}; + var meta = internalMetadata.exports = { - REQUIRED: false, + enable: enable, fastKey: fastKey$1, getWeakData: getWeakData$1, onFreeze: onFreeze$3 @@ -3868,7 +4065,7 @@ var meta = internalMetadata.exports = { hiddenKeys[METADATA] = true; -var isObject$m = isObject$B; +var isObject$m = isObject$C; var setPrototypeOf$3 = objectSetPrototypeOf$1; // makes subclassing work correct for wrapped built-ins @@ -3886,15 +4083,15 @@ var inheritIfRequired$4 = function ($this, dummy, Wrapper) { return $this; }; -var $$3w = _export; -var global$s = global$M; +var $$3A = _export; +var global$w = global$Q; var isForced$3 = isForced_1; var redefine$9 = redefine$g.exports; var InternalMetadataModule$1 = internalMetadata.exports; var iterate$G = iterate$I; var anInstance$9 = anInstance$b; -var isObject$l = isObject$B; -var fails$D = fails$X; +var isObject$l = isObject$C; +var fails$I = fails$11; var checkCorrectnessOfIteration$2 = checkCorrectnessOfIteration$4; var setToStringTag$5 = setToStringTag$b; var inheritIfRequired$3 = inheritIfRequired$4; @@ -3903,7 +4100,7 @@ var collection$4 = 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 = global$s[CONSTRUCTOR_NAME]; + var NativeConstructor = global$w[CONSTRUCTOR_NAME]; var NativePrototype = NativeConstructor && NativeConstructor.prototype; var Constructor = NativeConstructor; var exported = {}; @@ -3929,7 +4126,7 @@ var collection$4 = function (CONSTRUCTOR_NAME, wrapper, common) { var REPLACE = isForced$3( CONSTRUCTOR_NAME, - typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$D(function () { + typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$I(function () { new NativeConstructor().entries().next(); })) ); @@ -3937,18 +4134,18 @@ var collection$4 = function (CONSTRUCTOR_NAME, wrapper, common) { if (REPLACE) { // create collection constructor Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); - InternalMetadataModule$1.REQUIRED = true; + InternalMetadataModule$1.enable(); } else if (isForced$3(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$D(function () { instance.has(1); }); + var THROWS_ON_PRIMITIVES = fails$I(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$2(function (iterable) { new NativeConstructor(iterable); }); // for early implementations -0 and +0 not the same - var BUGGY_ZERO = !IS_WEAK && fails$D(function () { + var BUGGY_ZERO = !IS_WEAK && fails$I(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new NativeConstructor(); var index = 5; @@ -3980,7 +4177,7 @@ var collection$4 = function (CONSTRUCTOR_NAME, wrapper, common) { } exported[CONSTRUCTOR_NAME] = Constructor; - $$3w({ global: true, forced: Constructor != NativeConstructor }, exported); + $$3A({ global: true, forced: Constructor != NativeConstructor }, exported); setToStringTag$5(Constructor, CONSTRUCTOR_NAME); @@ -3989,33 +4186,33 @@ var collection$4 = function (CONSTRUCTOR_NAME, wrapper, common) { return Constructor; }; -var defineProperty$7 = objectDefineProperty.f; -var create$9 = objectCreate; -var redefineAll$7 = redefineAll$9; -var bind$j = functionBindContext; +var defineProperty$8 = objectDefineProperty.f; +var create$b = objectCreate$1; +var redefineAll$8 = redefineAll$a; +var bind$k = functionBindContext; var anInstance$8 = anInstance$b; var iterate$F = iterate$I; var defineIterator$1 = defineIterator$3; var setSpecies$4 = setSpecies$7; -var DESCRIPTORS$n = descriptors; +var DESCRIPTORS$o = descriptors; var fastKey = internalMetadata.exports.fastKey; -var InternalStateModule$e = internalState; +var InternalStateModule$f = internalState; -var setInternalState$e = InternalStateModule$e.set; -var internalStateGetterFor$1 = InternalStateModule$e.getterFor; +var setInternalState$f = InternalStateModule$f.set; +var internalStateGetterFor$1 = InternalStateModule$f.getterFor; var collectionStrong$2 = { getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance$8(that, C, CONSTRUCTOR_NAME); - setInternalState$e(that, { + setInternalState$f(that, { type: CONSTRUCTOR_NAME, - index: create$9(null), + index: create$b(null), first: undefined, last: undefined, size: 0 }); - if (!DESCRIPTORS$n) that.size = 0; + if (!DESCRIPTORS$o) that.size = 0; if (iterable != undefined) iterate$F(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); }); @@ -4040,7 +4237,7 @@ var collectionStrong$2 = { }; if (!state.first) state.first = entry; if (previous) previous.next = entry; - if (DESCRIPTORS$n) state.size++; + if (DESCRIPTORS$o) state.size++; else that.size++; // add to index if (index !== 'F') state.index[index] = entry; @@ -4059,7 +4256,7 @@ var collectionStrong$2 = { } }; - redefineAll$7(C.prototype, { + redefineAll$8(C.prototype, { // `{ Map, Set }.prototype.clear()` methods // https://tc39.es/ecma262/#sec-map.prototype.clear // https://tc39.es/ecma262/#sec-set.prototype.clear @@ -4075,7 +4272,7 @@ var collectionStrong$2 = { entry = entry.next; } state.first = state.last = undefined; - if (DESCRIPTORS$n) state.size = 0; + if (DESCRIPTORS$o) state.size = 0; else that.size = 0; }, // `{ Map, Set }.prototype.delete(key)` methods @@ -4094,7 +4291,7 @@ var collectionStrong$2 = { if (next) next.previous = prev; if (state.first == entry) state.first = next; if (state.last == entry) state.last = prev; - if (DESCRIPTORS$n) state.size--; + if (DESCRIPTORS$o) state.size--; else that.size--; } return !!entry; }, @@ -4103,7 +4300,7 @@ var collectionStrong$2 = { // https://tc39.es/ecma262/#sec-set.prototype.foreach forEach: function forEach(callbackfn /* , that = undefined */) { var state = getInternalState(this); - var boundFunction = bind$j(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); + var boundFunction = bind$k(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); var entry; while (entry = entry ? entry.next : state.first) { boundFunction(entry.value, entry.key, this); @@ -4119,7 +4316,7 @@ var collectionStrong$2 = { } }); - redefineAll$7(C.prototype, IS_MAP ? { + redefineAll$8(C.prototype, IS_MAP ? { // `Map.prototype.get(key)` method // https://tc39.es/ecma262/#sec-map.prototype.get get: function get(key) { @@ -4138,7 +4335,7 @@ var collectionStrong$2 = { return define(this, value = value === 0 ? 0 : value, value); } }); - if (DESCRIPTORS$n) defineProperty$7(C.prototype, 'size', { + if (DESCRIPTORS$o) defineProperty$8(C.prototype, 'size', { get: function () { return getInternalState(this).size; } @@ -4159,7 +4356,7 @@ var collectionStrong$2 = { // https://tc39.es/ecma262/#sec-set.prototype.values // https://tc39.es/ecma262/#sec-set.prototype-@@iterator defineIterator$1(C, CONSTRUCTOR_NAME, function (iterated, kind) { - setInternalState$e(this, { + setInternalState$f(this, { type: ITERATOR_NAME, target: iterated, state: getInternalCollectionState(iterated), @@ -4209,7 +4406,7 @@ var mathLog1p = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : log$7(1 + x); }; -var $$3v = _export; +var $$3z = _export; var log1p$1 = mathLog1p; // eslint-disable-next-line es/no-math-acosh -- required for testing @@ -4226,7 +4423,7 @@ var FORCED$m = !$acosh // `Math.acosh` method // https://tc39.es/ecma262/#sec-math.acosh -$$3v({ target: 'Math', stat: true, forced: FORCED$m }, { +$$3z({ target: 'Math', stat: true, forced: FORCED$m }, { acosh: function acosh(x) { return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? log$6(x) + LN2$1 @@ -4234,7 +4431,7 @@ $$3v({ target: 'Math', stat: true, forced: FORCED$m }, { } }); -var $$3u = _export; +var $$3y = _export; // eslint-disable-next-line es/no-math-asinh -- required for testing var $asinh = Math.asinh; @@ -4248,11 +4445,11 @@ function asinh(x) { // `Math.asinh` method // https://tc39.es/ecma262/#sec-math.asinh // Tor Browser bug: Math.asinh(0) -> -0 -$$3u({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, { +$$3y({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, { asinh: asinh }); -var $$3t = _export; +var $$3x = _export; // eslint-disable-next-line es/no-math-atanh -- required for testing var $atanh = Math.atanh; @@ -4261,7 +4458,7 @@ var log$4 = Math.log; // `Math.atanh` method // https://tc39.es/ecma262/#sec-math.atanh // Tor Browser bug: Math.atanh(-0) -> 0 -$$3t({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, { +$$3x({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, { atanh: function atanh(x) { return (x = +x) == 0 ? x : log$4((1 + x) / (1 - x)) / 2; } @@ -4275,7 +4472,7 @@ var mathSign = Math.sign || function sign(x) { return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; -var $$3s = _export; +var $$3w = _export; var sign$2 = mathSign; var abs$5 = Math.abs; @@ -4283,13 +4480,13 @@ var pow$3 = Math.pow; // `Math.cbrt` method // https://tc39.es/ecma262/#sec-math.cbrt -$$3s({ target: 'Math', stat: true }, { +$$3w({ target: 'Math', stat: true }, { cbrt: function cbrt(x) { return sign$2(x = +x) * pow$3(abs$5(x), 1 / 3); } }); -var $$3r = _export; +var $$3v = _export; var floor$7 = Math.floor; var log$3 = Math.log; @@ -4297,7 +4494,7 @@ var LOG2E = Math.LOG2E; // `Math.clz32` method // https://tc39.es/ecma262/#sec-math.clz32 -$$3r({ target: 'Math', stat: true }, { +$$3v({ target: 'Math', stat: true }, { clz32: function clz32(x) { return (x >>>= 0) ? 31 - floor$7(log$3(x + 0.5) * LOG2E) : 32; } @@ -4318,7 +4515,7 @@ var mathExpm1 = (!$expm1 return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp$2(x) - 1; } : $expm1; -var $$3q = _export; +var $$3u = _export; var expm1$3 = mathExpm1; // eslint-disable-next-line es/no-math-cosh -- required for testing @@ -4328,20 +4525,20 @@ var E$1 = Math.E; // `Math.cosh` method // https://tc39.es/ecma262/#sec-math.cosh -$$3q({ target: 'Math', stat: true, forced: !$cosh || $cosh(710) === Infinity }, { +$$3u({ target: 'Math', stat: true, forced: !$cosh || $cosh(710) === Infinity }, { cosh: function cosh(x) { var t = expm1$3(abs$4(x) - 1) + 1; return (t + 1 / (t * E$1 * E$1)) * (E$1 / 2); } }); -var $$3p = _export; +var $$3t = _export; var expm1$2 = mathExpm1; // `Math.expm1` method // https://tc39.es/ecma262/#sec-math.expm1 // eslint-disable-next-line es/no-math-expm1 -- required for testing -$$3p({ target: 'Math', stat: true, forced: expm1$2 != Math.expm1 }, { expm1: expm1$2 }); +$$3t({ target: 'Math', stat: true, forced: expm1$2 != Math.expm1 }, { expm1: expm1$2 }); var sign$1 = mathSign; @@ -4371,14 +4568,14 @@ var mathFround = Math.fround || function fround(x) { return $sign * result; }; -var $$3o = _export; +var $$3s = _export; var fround$1 = mathFround; // `Math.fround` method // https://tc39.es/ecma262/#sec-math.fround -$$3o({ target: 'Math', stat: true }, { fround: fround$1 }); +$$3s({ target: 'Math', stat: true }, { fround: fround$1 }); -var $$3n = _export; +var $$3r = _export; // eslint-disable-next-line es/no-math-hypot -- required for testing var $hypot = Math.hypot; @@ -4391,7 +4588,7 @@ var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity; // `Math.hypot` method // https://tc39.es/ecma262/#sec-math.hypot -$$3n({ target: 'Math', stat: true, forced: BUGGY }, { +$$3r({ target: 'Math', stat: true, forced: BUGGY }, { // eslint-disable-next-line no-unused-vars -- required for `.length` hypot: function hypot(value1, value2) { var sum = 0; @@ -4414,20 +4611,20 @@ $$3n({ target: 'Math', stat: true, forced: BUGGY }, { } }); -var $$3m = _export; -var fails$C = fails$X; +var $$3q = _export; +var fails$H = fails$11; // eslint-disable-next-line es/no-math-imul -- required for testing var $imul = Math.imul; -var FORCED$l = fails$C(function () { +var FORCED$l = fails$H(function () { return $imul(0xFFFFFFFF, 5) != -5 || $imul.length != 2; }); // `Math.imul` method // https://tc39.es/ecma262/#sec-math.imul // some WebKit versions fails with big numbers, some has wrong arity -$$3m({ target: 'Math', stat: true, forced: FORCED$l }, { +$$3q({ target: 'Math', stat: true, forced: FORCED$l }, { imul: function imul(x, y) { var UINT16 = 0xFFFF; var xn = +x; @@ -4438,57 +4635,57 @@ $$3m({ target: 'Math', stat: true, forced: FORCED$l }, { } }); -var $$3l = _export; +var $$3p = _export; var log$2 = Math.log; var LOG10E = Math.LOG10E; // `Math.log10` method // https://tc39.es/ecma262/#sec-math.log10 -$$3l({ target: 'Math', stat: true }, { +$$3p({ target: 'Math', stat: true }, { log10: function log10(x) { return log$2(x) * LOG10E; } }); -var $$3k = _export; +var $$3o = _export; var log1p = mathLog1p; // `Math.log1p` method // https://tc39.es/ecma262/#sec-math.log1p -$$3k({ target: 'Math', stat: true }, { log1p: log1p }); +$$3o({ target: 'Math', stat: true }, { log1p: log1p }); -var $$3j = _export; +var $$3n = _export; var log$1 = Math.log; var LN2 = Math.LN2; // `Math.log2` method // https://tc39.es/ecma262/#sec-math.log2 -$$3j({ target: 'Math', stat: true }, { +$$3n({ target: 'Math', stat: true }, { log2: function log2(x) { return log$1(x) / LN2; } }); -var $$3i = _export; +var $$3m = _export; var sign = mathSign; // `Math.sign` method // https://tc39.es/ecma262/#sec-math.sign -$$3i({ target: 'Math', stat: true }, { +$$3m({ target: 'Math', stat: true }, { sign: sign }); -var $$3h = _export; -var fails$B = fails$X; +var $$3l = _export; +var fails$G = fails$11; var expm1$1 = mathExpm1; var abs$1 = Math.abs; var exp$1 = Math.exp; var E = Math.E; -var FORCED$k = fails$B(function () { +var FORCED$k = fails$G(function () { // eslint-disable-next-line es/no-math-sinh -- required for testing return Math.sinh(-2e-17) != -2e-17; }); @@ -4496,20 +4693,20 @@ var FORCED$k = fails$B(function () { // `Math.sinh` method // https://tc39.es/ecma262/#sec-math.sinh // V8 near Chromium 38 has a problem with very small numbers -$$3h({ target: 'Math', stat: true, forced: FORCED$k }, { +$$3l({ target: 'Math', stat: true, forced: FORCED$k }, { sinh: function sinh(x) { return abs$1(x = +x) < 1 ? (expm1$1(x) - expm1$1(-x)) / 2 : (exp$1(x - 1) - exp$1(-x - 1)) * (E / 2); } }); -var $$3g = _export; +var $$3k = _export; var expm1 = mathExpm1; var exp = Math.exp; // `Math.tanh` method // https://tc39.es/ecma262/#sec-math.tanh -$$3g({ target: 'Math', stat: true }, { +$$3k({ target: 'Math', stat: true }, { tanh: function tanh(x) { var a = expm1(x = +x); var b = expm1(-x); @@ -4523,14 +4720,14 @@ var setToStringTag$4 = setToStringTag$b; // https://tc39.es/ecma262/#sec-math-@@tostringtag setToStringTag$4(Math, 'Math', true); -var $$3f = _export; +var $$3j = _export; var ceil = Math.ceil; var floor$6 = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc -$$3f({ target: 'Math', stat: true }, { +$$3j({ target: 'Math', stat: true }, { trunc: function trunc(it) { return (it > 0 ? floor$6 : ceil)(it); } @@ -4540,7 +4737,8 @@ $$3f({ target: 'Math', stat: true }, { var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; -var requireObjectCoercible$c = requireObjectCoercible$h; +var requireObjectCoercible$d = requireObjectCoercible$i; +var toString$l = toString$s; var whitespaces$3 = whitespaces$4; var whitespace = '[' + whitespaces$3 + ']'; @@ -4550,7 +4748,7 @@ var rtrim = RegExp(whitespace + whitespace + '*$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation var createMethod$4 = function (TYPE) { return function ($this) { - var string = String(requireObjectCoercible$c($this)); + var string = toString$l(requireObjectCoercible$d($this)); if (TYPE & 1) string = string.replace(ltrim, ''); if (TYPE & 2) string = string.replace(rtrim, ''); return string; @@ -4569,32 +4767,34 @@ var stringTrim = { trim: createMethod$4(3) }; -var DESCRIPTORS$m = descriptors; -var global$r = global$M; +var DESCRIPTORS$n = descriptors; +var global$v = global$Q; var isForced$2 = isForced_1; var redefine$8 = redefine$g.exports; var has$8 = has$n; var classof$7 = classofRaw$1; var inheritIfRequired$2 = inheritIfRequired$4; -var toPrimitive$4 = toPrimitive$b; -var fails$A = fails$X; -var create$8 = objectCreate; +var isSymbol$1 = isSymbol$6; +var toPrimitive = toPrimitive$3; +var fails$F = fails$11; +var create$a = objectCreate$1; var getOwnPropertyNames$3 = objectGetOwnPropertyNames.f; var getOwnPropertyDescriptor$6 = objectGetOwnPropertyDescriptor.f; -var defineProperty$6 = objectDefineProperty.f; +var defineProperty$7 = objectDefineProperty.f; var trim$2 = stringTrim.trim; var NUMBER = 'Number'; -var NativeNumber = global$r[NUMBER]; +var NativeNumber = global$v[NUMBER]; var NumberPrototype = NativeNumber.prototype; // Opera ~12 has broken Object#toString -var BROKEN_CLASSOF = classof$7(create$8(NumberPrototype)) == NUMBER; +var BROKEN_CLASSOF = classof$7(create$a(NumberPrototype)) == NUMBER; // `ToNumber` abstract operation // https://tc39.es/ecma262/#sec-tonumber var toNumber = function (argument) { - var it = toPrimitive$4(argument, false); + if (isSymbol$1(argument)) throw TypeError('Cannot convert a Symbol value to a number'); + var it = toPrimitive(argument, 'number'); var first, third, radix, maxCode, digits, length, index, code; if (typeof it == 'string' && it.length > 2) { it = trim$2(it); @@ -4628,10 +4828,10 @@ if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNu var dummy = this; return dummy instanceof NumberWrapper // check on 1..constructor(foo) case - && (BROKEN_CLASSOF ? fails$A(function () { NumberPrototype.valueOf.call(dummy); }) : classof$7(dummy) != NUMBER) + && (BROKEN_CLASSOF ? fails$F(function () { NumberPrototype.valueOf.call(dummy); }) : classof$7(dummy) != NUMBER) ? inheritIfRequired$2(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it); }; - for (var keys$1 = DESCRIPTORS$m ? getOwnPropertyNames$3(NativeNumber) : ( + for (var keys$1 = DESCRIPTORS$n ? getOwnPropertyNames$3(NativeNumber) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before): @@ -4641,25 +4841,25 @@ if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNu 'fromString,range' ).split(','), j = 0, key; keys$1.length > j; j++) { if (has$8(NativeNumber, key = keys$1[j]) && !has$8(NumberWrapper, key)) { - defineProperty$6(NumberWrapper, key, getOwnPropertyDescriptor$6(NativeNumber, key)); + defineProperty$7(NumberWrapper, key, getOwnPropertyDescriptor$6(NativeNumber, key)); } } NumberWrapper.prototype = NumberPrototype; NumberPrototype.constructor = NumberWrapper; - redefine$8(global$r, NUMBER, NumberWrapper); + redefine$8(global$v, NUMBER, NumberWrapper); } -var $$3e = _export; +var $$3i = _export; // `Number.EPSILON` constant // https://tc39.es/ecma262/#sec-number.epsilon -$$3e({ target: 'Number', stat: true }, { +$$3i({ target: 'Number', stat: true }, { EPSILON: Math.pow(2, -52) }); -var global$q = global$M; +var global$u = global$Q; -var globalIsFinite = global$q.isFinite; +var globalIsFinite = global$u.isFinite; // `Number.isFinite` method // https://tc39.es/ecma262/#sec-number.isfinite @@ -4668,119 +4868,121 @@ var numberIsFinite$2 = Number.isFinite || function isFinite(it) { return typeof it == 'number' && globalIsFinite(it); }; -var $$3d = _export; +var $$3h = _export; var numberIsFinite$1 = numberIsFinite$2; // `Number.isFinite` method // https://tc39.es/ecma262/#sec-number.isfinite -$$3d({ target: 'Number', stat: true }, { isFinite: numberIsFinite$1 }); +$$3h({ target: 'Number', stat: true }, { isFinite: numberIsFinite$1 }); -var isObject$k = isObject$B; +var isObject$k = isObject$C; var floor$5 = Math.floor; // `Number.isInteger` method implementation // https://tc39.es/ecma262/#sec-number.isinteger -var isInteger$2 = function isInteger(it) { +var isInteger$3 = function isInteger(it) { return !isObject$k(it) && isFinite(it) && floor$5(it) === it; }; -var $$3c = _export; -var isInteger$1 = isInteger$2; +var $$3g = _export; +var isInteger$2 = isInteger$3; // `Number.isInteger` method // https://tc39.es/ecma262/#sec-number.isinteger -$$3c({ target: 'Number', stat: true }, { - isInteger: isInteger$1 +$$3g({ target: 'Number', stat: true }, { + isInteger: isInteger$2 }); -var $$3b = _export; +var $$3f = _export; // `Number.isNaN` method // https://tc39.es/ecma262/#sec-number.isnan -$$3b({ target: 'Number', stat: true }, { +$$3f({ target: 'Number', stat: true }, { isNaN: function isNaN(number) { // eslint-disable-next-line no-self-compare -- NaN check return number != number; } }); -var $$3a = _export; -var isInteger = isInteger$2; +var $$3e = _export; +var isInteger$1 = isInteger$3; var abs = Math.abs; // `Number.isSafeInteger` method // https://tc39.es/ecma262/#sec-number.issafeinteger -$$3a({ target: 'Number', stat: true }, { +$$3e({ target: 'Number', stat: true }, { isSafeInteger: function isSafeInteger(number) { - return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF; + return isInteger$1(number) && abs(number) <= 0x1FFFFFFFFFFFFF; } }); -var $$39 = _export; +var $$3d = _export; // `Number.MAX_SAFE_INTEGER` constant // https://tc39.es/ecma262/#sec-number.max_safe_integer -$$39({ target: 'Number', stat: true }, { +$$3d({ target: 'Number', stat: true }, { MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF }); -var $$38 = _export; +var $$3c = _export; // `Number.MIN_SAFE_INTEGER` constant // https://tc39.es/ecma262/#sec-number.min_safe_integer -$$38({ target: 'Number', stat: true }, { +$$3c({ target: 'Number', stat: true }, { MIN_SAFE_INTEGER: -0x1FFFFFFFFFFFFF }); -var global$p = global$M; +var global$t = global$Q; +var toString$k = toString$s; var trim$1 = stringTrim.trim; var whitespaces$2 = whitespaces$4; -var $parseFloat = global$p.parseFloat; +var $parseFloat = global$t.parseFloat; var FORCED$j = 1 / $parseFloat(whitespaces$2 + '-0') !== -Infinity; // `parseFloat` method // https://tc39.es/ecma262/#sec-parsefloat-string var numberParseFloat = FORCED$j ? function parseFloat(string) { - var trimmedString = trim$1(String(string)); + var trimmedString = trim$1(toString$k(string)); var result = $parseFloat(trimmedString); return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result; } : $parseFloat; -var $$37 = _export; +var $$3b = _export; var parseFloat$1 = numberParseFloat; // `Number.parseFloat` method // https://tc39.es/ecma262/#sec-number.parseFloat // eslint-disable-next-line es/no-number-parsefloat -- required for testing -$$37({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat$1 }, { +$$3b({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat$1 }, { parseFloat: parseFloat$1 }); -var global$o = global$M; +var global$s = global$Q; +var toString$j = toString$s; var trim = stringTrim.trim; var whitespaces$1 = whitespaces$4; -var $parseInt = global$o.parseInt; +var $parseInt = global$s.parseInt; var hex = /^[+-]?0[Xx]/; var FORCED$i = $parseInt(whitespaces$1 + '08') !== 8 || $parseInt(whitespaces$1 + '0x16') !== 22; // `parseInt` method // https://tc39.es/ecma262/#sec-parseint-string-radix var numberParseInt = FORCED$i ? function parseInt(string, radix) { - var S = trim(String(string)); + var S = trim(toString$j(string)); return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10)); } : $parseInt; -var $$36 = _export; +var $$3a = _export; var parseInt$2 = numberParseInt; // `Number.parseInt` method // https://tc39.es/ecma262/#sec-number.parseint // eslint-disable-next-line es/no-number-parseint -- required for testing -$$36({ target: 'Number', stat: true, forced: Number.parseInt != parseInt$2 }, { +$$3a({ target: 'Number', stat: true, forced: Number.parseInt != parseInt$2 }, { parseInt: parseInt$2 }); @@ -4795,11 +4997,11 @@ var thisNumberValue$2 = function (value) { return +value; }; -var $$35 = _export; -var toInteger$6 = toInteger$f; +var $$39 = _export; +var toInteger$7 = toInteger$h; var thisNumberValue$1 = thisNumberValue$2; var repeat$1 = stringRepeat; -var fails$z = fails$X; +var fails$E = fails$11; var nativeToFixed = 1.0.toFixed; var floor$4 = Math.floor; @@ -4857,17 +5059,17 @@ var FORCED$h = nativeToFixed && ( 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || 1000000000000000128.0.toFixed(0) !== '1000000000000000128' -) || !fails$z(function () { +) || !fails$E(function () { // V8 ~ Android 4.3- nativeToFixed.call({}); }); // `Number.prototype.toFixed` method // https://tc39.es/ecma262/#sec-number.prototype.tofixed -$$35({ target: 'Number', proto: true, forced: FORCED$h }, { +$$39({ target: 'Number', proto: true, forced: FORCED$h }, { toFixed: function toFixed(fractionDigits) { var number = thisNumberValue$1(this); - var fractDigits = toInteger$6(fractionDigits); + var fractDigits = toInteger$7(fractionDigits); var data = [0, 0, 0, 0, 0, 0]; var sign = ''; var result = '0'; @@ -4920,23 +5122,23 @@ $$35({ target: 'Number', proto: true, forced: FORCED$h }, { } }); -var $$34 = _export; -var fails$y = fails$X; +var $$38 = _export; +var fails$D = fails$11; var thisNumberValue = thisNumberValue$2; var nativeToPrecision = 1.0.toPrecision; -var FORCED$g = fails$y(function () { +var FORCED$g = fails$D(function () { // IE7- return nativeToPrecision.call(1, undefined) !== '1'; -}) || !fails$y(function () { +}) || !fails$D(function () { // V8 ~ Android 4.3- nativeToPrecision.call({}); }); // `Number.prototype.toPrecision` method // https://tc39.es/ecma262/#sec-number.prototype.toprecision -$$34({ target: 'Number', proto: true, forced: FORCED$g }, { +$$38({ target: 'Number', proto: true, forced: FORCED$g }, { toPrecision: function toPrecision(precision) { return precision === undefined ? nativeToPrecision.call(thisNumberValue(this)) @@ -4944,27 +5146,27 @@ $$34({ target: 'Number', proto: true, forced: FORCED$g }, { } }); -var DESCRIPTORS$l = descriptors; -var fails$x = fails$X; +var DESCRIPTORS$m = descriptors; +var fails$C = fails$11; var objectKeys$2 = objectKeys$5; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; var propertyIsEnumerableModule = objectPropertyIsEnumerable; -var toObject$h = toObject$w; -var IndexedObject$1 = indexedObject; +var toObject$i = toObject$x; +var IndexedObject$2 = indexedObject; // eslint-disable-next-line es/no-object-assign -- safe var $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing -var defineProperty$5 = Object.defineProperty; +var defineProperty$6 = Object.defineProperty; // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign -var objectAssign = !$assign || fails$x(function () { +var objectAssign = !$assign || fails$C(function () { // should have correct order of operations (Edge bug) - if (DESCRIPTORS$l && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', { + if (DESCRIPTORS$m && $assign({ b: 1 }, $assign(defineProperty$6({}, 'a', { enumerable: true, get: function () { - defineProperty$5(this, 'b', { + defineProperty$6(this, 'b', { value: 3, enumerable: false }); @@ -4980,50 +5182,50 @@ var objectAssign = !$assign || fails$x(function () { alphabet.split('').forEach(function (chr) { B[chr] = chr; }); return $assign({}, A)[symbol] != 7 || objectKeys$2($assign({}, B)).join('') != alphabet; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` - var T = toObject$h(target); + var T = toObject$i(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { - var S = IndexedObject$1(arguments[index++]); + var S = IndexedObject$2(arguments[index++]); var keys = getOwnPropertySymbols ? objectKeys$2(S).concat(getOwnPropertySymbols(S)) : objectKeys$2(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; - if (!DESCRIPTORS$l || propertyIsEnumerable.call(S, key)) T[key] = S[key]; + if (!DESCRIPTORS$m || propertyIsEnumerable.call(S, key)) T[key] = S[key]; } } return T; } : $assign; -var $$33 = _export; +var $$37 = _export; var assign$1 = objectAssign; // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign // eslint-disable-next-line es/no-object-assign -- required for testing -$$33({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, { +$$37({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, { assign: assign$1 }); -var $$32 = _export; -var DESCRIPTORS$k = descriptors; -var create$7 = objectCreate; +var $$36 = _export; +var DESCRIPTORS$l = descriptors; +var create$9 = objectCreate$1; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create -$$32({ target: 'Object', stat: true, sham: !DESCRIPTORS$k }, { - create: create$7 +$$36({ target: 'Object', stat: true, sham: !DESCRIPTORS$l }, { + create: create$9 }); -var global$n = global$M; -var fails$w = fails$X; +var global$r = global$Q; +var fails$B = fails$11; var WEBKIT$1 = engineWebkitVersion; // Forced replacement object prototype accessors methods -var objectPrototypeAccessorsForced = !fails$w(function () { +var objectPrototypeAccessorsForced = !fails$B(function () { // This feature detection crashes old WebKit // https://github.com/zloirock/core-js/issues/232 if (WEBKIT$1 && WEBKIT$1 < 535) return; @@ -5031,64 +5233,64 @@ var objectPrototypeAccessorsForced = !fails$w(function () { // In FF throws only define methods // eslint-disable-next-line no-undef, no-useless-call -- required for testing __defineSetter__.call(null, key, function () { /* empty */ }); - delete global$n[key]; + delete global$r[key]; }); -var $$31 = _export; -var DESCRIPTORS$j = descriptors; +var $$35 = _export; +var DESCRIPTORS$k = descriptors; var FORCED$f = objectPrototypeAccessorsForced; -var toObject$g = toObject$w; +var toObject$h = toObject$x; var aFunction$L = aFunction$S; var definePropertyModule$4 = objectDefineProperty; // `Object.prototype.__defineGetter__` method // https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__ -if (DESCRIPTORS$j) { - $$31({ target: 'Object', proto: true, forced: FORCED$f }, { +if (DESCRIPTORS$k) { + $$35({ target: 'Object', proto: true, forced: FORCED$f }, { __defineGetter__: function __defineGetter__(P, getter) { - definePropertyModule$4.f(toObject$g(this), P, { get: aFunction$L(getter), enumerable: true, configurable: true }); + definePropertyModule$4.f(toObject$h(this), P, { get: aFunction$L(getter), enumerable: true, configurable: true }); } }); } -var $$30 = _export; -var DESCRIPTORS$i = descriptors; +var $$34 = _export; +var DESCRIPTORS$j = descriptors; var defineProperties$2 = objectDefineProperties; // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties -$$30({ target: 'Object', stat: true, forced: !DESCRIPTORS$i, sham: !DESCRIPTORS$i }, { +$$34({ target: 'Object', stat: true, forced: !DESCRIPTORS$j, sham: !DESCRIPTORS$j }, { defineProperties: defineProperties$2 }); -var $$2$ = _export; -var DESCRIPTORS$h = descriptors; +var $$33 = _export; +var DESCRIPTORS$i = descriptors; var objectDefinePropertyModile = objectDefineProperty; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty -$$2$({ target: 'Object', stat: true, forced: !DESCRIPTORS$h, sham: !DESCRIPTORS$h }, { +$$33({ target: 'Object', stat: true, forced: !DESCRIPTORS$i, sham: !DESCRIPTORS$i }, { defineProperty: objectDefinePropertyModile.f }); -var $$2_ = _export; -var DESCRIPTORS$g = descriptors; +var $$32 = _export; +var DESCRIPTORS$h = descriptors; var FORCED$e = objectPrototypeAccessorsForced; -var toObject$f = toObject$w; +var toObject$g = toObject$x; var aFunction$K = aFunction$S; var definePropertyModule$3 = objectDefineProperty; // `Object.prototype.__defineSetter__` method // https://tc39.es/ecma262/#sec-object.prototype.__defineSetter__ -if (DESCRIPTORS$g) { - $$2_({ target: 'Object', proto: true, forced: FORCED$e }, { +if (DESCRIPTORS$h) { + $$32({ target: 'Object', proto: true, forced: FORCED$e }, { __defineSetter__: function __defineSetter__(P, setter) { - definePropertyModule$3.f(toObject$f(this), P, { set: aFunction$K(setter), enumerable: true, configurable: true }); + definePropertyModule$3.f(toObject$g(this), P, { set: aFunction$K(setter), enumerable: true, configurable: true }); } }); } -var DESCRIPTORS$f = descriptors; +var DESCRIPTORS$g = descriptors; var objectKeys$1 = objectKeys$5; var toIndexedObject$3 = toIndexedObject$d; var propertyIsEnumerable = objectPropertyIsEnumerable.f; @@ -5104,7 +5306,7 @@ var createMethod$3 = function (TO_ENTRIES) { var key; while (length > i) { key = keys[i++]; - if (!DESCRIPTORS$f || propertyIsEnumerable.call(O, key)) { + if (!DESCRIPTORS$g || propertyIsEnumerable.call(O, key)) { result.push(TO_ENTRIES ? [key, O[key]] : O[key]); } } @@ -5121,42 +5323,42 @@ var objectToArray = { values: createMethod$3(false) }; -var $$2Z = _export; +var $$31 = _export; var $entries = objectToArray.entries; // `Object.entries` method // https://tc39.es/ecma262/#sec-object.entries -$$2Z({ target: 'Object', stat: true }, { +$$31({ target: 'Object', stat: true }, { entries: function entries(O) { return $entries(O); } }); -var $$2Y = _export; +var $$30 = _export; var FREEZING$3 = freezing; -var fails$v = fails$X; -var isObject$j = isObject$B; +var fails$A = fails$11; +var isObject$j = isObject$C; var onFreeze$2 = internalMetadata.exports.onFreeze; // eslint-disable-next-line es/no-object-freeze -- safe var $freeze = Object.freeze; -var FAILS_ON_PRIMITIVES$9 = fails$v(function () { $freeze(1); }); +var FAILS_ON_PRIMITIVES$9 = fails$A(function () { $freeze(1); }); // `Object.freeze` method // https://tc39.es/ecma262/#sec-object.freeze -$$2Y({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$9, sham: !FREEZING$3 }, { +$$30({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$9, sham: !FREEZING$3 }, { freeze: function freeze(it) { return $freeze && isObject$j(it) ? $freeze(onFreeze$2(it)) : it; } }); -var $$2X = _export; +var $$2$ = _export; var iterate$E = iterate$I; var createProperty$1 = createProperty$7; // `Object.fromEntries` method // https://github.com/tc39/proposal-object-from-entries -$$2X({ target: 'Object', stat: true }, { +$$2$({ target: 'Object', stat: true }, { fromEntries: function fromEntries(iterable) { var obj = {}; iterate$E(iterable, function (k, v) { @@ -5166,25 +5368,25 @@ $$2X({ target: 'Object', stat: true }, { } }); -var $$2W = _export; -var fails$u = fails$X; +var $$2_ = _export; +var fails$z = fails$11; var toIndexedObject$2 = toIndexedObject$d; var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; -var DESCRIPTORS$e = descriptors; +var DESCRIPTORS$f = descriptors; -var FAILS_ON_PRIMITIVES$8 = fails$u(function () { nativeGetOwnPropertyDescriptor$1(1); }); -var FORCED$d = !DESCRIPTORS$e || FAILS_ON_PRIMITIVES$8; +var FAILS_ON_PRIMITIVES$8 = fails$z(function () { nativeGetOwnPropertyDescriptor$1(1); }); +var FORCED$d = !DESCRIPTORS$f || FAILS_ON_PRIMITIVES$8; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -$$2W({ target: 'Object', stat: true, forced: FORCED$d, sham: !DESCRIPTORS$e }, { +$$2_({ target: 'Object', stat: true, forced: FORCED$d, sham: !DESCRIPTORS$f }, { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { return nativeGetOwnPropertyDescriptor$1(toIndexedObject$2(it), key); } }); -var $$2V = _export; -var DESCRIPTORS$d = descriptors; +var $$2Z = _export; +var DESCRIPTORS$e = descriptors; var ownKeys$1 = ownKeys$3; var toIndexedObject$1 = toIndexedObject$d; var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor; @@ -5192,7 +5394,7 @@ var createProperty = createProperty$7; // `Object.getOwnPropertyDescriptors` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors -$$2V({ target: 'Object', stat: true, sham: !DESCRIPTORS$d }, { +$$2Z({ target: 'Object', stat: true, sham: !DESCRIPTORS$e }, { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { var O = toIndexedObject$1(object); var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f; @@ -5208,32 +5410,32 @@ $$2V({ target: 'Object', stat: true, sham: !DESCRIPTORS$d }, { } }); -var $$2U = _export; -var fails$t = fails$X; +var $$2Y = _export; +var fails$y = fails$11; var getOwnPropertyNames$2 = objectGetOwnPropertyNamesExternal.f; // eslint-disable-next-line es/no-object-getownpropertynames -- required for testing -var FAILS_ON_PRIMITIVES$7 = fails$t(function () { return !Object.getOwnPropertyNames(1); }); +var FAILS_ON_PRIMITIVES$7 = fails$y(function () { return !Object.getOwnPropertyNames(1); }); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames -$$2U({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$7 }, { +$$2Y({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$7 }, { getOwnPropertyNames: getOwnPropertyNames$2 }); -var $$2T = _export; -var fails$s = fails$X; -var toObject$e = toObject$w; +var $$2X = _export; +var fails$x = fails$11; +var toObject$f = toObject$x; var nativeGetPrototypeOf = objectGetPrototypeOf$1; var CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter; -var FAILS_ON_PRIMITIVES$6 = fails$s(function () { nativeGetPrototypeOf(1); }); +var FAILS_ON_PRIMITIVES$6 = fails$x(function () { nativeGetPrototypeOf(1); }); // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof -$$2T({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$6, sham: !CORRECT_PROTOTYPE_GETTER$1 }, { +$$2X({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$6, sham: !CORRECT_PROTOTYPE_GETTER$1 }, { getPrototypeOf: function getPrototypeOf(it) { - return nativeGetPrototypeOf(toObject$e(it)); + return nativeGetPrototypeOf(toObject$f(it)); } }); @@ -5245,93 +5447,93 @@ var sameValue$1 = Object.is || function is(x, y) { return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -var $$2S = _export; +var $$2W = _export; var is = sameValue$1; // `Object.is` method // https://tc39.es/ecma262/#sec-object.is -$$2S({ target: 'Object', stat: true }, { +$$2W({ target: 'Object', stat: true }, { is: is }); -var $$2R = _export; -var fails$r = fails$X; -var isObject$i = isObject$B; +var $$2V = _export; +var fails$w = fails$11; +var isObject$i = isObject$C; // eslint-disable-next-line es/no-object-isextensible -- safe var $isExtensible = Object.isExtensible; -var FAILS_ON_PRIMITIVES$5 = fails$r(function () { $isExtensible(1); }); +var FAILS_ON_PRIMITIVES$5 = fails$w(function () { $isExtensible(1); }); // `Object.isExtensible` method // https://tc39.es/ecma262/#sec-object.isextensible -$$2R({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$5 }, { +$$2V({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$5 }, { isExtensible: function isExtensible(it) { return isObject$i(it) ? $isExtensible ? $isExtensible(it) : true : false; } }); -var $$2Q = _export; -var fails$q = fails$X; -var isObject$h = isObject$B; +var $$2U = _export; +var fails$v = fails$11; +var isObject$h = isObject$C; // eslint-disable-next-line es/no-object-isfrozen -- safe var $isFrozen = Object.isFrozen; -var FAILS_ON_PRIMITIVES$4 = fails$q(function () { $isFrozen(1); }); +var FAILS_ON_PRIMITIVES$4 = fails$v(function () { $isFrozen(1); }); // `Object.isFrozen` method // https://tc39.es/ecma262/#sec-object.isfrozen -$$2Q({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$4 }, { +$$2U({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$4 }, { isFrozen: function isFrozen(it) { return isObject$h(it) ? $isFrozen ? $isFrozen(it) : false : true; } }); -var $$2P = _export; -var fails$p = fails$X; -var isObject$g = isObject$B; +var $$2T = _export; +var fails$u = fails$11; +var isObject$g = isObject$C; // eslint-disable-next-line es/no-object-issealed -- safe var $isSealed = Object.isSealed; -var FAILS_ON_PRIMITIVES$3 = fails$p(function () { $isSealed(1); }); +var FAILS_ON_PRIMITIVES$3 = fails$u(function () { $isSealed(1); }); // `Object.isSealed` method // https://tc39.es/ecma262/#sec-object.issealed -$$2P({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3 }, { +$$2T({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3 }, { isSealed: function isSealed(it) { return isObject$g(it) ? $isSealed ? $isSealed(it) : false : true; } }); -var $$2O = _export; -var toObject$d = toObject$w; +var $$2S = _export; +var toObject$e = toObject$x; var nativeKeys = objectKeys$5; -var fails$o = fails$X; +var fails$t = fails$11; -var FAILS_ON_PRIMITIVES$2 = fails$o(function () { nativeKeys(1); }); +var FAILS_ON_PRIMITIVES$2 = fails$t(function () { nativeKeys(1); }); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys -$$2O({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, { +$$2S({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, { keys: function keys(it) { - return nativeKeys(toObject$d(it)); + return nativeKeys(toObject$e(it)); } }); -var $$2N = _export; -var DESCRIPTORS$c = descriptors; +var $$2R = _export; +var DESCRIPTORS$d = descriptors; var FORCED$c = objectPrototypeAccessorsForced; -var toObject$c = toObject$w; -var toPrimitive$3 = toPrimitive$b; +var toObject$d = toObject$x; +var toPropertyKey$4 = toPropertyKey$9; var getPrototypeOf$7 = objectGetPrototypeOf$1; var getOwnPropertyDescriptor$5 = objectGetOwnPropertyDescriptor.f; // `Object.prototype.__lookupGetter__` method // https://tc39.es/ecma262/#sec-object.prototype.__lookupGetter__ -if (DESCRIPTORS$c) { - $$2N({ target: 'Object', proto: true, forced: FORCED$c }, { +if (DESCRIPTORS$d) { + $$2R({ target: 'Object', proto: true, forced: FORCED$c }, { __lookupGetter__: function __lookupGetter__(P) { - var O = toObject$c(this); - var key = toPrimitive$3(P, true); + var O = toObject$d(this); + var key = toPropertyKey$4(P); var desc; do { if (desc = getOwnPropertyDescriptor$5(O, key)) return desc.get; @@ -5340,21 +5542,21 @@ if (DESCRIPTORS$c) { }); } -var $$2M = _export; -var DESCRIPTORS$b = descriptors; +var $$2Q = _export; +var DESCRIPTORS$c = descriptors; var FORCED$b = objectPrototypeAccessorsForced; -var toObject$b = toObject$w; -var toPrimitive$2 = toPrimitive$b; +var toObject$c = toObject$x; +var toPropertyKey$3 = toPropertyKey$9; var getPrototypeOf$6 = objectGetPrototypeOf$1; var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f; // `Object.prototype.__lookupSetter__` method // https://tc39.es/ecma262/#sec-object.prototype.__lookupSetter__ -if (DESCRIPTORS$b) { - $$2M({ target: 'Object', proto: true, forced: FORCED$b }, { +if (DESCRIPTORS$c) { + $$2Q({ target: 'Object', proto: true, forced: FORCED$b }, { __lookupSetter__: function __lookupSetter__(P) { - var O = toObject$b(this); - var key = toPrimitive$2(P, true); + var O = toObject$c(this); + var key = toPropertyKey$3(P); var desc; do { if (desc = getOwnPropertyDescriptor$4(O, key)) return desc.set; @@ -5363,48 +5565,48 @@ if (DESCRIPTORS$b) { }); } -var $$2L = _export; -var isObject$f = isObject$B; +var $$2P = _export; +var isObject$f = isObject$C; var onFreeze$1 = internalMetadata.exports.onFreeze; var FREEZING$2 = freezing; -var fails$n = fails$X; +var fails$s = fails$11; // eslint-disable-next-line es/no-object-preventextensions -- safe var $preventExtensions = Object.preventExtensions; -var FAILS_ON_PRIMITIVES$1 = fails$n(function () { $preventExtensions(1); }); +var FAILS_ON_PRIMITIVES$1 = fails$s(function () { $preventExtensions(1); }); // `Object.preventExtensions` method // https://tc39.es/ecma262/#sec-object.preventextensions -$$2L({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING$2 }, { +$$2P({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING$2 }, { preventExtensions: function preventExtensions(it) { return $preventExtensions && isObject$f(it) ? $preventExtensions(onFreeze$1(it)) : it; } }); -var $$2K = _export; -var isObject$e = isObject$B; +var $$2O = _export; +var isObject$e = isObject$C; var onFreeze = internalMetadata.exports.onFreeze; var FREEZING$1 = freezing; -var fails$m = fails$X; +var fails$r = fails$11; // eslint-disable-next-line es/no-object-seal -- safe var $seal = Object.seal; -var FAILS_ON_PRIMITIVES = fails$m(function () { $seal(1); }); +var FAILS_ON_PRIMITIVES = fails$r(function () { $seal(1); }); // `Object.seal` method // https://tc39.es/ecma262/#sec-object.seal -$$2K({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING$1 }, { +$$2O({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING$1 }, { seal: function seal(it) { return $seal && isObject$e(it) ? $seal(onFreeze(it)) : it; } }); -var $$2J = _export; +var $$2N = _export; var setPrototypeOf$2 = objectSetPrototypeOf$1; // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof -$$2J({ target: 'Object', stat: true }, { +$$2N({ target: 'Object', stat: true }, { setPrototypeOf: setPrototypeOf$2 }); @@ -5419,69 +5621,73 @@ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() var TO_STRING_TAG_SUPPORT = toStringTagSupport; var redefine$7 = redefine$g.exports; -var toString = objectToString; +var toString$i = objectToString; // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { - redefine$7(Object.prototype, 'toString', toString, { unsafe: true }); + redefine$7(Object.prototype, 'toString', toString$i, { unsafe: true }); } -var $$2I = _export; +var $$2M = _export; var $values = objectToArray.values; // `Object.values` method // https://tc39.es/ecma262/#sec-object.values -$$2I({ target: 'Object', stat: true }, { +$$2M({ target: 'Object', stat: true }, { values: function values(O) { return $values(O); } }); -var $$2H = _export; +var $$2L = _export; var parseFloatImplementation = numberParseFloat; // `parseFloat` method // https://tc39.es/ecma262/#sec-parsefloat-string -$$2H({ global: true, forced: parseFloat != parseFloatImplementation }, { +$$2L({ global: true, forced: parseFloat != parseFloatImplementation }, { parseFloat: parseFloatImplementation }); -var $$2G = _export; +var $$2K = _export; var parseIntImplementation = numberParseInt; // `parseInt` method // https://tc39.es/ecma262/#sec-parseint-string-radix -$$2G({ global: true, forced: parseInt != parseIntImplementation }, { +$$2K({ global: true, forced: parseInt != parseIntImplementation }, { parseInt: parseIntImplementation }); -var global$m = global$M; +var global$q = global$Q; -var nativePromiseConstructor = global$m.Promise; +var nativePromiseConstructor = global$q.Promise; -var userAgent$3 = engineUserAgent; +var userAgent$4 = engineUserAgent; -var engineIsIos = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent$3); +var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4); -var global$l = global$M; -var fails$l = fails$X; -var bind$i = functionBindContext; +var global$p = global$Q; +var fails$q = fails$11; +var bind$j = functionBindContext; var html = html$2; var createElement = documentCreateElement$1; var IS_IOS$1 = engineIsIos; var IS_NODE$3 = engineIsNode; -var location = global$l.location; -var set$1 = global$l.setImmediate; -var clear = global$l.clearImmediate; -var process$3 = global$l.process; -var MessageChannel = global$l.MessageChannel; -var Dispatch = global$l.Dispatch; +var set$1 = global$p.setImmediate; +var clear = global$p.clearImmediate; +var process$3 = global$p.process; +var MessageChannel = global$p.MessageChannel; +var Dispatch = global$p.Dispatch; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; -var defer, channel, port; +var location, defer, channel, port; + +try { + // Deno throws a ReferenceError on `location` access without `--location` flag + location = global$p.location; +} catch (error) { /* empty */ } var run = function (id) { // eslint-disable-next-line no-prototype-builtins -- safe @@ -5504,15 +5710,16 @@ var listener = function (event) { var post = function (id) { // old engines have not location.origin - global$l.postMessage(id + '', location.protocol + '//' + location.host); + global$p.postMessage(String(id), location.protocol + '//' + location.host); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if (!set$1 || !clear) { set$1 = function setImmediate(fn) { var args = []; + var argumentsLength = arguments.length; var i = 1; - while (arguments.length > i) args.push(arguments[i++]); + while (argumentsLength > i) args.push(arguments[i++]); queue[++counter] = function () { // eslint-disable-next-line no-new-func -- spec requirement (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args); @@ -5539,18 +5746,18 @@ if (!set$1 || !clear) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; - defer = bind$i(port.postMessage, port, 1); + defer = bind$j(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if ( - global$l.addEventListener && + global$p.addEventListener && typeof postMessage == 'function' && - !global$l.importScripts && + !global$p.importScripts && location && location.protocol !== 'file:' && - !fails$l(post) + !fails$q(post) ) { defer = post; - global$l.addEventListener('message', listener, false); + global$p.addEventListener('message', listener, false); // IE8- } else if (ONREADYSTATECHANGE in createElement('script')) { defer = function (id) { @@ -5572,23 +5779,29 @@ var task$2 = { clear: clear }; +var userAgent$3 = engineUserAgent; +var global$o = global$Q; + +var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && global$o.Pebble !== undefined; + var userAgent$2 = engineUserAgent; var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2); -var global$k = global$M; +var global$n = global$Q; var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f; var macrotask = task$2.set; var IS_IOS = engineIsIos; +var IS_IOS_PEBBLE = engineIsIosPebble; var IS_WEBOS_WEBKIT = engineIsWebosWebkit; var IS_NODE$2 = engineIsNode; -var MutationObserver = global$k.MutationObserver || global$k.WebKitMutationObserver; -var document$2 = global$k.document; -var process$2 = global$k.process; -var Promise$4 = global$k.Promise; +var MutationObserver = global$n.MutationObserver || global$n.WebKitMutationObserver; +var document$2 = global$n.document; +var process$2 = global$n.process; +var Promise$5 = global$n.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` -var queueMicrotaskDescriptor = getOwnPropertyDescriptor$3(global$k, 'queueMicrotask'); +var queueMicrotaskDescriptor = getOwnPropertyDescriptor$3(global$n, 'queueMicrotask'); var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; var flush, head, last, notify$1, toggle, node, promise, then; @@ -5622,11 +5835,11 @@ if (!queueMicrotask) { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise - } else if (Promise$4 && Promise$4.resolve) { + } else if (!IS_IOS_PEBBLE && Promise$5 && Promise$5.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 - promise = Promise$4.resolve(undefined); + promise = Promise$5.resolve(undefined); // workaround of WebKit ~ iOS Safari 10.1 bug - promise.constructor = Promise$4; + promise.constructor = Promise$5; then = promise.then; notify$1 = function () { then.call(promise, flush); @@ -5645,7 +5858,7 @@ if (!queueMicrotask) { } else { notify$1 = function () { // strange IE + webpack dev server bug - use .call(global) - macrotask.call(global$k, flush); + macrotask.call(global$n, flush); }; } } @@ -5680,12 +5893,12 @@ newPromiseCapability$2.f = function (C) { return new PromiseCapability(C); }; -var anObject$1m = anObject$1z; -var isObject$d = isObject$B; +var anObject$1n = anObject$1B; +var isObject$d = isObject$C; var newPromiseCapability$1 = newPromiseCapability$2; var promiseResolve$2 = function (C, x) { - anObject$1m(C); + anObject$1n(C); if (isObject$d(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability$1.f(C); var resolve = promiseCapability.resolve; @@ -5693,10 +5906,10 @@ var promiseResolve$2 = function (C, x) { return promiseCapability.promise; }; -var global$j = global$M; +var global$m = global$Q; var hostReportErrors$2 = function (a, b) { - var console = global$j.console; + var console = global$m.console; if (console && console.error) { arguments.length === 1 ? console.error(a) : console.error(a, b); } @@ -5712,49 +5925,49 @@ var perform$4 = function (exec) { var engineIsBrowser = typeof window == 'object'; -var $$2F = _export; -var global$i = global$M; -var getBuiltIn$m = getBuiltIn$t; +var $$2J = _export; +var global$l = global$Q; +var getBuiltIn$n = getBuiltIn$v; var NativePromise$1 = nativePromiseConstructor; var redefine$6 = redefine$g.exports; -var redefineAll$6 = redefineAll$9; +var redefineAll$7 = redefineAll$a; var setPrototypeOf$1 = objectSetPrototypeOf$1; var setToStringTag$3 = setToStringTag$b; var setSpecies$3 = setSpecies$7; -var isObject$c = isObject$B; +var isObject$c = isObject$C; var aFunction$I = aFunction$S; var anInstance$7 = anInstance$b; var inspectSource = inspectSource$3; var iterate$D = iterate$I; var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4; -var speciesConstructor$g = speciesConstructor$i; +var speciesConstructor$d = speciesConstructor$f; var task$1 = task$2.set; var microtask$1 = microtask$2; var promiseResolve$1 = promiseResolve$2; var hostReportErrors$1 = hostReportErrors$2; var newPromiseCapabilityModule$3 = newPromiseCapability$2; var perform$3 = perform$4; -var InternalStateModule$d = internalState; +var InternalStateModule$e = internalState; var isForced$1 = isForced_1; -var wellKnownSymbol$h = wellKnownSymbol$C; +var wellKnownSymbol$j = wellKnownSymbol$F; var IS_BROWSER = engineIsBrowser; var IS_NODE$1 = engineIsNode; var V8_VERSION = engineV8Version; -var SPECIES$1 = wellKnownSymbol$h('species'); +var SPECIES$1 = wellKnownSymbol$j('species'); var PROMISE = 'Promise'; -var getInternalState$b = InternalStateModule$d.get; -var setInternalState$d = InternalStateModule$d.set; -var getInternalPromiseState = InternalStateModule$d.getterFor(PROMISE); +var getInternalState$e = InternalStateModule$e.get; +var setInternalState$e = InternalStateModule$e.set; +var getInternalPromiseState = InternalStateModule$e.getterFor(PROMISE); var NativePromisePrototype = NativePromise$1 && NativePromise$1.prototype; var PromiseConstructor = NativePromise$1; var PromiseConstructorPrototype = NativePromisePrototype; -var TypeError$1 = global$i.TypeError; -var document$1 = global$i.document; -var process$1 = global$i.process; +var TypeError$1 = global$l.TypeError; +var document$1 = global$l.document; +var process$1 = global$l.process; var newPromiseCapability = newPromiseCapabilityModule$3.f; var newGenericPromiseCapability = newPromiseCapability; -var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$i.dispatchEvent); +var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$l.dispatchEvent); var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function'; var UNHANDLED_REJECTION = 'unhandledrejection'; var REJECTION_HANDLED = 'rejectionhandled'; @@ -5767,7 +5980,8 @@ var SUBCLASSING = false; var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; var FORCED$a = isForced$1(PROMISE, function () { - var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor); + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor); + var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor); // 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 @@ -5775,7 +5989,7 @@ var FORCED$a = isForced$1(PROMISE, function () { // 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 >= 51 && /native code/.test(PromiseConstructor)) return false; + if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false; // Detect correctness of subclassing with @@species support var promise = new PromiseConstructor(function (resolve) { resolve(1); }); var FakePromise = function (exec) { @@ -5854,14 +6068,14 @@ var dispatchEvent = function (name, promise, reason) { event.promise = promise; event.reason = reason; event.initEvent(name, false, true); - global$i.dispatchEvent(event); + global$l.dispatchEvent(event); } else event = { promise: promise, reason: reason }; - if (!NATIVE_REJECTION_EVENT && (handler = global$i['on' + name])) handler(event); + if (!NATIVE_REJECTION_EVENT && (handler = global$l['on' + name])) handler(event); else if (name === UNHANDLED_REJECTION) hostReportErrors$1('Unhandled promise rejection', reason); }; var onUnhandled = function (state) { - task$1.call(global$i, function () { + task$1.call(global$l, function () { var promise = state.facade; var value = state.value; var IS_UNHANDLED = isUnhandled(state); @@ -5884,7 +6098,7 @@ var isUnhandled = function (state) { }; var onHandleUnhandled = function (state) { - task$1.call(global$i, function () { + task$1.call(global$l, function () { var promise = state.facade; if (IS_NODE$1) { process$1.emit('rejectionHandled', promise); @@ -5892,7 +6106,7 @@ var onHandleUnhandled = function (state) { }); }; -var bind$h = function (fn, state, unwrap) { +var bind$i = function (fn, state, unwrap) { return function (value) { fn(state, value, unwrap); }; @@ -5919,8 +6133,8 @@ var internalResolve = function (state, value, unwrap) { var wrapper = { done: false }; try { then.call(value, - bind$h(internalResolve, wrapper, state), - bind$h(internalReject, wrapper, state) + bind$i(internalResolve, wrapper, state), + bind$i(internalReject, wrapper, state) ); } catch (error) { internalReject(wrapper, error, state); @@ -5943,9 +6157,9 @@ if (FORCED$a) { anInstance$7(this, PromiseConstructor, PROMISE); aFunction$I(executor); Internal.call(this); - var state = getInternalState$b(this); + var state = getInternalState$e(this); try { - executor(bind$h(internalResolve, state), bind$h(internalReject, state)); + executor(bind$i(internalResolve, state), bind$i(internalReject, state)); } catch (error) { internalReject(state, error); } @@ -5953,7 +6167,7 @@ if (FORCED$a) { PromiseConstructorPrototype = PromiseConstructor.prototype; // eslint-disable-next-line no-unused-vars -- required for `.length` Internal = function Promise(executor) { - setInternalState$d(this, { + setInternalState$e(this, { type: PROMISE, done: false, notified: false, @@ -5964,12 +6178,12 @@ if (FORCED$a) { value: undefined }); }; - Internal.prototype = redefineAll$6(PromiseConstructorPrototype, { + Internal.prototype = redefineAll$7(PromiseConstructorPrototype, { // `Promise.prototype.then` method // https://tc39.es/ecma262/#sec-promise.prototype.then then: function then(onFulfilled, onRejected) { var state = getInternalPromiseState(this); - var reaction = newPromiseCapability(speciesConstructor$g(this, PromiseConstructor)); + var reaction = newPromiseCapability(speciesConstructor$d(this, PromiseConstructor)); reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; reaction.fail = typeof onRejected == 'function' && onRejected; reaction.domain = IS_NODE$1 ? process$1.domain : undefined; @@ -5986,10 +6200,10 @@ if (FORCED$a) { }); OwnPromiseCapability = function () { var promise = new Internal(); - var state = getInternalState$b(promise); + var state = getInternalState$e(promise); this.promise = promise; - this.resolve = bind$h(internalResolve, state); - this.reject = bind$h(internalReject, state); + this.resolve = bind$i(internalResolve, state); + this.reject = bind$i(internalReject, state); }; newPromiseCapabilityModule$3.f = newPromiseCapability = function (C) { return C === PromiseConstructor || C === PromiseWrapper @@ -6026,17 +6240,17 @@ if (FORCED$a) { } } -$$2F({ global: true, wrap: true, forced: FORCED$a }, { +$$2J({ global: true, wrap: true, forced: FORCED$a }, { Promise: PromiseConstructor }); setToStringTag$3(PromiseConstructor, PROMISE, false); setSpecies$3(PROMISE); -PromiseWrapper = getBuiltIn$m(PROMISE); +PromiseWrapper = getBuiltIn$n(PROMISE); // statics -$$2F({ target: PROMISE, stat: true, forced: FORCED$a }, { +$$2J({ target: PROMISE, stat: true, forced: FORCED$a }, { // `Promise.reject` method // https://tc39.es/ecma262/#sec-promise.reject reject: function reject(r) { @@ -6046,7 +6260,7 @@ $$2F({ target: PROMISE, stat: true, forced: FORCED$a }, { } }); -$$2F({ target: PROMISE, stat: true, forced: FORCED$a }, { +$$2J({ target: PROMISE, stat: true, forced: FORCED$a }, { // `Promise.resolve` method // https://tc39.es/ecma262/#sec-promise.resolve resolve: function resolve(x) { @@ -6054,7 +6268,7 @@ $$2F({ target: PROMISE, stat: true, forced: FORCED$a }, { } }); -$$2F({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, { +$$2J({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, { // `Promise.all` method // https://tc39.es/ecma262/#sec-promise.all all: function all(iterable) { @@ -6101,7 +6315,7 @@ $$2F({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, { } }); -var $$2E = _export; +var $$2I = _export; var aFunction$H = aFunction$S; var newPromiseCapabilityModule$2 = newPromiseCapability$2; var perform$2 = perform$4; @@ -6109,7 +6323,7 @@ var iterate$C = iterate$I; // `Promise.allSettled` method // https://tc39.es/ecma262/#sec-promise.allsettled -$$2E({ target: 'Promise', stat: true }, { +$$2I({ target: 'Promise', stat: true }, { allSettled: function allSettled(iterable) { var C = this; var capability = newPromiseCapabilityModule$2.f(C); @@ -6144,9 +6358,9 @@ $$2E({ target: 'Promise', stat: true }, { } }); -var $$2D = _export; +var $$2H = _export; var aFunction$G = aFunction$S; -var getBuiltIn$l = getBuiltIn$t; +var getBuiltIn$m = getBuiltIn$v; var newPromiseCapabilityModule$1 = newPromiseCapability$2; var perform$1 = perform$4; var iterate$B = iterate$I; @@ -6155,7 +6369,7 @@ var PROMISE_ANY_ERROR = 'No one promise resolved'; // `Promise.any` method // https://tc39.es/ecma262/#sec-promise.any -$$2D({ target: 'Promise', stat: true }, { +$$2H({ target: 'Promise', stat: true }, { any: function any(iterable) { var C = this; var capability = newPromiseCapabilityModule$1.f(C); @@ -6180,34 +6394,34 @@ $$2D({ target: 'Promise', stat: true }, { if (alreadyRejected || alreadyResolved) return; alreadyRejected = true; errors[index] = error; - --remaining || reject(new (getBuiltIn$l('AggregateError'))(errors, PROMISE_ANY_ERROR)); + --remaining || reject(new (getBuiltIn$m('AggregateError'))(errors, PROMISE_ANY_ERROR)); }); }); - --remaining || reject(new (getBuiltIn$l('AggregateError'))(errors, PROMISE_ANY_ERROR)); + --remaining || reject(new (getBuiltIn$m('AggregateError'))(errors, PROMISE_ANY_ERROR)); }); if (result.error) reject(result.value); return capability.promise; } }); -var $$2C = _export; +var $$2G = _export; var NativePromise = nativePromiseConstructor; -var fails$k = fails$X; -var getBuiltIn$k = getBuiltIn$t; -var speciesConstructor$f = speciesConstructor$i; +var fails$p = fails$11; +var getBuiltIn$l = getBuiltIn$v; +var speciesConstructor$c = speciesConstructor$f; var promiseResolve = promiseResolve$2; var redefine$5 = redefine$g.exports; // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829 -var NON_GENERIC = !!NativePromise && fails$k(function () { +var NON_GENERIC = !!NativePromise && fails$p(function () { NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ }); }); // `Promise.prototype.finally` method // https://tc39.es/ecma262/#sec-promise.prototype.finally -$$2C({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { +$$2G({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { 'finally': function (onFinally) { - var C = speciesConstructor$f(this, getBuiltIn$k('Promise')); + var C = speciesConstructor$c(this, getBuiltIn$l('Promise')); var isFunction = typeof onFinally == 'function'; return this.then( isFunction ? function (x) { @@ -6222,66 +6436,66 @@ $$2C({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then` if (typeof NativePromise == 'function') { - var method = getBuiltIn$k('Promise').prototype['finally']; + var method = getBuiltIn$l('Promise').prototype['finally']; if (NativePromise.prototype['finally'] !== method) { redefine$5(NativePromise.prototype, 'finally', method, { unsafe: true }); } } -var $$2B = _export; -var getBuiltIn$j = getBuiltIn$t; +var $$2F = _export; +var getBuiltIn$k = getBuiltIn$v; var aFunction$F = aFunction$S; -var anObject$1l = anObject$1z; -var fails$j = fails$X; +var anObject$1m = anObject$1B; +var fails$o = fails$11; -var nativeApply = getBuiltIn$j('Reflect', 'apply'); +var nativeApply = getBuiltIn$k('Reflect', 'apply'); var functionApply = Function.apply; // MS Edge argumentsList argument is optional -var OPTIONAL_ARGUMENTS_LIST = !fails$j(function () { +var OPTIONAL_ARGUMENTS_LIST = !fails$o(function () { nativeApply(function () { /* empty */ }); }); // `Reflect.apply` method // https://tc39.es/ecma262/#sec-reflect.apply -$$2B({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, { +$$2F({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, { apply: function apply(target, thisArgument, argumentsList) { aFunction$F(target); - anObject$1l(argumentsList); + anObject$1m(argumentsList); return nativeApply ? nativeApply(target, thisArgument, argumentsList) : functionApply.call(target, thisArgument, argumentsList); } }); -var $$2A = _export; -var getBuiltIn$i = getBuiltIn$t; +var $$2E = _export; +var getBuiltIn$j = getBuiltIn$v; var aFunction$E = aFunction$S; -var anObject$1k = anObject$1z; -var isObject$b = isObject$B; -var create$6 = objectCreate; -var bind$g = functionBind; -var fails$i = fails$X; +var anObject$1l = anObject$1B; +var isObject$b = isObject$C; +var create$8 = objectCreate$1; +var bind$h = functionBind; +var fails$n = fails$11; -var nativeConstruct = getBuiltIn$i('Reflect', 'construct'); +var nativeConstruct = getBuiltIn$j('Reflect', 'construct'); // `Reflect.construct` method // https://tc39.es/ecma262/#sec-reflect.construct // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it -var NEW_TARGET_BUG = fails$i(function () { +var NEW_TARGET_BUG = fails$n(function () { function F() { /* empty */ } return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F); }); -var ARGS_BUG = !fails$i(function () { +var ARGS_BUG = !fails$n(function () { nativeConstruct(function () { /* empty */ }); }); var FORCED$9 = NEW_TARGET_BUG || ARGS_BUG; -$$2A({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, { +$$2E({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, { construct: function construct(Target, args /* , newTarget */) { aFunction$E(Target); - anObject$1k(args); + anObject$1l(args); var newTarget = arguments.length < 3 ? Target : aFunction$E(arguments[2]); if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget); if (Target == newTarget) { @@ -6296,36 +6510,36 @@ $$2A({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, { // w/o altered newTarget, lot of arguments case var $args = [null]; $args.push.apply($args, args); - return new (bind$g.apply(Target, $args))(); + return new (bind$h.apply(Target, $args))(); } // with altered newTarget, not support built-in constructors var proto = newTarget.prototype; - var instance = create$6(isObject$b(proto) ? proto : Object.prototype); + var instance = create$8(isObject$b(proto) ? proto : Object.prototype); var result = Function.apply.call(Target, instance, args); return isObject$b(result) ? result : instance; } }); -var $$2z = _export; -var DESCRIPTORS$a = descriptors; -var anObject$1j = anObject$1z; -var toPrimitive$1 = toPrimitive$b; +var $$2D = _export; +var DESCRIPTORS$b = descriptors; +var anObject$1k = anObject$1B; +var toPropertyKey$2 = toPropertyKey$9; var definePropertyModule$2 = objectDefineProperty; -var fails$h = fails$X; +var fails$m = fails$11; // MS Edge has broken Reflect.defineProperty - throwing instead of returning false -var ERROR_INSTEAD_OF_FALSE = fails$h(function () { +var ERROR_INSTEAD_OF_FALSE = fails$m(function () { // eslint-disable-next-line es/no-reflect -- required for testing Reflect.defineProperty(definePropertyModule$2.f({}, 1, { value: 1 }), 1, { value: 2 }); }); // `Reflect.defineProperty` method // https://tc39.es/ecma262/#sec-reflect.defineproperty -$$2z({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS$a }, { +$$2D({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS$b }, { defineProperty: function defineProperty(target, propertyKey, attributes) { - anObject$1j(target); - var key = toPrimitive$1(propertyKey, true); - anObject$1j(attributes); + anObject$1k(target); + var key = toPropertyKey$2(propertyKey); + anObject$1k(attributes); try { definePropertyModule$2.f(target, key, attributes); return true; @@ -6335,23 +6549,29 @@ $$2z({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DES } }); -var $$2y = _export; -var anObject$1i = anObject$1z; +var $$2C = _export; +var anObject$1j = anObject$1B; var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; // `Reflect.deleteProperty` method // https://tc39.es/ecma262/#sec-reflect.deleteproperty -$$2y({ target: 'Reflect', stat: true }, { +$$2C({ target: 'Reflect', stat: true }, { deleteProperty: function deleteProperty(target, propertyKey) { - var descriptor = getOwnPropertyDescriptor$2(anObject$1i(target), propertyKey); + var descriptor = getOwnPropertyDescriptor$2(anObject$1j(target), propertyKey); return descriptor && !descriptor.configurable ? false : delete target[propertyKey]; } }); -var $$2x = _export; -var isObject$a = isObject$B; -var anObject$1h = anObject$1z; var has$7 = has$n; + +var isDataDescriptor$2 = function (descriptor) { + return descriptor !== undefined && (has$7(descriptor, 'value') || has$7(descriptor, 'writable')); +}; + +var $$2B = _export; +var isObject$a = isObject$C; +var anObject$1i = anObject$1B; +var isDataDescriptor$1 = isDataDescriptor$2; var getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor; var getPrototypeOf$5 = objectGetPrototypeOf$1; @@ -6360,91 +6580,90 @@ var getPrototypeOf$5 = objectGetPrototypeOf$1; function get(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var descriptor, prototype; - if (anObject$1h(target) === receiver) return target[propertyKey]; - if (descriptor = getOwnPropertyDescriptorModule$3.f(target, propertyKey)) return has$7(descriptor, 'value') + if (anObject$1i(target) === receiver) return target[propertyKey]; + descriptor = getOwnPropertyDescriptorModule$3.f(target, propertyKey); + if (descriptor) return isDataDescriptor$1(descriptor) ? descriptor.value - : descriptor.get === undefined - ? undefined - : descriptor.get.call(receiver); + : descriptor.get === undefined ? undefined : descriptor.get.call(receiver); if (isObject$a(prototype = getPrototypeOf$5(target))) return get(prototype, propertyKey, receiver); } -$$2x({ target: 'Reflect', stat: true }, { +$$2B({ target: 'Reflect', stat: true }, { get: get }); -var $$2w = _export; -var DESCRIPTORS$9 = descriptors; -var anObject$1g = anObject$1z; +var $$2A = _export; +var DESCRIPTORS$a = descriptors; +var anObject$1h = anObject$1B; var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor; // `Reflect.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-reflect.getownpropertydescriptor -$$2w({ target: 'Reflect', stat: true, sham: !DESCRIPTORS$9 }, { +$$2A({ target: 'Reflect', stat: true, sham: !DESCRIPTORS$a }, { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { - return getOwnPropertyDescriptorModule$2.f(anObject$1g(target), propertyKey); + return getOwnPropertyDescriptorModule$2.f(anObject$1h(target), propertyKey); } }); -var $$2v = _export; -var anObject$1f = anObject$1z; +var $$2z = _export; +var anObject$1g = anObject$1B; var objectGetPrototypeOf = objectGetPrototypeOf$1; var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; // `Reflect.getPrototypeOf` method // https://tc39.es/ecma262/#sec-reflect.getprototypeof -$$2v({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, { +$$2z({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, { getPrototypeOf: function getPrototypeOf(target) { - return objectGetPrototypeOf(anObject$1f(target)); + return objectGetPrototypeOf(anObject$1g(target)); } }); -var $$2u = _export; +var $$2y = _export; // `Reflect.has` method // https://tc39.es/ecma262/#sec-reflect.has -$$2u({ target: 'Reflect', stat: true }, { +$$2y({ target: 'Reflect', stat: true }, { has: function has(target, propertyKey) { return propertyKey in target; } }); -var $$2t = _export; -var anObject$1e = anObject$1z; +var $$2x = _export; +var anObject$1f = anObject$1B; // eslint-disable-next-line es/no-object-isextensible -- safe var objectIsExtensible = Object.isExtensible; // `Reflect.isExtensible` method // https://tc39.es/ecma262/#sec-reflect.isextensible -$$2t({ target: 'Reflect', stat: true }, { +$$2x({ target: 'Reflect', stat: true }, { isExtensible: function isExtensible(target) { - anObject$1e(target); + anObject$1f(target); return objectIsExtensible ? objectIsExtensible(target) : true; } }); -var $$2s = _export; +var $$2w = _export; var ownKeys = ownKeys$3; // `Reflect.ownKeys` method // https://tc39.es/ecma262/#sec-reflect.ownkeys -$$2s({ target: 'Reflect', stat: true }, { +$$2w({ target: 'Reflect', stat: true }, { ownKeys: ownKeys }); -var $$2r = _export; -var getBuiltIn$h = getBuiltIn$t; -var anObject$1d = anObject$1z; +var $$2v = _export; +var getBuiltIn$i = getBuiltIn$v; +var anObject$1e = anObject$1B; var FREEZING = freezing; // `Reflect.preventExtensions` method // https://tc39.es/ecma262/#sec-reflect.preventextensions -$$2r({ target: 'Reflect', stat: true, sham: !FREEZING }, { +$$2v({ target: 'Reflect', stat: true, sham: !FREEZING }, { preventExtensions: function preventExtensions(target) { - anObject$1d(target); + anObject$1e(target); try { - var objectPreventExtensions = getBuiltIn$h('Object', 'preventExtensions'); + var objectPreventExtensions = getBuiltIn$i('Object', 'preventExtensions'); if (objectPreventExtensions) objectPreventExtensions(target); return true; } catch (error) { @@ -6453,11 +6672,11 @@ $$2r({ target: 'Reflect', stat: true, sham: !FREEZING }, { } }); -var $$2q = _export; -var anObject$1c = anObject$1z; -var isObject$9 = isObject$B; -var has$6 = has$n; -var fails$g = fails$X; +var $$2u = _export; +var anObject$1d = anObject$1B; +var isObject$9 = isObject$C; +var isDataDescriptor = isDataDescriptor$2; +var fails$l = fails$11; var definePropertyModule$1 = objectDefineProperty; var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor; var getPrototypeOf$4 = objectGetPrototypeOf$1; @@ -6467,49 +6686,51 @@ var createPropertyDescriptor$2 = createPropertyDescriptor$9; // https://tc39.es/ecma262/#sec-reflect.set function set(target, propertyKey, V /* , receiver */) { var receiver = arguments.length < 4 ? target : arguments[3]; - var ownDescriptor = getOwnPropertyDescriptorModule$1.f(anObject$1c(target), propertyKey); - var existingDescriptor, prototype; + var ownDescriptor = getOwnPropertyDescriptorModule$1.f(anObject$1d(target), propertyKey); + var existingDescriptor, prototype, setter; if (!ownDescriptor) { if (isObject$9(prototype = getPrototypeOf$4(target))) { return set(prototype, propertyKey, V, receiver); } ownDescriptor = createPropertyDescriptor$2(0); } - if (has$6(ownDescriptor, 'value')) { + if (isDataDescriptor(ownDescriptor)) { if (ownDescriptor.writable === false || !isObject$9(receiver)) return false; if (existingDescriptor = getOwnPropertyDescriptorModule$1.f(receiver, propertyKey)) { if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; existingDescriptor.value = V; definePropertyModule$1.f(receiver, propertyKey, existingDescriptor); } else definePropertyModule$1.f(receiver, propertyKey, createPropertyDescriptor$2(0, V)); - return true; - } - return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true); + } else { + setter = ownDescriptor.set; + if (setter === undefined) return false; + setter.call(receiver, V); + } return true; } // MS Edge 17-18 Reflect.set allows setting the property to object // with non-writable property on the prototype -var MS_EDGE_BUG = fails$g(function () { +var MS_EDGE_BUG = fails$l(function () { var Constructor = function () { /* empty */ }; var object = definePropertyModule$1.f(new Constructor(), 'a', { configurable: true }); // eslint-disable-next-line es/no-reflect -- required for testing return Reflect.set(Constructor.prototype, 'a', 1, object) !== false; }); -$$2q({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, { +$$2u({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, { set: set }); -var $$2p = _export; -var anObject$1b = anObject$1z; +var $$2t = _export; +var anObject$1c = anObject$1B; var aPossiblePrototype = aPossiblePrototype$2; var objectSetPrototypeOf = objectSetPrototypeOf$1; // `Reflect.setPrototypeOf` method // https://tc39.es/ecma262/#sec-reflect.setprototypeof -if (objectSetPrototypeOf) $$2p({ target: 'Reflect', stat: true }, { +if (objectSetPrototypeOf) $$2t({ target: 'Reflect', stat: true }, { setPrototypeOf: function setPrototypeOf(target, proto) { - anObject$1b(target); + anObject$1c(target); aPossiblePrototype(proto); try { objectSetPrototypeOf(target, proto); @@ -6520,21 +6741,21 @@ if (objectSetPrototypeOf) $$2p({ target: 'Reflect', stat: true }, { } }); -var $$2o = _export; -var global$h = global$M; +var $$2s = _export; +var global$k = global$Q; var setToStringTag$2 = setToStringTag$b; -$$2o({ global: true }, { Reflect: {} }); +$$2s({ global: true }, { Reflect: {} }); // Reflect[@@toStringTag] property // https://tc39.es/ecma262/#sec-reflect-@@tostringtag -setToStringTag$2(global$h.Reflect, 'Reflect', true); +setToStringTag$2(global$k.Reflect, 'Reflect', true); -var isObject$8 = isObject$B; +var isObject$8 = isObject$C; var classof$4 = classofRaw$1; -var wellKnownSymbol$g = wellKnownSymbol$C; +var wellKnownSymbol$i = wellKnownSymbol$F; -var MATCH$2 = wellKnownSymbol$g('match'); +var MATCH$2 = wellKnownSymbol$i('match'); // `IsRegExp` abstract operation // https://tc39.es/ecma262/#sec-isregexp @@ -6543,12 +6764,12 @@ var isRegexp = function (it) { return isObject$8(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp'); }; -var anObject$1a = anObject$1z; +var anObject$1b = anObject$1B; // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags var regexpFlags$1 = function () { - var that = anObject$1a(this); + var that = anObject$1b(this); var result = ''; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; @@ -6561,121 +6782,271 @@ var regexpFlags$1 = function () { var regexpStickyHelpers = {}; -var fails$f = fails$X; +var fails$k = fails$11; +var global$j = global$Q; -// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError, -// so we use an intermediate function. -function RE(s, f) { - return RegExp(s, f); -} +// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError +var $RegExp$2 = global$j.RegExp; -regexpStickyHelpers.UNSUPPORTED_Y = fails$f(function () { - // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError - var re = RE('a', 'y'); +regexpStickyHelpers.UNSUPPORTED_Y = fails$k(function () { + var re = $RegExp$2('a', 'y'); re.lastIndex = 2; return re.exec('abcd') != null; }); -regexpStickyHelpers.BROKEN_CARET = fails$f(function () { +regexpStickyHelpers.BROKEN_CARET = fails$k(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 - var re = RE('^r', 'gy'); + var re = $RegExp$2('^r', 'gy'); re.lastIndex = 2; return re.exec('str') != null; }); -var DESCRIPTORS$8 = descriptors; -var global$g = global$M; +var fails$j = fails$11; +var global$i = global$Q; + +// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError +var $RegExp$1 = global$i.RegExp; + +var regexpUnsupportedDotAll = fails$j(function () { + var re = $RegExp$1('.', 's'); + return !(re.dotAll && re.exec('\n') && re.flags === 's'); +}); + +var fails$i = fails$11; +var global$h = global$Q; + +// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError +var $RegExp = global$h.RegExp; + +var regexpUnsupportedNcg = fails$i(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || + 'b'.replace(re, '$c') !== 'bc'; +}); + +var DESCRIPTORS$9 = descriptors; +var global$g = global$Q; var isForced = isForced_1; var inheritIfRequired$1 = inheritIfRequired$4; -var defineProperty$4 = objectDefineProperty.f; +var createNonEnumerableProperty$b = createNonEnumerableProperty$m; +var defineProperty$5 = objectDefineProperty.f; var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var isRegExp$4 = isRegexp; +var toString$h = toString$s; var getFlags = regexpFlags$1; var stickyHelpers$2 = regexpStickyHelpers; var redefine$4 = redefine$g.exports; -var fails$e = fails$X; +var fails$h = fails$11; +var has$6 = has$n; var enforceInternalState = internalState.enforce; var setSpecies$2 = setSpecies$7; -var wellKnownSymbol$f = wellKnownSymbol$C; +var wellKnownSymbol$h = wellKnownSymbol$F; +var UNSUPPORTED_DOT_ALL$2 = regexpUnsupportedDotAll; +var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg; -var MATCH$1 = wellKnownSymbol$f('match'); +var MATCH$1 = wellKnownSymbol$h('match'); var NativeRegExp = global$g.RegExp; -var RegExpPrototype$5 = NativeRegExp.prototype; +var RegExpPrototype$6 = NativeRegExp.prototype; +// TODO: Use only propper RegExpIdentifierName +var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/; var re1 = /a/g; var re2 = /a/g; // "new" should create a new object, old webkit bug var CORRECT_NEW = new NativeRegExp(re1) !== re1; -var UNSUPPORTED_Y$4 = stickyHelpers$2.UNSUPPORTED_Y; +var UNSUPPORTED_Y$3 = stickyHelpers$2.UNSUPPORTED_Y; + +var BASE_FORCED = DESCRIPTORS$9 && + (!CORRECT_NEW || UNSUPPORTED_Y$3 || UNSUPPORTED_DOT_ALL$2 || UNSUPPORTED_NCG$1 || fails$h(function () { + re2[MATCH$1] = false; + // RegExp constructor can alter flags and IsRegExp works correct with @@match + return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i'; + })); + +var handleDotAll = function (string) { + var length = string.length; + var index = 0; + var result = ''; + var brackets = false; + var chr; + for (; index <= length; index++) { + chr = string.charAt(index); + if (chr === '\\') { + result += chr + string.charAt(++index); + continue; + } + if (!brackets && chr === '.') { + result += '[\\s\\S]'; + } else { + if (chr === '[') { + brackets = true; + } else if (chr === ']') { + brackets = false; + } result += chr; + } + } return result; +}; -var FORCED$8 = DESCRIPTORS$8 && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y$4 || fails$e(function () { - re2[MATCH$1] = false; - // RegExp constructor can alter flags and IsRegExp works correct with @@match - return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i'; -}))); +var handleNCG = function (string) { + var length = string.length; + var index = 0; + var result = ''; + var named = []; + var names = {}; + var brackets = false; + var ncg = false; + var groupid = 0; + var groupname = ''; + var chr; + for (; index <= length; index++) { + chr = string.charAt(index); + if (chr === '\\') { + chr = chr + string.charAt(++index); + } else if (chr === ']') { + brackets = false; + } else if (!brackets) switch (true) { + case chr === '[': + brackets = true; + break; + case chr === '(': + if (IS_NCG.test(string.slice(index + 1))) { + index += 2; + ncg = true; + } + result += chr; + groupid++; + continue; + case chr === '>' && ncg: + if (groupname === '' || has$6(names, groupname)) { + throw new SyntaxError('Invalid capture group name'); + } + names[groupname] = true; + named.push([groupname, groupid]); + ncg = false; + groupname = ''; + continue; + } + if (ncg) groupname += chr; + else result += chr; + } return [result, named]; +}; // `RegExp` constructor // https://tc39.es/ecma262/#sec-regexp-constructor -if (FORCED$8) { +if (isForced('RegExp', BASE_FORCED)) { var RegExpWrapper = function RegExp(pattern, flags) { var thisIsRegExp = this instanceof RegExpWrapper; var patternIsRegExp = isRegExp$4(pattern); var flagsAreUndefined = flags === undefined; - var sticky; + var groups = []; + var rawPattern = pattern; + var rawFlags, dotAll, sticky, handled, result, state; - if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) { + if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) { return pattern; } - if (CORRECT_NEW) { - if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source; - } else if (pattern instanceof RegExpWrapper) { - if (flagsAreUndefined) flags = getFlags.call(pattern); + if (patternIsRegExp || pattern instanceof RegExpWrapper) { pattern = pattern.source; + if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags.call(rawPattern); + } + + pattern = pattern === undefined ? '' : toString$h(pattern); + flags = flags === undefined ? '' : toString$h(flags); + rawPattern = pattern; + + if (UNSUPPORTED_DOT_ALL$2 && 'dotAll' in re1) { + dotAll = !!flags && flags.indexOf('s') > -1; + if (dotAll) flags = flags.replace(/s/g, ''); } - if (UNSUPPORTED_Y$4) { + rawFlags = flags; + + if (UNSUPPORTED_Y$3 && 'sticky' in re1) { sticky = !!flags && flags.indexOf('y') > -1; if (sticky) flags = flags.replace(/y/g, ''); } - var result = inheritIfRequired$1( - CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags), - thisIsRegExp ? this : RegExpPrototype$5, - RegExpWrapper - ); + if (UNSUPPORTED_NCG$1) { + handled = handleNCG(pattern); + pattern = handled[0]; + groups = handled[1]; + } + + result = inheritIfRequired$1(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$6, RegExpWrapper); - if (UNSUPPORTED_Y$4 && sticky) { - var state = enforceInternalState(result); - state.sticky = true; + if (dotAll || sticky || groups.length) { + state = enforceInternalState(result); + if (dotAll) { + state.dotAll = true; + state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); + } + if (sticky) state.sticky = true; + if (groups.length) state.groups = groups; } + if (pattern !== rawPattern) try { + // fails in old engines, but we have no alternatives for unsupported regex syntax + createNonEnumerableProperty$b(result, 'source', rawPattern === '' ? '(?:)' : rawPattern); + } catch (error) { /* empty */ } + return result; }; + var proxy = function (key) { - key in RegExpWrapper || defineProperty$4(RegExpWrapper, key, { + key in RegExpWrapper || defineProperty$5(RegExpWrapper, key, { configurable: true, get: function () { return NativeRegExp[key]; }, set: function (it) { NativeRegExp[key] = it; } }); }; - var keys = getOwnPropertyNames$1(NativeRegExp); - var index = 0; - while (keys.length > index) proxy(keys[index++]); - RegExpPrototype$5.constructor = RegExpWrapper; - RegExpWrapper.prototype = RegExpPrototype$5; + + for (var keys = getOwnPropertyNames$1(NativeRegExp), index = 0; keys.length > index;) { + proxy(keys[index++]); + } + + RegExpPrototype$6.constructor = RegExpWrapper; + RegExpWrapper.prototype = RegExpPrototype$6; redefine$4(global$g, 'RegExp', RegExpWrapper); } // https://tc39.es/ecma262/#sec-get-regexp-@@species setSpecies$2('RegExp'); -/* eslint-disable regexp/no-assertion-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ +var DESCRIPTORS$8 = descriptors; +var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll; +var defineProperty$4 = objectDefineProperty.f; +var getInternalState$d = internalState.get; +var RegExpPrototype$5 = RegExp.prototype; + +// `RegExp.prototype.dotAll` getter +// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall +if (DESCRIPTORS$8 && UNSUPPORTED_DOT_ALL$1) { + defineProperty$4(RegExpPrototype$5, 'dotAll', { + configurable: true, + get: function () { + if (this === RegExpPrototype$5) return undefined; + // We can't use InternalStateModule.getterFor because + // we don't add metadata for regexps created by a literal. + if (this instanceof RegExp) { + return !!getInternalState$d(this).dotAll; + } + throw TypeError('Incompatible receiver, RegExp required'); + } + }); +} + +/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ +var toString$g = toString$s; var regexpFlags = regexpFlags$1; var stickyHelpers$1 = regexpStickyHelpers; var shared$2 = shared$7.exports; +var create$7 = objectCreate$1; +var getInternalState$c = internalState.get; +var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; +var UNSUPPORTED_NCG = regexpUnsupportedNcg; var nativeExec = RegExp.prototype.exec; var nativeReplace = shared$2('native-string-replace', String.prototype.replace); @@ -6690,18 +7061,31 @@ var UPDATES_LAST_INDEX_WRONG = (function () { return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); -var UNSUPPORTED_Y$3 = stickyHelpers$1.UNSUPPORTED_Y || stickyHelpers$1.BROKEN_CARET; +var UNSUPPORTED_Y$2 = stickyHelpers$1.UNSUPPORTED_Y || stickyHelpers$1.BROKEN_CARET; // nonparticipating capturing group, copied from es5-shim's String#split patch. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; -var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$3; +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; if (PATCH) { - patchedExec = function exec(str) { + // eslint-disable-next-line max-statements -- TODO + patchedExec = function exec(string) { var re = this; - var lastIndex, reCopy, match, i; - var sticky = UNSUPPORTED_Y$3 && re.sticky; + var state = getInternalState$c(re); + var str = toString$g(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i, object, group; + + if (raw) { + raw.lastIndex = re.lastIndex; + result = patchedExec.call(raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + + var groups = state.groups; + var sticky = UNSUPPORTED_Y$2 && re.sticky; var flags = regexpFlags.call(re); var source = re.source; var charsAdded = 0; @@ -6713,9 +7097,9 @@ if (PATCH) { flags += 'g'; } - strCopy = String(str).slice(re.lastIndex); + strCopy = str.slice(re.lastIndex); // Support anchored sticky behavior. - if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) { + if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) { source = '(?: ' + source + ')'; strCopy = ' ' + strCopy; charsAdded++; @@ -6752,53 +7136,63 @@ if (PATCH) { }); } + if (match && groups) { + match.groups = object = create$7(null); + for (i = 0; i < groups.length; i++) { + group = groups[i]; + object[group[0]] = match[group[1]]; + } + } + return match; }; } var regexpExec$3 = patchedExec; -var $$2n = _export; +var $$2r = _export; var exec = regexpExec$3; // `RegExp.prototype.exec` method // https://tc39.es/ecma262/#sec-regexp.prototype.exec -$$2n({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { +$$2r({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { exec: exec }); var DESCRIPTORS$7 = descriptors; var objectDefinePropertyModule = objectDefineProperty; var regExpFlags = regexpFlags$1; -var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y; +var fails$g = fails$11; + +var FORCED$8 = DESCRIPTORS$7 && fails$g(function () { + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + return Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call({ dotAll: true, sticky: true }) !== 'sy'; +}); // `RegExp.prototype.flags` getter // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -// eslint-disable-next-line es/no-regexp-prototype-flags -- required for testing -if (DESCRIPTORS$7 && (/./g.flags != 'g' || UNSUPPORTED_Y$2)) { - objectDefinePropertyModule.f(RegExp.prototype, 'flags', { - configurable: true, - get: regExpFlags - }); -} +if (FORCED$8) objectDefinePropertyModule.f(RegExp.prototype, 'flags', { + configurable: true, + get: regExpFlags +}); var DESCRIPTORS$6 = descriptors; var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y; var defineProperty$3 = objectDefineProperty.f; -var getInternalState$a = internalState.get; +var getInternalState$b = internalState.get; var RegExpPrototype$4 = RegExp.prototype; // `RegExp.prototype.sticky` getter // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky if (DESCRIPTORS$6 && UNSUPPORTED_Y$1) { - defineProperty$3(RegExp.prototype, 'sticky', { + defineProperty$3(RegExpPrototype$4, 'sticky', { configurable: true, get: function () { if (this === RegExpPrototype$4) return undefined; // We can't use InternalStateModule.getterFor because // we don't add metadata for regexps created by a literal. if (this instanceof RegExp) { - return !!getInternalState$a(this).sticky; + return !!getInternalState$b(this).sticky; } throw TypeError('Incompatible receiver, RegExp required'); } @@ -6807,8 +7201,8 @@ if (DESCRIPTORS$6 && UNSUPPORTED_Y$1) { // TODO: Remove from `core-js@4` since it's moved to entry points -var $$2m = _export; -var isObject$7 = isObject$B; +var $$2q = _export; +var isObject$7 = isObject$C; var DELEGATES_TO_EXEC = function () { var execCalled = false; @@ -6824,7 +7218,7 @@ var nativeTest = /./.test; // `RegExp.prototype.test` method // https://tc39.es/ecma262/#sec-regexp.prototype.test -$$2m({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { +$$2q({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { test: function (str) { if (typeof this.exec !== 'function') { return nativeTest.call(this, str); @@ -6838,15 +7232,16 @@ $$2m({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { }); var redefine$3 = redefine$g.exports; -var anObject$19 = anObject$1z; -var fails$d = fails$X; +var anObject$1a = anObject$1B; +var $toString$2 = toString$s; +var fails$f = fails$11; var flags = regexpFlags$1; var TO_STRING = 'toString'; var RegExpPrototype$3 = RegExp.prototype; var nativeToString = RegExpPrototype$3[TO_STRING]; -var NOT_GENERIC = fails$d(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); +var NOT_GENERIC = fails$f(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); // FF44- RegExp#toString has a wrong name var INCORRECT_NAME = nativeToString.name != TO_STRING; @@ -6854,10 +7249,10 @@ var INCORRECT_NAME = nativeToString.name != TO_STRING; // https://tc39.es/ecma262/#sec-regexp.prototype.tostring if (NOT_GENERIC || INCORRECT_NAME) { redefine$3(RegExp.prototype, TO_STRING, function toString() { - var R = anObject$19(this); - var p = String(R.source); + var R = anObject$1a(this); + var p = $toString$2(R.source); var rf = R.flags; - var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$3) ? flags.call(R) : rf); + var f = $toString$2(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$3) ? flags.call(R) : rf); return '/' + p + '/' + f; }, { unsafe: true }); } @@ -6871,14 +7266,15 @@ var es_set = collection$2('Set', function (init) { return function Set() { return init(this, arguments.length ? arguments[0] : undefined); }; }, collectionStrong); -var toInteger$5 = toInteger$f; -var requireObjectCoercible$b = requireObjectCoercible$h; +var toInteger$6 = toInteger$h; +var toString$f = toString$s; +var requireObjectCoercible$c = requireObjectCoercible$i; -// `String.prototype.{ codePointAt, at }` methods implementation +// `String.prototype.codePointAt` methods implementation var createMethod$2 = function (CONVERT_TO_STRING) { return function ($this, pos) { - var S = String(requireObjectCoercible$b($this)); - var position = toInteger$5(pos); + var S = toString$f(requireObjectCoercible$c($this)); + var position = toInteger$6(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; @@ -6899,12 +7295,12 @@ var stringMultibyte = { charAt: createMethod$2(true) }; -var $$2l = _export; +var $$2p = _export; var codeAt$2 = stringMultibyte.codeAt; // `String.prototype.codePointAt` method // https://tc39.es/ecma262/#sec-string.prototype.codepointat -$$2l({ target: 'String', proto: true }, { +$$2p({ target: 'String', proto: true }, { codePointAt: function codePointAt(pos) { return codeAt$2(this, pos); } @@ -6918,9 +7314,9 @@ var notARegexp = function (it) { } return it; }; -var wellKnownSymbol$e = wellKnownSymbol$C; +var wellKnownSymbol$g = wellKnownSymbol$F; -var MATCH = wellKnownSymbol$e('match'); +var MATCH = wellKnownSymbol$g('match'); var correctIsRegexpLogic = function (METHOD_NAME) { var regexp = /./; @@ -6934,16 +7330,17 @@ var correctIsRegexpLogic = function (METHOD_NAME) { } return false; }; -var $$2k = _export; +var $$2o = _export; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; -var toLength$h = toLength$B; +var toLength$i = toLength$C; +var toString$e = toString$s; var notARegExp$2 = notARegexp; -var requireObjectCoercible$a = requireObjectCoercible$h; +var requireObjectCoercible$b = requireObjectCoercible$i; var correctIsRegExpLogic$2 = correctIsRegexpLogic; // eslint-disable-next-line es/no-string-prototype-endswith -- safe var $endsWith = ''.endsWith; -var min$4 = Math.min; +var min$5 = Math.min; var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$2('endsWith'); // https://github.com/zloirock/core-js/pull/702 @@ -6954,24 +7351,24 @@ var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () { // `String.prototype.endsWith` method // https://tc39.es/ecma262/#sec-string.prototype.endswith -$$2k({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, { +$$2o({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, { endsWith: function endsWith(searchString /* , endPosition = @length */) { - var that = String(requireObjectCoercible$a(this)); + var that = toString$e(requireObjectCoercible$b(this)); notARegExp$2(searchString); var endPosition = arguments.length > 1 ? arguments[1] : undefined; - var len = toLength$h(that.length); - var end = endPosition === undefined ? len : min$4(toLength$h(endPosition), len); - var search = String(searchString); + var len = toLength$i(that.length); + var end = endPosition === undefined ? len : min$5(toLength$i(endPosition), len); + var search = toString$e(searchString); return $endsWith ? $endsWith.call(that, search, end) : that.slice(end - search.length, end) === search; } }); -var $$2j = _export; +var $$2n = _export; var toAbsoluteIndex$1 = toAbsoluteIndex$8; -var fromCharCode = String.fromCharCode; +var fromCharCode$1 = String.fromCharCode; // eslint-disable-next-line es/no-string-fromcodepoint -- required for testing var $fromCodePoint = String.fromCodePoint; @@ -6980,7 +7377,7 @@ var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1; // `String.fromCodePoint` method // https://tc39.es/ecma262/#sec-string.fromcodepoint -$$2j({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, { +$$2n({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, { // eslint-disable-next-line no-unused-vars -- required for `.length` fromCodePoint: function fromCodePoint(x) { var elements = []; @@ -6991,118 +7388,80 @@ $$2j({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, { code = +arguments[i++]; if (toAbsoluteIndex$1(code, 0x10FFFF) !== code) throw RangeError(code + ' is not a valid code point'); elements.push(code < 0x10000 - ? fromCharCode(code) - : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00) + ? fromCharCode$1(code) + : fromCharCode$1(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00) ); } return elements.join(''); } }); -var $$2i = _export; +var $$2m = _export; var notARegExp$1 = notARegexp; -var requireObjectCoercible$9 = requireObjectCoercible$h; +var requireObjectCoercible$a = requireObjectCoercible$i; +var toString$d = toString$s; var correctIsRegExpLogic$1 = correctIsRegexpLogic; // `String.prototype.includes` method // https://tc39.es/ecma262/#sec-string.prototype.includes -$$2i({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, { +$$2m({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, { includes: function includes(searchString /* , position = 0 */) { - return !!~String(requireObjectCoercible$9(this)) - .indexOf(notARegExp$1(searchString), arguments.length > 1 ? arguments[1] : undefined); + return !!~toString$d(requireObjectCoercible$a(this)) + .indexOf(toString$d(notARegExp$1(searchString)), arguments.length > 1 ? arguments[1] : undefined); } }); var charAt$3 = stringMultibyte.charAt; -var InternalStateModule$c = internalState; +var toString$c = toString$s; +var InternalStateModule$d = internalState; var defineIterator = defineIterator$3; var STRING_ITERATOR$1 = 'String Iterator'; -var setInternalState$c = InternalStateModule$c.set; -var getInternalState$9 = InternalStateModule$c.getterFor(STRING_ITERATOR$1); +var setInternalState$d = InternalStateModule$d.set; +var getInternalState$a = InternalStateModule$d.getterFor(STRING_ITERATOR$1); // `String.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-string.prototype-@@iterator defineIterator(String, 'String', function (iterated) { - setInternalState$c(this, { + setInternalState$d(this, { type: STRING_ITERATOR$1, - string: String(iterated), + string: toString$c(iterated), index: 0 }); // `%StringIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next -}, function next() { - var state = getInternalState$9(this); - var string = state.string; - var index = state.index; - var point; - if (index >= string.length) return { value: undefined, done: true }; - point = charAt$3(string, index); - state.index += point.length; - return { value: point, done: false }; -}); - -// TODO: Remove from `core-js@4` since it's moved to entry points - -var redefine$2 = redefine$g.exports; -var regexpExec$2 = regexpExec$3; -var fails$c = fails$X; -var wellKnownSymbol$d = wellKnownSymbol$C; -var createNonEnumerableProperty$a = createNonEnumerableProperty$m; - -var SPECIES = wellKnownSymbol$d('species'); -var RegExpPrototype$2 = RegExp.prototype; - -var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$c(function () { - // #replace needs built-in support for named groups. - // #match works fine because it just return the exec results, even if it has - // a "grops" property. - var re = /./; - re.exec = function () { - var result = []; - result.groups = { a: '7' }; - return result; - }; - return ''.replace(re, '$') !== '7'; -}); - -// IE <= 11 replaces $0 with the whole match, as if it was $& -// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 -var REPLACE_KEEPS_$0 = (function () { - // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing - return 'a'.replace(/./, '$0') === '$0'; -})(); - -var REPLACE$1 = wellKnownSymbol$d('replace'); -// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string -var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { - if (/./[REPLACE$1]) { - return /./[REPLACE$1]('a', '$0') === ''; - } - return false; -})(); - -// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec -// Weex JS has frozen built-in prototypes, so use try / catch wrapper -var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$c(function () { - // eslint-disable-next-line regexp/no-empty-group -- required for testing - var re = /(?:)/; - var originalExec = re.exec; - re.exec = function () { return originalExec.apply(this, arguments); }; - var result = 'ab'.split(re); - return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; +}, function next() { + var state = getInternalState$a(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return { value: undefined, done: true }; + point = charAt$3(string, index); + state.index += point.length; + return { value: point, done: false }; }); -var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { - var SYMBOL = wellKnownSymbol$d(KEY); +// TODO: Remove from `core-js@4` since it's moved to entry points + +var redefine$2 = redefine$g.exports; +var regexpExec$2 = regexpExec$3; +var fails$e = fails$11; +var wellKnownSymbol$f = wellKnownSymbol$F; +var createNonEnumerableProperty$a = createNonEnumerableProperty$m; + +var SPECIES = wellKnownSymbol$f('species'); +var RegExpPrototype$2 = RegExp.prototype; + +var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { + var SYMBOL = wellKnownSymbol$f(KEY); - var DELEGATES_TO_SYMBOL = !fails$c(function () { + var DELEGATES_TO_SYMBOL = !fails$e(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$c(function () { + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$e(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; @@ -7129,12 +7488,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { if ( !DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || - (KEY === 'replace' && !( - REPLACE_SUPPORTS_NAMED_GROUPS && - REPLACE_KEEPS_$0 && - !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE - )) || - (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) + FORCED ) { var nativeRegExpMethod = /./[SYMBOL]; var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { @@ -7149,25 +7503,13 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { return { done: true, value: nativeMethod.call(str, regexp, arg2) }; } return { done: false }; - }, { - REPLACE_KEEPS_$0: REPLACE_KEEPS_$0, - REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE }); - var stringMethod = methods[0]; - var regexMethod = methods[1]; - - redefine$2(String.prototype, KEY, stringMethod); - redefine$2(RegExpPrototype$2, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function (string, arg) { return regexMethod.call(string, this, arg); } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function (string) { return regexMethod.call(string, this); } - ); + + redefine$2(String.prototype, KEY, methods[0]); + redefine$2(RegExpPrototype$2, SYMBOL, methods[1]); } - if (sham) createNonEnumerableProperty$a(RegExpPrototype$2[SYMBOL], 'sham', true); + if (SHAM) createNonEnumerableProperty$a(RegExpPrototype$2[SYMBOL], 'sham', true); }; var charAt$2 = stringMultibyte.charAt; @@ -7201,30 +7543,31 @@ var regexpExecAbstract = function (R, S) { }; var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic; -var anObject$18 = anObject$1z; -var toLength$g = toLength$B; -var requireObjectCoercible$8 = requireObjectCoercible$h; +var anObject$19 = anObject$1B; +var toLength$h = toLength$C; +var toString$b = toString$s; +var requireObjectCoercible$9 = requireObjectCoercible$i; var advanceStringIndex$3 = advanceStringIndex$4; var regExpExec$3 = regexpExecAbstract; // @@match logic -fixRegExpWellKnownSymbolLogic$3('match', 1, function (MATCH, nativeMatch, maybeCallNative) { +fixRegExpWellKnownSymbolLogic$3('match', function (MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { - var O = requireObjectCoercible$8(this); + var O = requireObjectCoercible$9(this); var matcher = regexp == undefined ? undefined : regexp[MATCH]; - return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); + return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString$b(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match - function (regexp) { - var res = maybeCallNative(nativeMatch, regexp, this); - if (res.done) return res.value; + function (string) { + var rx = anObject$19(this); + var S = toString$b(string); + var res = maybeCallNative(nativeMatch, rx, S); - var rx = anObject$18(regexp); - var S = String(this); + if (res.done) return res.value; if (!rx.global) return regExpExec$3(rx, S); @@ -7234,9 +7577,9 @@ fixRegExpWellKnownSymbolLogic$3('match', 1, function (MATCH, nativeMatch, maybeC var n = 0; var result; while ((result = regExpExec$3(rx, S)) !== null) { - var matchStr = String(result[0]); + var matchStr = toString$b(result[0]); A[n] = matchStr; - if (matchStr === '') rx.lastIndex = advanceStringIndex$3(S, toLength$g(rx.lastIndex), fullUnicode); + if (matchStr === '') rx.lastIndex = advanceStringIndex$3(S, toLength$h(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; @@ -7245,33 +7588,34 @@ fixRegExpWellKnownSymbolLogic$3('match', 1, function (MATCH, nativeMatch, maybeC }); /* eslint-disable es/no-string-prototype-matchall -- safe */ -var $$2h = _export; +var $$2l = _export; var createIteratorConstructor$5 = createIteratorConstructor$7; -var requireObjectCoercible$7 = requireObjectCoercible$h; -var toLength$f = toLength$B; +var requireObjectCoercible$8 = requireObjectCoercible$i; +var toLength$g = toLength$C; +var toString$a = toString$s; var aFunction$D = aFunction$S; -var anObject$17 = anObject$1z; +var anObject$18 = anObject$1B; var classof$2 = classofRaw$1; var isRegExp$2 = isRegexp; var getRegExpFlags$1 = regexpFlags$1; var createNonEnumerableProperty$9 = createNonEnumerableProperty$m; -var fails$b = fails$X; -var wellKnownSymbol$c = wellKnownSymbol$C; -var speciesConstructor$e = speciesConstructor$i; +var fails$d = fails$11; +var wellKnownSymbol$e = wellKnownSymbol$F; +var speciesConstructor$b = speciesConstructor$f; var advanceStringIndex$2 = advanceStringIndex$4; -var InternalStateModule$b = internalState; +var InternalStateModule$c = internalState; var IS_PURE$D = isPure; -var MATCH_ALL = wellKnownSymbol$c('matchAll'); +var MATCH_ALL = wellKnownSymbol$e('matchAll'); var REGEXP_STRING = 'RegExp String'; var REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator'; -var setInternalState$b = InternalStateModule$b.set; -var getInternalState$8 = InternalStateModule$b.getterFor(REGEXP_STRING_ITERATOR); +var setInternalState$c = InternalStateModule$c.set; +var getInternalState$9 = InternalStateModule$c.getterFor(REGEXP_STRING_ITERATOR); var RegExpPrototype$1 = RegExp.prototype; var regExpBuiltinExec = RegExpPrototype$1.exec; var nativeMatchAll = ''.matchAll; -var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails$b(function () { +var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails$d(function () { 'a'.matchAll(/./); }); @@ -7287,7 +7631,7 @@ var regExpExec$2 = function (R, S) { // eslint-disable-next-line max-len -- ignore var $RegExpStringIterator = createIteratorConstructor$5(function RegExpStringIterator(regexp, string, global, fullUnicode) { - setInternalState$b(this, { + setInternalState$c(this, { type: REGEXP_STRING_ITERATOR, regexp: regexp, string: string, @@ -7296,14 +7640,14 @@ var $RegExpStringIterator = createIteratorConstructor$5(function RegExpStringIte done: false }); }, REGEXP_STRING, function next() { - var state = getInternalState$8(this); + var state = getInternalState$9(this); if (state.done) return { value: undefined, done: true }; var R = state.regexp; var S = state.string; var match = regExpExec$2(R, S); if (match === null) return { value: undefined, done: state.done = true }; if (state.global) { - if (String(match[0]) == '') R.lastIndex = advanceStringIndex$2(S, toLength$f(R.lastIndex), state.unicode); + if (toString$a(match[0]) === '') R.lastIndex = advanceStringIndex$2(S, toLength$g(R.lastIndex), state.unicode); return { value: match, done: false }; } state.done = true; @@ -7311,31 +7655,31 @@ var $RegExpStringIterator = createIteratorConstructor$5(function RegExpStringIte }); var $matchAll = function (string) { - var R = anObject$17(this); - var S = String(string); + var R = anObject$18(this); + var S = toString$a(string); var C, flagsValue, flags, matcher, global, fullUnicode; - C = speciesConstructor$e(R, RegExp); + C = speciesConstructor$b(R, RegExp); flagsValue = R.flags; if (flagsValue === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1)) { flagsValue = getRegExpFlags$1.call(R); } - flags = flagsValue === undefined ? '' : String(flagsValue); + flags = flagsValue === undefined ? '' : toString$a(flagsValue); matcher = new C(C === RegExp ? R.source : R, flags); global = !!~flags.indexOf('g'); fullUnicode = !!~flags.indexOf('u'); - matcher.lastIndex = toLength$f(R.lastIndex); + matcher.lastIndex = toLength$g(R.lastIndex); return new $RegExpStringIterator(matcher, S, global, fullUnicode); }; // `String.prototype.matchAll` method // https://tc39.es/ecma262/#sec-string.prototype.matchall -$$2h({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, { +$$2l({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, { matchAll: function matchAll(regexp) { - var O = requireObjectCoercible$7(this); + var O = requireObjectCoercible$8(this); var flags, S, matcher, rx; if (regexp != null) { if (isRegExp$2(regexp)) { - flags = String(requireObjectCoercible$7('flags' in RegExpPrototype$1 + flags = toString$a(requireObjectCoercible$8('flags' in RegExpPrototype$1 ? regexp.flags : getRegExpFlags$1.call(regexp) )); @@ -7346,7 +7690,7 @@ $$2h({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, { if (matcher === undefined && IS_PURE$D && classof$2(regexp) == 'RegExp') matcher = $matchAll; if (matcher != null) return aFunction$D(matcher).call(regexp, O); } else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments); - S = String(O); + S = toString$a(O); rx = new RegExp(regexp, 'g'); return rx[MATCH_ALL](S); } @@ -7360,60 +7704,61 @@ var userAgent$1 = engineUserAgent; // eslint-disable-next-line unicorn/no-unsafe-regex -- safe var stringPadWebkitBug = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent$1); -var $$2g = _export; +var $$2k = _export; var $padEnd = stringPad.end; var WEBKIT_BUG$1 = stringPadWebkitBug; // `String.prototype.padEnd` method // https://tc39.es/ecma262/#sec-string.prototype.padend -$$2g({ target: 'String', proto: true, forced: WEBKIT_BUG$1 }, { +$$2k({ target: 'String', proto: true, forced: WEBKIT_BUG$1 }, { padEnd: function padEnd(maxLength /* , fillString = ' ' */) { return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$2f = _export; +var $$2j = _export; var $padStart = stringPad.start; var WEBKIT_BUG = stringPadWebkitBug; // `String.prototype.padStart` method // https://tc39.es/ecma262/#sec-string.prototype.padstart -$$2f({ target: 'String', proto: true, forced: WEBKIT_BUG }, { +$$2j({ target: 'String', proto: true, forced: WEBKIT_BUG }, { padStart: function padStart(maxLength /* , fillString = ' ' */) { return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined); } }); -var $$2e = _export; +var $$2i = _export; var toIndexedObject = toIndexedObject$d; -var toLength$e = toLength$B; +var toLength$f = toLength$C; +var toString$9 = toString$s; // `String.raw` method // https://tc39.es/ecma262/#sec-string.raw -$$2e({ target: 'String', stat: true }, { +$$2i({ target: 'String', stat: true }, { raw: function raw(template) { var rawTemplate = toIndexedObject(template.raw); - var literalSegments = toLength$e(rawTemplate.length); + var literalSegments = toLength$f(rawTemplate.length); var argumentsLength = arguments.length; var elements = []; var i = 0; while (literalSegments > i) { - elements.push(String(rawTemplate[i++])); - if (i < argumentsLength) elements.push(String(arguments[i])); + elements.push(toString$9(rawTemplate[i++])); + if (i < argumentsLength) elements.push(toString$9(arguments[i])); } return elements.join(''); } }); -var $$2d = _export; +var $$2h = _export; var repeat = stringRepeat; // `String.prototype.repeat` method // https://tc39.es/ecma262/#sec-string.prototype.repeat -$$2d({ target: 'String', proto: true }, { +$$2h({ target: 'String', proto: true }, { repeat: repeat }); -var toObject$a = toObject$w; +var toObject$b = toObject$x; var floor$3 = Math.floor; var replace$1 = ''.replace; @@ -7427,7 +7772,7 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== undefined) { - namedCaptures = toObject$a(namedCaptures); + namedCaptures = toObject$b(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace$1.call(replacement, symbols, function (match, ch) { @@ -7456,53 +7801,82 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture }; var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; -var anObject$16 = anObject$1z; -var toLength$d = toLength$B; -var toInteger$4 = toInteger$f; -var requireObjectCoercible$6 = requireObjectCoercible$h; +var fails$c = fails$11; +var anObject$17 = anObject$1B; +var toInteger$5 = toInteger$h; +var toLength$e = toLength$C; +var toString$8 = toString$s; +var requireObjectCoercible$7 = requireObjectCoercible$i; var advanceStringIndex$1 = advanceStringIndex$4; var getSubstitution$1 = getSubstitution$2; var regExpExec$1 = regexpExecAbstract; +var wellKnownSymbol$d = wellKnownSymbol$F; -var max$2 = Math.max; -var min$3 = Math.min; +var REPLACE$1 = wellKnownSymbol$d('replace'); +var max$3 = Math.max; +var min$4 = Math.min; var maybeToString = function (it) { return it === undefined ? it : String(it); }; +// IE <= 11 replaces $0 with the whole match, as if it was $& +// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 +var REPLACE_KEEPS_$0 = (function () { + // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing + return 'a'.replace(/./, '$0') === '$0'; +})(); + +// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string +var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { + if (/./[REPLACE$1]) { + return /./[REPLACE$1]('a', '$0') === ''; + } + return false; +})(); + +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$c(function () { + var re = /./; + re.exec = function () { + var result = []; + result.groups = { a: '7' }; + return result; + }; + // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive + return ''.replace(re, '$') !== '7'; +}); + // @@replace logic -fixRegExpWellKnownSymbolLogic$2('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) { - var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE; - var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0; +fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCallNative) { var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; return [ // `String.prototype.replace` method // https://tc39.es/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { - var O = requireObjectCoercible$6(this); - var replacer = searchValue == undefined ? undefined : searchValue[REPLACE]; + var O = requireObjectCoercible$7(this); + var replacer = searchValue == undefined ? undefined : searchValue[REPLACE$1]; return replacer !== undefined ? replacer.call(searchValue, O, replaceValue) - : nativeReplace.call(String(O), searchValue, replaceValue); + : nativeReplace.call(toString$8(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace - function (regexp, replaceValue) { + function (string, replaceValue) { + var rx = anObject$17(this); + var S = toString$8(string); + if ( - (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) || - (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1) + typeof replaceValue === 'string' && + replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 && + replaceValue.indexOf('$<') === -1 ) { - var res = maybeCallNative(nativeReplace, regexp, this, replaceValue); + var res = maybeCallNative(nativeReplace, rx, S, replaceValue); if (res.done) return res.value; } - var rx = anObject$16(regexp); - var S = String(this); - var functionalReplace = typeof replaceValue === 'function'; - if (!functionalReplace) replaceValue = String(replaceValue); + if (!functionalReplace) replaceValue = toString$8(replaceValue); var global = rx.global; if (global) { @@ -7517,8 +7891,8 @@ fixRegExpWellKnownSymbolLogic$2('replace', 2, function (REPLACE, nativeReplace, results.push(result); if (!global) break; - var matchStr = String(result[0]); - if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$d(rx.lastIndex), fullUnicode); + var matchStr = toString$8(result[0]); + if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$e(rx.lastIndex), fullUnicode); } var accumulatedResult = ''; @@ -7526,8 +7900,8 @@ fixRegExpWellKnownSymbolLogic$2('replace', 2, function (REPLACE, nativeReplace, for (var i = 0; i < results.length; i++) { result = results[i]; - var matched = String(result[0]); - var position = max$2(min$3(toInteger$4(result.index), S.length), 0); + var matched = toString$8(result[0]); + var position = max$3(min$4(toInteger$5(result.index), S.length), 0); var captures = []; // NOTE: This is equivalent to // captures = result.slice(1).map(maybeToString) @@ -7539,7 +7913,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', 2, function (REPLACE, nativeReplace, if (functionalReplace) { var replacerArgs = [matched].concat(captures, position, S); if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); - var replacement = String(replaceValue.apply(undefined, replacerArgs)); + var replacement = toString$8(replaceValue.apply(undefined, replacerArgs)); } else { replacement = getSubstitution$1(matched, S, position, captures, namedCaptures, replaceValue); } @@ -7551,18 +7925,19 @@ fixRegExpWellKnownSymbolLogic$2('replace', 2, function (REPLACE, nativeReplace, return accumulatedResult + S.slice(nextSourcePosition); } ]; -}); +}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); -var $$2c = _export; -var requireObjectCoercible$5 = requireObjectCoercible$h; +var $$2g = _export; +var requireObjectCoercible$6 = requireObjectCoercible$i; var isRegExp$1 = isRegexp; +var toString$7 = toString$s; var getRegExpFlags = regexpFlags$1; var getSubstitution = getSubstitution$2; -var wellKnownSymbol$b = wellKnownSymbol$C; +var wellKnownSymbol$c = wellKnownSymbol$F; -var REPLACE = wellKnownSymbol$b('replace'); +var REPLACE = wellKnownSymbol$c('replace'); var RegExpPrototype = RegExp.prototype; -var max$1 = Math.max; +var max$2 = Math.max; var stringIndexOf = function (string, searchValue, fromIndex) { if (fromIndex > string.length) return -1; @@ -7572,9 +7947,9 @@ var stringIndexOf = function (string, searchValue, fromIndex) { // `String.prototype.replaceAll` method // https://tc39.es/ecma262/#sec-string.prototype.replaceall -$$2c({ target: 'String', proto: true }, { +$$2g({ target: 'String', proto: true }, { replaceAll: function replaceAll(searchValue, replaceValue) { - var O = requireObjectCoercible$5(this); + var O = requireObjectCoercible$6(this); var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement; var position = 0; var endOfLastMatch = 0; @@ -7582,7 +7957,7 @@ $$2c({ target: 'String', proto: true }, { if (searchValue != null) { IS_REG_EXP = isRegExp$1(searchValue); if (IS_REG_EXP) { - flags = String(requireObjectCoercible$5('flags' in RegExpPrototype + flags = toString$7(requireObjectCoercible$6('flags' in RegExpPrototype ? searchValue.flags : getRegExpFlags.call(searchValue) )); @@ -7593,16 +7968,16 @@ $$2c({ target: 'String', proto: true }, { return replacer.call(searchValue, O, replaceValue); } } - string = String(O); - searchString = String(searchValue); + string = toString$7(O); + searchString = toString$7(searchValue); functionalReplace = typeof replaceValue === 'function'; - if (!functionalReplace) replaceValue = String(replaceValue); + if (!functionalReplace) replaceValue = toString$7(replaceValue); searchLength = searchString.length; - advanceBy = max$1(1, searchLength); + advanceBy = max$2(1, searchLength); position = stringIndexOf(string, searchString, 0); while (position !== -1) { if (functionalReplace) { - replacement = String(replaceValue(searchString, position, string)); + replacement = toString$7(replaceValue(searchString, position, string)); } else { replacement = getSubstitution(searchString, string, position, [], undefined, replaceValue); } @@ -7618,29 +7993,30 @@ $$2c({ target: 'String', proto: true }, { }); var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; -var anObject$15 = anObject$1z; -var requireObjectCoercible$4 = requireObjectCoercible$h; +var anObject$16 = anObject$1B; +var requireObjectCoercible$5 = requireObjectCoercible$i; var sameValue = sameValue$1; +var toString$6 = toString$s; var regExpExec = regexpExecAbstract; // @@search logic -fixRegExpWellKnownSymbolLogic$1('search', 1, function (SEARCH, nativeSearch, maybeCallNative) { +fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeCallNative) { return [ // `String.prototype.search` method // https://tc39.es/ecma262/#sec-string.prototype.search function search(regexp) { - var O = requireObjectCoercible$4(this); + var O = requireObjectCoercible$5(this); var searcher = regexp == undefined ? undefined : regexp[SEARCH]; - return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); + return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search - function (regexp) { - var res = maybeCallNative(nativeSearch, regexp, this); - if (res.done) return res.value; + function (string) { + var rx = anObject$16(this); + var S = toString$6(string); + var res = maybeCallNative(nativeSearch, rx, S); - var rx = anObject$15(regexp); - var S = String(this); + if (res.done) return res.value; var previousLastIndex = rx.lastIndex; if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; @@ -7653,22 +8029,35 @@ fixRegExpWellKnownSymbolLogic$1('search', 1, function (SEARCH, nativeSearch, may var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; var isRegExp = isRegexp; -var anObject$14 = anObject$1z; -var requireObjectCoercible$3 = requireObjectCoercible$h; -var speciesConstructor$d = speciesConstructor$i; +var anObject$15 = anObject$1B; +var requireObjectCoercible$4 = requireObjectCoercible$i; +var speciesConstructor$a = speciesConstructor$f; var advanceStringIndex = advanceStringIndex$4; -var toLength$c = toLength$B; +var toLength$d = toLength$C; +var toString$5 = toString$s; var callRegExpExec = regexpExecAbstract; var regexpExec = regexpExec$3; var stickyHelpers = regexpStickyHelpers; +var fails$b = fails$11; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var arrayPush = [].push; -var min$2 = Math.min; +var min$3 = Math.min; var MAX_UINT32 = 0xFFFFFFFF; +// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec +// Weex JS has frozen built-in prototypes, so use try / catch wrapper +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$b(function () { + // eslint-disable-next-line regexp/no-empty-group -- required for testing + var re = /(?:)/; + var originalExec = re.exec; + re.exec = function () { return originalExec.apply(this, arguments); }; + var result = 'ab'.split(re); + return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; +}); + // @@split logic -fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) { +fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) { var internalSplit; if ( 'abbc'.split(/(b)*/)[1] == 'c' || @@ -7676,13 +8065,13 @@ fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCal 'test'.split(/(?:)/, -1).length != 4 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || - // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing + // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing '.'.split(/()()/).length > 1 || ''.split(/.?/).length ) { // based on es5-shim implementation, need to rework it internalSplit = function (separator, limit) { - var string = String(requireObjectCoercible$3(this)); + var string = toString$5(requireObjectCoercible$4(this)); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (separator === undefined) return [string]; @@ -7726,24 +8115,25 @@ fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCal // `String.prototype.split` method // https://tc39.es/ecma262/#sec-string.prototype.split function split(separator, limit) { - var O = requireObjectCoercible$3(this); + var O = requireObjectCoercible$4(this); var splitter = separator == undefined ? undefined : separator[SPLIT]; return splitter !== undefined ? splitter.call(separator, O, limit) - : internalSplit.call(String(O), separator, limit); + : internalSplit.call(toString$5(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split // // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. - function (regexp, limit) { - var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit); + function (string, limit) { + var rx = anObject$15(this); + var S = toString$5(string); + var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); + if (res.done) return res.value; - var rx = anObject$14(regexp); - var S = String(this); - var C = speciesConstructor$d(rx, RegExp); + var C = speciesConstructor$a(rx, RegExp); var unicodeMatching = rx.unicode; var flags = (rx.ignoreCase ? 'i' : '') + @@ -7766,7 +8156,7 @@ fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCal var e; if ( z === null || - (e = min$2(toLength$c(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p + (e = min$3(toLength$d(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p ) { q = advanceStringIndex(S, q, unicodeMatching); } else { @@ -7783,18 +8173,19 @@ fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCal return A; } ]; -}, UNSUPPORTED_Y); +}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); -var $$2b = _export; +var $$2f = _export; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; -var toLength$b = toLength$B; +var toLength$c = toLength$C; +var toString$4 = toString$s; var notARegExp = notARegexp; -var requireObjectCoercible$2 = requireObjectCoercible$h; +var requireObjectCoercible$3 = requireObjectCoercible$i; var correctIsRegExpLogic = correctIsRegexpLogic; // eslint-disable-next-line es/no-string-prototype-startswith -- safe var $startsWith = ''.startsWith; -var min$1 = Math.min; +var min$2 = Math.min; var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); // https://github.com/zloirock/core-js/pull/702 @@ -7805,19 +8196,45 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () { // `String.prototype.startsWith` method // https://tc39.es/ecma262/#sec-string.prototype.startswith -$$2b({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { +$$2f({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { startsWith: function startsWith(searchString /* , position = 0 */) { - var that = String(requireObjectCoercible$2(this)); + var that = toString$4(requireObjectCoercible$3(this)); notARegExp(searchString); - var index = toLength$b(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length)); - var search = String(searchString); + var index = toLength$c(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length)); + var search = toString$4(searchString); return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; } }); -var fails$a = fails$X; +var $$2e = _export; +var requireObjectCoercible$2 = requireObjectCoercible$i; +var toInteger$4 = toInteger$h; +var toString$3 = toString$s; + +var slice$1 = ''.slice; +var max$1 = Math.max; +var min$1 = Math.min; + +// `String.prototype.substr` method +// https://tc39.es/ecma262/#sec-string.prototype.substr +$$2e({ target: 'String', proto: true }, { + substr: function substr(start, length) { + var that = toString$3(requireObjectCoercible$2(this)); + var size = that.length; + var intStart = toInteger$4(start); + var intLength, intEnd; + if (intStart === Infinity) intStart = 0; + if (intStart < 0) intStart = max$1(size + intStart, 0); + intLength = length === undefined ? size : toInteger$4(length); + if (intLength <= 0 || intLength === Infinity) return ''; + intEnd = min$1(intStart + intLength, size); + return intStart >= intEnd ? '' : slice$1.call(that, intStart, intEnd); + } +}); + +var fails$a = fails$11; var whitespaces = whitespaces$4; var non = '\u200B\u0085\u180E'; @@ -7830,19 +8247,19 @@ var stringTrimForced = function (METHOD_NAME) { }); }; -var $$2a = _export; +var $$2d = _export; var $trim = stringTrim.trim; var forcedStringTrimMethod$2 = stringTrimForced; // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim -$$2a({ target: 'String', proto: true, forced: forcedStringTrimMethod$2('trim') }, { +$$2d({ target: 'String', proto: true, forced: forcedStringTrimMethod$2('trim') }, { trim: function trim() { return $trim(this); } }); -var $$29 = _export; +var $$2c = _export; var $trimEnd = stringTrim.end; var forcedStringTrimMethod$1 = stringTrimForced; @@ -7856,12 +8273,12 @@ var trimEnd = FORCED$7 ? function trimEnd() { // `String.prototype.{ trimEnd, trimRight }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimend // https://tc39.es/ecma262/#String.prototype.trimright -$$29({ target: 'String', proto: true, forced: FORCED$7 }, { +$$2c({ target: 'String', proto: true, forced: FORCED$7 }, { trimEnd: trimEnd, trimRight: trimEnd }); -var $$28 = _export; +var $$2b = _export; var $trimStart = stringTrim.start; var forcedStringTrimMethod = stringTrimForced; @@ -7875,25 +8292,26 @@ var trimStart = FORCED$6 ? function trimStart() { // `String.prototype.{ trimStart, trimLeft }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimstart // https://tc39.es/ecma262/#String.prototype.trimleft -$$28({ target: 'String', proto: true, forced: FORCED$6 }, { +$$2b({ target: 'String', proto: true, forced: FORCED$6 }, { trimStart: trimStart, trimLeft: trimStart }); -var requireObjectCoercible$1 = requireObjectCoercible$h; +var requireObjectCoercible$1 = requireObjectCoercible$i; +var toString$2 = toString$s; var quot = /"/g; // `CreateHTML` abstract operation // https://tc39.es/ecma262/#sec-createhtml var createHtml = function (string, tag, attribute, value) { - var S = String(requireObjectCoercible$1(string)); + var S = toString$2(requireObjectCoercible$1(string)); var p1 = '<' + tag; - if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; + if (attribute !== '') p1 += ' ' + attribute + '="' + toString$2(value).replace(quot, '"') + '"'; return p1 + '>' + S + ''; }; -var fails$9 = fails$X; +var fails$9 = fails$11; // check the existence of a method, lowercase // of a tag and escaping quotes in arguments @@ -7904,157 +8322,157 @@ var stringHtmlForced = function (METHOD_NAME) { }); }; -var $$27 = _export; +var $$2a = _export; var createHTML$c = createHtml; var forcedStringHTMLMethod$c = stringHtmlForced; // `String.prototype.anchor` method // https://tc39.es/ecma262/#sec-string.prototype.anchor -$$27({ target: 'String', proto: true, forced: forcedStringHTMLMethod$c('anchor') }, { +$$2a({ target: 'String', proto: true, forced: forcedStringHTMLMethod$c('anchor') }, { anchor: function anchor(name) { return createHTML$c(this, 'a', 'name', name); } }); -var $$26 = _export; +var $$29 = _export; var createHTML$b = createHtml; var forcedStringHTMLMethod$b = stringHtmlForced; // `String.prototype.big` method // https://tc39.es/ecma262/#sec-string.prototype.big -$$26({ target: 'String', proto: true, forced: forcedStringHTMLMethod$b('big') }, { +$$29({ target: 'String', proto: true, forced: forcedStringHTMLMethod$b('big') }, { big: function big() { return createHTML$b(this, 'big', '', ''); } }); -var $$25 = _export; +var $$28 = _export; var createHTML$a = createHtml; var forcedStringHTMLMethod$a = stringHtmlForced; // `String.prototype.blink` method // https://tc39.es/ecma262/#sec-string.prototype.blink -$$25({ target: 'String', proto: true, forced: forcedStringHTMLMethod$a('blink') }, { +$$28({ target: 'String', proto: true, forced: forcedStringHTMLMethod$a('blink') }, { blink: function blink() { return createHTML$a(this, 'blink', '', ''); } }); -var $$24 = _export; +var $$27 = _export; var createHTML$9 = createHtml; var forcedStringHTMLMethod$9 = stringHtmlForced; // `String.prototype.bold` method // https://tc39.es/ecma262/#sec-string.prototype.bold -$$24({ target: 'String', proto: true, forced: forcedStringHTMLMethod$9('bold') }, { +$$27({ target: 'String', proto: true, forced: forcedStringHTMLMethod$9('bold') }, { bold: function bold() { return createHTML$9(this, 'b', '', ''); } }); -var $$23 = _export; +var $$26 = _export; var createHTML$8 = createHtml; var forcedStringHTMLMethod$8 = stringHtmlForced; // `String.prototype.fixed` method // https://tc39.es/ecma262/#sec-string.prototype.fixed -$$23({ target: 'String', proto: true, forced: forcedStringHTMLMethod$8('fixed') }, { +$$26({ target: 'String', proto: true, forced: forcedStringHTMLMethod$8('fixed') }, { fixed: function fixed() { return createHTML$8(this, 'tt', '', ''); } }); -var $$22 = _export; +var $$25 = _export; var createHTML$7 = createHtml; var forcedStringHTMLMethod$7 = stringHtmlForced; // `String.prototype.fontcolor` method // https://tc39.es/ecma262/#sec-string.prototype.fontcolor -$$22({ target: 'String', proto: true, forced: forcedStringHTMLMethod$7('fontcolor') }, { +$$25({ target: 'String', proto: true, forced: forcedStringHTMLMethod$7('fontcolor') }, { fontcolor: function fontcolor(color) { return createHTML$7(this, 'font', 'color', color); } }); -var $$21 = _export; +var $$24 = _export; var createHTML$6 = createHtml; var forcedStringHTMLMethod$6 = stringHtmlForced; // `String.prototype.fontsize` method // https://tc39.es/ecma262/#sec-string.prototype.fontsize -$$21({ target: 'String', proto: true, forced: forcedStringHTMLMethod$6('fontsize') }, { +$$24({ target: 'String', proto: true, forced: forcedStringHTMLMethod$6('fontsize') }, { fontsize: function fontsize(size) { return createHTML$6(this, 'font', 'size', size); } }); -var $$20 = _export; +var $$23 = _export; var createHTML$5 = createHtml; var forcedStringHTMLMethod$5 = stringHtmlForced; // `String.prototype.italics` method // https://tc39.es/ecma262/#sec-string.prototype.italics -$$20({ target: 'String', proto: true, forced: forcedStringHTMLMethod$5('italics') }, { +$$23({ target: 'String', proto: true, forced: forcedStringHTMLMethod$5('italics') }, { italics: function italics() { return createHTML$5(this, 'i', '', ''); } }); -var $$1$ = _export; +var $$22 = _export; var createHTML$4 = createHtml; var forcedStringHTMLMethod$4 = stringHtmlForced; // `String.prototype.link` method // https://tc39.es/ecma262/#sec-string.prototype.link -$$1$({ target: 'String', proto: true, forced: forcedStringHTMLMethod$4('link') }, { +$$22({ target: 'String', proto: true, forced: forcedStringHTMLMethod$4('link') }, { link: function link(url) { return createHTML$4(this, 'a', 'href', url); } }); -var $$1_ = _export; +var $$21 = _export; var createHTML$3 = createHtml; var forcedStringHTMLMethod$3 = stringHtmlForced; // `String.prototype.small` method // https://tc39.es/ecma262/#sec-string.prototype.small -$$1_({ target: 'String', proto: true, forced: forcedStringHTMLMethod$3('small') }, { +$$21({ target: 'String', proto: true, forced: forcedStringHTMLMethod$3('small') }, { small: function small() { return createHTML$3(this, 'small', '', ''); } }); -var $$1Z = _export; +var $$20 = _export; var createHTML$2 = createHtml; var forcedStringHTMLMethod$2 = stringHtmlForced; // `String.prototype.strike` method // https://tc39.es/ecma262/#sec-string.prototype.strike -$$1Z({ target: 'String', proto: true, forced: forcedStringHTMLMethod$2('strike') }, { +$$20({ target: 'String', proto: true, forced: forcedStringHTMLMethod$2('strike') }, { strike: function strike() { return createHTML$2(this, 'strike', '', ''); } }); -var $$1Y = _export; +var $$1$ = _export; var createHTML$1 = createHtml; var forcedStringHTMLMethod$1 = stringHtmlForced; // `String.prototype.sub` method // https://tc39.es/ecma262/#sec-string.prototype.sub -$$1Y({ target: 'String', proto: true, forced: forcedStringHTMLMethod$1('sub') }, { +$$1$({ target: 'String', proto: true, forced: forcedStringHTMLMethod$1('sub') }, { sub: function sub() { return createHTML$1(this, 'sub', '', ''); } }); -var $$1X = _export; +var $$1_ = _export; var createHTML = createHtml; var forcedStringHTMLMethod = stringHtmlForced; // `String.prototype.sup` method // https://tc39.es/ecma262/#sec-string.prototype.sup -$$1X({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, { +$$1_({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, { sup: function sup() { return createHTML(this, 'sup', '', ''); } @@ -8064,8 +8482,8 @@ var typedArrayConstructor = {exports: {}}; /* eslint-disable no-new -- required for testing */ -var global$f = global$M; -var fails$8 = fails$X; +var global$f = global$Q; +var fails$8 = fails$11; var checkCorrectnessOfIteration = checkCorrectnessOfIteration$4; var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; @@ -8086,7 +8504,7 @@ var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fai return new Int8Array$2(new ArrayBuffer$2(2), 1, undefined).length !== 1; }); -var toInteger$3 = toInteger$f; +var toInteger$3 = toInteger$h; var toPositiveInteger$5 = function (it) { var result = toInteger$3(it); @@ -8102,22 +8520,23 @@ var toOffset$2 = function (it, BYTES) { return offset; }; -var toObject$9 = toObject$w; -var toLength$a = toLength$B; -var getIteratorMethod$5 = getIteratorMethod$8; +var toObject$a = toObject$x; +var toLength$b = toLength$C; +var getIterator$6 = getIterator$9; +var getIteratorMethod$4 = getIteratorMethod$8; var isArrayIteratorMethod = isArrayIteratorMethod$3; -var bind$f = functionBindContext; -var aTypedArrayConstructor$5 = arrayBufferViewCore.aTypedArrayConstructor; +var bind$g = functionBindContext; +var aTypedArrayConstructor$3 = arrayBufferViewCore.aTypedArrayConstructor; var typedArrayFrom$2 = function from(source /* , mapfn, thisArg */) { - var O = toObject$9(source); + var O = toObject$a(source); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; - var iteratorMethod = getIteratorMethod$5(O); + var iteratorMethod = getIteratorMethod$4(O); var i, length, result, step, iterator, next; if (iteratorMethod != undefined && !isArrayIteratorMethod(iteratorMethod)) { - iterator = iteratorMethod.call(O); + iterator = getIterator$6(O, iteratorMethod); next = iterator.next; O = []; while (!(step = next.call(iterator)).done) { @@ -8125,33 +8544,35 @@ var typedArrayFrom$2 = function from(source /* , mapfn, thisArg */) { } } if (mapping && argumentsLength > 2) { - mapfn = bind$f(mapfn, arguments[2], 2); + mapfn = bind$g(mapfn, arguments[2], 2); } - length = toLength$a(O.length); - result = new (aTypedArrayConstructor$5(this))(length); + length = toLength$b(O.length); + result = new (aTypedArrayConstructor$3(this))(length); for (i = 0; length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } return result; }; -var $$1W = _export; -var global$e = global$M; +var $$1Z = _export; +var global$e = global$Q; var DESCRIPTORS$5 = descriptors; var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2 = typedArrayConstructorsRequireWrappers; -var ArrayBufferViewCore$s = arrayBufferViewCore; +var ArrayBufferViewCore$v = arrayBufferViewCore; var ArrayBufferModule = arrayBuffer; var anInstance$6 = anInstance$b; var createPropertyDescriptor$1 = createPropertyDescriptor$9; var createNonEnumerableProperty$8 = createNonEnumerableProperty$m; -var toLength$9 = toLength$B; +var isInteger = isInteger$3; +var toLength$a = toLength$C; var toIndex = toIndex$2; var toOffset$1 = toOffset$2; -var toPrimitive = toPrimitive$b; +var toPropertyKey$1 = toPropertyKey$9; var has$5 = has$n; var classof$1 = classof$b; -var isObject$6 = isObject$B; -var create$5 = objectCreate; +var isObject$6 = isObject$C; +var isSymbol = isSymbol$6; +var create$6 = objectCreate$1; var setPrototypeOf = objectSetPrototypeOf$1; var getOwnPropertyNames = objectGetOwnPropertyNames.f; var typedArrayFrom$1 = typedArrayFrom$2; @@ -8159,37 +8580,38 @@ var forEach$1 = arrayIteration.forEach; var setSpecies$1 = setSpecies$7; var definePropertyModule = objectDefineProperty; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; -var InternalStateModule$a = internalState; +var InternalStateModule$b = internalState; var inheritIfRequired = inheritIfRequired$4; -var getInternalState$7 = InternalStateModule$a.get; -var setInternalState$a = InternalStateModule$a.set; +var getInternalState$8 = InternalStateModule$b.get; +var setInternalState$b = InternalStateModule$b.set; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var round = Math.round; var RangeError$1 = global$e.RangeError; var ArrayBuffer$1 = ArrayBufferModule.ArrayBuffer; var DataView$1 = ArrayBufferModule.DataView; -var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$s.NATIVE_ARRAY_BUFFER_VIEWS; -var TYPED_ARRAY_TAG = ArrayBufferViewCore$s.TYPED_ARRAY_TAG; -var TypedArray = ArrayBufferViewCore$s.TypedArray; -var TypedArrayPrototype = ArrayBufferViewCore$s.TypedArrayPrototype; -var aTypedArrayConstructor$4 = ArrayBufferViewCore$s.aTypedArrayConstructor; -var isTypedArray = ArrayBufferViewCore$s.isTypedArray; +var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$v.NATIVE_ARRAY_BUFFER_VIEWS; +var TYPED_ARRAY_CONSTRUCTOR$1 = ArrayBufferViewCore$v.TYPED_ARRAY_CONSTRUCTOR; +var TYPED_ARRAY_TAG = ArrayBufferViewCore$v.TYPED_ARRAY_TAG; +var TypedArray = ArrayBufferViewCore$v.TypedArray; +var TypedArrayPrototype = ArrayBufferViewCore$v.TypedArrayPrototype; +var aTypedArrayConstructor$2 = ArrayBufferViewCore$v.aTypedArrayConstructor; +var isTypedArray = ArrayBufferViewCore$v.isTypedArray; var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; var WRONG_LENGTH = 'Wrong length'; var fromList = function (C, list) { var index = 0; var length = list.length; - var result = new (aTypedArrayConstructor$4(C))(length); + var result = new (aTypedArrayConstructor$2(C))(length); while (length > index) result[index] = list[index++]; return result; }; var addGetter = function (it, key) { nativeDefineProperty(it, key, { get: function () { - return getInternalState$7(this)[key]; + return getInternalState$8(this)[key]; } }); }; @@ -8200,19 +8622,22 @@ var isArrayBuffer = function (it) { var isTypedArrayIndex = function (target, key) { return isTypedArray(target) - && typeof key != 'symbol' + && !isSymbol(key) && key in target - && String(+key) == String(key); + && isInteger(+key) + && key >= 0; }; var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) { - return isTypedArrayIndex(target, key = toPrimitive(key, true)) + key = toPropertyKey$1(key); + return isTypedArrayIndex(target, key) ? createPropertyDescriptor$1(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key); }; var wrappedDefineProperty = function defineProperty(target, key, descriptor) { - if (isTypedArrayIndex(target, key = toPrimitive(key, true)) + key = toPropertyKey$1(key); + if (isTypedArrayIndex(target, key) && isObject$6(descriptor) && has$5(descriptor, 'value') && !has$5(descriptor, 'get') @@ -8237,7 +8662,7 @@ if (DESCRIPTORS$5) { addGetter(TypedArrayPrototype, 'length'); } - $$1W({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { + $$1Z({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor, defineProperty: wrappedDefineProperty }); @@ -8253,12 +8678,12 @@ if (DESCRIPTORS$5) { var exported = {}; var getter = function (that, index) { - var data = getInternalState$7(that); + var data = getInternalState$8(that); return data.view[GETTER](index * BYTES + data.byteOffset, true); }; var setter = function (that, index, value) { - var data = getInternalState$7(that); + var data = getInternalState$8(that); if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; data.view[SETTER](index * BYTES + data.byteOffset, value, true); }; @@ -8294,7 +8719,7 @@ if (DESCRIPTORS$5) { byteLength = $len - byteOffset; if (byteLength < 0) throw RangeError$1(WRONG_LENGTH); } else { - byteLength = toLength$9($length) * BYTES; + byteLength = toLength$a($length) * BYTES; if (byteLength + byteOffset > $len) throw RangeError$1(WRONG_LENGTH); } length = byteLength / BYTES; @@ -8303,7 +8728,7 @@ if (DESCRIPTORS$5) { } else { return typedArrayFrom$1.call(TypedArrayConstructor, data); } - setInternalState$a(that, { + setInternalState$b(that, { buffer: buffer, byteOffset: byteOffset, byteLength: byteLength, @@ -8314,7 +8739,7 @@ if (DESCRIPTORS$5) { }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); - TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create$5(TypedArrayPrototype); + TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create$6(TypedArrayPrototype); } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2) { TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) { anInstance$6(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME); @@ -8343,13 +8768,15 @@ if (DESCRIPTORS$5) { createNonEnumerableProperty$8(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor); } + createNonEnumerableProperty$8(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR$1, TypedArrayConstructor); + if (TYPED_ARRAY_TAG) { createNonEnumerableProperty$8(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME); } exported[CONSTRUCTOR_NAME] = TypedArrayConstructor; - $$1W({ + $$1Z({ global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported); @@ -8455,103 +8882,118 @@ createTypedArrayConstructor('Uint32', function (init) { }; }); -var ArrayBufferViewCore$r = arrayBufferViewCore; +var ArrayBufferViewCore$u = arrayBufferViewCore; var $copyWithin = arrayCopyWithin; -var aTypedArray$q = ArrayBufferViewCore$r.aTypedArray; -var exportTypedArrayMethod$r = ArrayBufferViewCore$r.exportTypedArrayMethod; +var aTypedArray$s = ArrayBufferViewCore$u.aTypedArray; +var exportTypedArrayMethod$t = ArrayBufferViewCore$u.exportTypedArrayMethod; // `%TypedArray%.prototype.copyWithin` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin -exportTypedArrayMethod$r('copyWithin', function copyWithin(target, start /* , end */) { - return $copyWithin.call(aTypedArray$q(this), target, start, arguments.length > 2 ? arguments[2] : undefined); +exportTypedArrayMethod$t('copyWithin', function copyWithin(target, start /* , end */) { + return $copyWithin.call(aTypedArray$s(this), target, start, arguments.length > 2 ? arguments[2] : undefined); }); -var ArrayBufferViewCore$q = arrayBufferViewCore; +var ArrayBufferViewCore$t = arrayBufferViewCore; var $every$1 = arrayIteration.every; -var aTypedArray$p = ArrayBufferViewCore$q.aTypedArray; -var exportTypedArrayMethod$q = ArrayBufferViewCore$q.exportTypedArrayMethod; +var aTypedArray$r = ArrayBufferViewCore$t.aTypedArray; +var exportTypedArrayMethod$s = ArrayBufferViewCore$t.exportTypedArrayMethod; // `%TypedArray%.prototype.every` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.every -exportTypedArrayMethod$q('every', function every(callbackfn /* , thisArg */) { - return $every$1(aTypedArray$p(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$s('every', function every(callbackfn /* , thisArg */) { + return $every$1(aTypedArray$r(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$p = arrayBufferViewCore; +var ArrayBufferViewCore$s = arrayBufferViewCore; var $fill = arrayFill$1; -var aTypedArray$o = ArrayBufferViewCore$p.aTypedArray; -var exportTypedArrayMethod$p = ArrayBufferViewCore$p.exportTypedArrayMethod; +var aTypedArray$q = ArrayBufferViewCore$s.aTypedArray; +var exportTypedArrayMethod$r = ArrayBufferViewCore$s.exportTypedArrayMethod; // `%TypedArray%.prototype.fill` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill // eslint-disable-next-line no-unused-vars -- required for `.length` -exportTypedArrayMethod$p('fill', function fill(value /* , start, end */) { - return $fill.apply(aTypedArray$o(this), arguments); +exportTypedArrayMethod$r('fill', function fill(value /* , start, end */) { + return $fill.apply(aTypedArray$q(this), arguments); }); -var aTypedArrayConstructor$3 = arrayBufferViewCore.aTypedArrayConstructor; -var speciesConstructor$c = speciesConstructor$i; - -var typedArrayFromSpeciesAndList = function (instance, list) { - var C = speciesConstructor$c(instance, instance.constructor); +var arrayFromConstructorAndList$2 = function (Constructor, list) { var index = 0; var length = list.length; - var result = new (aTypedArrayConstructor$3(C))(length); + var result = new Constructor(length); while (length > index) result[index] = list[index++]; return result; }; -var ArrayBufferViewCore$o = arrayBufferViewCore; +var ArrayBufferViewCore$r = arrayBufferViewCore; +var speciesConstructor$9 = speciesConstructor$f; + +var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore$r.TYPED_ARRAY_CONSTRUCTOR; +var aTypedArrayConstructor$1 = ArrayBufferViewCore$r.aTypedArrayConstructor; + +// a part of `TypedArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#typedarray-species-create +var typedArraySpeciesConstructor$5 = function (originalArray) { + return aTypedArrayConstructor$1(speciesConstructor$9(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR])); +}; + +var arrayFromConstructorAndList$1 = arrayFromConstructorAndList$2; +var typedArraySpeciesConstructor$4 = typedArraySpeciesConstructor$5; + +var typedArrayFromSpeciesAndList = function (instance, list) { + return arrayFromConstructorAndList$1(typedArraySpeciesConstructor$4(instance), list); +}; + +var ArrayBufferViewCore$q = arrayBufferViewCore; var $filter = arrayIteration.filter; -var fromSpeciesAndList$2 = typedArrayFromSpeciesAndList; +var fromSpeciesAndList$3 = typedArrayFromSpeciesAndList; -var aTypedArray$n = ArrayBufferViewCore$o.aTypedArray; -var exportTypedArrayMethod$o = ArrayBufferViewCore$o.exportTypedArrayMethod; +var aTypedArray$p = ArrayBufferViewCore$q.aTypedArray; +var exportTypedArrayMethod$q = ArrayBufferViewCore$q.exportTypedArrayMethod; // `%TypedArray%.prototype.filter` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter -exportTypedArrayMethod$o('filter', function filter(callbackfn /* , thisArg */) { - var list = $filter(aTypedArray$n(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return fromSpeciesAndList$2(this, list); +exportTypedArrayMethod$q('filter', function filter(callbackfn /* , thisArg */) { + var list = $filter(aTypedArray$p(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return fromSpeciesAndList$3(this, list); }); -var ArrayBufferViewCore$n = arrayBufferViewCore; +var ArrayBufferViewCore$p = arrayBufferViewCore; var $find$1 = arrayIteration.find; -var aTypedArray$m = ArrayBufferViewCore$n.aTypedArray; -var exportTypedArrayMethod$n = ArrayBufferViewCore$n.exportTypedArrayMethod; +var aTypedArray$o = ArrayBufferViewCore$p.aTypedArray; +var exportTypedArrayMethod$p = ArrayBufferViewCore$p.exportTypedArrayMethod; // `%TypedArray%.prototype.find` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.find -exportTypedArrayMethod$n('find', function find(predicate /* , thisArg */) { - return $find$1(aTypedArray$m(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$p('find', function find(predicate /* , thisArg */) { + return $find$1(aTypedArray$o(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$m = arrayBufferViewCore; +var ArrayBufferViewCore$o = arrayBufferViewCore; var $findIndex = arrayIteration.findIndex; -var aTypedArray$l = ArrayBufferViewCore$m.aTypedArray; -var exportTypedArrayMethod$m = ArrayBufferViewCore$m.exportTypedArrayMethod; +var aTypedArray$n = ArrayBufferViewCore$o.aTypedArray; +var exportTypedArrayMethod$o = ArrayBufferViewCore$o.exportTypedArrayMethod; // `%TypedArray%.prototype.findIndex` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex -exportTypedArrayMethod$m('findIndex', function findIndex(predicate /* , thisArg */) { - return $findIndex(aTypedArray$l(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$o('findIndex', function findIndex(predicate /* , thisArg */) { + return $findIndex(aTypedArray$n(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$l = arrayBufferViewCore; +var ArrayBufferViewCore$n = arrayBufferViewCore; var $forEach$1 = arrayIteration.forEach; -var aTypedArray$k = ArrayBufferViewCore$l.aTypedArray; -var exportTypedArrayMethod$l = ArrayBufferViewCore$l.exportTypedArrayMethod; +var aTypedArray$m = ArrayBufferViewCore$n.aTypedArray; +var exportTypedArrayMethod$n = ArrayBufferViewCore$n.exportTypedArrayMethod; // `%TypedArray%.prototype.forEach` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach -exportTypedArrayMethod$l('forEach', function forEach(callbackfn /* , thisArg */) { - $forEach$1(aTypedArray$k(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$n('forEach', function forEach(callbackfn /* , thisArg */) { + $forEach$1(aTypedArray$m(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1 = typedArrayConstructorsRequireWrappers; @@ -8562,161 +9004,160 @@ var typedArrayFrom = typedArrayFrom$2; // https://tc39.es/ecma262/#sec-%typedarray%.from exportTypedArrayStaticMethod$1('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1); -var ArrayBufferViewCore$k = arrayBufferViewCore; +var ArrayBufferViewCore$m = arrayBufferViewCore; var $includes = arrayIncludes.includes; -var aTypedArray$j = ArrayBufferViewCore$k.aTypedArray; -var exportTypedArrayMethod$k = ArrayBufferViewCore$k.exportTypedArrayMethod; +var aTypedArray$l = ArrayBufferViewCore$m.aTypedArray; +var exportTypedArrayMethod$m = ArrayBufferViewCore$m.exportTypedArrayMethod; // `%TypedArray%.prototype.includes` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes -exportTypedArrayMethod$k('includes', function includes(searchElement /* , fromIndex */) { - return $includes(aTypedArray$j(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$m('includes', function includes(searchElement /* , fromIndex */) { + return $includes(aTypedArray$l(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$j = arrayBufferViewCore; +var ArrayBufferViewCore$l = arrayBufferViewCore; var $indexOf = arrayIncludes.indexOf; -var aTypedArray$i = ArrayBufferViewCore$j.aTypedArray; -var exportTypedArrayMethod$j = ArrayBufferViewCore$j.exportTypedArrayMethod; +var aTypedArray$k = ArrayBufferViewCore$l.aTypedArray; +var exportTypedArrayMethod$l = ArrayBufferViewCore$l.exportTypedArrayMethod; // `%TypedArray%.prototype.indexOf` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof -exportTypedArrayMethod$j('indexOf', function indexOf(searchElement /* , fromIndex */) { - return $indexOf(aTypedArray$i(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$l('indexOf', function indexOf(searchElement /* , fromIndex */) { + return $indexOf(aTypedArray$k(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }); -var global$d = global$M; -var ArrayBufferViewCore$i = arrayBufferViewCore; +var global$d = global$Q; +var ArrayBufferViewCore$k = arrayBufferViewCore; var ArrayIterators = es_array_iterator; -var wellKnownSymbol$a = wellKnownSymbol$C; +var wellKnownSymbol$b = wellKnownSymbol$F; -var ITERATOR$3 = wellKnownSymbol$a('iterator'); +var ITERATOR$3 = wellKnownSymbol$b('iterator'); var Uint8Array$1 = global$d.Uint8Array; var arrayValues = ArrayIterators.values; var arrayKeys = ArrayIterators.keys; var arrayEntries = ArrayIterators.entries; -var aTypedArray$h = ArrayBufferViewCore$i.aTypedArray; -var exportTypedArrayMethod$i = ArrayBufferViewCore$i.exportTypedArrayMethod; +var aTypedArray$j = ArrayBufferViewCore$k.aTypedArray; +var exportTypedArrayMethod$k = ArrayBufferViewCore$k.exportTypedArrayMethod; var nativeTypedArrayIterator = Uint8Array$1 && Uint8Array$1.prototype[ITERATOR$3]; var CORRECT_ITER_NAME = !!nativeTypedArrayIterator && (nativeTypedArrayIterator.name == 'values' || nativeTypedArrayIterator.name == undefined); var typedArrayValues = function values() { - return arrayValues.call(aTypedArray$h(this)); + return arrayValues.call(aTypedArray$j(this)); }; // `%TypedArray%.prototype.entries` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries -exportTypedArrayMethod$i('entries', function entries() { - return arrayEntries.call(aTypedArray$h(this)); +exportTypedArrayMethod$k('entries', function entries() { + return arrayEntries.call(aTypedArray$j(this)); }); // `%TypedArray%.prototype.keys` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys -exportTypedArrayMethod$i('keys', function keys() { - return arrayKeys.call(aTypedArray$h(this)); +exportTypedArrayMethod$k('keys', function keys() { + return arrayKeys.call(aTypedArray$j(this)); }); // `%TypedArray%.prototype.values` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.values -exportTypedArrayMethod$i('values', typedArrayValues, !CORRECT_ITER_NAME); +exportTypedArrayMethod$k('values', typedArrayValues, !CORRECT_ITER_NAME); // `%TypedArray%.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator -exportTypedArrayMethod$i(ITERATOR$3, typedArrayValues, !CORRECT_ITER_NAME); +exportTypedArrayMethod$k(ITERATOR$3, typedArrayValues, !CORRECT_ITER_NAME); -var ArrayBufferViewCore$h = arrayBufferViewCore; +var ArrayBufferViewCore$j = arrayBufferViewCore; -var aTypedArray$g = ArrayBufferViewCore$h.aTypedArray; -var exportTypedArrayMethod$h = ArrayBufferViewCore$h.exportTypedArrayMethod; +var aTypedArray$i = ArrayBufferViewCore$j.aTypedArray; +var exportTypedArrayMethod$j = ArrayBufferViewCore$j.exportTypedArrayMethod; var $join = [].join; // `%TypedArray%.prototype.join` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.join // eslint-disable-next-line no-unused-vars -- required for `.length` -exportTypedArrayMethod$h('join', function join(separator) { - return $join.apply(aTypedArray$g(this), arguments); +exportTypedArrayMethod$j('join', function join(separator) { + return $join.apply(aTypedArray$i(this), arguments); }); -var ArrayBufferViewCore$g = arrayBufferViewCore; +var ArrayBufferViewCore$i = arrayBufferViewCore; var $lastIndexOf = arrayLastIndexOf; -var aTypedArray$f = ArrayBufferViewCore$g.aTypedArray; -var exportTypedArrayMethod$g = ArrayBufferViewCore$g.exportTypedArrayMethod; +var aTypedArray$h = ArrayBufferViewCore$i.aTypedArray; +var exportTypedArrayMethod$i = ArrayBufferViewCore$i.exportTypedArrayMethod; // `%TypedArray%.prototype.lastIndexOf` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof // eslint-disable-next-line no-unused-vars -- required for `.length` -exportTypedArrayMethod$g('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) { - return $lastIndexOf.apply(aTypedArray$f(this), arguments); +exportTypedArrayMethod$i('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) { + return $lastIndexOf.apply(aTypedArray$h(this), arguments); }); -var ArrayBufferViewCore$f = arrayBufferViewCore; +var ArrayBufferViewCore$h = arrayBufferViewCore; var $map = arrayIteration.map; -var speciesConstructor$b = speciesConstructor$i; +var typedArraySpeciesConstructor$3 = typedArraySpeciesConstructor$5; -var aTypedArray$e = ArrayBufferViewCore$f.aTypedArray; -var aTypedArrayConstructor$2 = ArrayBufferViewCore$f.aTypedArrayConstructor; -var exportTypedArrayMethod$f = ArrayBufferViewCore$f.exportTypedArrayMethod; +var aTypedArray$g = ArrayBufferViewCore$h.aTypedArray; +var exportTypedArrayMethod$h = ArrayBufferViewCore$h.exportTypedArrayMethod; // `%TypedArray%.prototype.map` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.map -exportTypedArrayMethod$f('map', function map(mapfn /* , thisArg */) { - return $map(aTypedArray$e(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) { - return new (aTypedArrayConstructor$2(speciesConstructor$b(O, O.constructor)))(length); +exportTypedArrayMethod$h('map', function map(mapfn /* , thisArg */) { + return $map(aTypedArray$g(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) { + return new (typedArraySpeciesConstructor$3(O))(length); }); }); -var ArrayBufferViewCore$e = arrayBufferViewCore; +var ArrayBufferViewCore$g = arrayBufferViewCore; var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers; -var aTypedArrayConstructor$1 = ArrayBufferViewCore$e.aTypedArrayConstructor; -var exportTypedArrayStaticMethod = ArrayBufferViewCore$e.exportTypedArrayStaticMethod; +var aTypedArrayConstructor = ArrayBufferViewCore$g.aTypedArrayConstructor; +var exportTypedArrayStaticMethod = ArrayBufferViewCore$g.exportTypedArrayStaticMethod; // `%TypedArray%.of` method // https://tc39.es/ecma262/#sec-%typedarray%.of exportTypedArrayStaticMethod('of', function of(/* ...items */) { var index = 0; var length = arguments.length; - var result = new (aTypedArrayConstructor$1(this))(length); + var result = new (aTypedArrayConstructor(this))(length); while (length > index) result[index] = arguments[index++]; return result; }, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS); -var ArrayBufferViewCore$d = arrayBufferViewCore; +var ArrayBufferViewCore$f = arrayBufferViewCore; var $reduce = arrayReduce.left; -var aTypedArray$d = ArrayBufferViewCore$d.aTypedArray; -var exportTypedArrayMethod$e = ArrayBufferViewCore$d.exportTypedArrayMethod; +var aTypedArray$f = ArrayBufferViewCore$f.aTypedArray; +var exportTypedArrayMethod$g = ArrayBufferViewCore$f.exportTypedArrayMethod; // `%TypedArray%.prototype.reduce` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce -exportTypedArrayMethod$e('reduce', function reduce(callbackfn /* , initialValue */) { - return $reduce(aTypedArray$d(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$g('reduce', function reduce(callbackfn /* , initialValue */) { + return $reduce(aTypedArray$f(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$c = arrayBufferViewCore; +var ArrayBufferViewCore$e = arrayBufferViewCore; var $reduceRight = arrayReduce.right; -var aTypedArray$c = ArrayBufferViewCore$c.aTypedArray; -var exportTypedArrayMethod$d = ArrayBufferViewCore$c.exportTypedArrayMethod; +var aTypedArray$e = ArrayBufferViewCore$e.aTypedArray; +var exportTypedArrayMethod$f = ArrayBufferViewCore$e.exportTypedArrayMethod; // `%TypedArray%.prototype.reduceRicht` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright -exportTypedArrayMethod$d('reduceRight', function reduceRight(callbackfn /* , initialValue */) { - return $reduceRight(aTypedArray$c(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$f('reduceRight', function reduceRight(callbackfn /* , initialValue */) { + return $reduceRight(aTypedArray$e(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$b = arrayBufferViewCore; +var ArrayBufferViewCore$d = arrayBufferViewCore; -var aTypedArray$b = ArrayBufferViewCore$b.aTypedArray; -var exportTypedArrayMethod$c = ArrayBufferViewCore$b.exportTypedArrayMethod; +var aTypedArray$d = ArrayBufferViewCore$d.aTypedArray; +var exportTypedArrayMethod$e = ArrayBufferViewCore$d.exportTypedArrayMethod; var floor$2 = Math.floor; // `%TypedArray%.prototype.reverse` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse -exportTypedArrayMethod$c('reverse', function reverse() { +exportTypedArrayMethod$e('reverse', function reverse() { var that = this; - var length = aTypedArray$b(that).length; + var length = aTypedArray$d(that).length; var middle = floor$2(length / 2); var index = 0; var value; @@ -8727,14 +9168,14 @@ exportTypedArrayMethod$c('reverse', function reverse() { } return that; }); -var ArrayBufferViewCore$a = arrayBufferViewCore; -var toLength$8 = toLength$B; +var ArrayBufferViewCore$c = arrayBufferViewCore; +var toLength$9 = toLength$C; var toOffset = toOffset$2; -var toObject$8 = toObject$w; -var fails$7 = fails$X; +var toObject$9 = toObject$x; +var fails$7 = fails$11; -var aTypedArray$a = ArrayBufferViewCore$a.aTypedArray; -var exportTypedArrayMethod$b = ArrayBufferViewCore$a.exportTypedArrayMethod; +var aTypedArray$c = ArrayBufferViewCore$c.aTypedArray; +var exportTypedArrayMethod$d = ArrayBufferViewCore$c.exportTypedArrayMethod; var FORCED$5 = fails$7(function () { // eslint-disable-next-line es/no-typed-arrays -- required for testing @@ -8743,24 +9184,23 @@ var FORCED$5 = fails$7(function () { // `%TypedArray%.prototype.set` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.set -exportTypedArrayMethod$b('set', function set(arrayLike /* , offset */) { - aTypedArray$a(this); +exportTypedArrayMethod$d('set', function set(arrayLike /* , offset */) { + aTypedArray$c(this); var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1); var length = this.length; - var src = toObject$8(arrayLike); - var len = toLength$8(src.length); + var src = toObject$9(arrayLike); + var len = toLength$9(src.length); var index = 0; if (len + offset > length) throw RangeError('Wrong length'); while (index < len) this[offset + index] = src[index++]; }, FORCED$5); -var ArrayBufferViewCore$9 = arrayBufferViewCore; -var speciesConstructor$a = speciesConstructor$i; -var fails$6 = fails$X; +var ArrayBufferViewCore$b = arrayBufferViewCore; +var typedArraySpeciesConstructor$2 = typedArraySpeciesConstructor$5; +var fails$6 = fails$11; -var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray; -var aTypedArrayConstructor = ArrayBufferViewCore$9.aTypedArrayConstructor; -var exportTypedArrayMethod$a = ArrayBufferViewCore$9.exportTypedArrayMethod; +var aTypedArray$b = ArrayBufferViewCore$b.aTypedArray; +var exportTypedArrayMethod$c = ArrayBufferViewCore$b.exportTypedArrayMethod; var $slice$1 = [].slice; var FORCED$4 = fails$6(function () { @@ -8770,41 +9210,41 @@ var FORCED$4 = fails$6(function () { // `%TypedArray%.prototype.slice` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice -exportTypedArrayMethod$a('slice', function slice(start, end) { - var list = $slice$1.call(aTypedArray$9(this), start, end); - var C = speciesConstructor$a(this, this.constructor); +exportTypedArrayMethod$c('slice', function slice(start, end) { + var list = $slice$1.call(aTypedArray$b(this), start, end); + var C = typedArraySpeciesConstructor$2(this); var index = 0; var length = list.length; - var result = new (aTypedArrayConstructor(C))(length); + var result = new C(length); while (length > index) result[index] = list[index++]; return result; }, FORCED$4); -var ArrayBufferViewCore$8 = arrayBufferViewCore; +var ArrayBufferViewCore$a = arrayBufferViewCore; var $some$1 = arrayIteration.some; -var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray; -var exportTypedArrayMethod$9 = ArrayBufferViewCore$8.exportTypedArrayMethod; +var aTypedArray$a = ArrayBufferViewCore$a.aTypedArray; +var exportTypedArrayMethod$b = ArrayBufferViewCore$a.exportTypedArrayMethod; // `%TypedArray%.prototype.some` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.some -exportTypedArrayMethod$9('some', function some(callbackfn /* , thisArg */) { - return $some$1(aTypedArray$8(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$b('some', function some(callbackfn /* , thisArg */) { + return $some$1(aTypedArray$a(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); -var ArrayBufferViewCore$7 = arrayBufferViewCore; -var global$c = global$M; -var fails$5 = fails$X; +var ArrayBufferViewCore$9 = arrayBufferViewCore; +var global$c = global$Q; +var fails$5 = fails$11; var aFunction$C = aFunction$S; -var toLength$7 = toLength$B; +var toLength$8 = toLength$C; var internalSort = arraySort; var FF = engineFfVersion; var IE_OR_EDGE = engineIsIeOrEdge; var V8 = engineV8Version; var WEBKIT = engineWebkitVersion; -var aTypedArray$7 = ArrayBufferViewCore$7.aTypedArray; -var exportTypedArrayMethod$8 = ArrayBufferViewCore$7.exportTypedArrayMethod; +var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray; +var exportTypedArrayMethod$a = ArrayBufferViewCore$9.exportTypedArrayMethod; var Uint16Array = global$c.Uint16Array; var nativeSort = Uint16Array && Uint16Array.prototype.sort; @@ -8855,13 +9295,13 @@ var getSortCompare = function (comparefn) { // `%TypedArray%.prototype.sort` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort -exportTypedArrayMethod$8('sort', function sort(comparefn) { +exportTypedArrayMethod$a('sort', function sort(comparefn) { var array = this; if (comparefn !== undefined) aFunction$C(comparefn); if (STABLE_SORT) return nativeSort.call(array, comparefn); - aTypedArray$7(array); - var arrayLength = toLength$7(array.length); + aTypedArray$9(array); + var arrayLength = toLength$8(array.length); var items = Array(arrayLength); var index; @@ -8878,34 +9318,35 @@ exportTypedArrayMethod$8('sort', function sort(comparefn) { return array; }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS); -var ArrayBufferViewCore$6 = arrayBufferViewCore; -var toLength$6 = toLength$B; +var ArrayBufferViewCore$8 = arrayBufferViewCore; +var toLength$7 = toLength$C; var toAbsoluteIndex = toAbsoluteIndex$8; -var speciesConstructor$9 = speciesConstructor$i; +var typedArraySpeciesConstructor$1 = typedArraySpeciesConstructor$5; -var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray; -var exportTypedArrayMethod$7 = ArrayBufferViewCore$6.exportTypedArrayMethod; +var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray; +var exportTypedArrayMethod$9 = ArrayBufferViewCore$8.exportTypedArrayMethod; // `%TypedArray%.prototype.subarray` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray -exportTypedArrayMethod$7('subarray', function subarray(begin, end) { - var O = aTypedArray$6(this); +exportTypedArrayMethod$9('subarray', function subarray(begin, end) { + var O = aTypedArray$8(this); var length = O.length; var beginIndex = toAbsoluteIndex(begin, length); - return new (speciesConstructor$9(O, O.constructor))( + var C = typedArraySpeciesConstructor$1(O); + return new C( O.buffer, O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT, - toLength$6((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex) + toLength$7((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex) ); }); -var global$b = global$M; -var ArrayBufferViewCore$5 = arrayBufferViewCore; -var fails$4 = fails$X; +var global$b = global$Q; +var ArrayBufferViewCore$7 = arrayBufferViewCore; +var fails$4 = fails$11; var Int8Array$1 = global$b.Int8Array; -var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray; -var exportTypedArrayMethod$6 = ArrayBufferViewCore$5.exportTypedArrayMethod; +var aTypedArray$7 = ArrayBufferViewCore$7.aTypedArray; +var exportTypedArrayMethod$8 = ArrayBufferViewCore$7.exportTypedArrayMethod; var $toLocaleString = [].toLocaleString; var $slice = [].slice; @@ -8922,13 +9363,13 @@ var FORCED$3 = fails$4(function () { // `%TypedArray%.prototype.toLocaleString` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring -exportTypedArrayMethod$6('toLocaleString', function toLocaleString() { - return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray$5(this)) : aTypedArray$5(this), arguments); +exportTypedArrayMethod$8('toLocaleString', function toLocaleString() { + return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray$7(this)) : aTypedArray$7(this), arguments); }, FORCED$3); -var exportTypedArrayMethod$5 = arrayBufferViewCore.exportTypedArrayMethod; -var fails$3 = fails$X; -var global$a = global$M; +var exportTypedArrayMethod$7 = arrayBufferViewCore.exportTypedArrayMethod; +var fails$3 = fails$11; +var global$a = global$Q; var Uint8Array = global$a.Uint8Array; var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {}; @@ -8945,22 +9386,62 @@ var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString; // `%TypedArray%.prototype.toString` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring -exportTypedArrayMethod$5('toString', arrayToString, IS_NOT_ARRAY_METHOD); +exportTypedArrayMethod$7('toString', arrayToString, IS_NOT_ARRAY_METHOD); + +var $$1Y = _export; +var toString$1 = toString$s; + +var fromCharCode = String.fromCharCode; +var hex2 = /^[\da-f]{2}$/i; +var hex4 = /^[\da-f]{4}$/i; + +// `unescape` method +// https://tc39.es/ecma262/#sec-unescape-string +$$1Y({ global: true }, { + unescape: function unescape(string) { + var str = toString$1(string); + var result = ''; + var length = str.length; + var index = 0; + var chr, slice; + while (index < length) { + chr = str.charAt(index++); + if (chr === '%') { + if (str.charAt(index) === 'u') { + slice = str.slice(index + 1, index + 5); + if (hex4.test(slice)) { + result += fromCharCode(parseInt(slice, 16)); + index += 5; + continue; + } + } else { + slice = str.slice(index, index + 2); + if (hex2.test(slice)) { + result += fromCharCode(parseInt(slice, 16)); + index += 2; + continue; + } + } + } + result += chr; + } return result; + } +}); var es_weakMap = {exports: {}}; -var redefineAll$5 = redefineAll$9; +var redefineAll$6 = redefineAll$a; var getWeakData = internalMetadata.exports.getWeakData; -var anObject$13 = anObject$1z; -var isObject$5 = isObject$B; +var anObject$14 = anObject$1B; +var isObject$5 = isObject$C; var anInstance$5 = anInstance$b; var iterate$A = iterate$I; var ArrayIterationModule = arrayIteration; var $has = has$n; -var InternalStateModule$9 = internalState; +var InternalStateModule$a = internalState; -var setInternalState$9 = InternalStateModule$9.set; -var internalStateGetterFor = InternalStateModule$9.getterFor; +var setInternalState$a = InternalStateModule$a.set; +var internalStateGetterFor = InternalStateModule$a.getterFor; var find$1 = ArrayIterationModule.find; var findIndex = ArrayIterationModule.findIndex; var id = 0; @@ -9006,7 +9487,7 @@ var collectionWeak$2 = { getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance$5(that, C, CONSTRUCTOR_NAME); - setInternalState$9(that, { + setInternalState$a(that, { type: CONSTRUCTOR_NAME, id: id++, frozen: undefined @@ -9018,13 +9499,13 @@ var collectionWeak$2 = { var define = function (that, key, value) { var state = getInternalState(that); - var data = getWeakData(anObject$13(key), true); + var data = getWeakData(anObject$14(key), true); if (data === true) uncaughtFrozenStore(state).set(key, value); else data[state.id] = value; return that; }; - redefineAll$5(C.prototype, { + redefineAll$6(C.prototype, { // `{ WeakMap, WeakSet }.prototype.delete(key)` methods // https://tc39.es/ecma262/#sec-weakmap.prototype.delete // https://tc39.es/ecma262/#sec-weakset.prototype.delete @@ -9047,7 +9528,7 @@ var collectionWeak$2 = { } }); - redefineAll$5(C.prototype, IS_MAP ? { + redefineAll$6(C.prototype, IS_MAP ? { // `WeakMap.prototype.get(key)` method // https://tc39.es/ecma262/#sec-weakmap.prototype.get get: function get(key) { @@ -9075,12 +9556,12 @@ var collectionWeak$2 = { } }; -var global$9 = global$M; -var redefineAll$4 = redefineAll$9; +var global$9 = global$Q; +var redefineAll$5 = redefineAll$a; var InternalMetadataModule = internalMetadata.exports; var collection$1 = collection$4; var collectionWeak$1 = collectionWeak$2; -var isObject$4 = isObject$B; +var isObject$4 = isObject$C; var enforceIternalState = internalState.enforce; var NATIVE_WEAK_MAP = nativeWeakMap; @@ -9104,13 +9585,13 @@ var $WeakMap = es_weakMap.exports = collection$1('WeakMap', wrapper, collectionW // https://github.com/zloirock/core-js/issues/485 if (NATIVE_WEAK_MAP && IS_IE11) { InternalWeakMap = collectionWeak$1.getConstructor(wrapper, 'WeakMap', true); - InternalMetadataModule.REQUIRED = true; + InternalMetadataModule.enable(); var WeakMapPrototype = $WeakMap.prototype; var nativeDelete = WeakMapPrototype['delete']; var nativeHas = WeakMapPrototype.has; var nativeGet = WeakMapPrototype.get; var nativeSet = WeakMapPrototype.set; - redefineAll$4(WeakMapPrototype, { + redefineAll$5(WeakMapPrototype, { 'delete': function (key) { if (isObject$4(key) && !isExtensible(key)) { var state = enforceIternalState(this); @@ -9152,102 +9633,167 @@ collection('WeakSet', function (init) { return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); }; }, collectionWeak); -var $$1V = _export; -var toObject$7 = toObject$w; -var toLength$5 = toLength$B; -var toInteger$2 = toInteger$f; -var addToUnscopables$6 = addToUnscopables$f; +var $$1X = _export; +var toObject$8 = toObject$x; +var toLength$6 = toLength$C; +var toInteger$2 = toInteger$h; +var addToUnscopables$8 = addToUnscopables$h; // `Array.prototype.at` method // https://github.com/tc39/proposal-relative-indexing-method -$$1V({ target: 'Array', proto: true }, { +$$1X({ target: 'Array', proto: true }, { at: function at(index) { - var O = toObject$7(this); - var len = toLength$5(O.length); + var O = toObject$8(this); + var len = toLength$6(O.length); var relativeIndex = toInteger$2(index); var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; return (k < 0 || k >= len) ? undefined : O[k]; } }); -addToUnscopables$6('at'); +addToUnscopables$8('at'); -var $$1U = _export; -var $filterOut$1 = arrayIteration.filterOut; -var addToUnscopables$5 = addToUnscopables$f; +// TODO: remove from `core-js@4` +var $$1W = _export; +var $filterReject$3 = arrayIteration.filterReject; +var addToUnscopables$7 = addToUnscopables$h; // `Array.prototype.filterOut` method // https://github.com/tc39/proposal-array-filtering -$$1U({ target: 'Array', proto: true }, { +$$1W({ target: 'Array', proto: true }, { filterOut: function filterOut(callbackfn /* , thisArg */) { - return $filterOut$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return $filterReject$3(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -addToUnscopables$5('filterOut'); +addToUnscopables$7('filterOut'); -var bind$e = functionBindContext; -var IndexedObject = indexedObject; -var toObject$6 = toObject$w; -var toLength$4 = toLength$B; +var $$1V = _export; +var $filterReject$2 = arrayIteration.filterReject; +var addToUnscopables$6 = addToUnscopables$h; + +// `Array.prototype.filterReject` method +// https://github.com/tc39/proposal-array-filtering +$$1V({ target: 'Array', proto: true }, { + filterReject: function filterReject(callbackfn /* , thisArg */) { + return $filterReject$2(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +addToUnscopables$6('filterReject'); + +var bind$f = functionBindContext; +var IndexedObject$1 = indexedObject; +var toObject$7 = toObject$x; +var toLength$5 = toLength$C; // `Array.prototype.{ findLast, findLastIndex }` methods implementation var createMethod$1 = function (TYPE) { - var IS_FIND_INDEX = TYPE == 6; + var IS_FIND_LAST_INDEX = TYPE == 1; return function ($this, callbackfn, that) { - var O = toObject$6($this); - var self = IndexedObject(O); - var boundFunction = bind$e(callbackfn, that, 3); - var index = toLength$4(self.length); + var O = toObject$7($this); + var self = IndexedObject$1(O); + var boundFunction = bind$f(callbackfn, that, 3); + var index = toLength$5(self.length); var value, result; while (index-- > 0) { value = self[index]; result = boundFunction(value, index, O); if (result) switch (TYPE) { - case 5: return value; // find - case 6: return index; // findIndex + case 0: return value; // findLast + case 1: return index; // findLastIndex } } - return IS_FIND_INDEX ? -1 : undefined; + return IS_FIND_LAST_INDEX ? -1 : undefined; }; }; var arrayIterationFromLast = { // `Array.prototype.findLast` method // https://github.com/tc39/proposal-array-find-from-last - findLast: createMethod$1(5), + findLast: createMethod$1(0), // `Array.prototype.findLastIndex` method // https://github.com/tc39/proposal-array-find-from-last - findLastIndex: createMethod$1(6) + findLastIndex: createMethod$1(1) }; -var $$1T = _export; +var $$1U = _export; var $findLast$1 = arrayIterationFromLast.findLast; -var addToUnscopables$4 = addToUnscopables$f; +var addToUnscopables$5 = addToUnscopables$h; // `Array.prototype.findLast` method // https://github.com/tc39/proposal-array-find-from-last -$$1T({ target: 'Array', proto: true }, { +$$1U({ target: 'Array', proto: true }, { findLast: function findLast(callbackfn /* , that = undefined */) { return $findLast$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -addToUnscopables$4('findLast'); +addToUnscopables$5('findLast'); -var $$1S = _export; +var $$1T = _export; var $findLastIndex$1 = arrayIterationFromLast.findLastIndex; -var addToUnscopables$3 = addToUnscopables$f; +var addToUnscopables$4 = addToUnscopables$h; // `Array.prototype.findLastIndex` method // https://github.com/tc39/proposal-array-find-from-last -$$1S({ target: 'Array', proto: true }, { +$$1T({ target: 'Array', proto: true }, { findLastIndex: function findLastIndex(callbackfn /* , that = undefined */) { return $findLastIndex$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -addToUnscopables$3('findLastIndex'); +addToUnscopables$4('findLastIndex'); + +var bind$e = functionBindContext; +var IndexedObject = indexedObject; +var toObject$6 = toObject$x; +var toLength$4 = toLength$C; +var toPropertyKey = toPropertyKey$9; +var objectCreate = objectCreate$1; +var arrayFromConstructorAndList = arrayFromConstructorAndList$2; + +var push$3 = [].push; + +var arrayGroupBy = function ($this, callbackfn, that, specificConstructor) { + var O = toObject$6($this); + var self = IndexedObject(O); + var boundFunction = bind$e(callbackfn, that, 3); + var target = objectCreate(null); + var length = toLength$4(self.length); + var index = 0; + var Constructor, key, value; + for (;length > index; index++) { + value = self[index]; + key = toPropertyKey(boundFunction(value, index, O)); + // in some IE10 builds, `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$3.call(target[key], value); + else target[key] = [value]; + } + if (specificConstructor) { + Constructor = specificConstructor(O); + if (Constructor !== Array) { + for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]); + } + } return target; +}; + +var $$1S = _export; +var $groupBy$1 = arrayGroupBy; +var arraySpeciesConstructor = arraySpeciesConstructor$2; +var addToUnscopables$3 = addToUnscopables$h; + +// `Array.prototype.groupBy` method +// https://github.com/tc39/proposal-array-grouping +$$1S({ target: 'Array', proto: true }, { + groupBy: function groupBy(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $groupBy$1(this, callbackfn, thisArg, arraySpeciesConstructor); + } +}); + +addToUnscopables$3('groupBy'); var $$1R = _export; var isArray = isArray$8; @@ -9280,9 +9826,9 @@ $$1R({ target: 'Array', stat: true }, { }); var DESCRIPTORS$4 = descriptors; -var addToUnscopables$2 = addToUnscopables$f; -var toObject$5 = toObject$w; -var toLength$3 = toLength$B; +var addToUnscopables$2 = addToUnscopables$h; +var toObject$5 = toObject$x; +var toLength$3 = toLength$C; var defineProperty$2 = objectDefineProperty.f; // `Array.prototype.lastIndex` getter @@ -9301,9 +9847,9 @@ if (DESCRIPTORS$4 && !('lastIndex' in [])) { } var DESCRIPTORS$3 = descriptors; -var addToUnscopables$1 = addToUnscopables$f; -var toObject$4 = toObject$w; -var toLength$2 = toLength$B; +var addToUnscopables$1 = addToUnscopables$h; +var toObject$4 = toObject$x; +var toLength$2 = toLength$C; var defineProperty$1 = objectDefineProperty.f; // `Array.prototype.lastIndex` accessor @@ -9326,9 +9872,9 @@ if (DESCRIPTORS$3 && !('lastItem' in [])) { addToUnscopables$1('lastItem'); } -var toLength$1 = toLength$B; -var toObject$3 = toObject$w; -var getBuiltIn$g = getBuiltIn$t; +var toLength$1 = toLength$C; +var toObject$3 = toObject$x; +var getBuiltIn$h = getBuiltIn$v; var arraySpeciesCreate = arraySpeciesCreate$6; var push$2 = [].push; @@ -9339,7 +9885,7 @@ var arrayUniqueBy$1 = function uniqueBy(resolver) { var that = toObject$3(this); var length = toLength$1(that.length); var result = arraySpeciesCreate(that, 0); - var Map = getBuiltIn$g('Map'); + var Map = getBuiltIn$h('Map'); var map = new Map(); var resolverFunction, index, item, key; if (typeof resolver == 'function') resolverFunction = resolver; @@ -9359,7 +9905,7 @@ var arrayUniqueBy$1 = function uniqueBy(resolver) { }; var $$1Q = _export; -var addToUnscopables = addToUnscopables$f; +var addToUnscopables = addToUnscopables$h; var uniqueBy = arrayUniqueBy$1; // `Array.prototype.uniqueBy` method @@ -9370,15 +9916,15 @@ $$1Q({ target: 'Array', proto: true }, { addToUnscopables('uniqueBy'); -var global$8 = global$M; +var global$8 = global$Q; var shared$1 = sharedStore; var getPrototypeOf$3 = objectGetPrototypeOf$1; var has$4 = has$n; var createNonEnumerableProperty$7 = createNonEnumerableProperty$m; -var wellKnownSymbol$9 = wellKnownSymbol$C; +var wellKnownSymbol$a = wellKnownSymbol$F; var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; -var ASYNC_ITERATOR$1 = wellKnownSymbol$9('asyncIterator'); +var ASYNC_ITERATOR$2 = wellKnownSymbol$a('asyncIterator'); var AsyncIterator$1 = global$8.AsyncIterator; var PassedAsyncIteratorPrototype = shared$1.AsyncIteratorPrototype; var AsyncIteratorPrototype$1, prototype; @@ -9399,8 +9945,8 @@ var AsyncIteratorPrototype$1, prototype; if (!AsyncIteratorPrototype$1) AsyncIteratorPrototype$1 = {}; -if (!has$4(AsyncIteratorPrototype$1, ASYNC_ITERATOR$1)) { - createNonEnumerableProperty$7(AsyncIteratorPrototype$1, ASYNC_ITERATOR$1, function () { +if (!has$4(AsyncIteratorPrototype$1, ASYNC_ITERATOR$2)) { + createNonEnumerableProperty$7(AsyncIteratorPrototype$1, ASYNC_ITERATOR$2, function () { return this; }); } @@ -9412,11 +9958,11 @@ var $$1P = _export; var anInstance$4 = anInstance$b; var createNonEnumerableProperty$6 = createNonEnumerableProperty$m; var has$3 = has$n; -var wellKnownSymbol$8 = wellKnownSymbol$C; +var wellKnownSymbol$9 = wellKnownSymbol$F; var AsyncIteratorPrototype = asyncIteratorPrototype; var IS_PURE$C = isPure; -var TO_STRING_TAG$4 = wellKnownSymbol$8('toStringTag'); +var TO_STRING_TAG$4 = wellKnownSymbol$9('toStringTag'); var AsyncIteratorConstructor = function AsyncIterator() { anInstance$4(this, AsyncIteratorConstructor); @@ -9436,58 +9982,63 @@ $$1P({ global: true, forced: IS_PURE$C }, { AsyncIterator: AsyncIteratorConstructor }); -var path$3 = path$6; +var path$4 = path$6; var aFunction$B = aFunction$S; -var anObject$12 = anObject$1z; -var create$4 = objectCreate; +var anObject$13 = anObject$1B; +var create$5 = objectCreate$1; var createNonEnumerableProperty$5 = createNonEnumerableProperty$m; -var redefineAll$3 = redefineAll$9; -var wellKnownSymbol$7 = wellKnownSymbol$C; -var InternalStateModule$8 = internalState; -var getBuiltIn$f = getBuiltIn$t; - -var Promise$3 = getBuiltIn$f('Promise'); - -var setInternalState$8 = InternalStateModule$8.set; -var getInternalState$6 = InternalStateModule$8.get; +var redefineAll$4 = redefineAll$a; +var wellKnownSymbol$8 = wellKnownSymbol$F; +var InternalStateModule$9 = internalState; +var getBuiltIn$g = getBuiltIn$v; -var TO_STRING_TAG$3 = wellKnownSymbol$7('toStringTag'); +var Promise$4 = getBuiltIn$g('Promise'); -var $return$1 = function (value) { - var iterator = getInternalState$6(this).iterator; - var $$return = iterator['return']; - return $$return === undefined - ? Promise$3.resolve({ done: true, value: value }) - : anObject$12($$return.call(iterator, value)); -}; +var setInternalState$9 = InternalStateModule$9.set; +var getInternalState$7 = InternalStateModule$9.get; -var $throw$1 = function (value) { - var iterator = getInternalState$6(this).iterator; - var $$throw = iterator['throw']; - return $$throw === undefined - ? Promise$3.reject(value) - : $$throw.call(iterator, value); -}; +var TO_STRING_TAG$3 = wellKnownSymbol$8('toStringTag'); var asyncIteratorCreateProxy = function (nextHandler, IS_ITERATOR) { var AsyncIteratorProxy = function AsyncIterator(state) { state.next = aFunction$B(state.iterator.next); state.done = false; - setInternalState$8(this, state); + state.ignoreArgument = !IS_ITERATOR; + setInternalState$9(this, state); }; - AsyncIteratorProxy.prototype = redefineAll$3(create$4(path$3.AsyncIterator.prototype), { + AsyncIteratorProxy.prototype = redefineAll$4(create$5(path$4.AsyncIterator.prototype), { next: function next(arg) { - var state = getInternalState$6(this); - if (state.done) return Promise$3.resolve({ done: true, value: undefined }); - try { - return Promise$3.resolve(anObject$12(nextHandler.call(state, arg, Promise$3))); - } catch (error) { - return Promise$3.reject(error); - } + var that = this; + var hasArgument = !!arguments.length; + return new Promise$4(function (resolve) { + var state = getInternalState$7(that); + var args = hasArgument ? [state.ignoreArgument ? undefined : arg] : IS_ITERATOR ? [] : [undefined]; + state.ignoreArgument = false; + resolve(state.done ? { done: true, value: undefined } : anObject$13(nextHandler.call(state, Promise$4, args))); + }); + }, + 'return': function (value) { + var that = this; + return new Promise$4(function (resolve, reject) { + var iterator = getInternalState$7(that).iterator; + var $$return = iterator['return']; + if ($$return === undefined) return resolve({ done: true, value: value }); + Promise$4.resolve($$return.call(iterator, value)).then(function (result) { + anObject$13(result); + resolve({ done: true, value: value }); + }, reject); + }); }, - 'return': $return$1, - 'throw': $throw$1 + 'throw': function (value) { + var that = this; + return new Promise$4(function (resolve, reject) { + var iterator = getInternalState$7(that).iterator; + var $$throw = iterator['throw']; + if ($$throw === undefined) return reject(value); + resolve($$throw.call(iterator, value)); + }); + } }); if (!IS_ITERATOR) { @@ -9499,15 +10050,15 @@ var asyncIteratorCreateProxy = function (nextHandler, IS_ITERATOR) { // https://github.com/tc39/proposal-iterator-helpers var $$1O = _export; -var anObject$11 = anObject$1z; +var anObject$12 = anObject$1B; var createAsyncIteratorProxy$6 = asyncIteratorCreateProxy; -var AsyncIteratorProxy$6 = createAsyncIteratorProxy$6(function (arg, Promise) { +var AsyncIteratorProxy$6 = createAsyncIteratorProxy$6(function (Promise, args) { var state = this; var iterator = state.iterator; - return Promise.resolve(anObject$11(state.next.call(iterator, arg))).then(function (step) { - if (anObject$11(step).done) { + return Promise.resolve(anObject$12(state.next.apply(iterator, args))).then(function (step) { + if (anObject$12(step).done) { state.done = true; return { done: true, value: undefined }; } @@ -9518,7 +10069,7 @@ var AsyncIteratorProxy$6 = createAsyncIteratorProxy$6(function (arg, Promise) { $$1O({ target: 'AsyncIterator', proto: true, real: true }, { asIndexedPairs: function asIndexedPairs() { return new AsyncIteratorProxy$6({ - iterator: anObject$11(this), + iterator: anObject$12(this), index: 0 }); } @@ -9526,21 +10077,21 @@ $$1O({ target: 'AsyncIterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1N = _export; -var anObject$10 = anObject$1z; +var anObject$11 = anObject$1B; var toPositiveInteger$3 = toPositiveInteger$5; var createAsyncIteratorProxy$5 = asyncIteratorCreateProxy; -var AsyncIteratorProxy$5 = createAsyncIteratorProxy$5(function (arg, Promise) { +var AsyncIteratorProxy$5 = createAsyncIteratorProxy$5(function (Promise, args) { var state = this; return new Promise(function (resolve, reject) { var loop = function () { try { Promise.resolve( - anObject$10(state.next.call(state.iterator, state.remaining ? undefined : arg)) + anObject$11(state.next.apply(state.iterator, state.remaining ? [] : args)) ).then(function (step) { try { - if (anObject$10(step).done) { + if (anObject$11(step).done) { state.done = true; resolve({ done: true, value: undefined }); } else if (state.remaining) { @@ -9559,7 +10110,7 @@ var AsyncIteratorProxy$5 = createAsyncIteratorProxy$5(function (arg, Promise) { $$1N({ target: 'AsyncIterator', proto: true, real: true }, { drop: function drop(limit) { return new AsyncIteratorProxy$5({ - iterator: anObject$10(this), + iterator: anObject$11(this), remaining: toPositiveInteger$3(limit) }); } @@ -9567,10 +10118,10 @@ $$1N({ target: 'AsyncIterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var aFunction$A = aFunction$S; -var anObject$$ = anObject$1z; -var getBuiltIn$e = getBuiltIn$t; +var anObject$10 = anObject$1B; +var getBuiltIn$f = getBuiltIn$v; -var Promise$2 = getBuiltIn$e('Promise'); +var Promise$3 = getBuiltIn$f('Promise'); var push$1 = [].push; var createMethod = function (TYPE) { @@ -9579,17 +10130,17 @@ var createMethod = function (TYPE) { var IS_EVERY = TYPE == 2; var IS_SOME = TYPE == 3; return function (iterator, fn) { - anObject$$(iterator); + anObject$10(iterator); var next = aFunction$A(iterator.next); var array = IS_TO_ARRAY ? [] : undefined; if (!IS_TO_ARRAY) aFunction$A(fn); - return new Promise$2(function (resolve, reject) { + return new Promise$3(function (resolve, reject) { var closeIteration = function (method, argument) { try { var returnMethod = iterator['return']; if (returnMethod !== undefined) { - return Promise$2.resolve(returnMethod.call(iterator)).then(function () { + return Promise$3.resolve(returnMethod.call(iterator)).then(function () { method(argument); }, function (error) { reject(error); @@ -9606,9 +10157,9 @@ var createMethod = function (TYPE) { var loop = function () { try { - Promise$2.resolve(anObject$$(next.call(iterator))).then(function (step) { + Promise$3.resolve(anObject$10(next.call(iterator))).then(function (step) { try { - if (anObject$$(step).done) { + if (anObject$10(step).done) { resolve(IS_TO_ARRAY ? array : IS_SOME ? false : IS_EVERY || undefined); } else { var value = step.value; @@ -9616,7 +10167,7 @@ var createMethod = function (TYPE) { push$1.call(array, value); loop(); } else { - Promise$2.resolve(fn(value)).then(function (result) { + Promise$3.resolve(fn(value)).then(function (result) { if (IS_FOR_EACH) { loop(); } else if (IS_EVERY) { @@ -9658,19 +10209,19 @@ $$1M({ target: 'AsyncIterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1L = _export; var aFunction$z = aFunction$S; -var anObject$_ = anObject$1z; +var anObject$$ = anObject$1B; var createAsyncIteratorProxy$4 = asyncIteratorCreateProxy; -var AsyncIteratorProxy$4 = createAsyncIteratorProxy$4(function (arg, Promise) { +var AsyncIteratorProxy$4 = createAsyncIteratorProxy$4(function (Promise, args) { var state = this; var filterer = state.filterer; return new Promise(function (resolve, reject) { var loop = function () { try { - Promise.resolve(anObject$_(state.next.call(state.iterator, arg))).then(function (step) { + Promise.resolve(anObject$$(state.next.apply(state.iterator, args))).then(function (step) { try { - if (anObject$_(step).done) { + if (anObject$$(step).done) { state.done = true; resolve({ done: true, value: undefined }); } else { @@ -9691,7 +10242,7 @@ var AsyncIteratorProxy$4 = createAsyncIteratorProxy$4(function (arg, Promise) { $$1L({ target: 'AsyncIterator', proto: true, real: true }, { filter: function filter(filterer) { return new AsyncIteratorProxy$4({ - iterator: anObject$_(this), + iterator: anObject$$(this), filterer: aFunction$z(filterer) }); } @@ -9707,45 +10258,116 @@ $$1K({ target: 'AsyncIterator', proto: true, real: true }, { } }); -var getIteratorMethod$4 = getIteratorMethod$8; -var wellKnownSymbol$6 = wellKnownSymbol$C; +var aFunction$y = aFunction$S; -var ASYNC_ITERATOR = wellKnownSymbol$6('asyncIterator'); +// `GetMethod` abstract operation +// https://tc39.es/ecma262/#sec-getmethod +var getMethod$4 = function (fn) { + return fn == null ? undefined : aFunction$y(fn); +}; + +var path$3 = path$6; +var anObject$_ = anObject$1B; +var create$4 = objectCreate$1; +var getMethod$3 = getMethod$4; +var redefineAll$3 = redefineAll$a; +var InternalStateModule$8 = internalState; +var getBuiltIn$e = getBuiltIn$v; + +var Promise$2 = getBuiltIn$e('Promise'); + +var setInternalState$8 = InternalStateModule$8.set; +var getInternalState$6 = InternalStateModule$8.get; + +var asyncFromSyncIteratorContinuation = function (result, resolve, reject) { + var done = result.done; + Promise$2.resolve(result.value).then(function (value) { + resolve({ done: done, value: value }); + }, reject); +}; + +var AsyncFromSyncIterator$2 = function AsyncIterator(iterator) { + setInternalState$8(this, { + iterator: anObject$_(iterator), + next: iterator.next + }); +}; + +AsyncFromSyncIterator$2.prototype = redefineAll$3(create$4(path$3.AsyncIterator.prototype), { + next: function next(arg) { + var state = getInternalState$6(this); + var hasArg = !!arguments.length; + return new Promise$2(function (resolve, reject) { + var result = anObject$_(state.next.apply(state.iterator, hasArg ? [arg] : [])); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + }, + 'return': function (arg) { + var iterator = getInternalState$6(this).iterator; + var hasArg = !!arguments.length; + return new Promise$2(function (resolve, reject) { + var $return = getMethod$3(iterator['return']); + if ($return === undefined) return resolve({ done: true, value: arg }); + var result = anObject$_($return.apply(iterator, hasArg ? [arg] : [])); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + }, + 'throw': function (arg) { + var iterator = getInternalState$6(this).iterator; + var hasArg = !!arguments.length; + return new Promise$2(function (resolve, reject) { + var $throw = getMethod$3(iterator['throw']); + if ($throw === undefined) return reject(arg); + var result = anObject$_($throw.apply(iterator, hasArg ? [arg] : [])); + asyncFromSyncIteratorContinuation(result, resolve, reject); + }); + } +}); + +var asyncFromSyncIterator = AsyncFromSyncIterator$2; + +var AsyncFromSyncIterator$1 = asyncFromSyncIterator; +var aFunction$x = aFunction$S; +var anObject$Z = anObject$1B; +var getIterator$5 = getIterator$9; +var getMethod$2 = getMethod$4; +var wellKnownSymbol$7 = wellKnownSymbol$F; + +var ASYNC_ITERATOR$1 = wellKnownSymbol$7('asyncIterator'); -var getAsyncIteratorMethod$2 = function (it) { - var method = it[ASYNC_ITERATOR]; - return method === undefined ? getIteratorMethod$4(it) : method; +var getAsyncIterator$2 = function (it, usingIterator) { + var method = arguments.length < 2 ? getMethod$2(it[ASYNC_ITERATOR$1]) : usingIterator; + if (method === undefined) { + return new AsyncFromSyncIterator$1(getIterator$5(it)); + } return anObject$Z(aFunction$x(method).call(it)); }; // https://github.com/tc39/proposal-iterator-helpers var $$1J = _export; -var aFunction$y = aFunction$S; -var anObject$Z = anObject$1z; +var aFunction$w = aFunction$S; +var anObject$Y = anObject$1B; var createAsyncIteratorProxy$3 = asyncIteratorCreateProxy; -var getAsyncIteratorMethod$1 = getAsyncIteratorMethod$2; +var getAsyncIterator$1 = getAsyncIterator$2; -var AsyncIteratorProxy$3 = createAsyncIteratorProxy$3(function (arg, Promise) { +var AsyncIteratorProxy$3 = createAsyncIteratorProxy$3(function (Promise) { var state = this; var mapper = state.mapper; - var innerIterator, iteratorMethod; + var innerIterator; return new Promise(function (resolve, reject) { var outerLoop = function () { try { - Promise.resolve(anObject$Z(state.next.call(state.iterator, arg))).then(function (step) { + Promise.resolve(anObject$Y(state.next.call(state.iterator))).then(function (step) { try { - if (anObject$Z(step).done) { + if (anObject$Y(step).done) { state.done = true; resolve({ done: true, value: undefined }); } else { Promise.resolve(mapper(step.value)).then(function (mapped) { try { - iteratorMethod = getAsyncIteratorMethod$1(mapped); - if (iteratorMethod !== undefined) { - state.innerIterator = innerIterator = anObject$Z(iteratorMethod.call(mapped)); - state.innerNext = aFunction$y(innerIterator.next); - return innerLoop(); - } reject(TypeError('.flatMap callback should return an iterable object')); + state.innerIterator = innerIterator = getAsyncIterator$1(mapped); + state.innerNext = aFunction$w(innerIterator.next); + return innerLoop(); } catch (error2) { reject(error2); } }, reject); } @@ -9757,9 +10379,9 @@ var AsyncIteratorProxy$3 = createAsyncIteratorProxy$3(function (arg, Promise) { var innerLoop = function () { if (innerIterator = state.innerIterator) { try { - Promise.resolve(anObject$Z(state.innerNext.call(innerIterator))).then(function (result) { + Promise.resolve(anObject$Y(state.innerNext.call(innerIterator))).then(function (result) { try { - if (anObject$Z(result).done) { + if (anObject$Y(result).done) { state.innerIterator = state.innerNext = null; outerLoop(); } else resolve({ done: false, value: result.value }); @@ -9776,8 +10398,8 @@ var AsyncIteratorProxy$3 = createAsyncIteratorProxy$3(function (arg, Promise) { $$1J({ target: 'AsyncIterator', proto: true, real: true }, { flatMap: function flatMap(mapper) { return new AsyncIteratorProxy$3({ - iterator: anObject$Z(this), - mapper: aFunction$y(mapper), + iterator: anObject$Y(this), + mapper: aFunction$w(mapper), innerIterator: null, innerNext: null }); @@ -9797,46 +10419,55 @@ $$1I({ target: 'AsyncIterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1H = _export; var path$2 = path$6; -var aFunction$x = aFunction$S; -var anObject$Y = anObject$1z; -var toObject$2 = toObject$w; +var anObject$X = anObject$1B; +var toObject$2 = toObject$x; var createAsyncIteratorProxy$2 = asyncIteratorCreateProxy; -var getAsyncIteratorMethod = getAsyncIteratorMethod$2; +var getAsyncIterator = getAsyncIterator$2; +var getIterator$4 = getIterator$9; +var getIteratorMethod$3 = getIteratorMethod$8; +var getMethod$1 = getMethod$4; +var wellKnownSymbol$6 = wellKnownSymbol$F; +var AsyncFromSyncIterator = asyncFromSyncIterator; + +var ASYNC_ITERATOR = wellKnownSymbol$6('asyncIterator'); var AsyncIterator = path$2.AsyncIterator; -var AsyncIteratorProxy$2 = createAsyncIteratorProxy$2(function (arg) { - return anObject$Y(this.next.call(this.iterator, arg)); +var AsyncIteratorProxy$2 = createAsyncIteratorProxy$2(function (Promise, args) { + return anObject$X(this.next.apply(this.iterator, args)); }, true); $$1H({ target: 'AsyncIterator', stat: true }, { from: function from(O) { var object = toObject$2(O); - var usingIterator = getAsyncIteratorMethod(object); + var usingIterator = getMethod$1(object[ASYNC_ITERATOR]); var iterator; - if (usingIterator != null) { - iterator = aFunction$x(usingIterator).call(object); + if (usingIterator !== undefined) { + iterator = getAsyncIterator(object, usingIterator); if (iterator instanceof AsyncIterator) return iterator; - } else { - iterator = object; - } return new AsyncIteratorProxy$2({ - iterator: iterator + } + if (iterator === undefined) { + usingIterator = getIteratorMethod$3(object); + if (usingIterator !== undefined) return new AsyncFromSyncIterator(getIterator$4(object, usingIterator)); + } + return new AsyncIteratorProxy$2({ + iterator: iterator !== undefined ? iterator : object }); } }); // https://github.com/tc39/proposal-iterator-helpers var $$1G = _export; -var aFunction$w = aFunction$S; -var anObject$X = anObject$1z; +var aFunction$v = aFunction$S; +var anObject$W = anObject$1B; var createAsyncIteratorProxy$1 = asyncIteratorCreateProxy; -var AsyncIteratorProxy$1 = createAsyncIteratorProxy$1(function (arg, Promise) { +var AsyncIteratorProxy$1 = createAsyncIteratorProxy$1(function (Promise, args) { var state = this; var mapper = state.mapper; - return Promise.resolve(anObject$X(state.next.call(state.iterator, arg))).then(function (step) { - if (anObject$X(step).done) { + return Promise.resolve(anObject$W(state.next.apply(state.iterator, args))).then(function (step) { + if (anObject$W(step).done) { state.done = true; return { done: true, value: undefined }; } @@ -9849,34 +10480,34 @@ var AsyncIteratorProxy$1 = createAsyncIteratorProxy$1(function (arg, Promise) { $$1G({ target: 'AsyncIterator', proto: true, real: true }, { map: function map(mapper) { return new AsyncIteratorProxy$1({ - iterator: anObject$X(this), - mapper: aFunction$w(mapper) + iterator: anObject$W(this), + mapper: aFunction$v(mapper) }); } }); // https://github.com/tc39/proposal-iterator-helpers var $$1F = _export; -var aFunction$v = aFunction$S; -var anObject$W = anObject$1z; -var getBuiltIn$d = getBuiltIn$t; +var aFunction$u = aFunction$S; +var anObject$V = anObject$1B; +var getBuiltIn$d = getBuiltIn$v; var Promise$1 = getBuiltIn$d('Promise'); $$1F({ target: 'AsyncIterator', proto: true, real: true }, { reduce: function reduce(reducer /* , initialValue */) { - var iterator = anObject$W(this); - var next = aFunction$v(iterator.next); + var iterator = anObject$V(this); + var next = aFunction$u(iterator.next); var noInitial = arguments.length < 2; var accumulator = noInitial ? undefined : arguments[1]; - aFunction$v(reducer); + aFunction$u(reducer); return new Promise$1(function (resolve, reject) { var loop = function () { try { - Promise$1.resolve(anObject$W(next.call(iterator))).then(function (step) { + Promise$1.resolve(anObject$V(next.call(iterator))).then(function (step) { try { - if (anObject$W(step).done) { + if (anObject$V(step).done) { noInitial ? reject(TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator); } else { var value = step.value; @@ -9913,11 +10544,11 @@ $$1E({ target: 'AsyncIterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1D = _export; -var anObject$V = anObject$1z; +var anObject$U = anObject$1B; var toPositiveInteger$2 = toPositiveInteger$5; var createAsyncIteratorProxy = asyncIteratorCreateProxy; -var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) { +var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { var iterator = this.iterator; var returnMethod, result; if (!this.remaining--) { @@ -9930,13 +10561,13 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) { }); } return result; - } return this.next.call(iterator, arg); + } return this.next.apply(iterator, args); }); $$1D({ target: 'AsyncIterator', proto: true, real: true }, { take: function take(limit) { return new AsyncIteratorProxy({ - iterator: anObject$V(this), + iterator: anObject$U(this), remaining: toPositiveInteger$2(limit) }); } @@ -9954,7 +10585,7 @@ $$1C({ target: 'AsyncIterator', proto: true, real: true }, { var InternalStateModule$7 = internalState; var createIteratorConstructor$4 = createIteratorConstructor$7; -var isObject$3 = isObject$B; +var isObject$3 = isObject$C; var defineProperties$1 = objectDefineProperties; var DESCRIPTORS$2 = descriptors; @@ -10071,8 +10702,8 @@ if (typeof BigInt == 'function') { // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` var Map$2 = es_map; var WeakMap$1 = es_weakMap.exports; -var create$3 = objectCreate; -var isObject$2 = isObject$B; +var create$3 = objectCreate$1; +var isObject$2 = isObject$C; var Node = function () { // keys @@ -10114,8 +10745,8 @@ var compositeKey = function () { var $$1A = _export; var getCompositeKeyNode$1 = compositeKey; -var getBuiltIn$c = getBuiltIn$t; -var create$2 = objectCreate; +var getBuiltIn$c = getBuiltIn$v; +var create$2 = objectCreate$1; var initializer = function () { var freeze = getBuiltIn$c('Object', 'freeze'); @@ -10131,7 +10762,7 @@ $$1A({ global: true }, { var $$1z = _export; var getCompositeKeyNode = compositeKey; -var getBuiltIn$b = getBuiltIn$t; +var getBuiltIn$b = getBuiltIn$v; // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey $$1z({ global: true }, { @@ -10143,12 +10774,12 @@ $$1z({ global: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1y = _export; -var global$7 = global$M; +var global$7 = global$Q; var anInstance$3 = anInstance$b; var createNonEnumerableProperty$4 = createNonEnumerableProperty$m; -var fails$2 = fails$X; +var fails$2 = fails$11; var has$2 = has$n; -var wellKnownSymbol$5 = wellKnownSymbol$C; +var wellKnownSymbol$5 = wellKnownSymbol$F; var IteratorPrototype = iteratorsCore.IteratorPrototype; wellKnownSymbol$5('iterator'); @@ -10181,12 +10812,12 @@ $$1y({ global: true, forced: FORCED$2 }, { }); var path$1 = path$6; -var aFunction$u = aFunction$S; -var anObject$U = anObject$1z; -var create$1 = objectCreate; +var aFunction$t = aFunction$S; +var anObject$T = anObject$1B; +var create$1 = objectCreate$1; var createNonEnumerableProperty$3 = createNonEnumerableProperty$m; -var redefineAll$2 = redefineAll$9; -var wellKnownSymbol$4 = wellKnownSymbol$C; +var redefineAll$2 = redefineAll$a; +var wellKnownSymbol$4 = wellKnownSymbol$F; var InternalStateModule$6 = internalState; var setInternalState$6 = InternalStateModule$6.set; @@ -10194,34 +10825,33 @@ var getInternalState$4 = InternalStateModule$6.get; var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); -var $return = function (value) { - var iterator = getInternalState$4(this).iterator; - var $$return = iterator['return']; - return $$return === undefined ? { done: true, value: value } : anObject$U($$return.call(iterator, value)); -}; - -var $throw = function (value) { - var iterator = getInternalState$4(this).iterator; - var $$throw = iterator['throw']; - if ($$throw === undefined) throw value; - return $$throw.call(iterator, value); -}; - var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) { var IteratorProxy = function Iterator(state) { - state.next = aFunction$u(state.iterator.next); + state.next = aFunction$t(state.iterator.next); state.done = false; + state.ignoreArg = !IS_ITERATOR; setInternalState$6(this, state); }; IteratorProxy.prototype = redefineAll$2(create$1(path$1.Iterator.prototype), { - next: function next() { + next: function next(arg) { var state = getInternalState$4(this); - var result = state.done ? undefined : nextHandler.apply(state, arguments); + var args = arguments.length ? [state.ignoreArg ? undefined : arg] : IS_ITERATOR ? [] : [undefined]; + state.ignoreArg = false; + var result = state.done ? undefined : nextHandler.call(state, args); return { done: state.done, value: result }; }, - 'return': $return, - 'throw': $throw + 'return': function (value) { + var iterator = getInternalState$4(this).iterator; + var $$return = iterator['return']; + return { done: true, value: $$return === undefined ? value : anObject$T($$return.call(iterator, value)).value }; + }, + 'throw': function (value) { + var iterator = getInternalState$4(this).iterator; + var $$throw = iterator['throw']; + if ($$throw === undefined) throw value; + return $$throw.call(iterator, value); + } }); if (!IS_ITERATOR) { @@ -10233,11 +10863,11 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) { // https://github.com/tc39/proposal-iterator-helpers var $$1x = _export; -var anObject$T = anObject$1z; +var anObject$S = anObject$1B; var createIteratorProxy$6 = iteratorCreateProxy; -var IteratorProxy$6 = createIteratorProxy$6(function (arg) { - var result = anObject$T(this.next.call(this.iterator, arg)); +var IteratorProxy$6 = createIteratorProxy$6(function (args) { + var result = anObject$S(this.next.apply(this.iterator, args)); var done = this.done = !!result.done; if (!done) return [this.index++, result.value]; }); @@ -10245,7 +10875,7 @@ var IteratorProxy$6 = createIteratorProxy$6(function (arg) { $$1x({ target: 'Iterator', proto: true, real: true }, { asIndexedPairs: function asIndexedPairs() { return new IteratorProxy$6({ - iterator: anObject$T(this), + iterator: anObject$S(this), index: 0 }); } @@ -10253,21 +10883,21 @@ $$1x({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1w = _export; -var anObject$S = anObject$1z; +var anObject$R = anObject$1B; var toPositiveInteger$1 = toPositiveInteger$5; var createIteratorProxy$5 = iteratorCreateProxy; -var IteratorProxy$5 = createIteratorProxy$5(function (arg) { +var IteratorProxy$5 = createIteratorProxy$5(function (args) { var iterator = this.iterator; var next = this.next; var result, done; while (this.remaining) { this.remaining--; - result = anObject$S(next.call(iterator)); + result = anObject$R(next.call(iterator)); done = this.done = !!result.done; if (done) return; } - result = anObject$S(next.call(iterator, arg)); + result = anObject$R(next.apply(iterator, args)); done = this.done = !!result.done; if (!done) return result.value; }); @@ -10275,7 +10905,7 @@ var IteratorProxy$5 = createIteratorProxy$5(function (arg) { $$1w({ target: 'Iterator', proto: true, real: true }, { drop: function drop(limit) { return new IteratorProxy$5({ - iterator: anObject$S(this), + iterator: anObject$R(this), remaining: toPositiveInteger$1(limit) }); } @@ -10284,13 +10914,13 @@ $$1w({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1v = _export; var iterate$z = iterate$I; -var aFunction$t = aFunction$S; -var anObject$R = anObject$1z; +var aFunction$s = aFunction$S; +var anObject$Q = anObject$1B; $$1v({ target: 'Iterator', proto: true, real: true }, { every: function every(fn) { - anObject$R(this); - aFunction$t(fn); + anObject$Q(this); + aFunction$s(fn); return !iterate$z(this, function (value, stop) { if (!fn(value)) return stop(); }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped; @@ -10299,18 +10929,18 @@ $$1v({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1u = _export; -var aFunction$s = aFunction$S; -var anObject$Q = anObject$1z; +var aFunction$r = aFunction$S; +var anObject$P = anObject$1B; var createIteratorProxy$4 = iteratorCreateProxy; var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3; -var IteratorProxy$4 = createIteratorProxy$4(function (arg) { +var IteratorProxy$4 = createIteratorProxy$4(function (args) { var iterator = this.iterator; var filterer = this.filterer; var next = this.next; var result, done, value; while (true) { - result = anObject$Q(next.call(iterator, arg)); + result = anObject$P(next.apply(iterator, args)); done = this.done = !!result.done; if (done) return; value = result.value; @@ -10321,8 +10951,8 @@ var IteratorProxy$4 = createIteratorProxy$4(function (arg) { $$1u({ target: 'Iterator', proto: true, real: true }, { filter: function filter(filterer) { return new IteratorProxy$4({ - iterator: anObject$Q(this), - filterer: aFunction$s(filterer) + iterator: anObject$P(this), + filterer: aFunction$r(filterer) }); } }); @@ -10330,13 +10960,13 @@ $$1u({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1t = _export; var iterate$y = iterate$I; -var aFunction$r = aFunction$S; -var anObject$P = anObject$1z; +var aFunction$q = aFunction$S; +var anObject$O = anObject$1B; $$1t({ target: 'Iterator', proto: true, real: true }, { find: function find(fn) { - anObject$P(this); - aFunction$r(fn); + anObject$O(this); + aFunction$q(fn); return iterate$y(this, function (value, stop) { if (fn(value)) return stop(value); }, { IS_ITERATOR: true, INTERRUPTED: true }).result; @@ -10345,13 +10975,13 @@ $$1t({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1s = _export; -var aFunction$q = aFunction$S; -var anObject$O = anObject$1z; -var getIteratorMethod$3 = getIteratorMethod$8; +var aFunction$p = aFunction$S; +var anObject$N = anObject$1B; +var getIteratorMethod$2 = getIteratorMethod$8; var createIteratorProxy$3 = iteratorCreateProxy; var iteratorClose$1 = iteratorClose$4; -var IteratorProxy$3 = createIteratorProxy$3(function (arg) { +var IteratorProxy$3 = createIteratorProxy$3(function () { var iterator = this.iterator; var mapper = this.mapper; var result, mapped, iteratorMethod, innerIterator; @@ -10359,27 +10989,26 @@ var IteratorProxy$3 = createIteratorProxy$3(function (arg) { while (true) { try { if (innerIterator = this.innerIterator) { - result = anObject$O(this.innerNext.call(innerIterator)); + result = anObject$N(this.innerNext.call(innerIterator)); if (!result.done) return result.value; this.innerIterator = this.innerNext = null; } - result = anObject$O(this.next.call(iterator, arg)); + result = anObject$N(this.next.call(iterator)); if (this.done = !!result.done) return; mapped = mapper(result.value); - iteratorMethod = getIteratorMethod$3(mapped); + iteratorMethod = getIteratorMethod$2(mapped); if (iteratorMethod === undefined) { throw TypeError('.flatMap callback should return an iterable object'); } - this.innerIterator = innerIterator = anObject$O(iteratorMethod.call(mapped)); - this.innerNext = aFunction$q(innerIterator.next); + this.innerIterator = innerIterator = anObject$N(iteratorMethod.call(mapped)); + this.innerNext = aFunction$p(innerIterator.next); } catch (error) { - iteratorClose$1(iterator); - throw error; + iteratorClose$1(iterator, 'throw', error); } } }); @@ -10387,8 +11016,8 @@ var IteratorProxy$3 = createIteratorProxy$3(function (arg) { $$1s({ target: 'Iterator', proto: true, real: true }, { flatMap: function flatMap(mapper) { return new IteratorProxy$3({ - iterator: anObject$O(this), - mapper: aFunction$q(mapper), + iterator: anObject$N(this), + mapper: aFunction$p(mapper), innerIterator: null, innerNext: null }); @@ -10398,27 +11027,27 @@ $$1s({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1r = _export; var iterate$x = iterate$I; -var anObject$N = anObject$1z; +var anObject$M = anObject$1B; $$1r({ target: 'Iterator', proto: true, real: true }, { forEach: function forEach(fn) { - iterate$x(anObject$N(this), fn, { IS_ITERATOR: true }); + iterate$x(anObject$M(this), fn, { IS_ITERATOR: true }); } }); // https://github.com/tc39/proposal-iterator-helpers var $$1q = _export; var path = path$6; -var aFunction$p = aFunction$S; -var anObject$M = anObject$1z; -var toObject$1 = toObject$w; +var anObject$L = anObject$1B; +var toObject$1 = toObject$x; var createIteratorProxy$2 = iteratorCreateProxy; -var getIteratorMethod$2 = getIteratorMethod$8; +var getIterator$3 = getIterator$9; +var getIteratorMethod$1 = getIteratorMethod$8; var Iterator = path.Iterator; -var IteratorProxy$2 = createIteratorProxy$2(function (arg) { - var result = anObject$M(this.next.call(this.iterator, arg)); +var IteratorProxy$2 = createIteratorProxy$2(function (args) { + var result = anObject$L(this.next.apply(this.iterator, args)); var done = this.done = !!result.done; if (!done) return result.value; }, true); @@ -10426,10 +11055,10 @@ var IteratorProxy$2 = createIteratorProxy$2(function (arg) { $$1q({ target: 'Iterator', stat: true }, { from: function from(O) { var object = toObject$1(O); - var usingIterator = getIteratorMethod$2(object); + var usingIterator = getIteratorMethod$1(object); var iterator; if (usingIterator != null) { - iterator = aFunction$p(usingIterator).call(object); + iterator = getIterator$3(object, usingIterator); if (iterator instanceof Iterator) return iterator; } else { iterator = object; @@ -10442,13 +11071,13 @@ $$1q({ target: 'Iterator', stat: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1p = _export; var aFunction$o = aFunction$S; -var anObject$L = anObject$1z; +var anObject$K = anObject$1B; var createIteratorProxy$1 = iteratorCreateProxy; var callWithSafeIterationClosing = callWithSafeIterationClosing$3; -var IteratorProxy$1 = createIteratorProxy$1(function (arg) { +var IteratorProxy$1 = createIteratorProxy$1(function (args) { var iterator = this.iterator; - var result = anObject$L(this.next.call(iterator, arg)); + var result = anObject$K(this.next.apply(iterator, args)); var done = this.done = !!result.done; if (!done) return callWithSafeIterationClosing(iterator, this.mapper, result.value); }); @@ -10456,7 +11085,7 @@ var IteratorProxy$1 = createIteratorProxy$1(function (arg) { $$1p({ target: 'Iterator', proto: true, real: true }, { map: function map(mapper) { return new IteratorProxy$1({ - iterator: anObject$L(this), + iterator: anObject$K(this), mapper: aFunction$o(mapper) }); } @@ -10466,11 +11095,11 @@ $$1p({ target: 'Iterator', proto: true, real: true }, { var $$1o = _export; var iterate$w = iterate$I; var aFunction$n = aFunction$S; -var anObject$K = anObject$1z; +var anObject$J = anObject$1B; $$1o({ target: 'Iterator', proto: true, real: true }, { reduce: function reduce(reducer /* , initialValue */) { - anObject$K(this); + anObject$J(this); aFunction$n(reducer); var noInitial = arguments.length < 2; var accumulator = noInitial ? undefined : arguments[1]; @@ -10491,11 +11120,11 @@ $$1o({ target: 'Iterator', proto: true, real: true }, { var $$1n = _export; var iterate$v = iterate$I; var aFunction$m = aFunction$S; -var anObject$J = anObject$1z; +var anObject$I = anObject$1B; $$1n({ target: 'Iterator', proto: true, real: true }, { some: function some(fn) { - anObject$J(this); + anObject$I(this); aFunction$m(fn); return iterate$v(this, function (value, stop) { if (fn(value)) return stop(); @@ -10505,18 +11134,18 @@ $$1n({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1m = _export; -var anObject$I = anObject$1z; +var anObject$H = anObject$1B; var toPositiveInteger = toPositiveInteger$5; var createIteratorProxy = iteratorCreateProxy; var iteratorClose = iteratorClose$4; -var IteratorProxy = createIteratorProxy(function (arg) { +var IteratorProxy = createIteratorProxy(function (args) { var iterator = this.iterator; if (!this.remaining--) { this.done = true; - return iteratorClose(iterator); + return iteratorClose(iterator, 'return', undefined); } - var result = anObject$I(this.next.call(iterator, arg)); + var result = anObject$H(this.next.apply(iterator, args)); var done = this.done = !!result.done; if (!done) return result.value; }); @@ -10524,7 +11153,7 @@ var IteratorProxy = createIteratorProxy(function (arg) { $$1m({ target: 'Iterator', proto: true, real: true }, { take: function take(limit) { return new IteratorProxy({ - iterator: anObject$I(this), + iterator: anObject$H(this), remaining: toPositiveInteger(limit) }); } @@ -10533,24 +11162,24 @@ $$1m({ target: 'Iterator', proto: true, real: true }, { // https://github.com/tc39/proposal-iterator-helpers var $$1l = _export; var iterate$u = iterate$I; -var anObject$H = anObject$1z; +var anObject$G = anObject$1B; var push = [].push; $$1l({ target: 'Iterator', proto: true, real: true }, { toArray: function toArray() { var result = []; - iterate$u(anObject$H(this), push, { that: result, IS_ITERATOR: true }); + iterate$u(anObject$G(this), push, { that: result, IS_ITERATOR: true }); return result; } }); -var anObject$G = anObject$1z; +var anObject$F = anObject$1B; var aFunction$l = aFunction$S; // https://github.com/tc39/collection-methods var collectionDeleteAll$4 = function (/* ...elements */) { - var collection = anObject$G(this); + var collection = anObject$F(this); var remover = aFunction$l(collection['delete']); var allDeleted = true; var wasDeleted; @@ -10573,12 +11202,12 @@ $$1k({ target: 'Map', proto: true, real: true, forced: IS_PURE$B }, { } }); -var anObject$F = anObject$1z; +var anObject$E = anObject$1B; // `Map.prototype.emplace` method // https://github.com/thumbsupep/proposal-upsert var mapEmplace = function emplace(key, handler) { - var map = anObject$F(this); + var map = anObject$E(this); var value = (map.has(key) && 'update' in handler) ? handler.update(map.get(key), key, map) : handler.insert(key, map); @@ -10596,16 +11225,6 @@ $$1j({ target: 'Map', proto: true, real: true, forced: IS_PURE$A }, { emplace: $emplace$1 }); -var anObject$E = anObject$1z; -var getIteratorMethod$1 = getIteratorMethod$8; - -var getIterator$3 = function (it) { - var iteratorMethod = getIteratorMethod$1(it); - if (typeof iteratorMethod != 'function') { - throw TypeError(String(it) + ' is not iterable'); - } return anObject$E(iteratorMethod.call(it)); -}; - var getMapIterator$a = function (it) { // eslint-disable-next-line es/no-map -- safe return Map.prototype.entries.call(it); @@ -10613,7 +11232,7 @@ var getMapIterator$a = function (it) { var $$1i = _export; var IS_PURE$z = isPure; -var anObject$D = anObject$1z; +var anObject$D = anObject$1B; var bind$d = functionBindContext; var getMapIterator$9 = getMapIterator$a; var iterate$t = iterate$I; @@ -10633,11 +11252,11 @@ $$1i({ target: 'Map', proto: true, real: true, forced: IS_PURE$z }, { var $$1h = _export; var IS_PURE$y = isPure; -var getBuiltIn$a = getBuiltIn$t; -var anObject$C = anObject$1z; +var getBuiltIn$a = getBuiltIn$v; +var anObject$C = anObject$1B; var aFunction$k = aFunction$S; var bind$c = functionBindContext; -var speciesConstructor$8 = speciesConstructor$i; +var speciesConstructor$8 = speciesConstructor$f; var getMapIterator$8 = getMapIterator$a; var iterate$s = iterate$I; @@ -10659,7 +11278,7 @@ $$1h({ target: 'Map', proto: true, real: true, forced: IS_PURE$y }, { var $$1g = _export; var IS_PURE$x = isPure; -var anObject$B = anObject$1z; +var anObject$B = anObject$1B; var bind$b = functionBindContext; var getMapIterator$7 = getMapIterator$a; var iterate$r = iterate$I; @@ -10679,7 +11298,7 @@ $$1g({ target: 'Map', proto: true, real: true, forced: IS_PURE$x }, { var $$1f = _export; var IS_PURE$w = isPure; -var anObject$A = anObject$1z; +var anObject$A = anObject$1B; var bind$a = functionBindContext; var getMapIterator$6 = getMapIterator$a; var iterate$q = iterate$I; @@ -10763,7 +11382,7 @@ var sameValueZero$1 = function (x, y) { var $$1c = _export; var IS_PURE$v = isPure; -var anObject$z = anObject$1z; +var anObject$z = anObject$1B; var getMapIterator$5 = getMapIterator$a; var sameValueZero = sameValueZero$1; var iterate$n = iterate$I; @@ -10798,7 +11417,7 @@ $$1b({ target: 'Map', stat: true }, { var $$1a = _export; var IS_PURE$u = isPure; -var anObject$y = anObject$1z; +var anObject$y = anObject$1B; var getMapIterator$4 = getMapIterator$a; var iterate$l = iterate$I; @@ -10814,11 +11433,11 @@ $$1a({ target: 'Map', proto: true, real: true, forced: IS_PURE$u }, { var $$19 = _export; var IS_PURE$t = isPure; -var getBuiltIn$9 = getBuiltIn$t; -var anObject$x = anObject$1z; +var getBuiltIn$9 = getBuiltIn$v; +var anObject$x = anObject$1B; var aFunction$g = aFunction$S; var bind$8 = functionBindContext; -var speciesConstructor$7 = speciesConstructor$i; +var speciesConstructor$7 = speciesConstructor$f; var getMapIterator$3 = getMapIterator$a; var iterate$k = iterate$I; @@ -10840,11 +11459,11 @@ $$19({ target: 'Map', proto: true, real: true, forced: IS_PURE$t }, { var $$18 = _export; var IS_PURE$s = isPure; -var getBuiltIn$8 = getBuiltIn$t; -var anObject$w = anObject$1z; +var getBuiltIn$8 = getBuiltIn$v; +var anObject$w = anObject$1B; var aFunction$f = aFunction$S; var bind$7 = functionBindContext; -var speciesConstructor$6 = speciesConstructor$i; +var speciesConstructor$6 = speciesConstructor$f; var getMapIterator$2 = getMapIterator$a; var iterate$j = iterate$I; @@ -10866,7 +11485,7 @@ $$18({ target: 'Map', proto: true, real: true, forced: IS_PURE$s }, { var $$17 = _export; var IS_PURE$r = isPure; -var anObject$v = anObject$1z; +var anObject$v = anObject$1B; var aFunction$e = aFunction$S; var iterate$i = iterate$I; @@ -10877,8 +11496,9 @@ $$17({ target: 'Map', proto: true, real: true, forced: IS_PURE$r }, { merge: function merge(iterable /* ...iterbles */) { var map = anObject$v(this); var setter = aFunction$e(map.set); + var argumentsLength = arguments.length; var i = 0; - while (i < arguments.length) { + while (i < argumentsLength) { iterate$i(arguments[i++], setter, { that: map, AS_ENTRIES: true }); } return map; @@ -10904,7 +11524,7 @@ $$16({ target: 'Map', stat: true }, { var $$15 = _export; var IS_PURE$q = isPure; -var anObject$u = anObject$1z; +var anObject$u = anObject$1B; var aFunction$d = aFunction$S; var getMapIterator$1 = getMapIterator$a; var iterate$h = iterate$I; @@ -10933,7 +11553,7 @@ $$15({ target: 'Map', proto: true, real: true, forced: IS_PURE$q }, { var $$14 = _export; var IS_PURE$p = isPure; -var anObject$t = anObject$1z; +var anObject$t = anObject$1B; var bind$6 = functionBindContext; var getMapIterator = getMapIterator$a; var iterate$g = iterate$I; @@ -10953,7 +11573,7 @@ $$14({ target: 'Map', proto: true, real: true, forced: IS_PURE$p }, { var $$13 = _export; var IS_PURE$o = isPure; -var anObject$s = anObject$1z; +var anObject$s = anObject$1B; var aFunction$c = aFunction$S; // `Set.prototype.update` method @@ -10973,7 +11593,7 @@ $$13({ target: 'Map', proto: true, real: true, forced: IS_PURE$o }, { } }); -var anObject$r = anObject$1z; +var anObject$r = anObject$1B; // `Map.prototype.upsert` method // https://github.com/thumbsupep/proposal-upsert @@ -11158,7 +11778,7 @@ $$T({ target: 'Math', stat: true }, { }); var $$S = _export; -var anObject$q = anObject$1z; +var anObject$q = anObject$1B; var numberIsFinite = numberIsFinite$2; var createIteratorConstructor$3 = createIteratorConstructor$7; var InternalStateModule$5 = internalState; @@ -11221,7 +11841,7 @@ $$Q({ target: 'Math', stat: true }, { }); var $$P = _export; -var toInteger$1 = toInteger$f; +var toInteger$1 = toInteger$h; var parseInt$1 = numberParseInt; var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation'; @@ -11274,7 +11894,7 @@ var InternalStateModule$4 = internalState; var createIteratorConstructor$2 = createIteratorConstructor$7; var has$1 = has$n; var objectKeys = objectKeys$5; -var toObject = toObject$w; +var toObject = toObject$x; var OBJECT_ITERATOR = 'Object Iterator'; var setInternalState$4 = InternalStateModule$4.set; @@ -11345,26 +11965,23 @@ var $$J = _export; var DESCRIPTORS$1 = descriptors; var setSpecies = setSpecies$7; var aFunction$b = aFunction$S; -var anObject$p = anObject$1z; -var isObject$1 = isObject$B; +var anObject$p = anObject$1B; +var isObject$1 = isObject$C; var anInstance$2 = anInstance$b; var defineProperty = objectDefineProperty.f; var createNonEnumerableProperty$2 = createNonEnumerableProperty$m; -var redefineAll$1 = redefineAll$9; -var getIterator$2 = getIterator$3; +var redefineAll$1 = redefineAll$a; +var getIterator$2 = getIterator$9; +var getMethod = getMethod$4; var iterate$f = iterate$I; var hostReportErrors = hostReportErrors$2; -var wellKnownSymbol$3 = wellKnownSymbol$C; +var wellKnownSymbol$3 = wellKnownSymbol$F; var InternalStateModule$3 = internalState; var OBSERVABLE = wellKnownSymbol$3('observable'); var getInternalState$1 = InternalStateModule$3.get; var setInternalState$3 = InternalStateModule$3.set; -var getMethod = function (fn) { - return fn == null ? undefined : aFunction$b(fn); -}; - var cleanupSubscription = function (subscriptionState) { var cleanup = subscriptionState.cleanup; if (cleanup) { @@ -11619,7 +12236,7 @@ var reflectMetadata = { var $$H = _export; var ReflectMetadataModule$8 = reflectMetadata; -var anObject$o = anObject$1z; +var anObject$o = anObject$1B; var toMetadataKey$8 = ReflectMetadataModule$8.toKey; var ordinaryDefineOwnMetadata$1 = ReflectMetadataModule$8.set; @@ -11635,7 +12252,7 @@ $$H({ target: 'Reflect', stat: true }, { var $$G = _export; var ReflectMetadataModule$7 = reflectMetadata; -var anObject$n = anObject$1z; +var anObject$n = anObject$1B; var toMetadataKey$7 = ReflectMetadataModule$7.toKey; var getOrCreateMetadataMap = ReflectMetadataModule$7.getMap; @@ -11657,7 +12274,7 @@ $$G({ target: 'Reflect', stat: true }, { var $$F = _export; var ReflectMetadataModule$6 = reflectMetadata; -var anObject$m = anObject$1z; +var anObject$m = anObject$1B; var getPrototypeOf$2 = objectGetPrototypeOf$1; var ordinaryHasOwnMetadata$2 = ReflectMetadataModule$6.has; @@ -11684,7 +12301,7 @@ var $$E = _export; // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` var Set$1 = es_set; var ReflectMetadataModule$5 = reflectMetadata; -var anObject$l = anObject$1z; +var anObject$l = anObject$1B; var getPrototypeOf$1 = objectGetPrototypeOf$1; var iterate$e = iterate$I; @@ -11716,7 +12333,7 @@ $$E({ target: 'Reflect', stat: true }, { var $$D = _export; var ReflectMetadataModule$4 = reflectMetadata; -var anObject$k = anObject$1z; +var anObject$k = anObject$1B; var ordinaryGetOwnMetadata = ReflectMetadataModule$4.get; var toMetadataKey$4 = ReflectMetadataModule$4.toKey; @@ -11732,7 +12349,7 @@ $$D({ target: 'Reflect', stat: true }, { var $$C = _export; var ReflectMetadataModule$3 = reflectMetadata; -var anObject$j = anObject$1z; +var anObject$j = anObject$1B; var ordinaryOwnMetadataKeys = ReflectMetadataModule$3.keys; var toMetadataKey$3 = ReflectMetadataModule$3.toKey; @@ -11748,7 +12365,7 @@ $$C({ target: 'Reflect', stat: true }, { var $$B = _export; var ReflectMetadataModule$2 = reflectMetadata; -var anObject$i = anObject$1z; +var anObject$i = anObject$1B; var getPrototypeOf = objectGetPrototypeOf$1; var ordinaryHasOwnMetadata$1 = ReflectMetadataModule$2.has; @@ -11772,7 +12389,7 @@ $$B({ target: 'Reflect', stat: true }, { var $$A = _export; var ReflectMetadataModule$1 = reflectMetadata; -var anObject$h = anObject$1z; +var anObject$h = anObject$1B; var ordinaryHasOwnMetadata = ReflectMetadataModule$1.has; var toMetadataKey$1 = ReflectMetadataModule$1.toKey; @@ -11788,7 +12405,7 @@ $$A({ target: 'Reflect', stat: true }, { var $$z = _export; var ReflectMetadataModule = reflectMetadata; -var anObject$g = anObject$1z; +var anObject$g = anObject$1B; var toMetadataKey = ReflectMetadataModule.toKey; var ordinaryDefineOwnMetadata = ReflectMetadataModule.set; @@ -11803,7 +12420,7 @@ $$z({ target: 'Reflect', stat: true }, { } }); -var anObject$f = anObject$1z; +var anObject$f = anObject$1B; var aFunction$a = aFunction$S; // https://github.com/tc39/collection-methods @@ -11842,10 +12459,10 @@ $$x({ target: 'Set', proto: true, real: true, forced: IS_PURE$k }, { var $$w = _export; var IS_PURE$j = isPure; -var getBuiltIn$7 = getBuiltIn$t; -var anObject$e = anObject$1z; +var getBuiltIn$7 = getBuiltIn$v; +var anObject$e = anObject$1B; var aFunction$9 = aFunction$S; -var speciesConstructor$5 = speciesConstructor$i; +var speciesConstructor$5 = speciesConstructor$f; var iterate$d = iterate$I; // `Set.prototype.difference` method @@ -11869,7 +12486,7 @@ var getSetIterator$7 = function (it) { var $$v = _export; var IS_PURE$i = isPure; -var anObject$d = anObject$1z; +var anObject$d = anObject$1B; var bind$5 = functionBindContext; var getSetIterator$6 = getSetIterator$7; var iterate$c = iterate$I; @@ -11889,11 +12506,11 @@ $$v({ target: 'Set', proto: true, real: true, forced: IS_PURE$i }, { var $$u = _export; var IS_PURE$h = isPure; -var getBuiltIn$6 = getBuiltIn$t; -var anObject$c = anObject$1z; +var getBuiltIn$6 = getBuiltIn$v; +var anObject$c = anObject$1B; var aFunction$8 = aFunction$S; var bind$4 = functionBindContext; -var speciesConstructor$4 = speciesConstructor$i; +var speciesConstructor$4 = speciesConstructor$f; var getSetIterator$5 = getSetIterator$7; var iterate$b = iterate$I; @@ -11915,7 +12532,7 @@ $$u({ target: 'Set', proto: true, real: true, forced: IS_PURE$h }, { var $$t = _export; var IS_PURE$g = isPure; -var anObject$b = anObject$1z; +var anObject$b = anObject$1B; var bind$3 = functionBindContext; var getSetIterator$4 = getSetIterator$7; var iterate$a = iterate$I; @@ -11944,10 +12561,10 @@ $$s({ target: 'Set', stat: true }, { var $$r = _export; var IS_PURE$f = isPure; -var getBuiltIn$5 = getBuiltIn$t; -var anObject$a = anObject$1z; +var getBuiltIn$5 = getBuiltIn$v; +var anObject$a = anObject$1B; var aFunction$7 = aFunction$S; -var speciesConstructor$3 = speciesConstructor$i; +var speciesConstructor$3 = speciesConstructor$f; var iterate$9 = iterate$I; // `Set.prototype.intersection` method @@ -11967,7 +12584,7 @@ $$r({ target: 'Set', proto: true, real: true, forced: IS_PURE$f }, { var $$q = _export; var IS_PURE$e = isPure; -var anObject$9 = anObject$1z; +var anObject$9 = anObject$1B; var aFunction$6 = aFunction$S; var iterate$8 = iterate$I; @@ -11985,10 +12602,10 @@ $$q({ target: 'Set', proto: true, real: true, forced: IS_PURE$e }, { var $$p = _export; var IS_PURE$d = isPure; -var getBuiltIn$4 = getBuiltIn$t; -var anObject$8 = anObject$1z; +var getBuiltIn$4 = getBuiltIn$v; +var anObject$8 = anObject$1B; var aFunction$5 = aFunction$S; -var getIterator$1 = getIterator$3; +var getIterator$1 = getIterator$9; var iterate$7 = iterate$I; // `Set.prototype.isSubsetOf` method @@ -12010,7 +12627,7 @@ $$p({ target: 'Set', proto: true, real: true, forced: IS_PURE$d }, { var $$o = _export; var IS_PURE$c = isPure; -var anObject$7 = anObject$1z; +var anObject$7 = anObject$1B; var aFunction$4 = aFunction$S; var iterate$6 = iterate$I; @@ -12028,7 +12645,7 @@ $$o({ target: 'Set', proto: true, real: true, forced: IS_PURE$c }, { var $$n = _export; var IS_PURE$b = isPure; -var anObject$6 = anObject$1z; +var anObject$6 = anObject$1B; var getSetIterator$3 = getSetIterator$7; var iterate$5 = iterate$I; @@ -12047,11 +12664,11 @@ $$n({ target: 'Set', proto: true, real: true, forced: IS_PURE$b }, { var $$m = _export; var IS_PURE$a = isPure; -var getBuiltIn$3 = getBuiltIn$t; -var anObject$5 = anObject$1z; +var getBuiltIn$3 = getBuiltIn$v; +var anObject$5 = anObject$1B; var aFunction$3 = aFunction$S; var bind$2 = functionBindContext; -var speciesConstructor$2 = speciesConstructor$i; +var speciesConstructor$2 = speciesConstructor$f; var getSetIterator$2 = getSetIterator$7; var iterate$4 = iterate$I; @@ -12082,7 +12699,7 @@ $$l({ target: 'Set', stat: true }, { var $$k = _export; var IS_PURE$9 = isPure; -var anObject$4 = anObject$1z; +var anObject$4 = anObject$1B; var aFunction$2 = aFunction$S; var getSetIterator$1 = getSetIterator$7; var iterate$3 = iterate$I; @@ -12111,7 +12728,7 @@ $$k({ target: 'Set', proto: true, real: true, forced: IS_PURE$9 }, { var $$j = _export; var IS_PURE$8 = isPure; -var anObject$3 = anObject$1z; +var anObject$3 = anObject$1B; var bind$1 = functionBindContext; var getSetIterator = getSetIterator$7; var iterate$2 = iterate$I; @@ -12131,10 +12748,10 @@ $$j({ target: 'Set', proto: true, real: true, forced: IS_PURE$8 }, { var $$i = _export; var IS_PURE$7 = isPure; -var getBuiltIn$2 = getBuiltIn$t; -var anObject$2 = anObject$1z; +var getBuiltIn$2 = getBuiltIn$v; +var anObject$2 = anObject$1B; var aFunction$1 = aFunction$S; -var speciesConstructor$1 = speciesConstructor$i; +var speciesConstructor$1 = speciesConstructor$f; var iterate$1 = iterate$I; // `Set.prototype.symmetricDifference` method @@ -12154,10 +12771,10 @@ $$i({ target: 'Set', proto: true, real: true, forced: IS_PURE$7 }, { var $$h = _export; var IS_PURE$6 = isPure; -var getBuiltIn$1 = getBuiltIn$t; -var anObject$1 = anObject$1z; +var getBuiltIn$1 = getBuiltIn$v; +var anObject$1 = anObject$1B; var aFunction = aFunction$S; -var speciesConstructor = speciesConstructor$i; +var speciesConstructor = speciesConstructor$f; var iterate = iterate$I; // `Set.prototype.union` method @@ -12173,7 +12790,7 @@ $$h({ target: 'Set', proto: true, real: true, forced: IS_PURE$6 }, { var $$g = _export; var charAt$1 = stringMultibyte.charAt; -var fails$1 = fails$X; +var fails$1 = fails$11; var FORCED$1 = fails$1(function () { return '𠮷'.at(0) !== '𠮷'; @@ -12189,7 +12806,8 @@ $$g({ target: 'String', proto: true, forced: FORCED$1 }, { var $$f = _export; var createIteratorConstructor$1 = createIteratorConstructor$7; -var requireObjectCoercible = requireObjectCoercible$h; +var requireObjectCoercible = requireObjectCoercible$i; +var toString = toString$s; var InternalStateModule$2 = internalState; var StringMultibyteModule = stringMultibyte; @@ -12221,7 +12839,7 @@ var $StringIterator = createIteratorConstructor$1(function StringIterator(string // https://github.com/tc39/proposal-string-prototype-codepoints $$f({ target: 'String', proto: true }, { codePoints: function codePoints() { - return new $StringIterator(String(requireObjectCoercible(this))); + return new $StringIterator(toString(requireObjectCoercible(this))); } }); @@ -12267,59 +12885,88 @@ var defineWellKnownSymbol = defineWellKnownSymbol$l; defineWellKnownSymbol('replaceAll'); -var ArrayBufferViewCore$4 = arrayBufferViewCore; -var toLength = toLength$B; -var toInteger = toInteger$f; +var ArrayBufferViewCore$6 = arrayBufferViewCore; +var toLength = toLength$C; +var toInteger = toInteger$h; -var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray; -var exportTypedArrayMethod$4 = ArrayBufferViewCore$4.exportTypedArrayMethod; +var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray; +var exportTypedArrayMethod$6 = ArrayBufferViewCore$6.exportTypedArrayMethod; // `%TypedArray%.prototype.at` method // https://github.com/tc39/proposal-relative-indexing-method -exportTypedArrayMethod$4('at', function at(index) { - var O = aTypedArray$4(this); +exportTypedArrayMethod$6('at', function at(index) { + var O = aTypedArray$6(this); var len = toLength(O.length); var relativeIndex = toInteger(index); var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; return (k < 0 || k >= len) ? undefined : O[k]; }); -var ArrayBufferViewCore$3 = arrayBufferViewCore; -var $filterOut = arrayIteration.filterOut; -var fromSpeciesAndList$1 = typedArrayFromSpeciesAndList; +// TODO: Remove from `core-js@4` +var ArrayBufferViewCore$5 = arrayBufferViewCore; +var $filterReject$1 = arrayIteration.filterReject; +var fromSpeciesAndList$2 = typedArrayFromSpeciesAndList; -var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray; -var exportTypedArrayMethod$3 = ArrayBufferViewCore$3.exportTypedArrayMethod; +var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray; +var exportTypedArrayMethod$5 = ArrayBufferViewCore$5.exportTypedArrayMethod; // `%TypedArray%.prototype.filterOut` method // https://github.com/tc39/proposal-array-filtering -exportTypedArrayMethod$3('filterOut', function filterOut(callbackfn /* , thisArg */) { - var list = $filterOut(aTypedArray$3(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$5('filterOut', function filterOut(callbackfn /* , thisArg */) { + var list = $filterReject$1(aTypedArray$5(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); + return fromSpeciesAndList$2(this, list); +}); + +var ArrayBufferViewCore$4 = arrayBufferViewCore; +var $filterReject = arrayIteration.filterReject; +var fromSpeciesAndList$1 = typedArrayFromSpeciesAndList; + +var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray; +var exportTypedArrayMethod$4 = ArrayBufferViewCore$4.exportTypedArrayMethod; + +// `%TypedArray%.prototype.filterReject` method +// https://github.com/tc39/proposal-array-filtering +exportTypedArrayMethod$4('filterReject', function filterReject(callbackfn /* , thisArg */) { + var list = $filterReject(aTypedArray$4(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); return fromSpeciesAndList$1(this, list); }); -var ArrayBufferViewCore$2 = arrayBufferViewCore; +var ArrayBufferViewCore$3 = arrayBufferViewCore; var $findLast = arrayIterationFromLast.findLast; +var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray; +var exportTypedArrayMethod$3 = ArrayBufferViewCore$3.exportTypedArrayMethod; + +// `%TypedArray%.prototype.findLast` method +// https://github.com/tc39/proposal-array-find-from-last +exportTypedArrayMethod$3('findLast', function findLast(predicate /* , thisArg */) { + return $findLast(aTypedArray$3(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +}); + +var ArrayBufferViewCore$2 = arrayBufferViewCore; +var $findLastIndex = arrayIterationFromLast.findLastIndex; + var aTypedArray$2 = ArrayBufferViewCore$2.aTypedArray; var exportTypedArrayMethod$2 = ArrayBufferViewCore$2.exportTypedArrayMethod; -// `%TypedArray%.prototype.findLast` method +// `%TypedArray%.prototype.findLastIndex` method // https://github.com/tc39/proposal-array-find-from-last -exportTypedArrayMethod$2('findLast', function findLast(predicate /* , thisArg */) { - return $findLast(aTypedArray$2(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +exportTypedArrayMethod$2('findLastIndex', function findLastIndex(predicate /* , thisArg */) { + return $findLastIndex(aTypedArray$2(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$1 = arrayBufferViewCore; -var $findLastIndex = arrayIterationFromLast.findLastIndex; +var $groupBy = arrayGroupBy; +var typedArraySpeciesConstructor = typedArraySpeciesConstructor$5; var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray; var exportTypedArrayMethod$1 = ArrayBufferViewCore$1.exportTypedArrayMethod; -// `%TypedArray%.prototype.findLastIndex` method -// https://github.com/tc39/proposal-array-find-from-last -exportTypedArrayMethod$1('findLastIndex', function findLastIndex(predicate /* , thisArg */) { - return $findLastIndex(aTypedArray$1(this), predicate, arguments.length > 1 ? arguments[1] : undefined); +// `%TypedArray%.prototype.groupBy` method +// https://github.com/tc39/proposal-array-grouping +exportTypedArrayMethod$1('groupBy', function groupBy(callbackfn /* , thisArg */) { + var thisArg = arguments.length > 1 ? arguments[1] : undefined; + return $groupBy(aTypedArray$1(this), callbackfn, thisArg, typedArraySpeciesConstructor); }); var ArrayBufferViewCore = arrayBufferViewCore; @@ -12464,7 +13111,7 @@ var domIterables = { TouchList: 0 }; -var global$6 = global$M; +var global$6 = global$Q; var DOMIterables$1 = domIterables; var forEach = arrayForEach; var createNonEnumerableProperty$1 = createNonEnumerableProperty$m; @@ -12480,11 +13127,11 @@ for (var COLLECTION_NAME$1 in DOMIterables$1) { } } -var global$5 = global$M; +var global$5 = global$Q; var DOMIterables = domIterables; var ArrayIteratorMethods = es_array_iterator; var createNonEnumerableProperty = createNonEnumerableProperty$m; -var wellKnownSymbol$2 = wellKnownSymbol$C; +var wellKnownSymbol$2 = wellKnownSymbol$F; var ITERATOR$2 = wellKnownSymbol$2('iterator'); var TO_STRING_TAG = wellKnownSymbol$2('toStringTag'); @@ -12515,7 +13162,7 @@ for (var COLLECTION_NAME in DOMIterables) { } var $$5 = _export; -var global$4 = global$M; +var global$4 = global$Q; var task = task$2; var FORCED = !global$4.setImmediate || !global$4.clearImmediate; @@ -12531,7 +13178,7 @@ $$5({ global: true, bind: true, enumerable: true, forced: FORCED }, { }); var $$4 = _export; -var global$3 = global$M; +var global$3 = global$Q; var microtask = microtask$2; var IS_NODE = engineIsNode; @@ -12547,7 +13194,7 @@ $$4({ global: true, enumerable: true, noTargetGet: true }, { }); var $$3 = _export; -var global$2 = global$M; +var global$2 = global$Q; var userAgent = engineUserAgent; var slice = [].slice; @@ -12575,8 +13222,8 @@ $$3({ global: true, bind: true, forced: MSIE }, { setInterval: wrap(global$2.setInterval) }); -var fails = fails$X; -var wellKnownSymbol$1 = wellKnownSymbol$C; +var fails = fails$11; +var wellKnownSymbol$1 = wellKnownSymbol$F; var IS_PURE = isPure; var ITERATOR$1 = wellKnownSymbol$1('iterator'); @@ -12780,10 +13427,10 @@ var stringPunycodeToAscii = function (input) { // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` var $$2 = _export; -var getBuiltIn = getBuiltIn$t; +var getBuiltIn = getBuiltIn$v; var USE_NATIVE_URL$1 = nativeUrl; var redefine$1 = redefine$g.exports; -var redefineAll = redefineAll$9; +var redefineAll = redefineAll$a; var setToStringTag$1 = setToStringTag$b; var createIteratorConstructor = createIteratorConstructor$7; var InternalStateModule$1 = internalState; @@ -12791,15 +13438,18 @@ var anInstance$1 = anInstance$b; var hasOwn = has$n; var bind = functionBindContext; var classof = classof$b; -var anObject = anObject$1z; -var isObject = isObject$B; -var create = objectCreate; +var anObject = anObject$1B; +var isObject = isObject$C; +var $toString$1 = toString$s; +var create = objectCreate$1; var createPropertyDescriptor = createPropertyDescriptor$9; -var getIterator = getIterator$3; +var getIterator = getIterator$9; var getIteratorMethod = getIteratorMethod$8; -var wellKnownSymbol = wellKnownSymbol$C; +var wellKnownSymbol = wellKnownSymbol$F; -var $fetch = getBuiltIn('fetch'); +var nativeFetch = getBuiltIn('fetch'); +var NativeRequest = getBuiltIn('Request'); +var RequestPrototype = NativeRequest && NativeRequest.prototype; var Headers = getBuiltIn('Headers'); var ITERATOR = wellKnownSymbol('iterator'); var URL_SEARCH_PARAMS = 'URLSearchParams'; @@ -12918,7 +13568,7 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) { if (isObject(init)) { iteratorMethod = getIteratorMethod(init); if (typeof iteratorMethod === 'function') { - iterator = iteratorMethod.call(init); + iterator = getIterator(init, iteratorMethod); next = iterator.next; while (!(step = next.call(iterator)).done) { entryIterator = getIterator(anObject(step.value)); @@ -12928,11 +13578,14 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) { (second = entryNext.call(entryIterator)).done || !entryNext.call(entryIterator).done ) throw TypeError('Expected sequence with length 2'); - entries.push({ key: first.value + '', value: second.value + '' }); + entries.push({ key: $toString$1(first.value), value: $toString$1(second.value) }); } - } else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' }); + } else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: $toString$1(init[key]) }); } else { - parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + ''); + parseSearchParams( + entries, + typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : $toString$1(init) + ); } } }; @@ -12945,7 +13598,7 @@ redefineAll(URLSearchParamsPrototype, { append: function append(name, value) { validateArgumentsLength(arguments.length, 2); var state = getInternalParamsState(this); - state.entries.push({ key: name + '', value: value + '' }); + state.entries.push({ key: $toString$1(name), value: $toString$1(value) }); state.updateURL(); }, // `URLSearchParams.prototype.delete` method @@ -12954,7 +13607,7 @@ redefineAll(URLSearchParamsPrototype, { validateArgumentsLength(arguments.length, 1); var state = getInternalParamsState(this); var entries = state.entries; - var key = name + ''; + var key = $toString$1(name); var index = 0; while (index < entries.length) { if (entries[index].key === key) entries.splice(index, 1); @@ -12967,7 +13620,7 @@ redefineAll(URLSearchParamsPrototype, { get: function get(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; - var key = name + ''; + var key = $toString$1(name); var index = 0; for (; index < entries.length; index++) { if (entries[index].key === key) return entries[index].value; @@ -12979,7 +13632,7 @@ redefineAll(URLSearchParamsPrototype, { getAll: function getAll(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; - var key = name + ''; + var key = $toString$1(name); var result = []; var index = 0; for (; index < entries.length; index++) { @@ -12992,7 +13645,7 @@ redefineAll(URLSearchParamsPrototype, { has: function has(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; - var key = name + ''; + var key = $toString$1(name); var index = 0; while (index < entries.length) { if (entries[index++].key === key) return true; @@ -13006,8 +13659,8 @@ redefineAll(URLSearchParamsPrototype, { var state = getInternalParamsState(this); var entries = state.entries; var found = false; - var key = name + ''; - var val = value + ''; + var key = $toString$1(name); + var val = $toString$1(value); var index = 0; var entry; for (; index < entries.length; index++) { @@ -13091,32 +13744,46 @@ $$2({ global: true, forced: !USE_NATIVE_URL$1 }, { URLSearchParams: URLSearchParamsConstructor }); -// Wrap `fetch` for correct work with polyfilled `URLSearchParams` -// https://github.com/zloirock/core-js/issues/674 -if (!USE_NATIVE_URL$1 && typeof $fetch == 'function' && typeof Headers == 'function') { - $$2({ global: true, enumerable: true, forced: true }, { - fetch: function fetch(input /* , init */) { - var args = [input]; - var init, body, headers; - if (arguments.length > 1) { - init = arguments[1]; - if (isObject(init)) { - body = init.body; - if (classof(body) === URL_SEARCH_PARAMS) { - headers = init.headers ? new Headers(init.headers) : new Headers(); - if (!headers.has('content-type')) { - headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - init = create(init, { - body: createPropertyDescriptor(0, String(body)), - headers: createPropertyDescriptor(0, headers) - }); - } +// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams` +if (!USE_NATIVE_URL$1 && typeof Headers == 'function') { + var wrapRequestOptions = function (init) { + if (isObject(init)) { + var body = init.body; + var headers; + if (classof(body) === URL_SEARCH_PARAMS) { + headers = init.headers ? new Headers(init.headers) : new Headers(); + if (!headers.has('content-type')) { + headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); } - args.push(init); - } return $fetch.apply(this, args); - } - }); + return create(init, { + body: createPropertyDescriptor(0, String(body)), + headers: createPropertyDescriptor(0, headers) + }); + } + } return init; + }; + + if (typeof nativeFetch == 'function') { + $$2({ global: true, enumerable: true, forced: true }, { + fetch: function fetch(input /* , init */) { + return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); + } + }); + } + + if (typeof NativeRequest == 'function') { + var RequestConstructor = function Request(input /* , init */) { + anInstance$1(this, RequestConstructor, 'Request'); + return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); + }; + + RequestPrototype.constructor = RequestConstructor; + RequestConstructor.prototype = RequestPrototype; + + $$2({ global: true, forced: true }, { + Request: RequestConstructor + }); + } } var web_urlSearchParams = { @@ -13129,7 +13796,7 @@ var web_urlSearchParams = { var $$1 = _export; var DESCRIPTORS = descriptors; var USE_NATIVE_URL = nativeUrl; -var global$1 = global$M; +var global$1 = global$Q; var defineProperties = objectDefineProperties; var redefine = redefine$g.exports; var anInstance = anInstance$b; @@ -13138,6 +13805,7 @@ var assign = objectAssign; var arrayFrom = arrayFrom$1; var codeAt = stringMultibyte.codeAt; var toASCII = stringPunycodeToAscii; +var $toString = toString$s; var setToStringTag = setToStringTag$b; var URLSearchParamsModule = web_urlSearchParams; var InternalStateModule = internalState; @@ -13159,14 +13827,14 @@ var ALPHA = /[A-Za-z]/; // eslint-disable-next-line regexp/no-obscure-range -- safe var ALPHANUMERIC = /[\d+-.A-Za-z]/; var DIGIT = /\d/; -var HEX_START = /^(0x|0X)/; +var HEX_START = /^0x/i; var OCT = /^[0-7]+$/; var DEC = /^\d+$/; var HEX = /^[\dA-Fa-f]+$/; /* eslint-disable no-control-regex -- safe */ -var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:?@[\\]]/; -var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:?@[\\]]/; -var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g; +var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/; +var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/; +var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g; var TAB_AND_NEW_LINE = /[\t\n\r]/g; /* eslint-enable no-control-regex -- safe */ var EOF; @@ -13860,13 +14528,13 @@ var parseURL = function (url, input, stateOverride, base) { var URLConstructor = function URL(url /* , base */) { var that = anInstance(this, URLConstructor, 'URL'); var base = arguments.length > 1 ? arguments[1] : undefined; - var urlString = String(url); + var urlString = $toString(url); var state = setInternalState(that, { type: 'URL' }); var baseState, failure; if (base !== undefined) { if (base instanceof URLConstructor) baseState = getInternalURLState(base); else { - failure = parseURL(baseState = {}, String(base)); + failure = parseURL(baseState = {}, $toString(base)); if (failure) throw TypeError(failure); } } @@ -13995,7 +14663,7 @@ if (DESCRIPTORS) { // https://url.spec.whatwg.org/#dom-url-href href: accessorDescriptor(serializeURL, function (href) { var url = getInternalURLState(this); - var urlString = String(href); + var urlString = $toString(href); var failure = parseURL(url, urlString); if (failure) throw TypeError(failure); getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query); @@ -14007,13 +14675,13 @@ if (DESCRIPTORS) { // https://url.spec.whatwg.org/#dom-url-protocol protocol: accessorDescriptor(getProtocol, function (protocol) { var url = getInternalURLState(this); - parseURL(url, String(protocol) + ':', SCHEME_START); + parseURL(url, $toString(protocol) + ':', SCHEME_START); }), // `URL.prototype.username` accessors pair // https://url.spec.whatwg.org/#dom-url-username username: accessorDescriptor(getUsername, function (username) { var url = getInternalURLState(this); - var codePoints = arrayFrom(String(username)); + var codePoints = arrayFrom($toString(username)); if (cannotHaveUsernamePasswordPort(url)) return; url.username = ''; for (var i = 0; i < codePoints.length; i++) { @@ -14024,7 +14692,7 @@ if (DESCRIPTORS) { // https://url.spec.whatwg.org/#dom-url-password password: accessorDescriptor(getPassword, function (password) { var url = getInternalURLState(this); - var codePoints = arrayFrom(String(password)); + var codePoints = arrayFrom($toString(password)); if (cannotHaveUsernamePasswordPort(url)) return; url.password = ''; for (var i = 0; i < codePoints.length; i++) { @@ -14036,21 +14704,21 @@ if (DESCRIPTORS) { host: accessorDescriptor(getHost, function (host) { var url = getInternalURLState(this); if (url.cannotBeABaseURL) return; - parseURL(url, String(host), HOST); + parseURL(url, $toString(host), HOST); }), // `URL.prototype.hostname` accessors pair // https://url.spec.whatwg.org/#dom-url-hostname hostname: accessorDescriptor(getHostname, function (hostname) { var url = getInternalURLState(this); if (url.cannotBeABaseURL) return; - parseURL(url, String(hostname), HOSTNAME); + parseURL(url, $toString(hostname), HOSTNAME); }), // `URL.prototype.port` accessors pair // https://url.spec.whatwg.org/#dom-url-port port: accessorDescriptor(getPort, function (port) { var url = getInternalURLState(this); if (cannotHaveUsernamePasswordPort(url)) return; - port = String(port); + port = $toString(port); if (port == '') url.port = null; else parseURL(url, port, PORT); }), @@ -14060,13 +14728,13 @@ if (DESCRIPTORS) { var url = getInternalURLState(this); if (url.cannotBeABaseURL) return; url.path = []; - parseURL(url, pathname + '', PATH_START); + parseURL(url, $toString(pathname), PATH_START); }), // `URL.prototype.search` accessors pair // https://url.spec.whatwg.org/#dom-url-search search: accessorDescriptor(getSearch, function (search) { var url = getInternalURLState(this); - search = String(search); + search = $toString(search); if (search == '') { url.query = null; } else { @@ -14083,7 +14751,7 @@ if (DESCRIPTORS) { // https://url.spec.whatwg.org/#dom-url-hash hash: accessorDescriptor(getHash, function (hash) { var url = getInternalURLState(this); - hash = String(hash); + hash = $toString(hash); if (hash == '') { url.fragment = null; return;