diff --git a/CHANGELOG.md b/CHANGELOG.md index c7a2e1b8f..71ecfa78e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # rollup changelog +## 4.3.0 + +_2023-11-03_ + +### Features + +- Add `forceExit` CLI flag for situations where the CLI does not exit gracefully (#5195) + +### Bug Fixes + +- Properly catch errors when removing a temporary config file fails (#5198) + +### Pull Requests + +- [#5195](https://github.com/rollup/rollup/pull/5195): Add `forceExit` CLI flag (@raphael-theriault-swi) +- [#5198](https://github.com/rollup/rollup/pull/5198): fix: prevent `ENOENT` error on temp config removal (@jzempel) +- [#5237](https://github.com/rollup/rollup/pull/5237): chore: remove unused files and deps (@TrickyPi) +- [#5238](https://github.com/rollup/rollup/pull/5238): chore(deps): update dependency eslint-plugin-unicorn to v49 (@renovate[bot]) +- [#5239](https://github.com/rollup/rollup/pull/5239): chore(deps): lock file maintenance minor/patch updates (@renovate[bot]) + ## 4.2.0 _2023-10-31_ diff --git a/browser/package.json b/browser/package.json index 9a5d8f5e3..2c1768682 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,6 +1,6 @@ { "name": "@rollup/browser", - "version": "4.2.0", + "version": "4.3.0", "description": "Next-generation ES module bundler browser build", "main": "dist/rollup.browser.js", "module": "dist/es/rollup.browser.js", diff --git a/cli/cli.ts b/cli/cli.ts index b43cc105a..915427485 100644 --- a/cli/cli.ts +++ b/cli/cli.ts @@ -23,5 +23,9 @@ if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) { // do nothing } - run(command); + const promise = run(command); + if (command.forceExit) { + // eslint-disable-next-line unicorn/no-process-exit + promise.then(() => process.exit()); + } } diff --git a/cli/help.md b/cli/help.md index 99ce75d39..a68fac297 100644 --- a/cli/help.md +++ b/cli/help.md @@ -40,6 +40,7 @@ Basic options: --failAfterWarnings Exit with an error if the build produced warnings --filterLogs Filter log messages --footer Code to insert at end of bundle (outside wrapper) +--forceExit Force exit the process when done --no-freeze Do not freeze namespace objects --generatedCode Which code features to use (es5/es2015) --generatedCode.arrowFunctions Use arrow functions in generated code diff --git a/cli/run/loadConfigFile.ts b/cli/run/loadConfigFile.ts index feb08ffdd..4888667dc 100644 --- a/cli/run/loadConfigFile.ts +++ b/cli/run/loadConfigFile.ts @@ -143,8 +143,7 @@ async function loadConfigFromWrittenFile( try { return (await import(pathToFileURL(bundledFileName).href)).default; } finally { - // Not awaiting here saves some ms while potentially hiding a non-critical error - unlink(bundledFileName); + unlink(bundledFileName).catch(error => console.warn(error?.message || error)); } } diff --git a/docs/command-line-interface/index.md b/docs/command-line-interface/index.md index d278dcba6..099da7bf3 100755 --- a/docs/command-line-interface/index.md +++ b/docs/command-line-interface/index.md @@ -555,7 +555,13 @@ rollup -c --filterLogs "code:FOO,message:This is the message" --filterLogs code: 只会展示属性 `log.foo.bar` 的值为 `"value"` 的日志。 -### `-h`/`--help` {#h-help} +### `--forceExit` + +执行完毕后强制退出进程。在某些情况下,插件或其依赖可能无法正确清理并阻止 CLI 进程退出。根本原因可能很难诊断,而此标志提供了一个逃生口,直到找到并解决该问题。 + +请注意,这可能会破坏某些工作流程,并且不一定始终正常工作。 + +### `-h`/`--help` 打印帮助文档。 diff --git a/package-lock.json b/package-lock.json index 513ed85b4..f1a57772d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rollup", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rollup", - "version": "4.2.0", + "version": "4.3.0", "license": "MIT", "bin": { "rollup": "dist/bin/rollup" @@ -19,33 +19,33 @@ "@codemirror/state": "^6.3.1", "@codemirror/view": "^6.21.4", "@jridgewell/sourcemap-codec": "^1.4.15", - "@mermaid-js/mermaid-cli": "^10.5.1", + "@mermaid-js/mermaid-cli": "^10.6.0", "@napi-rs/cli": "^2.16.3", "@rollup/plugin-alias": "^5.0.1", "@rollup/plugin-buble": "^1.0.3", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-json": "^6.0.1", "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-replace": "^5.0.4", + "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "11.1.5", "@rollup/pluginutils": "^5.0.5", - "@types/estree": "1.0.3", + "@types/estree": "1.0.4", "@types/mocha": "^10.0.3", "@types/node": "18.0.0", "@types/yargs-parser": "^21.0.2", - "@typescript-eslint/eslint-plugin": "^6.9.0", - "@typescript-eslint/parser": "^6.9.0", + "@typescript-eslint/eslint-plugin": "^6.9.1", + "@typescript-eslint/parser": "^6.9.1", "@vue/eslint-config-prettier": "^8.0.0", "@vue/eslint-config-typescript": "^12.0.0", - "acorn": "^8.10.0", + "acorn": "^8.11.2", "acorn-import-assertions": "^1.9.0", "buble": "^0.20.0", "builtin-modules": "^3.3.0", "chokidar": "^3.5.3", "colorette": "^2.0.20", "concurrently": "^8.2.2", - "core-js": "^3.33.1", + "core-js": "^3.33.2", "date-time": "^4.0.0", "es5-shim": "^4.6.7", "es6-shim": "^0.35.8", @@ -53,13 +53,12 @@ "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.29.0", "eslint-plugin-prettier": "^5.0.1", - "eslint-plugin-unicorn": "^48.0.1", - "eslint-plugin-vue": "^9.18.0", + "eslint-plugin-unicorn": "^49.0.0", + "eslint-plugin-vue": "^9.18.1", "fixturify": "^3.0.0", "flru": "^1.0.2", "fs-extra": "^11.1.1", "github-api": "^3.4.0", - "hash.js": "^1.1.7", "husky": "^8.0.3", "inquirer": "^9.2.11", "is-reference": "^3.0.2", @@ -73,7 +72,7 @@ "pretty-bytes": "^6.1.1", "pretty-ms": "^8.0.0", "requirejs": "^2.3.6", - "rollup": "^4.1.4", + "rollup": "^4.1.5", "rollup-plugin-license": "^3.2.0", "rollup-plugin-string": "^3.0.0", "rollup-plugin-thatworks": "^1.0.4", @@ -83,7 +82,7 @@ "source-map": "^0.7.4", "source-map-support": "^0.5.21", "systemjs": "^6.14.2", - "terser": "^5.22.0", + "terser": "^5.23.0", "tslib": "^2.6.2", "typescript": "^5.2.2", "vite": "^4.5.0", @@ -1505,9 +1504,9 @@ } }, "node_modules/@lezer/javascript": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.8.tgz", - "integrity": "sha512-QRmw/5xrcyRLyWr3JT3KCzn2XZr5NYNqQMGsqnYy+FghbQn9DZPuj6JDkE6uSXvfMLpdapu8KBIaeoJFaR4QVw==", + "version": "1.4.9", + "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.9.tgz", + "integrity": "sha512-7Uv8mBBE6l44spgWEZvEMdDqGV+FIuY7kJ1o5TFm+jxIuxydO3PcKJYiINij09igd1D/9P7l2KDqpkN8c3bM6A==", "dev": true, "dependencies": { "@lezer/highlight": "^1.1.3", @@ -1515,9 +1514,9 @@ } }, "node_modules/@lezer/lr": { - "version": "1.3.13", - "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.3.13.tgz", - "integrity": "sha512-RLAbau/4uSzKgIKj96mI5WUtG1qtiR0Frn0Ei9zhPj8YOkHM+1Bb8SgdVvmR/aWJCFIzjo2KFnDiRZ75Xf5NdQ==", + "version": "1.3.14", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.3.14.tgz", + "integrity": "sha512-z5mY4LStlA3yL7aHT/rqgG614cfcvklS+8oFRFBYrs4YaWLJyKKM4+nN6KopToX0o9Hj6zmH6M5kinOYuy06ug==", "dev": true, "dependencies": { "@lezer/common": "^1.0.0" @@ -1536,9 +1535,9 @@ } }, "node_modules/@mermaid-js/mermaid-cli": { - "version": "10.5.1", - "resolved": "https://registry.npmjs.org/@mermaid-js/mermaid-cli/-/mermaid-cli-10.5.1.tgz", - "integrity": "sha512-2Hoft3YhwIJrqK1YLg26/U676lf/9SqBrVNNbNRw6LnT85on2K1+GI2qsEm10UmBJDPouoBuXCdAfpi9O3BCQg==", + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/@mermaid-js/mermaid-cli/-/mermaid-cli-10.6.0.tgz", + "integrity": "sha512-BFjvlB4YcZKnGy7AO6cl3eXK+SNRW3caCEThfD+ChJ92lFJZ3c4PLOESA3JP/hJ66y5bO63MNa8OtIJo4iEi8w==", "dev": true, "dependencies": { "chalk": "^5.0.1", @@ -1553,9 +1552,9 @@ } }, "node_modules/@napi-rs/cli": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.16.3.tgz", - "integrity": "sha512-3mLNPlbbOhpbIUKicLrJtIearlHXUuXL3UeueYyRRplpVMNkdn8xCyzY6PcYZi3JXR8bmCOiWgkVmLnrSL7DKw==", + "version": "2.16.5", + "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.16.5.tgz", + "integrity": "sha512-mFEzwrg4IOLngGd2/P6yeqIWgwQNn59Z08n1rndu6kLDq1gg954NH9cM1O9Da0RJuybt46p43lqgSsnAY2mxqA==", "dev": true, "bin": { "napi": "scripts/index.js" @@ -1793,9 +1792,9 @@ } }, "node_modules/@rollup/plugin-replace": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.4.tgz", - "integrity": "sha512-E2hmRnlh09K8HGT0rOnnri9OTh+BILGr7NVJGB30S4E3cLRn3J0xjdiyOZ74adPs4NiAMgrjUMGAZNJDBgsdmQ==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.5.tgz", + "integrity": "sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==", "dev": true, "dependencies": { "@rollup/pluginutils": "^5.0.1", @@ -1884,9 +1883,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.1.4.tgz", - "integrity": "sha512-WlzkuFvpKl6CLFdc3V6ESPt7gq5Vrimd2Yv9IzKXdOpgbH4cdDSS1JLiACX8toygihtH5OlxyQzhXOph7Ovlpw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.2.0.tgz", + "integrity": "sha512-8PlggAxGxavr+pkCNeV1TM2wTb2o+cUWDg9M1cm9nR27Dsn287uZtSLYXoQqQcmq+sYfF7lHfd3sWJJinH9GmA==", "cpu": [ "arm" ], @@ -1897,9 +1896,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.1.4.tgz", - "integrity": "sha512-D1e+ABe56T9Pq2fD+R3ybe1ylCDzu3tY4Qm2Mj24R9wXNCq35+JbFbOpc2yrroO2/tGhTobmEl2Bm5xfE/n8RA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.2.0.tgz", + "integrity": "sha512-+71T85hbMFrJI+zKQULNmSYBeIhru55PYoF/u75MyeN2FcxE4HSPw20319b+FcZ4lWx2Nx/Ql9tN+hoaD3GH/A==", "cpu": [ "arm64" ], @@ -1910,9 +1909,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.1.4.tgz", - "integrity": "sha512-7vTYrgEiOrjxnjsgdPB+4i7EMxbVp7XXtS+50GJYj695xYTTEMn3HZVEvgtwjOUkAP/Q4HDejm4fIAjLeAfhtg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.2.0.tgz", + "integrity": "sha512-IIIQLuG43QIElT1JZqUP/zqIdiJl4t9U/boa0GZnQTw9m1X0k3mlBuysbgYXeloLT1RozdL7bgw4lpSaI8GOXw==", "cpu": [ "arm64" ], @@ -1923,9 +1922,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.1.4.tgz", - "integrity": "sha512-eGJVZScKSLZkYjhTAESCtbyTBq9SXeW9+TX36ki5gVhDqJtnQ5k0f9F44jNK5RhAMgIj0Ht9+n6HAgH0gUUyWQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.2.0.tgz", + "integrity": "sha512-BXcXvnLaea1Xz900omrGJhxHFJfH9jZ0CpJuVsbjjhpniJ6qiLXz3xA8Lekaa4MuhFcJd4f0r+Ky1G4VFbYhWw==", "cpu": [ "x64" ], @@ -1936,9 +1935,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.1.4.tgz", - "integrity": "sha512-HnigYSEg2hOdX1meROecbk++z1nVJDpEofw9V2oWKqOWzTJlJf1UXVbDE6Hg30CapJxZu5ga4fdAQc/gODDkKg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.2.0.tgz", + "integrity": "sha512-f4K3MKw9Y4AKi4ANGnmPIglr+S+8tO858YrGVuqAHXxJdVghBmz9CPU9kDpOnGvT4g4vg5uNyIFpOOFvffXyMA==", "cpu": [ "arm" ], @@ -1949,9 +1948,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.1.4.tgz", - "integrity": "sha512-TzJ+N2EoTLWkaClV2CUhBlj6ljXofaYzF/R9HXqQ3JCMnCHQZmQnbnZllw7yTDp0OG5whP4gIPozR4QiX+00MQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.2.0.tgz", + "integrity": "sha512-bNsTYQBgp4H7w6cT7FZhesxpcUPahsSIy4NgdZjH1ZwEoZHxi4XKglj+CsSEkhsKi+x6toVvMylhjRKhEMYfnA==", "cpu": [ "arm64" ], @@ -1962,9 +1961,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.1.4.tgz", - "integrity": "sha512-aVPmNMdp6Dlo2tWkAduAD/5TL/NT5uor290YvjvFvCv0Q3L7tVdlD8MOGDL+oRSw5XKXKAsDzHhUOPUNPRHVTQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.2.0.tgz", + "integrity": "sha512-Jp1NxBJpGLuxRU2ihrQk4IZ+ia5nffobG6sOFUPW5PMYkF0kQtxEbeDuCa69Xif211vUOcxlOnf5IOEIpTEySA==", "cpu": [ "arm64" ], @@ -1975,9 +1974,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.1.4.tgz", - "integrity": "sha512-77Fb79ayiDad0grvVsz4/OB55wJRyw9Ao+GdOBA9XywtHpuq5iRbVyHToGxWquYWlEf6WHFQQnFEttsAzboyKg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.2.0.tgz", + "integrity": "sha512-3p3iRtQmv2aXw+vtKNyZMLOQ+LSRsqArXjKAh2Oj9cqwfIRe7OXvdkOzWfZOIp1F/x5KJzVAxGxnniF4cMbnsQ==", "cpu": [ "x64" ], @@ -1988,9 +1987,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.1.4.tgz", - "integrity": "sha512-/t6C6niEQTqmQTVTD9TDwUzxG91Mlk69/v0qodIPUnjjB3wR4UA3klg+orR2SU3Ux2Cgf2pWPL9utK80/1ek8g==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.2.0.tgz", + "integrity": "sha512-atih7IF/reUZe4LBLC5Izd44hth2tfDIG8LaPp4/cQXdHh9jabcZEvIeRPrpDq0i/Uu487Qu5gl5KwyAnWajnw==", "cpu": [ "x64" ], @@ -2001,9 +2000,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.1.4.tgz", - "integrity": "sha512-ZY5BHHrOPkMbCuGWFNpJH0t18D2LU6GMYKGaqaWTQ3CQOL57Fem4zE941/Ek5pIsVt70HyDXssVEFQXlITI5Gg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.2.0.tgz", + "integrity": "sha512-vYxF3tKJeUE4ceYzpNe2p84RXk/fGK30I8frpRfv/MyPStej/mRlojztkN7Jtd1014HHVeq/tYaMBz/3IxkxZw==", "cpu": [ "arm64" ], @@ -2014,9 +2013,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.1.4.tgz", - "integrity": "sha512-XG2mcRfFrJvYyYaQmvCIvgfkaGinfXrpkBuIbJrTl9SaIQ8HumheWTIwkNz2mktCKwZfXHQNpO7RgXLIGQ7HXA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.2.0.tgz", + "integrity": "sha512-1LZJ6zpl93SaPQvas618bMFarVwufWTaczH4ESAbFcwiC4OtznA6Ym+hFPyIGaJaGEB8uMWWac0uXGPXOg5FGA==", "cpu": [ "ia32" ], @@ -2027,9 +2026,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.1.4.tgz", - "integrity": "sha512-ANFqWYPwkhIqPmXw8vm0GpBEHiPpqcm99jiiAp71DbCSqLDhrtr019C5vhD0Bw4My+LmMvciZq6IsWHqQpl2ZQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.2.0.tgz", + "integrity": "sha512-dgQfFdHCNg08nM5zBmqxqc9vrm0DVzhWotpavbPa0j4//MAOKZEB75yGAfzQE9fUJ+4pvM1239Y4IhL8f6sSog==", "cpu": [ "x64" ], @@ -2058,9 +2057,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.3.tgz", - "integrity": "sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz", + "integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==", "dev": true }, "node_modules/@types/fs-extra": { @@ -2191,16 +2190,16 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.0.tgz", - "integrity": "sha512-lgX7F0azQwRPB7t7WAyeHWVfW1YJ9NIgd9mvGhfQpRY56X6AVf8mwM8Wol+0z4liE7XX3QOt8MN1rUKCfSjRIA==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", + "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.9.0", - "@typescript-eslint/type-utils": "6.9.0", - "@typescript-eslint/utils": "6.9.0", - "@typescript-eslint/visitor-keys": "6.9.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/type-utils": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -2226,15 +2225,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.0.tgz", - "integrity": "sha512-GZmjMh4AJ/5gaH4XF2eXA8tMnHWP+Pm1mjQR2QN4Iz+j/zO04b9TOvJYOX2sCNIQHtRStKTxRY1FX7LhpJT4Gw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", + "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.9.0", - "@typescript-eslint/types": "6.9.0", - "@typescript-eslint/typescript-estree": "6.9.0", - "@typescript-eslint/visitor-keys": "6.9.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4" }, "engines": { @@ -2254,13 +2253,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.0.tgz", - "integrity": "sha512-1R8A9Mc39n4pCCz9o79qRO31HGNDvC7UhPhv26TovDsWPBDx+Sg3rOZdCELIA3ZmNoWAuxaMOT7aWtGRSYkQxw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", + "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.0", - "@typescript-eslint/visitor-keys": "6.9.0" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2271,13 +2270,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.0.tgz", - "integrity": "sha512-XXeahmfbpuhVbhSOROIzJ+b13krFmgtc4GlEuu1WBT+RpyGPIA4Y/eGnXzjbDj5gZLzpAXO/sj+IF/x2GtTMjQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", + "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.9.0", - "@typescript-eslint/utils": "6.9.0", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/utils": "6.9.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2298,9 +2297,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.0.tgz", - "integrity": "sha512-+KB0lbkpxBkBSiVCuQvduqMJy+I1FyDbdwSpM3IoBS7APl4Bu15lStPjgBIdykdRqQNYqYNMa8Kuidax6phaEw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", + "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2311,13 +2310,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.0.tgz", - "integrity": "sha512-NJM2BnJFZBEAbCfBP00zONKXvMqihZCrmwCaik0UhLr0vAgb6oguXxLX1k00oQyD+vZZ+CJn3kocvv2yxm4awQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", + "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.0", - "@typescript-eslint/visitor-keys": "6.9.0", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2338,17 +2337,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.0.tgz", - "integrity": "sha512-5Wf+Jsqya7WcCO8me504FBigeQKVLAMPmUzYgDbWchINNh1KJbxCgVya3EQ2MjvJMVeXl3pofRmprqX6mfQkjQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", + "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.9.0", - "@typescript-eslint/types": "6.9.0", - "@typescript-eslint/typescript-estree": "6.9.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", "semver": "^7.5.4" }, "engines": { @@ -2363,12 +2362,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.0.tgz", - "integrity": "sha512-dGtAfqjV6RFOtIP8I0B4ZTBRrlTT8NHHlZZSchQx3qReaoDeXhYM++M4So2AgFK9ZB0emRPA6JI1HkafzA2Ibg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", + "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.9.0", + "@typescript-eslint/types": "6.9.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -3461,9 +3460,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001555", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001555.tgz", - "integrity": "sha512-NzbUFKUnJ3DTcq6YyZB6+qqhfD112uR3uoEnkmfzm2wVzUNsFkU7AwBjKQ654Sp5cau0JxhFyRSn/tQZ+XfygA==", + "version": "1.0.30001559", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz", + "integrity": "sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA==", "dev": true, "funding": [ { @@ -3903,9 +3902,9 @@ "dev": true }, "node_modules/core-js": { - "version": "3.33.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.33.1.tgz", - "integrity": "sha512-qVSq3s+d4+GsqN0teRCJtM6tdEEXyWxjzbhVrCHmBS5ZTM0FS2MOS0D13dUXAWDUN6a+lHI/N1hF9Ytz6iLl9Q==", + "version": "3.33.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.33.2.tgz", + "integrity": "sha512-XeBzWI6QL3nJQiHmdzbAOiMYqjrb7hwU7A39Qhvd/POSa/t9E1AeZyEZx3fNvp/vtM8zXwhoL0FsiS0hD0pruQ==", "dev": true, "hasInstallScript": true, "funding": { @@ -4250,9 +4249,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.569", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.569.tgz", - "integrity": "sha512-LsrJjZ0IbVy12ApW3gpYpcmHS3iRxH4bkKOW98y1/D+3cvDUWGcbzbsFinfUS8knpcZk/PG/2p/RnkMCYN7PVg==", + "version": "1.4.575", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.575.tgz", + "integrity": "sha512-kY2BGyvgAHiX899oF6xLXSIf99bAvvdPhDoJwG77nxCSyWYuRH6e9a9a3gpXBvCs6lj4dQZJkfnW2hdKWHEISg==", "dev": true }, "node_modules/emoji-regex": { @@ -4652,12 +4651,12 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "48.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-48.0.1.tgz", - "integrity": "sha512-FW+4r20myG/DqFcCSzoumaddKBicIPeFnTrifon2mWIzlfyvzwyqZjqVP7m4Cqr/ZYisS2aiLghkUWaPg6vtCw==", + "version": "49.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-49.0.0.tgz", + "integrity": "sha512-0fHEa/8Pih5cmzFW5L7xMEfUTvI9WKeQtjmKpTUmY+BiFCDxkxrTdnURJOHKykhtwIeyYsxnecbGvDCml++z4Q==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "@eslint-community/eslint-utils": "^4.4.0", "ci-info": "^3.8.0", "clean-regexp": "^1.0.0", @@ -4665,7 +4664,6 @@ "indent-string": "^4.0.0", "is-builtin-module": "^3.2.1", "jsesc": "^3.0.2", - "lodash": "^4.17.21", "pluralize": "^8.0.0", "read-pkg-up": "^7.0.1", "regexp-tree": "^0.1.27", @@ -4680,7 +4678,7 @@ "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" }, "peerDependencies": { - "eslint": ">=8.44.0" + "eslint": ">=8.52.0" } }, "node_modules/eslint-plugin-vue": { @@ -5671,16 +5669,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, "node_modules/hasha": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", @@ -7132,12 +7120,6 @@ "node": ">=4" } }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -8504,9 +8486,9 @@ } }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -9002,9 +8984,9 @@ } }, "node_modules/rollup": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.1.4.tgz", - "integrity": "sha512-U8Yk1lQRKqCkDBip/pMYT+IKaN7b7UesK3fLSTuHBoBJacCE+oBqo/dfG/gkUdQNNB2OBmRP98cn2C2bkYZkyw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.2.0.tgz", + "integrity": "sha512-deaMa9Z+jPVeBD2dKXv+h7EbdKte9++V2potc/ADqvVgEr6DEJ3ia9u0joarjC2lX/ubaCRYz3QVx0TzuVqAJA==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -9014,18 +8996,18 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.1.4", - "@rollup/rollup-android-arm64": "4.1.4", - "@rollup/rollup-darwin-arm64": "4.1.4", - "@rollup/rollup-darwin-x64": "4.1.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.1.4", - "@rollup/rollup-linux-arm64-gnu": "4.1.4", - "@rollup/rollup-linux-arm64-musl": "4.1.4", - "@rollup/rollup-linux-x64-gnu": "4.1.4", - "@rollup/rollup-linux-x64-musl": "4.1.4", - "@rollup/rollup-win32-arm64-msvc": "4.1.4", - "@rollup/rollup-win32-ia32-msvc": "4.1.4", - "@rollup/rollup-win32-x64-msvc": "4.1.4", + "@rollup/rollup-android-arm-eabi": "4.2.0", + "@rollup/rollup-android-arm64": "4.2.0", + "@rollup/rollup-darwin-arm64": "4.2.0", + "@rollup/rollup-darwin-x64": "4.2.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.2.0", + "@rollup/rollup-linux-arm64-gnu": "4.2.0", + "@rollup/rollup-linux-arm64-musl": "4.2.0", + "@rollup/rollup-linux-x64-gnu": "4.2.0", + "@rollup/rollup-linux-x64-musl": "4.2.0", + "@rollup/rollup-win32-arm64-msvc": "4.2.0", + "@rollup/rollup-win32-ia32-msvc": "4.2.0", + "@rollup/rollup-win32-x64-msvc": "4.2.0", "fsevents": "~2.3.2" } }, @@ -10000,9 +9982,9 @@ "dev": true }, "node_modules/terser": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.22.0.tgz", - "integrity": "sha512-hHZVLgRA2z4NWcN6aS5rQDc+7Dcy58HOf2zbYwmFcQ+ua3h6eEFf5lIDKTzbWwlazPyOZsFQO8V80/IjVNExEw==", + "version": "5.24.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.24.0.tgz", + "integrity": "sha512-ZpGR4Hy3+wBEzVEnHvstMvqpD/nABNelQn/z2r0fjVWGQsN3bpOLzQlqDxmb4CDZnXq5lpjnQ+mHQLAOpfM5iw==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -10369,9 +10351,9 @@ } }, "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, "engines": { "node": ">= 10.0.0" diff --git a/package.json b/package.json index daeeb70ab..c6569fd28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rollup", - "version": "4.2.0", + "version": "4.3.0", "description": "Next-generation ES module bundler", "main": "dist/rollup.js", "module": "dist/es/rollup.js", @@ -112,33 +112,33 @@ "@codemirror/state": "^6.3.1", "@codemirror/view": "^6.21.4", "@jridgewell/sourcemap-codec": "^1.4.15", - "@mermaid-js/mermaid-cli": "^10.5.1", + "@mermaid-js/mermaid-cli": "^10.6.0", "@napi-rs/cli": "^2.16.3", "@rollup/plugin-alias": "^5.0.1", "@rollup/plugin-buble": "^1.0.3", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-json": "^6.0.1", "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-replace": "^5.0.4", + "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "11.1.5", "@rollup/pluginutils": "^5.0.5", - "@types/estree": "1.0.3", + "@types/estree": "1.0.4", "@types/mocha": "^10.0.3", "@types/node": "18.0.0", "@types/yargs-parser": "^21.0.2", - "@typescript-eslint/eslint-plugin": "^6.9.0", - "@typescript-eslint/parser": "^6.9.0", + "@typescript-eslint/eslint-plugin": "^6.9.1", + "@typescript-eslint/parser": "^6.9.1", "@vue/eslint-config-prettier": "^8.0.0", "@vue/eslint-config-typescript": "^12.0.0", - "acorn": "^8.10.0", + "acorn": "^8.11.2", "acorn-import-assertions": "^1.9.0", "buble": "^0.20.0", "builtin-modules": "^3.3.0", "chokidar": "^3.5.3", "colorette": "^2.0.20", "concurrently": "^8.2.2", - "core-js": "^3.33.1", + "core-js": "^3.33.2", "date-time": "^4.0.0", "es5-shim": "^4.6.7", "es6-shim": "^0.35.8", @@ -146,13 +146,12 @@ "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.29.0", "eslint-plugin-prettier": "^5.0.1", - "eslint-plugin-unicorn": "^48.0.1", - "eslint-plugin-vue": "^9.18.0", + "eslint-plugin-unicorn": "^49.0.0", + "eslint-plugin-vue": "^9.18.1", "fixturify": "^3.0.0", "flru": "^1.0.2", "fs-extra": "^11.1.1", "github-api": "^3.4.0", - "hash.js": "^1.1.7", "husky": "^8.0.3", "inquirer": "^9.2.11", "is-reference": "^3.0.2", @@ -166,7 +165,7 @@ "pretty-bytes": "^6.1.1", "pretty-ms": "^8.0.0", "requirejs": "^2.3.6", - "rollup": "^4.1.4", + "rollup": "^4.1.5", "rollup-plugin-license": "^3.2.0", "rollup-plugin-string": "^3.0.0", "rollup-plugin-thatworks": "^1.0.4", @@ -176,7 +175,7 @@ "source-map": "^0.7.4", "source-map-support": "^0.5.21", "systemjs": "^6.14.2", - "terser": "^5.22.0", + "terser": "^5.23.0", "tslib": "^2.6.2", "typescript": "^5.2.2", "vite": "^4.5.0", diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 310dcae25..232e9323c 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -395,9 +395,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", "hashbrown 0.14.2", @@ -430,9 +430,9 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" dependencies = [ "wasm-bindgen", ] @@ -734,7 +734,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.0.2", + "indexmap 2.1.0", ] [[package]] @@ -1029,18 +1029,18 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.189" +version = "1.0.190" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537" +checksum = "91d3c334ca1ee894a2c6f6ad698fe8c435b76d504b13d436f0685d648d6d96f7" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.189" +version = "1.0.190" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5" +checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" dependencies = [ "proc-macro2", "quote", @@ -1049,9 +1049,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", @@ -1254,9 +1254,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.3.18" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcd62e1dbbb0c4037c50884dce57073776e491106d4fa6130c2525f2435b5c93" +checksum = "2ab36d995e07a8bea8d8d1d2f998203d76ced44ced63cbbee13e1058d0aa34a7" dependencies = [ "anyhow", "base64 0.13.1", @@ -1318,9 +1318,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.146.5" +version = "0.146.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a0acb97f29718a45b26955d3f27098dc656552ca01e9efdd2197faa0d14f94" +checksum = "cf45da3e062c6eba4cf7e673205c86477ea1eec6e363e65e7dd74b243524e0f6" dependencies = [ "memchr", "num-bigint", @@ -1350,9 +1350,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.89.10" +version = "0.89.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9606d494c96e210a83b155187f998779eed0ee22fd7e6f9fa1dce51ad863fc4" +checksum = "a066cc631fb8e7ac2f9b3d3ed9e27603e542b09dc99cbb321d381a3d662f18fd" dependencies = [ "auto_impl", "dashmap", @@ -1370,9 +1370,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.189.18" +version = "0.189.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "959ee58c7689e0c6b961928adf1493f6c5dc18fb1667edf16e08c31afe6220d6" +checksum = "1cd2237623ad7d8e3872d25018887970c1bb97607fa00b7f106302010919fbd7" dependencies = [ "arrayvec", "indexmap 1.9.3", @@ -1404,9 +1404,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.141.5" +version = "0.141.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0b5f31caca7daa4e9737f6073de461fa078aa36175afe5431966b92882e56f9" +checksum = "c4894cf31ae94d15abba75e89cbe0d368ac8a360936d83bc0a951a545ab98b95" dependencies = [ "either", "num-bigint", @@ -1424,9 +1424,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.134.10" +version = "0.134.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18150ea5c817b8f2f13c06fd99229d82754efc5c32e07dbf9745a33dc8d8232e" +checksum = "35e9d83999eba644dc0f56f56dae5295d16b17b96ee1c6d5b9938363a4afd8de" dependencies = [ "better_scoped_tls", "bitflags 2.4.1", @@ -1460,9 +1460,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.195.11" +version = "0.195.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f41ba9a60a15791db0f7d1311c8d02f443404f88de56456a92914425b96723c" +checksum = "0db09664a6d2e71d53f6354c5f0eab67981e377bf5b25fb122eb39b46033521d" dependencies = [ "dashmap", "indexmap 1.9.3", @@ -1484,9 +1484,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.20.11" +version = "0.20.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c243cd4a4234c31f33ac19dc7382c419af1e9953af3712e2751f155d9982350c" +checksum = "20dafda828fa8022f2cc16f36131694a9dc0de3f52db75e2e24d59ac6e55a2aa" dependencies = [ "indexmap 1.9.3", "rustc-hash", @@ -1501,9 +1501,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.124.9" +version = "0.124.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d86cb80fb98018eba38720f940cf6c70df873d17092c0e4e390ddd4c01557a2" +checksum = "11dbd330bd07e3e59eeea04d8304b6bf029216e3ee2133ed9f27802e9579d326" dependencies = [ "indexmap 1.9.3", "num_cpus", @@ -1582,9 +1582,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.21.2" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac682489cade267f04271a26aeb845c3b76154704eaec19f02b9de1e32240a69" +checksum = "7280b8e3c50d678eb92f8cdb78922221ae17f2fabda4e1ca6c6b67c2c6839701" dependencies = [ "tracing", ] @@ -1814,9 +1814,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1824,9 +1824,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" dependencies = [ "bumpalo", "log", @@ -1839,9 +1839,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1849,9 +1849,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" dependencies = [ "proc-macro2", "quote", @@ -1862,9 +1862,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" [[package]] name = "winapi" @@ -1961,18 +1961,18 @@ checksum = "9828b178da53440fa9c766a3d2f73f7cf5d0ac1fe3980c1e5018d899fd19e07b" [[package]] name = "zerocopy" -version = "0.7.18" +version = "0.7.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede7d7c7970ca2215b8c1ccf4d4f354c4733201dfaaba72d44ae5b37472e4901" +checksum = "e50cbb27c30666a6108abd6bc7577556265b44f243e2be89a8bc4e07a528c107" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.18" +version = "0.7.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b27b1bb92570f989aac0ab7e9cbfbacdd65973f7ee920d9f0e71ebac878fd0b" +checksum = "a25f293fe55f0a48e7010d65552bb63704f6ceb55a1a385da10d41d8f78e4a3d" dependencies = [ "proc-macro2", "quote", diff --git a/rust/bindings_wasm/Cargo.toml b/rust/bindings_wasm/Cargo.toml index 8a9ea1255..dd3f85fcb 100644 --- a/rust/bindings_wasm/Cargo.toml +++ b/rust/bindings_wasm/Cargo.toml @@ -4,10 +4,10 @@ version = "0.0.0" edition = "2021" [dependencies] -wasm-bindgen = "0.2.87" +wasm-bindgen = "0.2.88" parse_ast = { path = "../parse_ast" } xxhash = { path = "../xxhash" } -js-sys = "0.3.64" +js-sys = "0.3.65" getrandom = { version = "0.2.10", features = ["js"] } [lib] diff --git a/rust/parse_ast/Cargo.toml b/rust/parse_ast/Cargo.toml index e765637b4..ccb3ddc83 100644 --- a/rust/parse_ast/Cargo.toml +++ b/rust/parse_ast/Cargo.toml @@ -8,12 +8,12 @@ edition = "2021" [dependencies] anyhow = "1.0.75" swc_atoms = "0.6.0" -swc_compiler_base = "0.3.18" +swc_compiler_base = "0.3.27" swc_common = { version = "0.33.2", features = ["ahash", "parking_lot"] } swc_ecma_ast = "0.110.2" -swc_ecma_parser = "0.141.5" +swc_ecma_parser = "0.141.7" swc_error_reporters = "0.17.2" parking_lot = "0.12.1" -swc_ecma_lints = "0.89.10" -swc_ecma_transforms_base = "0.134.10" +swc_ecma_lints = "0.89.14" +swc_ecma_transforms_base = "0.134.14" swc_ecma_visit = "0.96.2" diff --git a/test/cli/samples/force-exit/_config.js b/test/cli/samples/force-exit/_config.js new file mode 100644 index 000000000..ed9ebad21 --- /dev/null +++ b/test/cli/samples/force-exit/_config.js @@ -0,0 +1,5 @@ +module.exports = defineTest({ + description: 'force exits even with open handles', + command: 'rollup --config rollup.config.js --forceExit', + execute: true +}); diff --git a/test/cli/samples/force-exit/main.js b/test/cli/samples/force-exit/main.js new file mode 100644 index 000000000..e69de29bb diff --git a/test/cli/samples/force-exit/rollup.config.js b/test/cli/samples/force-exit/rollup.config.js new file mode 100644 index 000000000..1f3b1ffc3 --- /dev/null +++ b/test/cli/samples/force-exit/rollup.config.js @@ -0,0 +1,16 @@ +module.exports = { + input: 'main.js', + output: { + format: 'cjs' + }, + plugins: [ + { + name: 'open-handles', + buildStart() { + setInterval(() => { + // hang forever + }, 2 ** 24); + } + } + ] +}; diff --git a/test/form/samples/supports-core-js/_expected.js b/test/form/samples/supports-core-js/_expected.js index 0ef7a5e8f..86acd171d 100644 --- a/test/form/samples/supports-core-js/_expected.js +++ b/test/form/samples/supports-core-js/_expected.js @@ -101,7 +101,7 @@ var fails$1r = fails$1u; var classof$r = classofRaw$2; var $Object$8 = Object; -var split$4 = uncurryThis$1T(''.split); +var split$5 = uncurryThis$1T(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$1r(function () { @@ -109,7 +109,7 @@ var indexedObject = fails$1r(function () { // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$8('z').propertyIsEnumerable(0); }) ? function (it) { - return classof$r(it) === 'String' ? split$4(it, '') : $Object$8(it); + return classof$r(it) === 'String' ? split$5(it, '') : $Object$8(it); } : $Object$8; // we can't use just `it == null` since of `document.all` special case @@ -178,7 +178,7 @@ var aFunction = function (argument) { return isCallable$H(argument) ? argument : undefined; }; -var getBuiltIn$M = function (namespace, method) { +var getBuiltIn$N = function (namespace, method) { return arguments.length < 2 ? aFunction(global$15[namespace]) : global$15[namespace] && global$15[namespace][method]; }; @@ -242,7 +242,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$7 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; -var getBuiltIn$L = getBuiltIn$M; +var getBuiltIn$M = getBuiltIn$N; var isCallable$G = isCallable$J; var isPrototypeOf$e = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; @@ -252,7 +252,7 @@ var $Object$7 = Object; var isSymbol$8 = USE_SYMBOL_AS_UID$1 ? function (it) { return typeof it == 'symbol'; } : function (it) { - var $Symbol = getBuiltIn$L('Symbol'); + var $Symbol = getBuiltIn$M('Symbol'); return isCallable$G($Symbol) && isPrototypeOf$e($Symbol.prototype, $Object$7(it)); }; @@ -333,10 +333,10 @@ var store$4 = sharedStore; (shared$b.exports = function (key, value) { return store$4[key] || (store$4[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.33.1', + version: '3.33.2', mode: 'global', copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -901,7 +901,7 @@ var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; -var getBuiltIn$K = getBuiltIn$M; +var getBuiltIn$L = getBuiltIn$N; var uncurryThis$1M = functionUncurryThis; var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols; @@ -910,7 +910,7 @@ var anObject$1d = anObject$1f; var concat$4 = uncurryThis$1M([].concat); // all object keys, includes non-enumerable and symbols -var ownKeys$3 = getBuiltIn$K('Reflect', 'ownKeys') || function ownKeys(it) { +var ownKeys$3 = getBuiltIn$L('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule$2.f(anObject$1d(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f; return getOwnPropertySymbols ? concat$4(keys, getOwnPropertySymbols(it)) : keys; @@ -1092,9 +1092,9 @@ objectDefineProperties.f = DESCRIPTORS$L && !V8_PROTOTYPE_DEFINE_BUG ? Object.de return O; }; -var getBuiltIn$J = getBuiltIn$M; +var getBuiltIn$K = getBuiltIn$N; -var html$2 = getBuiltIn$J('document', 'documentElement'); +var html$2 = getBuiltIn$K('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ var anObject$1b = anObject$1f; @@ -1266,12 +1266,12 @@ var wellKnownSymbolDefine = function (NAME) { }; var call$1e = functionCall; -var getBuiltIn$I = getBuiltIn$M; +var getBuiltIn$J = getBuiltIn$N; var wellKnownSymbol$N = wellKnownSymbol$S; var defineBuiltIn$s = defineBuiltIn$u; var symbolDefineToPrimitive = function () { - var Symbol = getBuiltIn$I('Symbol'); + var Symbol = getBuiltIn$J('Symbol'); var SymbolPrototype = Symbol && Symbol.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol$N('toPrimitive'); @@ -1336,12 +1336,12 @@ var uncurryThis$1J = functionUncurryThis; var fails$1l = fails$1u; var isCallable$x = isCallable$J; var classof$m = classof$q; -var getBuiltIn$H = getBuiltIn$M; +var getBuiltIn$I = getBuiltIn$N; var inspectSource$2 = inspectSource$4; var noop = function () { /* empty */ }; var empty = []; -var construct$1 = getBuiltIn$H('Reflect', 'construct'); +var construct$1 = getBuiltIn$I('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$g = uncurryThis$1J(constructorRegExp.exec); var INCORRECT_TO_STRING$2 = !constructorRegExp.test(noop); @@ -1537,7 +1537,7 @@ var getInternalState$f = InternalStateModule$m.getterFor(SYMBOL); var ObjectPrototype$5 = Object[PROTOTYPE$1]; var $Symbol = global$W.Symbol; var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE$1]; -var RangeError$5 = global$W.RangeError; +var RangeError$4 = global$W.RangeError; var TypeError$8 = global$W.TypeError; var QObject = global$W.QObject; var nativeGetOwnPropertyDescriptor$2 = getOwnPropertyDescriptorModule$5.f; @@ -1665,7 +1665,7 @@ if (!NATIVE_SYMBOL$5) { try { setSymbolDescriptor($this, tag, descriptor); } catch (error) { - if (!(error instanceof RangeError$5)) throw error; + if (!(error instanceof RangeError$4)) throw error; fallbackDefineProperty($this, tag, descriptor); } }; @@ -1758,7 +1758,7 @@ var NATIVE_SYMBOL$4 = symbolConstructorDetection; var symbolRegistryDetection = NATIVE_SYMBOL$4 && !!Symbol['for'] && !!Symbol.keyFor; var $$5q = _export; -var getBuiltIn$G = getBuiltIn$M; +var getBuiltIn$H = getBuiltIn$N; var hasOwn$v = hasOwnProperty_1; var toString$I = toString$J; var shared$6 = sharedExports; @@ -1773,7 +1773,7 @@ $$5q({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, { 'for': function (key) { var string = toString$I(key); if (hasOwn$v(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; - var symbol = getBuiltIn$G('Symbol')(string); + var symbol = getBuiltIn$H('Symbol')(string); StringToSymbolRegistry[string] = symbol; SymbolToStringRegistry$1[symbol] = string; return symbol; @@ -1844,7 +1844,7 @@ var getJsonReplacerFunction = function (replacer) { }; var $$5o = _export; -var getBuiltIn$F = getBuiltIn$M; +var getBuiltIn$G = getBuiltIn$N; var apply$d = functionApply$1; var call$1b = functionCall; var uncurryThis$1E = functionUncurryThis; @@ -1856,7 +1856,7 @@ var getReplacerFunction$1 = getJsonReplacerFunction; var NATIVE_SYMBOL$3 = symbolConstructorDetection; var $String$4 = String; -var $stringify$1 = getBuiltIn$F('JSON', 'stringify'); +var $stringify$1 = getBuiltIn$G('JSON', 'stringify'); var exec$f = uncurryThis$1E(/./.exec); var charAt$k = uncurryThis$1E(''.charAt); var charCodeAt$9 = uncurryThis$1E(''.charCodeAt); @@ -1868,7 +1868,7 @@ var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$3 || fails$1j(function () { - var symbol = getBuiltIn$F('Symbol')('stringify detection'); + var symbol = getBuiltIn$G('Symbol')('stringify detection'); // MS Edge converts symbol values to JSON as {} return $stringify$1([symbol]) !== '[null]' // WebKit converts symbol values to JSON as null @@ -2063,7 +2063,7 @@ defineWellKnownSymbol$a('toPrimitive'); // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive defineSymbolToPrimitive(); -var getBuiltIn$E = getBuiltIn$M; +var getBuiltIn$F = getBuiltIn$N; var defineWellKnownSymbol$9 = wellKnownSymbolDefine; var setToStringTag$b = setToStringTag$d; @@ -2073,7 +2073,7 @@ defineWellKnownSymbol$9('toStringTag'); // `Symbol.prototype[@@toStringTag]` property // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag -setToStringTag$b(getBuiltIn$E('Symbol'), 'Symbol'); +setToStringTag$b(getBuiltIn$F('Symbol'), 'Symbol'); var defineWellKnownSymbol$8 = wellKnownSymbolDefine; @@ -2215,7 +2215,7 @@ var errorStackInstall = function (error, C, stack, dropEntries) { } }; -var getBuiltIn$D = getBuiltIn$M; +var getBuiltIn$E = getBuiltIn$N; var hasOwn$s = hasOwnProperty_1; var createNonEnumerableProperty$f = createNonEnumerableProperty$k; var isPrototypeOf$b = objectIsPrototypeOf; @@ -2233,7 +2233,7 @@ var wrapErrorConstructorWithCause$2 = function (FULL_NAME, wrapper, FORCED, IS_A var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; var path = FULL_NAME.split('.'); var ERROR_NAME = path[path.length - 1]; - var OriginalError = getBuiltIn$D.apply(null, path); + var OriginalError = getBuiltIn$E.apply(null, path); if (!OriginalError) return; @@ -2244,7 +2244,7 @@ var wrapErrorConstructorWithCause$2 = function (FULL_NAME, wrapper, FORCED, IS_A if (!FORCED) return OriginalError; - var BaseError = getBuiltIn$D('Error'); + var BaseError = getBuiltIn$E('Error'); var WrappedError = wrapper(function (a, b) { var message = normalizeStringArgument$5(IS_AGGREGATE_ERROR ? b : a, undefined); @@ -2286,7 +2286,7 @@ var apply$c = functionApply$1; var wrapErrorConstructorWithCause$1 = wrapErrorConstructorWithCause$2; var WEB_ASSEMBLY = 'WebAssembly'; -var WebAssembly$1 = global$U[WEB_ASSEMBLY]; +var WebAssembly = global$U[WEB_ASSEMBLY]; // eslint-disable-next-line es/no-error-cause -- feature detection var FORCED$D = new Error('e', { cause: 7 }).cause !== 7; @@ -2298,7 +2298,7 @@ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { }; var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { - if (WebAssembly$1 && WebAssembly$1[ERROR_NAME]) { + if (WebAssembly && WebAssembly[ERROR_NAME]) { var O = {}; O[ERROR_NAME] = wrapErrorConstructorWithCause$1(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$D); $$5l({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$D }, O); @@ -2594,13 +2594,13 @@ $$5k({ global: true, constructor: true, arity: 2 }, { }); var $$5j = _export; -var getBuiltIn$C = getBuiltIn$M; +var getBuiltIn$D = getBuiltIn$N; var apply$b = functionApply$1; var fails$1e = fails$1u; var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$2; var AGGREGATE_ERROR = 'AggregateError'; -var $AggregateError = getBuiltIn$C(AGGREGATE_ERROR); +var $AggregateError = getBuiltIn$D(AGGREGATE_ERROR); var FORCED$C = !fails$1e(function () { return $AggregateError([1]).errors[0] !== 1; @@ -3968,7 +3968,7 @@ $$4S({ target: 'Array', proto: true, forced: FORCED$u }, { } }); -var getBuiltIn$B = getBuiltIn$M; +var getBuiltIn$C = getBuiltIn$N; var defineBuiltInAccessor$l = defineBuiltInAccessor$o; var wellKnownSymbol$z = wellKnownSymbol$S; var DESCRIPTORS$E = descriptors; @@ -3976,7 +3976,7 @@ var DESCRIPTORS$E = descriptors; var SPECIES$3 = wellKnownSymbol$z('species'); var setSpecies$7 = function (CONSTRUCTOR_NAME) { - var Constructor = getBuiltIn$B(CONSTRUCTOR_NAME); + var Constructor = getBuiltIn$C(CONSTRUCTOR_NAME); if (DESCRIPTORS$E && Constructor && !Constructor[SPECIES$3]) { defineBuiltInAccessor$l(Constructor, SPECIES$3, { @@ -4101,7 +4101,9 @@ var arrayFromConstructorAndList$6 = function (Constructor, list) { var global$S = global$16; var getBuiltInPrototypeMethod$2 = function (CONSTRUCTOR, METHOD) { - return global$S[CONSTRUCTOR].prototype[METHOD]; + var Constructor = global$S[CONSTRUCTOR]; + var Prototype = Constructor && Constructor.prototype; + return Prototype && Prototype[METHOD]; }; var $$4P = _export; @@ -4345,7 +4347,7 @@ var mathFround = Math.fround || function fround(x) { // IEEE754 conversions based on https://github.com/feross/ieee754 var $Array$3 = Array; var abs$7 = Math.abs; -var pow$4 = Math.pow; +var pow$5 = Math.pow; var floor$8 = Math.floor; var log$8 = Math.log; var LN2$2 = Math.LN2; @@ -4355,7 +4357,7 @@ var pack = function (number, mantissaLength, bytes) { var exponentLength = bytes * 8 - mantissaLength - 1; var eMax = (1 << exponentLength) - 1; var eBias = eMax >> 1; - var rt = mantissaLength === 23 ? pow$4(2, -24) - pow$4(2, -77) : 0; + var rt = mantissaLength === 23 ? pow$5(2, -24) - pow$5(2, -77) : 0; var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; var index = 0; var exponent, mantissa, c; @@ -4367,7 +4369,7 @@ var pack = function (number, mantissaLength, bytes) { exponent = eMax; } else { exponent = floor$8(log$8(number) / LN2$2); - c = pow$4(2, -exponent); + c = pow$5(2, -exponent); if (number * c < 1) { exponent--; c *= 2; @@ -4375,7 +4377,7 @@ var pack = function (number, mantissaLength, bytes) { if (exponent + eBias >= 1) { number += rt / c; } else { - number += rt * pow$4(2, 1 - eBias); + number += rt * pow$5(2, 1 - eBias); } if (number * c >= 2) { exponent++; @@ -4385,10 +4387,10 @@ var pack = function (number, mantissaLength, bytes) { mantissa = 0; exponent = eMax; } else if (exponent + eBias >= 1) { - mantissa = (number * c - 1) * pow$4(2, mantissaLength); + mantissa = (number * c - 1) * pow$5(2, mantissaLength); exponent += eBias; } else { - mantissa = number * pow$4(2, eBias - 1) * pow$4(2, mantissaLength); + mantissa = number * pow$5(2, eBias - 1) * pow$5(2, mantissaLength); exponent = 0; } } @@ -4435,9 +4437,9 @@ var unpack = function (buffer, mantissaLength) { } else if (exponent === eMax) { return mantissa ? NaN : sign ? -Infinity : Infinity; } else { - mantissa += pow$4(2, mantissaLength); + mantissa += pow$5(2, mantissaLength); exponent -= eBias; - } return (sign ? -1 : 1) * mantissa * pow$4(2, exponent - mantissaLength); + } return (sign ? -1 : 1) * mantissa * pow$5(2, exponent - mantissaLength); }; var ieee754 = { @@ -4485,7 +4487,7 @@ var $DataView = global$R[DATA_VIEW]; var DataViewPrototype$2 = $DataView && $DataView[PROTOTYPE]; var ObjectPrototype$3 = Object.prototype; var Array$3 = global$R.Array; -var RangeError$4 = global$R.RangeError; +var RangeError$3 = global$R.RangeError; var fill = uncurryThis$1v(arrayFill); var reverse = uncurryThis$1v([].reverse); @@ -4529,7 +4531,7 @@ var get$5 = function (view, count, index, isLittleEndian) { var store = getInternalDataViewState(view); var intIndex = toIndex$4(index); var boolIsLittleEndian = !!isLittleEndian; - if (intIndex + count > store.byteLength) throw new RangeError$4(WRONG_INDEX); + if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX); var bytes = store.bytes; var start = intIndex + store.byteOffset; var pack = arraySlice$8(bytes, start, start + count); @@ -4541,7 +4543,7 @@ var set$a = function (view, count, index, conversion, value, isLittleEndian) { var intIndex = toIndex$4(index); var pack = conversion(+value); var boolIsLittleEndian = !!isLittleEndian; - if (intIndex + count > store.byteLength) throw new RangeError$4(WRONG_INDEX); + if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX); var bytes = store.bytes; var start = intIndex + store.byteOffset; for (var i = 0; i < count; i++) bytes[start + i] = pack[boolIsLittleEndian ? i : count - i - 1]; @@ -4570,9 +4572,9 @@ if (!NATIVE_ARRAY_BUFFER$2) { var bufferState = getInternalArrayBufferState(buffer); var bufferLength = bufferState.byteLength; var offset = toIntegerOrInfinity$f(byteOffset); - if (offset < 0 || offset > bufferLength) throw new RangeError$4('Wrong offset'); + if (offset < 0 || offset > bufferLength) throw new RangeError$3('Wrong offset'); byteLength = byteLength === undefined ? bufferLength - offset : toLength$a(byteLength); - if (offset + byteLength > bufferLength) throw new RangeError$4(WRONG_LENGTH$1); + if (offset + byteLength > bufferLength) throw new RangeError$3(WRONG_LENGTH$1); setInternalState$k(this, { type: DATA_VIEW, buffer: buffer, @@ -5926,14 +5928,14 @@ var $$4t = _export; var sign$1 = mathSign; var abs$5 = Math.abs; -var pow$3 = Math.pow; +var pow$4 = Math.pow; // `Math.cbrt` method // https://tc39.es/ecma262/#sec-math.cbrt $$4t({ target: 'Math', stat: true }, { cbrt: function cbrt(x) { var n = +x; - return sign$1(n) * pow$3(abs$5(n), 1 / 3); + return sign$1(n) * pow$4(abs$5(n), 1 / 3); } }); @@ -6482,7 +6484,7 @@ var $String$2 = String; var $isFinite = isFinite; var abs = Math.abs; var floor$5 = Math.floor; -var pow$2 = Math.pow; +var pow$3 = Math.pow; var round$1 = Math.round; var nativeToExponential = uncurryThis$1d(1.0.toExponential); var repeat$2 = uncurryThis$1d($repeat$1); @@ -6545,12 +6547,12 @@ $$45({ target: 'Number', proto: true, forced: FORCED$g }, { var l = log10(x); e = floor$5(l); var n = 0; - var w = pow$2(10, e - f); + var w = pow$3(10, e - f); n = round$1(x / w); if (2 * x >= (2 * n + 1) * w) { n += 1; } - if (n >= pow$2(10, f + 1)) { + if (n >= pow$3(10, f + 1)) { n /= 10; e += 1; } @@ -6585,8 +6587,8 @@ var repeat$1 = uncurryThis$1c($repeat); var stringSlice$f = uncurryThis$1c(''.slice); var nativeToFixed = uncurryThis$1c(1.0.toFixed); -var pow$1 = function (x, n, acc) { - return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc); +var pow$2 = function (x, n, acc) { + return n === 0 ? acc : n % 2 === 1 ? pow$2(x, n - 1, acc * x) : pow$2(x * x, n / 2, acc); }; var log = function (x) { @@ -6664,8 +6666,8 @@ $$44({ target: 'Number', proto: true, forced: FORCED$f }, { number = -number; } if (number > 1e-21) { - e = log(number * pow$1(2, 69, 1)) - 69; - z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(2, e, 1); + e = log(number * pow$2(2, 69, 1)) - 69; + z = e < 0 ? number * pow$2(2, -e, 1) : number / pow$2(2, e, 1); z *= 0x10000000000000; e = 52 - e; if (e > 0) { @@ -6675,7 +6677,7 @@ $$44({ target: 'Number', proto: true, forced: FORCED$f }, { multiply(data, 1e7, 0); j -= 7; } - multiply(data, pow$1(10, j, 1), 0); + multiply(data, pow$2(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(data, 1 << 23); @@ -7979,7 +7981,7 @@ $$3C({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATIO var $$3B = _export; var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR; var NativePromiseConstructor$1 = promiseNativeConstructor; -var getBuiltIn$A = getBuiltIn$M; +var getBuiltIn$B = getBuiltIn$N; var isCallable$i = isCallable$J; var defineBuiltIn$g = defineBuiltIn$u; @@ -7995,7 +7997,7 @@ $$3B({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, rea // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` if (isCallable$i(NativePromiseConstructor$1)) { - var method$1 = getBuiltIn$A('Promise').prototype['catch']; + var method$1 = getBuiltIn$B('Promise').prototype['catch']; if (NativePromisePrototype$1['catch'] !== method$1) { defineBuiltIn$g(NativePromisePrototype$1, 'catch', method$1, { unsafe: true }); } @@ -8056,11 +8058,11 @@ var promiseResolve$2 = function (C, x) { }; var $$3y = _export; -var getBuiltIn$z = getBuiltIn$M; +var getBuiltIn$A = getBuiltIn$N; var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR; var promiseResolve$1 = promiseResolve$2; -getBuiltIn$z('Promise'); +getBuiltIn$A('Promise'); // `Promise.resolve` method // https://tc39.es/ecma262/#sec-promise.resolve @@ -8117,7 +8119,7 @@ $$3x({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATIO var $$3w = _export; var call$$ = functionCall; var aCallable$w = aCallable$N; -var getBuiltIn$y = getBuiltIn$M; +var getBuiltIn$z = getBuiltIn$N; var newPromiseCapabilityModule$2 = newPromiseCapability$2; var perform$2 = perform$7; var iterate$y = iterate$G; @@ -8130,7 +8132,7 @@ var PROMISE_ANY_ERROR = 'No one promise resolved'; $$3w({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { any: function any(iterable) { var C = this; - var AggregateError = getBuiltIn$y('AggregateError'); + var AggregateError = getBuiltIn$z('AggregateError'); var capability = newPromiseCapabilityModule$2.f(C); var resolve = capability.resolve; var reject = capability.reject; @@ -8165,7 +8167,7 @@ $$3w({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATIO var $$3v = _export; var NativePromiseConstructor = promiseNativeConstructor; var fails$D = fails$1u; -var getBuiltIn$x = getBuiltIn$M; +var getBuiltIn$y = getBuiltIn$N; var isCallable$h = isCallable$J; var speciesConstructor$3 = speciesConstructor$6; var promiseResolve = promiseResolve$2; @@ -8183,7 +8185,7 @@ var NON_GENERIC = !!NativePromiseConstructor && fails$D(function () { // https://tc39.es/ecma262/#sec-promise.prototype.finally $$3v({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, { 'finally': function (onFinally) { - var C = speciesConstructor$3(this, getBuiltIn$x('Promise')); + var C = speciesConstructor$3(this, getBuiltIn$y('Promise')); var isFunction = isCallable$h(onFinally); return this.then( isFunction ? function (x) { @@ -8198,7 +8200,7 @@ $$3v({ 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 (isCallable$h(NativePromiseConstructor)) { - var method = getBuiltIn$x('Promise').prototype['finally']; + var method = getBuiltIn$y('Promise').prototype['finally']; if (NativePromisePrototype['finally'] !== method) { defineBuiltIn$f(NativePromisePrototype, 'finally', method, { unsafe: true }); } @@ -8225,7 +8227,7 @@ $$3u({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, { }); var $$3t = _export; -var getBuiltIn$w = getBuiltIn$M; +var getBuiltIn$x = getBuiltIn$N; var apply$8 = functionApply$1; var bind$k = functionBind; var aConstructor$3 = aConstructor$5; @@ -8234,7 +8236,7 @@ var isObject$j = isObject$K; var create$c = objectCreate$1; var fails$B = fails$1u; -var nativeConstruct = getBuiltIn$w('Reflect', 'construct'); +var nativeConstruct = getBuiltIn$x('Reflect', 'construct'); var ObjectPrototype = Object.prototype; var push$l = [].push; @@ -8413,7 +8415,7 @@ $$3l({ target: 'Reflect', stat: true }, { }); var $$3k = _export; -var getBuiltIn$v = getBuiltIn$M; +var getBuiltIn$w = getBuiltIn$N; var anObject$T = anObject$1f; var FREEZING$3 = freezing; @@ -8423,7 +8425,7 @@ $$3k({ target: 'Reflect', stat: true, sham: !FREEZING$3 }, { preventExtensions: function preventExtensions(target) { anObject$T(target); try { - var objectPreventExtensions = getBuiltIn$v('Object', 'preventExtensions'); + var objectPreventExtensions = getBuiltIn$w('Object', 'preventExtensions'); if (objectPreventExtensions) objectPreventExtensions(target); return true; } catch (error) { @@ -8635,7 +8637,7 @@ var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg; var MATCH$1 = wellKnownSymbol$s('match'); var NativeRegExp = global$x.RegExp; var RegExpPrototype$6 = NativeRegExp.prototype; -var SyntaxError$3 = global$x.SyntaxError; +var SyntaxError$2 = global$x.SyntaxError; var exec$c = uncurryThis$18(RegExpPrototype$6.exec); var charAt$h = uncurryThis$18(''.charAt); var replace$8 = uncurryThis$18(''.replace); @@ -8714,7 +8716,7 @@ var handleNCG = function (string) { continue; case chr === '>' && ncg: if (groupname === '' || hasOwn$h(names, groupname)) { - throw new SyntaxError$3('Invalid capture group name'); + throw new SyntaxError$2('Invalid capture group name'); } names[groupname] = true; named[named.length] = [groupname, groupid]; @@ -10659,7 +10661,7 @@ var setInternalState$f = InternalStateModule$e.set; var enforceInternalState$1 = InternalStateModule$e.enforce; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; -var RangeError$3 = global$u.RangeError; +var RangeError$2 = global$u.RangeError; var ArrayBuffer$2 = ArrayBufferModule.ArrayBuffer; var ArrayBufferPrototype$2 = ArrayBuffer$2.prototype; var DataView$2 = ArrayBufferModule.DataView; @@ -10789,12 +10791,12 @@ if (DESCRIPTORS$g) { byteOffset = toOffset$1(offset, BYTES); var $len = data.byteLength; if ($length === undefined) { - if ($len % BYTES) throw new RangeError$3(WRONG_LENGTH); + if ($len % BYTES) throw new RangeError$2(WRONG_LENGTH); byteLength = $len - byteOffset; - if (byteLength < 0) throw new RangeError$3(WRONG_LENGTH); + if (byteLength < 0) throw new RangeError$2(WRONG_LENGTH); } else { byteLength = toLength$1($length) * BYTES; - if (byteLength + byteOffset > $len) throw new RangeError$3(WRONG_LENGTH); + if (byteLength + byteOffset > $len) throw new RangeError$2(WRONG_LENGTH); } length = byteLength / BYTES; } else if (isTypedArray(data)) { @@ -11314,7 +11316,7 @@ var toOffset = toOffset$2; var toIndexedObject$1 = toObject$D; var fails$h = fails$1u; -var RangeError$2 = global$s.RangeError; +var RangeError$1 = global$s.RangeError; var Int8Array$2 = global$s.Int8Array; var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype; var $set = Int8ArrayPrototype && Int8ArrayPrototype.set; @@ -11346,7 +11348,7 @@ exportTypedArrayMethod$e('set', function set(arrayLike /* , offset */) { var length = this.length; var len = lengthOfArrayLike$a(src); var index = 0; - if (len + offset > length) throw new RangeError$2('Wrong length'); + if (len + offset > length) throw new RangeError$1('Wrong length'); while (index < len) this[offset + index] = src[index++]; }, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG); @@ -11976,11 +11978,11 @@ var create$8 = objectCreate$1; var getMethod$b = getMethod$l; var defineBuiltIns$6 = defineBuiltIns$b; var InternalStateModule$c = internalState; -var getBuiltIn$u = getBuiltIn$M; +var getBuiltIn$v = getBuiltIn$N; var AsyncIteratorPrototype$4 = asyncIteratorPrototype; var createIterResultObject$c = createIterResultObject$h; -var Promise$5 = getBuiltIn$u('Promise'); +var Promise$5 = getBuiltIn$v('Promise'); var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator'; var setInternalState$d = InternalStateModule$c.set; @@ -12045,14 +12047,14 @@ var getAsyncIterator$1 = function (it, usingIterator) { }; var call$H = functionCall; -var getBuiltIn$t = getBuiltIn$M; +var getBuiltIn$u = getBuiltIn$N; var getMethod$9 = getMethod$l; var asyncIteratorClose = function (iterator, method, argument, reject) { try { var returnMethod = getMethod$9(iterator, 'return'); if (returnMethod) { - return getBuiltIn$t('Promise').resolve(call$H(returnMethod, iterator)).then(function () { + return getBuiltIn$u('Promise').resolve(call$H(returnMethod, iterator)).then(function () { method(argument); }, function (error) { reject(error); @@ -12070,7 +12072,7 @@ var aCallable$s = aCallable$N; var anObject$E = anObject$1f; var isObject$c = isObject$K; var doesNotExceedSafeInteger = doesNotExceedSafeInteger$7; -var getBuiltIn$s = getBuiltIn$M; +var getBuiltIn$t = getBuiltIn$N; var getIteratorDirect$m = getIteratorDirect$o; var closeAsyncIteration$4 = asyncIteratorClose; @@ -12084,7 +12086,7 @@ var createMethod = function (TYPE) { var MAPPING = fn !== undefined; if (MAPPING || !IS_TO_ARRAY) aCallable$s(fn); var record = getIteratorDirect$m(object); - var Promise = getBuiltIn$s('Promise'); + var Promise = getBuiltIn$t('Promise'); var iterator = record.iterator; var next = record.next; var counter = 0; @@ -12162,7 +12164,7 @@ var getIterator$2 = getIterator$7; var getIteratorDirect$l = getIteratorDirect$o; var getIteratorMethod$3 = getIteratorMethod$8; var getMethod$8 = getMethod$l; -var getBuiltIn$r = getBuiltIn$M; +var getBuiltIn$s = getBuiltIn$N; var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$2; var wellKnownSymbol$i = wellKnownSymbol$S; var AsyncFromSyncIterator$2 = asyncFromSyncIterator; @@ -12191,7 +12193,7 @@ var arrayFromAsync$1 = function fromAsync(asyncItems /* , mapfn = undefined, thi var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var thisArg = argumentsLength > 2 ? arguments[2] : undefined; - return new (getBuiltIn$r('Promise'))(function (resolve) { + return new (getBuiltIn$s('Promise'))(function (resolve) { var O = toObject$9(asyncItems); if (mapfn !== undefined) mapfn = bind$i(mapfn, thisArg); var usingAsyncIterator = getMethod$8(O, ASYNC_ITERATOR$1); @@ -12644,7 +12646,7 @@ if (PROPER_STRUCTURED_CLONE_TRANSFER$2) { } } catch (error) { /* empty */ } -var detachTransferable$1 = detach; +var detachTransferable$2 = detach; var global$k = global$16; var uncurryThis$A = functionUncurryThis; @@ -12652,7 +12654,7 @@ var uncurryThisAccessor$1 = functionUncurryThisAccessor; var toIndex$2 = toIndex$5; var isDetached = arrayBufferIsDetached; var arrayBufferByteLength = arrayBufferByteLength$2; -var detachTransferable = detachTransferable$1; +var detachTransferable$1 = detachTransferable$2; var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer; var structuredClone = global$k.structuredClone; @@ -12668,7 +12670,7 @@ var maxByteLength = uncurryThisAccessor$1(ArrayBufferPrototype, 'maxByteLength', var getInt8 = uncurryThis$A(DataViewPrototype.getInt8); var setInt8 = uncurryThis$A(DataViewPrototype.setInt8); -var arrayBufferTransfer$1 = (PROPER_STRUCTURED_CLONE_TRANSFER$1 || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) { +var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER$1 || detachTransferable$1) && function (arrayBuffer, newLength, preserveResizability) { var byteLength = arrayBufferByteLength(arrayBuffer); var newByteLength = newLength === undefined ? byteLength : toIndex$2(newLength); var fixedLength = !isResizable || !isResizable(arrayBuffer); @@ -12688,12 +12690,12 @@ var arrayBufferTransfer$1 = (PROPER_STRUCTURED_CLONE_TRANSFER$1 || detachTransfe var copyLength = min$3(newByteLength, byteLength); for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i)); } - if (!PROPER_STRUCTURED_CLONE_TRANSFER$1) detachTransferable(arrayBuffer); + if (!PROPER_STRUCTURED_CLONE_TRANSFER$1) detachTransferable$1(arrayBuffer); return newBuffer; }; var $$2x = _export; -var $transfer$1 = arrayBufferTransfer$1; +var $transfer$1 = arrayBufferTransfer; // `ArrayBuffer.prototype.transfer` method // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer @@ -12704,7 +12706,7 @@ if ($transfer$1) $$2x({ target: 'ArrayBuffer', proto: true }, { }); var $$2w = _export; -var $transfer = arrayBufferTransfer$1; +var $transfer = arrayBufferTransfer; // `ArrayBuffer.prototype.transferToFixedLength` method // https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength @@ -12772,7 +12774,7 @@ var addDisposableResource$2 = function (disposable, V, hint, method) { // https://github.com/tc39/proposal-async-explicit-resource-management var $$2v = _export; var DESCRIPTORS$c = descriptors; -var getBuiltIn$q = getBuiltIn$M; +var getBuiltIn$r = getBuiltIn$N; var aCallable$p = aCallable$N; var anInstance$8 = anInstance$f; var defineBuiltIn$9 = defineBuiltIn$u; @@ -12782,8 +12784,8 @@ var wellKnownSymbol$g = wellKnownSymbol$S; var InternalStateModule$b = internalState; var addDisposableResource$1 = addDisposableResource$2; -var Promise$4 = getBuiltIn$q('Promise'); -var SuppressedError$1 = getBuiltIn$q('SuppressedError'); +var Promise$4 = getBuiltIn$r('Promise'); +var SuppressedError$1 = getBuiltIn$r('SuppressedError'); var $ReferenceError$1 = ReferenceError; var ASYNC_DISPOSE$1 = wellKnownSymbol$g('asyncDispose'); @@ -12941,13 +12943,13 @@ var createNonEnumerableProperty$5 = createNonEnumerableProperty$k; var defineBuiltIns$4 = defineBuiltIns$b; var wellKnownSymbol$e = wellKnownSymbol$S; var InternalStateModule$a = internalState; -var getBuiltIn$p = getBuiltIn$M; +var getBuiltIn$q = getBuiltIn$N; var getMethod$6 = getMethod$l; var AsyncIteratorPrototype$2 = asyncIteratorPrototype; var createIterResultObject$b = createIterResultObject$h; var iteratorClose$5 = iteratorClose$8; -var Promise$3 = getBuiltIn$p('Promise'); +var Promise$3 = getBuiltIn$q('Promise'); var TO_STRING_TAG$4 = wellKnownSymbol$e('toStringTag'); var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; @@ -13121,14 +13123,14 @@ $$2t({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced // https://github.com/tc39/proposal-async-explicit-resource-management var call$A = functionCall; var defineBuiltIn$8 = defineBuiltIn$u; -var getBuiltIn$o = getBuiltIn$M; +var getBuiltIn$p = getBuiltIn$N; var getMethod$5 = getMethod$l; var hasOwn$d = hasOwnProperty_1; var wellKnownSymbol$d = wellKnownSymbol$S; var AsyncIteratorPrototype$1 = asyncIteratorPrototype; var ASYNC_DISPOSE = wellKnownSymbol$d('asyncDispose'); -var Promise$2 = getBuiltIn$o('Promise'); +var Promise$2 = getBuiltIn$p('Promise'); if (!hasOwn$d(AsyncIteratorPrototype$1, ASYNC_DISPOSE)) { defineBuiltIn$8(AsyncIteratorPrototype$1, ASYNC_DISPOSE, function () { @@ -13303,7 +13305,7 @@ var AsyncFromSyncIterator$1 = asyncFromSyncIterator; var ASYNC_ITERATOR = wellKnownSymbol$c('asyncIterator'); -var getAsyncIteratorFlattenable$2 = function from(obj) { +var getAsyncIteratorFlattenable$2 = function (obj) { var object = anObject$y(obj); var alreadyAsync = true; var method = getMethod$4(object, ASYNC_ITERATOR); @@ -13472,11 +13474,11 @@ var call$u = functionCall; var aCallable$l = aCallable$N; var anObject$w = anObject$1f; var isObject$8 = isObject$K; -var getBuiltIn$n = getBuiltIn$M; +var getBuiltIn$o = getBuiltIn$N; var getIteratorDirect$f = getIteratorDirect$o; var closeAsyncIteration = asyncIteratorClose; -var Promise$1 = getBuiltIn$n('Promise'); +var Promise$1 = getBuiltIn$o('Promise'); var $TypeError$h = TypeError; // `AsyncIterator.prototype.reduce` method @@ -13726,14 +13728,14 @@ if (typeof BigInt == 'function') { // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -var getBuiltIn$m = getBuiltIn$M; +var getBuiltIn$n = getBuiltIn$N; var create$6 = objectCreate$1; var isObject$6 = isObject$K; var $Object$2 = Object; var $TypeError$f = TypeError; -var Map$8 = getBuiltIn$m('Map'); -var WeakMap$3 = getBuiltIn$m('WeakMap'); +var Map$8 = getBuiltIn$n('Map'); +var WeakMap$3 = getBuiltIn$n('WeakMap'); var Node$1 = function () { // keys @@ -13776,13 +13778,13 @@ var compositeKey = function () { var $$2e = _export; var apply$3 = functionApply$1; var getCompositeKeyNode$1 = compositeKey; -var getBuiltIn$l = getBuiltIn$M; +var getBuiltIn$m = getBuiltIn$N; var create$5 = objectCreate$1; var $Object$1 = Object; var initializer = function () { - var freeze = getBuiltIn$l('Object', 'freeze'); + var freeze = getBuiltIn$m('Object', 'freeze'); return freeze ? freeze(create$5(null)) : create$5(null); }; @@ -13795,14 +13797,14 @@ $$2e({ global: true, forced: true }, { var $$2d = _export; var getCompositeKeyNode = compositeKey; -var getBuiltIn$k = getBuiltIn$M; +var getBuiltIn$l = getBuiltIn$N; var apply$2 = functionApply$1; // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey $$2d({ global: true, forced: true }, { compositeSymbol: function compositeSymbol() { - if (arguments.length === 1 && typeof arguments[0] == 'string') return getBuiltIn$k('Symbol')['for'](arguments[0]); - return apply$2(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn$k('Symbol')); + if (arguments.length === 1 && typeof arguments[0] == 'string') return getBuiltIn$l('Symbol')['for'](arguments[0]); + return apply$2(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn$l('Symbol')); } }); @@ -13893,7 +13895,7 @@ $$29({ target: 'DataView', proto: true, forced: true }, { // https://github.com/tc39/proposal-explicit-resource-management var $$28 = _export; var DESCRIPTORS$a = descriptors; -var getBuiltIn$j = getBuiltIn$M; +var getBuiltIn$k = getBuiltIn$N; var aCallable$k = aCallable$N; var anInstance$6 = anInstance$f; var defineBuiltIn$7 = defineBuiltIn$u; @@ -13903,7 +13905,7 @@ var wellKnownSymbol$b = wellKnownSymbol$S; var InternalStateModule$8 = internalState; var addDisposableResource = addDisposableResource$2; -var SuppressedError = getBuiltIn$j('SuppressedError'); +var SuppressedError = getBuiltIn$k('SuppressedError'); var $ReferenceError = ReferenceError; var DISPOSE$1 = wellKnownSymbol$b('dispose'); @@ -14718,7 +14720,7 @@ var parseJsonString = function (source, i) { var $$1N = _export; var DESCRIPTORS$8 = descriptors; var global$i = global$16; -var getBuiltIn$i = getBuiltIn$M; +var getBuiltIn$j = getBuiltIn$N; var uncurryThis$r = functionUncurryThis; var call$i = functionCall; var isCallable$9 = isCallable$J; @@ -14734,9 +14736,9 @@ var NATIVE_SYMBOL = symbolConstructorDetection; var JSON$1 = global$i.JSON; var Number$1 = global$i.Number; -var SyntaxError$2 = global$i.SyntaxError; +var SyntaxError$1 = global$i.SyntaxError; var nativeParse = JSON$1 && JSON$1.parse; -var enumerableOwnProperties = getBuiltIn$i('Object', 'keys'); +var enumerableOwnProperties = getBuiltIn$j('Object', 'keys'); // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor; var at$1 = uncurryThis$r(''.charAt); @@ -14759,7 +14761,7 @@ var $parse = function (source, reviver) { var value = root.value; var endIndex = context.skip(IS_WHITESPACE$1, root.end); if (endIndex < source.length) { - throw new SyntaxError$2('Unexpected extra character: "' + at$1(source, endIndex) + '" after the parsed data at: ' + endIndex); + throw new SyntaxError$1('Unexpected extra character: "' + at$1(source, endIndex) + '" after the parsed data at: ' + endIndex); } return isCallable$9(reviver) ? internalize({ '': value }, '', reviver, root) : value; }; @@ -14835,7 +14837,7 @@ Context.prototype = { return fork.keyword(false); case 'n': return fork.keyword(null); - } throw new SyntaxError$2('Unexpected character: "' + chr + '" at: ' + i); + } throw new SyntaxError$1('Unexpected character: "' + chr + '" at: ' + i); }, node: function (type, value, start, end, nodes) { return new Node(value, end, type ? null : slice$1(this.source, start, end), nodes); @@ -14912,14 +14914,14 @@ Context.prototype = { if (at$1(source, i) === '-') i++; if (at$1(source, i) === '0') i++; else if (exec$6(IS_NON_ZERO_DIGIT, at$1(source, i))) i = this.skip(IS_DIGIT, ++i); - else throw new SyntaxError$2('Failed to parse number at: ' + i); + else throw new SyntaxError$1('Failed to parse number at: ' + i); if (at$1(source, i) === '.') i = this.skip(IS_DIGIT, ++i); if (at$1(source, i) === 'e' || at$1(source, i) === 'E') { i++; if (at$1(source, i) === '+' || at$1(source, i) === '-') i++; var exponentStartIndex = i; i = this.skip(IS_DIGIT, i); - if (exponentStartIndex === i) throw new SyntaxError$2("Failed to parse number's exponent value at: " + i); + if (exponentStartIndex === i) throw new SyntaxError$1("Failed to parse number's exponent value at: " + i); } return this.node(PRIMITIVE, Number$1(slice$1(source, startIndex, i)), startIndex, i); }, @@ -14927,7 +14929,7 @@ Context.prototype = { var keyword = '' + value; var index = this.index; var endIndex = index + keyword.length; - if (slice$1(this.source, index, endIndex) !== keyword) throw new SyntaxError$2('Failed to parse value at: ' + index); + if (slice$1(this.source, index, endIndex) !== keyword) throw new SyntaxError$1('Failed to parse value at: ' + index); return this.node(PRIMITIVE, value, index, endIndex); }, skip: function (regex, i) { @@ -14939,7 +14941,7 @@ Context.prototype = { i = this.skip(IS_WHITESPACE$1, i); var chr = at$1(this.source, i); for (var j = 0; j < array.length; j++) if (array[j] === chr) return i; - throw new SyntaxError$2('Unexpected character: "' + chr + '" at: ' + i); + throw new SyntaxError$1('Unexpected character: "' + chr + '" at: ' + i); } }; @@ -14969,7 +14971,7 @@ $$1N({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, { var $$1M = _export; var FREEZING$1 = freezing; var NATIVE_RAW_JSON = nativeRawJson; -var getBuiltIn$h = getBuiltIn$M; +var getBuiltIn$i = getBuiltIn$N; var call$h = functionCall; var uncurryThis$q = functionUncurryThis; var isCallable$8 = isCallable$J; @@ -14983,10 +14985,10 @@ var setInternalState$7 = internalState.set; var $String = String; var $SyntaxError$1 = SyntaxError; -var parse$1 = getBuiltIn$h('JSON', 'parse'); -var $stringify = getBuiltIn$h('JSON', 'stringify'); -var create$3 = getBuiltIn$h('Object', 'create'); -var freeze$1 = getBuiltIn$h('Object', 'freeze'); +var parse$1 = getBuiltIn$i('JSON', 'parse'); +var $stringify = getBuiltIn$i('JSON', 'stringify'); +var create$3 = getBuiltIn$i('Object', 'create'); +var freeze$1 = getBuiltIn$i('Object', 'freeze'); var at = uncurryThis$q(''.charAt); var slice = uncurryThis$q(''.slice); var exec$5 = uncurryThis$q(/./.exec); @@ -15736,18 +15738,19 @@ var INVALID_RADIX = 'Invalid radix'; var $RangeError$2 = RangeError; var $SyntaxError = SyntaxError; var $TypeError$5 = TypeError; -var valid = /^[\da-z]+$/; +var pow$1 = Math.pow; +var valid = /^[\d.a-z]+$/; var charAt$8 = uncurryThis$o(''.charAt); var exec$4 = uncurryThis$o(valid.exec); var numberToString$1 = uncurryThis$o(1.0.toString); var stringSlice$4 = uncurryThis$o(''.slice); +var split$4 = uncurryThis$o(''.split); // `Number.fromString` method // https://github.com/tc39/proposal-number-fromstring $$1d({ target: 'Number', stat: true, forced: true }, { fromString: function fromString(string, radix) { var sign = 1; - var R, mathNum; if (typeof string != 'string') throw new $TypeError$5(INVALID_NUMBER_REPRESENTATION); if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); if (charAt$8(string, 0) === '-') { @@ -15755,11 +15758,13 @@ $$1d({ target: 'Number', stat: true, forced: true }, { string = stringSlice$4(string, 1); if (!string.length) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); } - R = radix === undefined ? 10 : toIntegerOrInfinity$3(radix); + var R = radix === undefined ? 10 : toIntegerOrInfinity$3(radix); if (R < 2 || R > 36) throw new $RangeError$2(INVALID_RADIX); - if (!exec$4(valid, string) || numberToString$1(mathNum = parseInt$2(string, R), R) !== string) { - throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); - } + if (!exec$4(valid, string)) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); + var parts = split$4(string, '.'); + var mathNum = parseInt$2(parts[0], R); + if (parts.length > 1) mathNum += parseInt$2(parts[1], R) / pow$1(R, parts[1].length); + if (numberToString$1(mathNum, R) !== string) throw new $SyntaxError(INVALID_NUMBER_REPRESENTATION); return sign * mathNum; } }); @@ -15851,14 +15856,14 @@ $$19({ target: 'Object', stat: true, forced: true }, { }); var $$18 = _export; -var getBuiltIn$g = getBuiltIn$M; +var getBuiltIn$h = getBuiltIn$N; var uncurryThis$n = functionUncurryThis; var aCallable$4 = aCallable$N; var requireObjectCoercible$2 = requireObjectCoercible$p; var toPropertyKey = toPropertyKey$a; var iterate$b = iterate$G; -var create$2 = getBuiltIn$g('Object', 'create'); +var create$2 = getBuiltIn$h('Object', 'create'); var push$8 = uncurryThis$n([].push); // `Object.groupBy` method @@ -16068,7 +16073,7 @@ $$17({ global: true, constructor: true, forced: true }, { setSpecies(OBSERVABLE); var $$16 = _export; -var getBuiltIn$f = getBuiltIn$M; +var getBuiltIn$g = getBuiltIn$N; var call$c = functionCall; var anObject$e = anObject$1f; var isConstructor$2 = isConstructor$a; @@ -16083,7 +16088,7 @@ var $$OBSERVABLE = wellKnownSymbol$5('observable'); // https://github.com/tc39/proposal-observable $$16({ target: 'Observable', stat: true, forced: true }, { from: function from(x) { - var C = isConstructor$2(this) ? this : getBuiltIn$f('Observable'); + var C = isConstructor$2(this) ? this : getBuiltIn$g('Observable'); var observableMethod = getMethod(anObject$e(x), $$OBSERVABLE); if (observableMethod) { var observable = anObject$e(call$c(observableMethod, x)); @@ -16103,16 +16108,16 @@ $$16({ target: 'Observable', stat: true, forced: true }, { }); var $$15 = _export; -var getBuiltIn$e = getBuiltIn$M; +var getBuiltIn$f = getBuiltIn$N; var isConstructor$1 = isConstructor$a; -var Array$2 = getBuiltIn$e('Array'); +var Array$2 = getBuiltIn$f('Array'); // `Observable.of` method // https://github.com/tc39/proposal-observable $$15({ target: 'Observable', stat: true, forced: true }, { of: function of() { - var C = isConstructor$1(this) ? this : getBuiltIn$e('Observable'); + var C = isConstructor$1(this) ? this : getBuiltIn$f('Observable'); var length = arguments.length; var items = Array$2(length); var index = 0; @@ -16161,12 +16166,12 @@ $$13({ target: 'Promise', stat: true }, { // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` -var getBuiltIn$d = getBuiltIn$M; +var getBuiltIn$e = getBuiltIn$N; var uncurryThis$m = functionUncurryThis; var shared$2 = sharedExports; -var Map$2 = getBuiltIn$d('Map'); -var WeakMap$2 = getBuiltIn$d('WeakMap'); +var Map$2 = getBuiltIn$e('Map'); +var WeakMap$2 = getBuiltIn$e('WeakMap'); var push$7 = uncurryThis$m([].push); var metadata = shared$2('metadata'); @@ -16493,12 +16498,12 @@ var forEach$3 = uncurryThis$i(SetPrototype.forEach); var keys = uncurryThis$i(SetPrototype.keys); var next = keys(new Set$7()).next; -var setIterate = function (set, fn, interruptible) { +var setIterate$1 = function (set, fn, interruptible) { return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach$3(set, fn); }; var SetHelpers$7 = setHelpers; -var iterate$9 = setIterate; +var iterate$9 = setIterate$1; var Set$6 = SetHelpers$7.Set; var add$6 = SetHelpers$7.add; @@ -16568,7 +16573,7 @@ var SetHelpers$5 = setHelpers; var clone$2 = setClone; var size$4 = setSize; var getSetRecord$6 = getSetRecord$7; -var iterateSet$2 = setIterate; +var iterateSet$2 = setIterate$1; var iterateSimple$5 = iterateSimple$8; var has$7 = SetHelpers$5.has; @@ -16589,7 +16594,7 @@ var setDifference = function difference(other) { return result; }; -var getBuiltIn$c = getBuiltIn$M; +var getBuiltIn$d = getBuiltIn$N; var createSetLike = function (size) { return { @@ -16608,7 +16613,7 @@ var createSetLike = function (size) { }; var setMethodAcceptSetLike$7 = function (name) { - var Set = getBuiltIn$c('Set'); + var Set = getBuiltIn$d('Set'); try { new Set()[name](createSetLike(0)); try { @@ -16651,12 +16656,12 @@ var isIterable$1 = function (it) { || hasOwn$6(Iterators, classof$2(O)); }; -var getBuiltIn$b = getBuiltIn$M; +var getBuiltIn$c = getBuiltIn$N; var isCallable$4 = isCallable$J; var isIterable = isIterable$1; var isObject$2 = isObject$K; -var Set$5 = getBuiltIn$b('Set'); +var Set$5 = getBuiltIn$c('Set'); var isSetLike = function (it) { return isObject$2(it) @@ -16688,7 +16693,7 @@ $$R({ target: 'Set', proto: true, real: true, forced: true }, { var $$Q = _export; var bind$6 = functionBindContext; var aSet$c = aSet$g; -var iterate$8 = setIterate; +var iterate$8 = setIterate$1; // `Set.prototype.every` method // https://github.com/tc39/proposal-collection-methods @@ -16706,7 +16711,7 @@ var $$P = _export; var bind$5 = functionBindContext; var aSet$b = aSet$g; var SetHelpers$4 = setHelpers; -var iterate$7 = setIterate; +var iterate$7 = setIterate$1; var Set$4 = SetHelpers$4.Set; var add$5 = SetHelpers$4.add; @@ -16728,7 +16733,7 @@ $$P({ target: 'Set', proto: true, real: true, forced: true }, { var $$O = _export; var bind$4 = functionBindContext; var aSet$a = aSet$g; -var iterate$6 = setIterate; +var iterate$6 = setIterate$1; // `Set.prototype.find` method // https://github.com/tc39/proposal-collection-methods @@ -16756,7 +16761,7 @@ var aSet$9 = aSet$g; var SetHelpers$3 = setHelpers; var size$3 = setSize; var getSetRecord$5 = getSetRecord$7; -var iterateSet$1 = setIterate; +var iterateSet$1 = setIterate$1; var iterateSimple$4 = iterateSimple$8; var Set$3 = SetHelpers$3.Set; @@ -16817,7 +16822,7 @@ var aSet$8 = aSet$g; var has$5 = setHelpers.has; var size$2 = setSize; var getSetRecord$4 = getSetRecord$7; -var iterateSet = setIterate; +var iterateSet = setIterate$1; var iterateSimple$3 = iterateSimple$8; var iteratorClose$1 = iteratorClose$8; @@ -16861,7 +16866,7 @@ $$J({ target: 'Set', proto: true, real: true, forced: true }, { var aSet$7 = aSet$g; var size$1 = setSize; -var iterate$5 = setIterate; +var iterate$5 = setIterate$1; var getSetRecord$3 = getSetRecord$7; // `Set.prototype.isSubsetOf` method @@ -16945,7 +16950,7 @@ $$F({ target: 'Set', proto: true, real: true, forced: true }, { var $$E = _export; var uncurryThis$h = functionUncurryThis; var aSet$5 = aSet$g; -var iterate$4 = setIterate; +var iterate$4 = setIterate$1; var toString$8 = toString$J; var arrayJoin = uncurryThis$h([].join); @@ -16969,7 +16974,7 @@ var $$D = _export; var bind$3 = functionBindContext; var aSet$4 = aSet$g; var SetHelpers$2 = setHelpers; -var iterate$3 = setIterate; +var iterate$3 = setIterate$1; var Set$2 = SetHelpers$2.Set; var add$3 = SetHelpers$2.add; @@ -17000,7 +17005,7 @@ $$C({ target: 'Set', stat: true, forced: true }, { var $$B = _export; var aCallable$1 = aCallable$N; var aSet$3 = aSet$g; -var iterate$2 = setIterate; +var iterate$2 = setIterate$1; var $TypeError$3 = TypeError; @@ -17028,7 +17033,7 @@ $$B({ target: 'Set', proto: true, real: true, forced: true }, { var $$A = _export; var bind$2 = functionBindContext; var aSet$2 = aSet$g; -var iterate$1 = setIterate; +var iterate$1 = setIterate$1; // `Set.prototype.some` method // https://github.com/tc39/proposal-collection-methods @@ -17227,11 +17232,11 @@ $$t({ target: 'String', proto: true, forced: true }, { }); // adapted from https://github.com/jridgewell/string-dedent -var getBuiltIn$a = getBuiltIn$M; +var getBuiltIn$b = getBuiltIn$N; var uncurryThis$f = functionUncurryThis; var fromCharCode$2 = String.fromCharCode; -var fromCodePoint = getBuiltIn$a('String', 'fromCodePoint'); +var fromCodePoint = getBuiltIn$b('String', 'fromCodePoint'); var charAt$5 = uncurryThis$f(''.charAt); var charCodeAt$2 = uncurryThis$f(''.charCodeAt); var stringIndexOf = uncurryThis$f(''.indexOf); @@ -17348,7 +17353,7 @@ var stringParse = function (raw) { var FREEZING = freezing; var $$s = _export; var shared$1 = sharedExports; -var getBuiltIn$9 = getBuiltIn$M; +var getBuiltIn$a = getBuiltIn$N; var makeBuiltIn = makeBuiltInExports; var uncurryThis$e = functionUncurryThis; var apply$1 = functionApply$1; @@ -17362,7 +17367,7 @@ var cooked = stringCooked; var parse = stringParse; var whitespaces$1 = whitespaces$6; -var WeakMap$1 = getBuiltIn$9('WeakMap'); +var WeakMap$1 = getBuiltIn$a('WeakMap'); var globalDedentRegistry = shared$1('GlobalDedentRegistry', new WeakMap$1()); /* eslint-disable no-self-assign -- prototype methods protection */ @@ -17544,10 +17549,10 @@ if (Symbol$3) { } } -var getBuiltIn$8 = getBuiltIn$M; +var getBuiltIn$9 = getBuiltIn$N; var uncurryThis$d = functionUncurryThis; -var Symbol$2 = getBuiltIn$8('Symbol'); +var Symbol$2 = getBuiltIn$9('Symbol'); var keyFor = Symbol$2.keyFor; var thisSymbolValue$1 = uncurryThis$d(Symbol$2.prototype.valueOf); @@ -17580,14 +17585,14 @@ $$q({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, { }); var shared = sharedExports; -var getBuiltIn$7 = getBuiltIn$M; +var getBuiltIn$8 = getBuiltIn$N; var uncurryThis$c = functionUncurryThis; var isSymbol$1 = isSymbol$8; var wellKnownSymbol$3 = wellKnownSymbol$S; -var Symbol$1 = getBuiltIn$7('Symbol'); +var Symbol$1 = getBuiltIn$8('Symbol'); var $isWellKnownSymbol = Symbol$1.isWellKnownSymbol; -var getOwnPropertyNames = getBuiltIn$7('Object', 'getOwnPropertyNames'); +var getOwnPropertyNames = getBuiltIn$8('Object', 'getOwnPropertyNames'); var thisSymbolValue = uncurryThis$c(Symbol$1.prototype.valueOf); var WellKnownSymbolsStore = shared('wks'); @@ -17672,7 +17677,7 @@ var defineWellKnownSymbol = wellKnownSymbolDefine; defineWellKnownSymbol('replaceAll'); // TODO: Remove from `core-js@4` -var getBuiltIn$6 = getBuiltIn$M; +var getBuiltIn$7 = getBuiltIn$N; var aConstructor = aConstructor$5; var arrayFromAsync = arrayFromAsync$1; var ArrayBufferViewCore$5 = arrayBufferViewCore; @@ -17688,7 +17693,7 @@ exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , map var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var thisArg = argumentsLength > 2 ? arguments[2] : undefined; - return new (getBuiltIn$6('Promise'))(function (resolve) { + return new (getBuiltIn$7('Promise'))(function (resolve) { aConstructor(C); resolve(arrayFromAsync(asyncItems, mapfn, thisArg)); }).then(function (list) { @@ -18004,7 +18009,7 @@ var base64Map = { var $$e = _export; var global$f = global$16; -var getBuiltIn$5 = getBuiltIn$M; +var getBuiltIn$6 = getBuiltIn$N; var uncurryThis$8 = functionUncurryThis; var call$3 = functionCall; var fails$5 = fails$1u; @@ -18017,7 +18022,7 @@ var disallowed = /[^\d+/a-z]/i; var whitespaces = /[\t\n\f\r ]+/g; var finalEq = /[=]{1,2}$/; -var $atob = getBuiltIn$5('atob'); +var $atob = getBuiltIn$6('atob'); var fromCharCode$1 = String.fromCharCode; var charAt$3 = uncurryThis$8(''.charAt); var replace$3 = uncurryThis$8(''.replace); @@ -18053,7 +18058,7 @@ $$e({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO string = replace$3(string, finalEq, ''); } if (string.length % 4 === 1 || exec$2(disallowed, string)) { - throw new (getBuiltIn$5('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError'); + throw new (getBuiltIn$6('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError'); } while (chr = charAt$3(string, position++)) { if (hasOwn$5(ctoi, chr)) { @@ -18066,7 +18071,7 @@ $$e({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO var $$d = _export; var global$e = global$16; -var getBuiltIn$4 = getBuiltIn$M; +var getBuiltIn$5 = getBuiltIn$N; var uncurryThis$7 = functionUncurryThis; var call$2 = functionCall; var fails$4 = fails$1u; @@ -18074,7 +18079,7 @@ var toString$3 = toString$J; var validateArgumentsLength$8 = validateArgumentsLength$b; var itoc = base64Map.itoc; -var $btoa = getBuiltIn$4('btoa'); +var $btoa = getBuiltIn$5('btoa'); var charAt$2 = uncurryThis$7(''.charAt); var charCodeAt$1 = uncurryThis$7(''.charCodeAt); @@ -18103,7 +18108,7 @@ $$d({ global: true, bind: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK while (charAt$2(string, position) || (map = '=', position % 1)) { charCode = charCodeAt$1(string, position += 3 / 4); if (charCode > 0xFF) { - throw new (getBuiltIn$4('DOMException'))('The string contains characters outside of the Latin1 range', 'InvalidCharacterError'); + throw new (getBuiltIn$5('DOMException'))('The string contains characters outside of the Latin1 range', 'InvalidCharacterError'); } block = block << 8 | charCode; output += charAt$2(map, 63 & block >> 8 - position % 1 * 8); @@ -18247,7 +18252,7 @@ var domExceptionConstants = { var $$c = _export; var tryNodeRequire = tryNodeRequire$2; -var getBuiltIn$3 = getBuiltIn$M; +var getBuiltIn$4 = getBuiltIn$N; var fails$3 = fails$1u; var create$1 = objectCreate$1; var createPropertyDescriptor$2 = createPropertyDescriptor$d; @@ -18266,12 +18271,12 @@ var DESCRIPTORS$6 = descriptors; var DOM_EXCEPTION$2 = 'DOMException'; var DATA_CLONE_ERR = 'DATA_CLONE_ERR'; -var Error$3 = getBuiltIn$3('Error'); +var Error$3 = getBuiltIn$4('Error'); // NodeJS < 17.0 does not expose `DOMException` to global -var NativeDOMException$1 = getBuiltIn$3(DOM_EXCEPTION$2) || (function () { +var NativeDOMException$1 = getBuiltIn$4(DOM_EXCEPTION$2) || (function () { try { // NodeJS < 15.0 does not expose `MessageChannel` to global - var MessageChannel = getBuiltIn$3('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel; + var MessageChannel = getBuiltIn$4('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel; // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe new MessageChannel().port1.postMessage(new WeakMap()); } catch (error) { @@ -18363,7 +18368,7 @@ $$c({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR$1 }, { DOMException: FORCED_CONSTRUCTOR$1 ? $DOMException$1 : NativeDOMException$1 }); -var PolyfilledDOMException$1 = getBuiltIn$3(DOM_EXCEPTION$2); +var PolyfilledDOMException$1 = getBuiltIn$4(DOM_EXCEPTION$2); var PolyfilledDOMExceptionPrototype$1 = PolyfilledDOMException$1.prototype; if (INCORRECT_TO_STRING && (NativeDOMException$1 === PolyfilledDOMException$1)) { @@ -18391,7 +18396,7 @@ for (var key$1 in DOMExceptionConstants$1) if (hasOwn$4(DOMExceptionConstants$1, var $$b = _export; var global$b = global$16; -var getBuiltIn$2 = getBuiltIn$M; +var getBuiltIn$3 = getBuiltIn$N; var createPropertyDescriptor$1 = createPropertyDescriptor$d; var defineProperty$1 = objectDefineProperty.f; var hasOwn$3 = hasOwnProperty_1; @@ -18403,8 +18408,8 @@ var clearErrorStack = errorStackClear; var DESCRIPTORS$5 = descriptors; var DOM_EXCEPTION$1 = 'DOMException'; -var Error$2 = getBuiltIn$2('Error'); -var NativeDOMException = getBuiltIn$2(DOM_EXCEPTION$1); +var Error$2 = getBuiltIn$3('Error'); +var NativeDOMException = getBuiltIn$3(DOM_EXCEPTION$1); var $DOMException = function DOMException() { anInstance$2(this, DOMExceptionPrototype); @@ -18439,7 +18444,7 @@ $$b({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { // TODO: DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException }); -var PolyfilledDOMException = getBuiltIn$2(DOM_EXCEPTION$1); +var PolyfilledDOMException = getBuiltIn$3(DOM_EXCEPTION$1); var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype; if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) { @@ -18456,13 +18461,13 @@ if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) { } } -var getBuiltIn$1 = getBuiltIn$M; +var getBuiltIn$2 = getBuiltIn$N; var setToStringTag$2 = setToStringTag$d; var DOM_EXCEPTION = 'DOMException'; // `DOMException.prototype[@@toStringTag]` property -setToStringTag$2(getBuiltIn$1(DOM_EXCEPTION), DOM_EXCEPTION); +setToStringTag$2(getBuiltIn$2(DOM_EXCEPTION), DOM_EXCEPTION); var $$a = _export; var global$a = global$16; @@ -18585,7 +18590,7 @@ try { var $$6 = _export; var global$5 = global$16; -var getBuiltin = getBuiltIn$M; +var getBuiltIn$1 = getBuiltIn$N; var uncurryThis$6 = functionUncurryThis; var fails$2 = fails$1u; var uid = uid$7; @@ -18605,7 +18610,8 @@ var validateArgumentsLength$5 = validateArgumentsLength$b; var getRegExpFlags = regexpGetFlags; var MapHelpers = mapHelpers; var SetHelpers = setHelpers; -var arrayBufferTransfer = arrayBufferTransfer$1; +var setIterate = setIterate$1; +var detachTransferable = detachTransferable$2; var ERROR_STACK_INSTALLABLE = errorStackInstallable; var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer; @@ -18613,25 +18619,17 @@ var Object$1 = global$5.Object; var Array$1 = global$5.Array; var Date$1 = global$5.Date; var Error$1 = global$5.Error; -var EvalError = global$5.EvalError; -var RangeError$1 = global$5.RangeError; -var ReferenceError$1 = global$5.ReferenceError; -var SyntaxError$1 = global$5.SyntaxError; var TypeError$3 = global$5.TypeError; -var URIError = global$5.URIError; var PerformanceMark = global$5.PerformanceMark; -var WebAssembly = global$5.WebAssembly; -var CompileError = WebAssembly && WebAssembly.CompileError || Error$1; -var LinkError = WebAssembly && WebAssembly.LinkError || Error$1; -var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error$1; -var DOMException = getBuiltin('DOMException'); +var DOMException = getBuiltIn$1('DOMException'); var Map$1 = MapHelpers.Map; var mapHas = MapHelpers.has; var mapGet = MapHelpers.get; var mapSet = MapHelpers.set; var Set$1 = SetHelpers.Set; var setAdd = SetHelpers.add; -var objectKeys = getBuiltin('Object', 'keys'); +var setHas = SetHelpers.has; +var objectKeys = getBuiltIn$1('Object', 'keys'); var push$4 = uncurryThis$6([].push); var thisBooleanValue = uncurryThis$6(true.valueOf); var thisNumberValue = uncurryThis$6(1.0.valueOf); @@ -18646,7 +18644,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) { var set1 = new global$5.Set([7]); var set2 = structuredCloneImplementation(set1); var number = structuredCloneImplementation(Object$1(7)); - return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7; + return set2 === set1 || !set2.has(7) || !isObject$1(number) || +number !== 7; }) && structuredCloneImplementation; }; @@ -18741,10 +18739,10 @@ var cloneBuffer = function (value, map, $type) { // `ArrayBuffer#slice` is not available in IE10 // `ArrayBuffer#slice` and `DataView` are not available in old FF - if (!DataView && typeof value.slice != 'function') throwUnpolyfillable('ArrayBuffer'); + if (!DataView && !isCallable$1(value.slice)) throwUnpolyfillable('ArrayBuffer'); // detached buffers throws in `DataView` and `.slice` try { - if (typeof value.slice == 'function' && !value.resizable) { + if (isCallable$1(value.slice) && !value.resizable) { clone = value.slice(0); } else { length = value.byteLength; @@ -18774,13 +18772,7 @@ var cloneView = function (value, type, offset, length, map) { return new C(cloneBuffer(value.buffer, map), offset, length); }; -var Placeholder = function (object, type, metadata) { - this.object = object; - this.type = type; - this.metadata = metadata; -}; - -var structuredCloneInternal = function (value, map, transferredBuffers) { +var structuredCloneInternal = function (value, map) { if (isSymbol(value)) throwUncloneable('Symbol'); if (!isObject$1(value)) return value; // effectively preserves circular references @@ -18813,34 +18805,21 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { name = value.name; switch (name) { case 'AggregateError': - cloned = new (getBuiltin('AggregateError'))([]); + cloned = new (getBuiltIn$1(name))([]); break; case 'EvalError': - cloned = new EvalError(); - break; case 'RangeError': - cloned = new RangeError$1(); - break; case 'ReferenceError': - cloned = new ReferenceError$1(); - break; + case 'SuppressedError': case 'SyntaxError': - cloned = new SyntaxError$1(); - break; case 'TypeError': - cloned = new TypeError$3(); - break; case 'URIError': - cloned = new URIError(); + cloned = new (getBuiltIn$1(name))(); break; case 'CompileError': - cloned = new CompileError(); - break; case 'LinkError': - cloned = new LinkError(); - break; case 'RuntimeError': - cloned = new RuntimeError(); + cloned = new (getBuiltIn$1('WebAssembly', name))(); break; default: cloned = new Error$1(); @@ -18851,9 +18830,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { break; case 'ArrayBuffer': case 'SharedArrayBuffer': - cloned = transferredBuffers - ? new Placeholder(value, type) - : cloneBuffer(value, map, type); + cloned = cloneBuffer(value, map, type); break; case 'DataView': case 'Int8Array': @@ -18869,17 +18846,15 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { case 'BigInt64Array': case 'BigUint64Array': length = type === 'DataView' ? value.byteLength : value.length; - cloned = transferredBuffers - ? new Placeholder(value, type, { offset: value.byteOffset, length: length }) - : cloneView(value, type, value.byteOffset, length, map); + cloned = cloneView(value, type, value.byteOffset, length, map); break; case 'DOMQuad': try { cloned = new DOMQuad( - structuredCloneInternal(value.p1, map, transferredBuffers), - structuredCloneInternal(value.p2, map, transferredBuffers), - structuredCloneInternal(value.p3, map, transferredBuffers), - structuredCloneInternal(value.p4, map, transferredBuffers) + structuredCloneInternal(value.p1, map), + structuredCloneInternal(value.p2, map), + structuredCloneInternal(value.p3, map), + structuredCloneInternal(value.p4, map) ); } catch (error) { cloned = tryNativeRestrictedStructuredClone(value, type); @@ -18900,7 +18875,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { dataTransfer = createDataTransfer(); if (dataTransfer) { for (i = 0, length = lengthOfArrayLike(value); i < length; i++) { - dataTransfer.items.add(structuredCloneInternal(value[i], map, transferredBuffers)); + dataTransfer.items.add(structuredCloneInternal(value[i], map)); } cloned = dataTransfer.files; } else cloned = tryNativeRestrictedStructuredClone(value, type); @@ -18909,7 +18884,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { // Safari 9 ImageData is a constructor, but typeof ImageData is 'object' try { cloned = new ImageData( - structuredCloneInternal(value.data, map, transferredBuffers), + structuredCloneInternal(value.data, map), value.width, value.height, { colorSpace: value.colorSpace } @@ -19006,105 +18981,38 @@ var structuredCloneInternal = function (value, map, transferredBuffers) { keys = objectKeys(value); for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) { key = keys[i]; - createProperty(cloned, key, structuredCloneInternal(value[key], map, transferredBuffers)); + createProperty(cloned, key, structuredCloneInternal(value[key], map)); } break; case 'Map': value.forEach(function (v, k) { - mapSet(cloned, structuredCloneInternal(k, map, transferredBuffers), structuredCloneInternal(v, map, transferredBuffers)); + mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map)); }); break; case 'Set': value.forEach(function (v) { - setAdd(cloned, structuredCloneInternal(v, map, transferredBuffers)); + setAdd(cloned, structuredCloneInternal(v, map)); }); break; case 'Error': - createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map, transferredBuffers)); + createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map)); if (hasOwn$2(value, 'cause')) { - createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map, transferredBuffers)); + createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map)); } if (name === 'AggregateError') { - cloned.errors = structuredCloneInternal(value.errors, map, transferredBuffers); + cloned.errors = structuredCloneInternal(value.errors, map); + } else if (name === 'SuppressedError') { + cloned.error = structuredCloneInternal(value.error, map); + cloned.suppressed = structuredCloneInternal(value.suppressed, map); } // break omitted case 'DOMException': if (ERROR_STACK_INSTALLABLE) { - createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map, transferredBuffers)); + createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map)); } } return cloned; }; -var replacePlaceholders = function (value, map) { - if (!isObject$1(value)) return value; - if (mapHas(map, value)) return mapGet(map, value); - - var type, object, metadata, i, length, keys, key, replacement; - - if (value instanceof Placeholder) { - type = value.type; - object = value.object; - - switch (type) { - case 'ArrayBuffer': - case 'SharedArrayBuffer': - replacement = cloneBuffer(object, map, type); - break; - case 'DataView': - case 'Int8Array': - case 'Uint8Array': - case 'Uint8ClampedArray': - case 'Int16Array': - case 'Uint16Array': - case 'Int32Array': - case 'Uint32Array': - case 'Float16Array': - case 'Float32Array': - case 'Float64Array': - case 'BigInt64Array': - case 'BigUint64Array': - metadata = value.metadata; - replacement = cloneView(object, type, metadata.offset, metadata.length, map); - } - } else switch (classof$1(value)) { - case 'Array': - case 'Object': - keys = objectKeys(value); - for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) { - key = keys[i]; - value[key] = replacePlaceholders(value[key], map); - } break; - case 'Map': - replacement = new Map$1(); - value.forEach(function (v, k) { - mapSet(replacement, replacePlaceholders(k, map), replacePlaceholders(v, map)); - }); - break; - case 'Set': - replacement = new Set$1(); - value.forEach(function (v) { - setAdd(replacement, replacePlaceholders(v, map)); - }); - break; - case 'Error': - value.message = replacePlaceholders(value.message, map); - if (hasOwn$2(value, 'cause')) { - value.cause = replacePlaceholders(value.cause, map); - } - if (value.name === 'AggregateError') { - value.errors = replacePlaceholders(value.errors, map); - } // break omitted - case 'DOMException': - if (ERROR_STACK_INSTALLABLE) { - value.stack = replacePlaceholders(value.stack, map); - } - } - - mapSet(map, value, replacement || value); - - return replacement || value; -}; - var tryToTransfer = function (rawTransfer, map) { if (!isObject$1(rawTransfer)) throw new TypeError$3('Transfer option cannot be converted to a sequence'); @@ -19116,7 +19024,7 @@ var tryToTransfer = function (rawTransfer, map) { var i = 0; var length = lengthOfArrayLike(transfer); - var buffers = []; + var buffers = new Set$1(); var value, type, C, transferred, canvas, context; while (i < length) { @@ -19124,13 +19032,15 @@ var tryToTransfer = function (rawTransfer, map) { type = classof$1(value); + if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) { + throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR); + } + if (type === 'ArrayBuffer') { - push$4(buffers, value); + setAdd(buffers, value); continue; } - if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR); - if (PROPER_STRUCTURED_CLONE_TRANSFER) { transferred = nativeStructuredClone(value, { transfer: [value] }); } else switch (type) { @@ -19169,25 +19079,18 @@ var tryToTransfer = function (rawTransfer, map) { return buffers; }; -var tryToTransferBuffers = function (transfer, map) { - var i = 0; - var length = lengthOfArrayLike(transfer); - var value, transferred; - - while (i < length) { - value = transfer[i++]; - - if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR); - - if (arrayBufferTransfer) { - transferred = arrayBufferTransfer(value, undefined, true); +var detachBuffers = function (buffers) { + setIterate(buffers, function (buffer) { + if (PROPER_STRUCTURED_CLONE_TRANSFER) { + nativeRestrictedStructuredClone(buffer, { transfer: [buffer] }); + } else if (isCallable$1(buffer.transfer)) { + buffer.transfer(); + } else if (detachTransferable) { + detachTransferable(buffer); } else { - if (!isCallable$1(value.transfer)) throwUnpolyfillable('ArrayBuffer', TRANSFERRING); - transferred = value.transfer(); + throwUnpolyfillable('ArrayBuffer', TRANSFERRING); } - - mapSet(map, value, transferred); - } + }); }; // `structuredClone` method @@ -19196,24 +19099,18 @@ $$6({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, f structuredClone: function structuredClone(value /* , { transfer } */) { var options = validateArgumentsLength$5(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject$1(arguments[1]) : undefined; var transfer = options ? options.transfer : undefined; - var transferredBuffers = false; var map, buffers; if (transfer !== undefined) { map = new Map$1(); buffers = tryToTransfer(transfer, map); - transferredBuffers = !!lengthOfArrayLike(buffers); } - var clone = structuredCloneInternal(value, map, transferredBuffers); + var clone = structuredCloneInternal(value, map); - // since of an issue with cloning views of transferred buffers, we a forced to transfer / clone them in 2 steps + // since of an issue with cloning views of transferred buffers, we a forced to detach them later // https://github.com/zloirock/core-js/issues/1265 - if (transferredBuffers) { - map = new Map$1(); - tryToTransferBuffers(transfer, map); - clone = replacePlaceholders(clone, map); - } + if (buffers) detachBuffers(buffers); return clone; } @@ -20939,7 +20836,7 @@ $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1, sham: !DESCRIP }); var $$1 = _export; -var getBuiltIn = getBuiltIn$M; +var getBuiltIn = getBuiltIn$N; var fails = fails$1u; var validateArgumentsLength$2 = validateArgumentsLength$b; var toString$2 = toString$J; diff --git a/tsconfig.json b/tsconfig.json index c9b28c97f..cdaf9357c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,6 @@ "target": "ES2022", "useDefineForClassFields": false }, - "include": ["typings/**/*.d.ts", "src", "cli", "browser", "rollup.config.ts", "native", "wasm.d.ts"], + "include": ["typings/**/*.d.ts", "src", "cli", "browser", "rollup.config.ts", "native"], "exclude": ["dist", "node_modules", "test/typescript", "browser/dist"] } diff --git a/typings/hash.js.d.ts b/typings/hash.js.d.ts deleted file mode 100644 index 610e402a3..000000000 --- a/typings/hash.js.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare module 'hash.js/lib/hash/sha/256' { - export default function sha256(): { - digest: (format: string) => string; - update: (data: unknown) => void; - }; -} diff --git a/wasm.d.ts b/wasm.d.ts deleted file mode 100644 index cbd5efcac..000000000 --- a/wasm.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -// eslint-disable-next-line import/no-unresolved -import './wasm/bindings_wasm_bg.wasm'; - -declare module './wasm/bindings_wasm_bg.wasm' { - export default function wasm(): Promise; -}